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

139 lines
398 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[1482],{33853:function(De,et,ie){"use strict";ie.d(et,{Z:function(){return Ge}});var re=ie(16378),de=ie(59301),Te={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=Te,he=ie(7657),ye=function(xe,Ne){return de.createElement(he.Z,(0,re.Z)({},xe,{ref:Ne,icon:Je}))},se=de.forwardRef(ye),Ge=se},38819:function(De,et,ie){"use strict";ie.d(et,{Z:function(){return Ge}});var re=ie(16378),de=ie(59301),Te={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=Te,he=ie(7657),ye=function(xe,Ne){return de.createElement(he.Z,(0,re.Z)({},xe,{ref:Ne,icon:Je}))},se=de.forwardRef(ye),Ge=se},93938:function(De,et){"use strict";et.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},37404:function(){"use strict";function De(ne,a,b,E){b===void 0&&(b=0),E===void 0&&(E=1/0),this._name=ne,this._defaultValue=a,this._minimum=b,this._maximum=E}Object.defineProperty(De.prototype,"name",{get:function(){return this._name},set:function(ne){if(typeof ne!="string"||ne==="")throw new Error("Shape name must be a valid string.");this._name=ne}}),Object.defineProperty(De.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("The default value must be a real number, not: "+ne);this._defaultValue=ne}}),Object.defineProperty(De.prototype,"minimum",{get:function(){return this._minimum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Minimum must be a real number, not: "+ne);this._minimum=ne}}),Object.defineProperty(De.prototype,"maximum",{get:function(){return this._maximum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Maximum must be a real number, not: "+ne);this._maximum=ne}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ne,a){var b=go.Shape._FigureParameters[ne];return b?b[a]:null},go.Shape.setFigureParameter=function(ne,a,b){if(!(b instanceof De))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+b);if(b.defaultValue<b.minimum||b.defaultValue>b.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+b.defaultValue);var E=go.Shape._FigureParameters[ne];E||(E=[],go.Shape._FigureParameters[ne]=E),E[a]=b};var et=[];function ie(ne,a){var b=et.pop();return b===void 0?new go.Point(ne,a):(b.x=ne,b.y=a,b)}function re(){var ne=et.pop();return ne===void 0?new go.Point:ne}function de(ne){et.push(ne)}function Te(ne,a,b,E,y,x,z,ee,te){te||(te=new go.Point);var oe=ne-b,ae=y-z,ge=NaN,me=NaN;if(oe===0)if(ae===0)ne===b&&(ge=ne,me=a);else{var le=(x-ee)/ae,Ce=x-le*y;ge=ne,me=le*ge+Ce}else if(ae===0){var ze=(a-E)/oe,ot=a-ze*ne;ge=y,me=ze*ge+ot}else{var ze=(a-E)/oe,le=(x-ee)/ae,ot=a-ze*ne,Ce=x-le*y;ge=(Ce-ot)/(ze-le),me=ze*ge+ot}return te.x=ge,te.y=me,te}function Je(ne,a,b,E,y,x,z,ee,te,oe,ae,ge,me,le){var Ce=1-te,ze=te,ot=ne*Ce+b*ze,nt=a*Ce+E*ze,gt=b*Ce+y*ze,fe=E*Ce+x*ze,$e=y*Ce+z*ze,Re=x*Ce+ee*ze,Me=ot*Ce+gt*ze,Ke=nt*Ce+fe*ze,Bt=gt*Ce+$e*ze,Et=fe*Ce+Re*ze,yt=Me*Ce+Bt*ze,Ht=Ke*Ce+Et*ze;oe.x=ot,oe.y=nt,ae.x=Me,ae.y=Ke,ge.x=yt,ge.y=Ht,me.x=Bt,me.y=Et,le.x=$e,le.y=Re}var he=new go.Spot(.156,.156),ye=new go.Spot(.844,.844),se=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new De("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,b){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,b/3);var y=E*se,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-y,0,a,y)).add(new go.PathSegment(go.PathSegment.Line,a,b-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,b,a,b-y,a-y,b)).add(new go.PathSegment(go.PathSegment.Line,E,b)).add(new go.PathSegment(go.PathSegment.Bezier,0,b-E,y,b,0,b-y)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,y,y,0).close()));return y>1&&(x.spot1=new go.Spot(0,0,y,y),x.spot2=new go.Spot(1,1,-y,-y)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*b)).add(new go.PathSegment(go.PathSegment.Line,0,b).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,a,b){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,b).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(a,b).add(new go.PathSegment(go.PathSegment.Line,0,.5*b)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(a,b).add(new go.PathSegment(go.PathSegment.Line,0,b)).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(ne,a,b){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*b)).add(new go.PathSegment(go.PathSegment.Line,.5*a,b)).add(new go.PathSegment(go.PathSegment.Line,a,.5*b).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,a,b){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=b/2,E.endX=a,E.endY=b/2,E}),go.Shape.defineFigureGenerator("LineV",function(ne,a,b){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=b,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,b/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,b/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,b)))}),go.Shape.defineFigureGenerator("XLine",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,b,!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,b)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*b)).add(new go.PathSegment(go.PathSegment.Line,.25*a,b)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,.25*b,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*b)).add(new go.PathSegment(go.PathSegment.Line,a,.25*b)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*b)).add(new go.PathSegment(go.PathSegment.Line,.75*a,b)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,.75*b,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*b)).add(new go.PathSegment(go.PathSegment.Line,a,.75*b)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,a,b){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*b,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*b)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*b)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*b)).add(new go.PathSegment(go.PathSegment.Move,0,b/2)).add(new go.PathSegment(go.PathSegment.Line,a,b/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,b)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,a,b){var E=a/2,y=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 y.spot1=he,y.spot2=ye,y.defaultStretch=go.GraphObject.Uniform,y}),go.Shape.defineFigureGenerator("Line1",function(ne,a,b){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=b,E}),go.Shape.defineFigureGenerator("Line2",function(ne,a,b){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=b,E}),go.Shape.defineFigureGenerator("Curve1",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,b,se*a,0,a,(1-se)*b)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,b,0,se*b,(1-se)*a,b)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,b,a,se*b,se*a,b)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,b,(1-se)*a,0,0,(1-se)*b)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,0,b).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,0,b).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,a,b){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,b).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,a,b){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,b).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new De("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var y=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=b,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-y,b)).add(new go.PathSegment(go.PathSegment.Line,0,b).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-y,0)).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,y,b).close())),y<a/2&&x.setSpots(y/a,0,(a-y)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new De("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var y=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=b,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-y,b)).add(new go.PathSegment(go.PathSegment.Line,0,b).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-y,0)).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,y,b).close())),y<a/2&&x.setSpots(y/a,0,(a-y)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new De("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var y=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=b,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,a-y,0)).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,0,b).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-y,b)).add(new go.PathSegment(go.PathSegment.Line,y,b).close())),y<a/2&&x.setSpots(y/a,0,(a-y)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new De("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var y=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=b,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,a-y,0)).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,0,b).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-y,b)).add(new go.PathSegment(go.PathSegment.Line,y,b).close())),y<a/2&&x.setSpots(y/a,0,(a-y)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new De("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var y=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=b,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-y,b)).add(new go.PathSegment(go.PathSegment.Line,y,b).close())):x.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,a-y,0)).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,0,b).close())),y<a/2&&x.setSpots(y/a,0,(a-y)/a,1),x}});var Ge=[];function Be(){var ne=Ge.pop();return ne===void 0?[]:ne}function xe(ne){ne.length=0,Ge.push(ne)}function Ne(ne){for(var a=Be(),b=.5,E=.5,y=Math.PI*1.5,x=0,z=0;z<ne;z++)x=2*Math.PI/ne*z+y,a[z]=new go.Point(E+b*Math.cos(x),E+b*Math.sin(x));return a.push(a[0]),a}function we(ne){var a=be(ne),b=Be();b[0]=a[0];for(var E=1,y=1;E<a.length;E+=2,y+=3)b[y]=a[E],b[y+1]=a[E],b[y+2]=a[E+1];return xe(a),b}function be(ne){for(var a=Ne(ne),b=Be(),E=Math.floor(a.length/2),y=a.length-1,x=ne%2===0?2:1,z=0;z<y;z++){var ee=a[z],te=a[z+1],oe=a[(E+z-1)%y],ae=a[(E+z+x)%y];b[z*2]=ee,b[z*2+1]=Te(ee.x,ee.y,oe.x,oe.y,te.x,te.y,ae.x,ae.y,new go.Point)}return b[b.length]=b[0],xe(a),b}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,b){var E=Ne(5),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*b).close()),xe(E),y.spot1=new go.Spot(.2,.22),y.spot2=new go.Spot(.8,.9),y}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,b){var E=Ne(6),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*b).close()),xe(E),y.spot1=new go.Spot(.07,.25),y.spot2=new go.Spot(.93,.75),y}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,b){var E=Ne(7),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*b).close()),xe(E),y.spot1=new go.Spot(.2,.15),y.spot2=new go.Spot(.8,.85),y}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,b){var E=Ne(8),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*b).close()),xe(E),y.spot1=new go.Spot(.15,.15),y.spot2=new go.Spot(.85,.85),y}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,b){var E=Ne(9),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*b).close()),xe(E),y.spot1=new go.Spot(.17,.13),y.spot2=new go.Spot(.82,.82),y}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,b){var E=Ne(10),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*b).close()),xe(E),y.spot1=new go.Spot(.16,.16),y.spot2=new go.Spot(.84,.84),y}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,b){var E=Ne(12),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*b).close()),xe(E),y.spot1=new go.Spot(.16,.16),y.spot2=new go.Spot(.84,.84),y}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,b){var E=be(5),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*b).close()),xe(E),y.spot1=new go.Spot(.266,.333),y.spot2=new go.Spot(.733,.733),y}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,b){var E=be(6),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*b).close()),xe(E),y.spot1=new go.Spot(.17,.25),y.spot2=new go.Spot(.83,.75),y}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,b){var E=be(7),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*b).close()),xe(E),y.spot1=new go.Spot(.222,.277),y.spot2=new go.Spot(.777,.666),y}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,b){var E=be(8),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*b).close()),xe(E),y.spot1=new go.Spot(.25,.25),y.spot2=new go.Spot(.75,.75),y}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,b){var E=be(9),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*b).close()),xe(E),y.spot1=new go.Spot(.222,.277),y.spot2=new go.Spot(.777,.666),y}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,b){var E=be(10),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*b));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*b).close()),xe(E),y.spot1=new go.Spot(.281,.261),y.spot2=new go.Spot(.723,.748),y}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,a,b){var E=we(5),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.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*b,E[z].x*a,E[z].y*b,E[z+1].x*a,E[z+1].y*b));return x.segments.last().close(),xe(E),y.spot1=new go.Spot(.222,.277),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,b){var E=we(6),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.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*b,E[z].x*a,E[z].y*b,E[z+1].x*a,E[z+1].y*b));return x.segments.last().close(),xe(E),y.spot1=new go.Spot(.17,.222),y.spot2=new go.Spot(.833,.777),y}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,b){var E=we(7),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.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*b,E[z].x*a,E[z].y*b,E[z+1].x*a,E[z+1].y*b));return x.segments.last().close(),xe(E),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,b){var E=we(8),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.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*b,E[z].x*a,E[z].y*b,E[z+1].x*a,E[z+1].y*b));return x.segments.last().close(),xe(E),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,b){var E=we(9),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.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*b,E[z].x*a,E[z].y*b,E[z+1].x*a,E[z+1].y*b));return x.segments.last().close(),xe(E),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,b){var E=we(10),y=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*b,!0);y.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*b,E[z].x*a,E[z].y*b,E[z+1].x*a,E[z+1].y*b));return x.segments.last().close(),xe(E),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.setFigureParameter("FramedRectangle",0,new De("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new De("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,b){var E=ne?ne.parameter1:NaN,y=ne?ne.parameter2:NaN;isNaN(E)&&(E=8),isNaN(y)&&(y=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,b)),z.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),E<a/2&&y<b/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,b-y)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b-y)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y).close())),x.setSpots(0,0,1,1,E,y,-E,-y),x}),go.Shape.setFigureParameter("Ring",0,new De("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,b){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var y=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,y,y,y,y).close());var ee=Math.max(y-E,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,y,y,ee,ee).close())),x.spot1=he,x.spot2=ye,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*b,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*b,-.09239631*a,.07836421*b,.1406031*a,-.0542823*b)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*b,.2450511*a,-.00697547*b,.3776197*a,-.01112067*b)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*b,.4539471*a,0,.6066018*a,-.02526587*b)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*b,.6914277*a,-.01904177*b,.8921095*a,-.01220843*b)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*b,1.036446*a,.04105738*b,1.020377*a,.3022052*b)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*b,1.04448*a,.360238*b,.992256*a,.5219009*b)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*b,1.032337*a,.5771781*b,1.018411*a,.8120651*b)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*b,1.028411*a,.9571472*b,.8556702*a,1.052487*b)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*b,.7431877*a,1.009325*b,.5624123*a,1.021761*b)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*b,.4820677*a,1.031761*b,.3030112*a,1.002796*b)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*b,.2329994*a,1.01518*b,.03213784*a,1.01518*b)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*b,-.02812061*a,.9032597*b,-.01205169*a,.6835638*b)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*b,-.01812061*a,.6089503*b,-.00606892*a,.4555777*b)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*b,-.01606892*a,.3892545*b,-.01205169*a,.1944299*b))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,a,b){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*b)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*b)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,b)).add(new go.PathSegment(go.PathSegment.Line,E*a,b)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*b)).add(new go.PathSegment(go.PathSegment.Line,0,E*b).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new De("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new De("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,b){var E=ne?ne.parameter1:NaN,y=ne?ne.parameter2:NaN;isNaN(E)&&(E=0),isNaN(y)&&(y=315);var x=E%360;x<0&&(x+=360);var z=y%360,ee=Math.min(a,b)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,b){var E=se/Math.SQRT2*.5,y=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,b,!0).add(new go.PathSegment(go.PathSegment.Bezier,y*a,x*b,a,(1-E)*b,(y+E)*a,(x+E)*b)).add(new go.PathSegment(go.PathSegment.Line,0,b).close()))}),go.Shape.setFigureParameter("ThickCross",0,new De("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,b){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var y=Math.min(E,a)/2,x=a/2,z=b/2;return new go.Geometry().add(new go.PathFigure(x-y,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+y,0)).add(new go.PathSegment(go.PathSegment.Line,x+y,z-y)).add(new go.PathSegment(go.PathSegment.Line,a,z-y)).add(new go.PathSegment(go.PathSegment.Line,a,z+y)).add(new go.PathSegment(go.PathSegment.Line,x+y,z+y)).add(new go.PathSegment(go.PathSegment.Line,x+y,b)).add(new go.PathSegment(go.PathSegment.Line,x-y,b)).add(new go.PathSegment(go.PathSegment.Line,x-y,z+y)).add(new go.PathSegment(go.PathSegment.Line,0,z+y)).add(new go.PathSegment(go.PathSegment.Line,0,z-y)).add(new go.PathSegment(go.PathSegment.Line,x-y,z-y).close()))}),go.Shape.setFigureParameter("ThinCross",0,new De("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,b){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var y=Math.min(E,a)/2,x=a/2,z=b/2;return new go.Geometry().add(new go.PathFigure(x-y,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+y,0)).add(new go.PathSegment(go.PathSegment.Line,x+y,z-y)).add(new go.PathSegment(go.PathSegment.Line,a,z-y)).add(new go.PathSegment(go.PathSegment.Line,a,z+y)).add(new go.PathSegment(go.PathSegment.Line,x+y,z+y)).add(new go.PathSegment(go.PathSegment.Line,x+y,b)).add(new go.PathSegment(go.PathSegment.Line,x-y,b)).add(new go.PathSegment(go.PathSegment.Line,x-y,z+y)).add(new go.PathSegment(go.PathSegment.Line,0,z+y)).add(new go.PathSegment(go.PathSegment.Line,0,z-y)).add(new go.PathSegment(go.PathSegment.Line,x-y,z-y).close()))}),go.Shape.setFigureParameter("ThickX",0,new De("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,b){var E=ne?ne.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||b===0){var y=new go.Geometry(go.Geometry.Rectangle);return y.startX=0,y.startY=0,y.endX=a,y.endY=b,y}else{var x=a/2,z=b/2,ee=Math.atan2(b,a),te=E-Math.min(Math.cos(ee)*E/2,x),oe=E-Math.min(Math.sin(ee)*E/2,z),y=new go.Geometry,ae=new go.PathFigure(te,0,!0);return y.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,x,.2*b)),ae.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),ae.add(new go.PathSegment(go.PathSegment.Line,a,oe)),ae.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ae.add(new go.PathSegment(go.PathSegment.Line,a,b-oe)),ae.add(new go.PathSegment(go.PathSegment.Line,a-te,b)),ae.add(new go.PathSegment(go.PathSegment.Line,x,.8*b)),ae.add(new go.PathSegment(go.PathSegment.Line,te,b)),ae.add(new go.PathSegment(go.PathSegment.Line,0,b-oe)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ae.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),y}}),go.Shape.setFigureParameter("ThinX",0,new De("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,b){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var y=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*b)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*b)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*b)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,b)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*b)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*b)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*b)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*b).close()),y}),go.Shape.setFigureParameter("SquareIBeam",0,new De("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var y=new go.Geometry,x=new go.PathFigure(0,0,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*b)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*b)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*b)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*b)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*b)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*b).close()),y}),go.Shape.setFigureParameter("RoundedIBeam",0,new De("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.5);var y=new go.Geometry,x=new go.PathFigure(0,0,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,b,Math.abs(1-E)*a,.25*b,Math.abs(1-E)*a,.75*b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*b,E*a,.25*b).close()),y}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,se*a,0,a,(.5-se/2)*b)).add(new go.PathSegment(go.PathSegment.Bezier,0,b,a,(.5+se/2)*b,se*a,b).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,b,a,0,a,b)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*b,.5*a,.25*b).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(.5*a,b,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*b,.1*a,.8*b,0,.5*b)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*b,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*b,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b,a,.5*b,.9*a,.8*b).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*b)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,.6*a,.2*b,a,.25*b)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*b,a,.8*b,.6*a,.8*b)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,b,.5*a,.75*b,.55*a,.95*b)).add(new go.PathSegment(go.PathSegment.Line,.25*a,b)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*b,.45*a,.95*b,.5*a,.75*b)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*b,.4*a,.8*b,0,.8*b)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*b,0,.25*b,.4*a,.2*b).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.4*a,.6*b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,b,.5*a,.75*b,.45*a,.95*b)),y.add(new go.PathSegment(go.PathSegment.Line,.85*a,b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*b,.55*a,.95*b,.5*a,.75*b));var x=.2,z=.3,ee=0,te=x*se;return y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*b,(.5-x+z)*a,(.5+te+ee)*b,(.5-te+z)*a,(.5+x+ee)*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*b,(.5+te+z)*a,(.5+x+ee)*b,(.5+x+z)*a,(.5+te+ee)*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*b,(1-.5+x+z)*a,(.5-te+ee)*b,(.5+te+z)*a,(.5-x+ee)*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*b,(.5-te+z)*a,(.5-x+ee)*b,(.5-x+z+.05)*a,(.5-te+ee-.02)*b)),x=.2,z=0,ee=-.3,te=x*se,y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*b,(.5+te+z)*a,(.5+x+ee)*b,(.5+x+z)*a,(.5+te+ee)*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*b,(1-.5+x+z)*a,(.5-te+ee)*b,(.5+te+z)*a,(.5-x+ee)*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*b,(.5-te+z)*a,(.5-x+ee)*b,(.5-x+z)*a,(.5-te+ee)*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+x+ee)*b,(.5-x+z)*a,(.5+te+ee)*b,(.5-te+z)*a,(.5+x+ee)*b)),x=.2,z=-.3,ee=0,te=x*se,y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*b,(1-.5+x+z-.05)*a,(.5-te+ee-.02)*b,(.5+te+z)*a,(.5-x+ee)*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*b,(.5-te+z)*a,(.5-x+ee)*b,(.5-x+z)*a,(.5-te+ee)*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*b,(.5-x+z)*a,(.5+te+ee)*b,(.5-te+z)*a,(.5+x+ee)*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*b,(.5+te+z)*a,(.5+x+ee)*b,(.5+x+z)*a,(.5+te+ee)*b).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a*.5,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),y.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,ee=.25;return y.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*b)),y.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,b*ee,x*a,x*a).close()),y=new go.PathFigure(a*.5,0,!1),E.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,y=new go.PathFigure((z+x)*a,ee*b,!0),E.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,b*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ne,a,b){var E=.8535533905932737,y=.5*a,x=.5*b;return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,y,x,y,x)).add(new go.PathSegment(go.PathSegment.Line,y,b)).add(new go.PathSegment(go.PathSegment.Move,y,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*b)).add(new go.PathSegment(go.PathSegment.Move,y,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*b)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,b){var E=new go.Geometry,y=se*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-x)*b);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*b,(z-y)*a,(ee-x)*b,(z-x)*a,(ee-y)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*b,(z-x)*a,(ee+y)*b,(z-y)*a,(ee+x)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*b,(z+y)*a,(ee+x)*b,(z+x)*a,(ee+y)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*b,(z+x)*a,(ee-y)*b,(z+y)*a,(ee-x)*b)),x=.4,y=se*.4;var oe=re(),ae=re(),ge=re(),me=re();Je(z,ee-x,z+y,ee-x,z+x,ee-y,z+x,ee,.42,oe,ae,ge,me,me);var le=re(),Ce=re(),ze=re();Je(z,ee-x,z+y,ee-x,z+x,ee-y,z+x,ee,.58,me,me,ze,le,Ce);var ot=re(),nt=re(),gt=re();Je(z,ee+x,z-y,ee+x,z-x,ee+y,z-x,ee,.42,ot,nt,gt,me,me);var fe=re(),$e=re(),Re=re();return Je(z,ee+x,z-y,ee+x,z-x,ee+y,z-x,ee,.58,me,me,Re,fe,$e),te.add(new go.PathSegment(go.PathSegment.Move,Re.x*a,Re.y*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*b,fe.x*a,fe.y*b,$e.x*a,$e.y*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*b,(z-x)*a,(ee-y)*b,(z-y)*a,(ee-x)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*a,ge.y*b,oe.x*a,oe.y*b,ae.x*a,ae.y*b)),te.add(new go.PathSegment(go.PathSegment.Line,Re.x*a,Re.y*b).close()),te.add(new go.PathSegment(go.PathSegment.Move,gt.x*a,gt.y*b)),te.add(new go.PathSegment(go.PathSegment.Line,ze.x*a,ze.y*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*b,le.x*a,le.y*b,Ce.x*a,Ce.y*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*b,(z+x)*a,(ee+y)*b,(z+y)*a,(ee+x)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,gt.x*a,gt.y*b,ot.x*a,ot.y*b,nt.x*a,nt.y*b).close()),de(oe),de(ae),de(ge),de(me),de(le),de(Ce),de(ze),de(ot),de(nt),de(gt),de(fe),de($e),de(Re),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ne,a,b){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*b)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*b)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*b)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*b)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*b)).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*b,a,.25*b,.75*a,.5*b)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*b)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*b)).add(new go.PathSegment(go.PathSegment.Line,.7*a,b)).add(new go.PathSegment(go.PathSegment.Line,.3*a,b)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*b)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*b)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*b)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*b,0,.25*b).close()))}),go.Shape.setFigureParameter("HourGlass",0,new De("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,b){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var y=(a-E)/2,x=y+E;return new go.Geometry().add(new go.PathFigure(x,.5*b).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,0,b)).add(new go.PathSegment(go.PathSegment.Line,y,.5*b)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,.55*b).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*b)).add(new go.PathSegment(go.PathSegment.Line,a,.45*b)).add(new go.PathSegment(go.PathSegment.Line,.4*a,b)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*b).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,a,b){var E=new go.Geometry,y=se*.4,x=.4,z=.5,ee=.5,te=re(),oe=re(),ae=re(),ge=re(),me=new go.PathFigure((z-x)*a,ee*b,!1);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*b,(z-x)*a,(ee-y)*b,(z-y)*a,(ee-x)*b)),Je(z,ee-x,z+y,ee-x,z+x,ee-y,z+x,ee,.44,ae,ge,oe,te,te),me.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*b,ae.x*a,ae.y*b,ge.x*a,ge.y*b));var le=ie(oe.x,oe.y);Je(z,ee-x,z+y,ee-x,z+x,ee-y,z+x,ee,.56,te,te,oe,ae,ge);var Ce=ie(oe.x,oe.y);me.add(new go.PathSegment(go.PathSegment.Line,(le.x*.1+.95*.9)*a,le.y*.1*b)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,le.y*.1*b)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,.15*b)),me.add(new go.PathSegment(go.PathSegment.Line,(Ce.x*.1+.9)*a,.15*b)),me.add(new go.PathSegment(go.PathSegment.Line,(Ce.x*.1+.9)*a,(Ce.y*.1+.05*.9)*b)),me.add(new go.PathSegment(go.PathSegment.Line,Ce.x*a,Ce.y*b)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*b,ae.x*a,ae.y*b,ge.x*a,ge.y*b)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*b,(z+x)*a,(ee+y)*b,(z+y)*a,(ee+x)*b)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*b,(z-y)*a,(ee+x)*b,(z-x)*a,(ee+y)*b)),x=.35,y=se*.35;var ze=new go.PathFigure(z*a,(ee-x)*b,!1);E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*b,(z-y)*a,(ee-x)*b,(z-x)*a,(ee-y)*b)),ze.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*b,(z-x)*a,(ee+y)*b,(z-y)*a,(ee+x)*b)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*b,(z+y)*a,(ee+x)*b,(z+x)*a,(ee+y)*b)),ze.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*b,(z+x)*a,(ee-y)*b,(z+y)*a,(ee-x)*b));var ot=new go.PathFigure((z-x)*a,ee*b,!1);return E.add(ot),de(te),de(oe),de(ae),de(ge),de(le),de(Ce),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(ne,a,b){var E=new go.Geometry,y=.375,x=0,z=-.125,ee=y*se,te=new go.PathFigure((.525+x)*a,(.5+y+z)*b,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+x)*a,(.5+z)*b,(.5+ee+x)*a,(.5+y+z)*b,(.5+y+x)*a,(.5+ee+z)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-y+z)*b,(1-.5+y+x)*a,(.5-ee+z)*b,(.5+ee+x)*a,(.5-y+z)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+x)*a,(.5+z)*b,(.5-ee+x)*a,(.5-y+z)*b,(.5-y+x)*a,(.5-ee+z)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+y+z)*b,(.5-y+x)*a,(.5+ee+z)*b,(.5-ee+x)*a,(.5+y+z)*b)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*b)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*b)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*b)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*b)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,b)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,b)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*b)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*b)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*b)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*b).close()),y=.325,x=0,z=-.125,ee=y*se;var te=new go.PathFigure((1-.5+y+x)*a,(.5+z)*b,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+y+z)*b,(.5+y+x)*a,(.5+ee+z)*b,(.5+ee+x)*a,(.5+y+z)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+x)*a,(.5+z)*b,(.5-ee+x)*a,(.5+y+z)*b,(.5-y+x)*a,(.5+ee+z)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-y+z)*b,(.5-y+x)*a,(.5-ee+z)*b,(.5-ee+x)*a,(.5-y+z)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+x)*a,(.5+z)*b,(.5+ee+x)*a,(.5-y+z)*b,(1-.5+y+x)*a,(.5-ee+z)*b));var te=new go.PathFigure((.525+x)*a,(.5+y+z)*b,!1);return E.add(te),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(ne,a,b){var E=ne?ne.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*b)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,b)).add(new go.PathSegment(go.PathSegment.Move,0,.5*b)).add(new go.PathSegment(go.PathSegment.Line,a,.5*b))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,a,b){var E=ne?ne.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*b)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,b)).add(new go.PathSegment(go.PathSegment.Move,0,.5*b)).add(new go.PathSegment(go.PathSegment.Line,a,.5*b)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*b)).add(new go.PathSegment(go.PathSegment.Line,E*a,b))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,a,b){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,b)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,b,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,b))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,b)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,a,b){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,b)).add(new go.PathSegment(go.PathSegment.Move,0,.5*b)).add(new go.PathSegment(go.PathSegment.Line,a,.5*b)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*b,.5*a,.5*b)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,a,b){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,b)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,b,!1).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Move,.5*a,b)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,a,b){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*b)).add(new go.PathSegment(go.PathSegment.Line,0,.5*b)).add(new go.PathSegment(go.PathSegment.Move,a,.5*b)).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,0,b)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,b)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*b)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*b))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,a,b){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*b)).add(new go.PathSegment(go.PathSegment.Line,a,.5*b)).add(new go.PathSegment(go.PathSegment.Move,0,b)).add(new go.PathSegment(go.PathSegment.Line,a,b))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,a,b){var E=.5;return new go.Geometry().add(new go.PathFigure(0,b,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*b)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*b,E*a,E*b)).add(new go.PathSegment(go.PathSegment.Line,a,b))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,b){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*b)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*b,E*a,E*b)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new De("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new De("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var y=ne?ne.parameter2:NaN;isNaN(y)&&(y=.3);var x=(1-E)*a,z=(.5-y/2)*b,ee=(.5+y/2)*b,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),oe.add(new go.PathSegment(go.PathSegment.Line,x,b)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/b);var ae=Te(0,ee/b,1,ee/b,x/a,1,1,.5,re());return te.spot2=new go.Spot(ae.x,ae.y),de(ae),te}),go.Shape.setFigureParameter("Arrow2",0,new De("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new De("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var y=ne?ne.parameter2:NaN;isNaN(y)&&(y=30),y=Math.min(y,b/2);var x=a-E,z=(b-y)/2,ee=z+y,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),oe.add(new go.PathSegment(go.PathSegment.Line,x,b)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/b);var ae=Te(0,ee/b,1,ee/b,x/a,1,1,.5,re());return te.spot2=new go.Spot(ae.x,ae.y),de(ae),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*b)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*b)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,1*b).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new De("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var y=(.5-E/2)*b,x=(.5+E/2)*b,z=new go.Geometry,ee=new go.PathFigure(a,.5*b,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=Te(0,.5,.3,0,0,y/b,.1,y/b,re());return z.spot1=new go.Spot(te.x,te.y),te=Te(.7,1,1,.5,0,x/b,1,x/b,te),z.spot2=new go.Spot(te.x,te.y),de(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new De("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new De("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var y=ne?ne.parameter2:NaN;isNaN(y)&&(y=100);var x=(b-E)/2,z=x+E,ee=(b-y)/2,te=ee+y;(E>b||y>b)&&(y>E?(E=E*b/y,x=(b-E)/2,z=x+E,ee=0,te=b):(x=0,z=b,ee=0,te=b));var oe=new go.Geometry,ae=new go.PathFigure(a,.5*b,!0);oe.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ae.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ae.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.5*b)),ae.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ge=Te(0,.5,.3,ee/b,0,x/b,1,x/b,re());return oe.spot1=new go.Spot(ge.x,ge.y),ge=Te(.7,te/b,1,.5,0,z/b,1,z/b,ge),oe.spot2=new go.Spot(ge.x,ge.y),de(ge),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new De("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var y=(.5-E/2)*b,x=(.5+E/2)*b,z=new go.Geometry,ee=new go.PathFigure(a,.5*b,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,y/b);var te=Te(.7,1,1,.5,0,x/b,1,x/b,re());return z.spot2=new go.Spot(te.x,te.y),de(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new De("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new De("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var y=ne?ne.parameter2:NaN;isNaN(y)&&(y=100);var x=(b-E)/2,z=x+E,ee=(b-y)/2,te=ee+y;(E>b||y>b)&&(y>E?(E=E*b/y,x=(b-E)/2,z=x+E,ee=0,te=b):(x=0,z=b,ee=0,te=b));var oe=new go.Geometry,ae=new go.PathFigure(a,.5*b,!0);oe.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,x/b);var ge=Te(.7,te/b,1,.5,0,z/b,1,z/b,re());return oe.spot2=new go.Spot(ge.x,ge.y),de(ge),oe}),go.Shape.setFigureParameter("Pointer",0,new De("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.1);var y=new go.Geometry,x=new go.PathFigure(a,.5*b,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,b)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*b)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),y.spot1=new go.Spot(E,.35);var z=Te(.2,.65,1,.65,0,1,1,.5,re());return y.spot2=new go.Spot(z.x,z.y),de(z),y}),go.Shape.setFigureParameter("RoundedPointer",0,new De("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var y=new go.Geometry,x=new go.PathFigure(a,.5*b,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,b)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*b,E*a,.25*b).close()),y.spot1=new go.Spot(E,.35);var z=Te(0,.65,1,.65,0,1,1,.5,re());return y.spot2=new go.Spot(z.x,z.y),de(z),y}),go.Shape.setFigureParameter("SplitEndArrow",0,new De("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.4);var y=(.5-E/2)*b,x=(.5+E/2)*b,z=new go.Geometry,ee=new go.PathFigure(a,.5*b,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=Te(.7,1,1,.5,0,x/b,1,x/b,re());return z.spot2=new go.Spot(te.x,te.y),de(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new De("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=50);var y=(b-E)/2,x=y+E;E>b&&(y=0,x=b);var z=new go.Geometry,ee=new go.PathFigure(a,.5*b,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,y/b);var te=Te(.7,1,1,.5,0,x/b,1,x/b,re());return z.spot2=new go.Spot(te.x,te.y),de(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new De("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.7);var y=new go.Geometry,x=new go.PathFigure(a,.5*b,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),y.spot1=go.Spot.TopLeft,y.spot2=new go.Spot(E,1),y}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,b){var E=new go.Geometry,y=se*.5,x=se*.1,z=new go.PathFigure(0,.9*b,!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*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b,a,(.9+x)*b,(.5+y)*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*b,(.5-y)*a,b,0,(.9+x)*b).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,.9*b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*b,(1-.85/.9)*a,b,.85/.9*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.9*b).close());var x=new go.PathFigure(0,.9*b,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*b,(1-.85/.9)*a,.8*b,.85/.9*a,.8*b)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.5*a,b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.85*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.15*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.15*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*b).close());var x=new go.PathFigure(.5*a,b,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*b)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*b)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*b)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,.3*b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.7*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*b,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*b)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,b/3);var y=new go.Geometry,x=se*.5,z=new go.PathFigure(0,E,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,se*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,se*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,b-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*b,1*a,b-se*E,(.5+x)*a,1*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b-E,(.5-x)*a,1*b,0,b-se*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-se*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-se*E)),y.spot1=new go.Spot(0,0,0,2*E),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,b/3);var y=new go.Geometry,x=se*.5,z=new go.PathFigure(0,b-E,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,se*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,se*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,b-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b,a,b-se*E,(.5+x)*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b-E,(.5-x)*a,b,0,b-se*E));var ee=new go.PathFigure(0,b-E,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b-2*E,0,b-E-se*E,(.5-x)*a,b-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,b-E,(.5+x)*a,b-2*E,a,b-E-se*E)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,0,-2*E),y}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var y=new go.Geometry,x=se*.5,z=new go.PathFigure(E,0,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,a-se*E,0,a,(.5-x)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,b,a,(.5+x)*b,a-se*E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*b,se*E,b,0,(.5+x)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*b,se*E,0));var ee=new go.PathFigure(E,0,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*b,E+se*E,0,2*E,(.5-x)*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,b,2*E,(.5+x)*b,E+se*E,b)),y.spot1=new go.Spot(0,0,2*E,0),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var y=new go.Geometry,x=se*.5,z=new go.PathFigure(a-E,0,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,a-se*E,0,a,(.5-x)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,b,a,(.5+x)*b,a-se*E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*b,se*E,b,0,(.5+x)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*b,se*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*b,a-E-se*E,0,a-2*E,(.5-x)*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,b,a-2*E,(.5+x)*b,a-E-se*E,b)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,-2*E,0),y}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.25*a,.25*b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var x=new go.PathFigure(.25*a,.25*b,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,.25*b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.25*b)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var x=new go.PathFigure(0,b,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*b)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*b)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*b)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.5*a,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.75*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*b).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.5*a,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.85*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*b).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*b)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*b)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*b)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ne,a,b){var E=new go.Geometry,y=.2,x=.1,z=se*y,ee=se*x,te=.5,oe=.1,ae=new go.PathFigure(te*a,(oe+x)*b,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te-y)*a,oe*b,(te-z)*a,(oe+x)*b,(te-y)*a,(oe+ee)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-x)*b,(te-y)*a,(oe-ee)*b,(te-z)*a,(oe-x)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*a,oe*b,(te+z)*a,(oe-x)*b,(te+y)*a,(oe-ee)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+x)*b,(te+y)*a,(oe+ee)*b,(te+z)*a,(oe+x)*b));var ge=.05,me=se*ge;te=.05,oe=.25;var le=new go.PathFigure(.5*a,.2*b,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*b)),te=.95,oe=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,(te+ge)*a,oe*b,(te+me)*a,(oe-ge)*b,(te+ge)*a,(oe-me)*b)),le.add(new go.PathSegment(go.PathSegment.Line,a,.6*b)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*b)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*b)),ge=.025,me=se*ge,te=.825,oe=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ge)*b,(te+ge)*a,(oe-me)*b,(te+me)*a,(oe-ge)*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,oe*b,(te-me)*a,(oe-ge)*b,(te-ge)*a,(oe-me)*b)),le.add(new go.PathSegment(go.PathSegment.Line,.8*a,b)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,b)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*b)),ge=.05,me=se*ge,te=.5,oe=.7,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ge)*b,(te+ge)*a,(oe-me)*b,(te+me)*a,(oe-ge)*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,oe*b,(te-me)*a,(oe-ge)*b,(te-ge)*a,(oe-me)*b)),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,b)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*b)),ge=.025,me=se*ge,te=.175,oe=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ge)*b,(te+ge)*a,(oe-me)*b,(te+me)*a,(oe-ge)*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,oe*b,(te-me)*a,(oe-ge)*b,(te-ge)*a,(oe-me)*b)),le.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*b)),le.add(new go.PathSegment(go.PathSegment.Line,0,.6*b)),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*b)),ge=.05,me=se*ge,te=.05,oe=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ge)*b,(te-ge)*a,(oe-me)*b,(te-me)*a,(oe-ge)*b)),le.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*b)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new De("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,b){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var y=new go.Geometry,x=new go.PathFigure(a,0,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*b)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),y.spot1=new go.Spot(0,E),y.spot2=go.Spot.BottomRight,y}),go.Shape.defineFigureGenerator("Collate",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.5*a,.5*b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b));var x=new go.PathFigure(.5*a,.5*b,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,b){var E=new go.Geometry,y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.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,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var z=new go.PathFigure(0,y*b,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y*b)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*b)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-y)*b)),E}),go.Shape.defineFigureGenerator("Database",function(ne,a,b){var E=new go.Geometry,y=se*.5,x=se*.1,z=new go.PathFigure(a,.1*b,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b,a,(.9+x)*b,(.5+y)*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*b,(.5-y)*a,b,0,(.9+x)*b)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*b,(.5-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*b,(.5+y)*a,0,a,(.1-x)*b));var ee=new go.PathFigure(a,.1*b,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*b,a,(.1+x)*b,(.5+y)*a,.2*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*b,(.5-y)*a,.2*b,0,(.1+x)*b)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*b,a,(.2+x)*b,(.5+y)*a,.3*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*b,(.5-y)*a,.3*b,0,(.2+x)*b)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*b,a,(.3+x)*b,(.5+y)*a,.4*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*b,(.5-y)*a,.4*b,0,(.3+x)*b)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,b,a,0,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*b,.25*a,.1*b).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,b){var E=new go.Geometry,y=se*.5,x=se*.1,z=new go.PathFigure(a,.1*b,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b,a,(.9+x)*b,(.5+y)*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*b,(.5-y)*a,b,0,(.9+x)*b)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*b,(.5-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*b,(.5+y)*a,0,a,(.1-x)*b));var ee=new go.PathFigure(a,.1*b,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*b,a,(.1+x)*b,(.5+y)*a,.2*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*b,(.5-y)*a,.2*b,0,(.1+x)*b)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*b,a,(.2+x)*b,(.5+y)*a,.3*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*b,(.5-y)*a,.3*b,0,(.2+x)*b)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.25*a,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,b,a,0,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.25*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*b).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,b){var E=new go.Geometry,y=ne?ne.parameter1:NaN;isNaN(y)?y=.2:y<.15&&(y=.15);var x=se*.2,z=new go.PathFigure(0,.2*b,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*b,(.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*b,(.8+x)*a,0,a,(.2-x)*b)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,b,a,(.8+x)*b,(.8+x)*a,b)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*b,(.2-x)*a,b,0,(.8+x)*b)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*b));var ee=new go.PathFigure(0,y*b,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,y*b)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,b){var E=new go.Geometry,y=ne?ne.parameter1:NaN;(isNaN(y)||y<.1)&&(y=.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,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var z=new go.PathFigure(0,y*b,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y*b)),E}),go.Shape.defineFigureGenerator("Document",function(ne,a,b){var E=new go.Geometry;b=b/.8;var y=new go.PathFigure(0,.7*b,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.7*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*b,.5*a,.4*b,.5*a,b).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,b){var E=new go.Geometry,y=ne?ne.parameter1:NaN;(isNaN(y)||y<.2)&&(y=.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,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var z=new go.PathFigure(y*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,y*b)),z.add(new go.PathSegment(go.PathSegment.Move,a,y*b)),z.add(new go.PathSegment(go.PathSegment.Line,(1-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*b)),z.add(new go.PathSegment(go.PathSegment.Line,y*a,b)),z.add(new go.PathSegment(go.PathSegment.Move,(1-y)*a,b)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-y)*b)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.5*a,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*b).close());var x=new go.PathFigure(.1*a,.4*b,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*b)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*b)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*b)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*b)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*b)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*b)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*b)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.25*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b).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*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*b)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a,.5*b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b));var x=new go.PathFigure(a,.5*b,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,b));var z=new go.PathFigure(a,.5*b,!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(ne,a,b){var E=new go.Geometry,y=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(y)&&(y=.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,b)),z.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var ee=new go.PathFigure(y*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*a,b)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*b)),E}),go.Shape.defineFigureGenerator("Junction",function(ne,a,b){var E=new go.Geometry,y=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=se*.5,ee=.5,te=new go.PathFigure(a,ee*b,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,b,a,(ee+z)*b,(ee+z)*a,b)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*b,(ee-z)*a,b,0,(ee+z)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*b,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*b,(ee+z)*a,0,a,(ee-z)*b));var oe=new go.PathFigure((x+y)*a,(x+y)*b,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x*a,x*b)),oe.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+y)*b)),oe.add(new go.PathSegment(go.PathSegment.Line,(x+y)*a,x*b)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,b){var E=new go.Geometry;b=b/.8;var y=new go.PathFigure(0,.7*b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.7*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*b,.5*a,.4*b,.5*a,b).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*b)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,b,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*b)),y.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.25*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,b){var E=new go.Geometry,y=se*.5,x=.5,z=new go.PathFigure(.5*a,b,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*b,(x-y)*a,b,0,(x+y)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-y)*b,(x-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*b,(x+y)*a,0,a,(x-y)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*b,a,(x+y)*b,(x+y)*a,.9*b)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*b)),z.add(new go.PathSegment(go.PathSegment.Line,a,b)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*b).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,b){var E=new go.Geometry,y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.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,y*a,.5*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,b){var E=new go.Geometry,y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,b)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-y)*b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.15*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.85*b)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,b){var E=new go.Geometry;b=b/.8;var y=new go.PathFigure(a,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*b,.96*a,.47*b,.93*a,.45*b)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*b,.86*a,.57*b,.83*a,.55*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*b,.4*a,.4*b,.4*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*b)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*b)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*b,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*b)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*b)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*b)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*b)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*b)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.1*a,.1*b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*b)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*b).close());var x=new go.PathFigure(.2*a,.1*b,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*b)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*b)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*b)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*b)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*b)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,b){var E=new go.Geometry,y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.1);var x=1-y,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,b).close());var ee=new go.PathFigure(.5*y*a,y*b,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*y)*a,y*b)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ne,a,b){var E=new go.Geometry,y=se*.5,x=.5,z=new go.PathFigure(a,x*b,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,b,a,(x+y)*b,(x+y)*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*b,(x-y)*a,b,0,(x+y)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-y)*b,(x-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*b,(x+y)*a,0,a,(x-y)*b));var ee=new go.PathFigure(a,.5*b,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*b)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,b){var E=new go.Geometry;b=b/.8;var y=new go.PathFigure(0,.7*b,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.3*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*b,.5*a,.6*b,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.7*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*b,.5*a,.4*b,.5*a,b).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,b){var E=new go.Geometry,y=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(y)&&(y=.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*b)),z.add(new go.PathSegment(go.PathSegment.Line,a,b)),z.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,b){var E=new go.Geometry,y=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(y)&&(y=.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*b)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,b)),z.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,b){var E=new go.Geometry,y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.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,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var z=new go.PathFigure((1-y)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-y)*a,b)),z.add(new go.PathSegment(go.PathSegment.Move,y*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,y*a,b)),E}),go.Shape.defineFigureGenerator("Process",function(ne,a,b){var E=new go.Geometry,y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.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,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var z=new go.PathFigure(y*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*a,b)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.5*a,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*b).close());var x=new go.PathFigure(0,.5*b,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ne,a,b){var E=new go.Geometry,y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.25);var x=new go.PathFigure(y*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*b,.25*a,.5*b)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*b,.25*a,.5*b));var z=new go.PathFigure(y*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*a,b)),z.add(new go.PathSegment(go.PathSegment.Move,(1-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-y)*a,b)),E.spot1=new go.Spot(y,0),E.spot2=new go.Spot(1-y,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.25*a,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*b,.25*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*b,.25*a,.5*b)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,b){var E=new go.Geometry,y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.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,b)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-y)*b)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-y)*b).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,b){var E=new go.Geometry,y=se*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,(.5+y)*a,0,a,(.5-y)*b)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b,a,(.5+y)*b,(.5+y)*a,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ne,a,b){var E=new go.Geometry,y=se*.5,x=.5,z=new go.PathFigure(a,x*b,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,b,a,(x+y)*b,(x+y)*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*b,(x-y)*a,b,0,(x+y)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-y)*b,(x-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*b,(x+y)*a,0,a,(x-y)*b));var ee=new go.PathFigure(a,x*b,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*b));var te=new go.PathFigure(.8*a,.75*b,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*b)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*b)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*b)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*b)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*b)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*b)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*b)),E}),go.Shape.defineFigureGenerator("Ground",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.5*a,0,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*b)),y.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Move,.4*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,b)),E}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,b){var E=new go.Geometry,y=se*.1,x=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*b,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,b)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*b));var oe=new go.PathFigure((z+x)*a,ee*b,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*b,(z+x)*a,(ee+y)*b,(z+y)*a,(ee+x)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*b,(z-y)*a,(ee+x)*b,(z-x)*a,(ee+y)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*b,(z-x)*a,(ee-y)*b,(z-y)*a,(ee-x)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*b,(z+y)*a,(ee-x)*b,(z+x)*a,(ee-y)*b)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,b){var E=new go.Geometry,y=se*.5,x=se*.4,z=se*.1,ee=.1,te=.9,oe=.5,ae=new go.PathFigure(.8*a,.5*b,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,b,.8*a,(.5+x)*b,(.4+y)*a,b)),ae.add(new go.PathSegment(go.PathSegment.Line,0,b)),ae.add(new go.PathSegment(go.PathSegment.Line,0,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*b,(.4+y)*a,0,.8*a,(.5-x)*b));var ge=new go.PathFigure((te+ee)*a,oe*b,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+ee)*b,(te+ee)*a,(oe+z)*b,(te+z)*a,(oe+ee)*b)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,oe*b,(te-z)*a,(oe+ee)*b,(te-ee)*a,(oe+z)*b)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ee)*b,(te-ee)*a,(oe-z)*b,(te-z)*a,(oe-ee)*b)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,oe*b,(te+z)*a,(oe-ee)*b,(te+ee)*a,(oe-z)*b)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,b){var E=new go.Geometry,y=.5,x=se*y,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*b,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,b,.7*a,(ee+x)*b,(z+x)*a,(ee+y)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*b,.25*a,.25*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*b,(z+x)*a,(ee-y)*b,.7*a,(ee-x)*b)),y=.1,x=se*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-y)*a,ee*b,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-y)*b,(z-y)*a,(ee-x)*b,(z-x)*a,(ee-y)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,ee*b,(z+x)*a,(ee-y)*b,(z+y)*a,(ee-x)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+y)*b,(z+y)*a,(ee+x)*b,(z+x)*a,(ee+y)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*a,ee*b,(z-x)*a,(ee+y)*b,(z-y)*a,(ee+x)*b)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,b){var E=new go.Geometry,y=.5,x=se*y,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,(z+x+x)*a,(ee-y)*b,.8*a,(ee-x)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,b,.8*a,(ee+x)*b,(z+x+x)*a,(ee+y)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*b,.25*a,.25*b).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,b){var E=new go.Geometry,y=.5,x=se*y,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,b,.35*a,.25*b,.35*a,.75*b));var oe=new go.PathFigure(.8*a,.5*b,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,b,.7*a,(ee+x)*b,(z+x)*a,(ee+y)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*b,.45*a,.25*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*b,(z+x)*a,(ee-y)*b,.7*a,(ee-x)*b)),y=.1,x=se*.1,z=.9,ee=.5;var ae=new go.PathFigure((z-y)*a,ee*b,!0);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-y)*b,(z-y)*a,(ee-x)*b,(z-x)*a,(ee-y)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,ee*b,(z+x)*a,(ee-y)*b,(z+y)*a,(ee-x)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+y)*b,(z+y)*a,(ee+x)*b,(z+x)*a,(ee+y)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*a,ee*b,(z-x)*a,(ee+y)*b,(z-y)*a,(ee+x)*b)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,b){var E=new go.Geometry,y=.5,x=se*y,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,b,.35*a,.25*b,.35*a,.75*b));var oe=new go.PathFigure(.2*a,0,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,(z+x)*a,(ee-y)*b,.9*a,(ee-x)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,b,.9*a,(ee+x)*b,(z+x)*a,(ee+y)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*b,.45*a,.25*b).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Move,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),E}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,.5*b,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*b)),E}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,b){var E=new go.Geometry,y=se*.1,x=.1,z=.1,ee=.5,te=new go.PathFigure((z-y*.5)*a,b,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-y)*a,b,(z-x)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,b,(z+x)*a,0,(z+y)*a,b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-y)*a,b,(z-x)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,b,(z+x)*a,0,(z+y)*a,b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-y)*a,b,(z-x)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,b,(z+x)*a,0,(z+y)*a,b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-y)*a,b,(z-x)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+y*.5)*a,b,(z+x)*a,0,(z+y)*a,b)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,b){var E=new go.Geometry,y=se*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure((z-x)*a,ee*b,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*b,(z-x)*a,(ee-y)*b,(z-y)*a,(ee-x)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*b,(z+y)*a,(ee-x)*b,(z+x)*a,(ee-y)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*b,(z+x)*a,(ee+y)*b,(z+y)*a,(ee+x)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*b,(z-y)*a,(ee+x)*b,(z-x)*a,(ee+y)*b)),te.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*b,z*a,(ee-x)*b,z*a,(ee+x)*b)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,.75*b,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*b)),y.add(new go.PathSegment(go.PathSegment.Move,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),E}),go.Shape.defineFigureGenerator("Diode",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a,0,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,b){var E=new go.Geometry,y=a,x=b;a=a*.38,b=b*.6;var z=se*.8,ee=.8,te=0,oe=.5,ae=(y-a)/2,ge=(x-b)/2,me=new go.PathFigure(te*a+ae,(oe+ee)*b+ge,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ae,oe*b+ge,(te-z)*a+ae,(oe+ee)*b+ge,(te-ee)*a+ae,(oe+z)*b+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ae,(oe-ee)*b+ge,(te-ee)*a+ae,(oe-z)*b+ge,(te-z)*a+ae,(oe-ee)*b+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ae,oe*b+ge,te*a+ae,(oe-ee)*b+ge,(te-ee+z*.5)*a+ae,(oe-z)*b+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ae,(oe+ee)*b+ge,(te-ee+z*.5)*a+ae,(oe+z)*b+ge,te*a+ae,(oe+ee)*b+ge).close()),z=se*.4,ee=.4,te=.2,oe=.5;var le=new go.PathFigure(te*a+ae,(oe+ee)*b+ge,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ae,oe*b+ge,(te-z)*a+ae,(oe+ee)*b+ge,(te-ee)*a+ae,(oe+z)*b+ge)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ae,(oe-ee)*b+ge,(te-ee)*a+ae,(oe-z)*b+ge,(te-z)*a+ae,(oe-ee)*b+ge)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ae,oe*b+ge,te*a+ae,(oe-ee)*b+ge,(te-ee+z*.5)*a+ae,(oe-z)*b+ge)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ae,(oe+ee)*b+ge,(te-ee+z*.5)*a+ae,(oe+z)*b+ge,te*a+ae,(oe+ee)*b+ge).close()),z=se*.2,ee=.2,te=.5,oe=.5;var Ce=new go.PathFigure((te-ee)*a+ae,oe*b+ge,!0);E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ae,(oe-ee)*b+ge,(te-ee)*a+ae,(oe-z)*b+ge,(te-z)*a+ae,(oe-ee)*b+ge)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ae,oe*b+ge,(te+z)*a+ae,(oe-ee)*b+ge,(te+ee)*a+ae,(oe-z)*b+ge)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ae,(oe+ee)*b+ge,(te+ee)*a+ae,(oe+z)*b+ge,(te+z)*a+ae,(oe+ee)*b+ge)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ae,oe*b+ge,(te-z)*a+ae,(oe+ee)*b+ge,(te-ee)*a+ae,(oe+z)*b+ge)),z=se*.4,ee=.4,te=.8,oe=.5;var ze=new go.PathFigure(te*a+ae,(oe-ee)*b+ge,!0);E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ae,oe*b+ge,(te+z)*a+ae,(oe-ee)*b+ge,(te+ee)*a+ae,(oe-z)*b+ge)),ze.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ae,(oe+ee)*b+ge,(te+ee)*a+ae,(oe+z)*b+ge,(te+z)*a+ae,(oe+ee)*b+ge)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ae,oe*b+ge,te*a+ae,(oe+ee)*b+ge,(te+ee-z*.5)*a+ae,(oe+z)*b+ge)),ze.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ae,(oe-ee)*b+ge,(te+ee-z*.5)*a+ae,(oe-z)*b+ge,te*a+ae,(oe-ee)*b+ge).close()),z=se*.8,ee=.8,te=1,oe=.5;var ot=new go.PathFigure(te*a+ae,(oe-ee)*b+ge,!0);return E.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ae,oe*b+ge,(te+z)*a+ae,(oe-ee)*b+ge,(te+ee)*a+ae,(oe-z)*b+ge)),ot.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ae,(oe+ee)*b+ge,(te+ee)*a+ae,(oe+z)*b+ge,(te+z)*a+ae,(oe+ee)*b+ge)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ae,oe*b+ge,te*a+ae,(oe+ee)*b+ge,(te+ee-z*.5)*a+ae,(oe+z)*b+ge)),ot.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ae,(oe-ee)*b+ge,(te+ee-z*.5)*a+ae,(oe-z)*b+ge,te*a+ae,(oe-ee)*b+ge).close()),E}),go.Shape.defineFigureGenerator("Email",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.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*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,b)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*b)),x.add(new go.PathSegment(go.PathSegment.Move,a,b)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*b)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.35*a,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*b)),y.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*b)),y.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,b,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,b)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*b)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*b)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,b).close());var z=new go.PathFigure(.6*a,b,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,b)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*b)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*b)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,b).close());var ee=new go.PathFigure(0,.5*b,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*b)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*b)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*b)),E}),go.Shape.defineFigureGenerator("Power",function(ne,a,b){var E=new go.Geometry,y=se*.4,x=.4,z=.5,ee=.5,te=re(),oe=re(),ae=re(),ge=re();Je(z,ee-x,z+y,ee-x,z+x,ee-y,z+x,ee,.5,te,te,oe,ae,ge);var me=ie(oe.x,oe.y),le=new go.PathFigure(oe.x*a,oe.y*b,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*b,ae.x*a,ae.y*b,ge.x*a,ge.y*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*b,(z+x)*a,(ee+y)*b,(z+y)*a,(ee+x)*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*b,(z-y)*a,(ee+x)*b,(z-x)*a,(ee+y)*b)),Je(z-x,ee,z-x,ee-y,z-y,ee-x,z,ee-x,.5,ae,ge,oe,te,te),le.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*b,ae.x*a,ae.y*b,ge.x*a,ge.y*b)),y=se*.3,x=.3,Je(z-x,ee,z-x,ee-y,z-y,ee-x,z,ee-x,.5,ae,ge,oe,te,te),le.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*b,ge.x*a,ge.y*b,ae.x*a,ae.y*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*b,(z-x)*a,(ee+y)*b,(z-y)*a,(ee+x)*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*b,(z+y)*a,(ee+x)*b,(z+x)*a,(ee+y)*b)),Je(z,ee-x,z+y,ee-x,z+x,ee-y,z+x,ee,.5,te,te,oe,ae,ge),le.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*b,ge.x*a,ge.y*b,ae.x*a,ae.y*b).close());var le=new go.PathFigure(.45*a,0,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*b)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*b)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),de(te),de(oe),de(ae),de(ge),de(me),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,b/2,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,b/2,a/2,b/2));function x(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*b)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*b)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*b)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*b).close())}return x(y,0,0),x(y,.4,0),x(y,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.2*a,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*b)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*b).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.37*a,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*b)),y.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*b)),y.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.37*b)),y.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*b)),y.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*b)),y.add(new go.PathSegment(go.PathSegment.Line,.34*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*b)),y.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.68*b).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.1*a,b,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*b,.45*a,.44*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*b,.48*a,.17*b,.54*a,.35*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*b,.59*a,.29*b,.58*a,.28*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*b,.8*a,.34*b,.88*a,.43*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*b,.87*a,.48*b,.88*a,.43*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,b,1.17*a,.76*b,.82*a,.8*b).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,b){var E=new go.Geometry,y=.5,x=0,z=0,ee=y*se,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,ae=1,ge=.5,me=.5,le=0,Ce=new go.PathFigure(te*a,(1-oe)*b,!1);return E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,ge*b,ae*a,.7*b,ae*a,ge*b)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(me+x)*a,(le+x)*b,(.5+y+x)*a,(.5-ee+x)*b,(.5+ee+x)*a,(.5-y+x)*b)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+x)*a,(.5+z)*b,(.5-ee+x)*a,(.5-y+z)*b,(.5-y+x)*a,(.5-ee+z)*b)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*b,(.5-y+x)*a,(.5+ee+z)*b,(.5-ee+x)*a,.9*b)),Ce.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*b)),Ce.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*b)),Ce.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*b)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Move,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Move,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!1);E.add(y);var x=new go.PathFigure(a,b,!1);E.add(x);var z=new go.PathFigure(0,.5*b,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*b,.2*a,.35*b,.3*a,.35*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,.7*a,.65*b,.8*a,.65*b)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,.5*b,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,.2*b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*b).close());var y=new go.PathFigure(0,.2*b,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.2*b)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.7*a,b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*b,0,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,b,.4*a,.5*b,a,.5*b).close());var x=new go.PathFigure(.45*a,.73*b,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*b)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*b)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*b)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*b)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*b)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!1);E.add(y);var x=new go.PathFigure(.335*a,(1-.555)*b,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*b)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*b)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*b)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*b,(1-.12)*a,.46*b,(1-.02)*a,.54*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,b)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*b)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*b,.02*a,.54*b,.12*a,.46*b)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*b));var z=.5-.285,ee=.5,te=z,oe=Math.PI/4,ae=4*(1-Math.cos(oe))/(3*Math.sin(oe)),ge=ae*.5,me=z,le=z,Ce=ae*me,ze=ae*le;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-me)*a,te*b,(ee-(Ce+me)/2)*a,(te+(le+ze)/2)*b,(ee-me)*a,(te+ze)*b)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-le)*b,(ee-me)*a,(te-ze)*b,(ee-Ce)*a,(te-le)*b)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+me)*a,te*b,(ee+Ce)*a,(te-le)*b,(ee+me)*a,(te-ze)*b)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*b,(ee+me)*a,(te+ze)*b,(ee+(Ce+me)/2)*a,(te+(le+ze)/2)*b)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*b)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*b)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*b)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*b));var ot=new go.PathFigure(.2*a,b,!1);E.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*b));var nt=new go.PathFigure(.8*a,b,!1);return E.add(nt),nt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*b)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.1*a,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,b).close());var x=new go.PathFigure(.2*a,.2*b,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*b)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*b)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*b)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*b)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*b)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*b)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*b)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,b,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*b).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!1);E.add(y);var x=new go.PathFigure(a,b,!1);E.add(x);var z=new go.PathFigure(.1*a,b,!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,b)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.05*a,b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*b,0,b,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*b,.5*a,0,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,b,a,b,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.05*a,b));var x=.05;return y.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*b)),y.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*b,x*a,x*b)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*b,.575*a,.725*b,.625*a,.375*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*b,.375*a,.375*b,.425*a,.725*b)),E}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.45*a,.95*b,!1);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*b,.17*a,.95*b,.15*a,.9*b)),y.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*b)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*b)),y.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*b)),y.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*b)),y.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*b)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*b,0,.675*b,0,.7*b)),y.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*b)),y.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*b)),y.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*b));var x=new go.PathFigure(.475*a,.2*b,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*b)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*b)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*b)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*b)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*b,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*b)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*b)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*b)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*b)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*b)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*b)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*b,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*b));var z=new go.PathFigure(.675*a,.575*b,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*b)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*b,a,.8*b,a,.85*b)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*b)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,b)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*b)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*b)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*b)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*b)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*b)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*b)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*b)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,b){var E=new go.Geometry,y=.5,x=se*.5,z=new go.PathFigure(a,y*b,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,y*a,b,a,(y+x)*b,(y+x)*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y*b,(y-x)*a,b,0,(y+x)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,y*a,0,0,(y-x)*b,(y-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,y*b,(y+x)*a,0,a,(y-x)*b));var ee=new go.PathFigure(y*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*a,.15*b)),ee.add(new go.PathSegment(go.PathSegment.Move,y*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,y*a,.85*b)),ee.add(new go.PathSegment(go.PathSegment.Move,0,y*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,y*b)),ee.add(new go.PathSegment(go.PathSegment.Move,a,y*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,y*b)),ee.add(new go.PathSegment(go.PathSegment.Move,y*a,y*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*b)),ee.add(new go.PathSegment(go.PathSegment.Move,y*a,y*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*b)),E}),go.Shape.defineFigureGenerator("Package",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,.15*b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.15*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var x=new go.PathFigure(0,.15*b,!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*b).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*b,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*b).close());var z=new go.PathFigure(0,.5*b,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*b).close()),E}),go.Shape.defineFigureGenerator("Component",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a,b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b).close());var x=new go.PathFigure(0,.2*b,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*b)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*b)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*b)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*b).close());var z=new go.PathFigure(0,.6*b,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*b)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*b)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*b)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*b).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.15*a,.6*b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.85*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*b));var x=new go.PathFigure(.15*a,.6*b,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*b)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a,b,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*b)),y.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*b)),y.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,b,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.65*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*b)),y.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*b)),y.add(new go.PathSegment(go.PathSegment.Line,.35*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.33*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*b)),y.add(new go.PathSegment(go.PathSegment.Move,a,.33*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.66*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.66*b)),y.add(new go.PathSegment(go.PathSegment.Move,a,.66*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*b,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*b)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*b)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*b).close());var z=.1,ee=se*.1,te=.2,oe=.9,ae=new go.PathFigure((te-z)*a,oe*b,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*b,(te-z)*a,(oe-ee)*b,(te-ee)*a,(oe-z)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*b,(te+ee)*a,(oe-z)*b,(te+z)*a,(oe-ee)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*b,(te+z)*a,(oe+ee)*b,(te+ee)*a,(oe+z)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*b,(te-ee)*a,(oe+z)*b,(te-z)*a,(oe+ee)*b).close()),z=.1,ee=se*.1,te=.8,oe=.9;var ge=new go.PathFigure((te-z)*a,oe*b,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*b,(te-z)*a,(oe-ee)*b,(te-ee)*a,(oe-z)*b)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*b,(te+ee)*a,(oe-z)*b,(te+z)*a,(oe-ee)*b)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*b,(te+z)*a,(oe+ee)*b,(te+ee)*a,(oe+z)*b)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*b,(te-ee)*a,(oe+z)*b,(te-z)*a,(oe+ee)*b).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.2*a,0,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,b)),E}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*b,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*b)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*b)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*b));var z=new go.PathFigure(.5*a,.8*b,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*b)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*b)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*b)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*b));var ee=new go.PathFigure(.5*a,.7*b,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*b));var te=.1,oe=se*.1,ae=.1,ge=.9,me=new go.PathFigure((ae-te)*a,ge*b,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ge-te)*b,(ae-te)*a,(ge-oe)*b,(ae-oe)*a,(ge-te)*b)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ae+te)*a,ge*b,(ae+oe)*a,(ge-te)*b,(ae+te)*a,(ge-oe)*b)),me.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ge+te)*b,(ae+te)*a,(ge+oe)*b,(ae+oe)*a,(ge+te)*b)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ae-te)*a,ge*b,(ae-oe)*a,(ge+te)*b,(ae-te)*a,(ge+oe)*b)),te=.1,oe=se*.1,ae=.4,ge=.9;var le=new go.PathFigure((ae-te)*a,ge*b,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ge-te)*b,(ae-te)*a,(ge-oe)*b,(ae-oe)*a,(ge-te)*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ae+te)*a,ge*b,(ae+oe)*a,(ge-te)*b,(ae+te)*a,(ge-oe)*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ge+te)*b,(ae+te)*a,(ge+oe)*b,(ae+oe)*a,(ge+te)*b)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ae-te)*a,ge*b,(ae-oe)*a,(ge+te)*b,(ae-te)*a,(ge+oe)*b)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.1*a,.4*b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*b)),y.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*b)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*b)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*b).close());var x=new go.PathFigure(.45*a,.7*b,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*b));var z=new go.PathFigure(.55*a,.4*b,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*b)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*b)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*b)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*b).close());var ae=.05,ge=se*.05,me=.175,le=.95,ee=new go.PathFigure((me-ae)*a,le*b,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le-ae)*b,(me-ae)*a,(le-ge)*b,(me-ge)*a,(le-ae)*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me+ae)*a,le*b,(me+ge)*a,(le-ae)*b,(me+ae)*a,(le-ge)*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le+ae)*b,(me+ae)*a,(le+ge)*b,(me+ge)*a,(le+ae)*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me-ae)*a,le*b,(me-ge)*a,(le+ae)*b,(me-ae)*a,(le+ge)*b));var ae=.05,ge=se*.05,me=.375,le=.95,te=new go.PathFigure((me-ae)*a,le*b,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le-ae)*b,(me-ae)*a,(le-ge)*b,(me-ge)*a,(le-ae)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me+ae)*a,le*b,(me+ge)*a,(le-ae)*b,(me+ae)*a,(le-ge)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le+ae)*b,(me+ae)*a,(le+ge)*b,(me+ge)*a,(le+ae)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me-ae)*a,le*b,(me-ge)*a,(le+ae)*b,(me-ae)*a,(le+ge)*b));var ae=.05,ge=se*.05,me=.625,le=.95,oe=new go.PathFigure((me-ae)*a,le*b,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le-ae)*b,(me-ae)*a,(le-ge)*b,(me-ge)*a,(le-ae)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ae)*a,le*b,(me+ge)*a,(le-ae)*b,(me+ae)*a,(le-ge)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le+ae)*b,(me+ae)*a,(le+ge)*b,(me+ge)*a,(le+ae)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ae)*a,le*b,(me-ge)*a,(le+ae)*b,(me-ae)*a,(le+ge)*b));var ae=.05,ge=se*.05,me=.825,le=.95,Ce=new go.PathFigure((me-ae)*a,le*b,!0);E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le-ae)*b,(me-ae)*a,(le-ge)*b,(me-ge)*a,(le-ae)*b)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(me+ae)*a,le*b,(me+ge)*a,(le-ae)*b,(me+ae)*a,(le-ge)*b)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le+ae)*b,(me+ae)*a,(le+ge)*b,(me+ge)*a,(le+ae)*b)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(me-ae)*a,le*b,(me-ge)*a,(le+ae)*b,(me-ae)*a,(le+ge)*b).close());var ze=new go.PathFigure(0,b,!1);return E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Line,a,b).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*b,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*b).close());var z=new go.PathFigure(.15*a,b,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*b)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*b)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,b)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,b).close());var ee=.05,te=se*.05,oe=.35,ae=.775,ge=new go.PathFigure((oe-ee)*a,ae*b,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ae-ee)*b,(oe-ee)*a,(ae-te)*b,(oe-te)*a,(ae-ee)*b)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,ae*b,(oe+te)*a,(ae-ee)*b,(oe+ee)*a,(ae-te)*b)),ge.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ae+ee)*b,(oe+ee)*a,(ae+te)*b,(oe+te)*a,(ae+ee)*b)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,ae*b,(oe-te)*a,(ae+ee)*b,(oe-ee)*a,(ae+te)*b).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,b,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*b).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,.75*b,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.25*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.75*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*b)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*b)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*b)),E}),go.Shape.defineFigureGenerator("Globe",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.5*a,0,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,.75*a,0,a,.25*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b,a,.75*b,.75*a,b)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*b,.25*a,b,0,.75*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*b,.25*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b,.15*a,.25*b,.15*a,.75*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*b,.85*a,.25*b)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*b,.35*a,.3*b,.65*a,.3*b)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*b,.35*a,.7*b,.65*a,.7*b)),E}),go.Shape.defineFigureGenerator("Wave",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,.25*b,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*b,.1*a,0,.2*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*b,.425*a,.5*b,.575*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*b,.8*a,0,.9*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.75*b)),y.add(new go.PathSegment(go.PathSegment.Move,0,.25*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*b,.1*a,.5*b,.2*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*b,.425*a,b,.575*a,b)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*b,.8*a,.5*b,.9*a,.5*b)),E}),go.Shape.defineFigureGenerator("Operator",function(ne,a,b){var E=new go.Geometry,y=.3,x=se*.3,z=.5,ee=.7,te=new go.PathFigure((z-y)*a,ee*b,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-y)*b,(z-y)*a,(ee-x)*b,(z-x)*a,(ee-y)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,ee*b,(z+x)*a,(ee-y)*b,(z+y)*a,(ee-x)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+y)*b,(z+y)*a,(ee+x)*b,(z+x)*a,(ee+y)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*a,ee*b,(z-x)*a,(ee+y)*b,(z-y)*a,(ee+x)*b));var oe=new go.PathFigure(0,.7*b,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*b,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.5*a,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*b,.65*a,.3*b,.65*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*b,.35*a,.3*b)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,b,.3*a,.6*b,.1*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*b,.2*a,b,.35*a,.95*b)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,b,.7*a,.6*b,.9*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*b,.8*a,b,.65*a,.95*b)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*b,0,.075*b,0,.5*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,b,0,b,.4*a,b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*b,.8*a,b,.85*a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.4*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.1*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.1*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*b)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*b));var x=new go.PathFigure(0,.6*b,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*b)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*b)),E}),go.Shape.defineFigureGenerator("Delete",function(ne,a,b){var E=new go.Geometry,y=.5,x=se*.5,z=.5,ee=.5,te=new go.PathFigure((z-y)*a,ee*b,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-y)*b,(z-y)*a,(ee-x)*b,(z-x)*a,(ee-y)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,ee*b,(z+x)*a,(ee-y)*b,(z+y)*a,(ee-x)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+y)*b,(z+y)*a,(ee+x)*b,(z+x)*a,(ee+y)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*a,ee*b,(z-x)*a,(ee+y)*b,(z-y)*a,(ee+x)*b));var oe=new go.PathFigure(.15*a,.5*b,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*b)),E}),go.Shape.defineFigureGenerator("Flag",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,.1*b,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Move,0,.1*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*b,.15*a,0,.35*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*b,.65*a,.2*b,.85*a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*b,.85*a,.6*b,.65*a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*b,.35*a,.4*b,.15*a,.4*b).close()),E}),go.Shape.defineFigureGenerator("Help",function(ne,a,b){var E=new go.Geometry,y=.5,x=se*.5,z=.5,ee=.5,te=new go.PathFigure((z-y)*a,ee*b,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-y)*b,(z-y)*a,(ee-x)*b,(z-x)*a,(ee-y)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,ee*b,(z+x)*a,(ee-y)*b,(z+y)*a,(ee-x)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+y)*b,(z+y)*a,(ee+x)*b,(z+x)*a,(ee+y)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*a,ee*b,(z-x)*a,(ee+y)*b,(z-y)*a,(ee+x)*b).close()),y=.05,x=se*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-y)*a,ee*b,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-y)*b,(z-y)*a,(ee-x)*b,(z-x)*a,(ee-y)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,ee*b,(z+x)*a,(ee-y)*b,(z+y)*a,(ee-x)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+y)*b,(z+y)*a,(ee+x)*b,(z+x)*a,(ee+y)*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*a,ee*b,(z-x)*a,(ee+y)*b,(z-y)*a,(ee+x)*b).close()),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*b)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*b,.75*a,.475*b,.75*a,.225*b)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*b,.4*a,.2*b,.3*a,.25*b)),E}),go.Shape.defineFigureGenerator("Location",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(.5*a,b,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*b)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*b,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*b,.5*a,0,.025*a,.025*b).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*b)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*b,.1*a,.1*b).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,.5*b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*b));var x=new go.PathFigure(.2*a,.5*b,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*b)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*b)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*b,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*b)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*b)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,.5*b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*b));var x=new go.PathFigure(.2*a,.5*b,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*b)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*b)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*b,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*b)),E}),go.Shape.defineFigureGenerator("Gear",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*b,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*b)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*b)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*b,.79840625*a,.39915625*b,.7834375*a,.3635*b)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*b)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*b)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*b)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*b,.64228125*a,.2188125*b,.603875*a,.2021875*b)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*b)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*b)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*b)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*b,.39759375*a,.20190625*b,.36053125*a,.2176875*b)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*b)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*b)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*b)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*b,.21765625*a,.36059375*b,.201875*a,.397625*b)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*b)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*b)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*b)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*b,.20221875*a,.603875*b,.21884375*a,.64228125*b)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*b)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*b)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*b)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*b,.36353125*a,.78340625*b,.3991875*a,.79840625*b)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*b)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*b)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*b)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*b,.602375*a,.79809375*b,.63946875*a,.78234375*b)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*b)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*b)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*b)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*b,.78234375*a,.63940625*b,.798125*a,.602375*b)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*b).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*b)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*b,.1*a,.1*b).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,.5*b,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*b,0,.375*b,.05*a,.325*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*b,.3*a,.225*b,.4*a,.175*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*b,.46*a,.05*b,.525*a,.05*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*b,.525*a,.275*b,.475*a,.325*b)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*b,a,.4*b,a,.55*b)),y.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*b)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*b,.675*a,.55*b,.675*a,.7*b)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*b)),y.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*b,.65*a,.7*b,.65*a,.85*b)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*b)),y.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,b,.61*a,.85*b,.61*a,b)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*b,.435*a,b,0,b).close()),E}),go.Shape.defineFigureGenerator("Map",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,.2*b,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),y.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*b)),E}),go.Shape.defineFigureGenerator("Eject",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,b,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b*.7)),y.add(new go.PathSegment(go.PathSegment.Line,0,b*.7).close());var x=new go.PathFigure(0,b*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*b)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ne,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*b)).add(new go.PathSegment(go.PathSegment.Line,a,.9*b)).add(new go.PathSegment(go.PathSegment.Line,.9*a,b)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*b).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a*1,b*1,!1);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,0,b*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*a,b*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*a,b*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,b*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,b*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.046*a,b*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*0)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,b*.3)),y.add(new go.PathSegment(go.PathSegment.Line,a,b*.3)),y.add(new go.PathSegment(go.PathSegment.Line,a,b*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,b*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,b*.85)),y.add(new go.PathSegment(go.PathSegment.Line,a,b*.85).close());var x=new go.PathFigure(.126*a,.85*b,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*b)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*b)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*b).close());var z=new go.PathFigure(.402*a,.85*b,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*b)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*b)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*b).close());var ee=new go.PathFigure(.678*a,.85*b,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*b).close());var te=new go.PathFigure(.5*a,.1*b,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*b)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*b).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,b*1,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.2,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.2,b*.8)),y.add(new go.PathSegment(go.PathSegment.Line,a*.4,b*.8)),y.add(new go.PathSegment(go.PathSegment.Line,a*.4,b*.6)),y.add(new go.PathSegment(go.PathSegment.Line,a*.6,b*.6)),y.add(new go.PathSegment(go.PathSegment.Line,a*.6,b*.4)),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,b*.4)),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,b*.2)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*.2)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*.15)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,b*.15)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,b*.35)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,b*.35)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,b*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.35,b*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.35,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.15,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.15,b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,0,b*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,b*1,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.184,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.184,b*(1-.184)).close());var x=new go.PathFigure(a*.204,b,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,b*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,b*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,b*1).close());var z=new go.PathFigure(a*.408,b,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,b*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,b*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,b*1).close());var ee=new go.PathFigure(a*.612,b,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,b*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,b*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,b*1).close());var te=new go.PathFigure(a*.816,b,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,b*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,b*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,b*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*b,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,b*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,b*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,b*.1).close());var z=new go.PathFigure(a*.055,.13*b,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,b*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,b*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,b*.16).close());var ee=new go.PathFigure(a*.055,.18*b,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,b*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,b*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,b*.21).close());var te=new go.PathFigure(a*1,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,b*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,b*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(.55*a,b,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*b)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*b,0,.4*b,.225*a,.45*b)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*b)),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*b)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*b)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*b)),y.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*b,.975*a,0,a,.08*b)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*b)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*b)),y.add(new go.PathSegment(go.PathSegment.Line,.55*a,b).close()),E}),go.Shape.defineFigureGenerator("Key",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a*1,b*.5,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.35*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.65*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*b).close()),y.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*b)),y.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*b,.075*a,.075*b).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(0,0,!1);E.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,0,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.08,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.08,b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,b*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,b*1));var z=new go.PathFigure(a*.11,b*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),b*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),b*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,b*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),b*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),b*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),b*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),b*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),b*.1,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),b*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),b*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),b*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,b){var E=new go.Geometry,y=8,x=y*se,z=new go.PathFigure(y,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,b*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,b-y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-y,b,a,b-x,a-x,b)),z.add(new go.PathSegment(go.PathSegment.Line,y,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b-y,x,b,0,b-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,b*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,b*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,b*0).close());var te=new go.PathFigure(a*.83,b*1,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,b*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,b*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,b*1).close());var oe=new go.PathFigure(a*.78,b*.05,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*.05)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*.25)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.78,b*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,b){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,b/3);var y=E*se,x=b*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-y,0,a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-y,a-y,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,y,x,0,x-y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,y,y,0).close()),y>1?(z.spot1=new go.Spot(0,0,y,y),z.spot2=new go.Spot(1,.8,-y,-y)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a*0,b*.45,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.25,b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,b*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,b*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,b*.9)),y.add(new go.PathSegment(go.PathSegment.Line,a*.6,b*.9)),y.add(new go.PathSegment(go.PathSegment.Line,a*.65,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.2,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.2,b*.45).close());var x=new go.PathFigure(a*1,b*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,b*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,b*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,b*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,b*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,b*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,b*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,b*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,b*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ne,a,b){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,b)).add(new go.PathSegment(go.PathSegment.Line,0,b).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*b)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*b)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*b)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*b).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*b)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*b)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*b)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*b).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*b)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*b)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*b)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*b).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a*0,b*.1,!1);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*.1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*.9)),y.add(new go.PathSegment(go.PathSegment.Line,a*0,b*.9).close());var x=new go.PathFigure(a*.1,b*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,b*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,b*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,b*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,b*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,b*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,b*.25).close());var z=new go.PathFigure(a*.28,b*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,b*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,b*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,b*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,b){var E=new go.Geometry,y=15,x=y*se,z=new go.PathFigure(a*.62,b*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b-y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-y,b,a,b-x,a-x,b)),z.add(new go.PathSegment(go.PathSegment.Line,y,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b-y,x,b,0,b-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,b*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,b*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,b*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,b*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,b*.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(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a*0,b*1,!0);E.add(y);var x=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.755,b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.93,b*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.64,b*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.61,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.39,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.36,b*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.07,b*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*0,b*(1-x)).close());var z=new go.PathFigure(a*.4,b*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,b*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,b*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,b*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),b*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,b*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,b*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a*0,b*1,!0);E.add(y);var x=.1/.3;return y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.755,b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.93,b*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.64,b*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.61,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.39,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.36,b*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.07,b*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*0,b*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a*0,b*1,!0);E.add(y);var x=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.755,b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.93,b*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.64,b*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.61,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.39,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.36,b*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.07,b*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*0,b*(1-x)).close());var z=new go.PathFigure(a*.5,b*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,b*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,b*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,b*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,b*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,b*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,b*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a*.15,b*0,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.85,b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.7,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,b*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a*.15,b*0,!1);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.85,b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.7,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,b*1).close());var x=new go.PathFigure(a*.235,b*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,b*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,b*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,b*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,b){var E=new go.Geometry,y=new go.PathFigure(a*.5,b*0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.65,b*.25)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,b*.25)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,b*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,b*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,b*.35)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*.5)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,b*.65)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,b*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,b*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.65,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.35,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,b*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.25,b*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.25,b*.65)),y.add(new go.PathSegment(go.PathSegment.Line,a*0,b*.5)),y.add(new go.PathSegment(go.PathSegment.Line,a*.25,b*.35)),y.add(new go.PathSegment(go.PathSegment.Line,a*.25,b*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,b*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,b*.25)),y.add(new go.PathSegment(go.PathSegment.Line,a*.35,b*.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")},98598:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var De={},et="5.0",ie={},re=null,de=!1,Te=!1,Je=null,he=!1,ye=null,se=null,Ge=0;Ge<arguments.length;Ge++){var Be=arguments[Ge];if(Be!==null)switch(typeof Be){case"number":et=Be.toFixed(1);break;case"string":Be.match(new RegExp("^[0-9]\\.[0-9]+$"))?et=Be:Je=Be;break;case"object":typeof Be.is3D!="undefined"?re=Be:ie=Be;break;case"boolean":de=Be,Te=!0;break}}re===null&&(re={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ie.material_id!==void 0&&!Te&&(de=!0)),Je!==null&&ie.id===void 0&&(ie.id=Je);var xe="",Ne="",we=!1,be=null,ne=null,a=null,b=!1,E=null,y=null,x=null,z=null,ee=null;ie.height!==void 0&&(ie.height=Math.round(ie.height)),ie.width!==void 0&&(ie.width=Math.round(ie.width));var te=function(Ee){return parseFloat(Ee)>4?parseFloat(Ee):5};De.setHTML5Codebase=function(Ee,Ae){se=Ee,Et(Ee,Ae)},De.setJavaCodebase=De.setJavaCodebaseVersion=De.isCompiledInstalled=De.setPreCompiledScriptPath=De.setPreCompiledResourcePath=function(){},De.setHTML5CodebaseVersion=function(Ee,Ae){var Ze=parseFloat(Ee);if(Ze!==NaN&&Ze<5){console.log("The GeoGebra HTML5 codebase version "+Ze+" is deprecated. Using version latest instead.");return}ye=Ee,Bt(Ee,Ae)},De.getHTML5CodebaseVersion=function(){return ne},De.getParameters=function(){return ie},De.setFontsCSSURL=function(Ee){z=Ee},De.setGiacJSURL=function(Ee){},De.setJNLPFile=function(Ee){xe=Ee},De.setJNLPBaseDir=function(Ee){},De.inject=function(){function Ee(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ae="auto",Ze=ie.id,Pt,Qe=!1,st=0;st<arguments.length;st++){var ue=arguments[st];typeof ue=="string"?(ue=ue.toLowerCase(),ue.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ae=ue:Ze=arguments[st]):typeof ue=="boolean"?Qe=ue:ue instanceof HTMLElement&&(Pt=ue)}Ue();function Ue(){if(!he){setTimeout(Ue,200);return}Ae=Me(Ae);var Dt=Pt||document.getElementById(Ze);if(!Dt){console.log("possibly bug on ajax loading? ");return}if(De.removeExistingApplet(Dt,!1),ie.width===void 0&&Dt.clientWidth&&(ie.width=Dt.clientWidth),ie.height===void 0&&Dt.clientHeight&&(ie.height=Dt.clientHeight),!(ie.width&&ie.height)&&Ae==="html5"&&(delete ie.width,delete ie.height),be=Ae,Ae==="screenshot")nt(Dt,ie);else{var Ot=!1;ie.hasOwnProperty("playButton")&&ie.playButton||ie.hasOwnProperty("clickToLoad")&&ie.clickToLoad?Ot=!0:ie.hasOwnProperty("playButtonAutoDecide")&&ie.playButtonAutoDecide&&(Ot=(!oe()||Ee())&&ae()),Ot?(be="screenshot",fe(Dt,ie,Qe,Ae)):ot(Dt,ie,Qe)}}};function oe(){try{return window.self!==window.top}catch(Ee){return!0}}function ae(){return ie.hasOwnProperty("screenshotGenerator")&&ie.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}De.getViews=function(){return re},De.isJavaInstalled=function(){return!1};var ge=function(Ee){var Ae=function(st){var ue=JSON.parse(st),Ue=function(zt){return zt.type=="G"||zt.type=="E"},Dt=ue.elements?ue.elements.filter(Ue)[0]:ue;if(!Dt||!Dt.url){Ze();return}ie.fileName=Dt.url,me(Dt.settings||{}),re.is3D=!0;var Ot="https://www.geogebra.org/images/";De.setPreviewImage(E||Dt.previewUrl,Ot+"GeoGebra_loading.png",Ot+"applet_play.png"),Ee()},Ze=function(){ie.onError&&ie.onError(),yt("Error: Fetching material (id "+ie.material_id+") failed.",ie)},Pt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Qe="/materials/"+ie.material_id+"?scope=basic";le("https://"+Pt+"/api/proxy.php?path="+encodeURIComponent(Qe),Ae,Ze)};function me(Ee){var Ae=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ze){Ee[Ze]=!!Ee[Ze]}),Ae.forEach(function(Ze){ie[Ze]===void 0&&Ee[Ze]!==void 0&&(ie[Ze]=Ee[Ze])}),ie.showToolBarHelp===void 0&&(ie.showToolBarHelp=ie.showToolBar)}function le(Ee,Ae,Ze){var Pt=new XMLHttpRequest;Pt.open("GET",Ee),Pt.onload=function(){Ae(Pt.responseText)},Pt.onerror=Ze,Pt.send()}De.isHTML5Installed=function(){return!0},De.getLoadedAppletType=function(){return be},De.setPreviewImage=function(Ee,Ae,Ze){E=Ee,y=Ae,x=Ze},De.removeExistingApplet=function(Ee,Ae){var Ze;typeof Ee=="string"&&(Ee=document.getElementById(Ee)),be=null;var Pt=null;for(Ze=0;Ze<Ee.childNodes.length;Ze++){var Qe=Ee.childNodes[Ze],st=Qe.className;st==="applet_screenshot"?Ae?(Qe.style.display="block",be="screenshot"):Qe.style.display="none":st!=="applet_scaler prerender"&&(Ee.removeChild(Qe),Pt=st&&st.indexOf("appletParameters")!=-1?Qe.id:null,Ze--)}var ue=ie.id!==void 0?ie.id:Pt,Ue=window[ue];Ue&&typeof Ue.getBase64=="function"&&(Ue.remove(),window[ue]=null)},De.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ee=De.getAppletObject();return Ee&&typeof Ee.recalculateEnvironments=="function"?(Ee.recalculateEnvironments(),!0):!1},De.startAnimation=function(){var Ee=De.getAppletObject();return Ee&&typeof Ee.startAnimation=="function"?(Ee.startAnimation(),!0):!1},De.stopAnimation=function(){var Ee=De.getAppletObject();return Ee&&typeof Ee.stopAnimation=="function"?(Ee.stopAnimation(),!0):!1},De.getAppletObject=function(){var Ee=ie.id!==void 0?ie.id:"ggbApplet";return window[Ee]},De.resize=function(){};var Ce=function(Ee,Ae,Ze){var Pt=document.createElement("param");Pt.setAttribute("name",Ae),Pt.setAttribute("value",Ze),Ee.appendChild(Pt)},ze=function(Ee){return Ee&&Ee!=="false"},ot=function(Ee,Ae,Ze){te(ne)<=4.2&&(Ze=!0);var Pt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!b)&&(Pt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Qe=document.createElement("div");Qe.classList.add("appletParameters","notranslate");var st=Ae.width,ue=Ae.height;if(Ae.disableAutoScale=Ae.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ae.disableAutoScale,Ae.width!==void 0)if(te(ne)<=4.4)ze(Ae.showToolBar)&&(Ae.height-=7),ze(Ae.showAlgebraInput)&&(Ae.height-=37),Ae.width<605&&ze(Ae.showToolBar)&&(Ae.width=605,st=605);else{var Ue=100;(ze(Ae.showToolBar)||ze(Ae.showMenuBar))&&(Ae.hasOwnProperty("customToolBar")&&(Ae.customToolbar=Ae.customToolBar),Ue=ze(Ae.showMenuBar)?245:155),st<Ue&&(Ae.width=Ue,st=Ue)}Qe.style.border="none",Qe.style.display="inline-block";for(var Dt in Ae)Ae.hasOwnProperty(Dt)&&Dt!=="appletOnLoad"&&Qe.setAttribute("data-param-"+Dt,Ae[Dt]);z&&Qe.setAttribute("data-param-fontscssurl",z),De.resize=function(){GGBAppletUtils.responsiveResize(Ee,Ae)},window.addEventListener("resize",function(ht){De.resize()});var Ot=typeof Ae.appletOnLoad=="function"?Ae.appletOnLoad:function(){};if(!Ze&&Ae.width!==void 0){Ae.hasOwnProperty("showSplash")||Qe.setAttribute("data-param-showSplash","false");var zt=Ee.querySelector(".applet_scaler.prerender"),Fe=zt!==null;if(Fe)var Le=zt.querySelector(".ggb_preview");else{var Le=Re(st,ue,Ae.borderColor,!1);zt=document.createElement("div"),zt.className="applet_scaler",zt.style.position="relative",zt.style.display="block",zt.style.width=st+"px",zt.style.height=ue+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(zt,"66%"),te(ne)>=5?(Ae.appletOnLoad=function(ht){var Nt=Ee.querySelector(".ggb_preview");Nt&&Nt.parentNode.removeChild(Nt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(zt),window.GGBT_wsf_view&&$(window).trigger("resize"),Ot(ht)},Fe||zt.appendChild(Le)):Qe.appendChild(Le),zt.appendChild(Qe),Fe||Ee.appendChild(zt),setTimeout(function(){De.resize()},1)}else{var ve=document.createElement("div");ve.className="applet_scaler",ve.style.position="relative",ve.style.display="block",ve.appendChild(Qe),Ee.appendChild(ve),Ae.appletOnLoad=function(ht){De.resize(),Ot(ht)}}function _e(ht,Nt){Nt&&typeof Nt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ht,Nt.appletOnLoad):renderGGBElement(ht),yt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Nt)}function je(ht,Nt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ht,params:Nt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Qt){_e(Qt.article,Qt.params)}),html5AppletsToProcess=null)},te(ne)<5&&(ht.className+=" geogebraweb")):_e(ht,Nt)}if(Pt){scriptLoadStarted=!0;for(var ut=0;ut<Qe.childNodes.length;ut++){var vt=Qe.childNodes[ut].tagName;vt==="TABLE"&&(Qe.removeChild(Qe.childNodes[ut]),ut--)}if(ggbHTML5LoadedScript!==null){var Ft=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ft!=null&&Ft.parentNode.removeChild(Ft)}var xt=document.createElement("script"),Mt=function(){je(Qe,Ae)};xt.src=Ne+a,ggbHTML5LoadedCodebaseIsWebSimple=b,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=xt.src,yt("GeoGebra HTML5 codebase loaded: '"+Ne+"'.",Ae),!se&&(!ye||ye=="5.0")?(b?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Mt()):Ne.requirejs?__webpack_require__.e(7374).then(function(){var ht=[__webpack_require__(97374)];Mt.apply(null,ht)}.bind(this)).catch(__webpack_require__.oe):(xt.onload=Mt,Ee.appendChild(xt))}else je(Qe,Ae);Ae.height=ue,Ae.width=st},nt=function(Ee,Ae,Ze){var Pt=Re(Ae.width,Ae.height,Ae.borderColor,Ze),Qe=document.createElement("div");Qe.style.position="relative",Qe.style.display="block",Qe.style.width=Ae.width+"px",Qe.style.height=Ae.height+"px",Qe.className="applet_screenshot applet_scaler"+(Ze?" applet_screenshot_play":""),Qe.appendChild(Pt);var st=GGBAppletUtils.getScale(Ae,Ee,Ze);Ze?(Ee.appendChild($e()),window.GGBT_wsf_view||(Ee.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Qe,"66%"),Ee.appendChild(Qe),st!==1&&!isNaN(st)&&(GGBAppletUtils.scaleElement(Qe,st),Qe.style.width=Ae.width+"px",Qe.style.height=Ae.height+"px",Qe.parentNode.style.width=Ae.width*st+"px",Qe.parentNode.style.height=Ae.height*st+"px"),De.resize=function(){gt(Ee,Pt,Qe,Ze)},window.addEventListener("resize",function(ue){De.resize()}),De.resize()};function gt(Ee,Ae,Ze,Pt){if(Ee.contains(Ae)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ee.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ee)}var Qe=GGBAppletUtils.getScale(ie,Ee,Pt);Ze.parentNode!==null&&(!isNaN(Qe)&&Qe!==1?(GGBAppletUtils.scaleElement(Ze,Qe),Ze.parentNode.style.width=ie.width*Qe+"px",Ze.parentNode.style.height=ie.height*Qe+"px"):(GGBAppletUtils.scaleElement(Ze,1),Ze.parentNode.style.width=ie.width+"px",Ze.parentNode.style.height=ie.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ee),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}De.onExitFullscreen=function(Ee,Ae){Ae.appendChild(Ee)};var fe=function(Ee,Ae,Ze,Pt){nt(Ee,Ae,!0);for(var Qe=function(){var Ue=[];for(ue=0;ue<Ee.childNodes.length;ue++)Ue.push(Ee.childNodes[ue]);if(window.GGBT_wsf_view){var Dt=window.GGBT_wsf_view.renderFullScreen(Ee,Ae.id),Ot=document.getElementById("fullscreencontainer"),zt=jQuery(Ee).find(".fullscreencontent");zt.length>0?(Dt.remove(),zt.attr("id","fullscreencontent").show(),jQuery(Ot).append(zt),window.dispatchEvent(new Event("resize"))):ot(Dt,Ae,!1),window.GGBT_wsf_view.launchFullScreen(Ot)}else be=Pt,ot(Ee,Ae,!1);if(!window.GGBT_wsf_view)for(ue=0;ue<Ue.length;ue++)Ee.removeChild(Ue[ue])},st=Ee.getElementsByClassName("ggb_preview_play"),ue=0;ue<st.length;ue++)st[ue].addEventListener("click",Qe,!1),st[ue].addEventListener("ontouchstart",Qe,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ee),ae()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},$e=function(){var Ee=document.createElement("div");if(Ee.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ae='.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");}',Ze=document.createElement("style");Ze.styleSheet?Ze.styleSheet.cssText=Ae:Ze.appendChild(document.createTextNode(Ae)),document.getElementsByTagName("head")[0].appendChild(Ze)}return Ee},Re=function(Ee,Ae,Ze,Pt){var Qe=document.createElement("div");Qe.className="ggb_preview",Qe.style.position="absolute",Qe.style.zIndex="90",Qe.style.width=Ee-2+"px",Qe.style.height=Ae-2+"px",Qe.style.top="0px",Qe.style.left="0px",Qe.style.overflow="hidden",Qe.style.backgroundColor="white";var st="lightgrey";Ze!==void 0&&(Ze==="none"?st="transparent":st=Ze),Qe.style.border="1px solid "+st;var ue=document.createElement("img");if(ue.style.position="relative",ue.style.zIndex="1000",ue.style.top="-1px",ue.style.left="-1px",E!==null&&ue.setAttribute("src",E),ue.style.opacity=.7,y!==null){var Ue,Dt,Ot;if(!Pt){Ue=document.createElement("img"),Ue.style.position="absolute",Ue.style.zIndex="1001",Ue.style.opacity=1,ue.style.opacity=.3,Dt=360,Dt>Ee/4*3&&(Dt=Ee/4*3),Ot=Dt/5.8,Ue.setAttribute("src",y),Ue.setAttribute("width",Dt),Ue.setAttribute("height",Ot);var zt=(Ee-Dt)/2,Fe=(Ae-Ot)/2;Ue.style.left=zt+"px",Ue.style.top=Fe+"px",Qe.appendChild(Ue)}}return Qe.appendChild(ue),Qe},Me=function(Ee){return Ee=Ee.toLowerCase(),Ee==="html5"||Ee==="screenshot"?Ee:"html5"},Ke=["web","webSimple","web3d","tablet","tablet3d","phone"],Bt=function(Ee,Ae){if(ne=Ee,Ae){Et(ne,!0);return}var Ze=!de;if(Ze){var Pt=te(ne);!isNaN(Pt)&&Pt<4.4&&(Ze=!1)}var Qe,st;window.location.protocol.substr(0,4)==="http"?Qe=window.location.protocol:Qe="http:";var ue=ne.indexOf("//");ue>0?st=ne:ue===0?st=Qe+ne:st="https://www.geogebra.org/apps/5.2.814.0/";for(var Ue in Ke)if(ne.slice(Ke[Ue].length*-1)===Ke[Ue]||ne.slice((Ke[Ue].length+1)*-1)===Ke[Ue]+"/"){Et(st,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ze&&!re.is3D&&!re.AV&&!re.SV&&!re.CV&&!re.EV2&&!re.CP&&!re.PC&&!re.DA&&!re.FI&&!re.PV&&!ze(ie.showToolBar)&&!ze(ie.showMenuBar)&&!ze(ie.showAlgebraInput)&&!ze(ie.enableRightClick)&&(!ie.appName||ie.appName=="classic")?st+="webSimple/":st+="web3d/",Et(st,!1)},Et=function(Ee,Ae){if(Ee.requirejs){Ne=Ee;return}Ee.slice(-1)!=="/"&&(Ee+="/"),Ne=Ee,Ae===null&&(Ae=Ee.indexOf("http")===-1),we=Ae,a="web.nocache.js",b=!1;var Ze=Ne.split("/");Ze.length>1&&(!Ae&&Ze[Ze.length-2]==="webSimple"?(a="webSimple.nocache.js",b=!0):Ke.indexOf(Ze[Ze.length-2])>=0&&(a=Ze[Ze.length-2]+".nocache.js")),Ze=Ee.split("/"),ne=Ze[Ze.length-3],ne.substr(0,4)==="test"?ne=ne.substr(4,1)+"."+ne.substr(5,1):(ne.substr(0,3)==="war"||ne.substr(0,4)==="beta")&&(ne="5.0");var Pt=parseFloat(ne);Pt!==NaN&&Pt<5&&Ee.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Pt+" is deprecated. Using version latest instead."),Bt("5.0",Ae))},yt=function(Ee,Ae){window.console&&window.console.log&&(!Ae||typeof Ae.showLogging=="undefined"||Ae.showLogging&&Ae.showLogging!=="false")&&console.log(Ee)};ie.material_id!==void 0?ge(Ht):Ht();function Ht(){var Ee=et;ye!==null?Ee=ye:parseFloat(Ee)<5&&(Ee="5.0"),Bt(Ee,!1),se!==null&&Et(se,we),he=!0}return De},GGBAppletUtils=function(){"use strict";function De(){return window.GGBT_wsf_edit!==void 0}function et(he,ye){ye!=1?(he.style.transformOrigin="0% 0% 0px",he.style.webkitTransformOrigin="0% 0% 0px",he.style.transform="scale("+ye+","+ye+")",he.style.webkitTransform="scale("+ye+","+ye+")",he.style.maxWidth="initial",he.querySelector(".ggb_preview")!==null&&(he.querySelector(".ggb_preview").style.maxWidth="initial"),he.querySelectorAll(".ggb_preview img")[0]!==void 0&&(he.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),he.querySelectorAll(".ggb_preview img")[1]!==void 0&&(he.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(he.style.transform="none",he.style.webkitTransform="none")}function ie(he,ye,se,Ge,Be,xe){var Ne=null;if(xe!=null&&xe!="")for(var we=he.parentNode;we!=null;)if((" "+we.className+" ").indexOf(" "+xe+" ")>-1){Ne=we;break}else we=we.parentNode;var be=0,ne=0,a=0,b=0,E=0,y=0,x=0;if(Ne)be=Ne.offsetWidth,ne=Math.max(Ge?Ne.offsetWidth:0,Ne.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(be=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=be):(be=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),he){var z=he.getBoundingClientRect();z.left>0&&z.left<=be&&(Be===void 0||!Be)&&(document.dir==="rtl"?(E=be-z.width-z.left,y=a<=480?10:30):(y=z.left,E=a<=480?10:30),b=y+E)}if(he&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=he.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(b=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(b=0,x=40)}}return he&&((se===void 0||!se)&&ye>0&&ye+b<be?be=ye:be-=b,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(se===void 0||!se)&&(ne-=x)),{width:be,height:ne}}function re(he,ye,se,Ge,Be){if(he.isScreenshoGenerator)return 1;var xe=Ge!==void 0&&Ge,Ne=he.noScaleMargin!=null&&he.noScaleMargin,we=function(ee){return ee&&ee!=="false"},be=we(he.autoHeight),ne=ie(ye,he.width,se,be,xe&&window.GGBT_wsf_view||Ne,Be),a=parseInt(ne.width),b=he.width,E=he.height;if(b===void 0){var y=ye.querySelector(".appletParameters");y&&(b=y.offsetWidth,E=y.offsetHeight)}var x=a/b,z=xe?1:ne.height/E;return se!==void 0&&!se&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function de(he,ye,se){var Ge=1,Be,xe=!1;if(he.hasOwnProperty("allowUpscale")&&(xe=he.allowUpscale),he.hasOwnProperty("scale")&&(Ge=parseFloat(he.scale),(isNaN(Ge)||Ge===null||Ge===0)&&(Ge=1),Ge>1&&(xe=!0)),ye&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(xe=!0),!(he.hasOwnProperty("disableAutoScale")&&he.disableAutoScale))Be=re(he,ye,xe,se,he.scaleContainerClass);else return Ge;return xe&&(!he.hasOwnProperty("scale")||Ge===1)?Be:Math.min(Ge,Be)}function Te(he){var ye=Math.min(window.innerWidth,document.documentElement.clientWidth),se=Math.min(window.innerHeight,document.documentElement.clientHeight),Ge=he.getBoundingClientRect(),Be=(ye-Ge.width)/2,xe=(se-Ge.height)/2;xe<0&&(xe=0),he.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Be<40?he.style.left="40px":he.style.left=Be+"px",he.style.top=xe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(xe<40?he.style.top="40px":he.style.top=xe+"px",he.style.left=Be+"px")}function Je(he,ye){var se=he.querySelector(".appletParameters");if(se){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ye.id!==se.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(he)}if(se.parentElement&&/fullscreen/.test(se.parentElement.className))return;var Ge=de(ye,he);De()&&se.setAttribute("data-param-scale",Ge);for(var Be=null,xe=0;xe<he.childNodes.length;xe++)if(he.childNodes[xe].className!==void 0&&he.childNodes[xe].className.match(/^applet_scaler/)){Be=he.childNodes[xe];break}if(Be!==null&&Be.querySelector(".noscale")!==null)return;var Ne=ye.id!==void 0?ye.id:"ggbApplet",we=window[Ne];(we==null||!we.recalculateEnvironments)&&Be!==null&&!Be.className.match(/fullscreen/)&&(Be.parentNode.style.transform="",!isNaN(Ge)&&Ge!==1?(Be.parentNode.style.width=ye.width*Ge+"px",Be.parentNode.style.height=ye.height*Ge+"px",et(Be,Ge)):(et(Be,1),Be.parentNode.style.width=ye.width+"px",Be.parentNode.style.height=ye.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Te(he),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(se).parents(".content-added-content"))}}return{responsiveResize:Je,isFlexibleWorksheetEditor:De,positionCenter:Te,getScale:de,scaleElement:et}}();__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 De=n.location.search;return De.indexOf(J)!=-1||De.indexOf(K)!=-1}function q(De,et){}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(De){var et=s[L].bindings;s[L].bindings=function(){for(var ie=et?et():{},re=De[webModule.__softPermutationId],de=O;de<re.length;de++){var Te=re[de];ie[Te[O]]=Te[P]}return ie}};var t;function u(){return v(),t}function v(){if(!t){var De=o.createElement(Q);if(De.id=L,De.style.cssText=R+S,De.tabIndex=-1,o.body.appendChild(De),t=De.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var et=document.compatMode==U?V:W;t.write(et+X),t.close()}}}function w(De){function et(re){function de(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Te=de();if(Te){re();return}function Je(){if(!Te){if(!de())return;Te=!0,re(),o.removeEventListener&&o.removeEventListener(Z,Je,!1),he&&clearInterval(he)}}o.addEventListener&&o.addEventListener(Z,Je,!1);var he=setInterval(function(){Je()},$)}function ie(re){var de=u(),Te=de.body,Je=de.createElement(_);Je.language=ab,Je.crossOrigin=W,Je.src=re,webModule.__errFn&&(Je.onerror=function(){webModule.__errFn(L,new Error(bb+re))}),Te.appendChild(Je)}et(function(){ie(De)})}webModule.__startLoadingFragment=function(De){return C(De)},webModule.__installRunAsyncCode=function(De){var et=u(),ie=et.body,re=et.createElement(_);re.language=ab,re.text=De,ie.appendChild(re),ie.removeChild(re)};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(De){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(De){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(De){var et=c[De];return et==null?null:et},r=d,webModule.__errFn=e}function B(){function De(he){var ye=he.lastIndexOf(rb);ye==-1&&(ye=he.length);var se=he.indexOf(sb);se==-1&&(se=he.length);var Ge=he.lastIndexOf(tb,Math.min(se,ye));return Ge>=O?he.substring(O,Ge+P):W}function et(he){if(!he.match(/^\w+:\/\//)){var ye=o.createElement(ub);ye.src=he+vb,he=De(ye.src)}return he}function ie(){var he=__gwt_getMetaProperty(wb);return he!=null?he:W}function re(){for(var he=o.getElementsByTagName(_),ye=O;ye<he.length;++ye)if(he[ye].src.indexOf(xb)!=-1)return De(he[ye].src);return W}function de(){var he=o.getElementsByTagName(yb);return he.length>O?he[he.length-P].href:W}function Te(){var he=o.location;return he.href==he.protocol+zb+he.host+he.pathname+he.search+he.hash}var Je=ie();return Je==W&&(Je=re()),Je==W&&(Je=de()),Je==W&&Te()&&(Je=De(o.location.href)),Je=et(Je),Je}function C(De){return De.match(/^\//)||De.match(/^[a-zA-Z]+:\/\//)?De:webModule.__moduleBase+De}function D(){var De=[],et=O,ie=[],re=[];function de(he){var ye=re[he](),se=ie[he];if(ye in se)return ye;var Ge=[];for(var Be in se)Ge[se[Be]]=Be;throw r&&r(he,Ge,ye),null}if(__gwt_isKnownPropertyValue=function(he,ye){return ye in ie[he]},webModule.__getPropMap=function(){var he={};for(var ye in ie)ie.hasOwnProperty(ye)&&(he[ye]=de(ye));return he},webModule.__computePropValue=de,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Te;try{Te=Cb;var Je=Te.indexOf(Db);Je!=-1&&(et=parseInt(Te.substring(Je+P),$),Te=Te.substring(O,Je))}catch(he){}return webModule.__softPermutationId=et,C(Te+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})()},58788:function(De,et,ie){"use strict";ie.d(et,{Ax:function(){return Je},Ds:function(){return he},KI:function(){return se},SI:function(){return Te},f1:function(){return de}});var re=ie(10148);function de(Ge){let Be=!0;if(Ge.length>0){for(let xe=0;xe<Ge.length;xe++)if(Ge[xe].compile_success==0||!Ge[xe].compile_success){Be=!1;break}}else Be=!1;return Be}function Te(Ge,Be=""){let xe=[];for(let Ne=0;Ne<Ge.length;Ne++){let we=Ge[Ne],be=Be?`${Be}/${we.name}`:`${we.name}`;xe.push({title:we.name,type:we.type,isLeaf:we.type!=="tree",key:be})}return xe}function Je(Ge,Be,xe){for(let Ne=0;Ne<Ge.length;Ne++){let we=Ge[Ne];if(we.key===Be){we.children=xe;break}we.children&&Je(we.children,Be,xe)}return Ge}function he(Ge,Be,xe){let Ne;return function(){let we=this,be=arguments,ne=function(){Ne=null,xe||Ge.apply(we,be)},a=xe&&!Ne;clearTimeout(Ne),Ne=setTimeout(ne,Be),a&&Ge.apply(we,be)}}const ye=!0,se=re.Z.API_SERVER},12963:function(De,et,ie){"use strict";ie.d(et,{Z:function(){return Ne}});var re=ie(59301),de={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Te=ie(92310),Je=ie.n(Te),he=ie(71418),ye=ie(2859),se=ie(70635),Ge=ie(58130),Be=(we,be,ne)=>new Promise((a,b)=>{var E=z=>{try{x(ne.next(z))}catch(ee){b(ee)}},y=z=>{try{x(ne.throw(z))}catch(ee){b(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,y);x((ne=ne.apply(we,be)).next())}),Ne=({data:we,className:be,fullWidth:ne,style:a={},onClose:b,onOk:E,showFullTools:y,noAssociationId:x})=>{const z=(0,re.useRef)(null),ee=(0,re.useRef)(null),te=(0,re.useRef)(null),oe=(0,re.useRef)(null),[ae,ge]=(0,re.useState)(!1),[me,le]=(0,re.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,re.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),we!=null&&we.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",we!=null&&we.src&&Ce()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[we==null?void 0:we.visible]);const Ce=()=>Be(void 0,null,function*(){ge(!0),le("\u6B63\u5728\u52A0\u8F7D\u4E2D");const fe=yield(0,Ge.ZJ)(we==null?void 0:we.src);z.current.src="",z.current.src=fe,z.current.onload=function(){gt()},ge(!1),le("")}),ze=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",b()},ot=fe=>Be(void 0,null,function*(){ge(!0),le("\u6B63\u5728\u4FDD\u5B58\u4E2D");const $e=yield(0,se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:we.title,file:fe.dataUrl}});$e!=null&&$e.id&&!x?(yield(0,se.ZP)(`/api/attachments/${we.id}/add_subitem.json`,{method:"post",body:{subitem_id:$e==null?void 0:$e.id,settings:JSON.stringify(fe.state)}})).status===0&&E():$e!=null&&$e.id&&E($e),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ge(!1),le("")}),nt=()=>{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(Re=>{const Me=document.querySelector(Re.name);Me&&Me.setAttribute("title",Re.title)})},gt=()=>{ee.current=new ye.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",ot),ee.current.addEventListener("beforeclose",ze),y&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),we!=null&&we.snapshotData&&ee.current.restoreState(we.snapshotData),setTimeout(()=>{window.scrollTo(0,0),nt()},300)};return re.createElement(re.Fragment,null,(we==null?void 0:we.visible)&&re.createElement(he.Z,{spinning:ae,tip:me,style:{position:"absolute"}},re.createElement("div",{ref:oe,className:Je()(de.imageDimensions,be,ne?de.fullWidth:""),style:a},re.createElement("img",{className:de.img,ref:z}))))}},75890:function(De,et,ie){"use strict";var re=ie(59301),de=ie(95237),Te=ie(43604),Je=ie(99313),he=ie(3113),ye=ie(25711),se=ie(93938),Ge=ie(48136),Be=ie(59301);const xe=(0,re.forwardRef)(({callback:Ne,showSaveButton:we,value:be=""},ne)=>{const a=(0,re.useRef)(),b=[{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}`}]}]}],y=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Be.createElement(de.Z,{className:se.Z.lists,gutter:[10,10]},b.map((ee,te)=>Be.createElement(Te.Z,{flex:"110px",className:se.Z.item},Be.createElement("div",null,Be.createElement(ye.Z,{value:`$$${ee.value}$$`}),ee.name),Be.createElement("div",{className:se.Z.children},ee.children.map((oe,ae)=>Be.createElement("div",{key:ae},Be.createElement("h1",null,oe.name),Be.createElement(de.Z,{gutter:[10,10]},oe.data.map((ge,me)=>Be.createElement(Te.Z,{key:me,onClick:()=>y(ge),className:se.Z.diamond},Be.createElement(ye.Z,{value:"`$$"+ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Be.createElement(de.Z,{className:se.Z.lists,gutter:[10,10]},E.map((ee,te)=>Be.createElement(Te.Z,{flex:"110px",className:se.Z.item},Be.createElement("div",null,Be.createElement(ye.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Be.createElement("div",{className:se.Z.children},ee.children.map((oe,ae)=>Be.createElement("div",{key:ae},oe.name&&Be.createElement("h1",null,oe.name),Be.createElement(de.Z,{gutter:[10,10]},oe.data.map((ge,me)=>Be.createElement(Te.Z,{key:me,onClick:()=>y(ge),className:se.Z.diamond},Be.createElement(ye.Z,{value:"`$$"+ge.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return Ne&&Ne(te),te};return(0,re.useImperativeHandle)(ne,()=>({getData:z})),Be.createElement("div",{className:se.Z.mathWrap},Be.createElement(Je.default,{defaultActiveKey:"1",items:x}),Be.createElement("math-field",{locale:"zh_cn",className:se.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},be||""),we&&Be.createElement("div",{className:se.Z.button},Be.createElement(he.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});et.Z=xe},1568:function(De,et,ie){"use strict";ie.d(et,{h:function(){return ee}});var re=ie(59301),de=ie(57809),Te=ie(78241),Je=ie(3113),he=ie(89780),ye=ie.n(he),se=ie(79906),Ge=ie(44383),Be=Object.defineProperty,xe=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,oe,ae)=>oe in te?Be(te,oe,{enumerable:!0,configurable:!0,writable:!0,value:ae}):te[oe]=ae,b=(te,oe)=>{for(var ae in oe||(oe={}))be.call(oe,ae)&&a(te,ae,oe[ae]);if(we)for(var ae of we(oe))ne.call(oe,ae)&&a(te,ae,oe[ae]);return te},E=(te,oe)=>xe(te,Ne(oe));const y=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"]};et.Z=({callback:te,onCancel:oe})=>{const[ae,ge]=(0,re.useState)("python");function me(Ce){ge(z[Ce][1])}function le(Ce){te(Ce)}return re.createElement(Te.default,E(b({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:le,style:{width:500}}),re.createElement(Te.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},re.createElement(de.default,{getPopupContainer:Ce=>Ce.parentNode,onChange:me},Object.keys(z).map(Ce=>re.createElement(y,{key:Ce,value:Ce},z[Ce][0])))),re.createElement(Te.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},re.createElement(ee,{mode:ae})),re.createElement("div",{className:"flex-container flex-end"},re.createElement(Je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(Je.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:ae,options:ge={}}){const me=(0,re.useRef)(),[le,Ce]=(0,re.useState)();return(0,re.useEffect)(()=>{if(le){let ze=function(ot){const nt=ot.getValue();oe&&oe(nt)};return le.on("change",ze),()=>{le.off("change",ze)}}},[le,oe]),(0,re.useEffect)(()=>{le&&le.setOption("mode",ae)},[le,ae]),(0,re.useEffect)(()=>{le&&(te!==le.getValue()||te==="")&&setTimeout(()=>{le.setValue(te||"")},300)},[le,te]),(0,re.useEffect)(()=>{if(me.current&&!le){const ze=ye().fromTextArea(me.current,b({mode:ae,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ge));Ce(ze)}},[me.current,le]),re.createElement("div",{className:"my-codemirror-container"},re.createElement("textarea",{ref:me}))}},23469:function(De,et,ie){"use strict";ie.d(et,{Z:function(){return Ct}});var re=ie(59301),de=ie(89780),Te=ie.n(de),Je=ie(76374),he=ie(79906),ye=ie(6313),se=ie(25717),Ge=ie(99498),Be=ie(25419),xe=ie(67549),Ne=ie(25711),we=({value:ce="",className:Pe,showTextOnly:Se,showLines:ke,style:qe={}})=>{const tt=(0,re.useMemo)(()=>"",[ce]);return re.createElement(re.Fragment,null,re.createElement("div",{dangerouslySetInnerHTML:{__html:tt}}))},be=ie(59301),ne=Object.defineProperty,a=Object.defineProperties,b=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(ce,Pe,Se)=>Pe in ce?ne(ce,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Se}):ce[Pe]=Se,ee=(ce,Pe)=>{for(var Se in Pe||(Pe={}))y.call(Pe,Se)&&z(ce,Se,Pe[Se]);if(E)for(var Se of E(Pe))x.call(Pe,Se)&&z(ce,Se,Pe[Se]);return ce},te=(ce,Pe)=>a(ce,b(Pe));let oe=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function ae({onActionCallback:ce,title:Pe,icon:Se,actionName:ke,className:qe="",children:tt}){function pt(){ce(ke)}return be.createElement("a",{title:Pe,className:qe,onClick:pt},be.createElement("i",{className:`${Se}`}),tt)}var ge=({watch:ce,showNullButton:Pe,showNullProgramButton:Se,onActionCallback:ke,fullScreen:qe,insertTemp:tt,hidetoolBar:pt,extraUse:dt})=>{const ct=[...oe,{title:`${ce?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ce?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return be.createElement("ul",{className:"markdown-toolbar-container"},!pt&&ct.map((bt,Kt)=>be.createElement("li",{key:Kt},bt.actionName?be.createElement(ae,te(ee({},bt),{onActionCallback:ke})):be.createElement("span",{className:"v-line"}))),Pe?be.createElement("li",null,be.createElement(ae,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ke},be.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Se?be.createElement(be.Fragment,null,be.createElement("li",null,be.createElement(ae,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:ke},be.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),be.createElement("li",null,be.createElement(ae,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:ke},be.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,tt&&be.createElement("li",null,be.createElement(ae,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${tt}`,onActionCallback:ke},be.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),dt&&be.createElement("li",null,dt),be.createElement("li",{className:"btn-full-screen"},be.createElement(ae,{icon:`${qe?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:qe?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ke})))},me=ie(50474),le=ie(78241),Ce=ie(92832),ze=ie(3113),ot=Object.defineProperty,nt=Object.defineProperties,gt=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,Me=(ce,Pe,Se)=>Pe in ce?ot(ce,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Se}):ce[Pe]=Se,Ke=(ce,Pe)=>{for(var Se in Pe||(Pe={}))$e.call(Pe,Se)&&Me(ce,Se,Pe[Se]);if(fe)for(var Se of fe(Pe))Re.call(Pe,Se)&&Me(ce,Se,Pe[Se]);return ce},Bt=(ce,Pe)=>nt(ce,gt(Pe));const Et={labelCol:{span:4},wrapperCol:{span:20}};var yt=({callback:ce,onCancel:Pe})=>{function Se(ke){ce(ke)}return re.createElement(le.default,Bt(Ke({},Et),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Se,style:{width:500}}),re.createElement(le.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},re.createElement(Ce.default,null)),re.createElement(le.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},re.createElement(Ce.default,null)),re.createElement("div",{className:"flex-container flex-end"},re.createElement(ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(ze.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},Ht=ie(1568),Ee=ie(56701),Ae=ie(43418),Ze=ie(95237),Pt=ie(12963),Qe=ie(59301),st=({callback:ce,onCancel:Pe})=>{const Se=document.createElement("canvas"),ke=Se.getContext("2d");Se.width=1e3,Se.height=800,ke.fillStyle="#ffffff",ke.fillRect(0,0,Se.width,Se.height);const qe=Se.toDataURL("image/png");return Qe.createElement(Ae.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Qe.createElement(Ze.Z,{style:{height:"100vh"}},Qe.createElement(Pt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:qe,visible:!0,title:String(Date.now())},onOk:tt=>{ce({src:tt.url})},onClose:Pe})))},ue=ie(12378);function Ue(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Ue,go.CommandHandler),Ue.prototype.canAlignSelection=function(){var ce=this.diagram;return!(ce===null||ce.isReadOnly||ce.isModelReadOnly||ce.selection.count<2)},Ue.prototype.alignLeft=function(){var ce=this.diagram;ce.startTransaction("aligning left");var Pe=1/0;ce.selection.each(function(Se){Se instanceof go.Link||(Pe=Math.min(Se.position.x,Pe))}),ce.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Pe,Se.position.y))}),ce.commitTransaction("aligning left")},Ue.prototype.alignRight=function(){var ce=this.diagram;ce.startTransaction("aligning right");var Pe=-1/0;ce.selection.each(function(Se){if(!(Se instanceof go.Link)){var ke=Se.actualBounds.x+Se.actualBounds.width;Pe=Math.max(ke,Pe)}}),ce.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Pe-Se.actualBounds.width,Se.position.y))}),ce.commitTransaction("aligning right")},Ue.prototype.alignTop=function(){var ce=this.diagram;ce.startTransaction("alignTop");var Pe=1/0;ce.selection.each(function(Se){Se instanceof go.Link||(Pe=Math.min(Se.position.y,Pe))}),ce.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Se.position.x,Pe))}),ce.commitTransaction("alignTop")},Ue.prototype.alignBottom=function(){var ce=this.diagram;ce.startTransaction("aligning bottom");var Pe=-1/0;ce.selection.each(function(Se){if(!(Se instanceof go.Link)){var ke=Se.actualBounds.y+Se.actualBounds.height;Pe=Math.max(ke,Pe)}}),ce.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Se.actualBounds.x,Pe-Se.actualBounds.height))}),ce.commitTransaction("aligning bottom")},Ue.prototype.alignCenterX=function(){var ce=this.diagram,Pe=ce.selection.first();if(Pe){ce.startTransaction("aligning Center X");var Se=Pe.actualBounds.x+Pe.actualBounds.width/2;ce.selection.each(function(ke){ke instanceof go.Link||ke.move(new go.Point(Se-ke.actualBounds.width/2,ke.actualBounds.y))}),ce.commitTransaction("aligning Center X")}},Ue.prototype.alignCenterY=function(){var ce=this.diagram,Pe=ce.selection.first();if(Pe){ce.startTransaction("aligning Center Y");var Se=Pe.actualBounds.y+Pe.actualBounds.height/2;ce.selection.each(function(ke){ke instanceof go.Link||ke.move(new go.Point(ke.actualBounds.x,Se-ke.actualBounds.height/2))}),ce.commitTransaction("aligning Center Y")}},Ue.prototype.alignColumn=function(ce){var Pe=this.diagram;Pe.startTransaction("align Column"),ce===void 0&&(ce=0),ce=parseFloat(ce);var Se=new Array;Pe.selection.each(function(dt){dt instanceof go.Link||Se.push(dt)});for(var ke=0;ke<Se.length-1;ke++){var qe=Se[ke],tt=qe.actualBounds.y+qe.actualBounds.height+ce,pt=Se[ke+1];pt.move(new go.Point(qe.actualBounds.x,tt))}Pe.commitTransaction("align Column")},Ue.prototype.alignRow=function(ce){ce===void 0&&(ce=0),ce=parseFloat(ce);var Pe=this.diagram;Pe.startTransaction("align Row");var Se=new Array;Pe.selection.each(function(dt){dt instanceof go.Link||Se.push(dt)});for(var ke=0;ke<Se.length-1;ke++){var qe=Se[ke],tt=qe.actualBounds.x+qe.actualBounds.width+ce,pt=Se[ke+1];pt.move(new go.Point(tt,qe.actualBounds.y))}Pe.commitTransaction("align Row")},Ue.prototype.canRotate=function(ce){var Pe=this.diagram;return!(Pe===null||Pe.isReadOnly||Pe.isModelReadOnly||Pe.selection.count<1)},Ue.prototype.rotate=function(ce){ce===void 0&&(ce=90);var Pe=this.diagram;Pe.startTransaction("rotate "+ce.toString());var Pe=this.diagram;Pe.selection.each(function(Se){Se instanceof go.Link||Se instanceof go.Group||(Se.angle+=ce)}),Pe.commitTransaction("rotate "+ce.toString())},Ue.prototype.pullToFront=function(){var ce=this.diagram;ce.startTransaction("pullToFront");var Pe=new go.Map;ce.selection.each(function(Se){Pe.set(Se.layer,0)}),Pe.iteratorKeys.each(function(Se){var ke=0;Se.parts.each(function(qe){if(!qe.isSelected){var tt=qe.zOrder;isNaN(tt)?qe.zOrder=0:ke=Math.max(ke,tt)}}),Pe.set(Se,ke)}),ce.selection.each(function(Se){Ue._assignZOrder(Se,Pe.get(Se.layer)+1)}),ce.commitTransaction("pullToFront")},Ue.prototype.pushToBack=function(){var ce=this.diagram;ce.startTransaction("pushToBack");var Pe=new go.Map;ce.selection.each(function(Se){Pe.set(Se.layer,0)}),Pe.iteratorKeys.each(function(Se){var ke=0;Se.parts.each(function(qe){if(!qe.isSelected){var tt=qe.zOrder;isNaN(tt)?qe.zOrder=0:ke=Math.min(ke,tt)}}),Pe.set(Se,ke)}),ce.selection.each(function(Se){Ue._assignZOrder(Se,Pe.get(Se.layer)-1-Ue._findGroupDepth(Se))}),ce.commitTransaction("pushToBack")},Ue._assignZOrder=function(ce,Pe,Se){Se===void 0&&(Se=ce),ce.layer===Se.layer&&(ce.zOrder=Pe),ce instanceof go.Group&&ce.memberParts.each(function(ke){Ue._assignZOrder(ke,Pe+1,Se)})},Ue._findGroupDepth=function(ce){if(ce instanceof go.Group){var Pe=0;return ce.memberParts.each(function(Se){Pe=Math.max(Pe,Ue._findGroupDepth(Se))}),Pe+1}else return 0},Ue.prototype.doKeyDown=function(){var ce=this.diagram;if(ce!==null){var Pe=ce.lastInput;if(Pe.key==="Up"||Pe.key==="Down"||Pe.key==="Left"||Pe.key==="Right"){var Se=this.arrowKeyBehavior;if(Se==="none")return;if(Se==="select"){this._arrowKeySelect();return}else if(Se==="move"){this._arrowKeyMove();return}else if(Se==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Ue.prototype._getAllParts=function(){var ce=new Array;return this.diagram.nodes.each(function(Pe){ce.push(Pe)}),this.diagram.parts.each(function(Pe){ce.push(Pe)}),ce},Ue.prototype._arrowKeyMove=function(){var ce=this.diagram,Pe=ce.lastInput,Se=0,ke=0;if(Pe.control||Pe.meta)Se=1,ke=1;else if(ce.grid!==null){var qe=ce.grid.gridCellSize;ke=qe.width,Se=qe.height}ce.startTransaction("arrowKeyMove"),ce.selection.each(function(tt){Pe.key==="Up"?tt.move(new go.Point(tt.actualBounds.x,tt.actualBounds.y-Se)):Pe.key==="Down"?tt.move(new go.Point(tt.actualBounds.x,tt.actualBounds.y+Se)):Pe.key==="Left"?tt.move(new go.Point(tt.actualBounds.x-ke,tt.actualBounds.y)):Pe.key==="Right"&&tt.move(new go.Point(tt.actualBounds.x+ke,tt.actualBounds.y))}),ce.commitTransaction("arrowKeyMove")},Ue.prototype._arrowKeySelect=function(){var ce=this.diagram,Pe=ce.lastInput,Se=null;Pe.key==="Up"?Se=this._findNearestPartTowards(270):Pe.key==="Down"?Se=this._findNearestPartTowards(90):Pe.key==="Left"?Se=this._findNearestPartTowards(180):Pe.key==="Right"&&(Se=this._findNearestPartTowards(0)),Se!==null&&(Pe.shift?Se.isSelected=!0:Pe.control||Pe.meta?Se.isSelected=!Se.isSelected:ce.select(Se))},Ue.prototype._findNearestPartTowards=function(ce){var Pe=this.diagram.selection.first();if(Pe===null)return null;for(var Se=Pe.actualBounds.center,ke=this._getAllParts(),qe=1/0,tt=Pe,pt=0;pt<ke.length;pt++){var dt=ke[pt];if(dt!==Pe&&dt.canSelect()){var ct=dt.actualBounds.center,bt=Se.directionPoint(ct),Kt=this._angleCloseness(bt,ce);if(Kt<=45){var Ie=Se.distanceSquaredPoint(ct);Ie*=1+Math.sin(Kt*Math.PI/180),Ie<qe&&(qe=Ie,tt=dt)}}}return tt},Ue.prototype._angleCloseness=function(ce,Pe){return Math.min(Math.abs(Pe-ce),Math.min(Math.abs(Pe+360-ce),Math.abs(Pe-360-ce)))},Ue.prototype._arrowKeyTree=function(){var ce=this.diagram,Pe=ce.selection.first();if(Pe instanceof go.Node){var Se=ce.lastInput;if(Se.key==="Right"){if(!Pe.isTreeLeaf)if(!Pe.isTreeExpanded)ce.commandHandler.canExpandTree(Pe)&&ce.commandHandler.expandTree(Pe);else{var ke=this._sortTreeChildrenByY(Pe).first();ke!==null&&ce.select(ke)}}else if(Se.key==="Left")if(!Pe.isTreeLeaf&&Pe.isTreeExpanded)ce.commandHandler.canCollapseTree(Pe)&&ce.commandHandler.collapseTree(Pe);else{var qe=Pe.findTreeParentNode();qe!==null&&ce.select(qe)}else if(Se.key==="Up"){var qe=Pe.findTreeParentNode();if(qe!==null){var tt=this._sortTreeChildrenByY(qe),pt=tt.indexOf(Pe);if(pt>0){for(var dt=tt.elt(pt-1);dt!==null&&dt.isTreeExpanded&&!dt.isTreeLeaf;){var ct=this._sortTreeChildrenByY(dt);dt=ct.last()}dt!==null&&ce.select(dt)}else ce.select(qe)}}else if(Se.key==="Down")if(Pe.isTreeExpanded&&!Pe.isTreeLeaf){var ke=this._sortTreeChildrenByY(Pe).first();ke!==null&&ce.select(ke)}else for(;Pe!==null;){var qe=Pe.findTreeParentNode();if(qe===null)break;var tt=this._sortTreeChildrenByY(qe),pt=tt.indexOf(Pe);if(pt<tt.length-1){ce.select(tt.elt(pt+1));break}else Pe=qe}var bt=ce.selection.first();bt!==null&&ce.scrollToRect(bt.actualBounds)}},Ue.prototype._sortTreeChildrenByY=function(ce){var Pe=new go.List().addAll(ce.findTreeChildrenNodes());return Pe.sort(function(Se,ke){var qe=Se.location,tt=ke.location;return qe.y<tt.y?-1:qe.y>tt.y?1:qe.x<tt.x?-1:qe.x>tt.x?1:0}),Pe},Ue.prototype.copyToClipboard=function(ce){go.CommandHandler.prototype.copyToClipboard.call(this,ce),this._lastPasteOffset.set(this.pasteOffset)},Ue.prototype.pasteFromClipboard=function(){var ce=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ce,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ce},Object.defineProperty(Ue.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ce){if(ce!=="move"&&ce!=="select"&&ce!=="scroll"&&ce!=="tree"&&ce!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ce);this._arrowKeyBehavior=ce}}),Object.defineProperty(Ue.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ce){if(!(ce instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ce);this._pasteOffset.set(ce)}});var Dt=Ue,Ot=ie(37404),zt=ie(43604),Fe=ie(70635),Le={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ve=ie(59301),_e=(ce,Pe,Se)=>new Promise((ke,qe)=>{var tt=ct=>{try{dt(Se.next(ct))}catch(bt){qe(bt)}},pt=ct=>{try{dt(Se.throw(ct))}catch(bt){qe(bt)}},dt=ct=>ct.done?ke(ct.value):Promise.resolve(ct.value).then(tt,pt);dt((Se=Se.apply(ce,Pe)).next())});function je({onCancel:ce,callback:Pe}){let Se=(0,re.useRef)(),ke=(0,re.useRef)(),qe=(0,re.useRef)(),tt=(0,re.useRef)(!1);const pt=(0,re.useRef)(!1),[dt,ct]=(0,re.useState)(0);function bt(){const Ie=ue.bx.make,At={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"};Se.current=new ue.S0(ke.current,{padding:20,grid:Ie(ue.s_,"Grid",Ie(ue.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ie(ue.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:We=>{var mt=We.diagram.commandHandler.addTopLevelParts(We.diagram.selection,!0);mt||We.diagram.currentTool.doCancel()},commandHandler:Ie(Dt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:We=>{var mt=We.subject;mt.location=mt.location.copy().snapToGridPoint(We.diagram.grid.gridOrigin,We.diagram.grid.gridCellSize),setTimeout(()=>{We.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:We=>{var mt=We.subject;setTimeout(()=>{We.diagram.commandHandler.editTextBlock()})},LinkRelinked:We=>{var mt=We.parameter.part;mt.invalidateConnectedLinks();var Lt=We.subject;We.diagram.toolManager.linkingTool.isForwards?Lt.toNode.invalidateConnectedLinks():Lt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Se.current.nodeTemplate=Ie(ue.NB,"Auto",{locationSpot:ue.z6.Center,locationObjectName:"SHAPE",desiredSize:new ue.$u(120,60),minSize:new ue.$u(40,40),resizable:!0,resizeCellSize:new ue.$u(10,10),rotatable:!0},new ue.KX("location","loc",ue.E9.parse).makeTwoWay(ue.E9.stringify),new ue.KX("desiredSize","size",ue.$u.parse).makeTwoWay(ue.$u.stringify),Ie(ue.bn,{name:"SHAPE",fill:At.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ue.z6.AllSides,toSpot:ue.z6.AllSides},new ue.KX("figure"),new ue.KX("fill"),new ue.KX("stroke","borderColor"),new ue.KX("strokeWidth","thickness"),new ue.KX("strokeDashArray","dash")),Ie(ue.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Ie(ue.al,{margin:1,textAlign:"center",overflow:ue.al.OverflowEllipsis,editable:!0},new ue.KX("text").makeTwoWay(),new ue.KX("stroke","color"))),Se.current.nodeTemplate.toolTip=Ie("ToolTip",Ie(ue.s_,"Vertical",{maxSize:new ue.$u(200,NaN)},Ie(ue.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ue.KX("text")),Ie(ue.al,{font:"10pt sans-serif",textAlign:"center"},new ue.KX("text","details"))));function Tt(We,mt){var Lt=(at,$t)=>{at.handled=!0,at.diagram.model.commit(Yt=>{var Sn=$t.part.adornedPart,Jt=new ue.E9().setRectSpot(Sn.actualBounds,We);Jt.subtract(Sn.location),Jt.scale(2,2),Jt.x+=Math.sign(Jt.x)*130,Jt.y+=Math.sign(Jt.y)*130,Jt.add(Sn.location),Jt.snapToGridPoint(at.diagram.grid.gridOrigin,at.diagram.grid.gridCellSize);var sn=Yt.copyNodeData(Sn.data);Yt.setGroupKeyForNodeData(sn,Yt.getGroupKeyForNodeData(Sn.data)),Yt.addNodeData(sn);var Nn={from:Sn.key,to:Yt.getKeyForNodeData(sn)};Yt.addLinkData(Nn);var On=at.diagram.findNodeForData(sn);On.location=Jt,at.diagram.select(On),setTimeout(()=>{at.diagram.commandHandler.editTextBlock()},20)})};return Ie(ue.bn,{figure:mt,alignment:We,alignmentFocus:We.opposite(),width:We.equals(ue.z6.Top)||We.equals(ue.z6.Bottom)?25:18,height:We.equals(ue.z6.Top)||We.equals(ue.z6.Bottom)?18:25,fill:"orange",stroke:At.white,strokeWidth:4,mouseEnter:(at,$t)=>$t.fill="dodgerblue",mouseLeave:(at,$t)=>$t.fill="orange",isActionable:!0,click:Lt,contextClick:Lt})}function un(We){return Ie(ue.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(mt,Lt)=>Lt.fill="dodgerblue",mouseLeave:(mt,Lt)=>Lt.fill="orange",click:(mt,Lt)=>{mt.diagram.commandHandler.showContextMenu(Lt.part.adornedPart)}},We||{})}Se.current.nodeTemplate.selectionAdornmentTemplate=Ie(ue.uz,"Spot",Ie(ue.Vm,{padding:10}),Tt(ue.z6.Top,"TriangleUp"),Tt(ue.z6.Left,"TriangleLeft"),Tt(ue.z6.Right,"TriangleRight"),Tt(ue.z6.Bottom,"TriangleDown"),un({alignment:new ue.z6(.75,0)}));function It(We,mt){return(Lt,at)=>{Lt.handled=!0,Lt.diagram.model.commit($t=>{$t.set(at.part.adornedPart.data,We,mt)})}}function Gt(We,mt){return mt||(mt="color"),Ie(ue.bn,{width:16,height:16,stroke:"lightgray",fill:We,margin:1,background:"transparent",mouseEnter:(Lt,at)=>at.stroke="dodgerblue",mouseLeave:(Lt,at)=>at.stroke="lightgray",click:It(mt,We),contextClick:It(mt,We)})}function qt(){return[Ie("ContextMenuButton",Ie(ue.s_,"Horizontal",Gt(At.white,"fill"),Gt(At.beige,"fill"),Gt(At.extralightblue,"fill"),Gt(At.extralightred,"fill"))),Ie("ContextMenuButton",Ie(ue.s_,"Horizontal",Gt(At.lightgray,"fill"),Gt(At.lightgreen,"fill"),Gt(At.lightblue,"fill"),Gt(At.lightred,"fill")))]}function wt(){return[Ie("ContextMenuButton",Ie(ue.s_,"Horizontal",Gt(At.black),Gt(At.green),Gt(At.blue),Gt(At.red))),Ie("ContextMenuButton",Ie(ue.s_,"Horizontal",Gt(At.white),Gt(At.magenta),Gt(At.purple),Gt(At.orange)))]}function Wt(We,mt){return mt||(mt="thickness"),Ie(ue.bn,"LineH",{width:16,height:16,strokeWidth:We,margin:1,background:"transparent",mouseEnter:(Lt,at)=>at.background="dodgerblue",mouseLeave:(Lt,at)=>at.background="transparent",click:It(mt,We),contextClick:It(mt,We)})}function kt(We,mt){return mt||(mt="dash"),Ie(ue.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:We,margin:1,background:"transparent",mouseEnter:(Lt,at)=>at.background="dodgerblue",mouseLeave:(Lt,at)=>at.background="transparent",click:It(mt,We),contextClick:It(mt,We)})}function en(){return[Ie("ContextMenuButton",Ie(ue.s_,"Horizontal",Wt(1),Wt(2),Wt(3),Wt(4))),Ie("ContextMenuButton",Ie(ue.s_,"Horizontal",kt(null),kt([2,4]),kt([4,4])))]}function Xt(We,mt){return mt||(mt="figure"),Ie(ue.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:We,margin:1,background:"transparent",mouseEnter:(Lt,at)=>at.fill="dodgerblue",mouseLeave:(Lt,at)=>at.fill="lightgray",click:It(mt,We),contextClick:It(mt,We)})}Se.current.nodeTemplate.contextMenu=Ie("ContextMenu",Ie("ContextMenuButton",Ie(ue.s_,"Horizontal",Xt("Rectangle"),Xt("RoundedRectangle"),Xt("Ellipse"),Xt("Diamond"))),Ie("ContextMenuButton",Ie(ue.s_,"Horizontal",Xt("Parallelogram2"),Xt("ManualOperation"),Xt("Procedure"),Xt("Cylinder1"))),Ie("ContextMenuButton",Ie(ue.s_,"Horizontal",Xt("Terminator"),Xt("CreateRequest"),Xt("Document"),Xt("TriangleDown"))),qt(),wt(),en()),Se.current.groupTemplate=Ie(ue.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ue.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(We,mt)=>{var Lt=mt.addMembers(mt.diagram.selection,!0);Lt||mt.diagram.currentTool.doCancel()},avoidable:!1},new ue.KX("location","loc",ue.E9.parse).makeTwoWay(ue.E9.stringify),Ie(ue.s_,"Auto",{name:"BODY"},Ie(ue.bn,{parameter1:10,fill:At.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ue.z6.AllSides,toSpot:ue.z6.AllSides},new ue.KX("fill"),new ue.KX("stroke","color"),new ue.KX("strokeWidth","thickness"),new ue.KX("strokeDashArray","dash")),Ie(ue.Vm,{background:"transparent",margin:20})),Ie(ue.al,{alignment:ue.z6.Top,alignmentFocus:ue.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new ue.KX("text"),new ue.KX("stroke","color"))),Se.current.groupTemplate.selectionAdornmentTemplate=Ie(ue.uz,"Spot",Ie(ue.s_,"Auto",Ie(ue.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Ie(ue.Vm,{margin:1.5})),un({alignment:ue.z6.TopRight,alignmentFocus:ue.z6.BottomRight})),Se.current.groupTemplate.contextMenu=Ie("ContextMenu",qt(),wt(),en()),Se.current.linkTemplate=Ie(ue.rU,{layerName:"Foreground",routing:ue.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new ue.KX("fromSpot","fromSpot",ue.z6.parse),new ue.KX("toSpot","toSpot",ue.z6.parse),new ue.KX("fromShortLength","dir",We=>We>=1?10:0),new ue.KX("toShortLength","dir",We=>We>=1?10:0),new ue.KX("points").makeTwoWay(),Ie(ue.bn,{strokeWidth:2},new ue.KX("stroke","color"),new ue.KX("strokeWidth","thickness"),new ue.KX("strokeDashArray","dash")),Ie(ue.bn,{segmentIndex:0,segmentOffset:new ue.E9(15,0),segmentOrientation:ue.rU.OrientAlong,alignmentFocus:ue.z6.Right,figure:"circle",width:10,strokeWidth:0},new ue.KX("fill","color"),new ue.KX("visible","dir",We=>We===1)),Ie(ue.bn,{segmentIndex:-1,segmentOffset:new ue.E9(-10,6),segmentOrientation:ue.rU.OrientPlus90,alignmentFocus:ue.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ue.KX("fill","color"),new ue.KX("visible","dir",We=>We>=1),new ue.KX("width","thickness",We=>7+3*We),new ue.KX("height","thickness",We=>7+3*We),new ue.KX("segmentOffset","thickness",We=>new ue.E9(-15,4+1.5*We))),Ie(ue.bn,{segmentIndex:0,segmentOffset:new ue.E9(15,-6),segmentOrientation:ue.rU.OrientMinus90,alignmentFocus:ue.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ue.KX("fill","color"),new ue.KX("visible","dir",We=>We===2),new ue.KX("width","thickness",We=>7+3*We),new ue.KX("height","thickness",We=>7+3*We),new ue.KX("segmentOffset","thickness",We=>new ue.E9(-15,4+1.5*We))),Ie(ue.al,{alignmentFocus:new ue.z6(0,1,-4,0),editable:!0},new ue.KX("text").makeTwoWay(),new ue.KX("stroke","color"))),Se.current.linkTemplate.selectionAdornmentTemplate=Ie(ue.uz,Ie(ue.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:ln(2)},new ue.KX("pathPattern","thickness",ln)),un({alignmentFocus:new ue.z6(0,0,-6,-4)}));function ln(We){return Ie(ue.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(We+4).toString()+" H3"})}function Ut(We){var mt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return We===0?mt="M0 0 M16 16 M0 8 L16 8":We===2&&(mt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Ie(ue.bn,{geometryString:mt,margin:2,background:"transparent",mouseEnter:(Lt,at)=>at.background="dodgerblue",mouseLeave:(Lt,at)=>at.background="transparent",click:It("dir",We),contextClick:It("dir",We)})}function hn(We){var mt=(Lt,at)=>{Lt.handled=!0,Lt.diagram.model.commit($t=>{var Yt=at.part.adornedPart;$t.set(Yt.data,We?"toSpot":"fromSpot",ue.z6.stringify(ue.z6.AllSides)),(We?Yt.toNode:Yt.fromNode).invalidateConnectedLinks()})};return Ie(ue.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Lt,at)=>at.background="dodgerblue",mouseLeave:(Lt,at)=>at.background="transparent",click:mt,contextClick:mt})}function Oe(We,mt){var Lt=0,at=ue.z6.RightSide;We.equals(ue.z6.Top)?(Lt=270,at=ue.z6.TopSide):We.equals(ue.z6.Left)?(Lt=180,at=ue.z6.LeftSide):We.equals(ue.z6.Bottom)&&(Lt=90,at=ue.z6.BottomSide),mt||(Lt-=180);var $t=(Yt,Sn)=>{Yt.handled=!0,Yt.diagram.model.commit(Jt=>{var sn=Sn.part.adornedPart;Jt.set(sn.data,mt?"toSpot":"fromSpot",ue.z6.stringify(at)),(mt?sn.toNode:sn.fromNode).invalidateConnectedLinks()})};return Ie(ue.bn,{alignment:We,alignmentFocus:We.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Lt,background:"transparent",mouseEnter:(Yt,Sn)=>Sn.background="dodgerblue",mouseLeave:(Yt,Sn)=>Sn.background="transparent",click:$t,contextClick:$t})}Se.current.linkTemplate.contextMenu=Ie("ContextMenu",wt(),en(),Ie("ContextMenuButton",Ie(ue.s_,"Horizontal",Ut(0),Ut(1),Ut(2))),Ie("ContextMenuButton",Ie(ue.s_,"Horizontal",Ie(ue.s_,"Spot",hn(!1),Oe(ue.z6.Top,!1),Oe(ue.z6.Left,!1),Oe(ue.z6.Right,!1),Oe(ue.z6.Bottom,!1)),Ie(ue.s_,"Spot",{margin:new ue.Zt(0,0,0,2)},hn(!0),Oe(ue.z6.Top,!0),Oe(ue.z6.Left,!0),Oe(ue.z6.Right,!0),Oe(ue.z6.Bottom,!0)))));const Ln=`{ "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 yn=["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 En(We){return console.log("shapeName:",We),yn.indexOf(We)>=0}var jt=new ue.YI(qe.current,{maxSelectionCount:1,linkTemplate:Ie(ue.rU,{locationSpot:ue.z6.Center,selectionAdornmentTemplate:Ie(ue.uz,"Link",{locationSpot:ue.z6.Center},Ie(ue.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Ie(ue.bn,{toArrow:"Standard",stroke:null}))},{routing:ue.rU.AvoidsNodes,curve:ue.rU.JumpOver,corner:5,toShortLength:4},new ue.KX("points"),Ie(ue.bn,{isPanelMain:!0,strokeWidth:2}),Ie(ue.bn,{toArrow:"Standard",stroke:null})),model:new ue.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...ue.bn.getFigureGenerators().toArray().map(We=>({text:"\u672A\u547D\u540D",size:"100 100",figure:We.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Se.current.addDiagramListener("TextEdited",function(We){var mt;const Lt=We.subject.part;var at=(mt=document.activeElement)==null?void 0:mt.value;typeof at=="string"&&at.trim()===""&&Se.current.model.commit(function($t){$t.set(Lt.data,"text","\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}),jt.nodeTemplate=Ie(ue.NB,"Auto",{locationSpot:ue.z6.Center},new ue.KX("location","location",ue.E9.parse).makeTwoWay(ue.E9.stringify),Ie(ue.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 ue.KX("stroke").makeTwoWay(),new ue.KX("fill").makeTwoWay(),new ue.KX("figure")),Ie(ue.al,{margin:new ue.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new ue.$u(16,16),maxSize:new ue.$u(10,NaN),textAlign:"center",editable:!0},new ue.KX("key").makeTwoWay())),setTimeout(()=>{Se.current.grid=Ie(ue.s_,"Grid",Ie(ue.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ie(ue.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Se.current.grid.visible=!0,Se.current.grid.gridCellStroke="darkgray",Se.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Se.current,Se.current}const Kt=()=>_e(this,null,function*(){var Ie=Se.current.makeImage();const At=yield(0,Fe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Ie.src}});Pe({src:At.url})});return(0,re.useEffect)(()=>(setTimeout(()=>{bt()},500),ct(dt+1),()=>{Se.current=null}),[]),ve.createElement("div",{ref:pt,className:tt.current?`${Le.maxH60} body-overflow-initial`:"body-overflow-initial"},ve.createElement(Ae.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!dt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:ve.createElement(Ze.Z,null,ve.createElement(zt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ve.createElement(zt.Z,{onClick:()=>{var Ie,At,Tt=Se.current.selection.first();if(tt.current=!tt.current,document.activeElement&&Tt){let un=(At=(Ie=document.activeElement)==null?void 0:Ie.value)==null?void 0:At.trim();typeof un=="string"&&Se.current.model.commit(function(It){It.set(Tt.data,"text",un||"\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}ct(dt+1)}},ve.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ce},ve.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Le.flowChartWrp},ve.createElement("div",{style:{display:"flex",height:"100%"}},ve.createElement("div",{style:{width:"300px",height:"100%"}},ve.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),ve.createElement("div",{style:{height:"calc(100% - 50px)"},className:Le.myPaletteDiv,ref:qe})),ve.createElement("div",{style:{flex:1,position:"relative"}},ve.createElement("div",{ref:ke,style:{height:"80vh"}}))),ve.createElement("div",{className:"tr"},ve.createElement(ze.ZP,{size:"large",onClick:Kt,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var ut=je,vt=ie(5112),Ft=ie(5871);const xt=vt.ZP.Group,Mt={margin:"0 8px"};var ht=({callback:ce,onCancel:Pe})=>{function Se(ke){ce(ke)}return re.createElement(le.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Se},re.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},re.createElement("span",{style:Mt},"\u5355\u5143\u683C\u6570\uFF1A"),re.createElement("span",{style:Mt},"\u884C\u6570"),re.createElement(le.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},re.createElement(Ft.Z,null)),re.createElement("span",{style:Mt},"\u5217\u6570"),re.createElement(le.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},re.createElement(Ft.Z,null))),re.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},re.createElement("span",{style:Mt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),re.createElement(le.default.Item,{name:"align"},re.createElement(xt,null,re.createElement(vt.ZP,{value:"default"},re.createElement("i",{className:"fa fa-align-justify"})),re.createElement(vt.ZP,{value:"left"},re.createElement("i",{className:"fa fa-align-left"})),re.createElement(vt.ZP,{value:"center"},re.createElement("i",{className:"fa fa-align-center"})),re.createElement(vt.ZP,{value:"right"},re.createElement("i",{className:"fa fa-align-right"}))))),re.createElement("div",{className:"flex-container flex-end"},re.createElement(ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(ze.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},Nt=ie(78673),Qt=ie(98598),mn=ie.n(Qt),Vt=(0,re.forwardRef)(({use3d:ce,width:Pe,height:Se,callback:ke,showSaveButton:qe},tt)=>{const pt=(0,re.useRef)(),dt=(0,re.useRef)(),[ct,bt]=(0,re.useState)(!1),Kt=(0,re.useRef)({id:pt,appName:"graphing",width:Pe||1e3,height:Se||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,re.useEffect)(()=>{dt.current=new(mn())(Kt.current,!0),window.onload=function(){dt.current.inject("applet_container")}},[]);const Ie=()=>{var At=window.ggbApplet.getPNGBase64(1,!0,72);return ke&&ke(At),At};return(0,re.useEffect)(()=>{Kt.current.appName=ct?"3D":"graphing",dt.current.inject("applet_container")},[ct]),(0,re.useEffect)(()=>{bt(ce)},[ce]),(0,re.useImperativeHandle)(tt,()=>({getImgData:Ie})),re.createElement(re.Fragment,null,re.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:pt}),re.createElement(Ze.Z,{align:"middle"},re.createElement(zt.Z,{flex:1},re.createElement(Nt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:ct,onChange:At=>bt(At)})),re.createElement(zt.Z,null,re.createElement(ze.ZP,{size:"large",onClick:Ie,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),tn=ie(75890),nn=ie(1012),Pn=ie(8591);const bn="link",wn="upload-image",Dn="add-flowchart",Fn="draw-image",$n="add-flowchart",on="code-block",xn="add-table",kn="------------",jn={default:kn,left:`:${kn}`,center:`:${kn}:`,right:`${kn}:`};var Qn=ie(91300),Un=(ce,Pe,Se)=>new Promise((ke,qe)=>{var tt=ct=>{try{dt(Se.next(ct))}catch(bt){qe(bt)}},pt=ct=>{try{dt(Se.throw(ct))}catch(bt){qe(bt)}},dt=ct=>ct.done?ke(ct.value):Promise.resolve(ct.value).then(tt,pt);dt((Se=Se.apply(ce,Pe)).next())});function Yn(){}let oa=0;const Zn=1e4,qn="\u2581",Gn="@\u2581\u2581@",ra="@\u2581@",da=`
**\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`,pe=["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 He(ce){return/^\d+$/.test(ce)?`${ce}px`:ce}const rt=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",lt={[rt+"-B"]:"bold",[rt+"-I"]:"italic"},ft={[bn]:"\u6DFB\u52A0\u94FE\u63A5",[on]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[wn]:"\u6DFB\u52A0\u56FE\u7247",[Fn]:"\u6DFB\u52A0\u753B\u56FE",[Dn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[xn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Ct=({defaultValue:ce="",onChange:Pe,width:Se="100%",height:ke=400,miniToolbar:qe=!1,isFocus:tt=!1,watch:pt,insertTemp:dt,mode:ct="markdown",id:bt="markdown-editor-id",showResizeBar:Kt=!1,noStorage:Ie=!1,showNullButton:At=!1,showNullProgramButton:Tt=!1,hidetoolBar:un=!1,fullScreen:It=!1,onBlur:Gt,onCMBeforeChange:qt,onFullScreen:wt,className:Wt="",disablePaste:kt=!1,disabled:en=!1,disabledFill:Xt=!1,placeholder:ln="",values:Ut="",extraUse:hn})=>{const[Oe,Ln]=(0,re.useState)(null),[yn,En]=(0,re.useState)(ce),[jt,We]=(0,re.useState)(pt),[mt,Lt]=(0,re.useState)(It),[at,$t]=(0,re.useState)(""),[Yt,Sn]=(0,re.useState)(0),[Jt,sn]=(0,re.useState)(ke),[Nn,On]=(0,re.useState)(!1),ea=(0,re.useRef)((0,nn.Z)()),cn=(0,re.useRef)(!1),Rt=(0,re.useRef)(),[rn,dn]=(0,re.useState)(0),[Bn,Mn]=(0,re.useState)(0),zn=(0,re.useRef)(),Rn=(0,re.useRef)(),In=(0,re.useRef)(),Tn=(0,re.useRef)(),ta=()=>Un(void 0,null,function*(){var St;const Xe=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ea.current}});(St=Xe==null?void 0:Xe.attachments)!=null&&St.length&&(console.log("cm:",Oe,zn),Xe.attachments.map(Ve=>{Ve.content_type.indexOf("image")>-1?Oe.replaceSelection(`![,](/api/attachments/${Ve.id}?type=${Ve.content_type})`):Ve.content_type.indexOf("video")>-1?Oe.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Ve.content_type.indexOf("pdf")>-1?Oe.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Ve.id}?type=${Ve.content_type}&disposition=inline" target="_blank">${Ve.name}</a>`):Oe.replaceSelection(`[${Ve.name}](${ENV.API_SERVER}/api/attachments/${Ve.id}?type=${Ve.content_type})`)}))});(0,re.useEffect)(()=>{const St=window.scrollY||window.pageYOffset;En(Ut),Oe==null||Oe.setValue(Ut),window.scrollTo(0,St)},[Ut]),(0,re.useEffect)(()=>{wt==null||wt(mt)},[mt]),(0,re.useEffect)(()=>{if(zn.current){let St=function(Ve,it){var _t;if(kt){it.preventDefault();return}const Zt=it.clipboardData;if(Zt){const fn=Zt.types.toString(),an=Zt.items;if(fn==="Files"||Zt.types.indexOf("Files")>-1){if(it.preventDefault(),ct=="stex")return;try{let vn=an[1];((_t=an[0])==null?void 0:_t.kind)==="file"&&(vn=an[0]);const pn=vn.getAsFile(),Hn=pn.name.split(".").pop();(0,Ee.I)(pn,An=>{var ga,ia,ua;An.id?((ga=pn==null?void 0:pn.type)==null?void 0:ga.indexOf("image"))>-1?Xe.replaceSelection(`![,](/api/attachments/${An.id}?type=${An.content_type})`):((ia=pn==null?void 0:pn.type)==null?void 0:ia.indexOf("video"))>-1?Xe.replaceSelection(`<video width="100%" controls src="/api/attachments/${An.id}"></video>`):((ua=pn==null?void 0:pn.type)==null?void 0:ua.indexOf("pdf"))>-1?Xe.replaceSelection(`<a href="/api/attachments/${An.id}?type=${pn.type}&disposition=inline" target="_blank">${pn.name}</a>`):pe.includes(Hn)?Xe.replaceSelection(`<a href="/api/attachments/${An.id}?type=office&disposition=inline" target="_blank">${pn.name}</a>`):Xe.replaceSelection(`[${pn.name}](/api/attachments/${An.id}?type=${An.content_type})`):(An==null?void 0:An.status)===401&&(Pn.ZP.warning((An==null?void 0:An.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(vn){Pn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Xe=Te().fromTextArea(zn.current,{mode:ct,lineNumbers:!qe,lineWrapping:!0,value:ce,autoCloseTags:!Tt,autoCloseBrackets:!0});return Xe.on("keyup",function(Ve,it){it.keyCode===8&&(Ve.getValue()==""?Xe.setOption("placeholder",ln):Xe.setOption("placeholder",null))}),Xe.on("keydown",function(Ve,it){if(it.keyCode===8){var _t=Kn(Ve);_t&&it.preventDefault()}}),tt&&Xe.focus(),Xe.on("paste",St),Xe.on("dragleave",function(Ve,it){Rn.current.classList.remove("mouse-hover-md")}),en&&Xe.on("beforeChange",function(Ve,it){(it.origin==="paste"||it.origin==="+input")&&it.cancel()}),Ln(Xe),()=>{Xe.off("paste",St)}}},[]);const Wn=(0,re.useCallback)(()=>{if(Rn.current)try{}catch(St){console.log(St,"---- to set md editor body height")}},[Jt,Rn,mt]);(0,re.useEffect)(()=>{function St(){let Xe=new Je.Z(Ve=>{for(let it of Ve)(it.target.offsetHeight>0||it.target.offsetWidth>0)&&(Wn(),Oe.setSize("100%","100%"),Oe.refresh())});return Xe.observe(zn.current.parentElement),Xe}if(Oe){const Xe=St();return()=>{var Ve,it;(Ve=zn.current)!=null&&Ve.parentElement&&Xe.unobserve((it=zn.current)==null?void 0:it.parentElement)}}},[Oe,Wn]),(0,re.useEffect)(()=>{if(Oe){let St=[];for(const[Xe,Ve]of Object.entries(lt)){let it={[Xe]:()=>{Jn(Ve)}};St.push(it),Oe.addKeyMap(it)}return Rt.current=setInterval(()=>{cn.current&&ta()},4e3),()=>{clearInterval(Rt.current);for(let Xe of St)Oe.removeKeyMap(Xe)}}},[Oe]),(0,re.useEffect)(()=>{It!==mt&&Lt(It)},[It]),(0,Qn.Z)(()=>{if(!Ie&&Yt>0){let St=new Date().getTime(),Xe=window.sessionStorage.getItem(bt);St>=Yt+Zn&&(!Xe||Xe!==yn)&&(window.sessionStorage.setItem(bt,yn),On(!0))}},Zn),(0,re.useEffect)(()=>{We(pt)},[Oe,pt]),(0,re.useEffect)(()=>{Oe&&tt&&Oe.focus()},[Oe,tt]),(0,re.useEffect)(()=>{if(jt&&Oe){let St=function(Ve){let it=Ve.target;if(Tn.current){let _t=it.scrollTop/it.scrollHeight;Tn.current.scrollTop=Tn.current.scrollHeight*_t}};const Xe=Oe.getScrollerElement();return Xe.addEventListener("scroll",St),()=>{Xe.removeEventListener("scroll",St)}}},[Oe,jt]),(0,re.useEffect)(()=>{if(Oe&&qt){let St=function(Xe,Ve){qt(Xe,Ve)};return Oe.on("beforeChange",St),()=>{Oe.off("beforeChange",St)}}},[Oe,qt]),(0,re.useEffect)(()=>{if(Oe&&Gt){let St=function(){Gt(Oe.getValue())};return Oe.on("blur",St),()=>{Oe.off("blur",St)}}},[Oe,Gt]);function Kn(St,Xe){var Ve=St.getDoc(),it=Ve.getCursor(),_t=Ve.getLine(it.line),Zt=_t.charAt(it.ch-1),fn=_t.lastIndexOf("@\u2581@",it.ch),an=_t.lastIndexOf("@\u2581\u2581@",it.ch),vn=fn>an?fn:an,pn=fn>an?3:4;if(Gn.indexOf(Zt)===-1)return null;if(console.log("change1:",Xe,St,_t,it,vn,fn,an,Zt),vn>=0&&it.ch-vn<5){var Hn=vn+pn;return Ve.replaceRange("",{line:it.line,ch:vn},{line:it.line,ch:Hn}),{line:it.line,ch:Hn}}return null}(0,re.useEffect)(()=>{if(Oe){let St=function(Xe,Ve){const it=Xe.getValue();En(it),Sn(new Date().getTime()),Xe.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Pe&&(Tt?Pe(it,Pa(it)):Pe(it))};return Oe.on("change",St),()=>{Oe.off("change",St)}}},[Oe,Pe]),(0,re.useEffect)(()=>{if(Oe)if(ce==null)Oe.setValue(""),En("");else{const St=window.scrollY||window.pageYOffset;ce!==Oe.getValue()&&(Oe.setValue(ce),En(ce),Oe.setCursor(en?1:Oe.lineCount(),0),window.scrollTo(0,St))}},[Oe,ce]);const Jn=(0,re.useCallback)(St=>{const Xe=Oe.getCursor(),Ve=Oe.getSelection();let it=Ve.split(`
`);switch(St){case"bold":return Oe.replaceSelection("**"+Ve+"**"),Ve===""&&Oe.setCursor(Xe.line,Xe.ch+2),Oe.focus();case"italic":return Oe.replaceSelection("*"+Ve+"*"),Ve===""&&Oe.setCursor(Xe.line,Xe.ch+1),Oe.focus();case"code":return Oe.replaceSelection("`"+Ve+"`"),Ve===""&&Oe.setCursor(Xe.line,Xe.ch+1),Oe.focus();case"inline-latex":return $t("inline-latex"),Oe.focus();case"latex":return Oe.replaceSelection("```latex\n"+Ve+"\n```"),Oe.setCursor(Xe.line+1,Ve.length+1),Oe.focus();case"line-break":return Oe.replaceSelection(`<br/>
`),Oe.focus();case"list-ul":return Ve===""?Oe.replaceSelection("- "+Ve):Oe.replaceSelection(it.map(_t=>_t===""?"":`- ${_t}`).join(`
`)),Oe.focus();case"list-ol":return Ve===""?Oe.replaceSelection("1. "+Ve):Oe.replaceSelection(it.map((_t,Zt)=>_t===""?"":`${Zt+1}. ${_t}`).join(`
`)),Oe.focus();case"add-null-ch":return Ve===""&&Oe.setCursor(Xe.line,Xe.ch),Oe.replaceSelection(qn),Oe.focus();case"add-signal":return Ve===""&&Oe.setCursor(Xe.line,Xe.ch),Oe.replaceSelection(ra),Oe.focus();case"add-multiple":return Ve===""&&Oe.setCursor(Xe.line,Xe.ch),Oe.replaceSelection(Gn),Oe.focus();case"inster-template-1":return Ve===""&&Oe.setCursor(Xe.line,Xe.ch),Oe.replaceSelection(da),Oe.focus();case"eraser":return Oe.setValue(""),Oe.focus();case"trigger-watch":return We(!jt),Oe.focus();case"trigger-full-screen":return Lt(!mt),Oe.focus();case bn:$t(bn);return;case on:$t(on);return;case wn:$t(wn);return;case Fn:$t(Fn);return;case"maths-latex":$t("maths-latex");return;case Dn:$t(Dn);return;case xn:$t(xn);return;default:throw new Error}},[Oe,jt,mt]),Cn=(0,re.useCallback)((St,Xe)=>{var Ve,it,_t,Zt,fn,an;switch($t(""),at){case bn:const{title:ga,link:ia}=St;return Oe.replaceSelection(`[${ga}](${ia})`),Oe.focus();case on:const{language:ua,content:aa}=St;return Oe.replaceSelection(["```"+ua,aa,"```"].join(`
`)),Oe.focus();case"maths-latex":for(var vn=atob(St),pn=new Uint8Array(vn.length),Hn=0;Hn<vn.length;Hn++)pn[Hn]=vn.charCodeAt(Hn);var An=new Blob([pn],{type:"image/png"});(0,Ee.I)(An,Xn=>{Xn.id?Oe.replaceSelection(`![,](/api/attachments/${Xn.id}?type=${Xn.content_type})`):(Xn==null?void 0:Xn.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Oe.replaceSelection("`$$"+St+"$$`");break;case wn:case Fn:case $n:const{src:la,alt:fa}=St,_n=Xe,Ba=(_t=(it=(Ve=_n==null?void 0:_n.name)==null?void 0:Ve.split("."))==null?void 0:it.pop)==null?void 0:_t.call(it);return((Zt=_n==null?void 0:_n.type)==null?void 0:Zt.indexOf("image"))>-1||!(_n!=null&&_n.type)?fa?Oe.replaceSelection(`![ ${fa} ]( ${la} "${fa}" )`):Oe.replaceSelection(`![,](${la})`):((fn=_n==null?void 0:_n.type)==null?void 0:fn.indexOf("video"))>-1?Oe.replaceSelection(`<video width="100%" controls src="${la}"></video>`):((an=_n==null?void 0:_n.type)==null?void 0:an.indexOf("pdf"))>-1?Oe.replaceSelection(`<a href="${la}?type=${_n.type}&disposition=inline" target="_blank">${_n.name}</a>`):pe.includes(Ba)?Oe.replaceSelection(`<a href="${la}?type=office&disposition=inline" target="_blank">${_n.name}</a>`):Oe.replaceSelection(`[${_n.name}](${la})`),Oe.focus();case xn:const{row:wa,col:ya,align:Da}=St;let va=`
`;for(let Xn=0;Xn<wa;Xn++){let Ea=[],Ca=[];for(let Fa=0;Fa<ya;Fa++)Xn===1&&Ca.push(jn[Da]),Ea.push(" ");Xn===1&&(va+=`| ${Ca.join(" | ")} |
`),va+=`| ${Ea.join(ya===1?"":" | ")} |
`}return Oe.replaceSelection(va+`
`),Oe.focus();default:throw new Error}},[Oe,at]),na=(0,re.useMemo)(()=>{switch(at){case bn:return re.createElement(yt,{callback:Cn,onCancel:Vn});case on:return re.createElement(Ht.Z,{callback:Cn,onCancel:Vn});case wn:return re.createElement(Ee.Z,{callback:Cn,onCancel:Vn});case Dn:return re.createElement(ut,{callback:Cn,onCancel:Vn});case xn:return re.createElement(ht,{callback:Cn,onCancel:Vn});case"maths-latex":return re.createElement(Vt,{showSaveButton:!0,callback:Cn});case"inline-latex":return re.createElement(tn.Z,{showSaveButton:!0,callback:Cn});default:return null}},[at]);function Vn(){$t("")}(0,re.useEffect)(()=>{if(In.current){let St=function(fn){_t=!0,Zt=fn.pageY},Xe=function(){_t=!1},Ve=function(fn){if(_t){let an=fn.pageY-Zt;an<0&&(an=0),an>300&&(an=300);let vn=ke+an+"px";sn(vn)}},it=In.current,_t=!1,Zt=0;return it.addEventListener("mousedown",St),document.addEventListener("mousemove",Ve),document.addEventListener("mouseup",Xe),()=>{it.removeEventListener("mousedown",St),document.removeEventListener("mousemove",Ve),document.removeEventListener("mouseup",Xe)}}},[Oe,In]),(0,re.useEffect)(()=>{sn(ke)},[ke]);const ma=He(Se),sa=He(Jt),Sa={width:ma,height:sa},pa=(0,re.useMemo)(()=>{if(Yt){let St=new Date(Yt),Xe=St.getHours(),Ve=St.getMinutes(),it=St.getSeconds();return Xe=Xe<10?"0"+Xe:Xe,Ve=Ve<10?"0"+Ve:Ve,it=it<10?"0"+it:it,`${Xe}:${Ve}:${it}`}return 0},[Yt]),Pa=St=>{const Xe=[];if(Tt){let Ve=-1;St=St.replace(/(@▁▁@|@▁@)/g,function(it,_t,Zt){Xe.push({multiLine:it!==ra})})}return Xe};function ba(){window.sessionStorage.removeItem(bt),On(!1),Sn(0)}function La(){On(!1),Sn(0),Oe.setValue(window.sessionStorage.getItem(bt))}(0,re.useEffect)(()=>{ft[at]&&at!==Fn&&at!==Dn&&setTimeout(()=>{const St=document.getElementsByClassName("markdown-popup-form")[0],Xe=window.innerWidth/2-St.offsetWidth/2,Ve=window.innerHeight/2-St.offsetHeight/2;dn(Xe),Mn(Ve)},0)},[at]);const ha=St=>{St.preventDefault();const Xe=St.clientX-rn,Ve=St.clientY-Bn;document.body.onmousemove=it=>{let _t=it.clientX-Xe,Zt=it.clientY-Ve;const fn=document.getElementsByClassName("markdown-popup-form")[0],an=window.innerWidth-fn.offsetWidth,vn=window.innerHeight-fn.offsetHeight;_t=Math.max(0,Math.min(_t,an)),Zt=Math.max(0,Math.min(Zt,vn)),ca(it.clientX,it.clientY,Xe,Ve)&&(dn(_t),Mn(Zt))},document.body.onmouseup=function(){document.body.onmousemove=null}},ca=(St,Xe,Ve,it)=>{const _t=document.body.clientHeight,Zt=document.body.clientWidth;return St<20&&Ve>St||St>Zt-20&&Ve<St||Xe<20&&it>Xe||Xe>_t-20&&it<Xe?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return re.createElement(re.Fragment,null,re.createElement("div",{className:"markdown-editor-wrapper",ref:Rn},re.createElement("div",{className:`markdown-editor-container ${Wt} ${jt?"on-preview":""} ${qe?"mini":""} ${mt?"full-screen":""}`,style:Sa},re.createElement(ge,{insertTemp:dt,watch:jt,fullScreen:mt,showNullButton:At,showNullProgramButton:Tt,onActionCallback:Jn,hidetoolBar:un,extraUse:hn}),re.createElement("div",{className:"markdown-editor-body"},re.createElement("div",{className:"codemirror-container"},re.createElement("textarea",{ref:zn,placeholder:ln})),jt?re.createElement("div",{ref:Tn,className:"preview-container"},ct==="stex"&&re.createElement(we,{value:yn}),ct!=="stex"&&re.createElement(Ne.Z,{disabledFill:Xt,showProgramFill:Tt,value:yn})):null))),Kt?re.createElement("a",{ref:In,className:"editor-resize"}):null,at===Fn&&re.createElement(st,{callback:Cn,onCancel:Vn}),at===Dn&&re.createElement(ut,{callback:Cn,onCancel:Vn}),re.createElement(me.Z,null,ft[at]&&at!==Fn&&at!==Dn?re.createElement(Ae.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:rn,top:Bn},title:re.createElement("div",{style:{cursor:"move"},onMouseDown:ha},ft[at]),open:!0,onCancel:Vn,footer:null,destroyOnClose:!0,width:at===Dn?"1200px":null,height:at===Dn?"80vh":null,className:"markdown-popup-form"},na):null))}},56701:function(De,et,ie){"use strict";ie.d(et,{Z:function(){return ee},I:function(){return oe}});var re=ie(78241),de=ie(8591),Te=ie(92832),Je=ie(3113),he=ie(58788),ye=ie(59301),se=ie(2119),Ge=ie(59301),Be=Object.defineProperty,xe=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(ae,ge,me)=>ge in ae?Be(ae,ge,{enumerable:!0,configurable:!0,writable:!0,value:me}):ae[ge]=me,b=(ae,ge)=>{for(var me in ge||(ge={}))be.call(ge,me)&&a(ae,me,ge[me]);if(we)for(var me of we(ge))ne.call(ge,me)&&a(ae,me,ge[me]);return ae},E=(ae,ge)=>xe(ae,Ne(ge));const{useForm:y}=re.default,x={width:280,marginRight:10},z={labelCol:{span:5},wrapperCol:{span:19}};var ee=({callback:ae,onCancel:ge})=>{const[me]=y();let le=(0,ye.useRef)();function Ce(nt){ae(nt,le.current)}function ze(nt,gt){if(nt.status===-1){de.ZP.error(nt.message);return}me.setFieldsValue({src:`/api/attachments/${nt.id}`,type:gt.type})}function ot(nt){let gt=nt.target.files[0];le.current=gt,oe(gt,ze)}return Ge.createElement(re.default,E(b({form:me},z),{className:"upload-image-panel",onFinish:Ce,style:{width:470,overflow:"hidden"}}),Ge.createElement(re.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ge.createElement("div",{className:"flex-container"},Ge.createElement(re.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ge.createElement(Te.default,{style:x})),Ge.createElement(te,{onFileChange:ot}))),Ge.createElement(re.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ge.createElement(Te.default,{style:{width:264}})),Ge.createElement(re.default.Item,{style:{textAlign:"right"}},Ge.createElement(Je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ge.createElement(Je.ZP,{type:"default",onClick:ge},"\u53D6\u6D88")))};function te({onFileChange:ae}){return Ge.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ge.createElement("input",{type:"file",onChange:ae}))}function oe(ae,ge){if(!ae)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,se.bg)())throw de.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let me=new FormData;me.append("editormd-image-file",ae),me.append("file_param_name","editormd-image-file"),me.append("byxhr","true");var le=new window.XMLHttpRequest;le.withCredentials=!0,le.addEventListener("load",function(Ce){ge(JSON.parse(Ce.target.responseText),ae)},!1),le.addEventListener("error",function(Ce){console.error(Ce)},!1),le.open("POST",`${he.KI}/api/attachments.json`),le.send(me)}},50474:function(De,et,ie){"use strict";ie.d(et,{Z:function(){return Te}});var re=ie(59301),de=ie(4676);class Te extends re.Component{constructor(he){super(he);const ye=window.document;this.node=ye.createElement("div"),ye.body.appendChild(this.node)}render(){const{children:he}=this.props;return(0,de.createPortal)(he,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},91300:function(De,et,ie){"use strict";ie.d(et,{Z:function(){return de}});var re=ie(59301);function de(Te,Je){const he=(0,re.useRef)();(0,re.useEffect)(()=>{he.current=Te}),(0,re.useEffect)(()=>{function ye(){he.current()}if(Je!==null){let se=setInterval(ye,Je);return()=>clearInterval(se)}},[Je])}},38185:function(De,et,ie){"use strict";ie.r(et),ie.d(et,{default:function(){return ot}});var re=ie(59301),de=ie(23469),Te=ie(42203),Je=ie(20834),he=ie(44e3),ye=ie(78241),se=ie(8591),Ge=ie(66104),Be=ie(95237),xe=ie(43604),Ne=ie(57809),we=ie(92832),be=ie(28103),ne=ie(19842),a=ie(3113),b=ie(60059),E={flex_box_center:"flex_box_center___oUI48",flex_space_between:"flex_space_between___ygvRP",flex_box_vertical_center:"flex_box_vertical_center___eHXbG",flex_box_center_end:"flex_box_center_end___VqFf6",flex_box_column:"flex_box_column___VdaxG",bg:"bg___AuzLD",title:"title___ig1Ym",titleLeft:"titleLeft___HQ0Kv",titleRight:"titleRight___gvlMr",btns:"btns___vjaR0"},y=Object.defineProperty,x=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,te=(nt,gt,fe)=>gt in nt?y(nt,gt,{enumerable:!0,configurable:!0,writable:!0,value:fe}):nt[gt]=fe,oe=(nt,gt)=>{for(var fe in gt||(gt={}))z.call(gt,fe)&&te(nt,fe,gt[fe]);if(x)for(var fe of x(gt))ee.call(gt,fe)&&te(nt,fe,gt[fe]);return nt},ae=(nt,gt)=>{var fe={};for(var $e in nt)z.call(nt,$e)&&gt.indexOf($e)<0&&(fe[$e]=nt[$e]);if(nt!=null&&x)for(var $e of x(nt))gt.indexOf($e)<0&&ee.call(nt,$e)&&(fe[$e]=nt[$e]);return fe},ge=(nt,gt,fe)=>new Promise(($e,Re)=>{var Me=Et=>{try{Bt(fe.next(Et))}catch(yt){Re(yt)}},Ke=Et=>{try{Bt(fe.throw(Et))}catch(yt){Re(yt)}},Bt=Et=>Et.done?$e(Et.value):Promise.resolve(Et.value).then(Me,Ke);Bt((fe=fe.apply(nt,gt)).next())});const{SubMenu:me}=Je.default,{Content:le,Sider:Ce}=he.default,ze=nt=>{var gt=nt,{graduation:fe,globalSetting:$e,loading:Re,user:Me,dispatch:Ke}=gt,Bt=ae(gt,["graduation","globalSetting","loading","user","dispatch"]),Et,yt,Ht,Ee,Ae,Ze,Pt,Qe;const st=(0,Te.useParams)(),ue=(0,Te.useLocation)(),{userInfo:Ue}=Me,[Dt]=ye.default.useForm(),{editTopicData:Ot}=fe,zt=()=>ge(void 0,null,function*(){const Fe=Dt.getFieldsValue(),Le=oe({},Fe);Le.city&&(Le.province=Le.city[0],Le.city=Le.city[1]);const ve=yield Ke({type:"graduation/editTopic",payload:{categoryId:st.categoryId,coursesId:st.coursesId,attachment_ids:[],graduation_topic:Le}});ve.status?se.ZP.error(ve.message):Te.history.push(`/classrooms/${st.coursesId}/graduation_topics/${Ot.left_banner_id}`)});return(0,re.useEffect)(()=>{function Fe(){return ge(this,null,function*(){const Le=yield Ke({type:"graduation/editTopicDefaultData",payload:oe({},st)}),ve=oe({},Le.selected_data);ve.city=[ve.province,ve.city],Dt.setFieldsValue(ve)})}Fe()},[st.coursesId]),re.createElement("section",{className:"edu-container"},re.createElement("section",{className:"animated fadeIn"},re.createElement("aside",{className:"mt10"},Ue&&re.createElement(Ge.Z,{separator:">"},re.createElement(Ge.Z.Item,null,re.createElement(Te.Link,{to:`${Ue.first_category_url}`},(Et=Ue==null?void 0:Ue.course)==null?void 0:Et.course_name)),re.createElement(Ge.Z.Item,null,re.createElement(Te.Link,{to:`/classrooms/${st.coursesId}/graduation_topics/${Ot.left_banner_id}`},"\u6BD5\u8BBE\u9009\u9898")),re.createElement(Ge.Z.Item,null,"\u7F16\u8F91"))),re.createElement("aside",{className:[E.title,"mt20"].join(" ")},re.createElement(Be.Z,{style:{width:"100%"}},re.createElement(xe.Z,{flex:"1"},re.createElement("strong",{className:"font20 ml5"},"\u7F16\u8F91\u6BD5\u8BBE\u9009\u9898")),re.createElement(xe.Z,null,re.createElement(Te.Link,{className:"font16 c-light-black",to:`/classrooms/${st.coursesId}/graduation_topics/${Ot.left_banner_id}`},"\u8FD4\u56DE"))))),re.createElement("section",{className:[E.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},re.createElement(ye.default,{layout:"vertical",form:Dt,scrollToFirstError:!0,initialValues:Ot==null?void 0:Ot.selected_data,onFinish:Fe=>ge(void 0,null,function*(){zt()})},re.createElement(ye.default.Item,{name:"tea_id",label:"\u6307\u5BFC\u8001\u5E08\uFF1A",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08"}]},re.createElement(Ne.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08",style:{width:200}},(yt=Ot.teacher_list)==null?void 0:yt.map(function(Fe,Le){return re.createElement(Ne.default.Option,{value:Fe.id,key:Le},Fe.name)}))),re.createElement(ye.default.Item,{name:"name",label:"\u9009\u9898\u540D\u79F0\uFF1A",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BD5\u5377\u6807\u9898"}]},re.createElement(we.default,{maxLength:60,size:"middle",placeholder:"\u8BD5\u5377\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"})),re.createElement(be.Z,null),re.createElement(ye.default.Item,{label:"\u9009\u9898\u7B80\u4ECB",name:"description",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9"}]},re.createElement(de.Z,{watch:!0,defaultValue:(Ht=Ot.selected_data)==null?void 0:Ht.description,placeholder:"\u8BF7\u7B80\u8981\u8BF4\u660E\u9009\u9898\u5185\u5BB9\uFF0C\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"})),re.createElement(Be.Z,{gutter:[20,0]},re.createElement(xe.Z,{flex:"1"},re.createElement(ye.default.Item,{name:"topic_type"},re.createElement(Ne.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u7C7B\u578B"},(Ee=Ot.topic_type)==null?void 0:Ee.map(function(Fe,Le){return re.createElement(Ne.default.Option,{value:Fe.id,key:Le},Fe.name)})))),re.createElement(xe.Z,{flex:"1"},re.createElement(ye.default.Item,{name:"topic_source"},re.createElement(Ne.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6765\u6E90"},(Ae=Ot.topic_source)==null?void 0:Ae.map(function(Fe,Le){return re.createElement(Ne.default.Option,{value:Fe.id,key:Le},Fe.name)})))),re.createElement(xe.Z,{flex:"1"},re.createElement(ye.default.Item,{name:"topic_property_first"},re.createElement(Ne.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6027\u8D281"},(Ze=Ot.topic_property_first)==null?void 0:Ze.map(function(Fe,Le){return re.createElement(Ne.default.Option,{value:Fe.id,key:Le},Fe.name)})))),re.createElement(xe.Z,{flex:"1"},re.createElement(ye.default.Item,{name:"topic_property_second"},re.createElement(Ne.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6027\u8D282"},(Pt=Ot.topic_property_second)==null?void 0:Pt.map(function(Fe,Le){return re.createElement(Ne.default.Option,{value:Fe.id,key:Le},Fe.name)})))),re.createElement(xe.Z,{flex:"150px"})),re.createElement(be.Z,null),re.createElement(ye.default.Item,{name:"source_unit",label:"\u9009\u9898\u6765\u6E90\u5355\u4F4D\uFF1A"},re.createElement(we.default,{width:"200",size:"middle",style:{width:200},placeholder:"\u8BF7\u586B\u5199\u6765\u6E90\u5355\u4F4D"})),re.createElement(ye.default.Item,{name:"topic_repeat",label:"\u9009\u9898\u91CD\u590D\u60C5\u51B5\uFF1A"},re.createElement(Ne.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u91CD\u590D\u60C5\u51B5",style:{width:200}},(Qe=Ot.topic_repeat)==null?void 0:Qe.map(function(Fe,Le){return re.createElement(Ne.default.Option,{value:Fe.id,key:Le},Fe.name)}))),re.createElement(ye.default.Item,{name:"city",label:"\u8C03\u7814\u6216\u5B9E\u4E60\u5730\u70B9\uFF1A"},re.createElement(ne.Z,{size:"middle",style:{width:200},options:b.P,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730"})))),re.createElement("aside",{className:E.btns},re.createElement(a.ZP,{type:"primary",onClick:()=>{Dt.submit()}},"\u4FDD\u5B58"),re.createElement(Te.Link,{to:`/classrooms/${st.coursesId}/graduation_topics/${st.categoryId}`},"\u53D6\u6D88")))};var ot=(0,Te.connect)(({graduation:nt,loading:gt,user:fe,globalSetting:$e})=>({graduation:nt,globalSetting:$e,user:fe,loading:gt.effects}))(ze)},60059:function(De,et,ie){"use strict";ie.d(et,{P:function(){return re}});const re=[{value:"\u5317\u4EAC",label:"\u5317\u4EAC",children:[{value:"\u4E1C\u57CE",label:"\u4E1C\u57CE"},{value:"\u897F\u57CE",label:"\u897F\u57CE"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u4E30\u53F0",label:"\u4E30\u53F0"},{value:"\u77F3\u666F\u5C71",label:"\u77F3\u666F\u5C71"},{value:"\u6D77\u6DC0",label:"\u6D77\u6DC0"},{value:"\u95E8\u5934\u6C9F",label:"\u95E8\u5934\u6C9F"},{value:"\u623F\u5C71",label:"\u623F\u5C71"},{value:"\u901A\u5DDE",label:"\u901A\u5DDE"},{value:"\u987A\u4E49",label:"\u987A\u4E49"},{value:"\u660C\u5E73",label:"\u660C\u5E73"},{value:"\u5927\u5174",label:"\u5927\u5174"},{value:"\u5E73\u8C37",label:"\u5E73\u8C37"},{value:"\u6000\u67D4",label:"\u6000\u67D4"},{value:"\u5BC6\u4E91",label:"\u5BC6\u4E91"},{value:"\u5EF6\u5E86",label:"\u5EF6\u5E86"}]},{value:"\u4E0A\u6D77",label:"\u4E0A\u6D77",children:[{value:"\u5D07\u660E",label:"\u5D07\u660E"},{value:"\u9EC4\u6D66",label:"\u9EC4\u6D66"},{value:"\u5362\u6E7E",label:"\u5362\u6E7E"},{value:"\u5F90\u6C47",label:"\u5F90\u6C47"},{value:"\u957F\u5B81",label:"\u957F\u5B81"},{value:"\u9759\u5B89",label:"\u9759\u5B89"},{value:"\u666E\u9640",label:"\u666E\u9640"},{value:"\u95F8\u5317",label:"\u95F8\u5317"},{value:"\u8679\u53E3",label:"\u8679\u53E3"},{value:"\u6768\u6D66",label:"\u6768\u6D66"},{value:"\u95F5\u884C",label:"\u95F5\u884C"},{value:"\u5B9D\u5C71",label:"\u5B9D\u5C71"},{value:"\u5609\u5B9A",label:"\u5609\u5B9A"},{value:"\u6D66\u4E1C",label:"\u6D66\u4E1C"},{value:"\u91D1\u5C71",label:"\u91D1\u5C71"},{value:"\u677E\u6C5F",label:"\u677E\u6C5F"},{value:"\u9752\u6D66",label:"\u9752\u6D66"},{value:"\u5357\u6C47",label:"\u5357\u6C47"},{value:"\u5949\u8D24",label:"\u5949\u8D24"}]},{value:"\u5E7F\u4E1C",label:"\u5E7F\u4E1C",children:[{value:"\u5E7F\u5DDE",label:"\u5E7F\u5DDE"},{value:"\u6DF1\u5733",label:"\u6DF1\u5733"},{value:"\u73E0\u6D77",label:"\u73E0\u6D77"},{value:"\u4E1C\u839E",label:"\u4E1C\u839E"},{value:"\u4E2D\u5C71",label:"\u4E2D\u5C71"},{value:"\u4F5B\u5C71",label:"\u4F5B\u5C71"},{value:"\u60E0\u5DDE",label:"\u60E0\u5DDE"},{value:"\u6CB3\u6E90",label:"\u6CB3\u6E90"},{value:"\u6F6E\u5DDE",label:"\u6F6E\u5DDE"},{value:"\u6C5F\u95E8",label:"\u6C5F\u95E8"},{value:"\u63ED\u9633",label:"\u63ED\u9633"},{value:"\u8302\u540D",label:"\u8302\u540D"},{value:"\u6885\u5DDE",label:"\u6885\u5DDE"},{value:"\u6E05\u8FDC",label:"\u6E05\u8FDC"},{value:"\u6C55\u5934",label:"\u6C55\u5934"},{value:"\u6C55\u5C3E",label:"\u6C55\u5C3E"},{value:"\u97F6\u5173",label:"\u97F6\u5173"},{value:"\u987A\u5FB7",label:"\u987A\u5FB7"},{value:"\u9633\u6C5F",label:"\u9633\u6C5F"},{value:"\u4E91\u6D6E",label:"\u4E91\u6D6E"},{value:"\u6E5B\u6C5F",label:"\u6E5B\u6C5F"},{value:"\u8087\u5E86",label:"\u8087\u5E86"}]},{value:"\u6C5F\u82CF",label:"\u6C5F\u82CF",children:[{value:"\u5357\u4EAC",label:"\u5357\u4EAC"},{value:"\u5E38\u719F",label:"\u5E38\u719F"},{value:"\u5E38\u5DDE",label:"\u5E38\u5DDE"},{value:"\u6D77\u95E8",label:"\u6D77\u95E8"},{value:"\u6DEE\u5B89",label:"\u6DEE\u5B89"},{value:"\u6C5F\u90FD",label:"\u6C5F\u90FD"},{value:"\u6C5F\u9634",label:"\u6C5F\u9634"},{value:"\u6606\u5C71",label:"\u6606\u5C71"},{value:"\u8FDE\u4E91\u6E2F",label:"\u8FDE\u4E91\u6E2F"},{value:"\u5357\u901A",label:"\u5357\u901A"},{value:"\u542F\u4E1C",label:"\u542F\u4E1C"},{value:"\u6CAD\u9633",label:"\u6CAD\u9633"},{value:"\u5BBF\u8FC1",label:"\u5BBF\u8FC1"},{value:"\u82CF\u5DDE",label:"\u82CF\u5DDE"},{value:"\u592A\u4ED3",label:"\u592A\u4ED3"},{value:"\u6CF0\u5DDE",label:"\u6CF0\u5DDE"},{value:"\u540C\u91CC",label:"\u540C\u91CC"},{value:"\u65E0\u9521",label:"\u65E0\u9521"},{value:"\u5F90\u5DDE",label:"\u5F90\u5DDE"},{value:"\u76D0\u57CE",label:"\u76D0\u57CE"},{value:"\u626C\u5DDE",label:"\u626C\u5DDE"},{value:"\u5B9C\u5174",label:"\u5B9C\u5174"},{value:"\u4EEA\u5F81",label:"\u4EEA\u5F81"},{value:"\u5F20\u5BB6\u6E2F",label:"\u5F20\u5BB6\u6E2F"},{value:"\u9547\u6C5F",label:"\u9547\u6C5F"}]},{value:"\u91CD\u5E86",label:"\u91CD\u5E86",children:[{value:"\u4E07\u5DDE",label:"\u4E07\u5DDE"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u6E1D\u4E2D",label:"\u6E1D\u4E2D"},{value:"\u5927\u6E21\u53E3",label:"\u5927\u6E21\u53E3"},{value:"\u6C5F\u5317",label:"\u6C5F\u5317"},{value:"\u6C99\u576A\u575D",label:"\u6C99\u576A\u575D"},{value:"\u4E5D\u9F99\u5761",label:"\u4E5D\u9F99\u5761"},{value:"\u5357\u5CB8",label:"\u5357\u5CB8"},{value:"\u5317\u789A",label:"\u5317\u789A"},{value:"\u4E07\u76DB",label:"\u4E07\u76DB"},{value:"\u53CC\u6322",label:"\u53CC\u6322"},{value:"\u6E1D\u5317",label:"\u6E1D\u5317"},{value:"\u5DF4\u5357",label:"\u5DF4\u5357"},{value:"\u9ED4\u6C5F",label:"\u9ED4\u6C5F"},{value:"\u957F\u5BFF",label:"\u957F\u5BFF"},{value:"\u7DA6\u6C5F",label:"\u7DA6\u6C5F"},{value:"\u6F7C\u5357",label:"\u6F7C\u5357"},{value:"\u94DC\u6881",label:"\u94DC\u6881"},{value:"\u5927\u8DB3",label:"\u5927\u8DB3"},{value:"\u8363\u660C",label:"\u8363\u660C"},{value:"\u58C1\u5C71",label:"\u58C1\u5C71"},{value:"\u6881\u5E73",label:"\u6881\u5E73"},{value:"\u57CE\u53E3",label:"\u57CE\u53E3"},{value:"\u4E30\u90FD",label:"\u4E30\u90FD"},{value:"\u57AB\u6C5F",label:"\u57AB\u6C5F"},{value:"\u6B66\u9686",label:"\u6B66\u9686"},{value:"\u5FE0\u53BF",label:"\u5FE0\u53BF"},{value:"\u5F00\u53BF",label:"\u5F00\u53BF"},{value:"\u4E91\u9633",label:"\u4E91\u9633"},{value:"\u5949\u8282",label:"\u5949\u8282"},{value:"\u5DEB\u5C71",label:"\u5DEB\u5C71"},{value:"\u5DEB\u6EAA",label:"\u5DEB\u6EAA"},{value:"\u77F3\u67F1",label:"\u77F3\u67F1"},{value:"\u79C0\u5C71",label:"\u79C0\u5C71"},{value:"\u9149\u9633",label:"\u9149\u9633"},{value:"\u5F6D\u6C34",label:"\u5F6D\u6C34"},{value:"\u6C5F\u6D25",label:"\u6C5F\u6D25"},{value:"\u5408\u5DDD",label:"\u5408\u5DDD"},{value:"\u6C38\u5DDD",label:"\u6C38\u5DDD"},{value:"\u5357\u5DDD",label:"\u5357\u5DDD"}]},{value:"\u5B89\u5FBD",label:"\u5B89\u5FBD",children:[{value:"\u5408\u80A5",label:"\u5408\u80A5"},{value:"\u5B89\u5E86",label:"\u5B89\u5E86"},{value:"\u868C\u57E0",label:"\u868C\u57E0"},{value:"\u4EB3\u5DDE",label:"\u4EB3\u5DDE"},{value:"\u5DE2\u6E56",label:"\u5DE2\u6E56"},{value:"\u6EC1\u5DDE",label:"\u6EC1\u5DDE"},{value:"\u961C\u9633",label:"\u961C\u9633"},{value:"\u8D35\u6C60",label:"\u8D35\u6C60"},{value:"\u6DEE\u5317",label:"\u6DEE\u5317"},{value:"\u6DEE\u5316",label:"\u6DEE\u5316"},{value:"\u6DEE\u5357",label:"\u6DEE\u5357"},{value:"\u9EC4\u5C71",label:"\u9EC4\u5C71"},{value:"\u4E5D\u534E\u5C71",label:"\u4E5D\u534E\u5C71"},{value:"\u516D\u5B89",label:"\u516D\u5B89"},{value:"\u9A6C\u978D\u5C71",label:"\u9A6C\u978D\u5C71"},{value:"\u5BBF\u5DDE",label:"\u5BBF\u5DDE"},{value:"\u94DC\u9675",label:"\u94DC\u9675"},{value:"\u5C6F\u6EAA",label:"\u5C6F\u6EAA"},{value:"\u829C\u6E56",label:"\u829C\u6E56"},{value:"\u5BA3\u57CE",label:"\u5BA3\u57CE"}]},{value:"\u798F\u5EFA",label:"\u798F\u5EFA",children:[{value:"\u798F\u5DDE",label:"\u798F\u5DDE"},{value:"\u53A6\u95E8",label:"\u53A6\u95E8"},{value:"\u6CC9\u5DDE",label:"\u6CC9\u5DDE"},{value:"\u6F33\u5DDE",label:"\u6F33\u5DDE"},{value:"\u9F99\u5CA9",label:"\u9F99\u5CA9"},{value:"\u5357\u5E73",label:"\u5357\u5E73"},{value:"\u5B81\u5FB7",label:"\u5B81\u5FB7"},{value:"\u8386\u7530",label:"\u8386\u7530"},{value:"\u4E09\u660E",label:"\u4E09\u660E"}]},{value:"\u7518\u8083",label:"\u7518\u8083",children:[{value:"\u5170\u5DDE",label:"\u5170\u5DDE"},{value:"\u5609\u5CEA\u5173",label:"\u5609\u5CEA\u5173"},{value:"\u767D\u94F6",label:"\u767D\u94F6"},{value:"\u5B9A\u897F",label:"\u5B9A\u897F"},{value:"\u6566\u714C",label:"\u6566\u714C"},{value:"\u7518\u5357",label:"\u7518\u5357"},{value:"\u91D1\u660C",label:"\u91D1\u660C"},{value:"\u9152\u6CC9",label:"\u9152\u6CC9"},{value:"\u4E34\u590F",label:"\u4E34\u590F"},{value:"\u5E73\u51C9",label:"\u5E73\u51C9"},{value:"\u5929\u6C34",label:"\u5929\u6C34"},{value:"\u9647\u5357",label:"\u9647\u5357"},{value:"\u6B66\u5A01",label:"\u6B66\u5A01"},{value:"\u897F\u5CF0",label:"\u897F\u5CF0"},{value:"\u5F20\u6396",label:"\u5F20\u6396"}]},{value:"\u5E7F\u897F",label:"\u5E7F\u897F",children:[{value:"\u5357\u5B81",label:"\u5357\u5B81"},{value:"\u6765\u5BBE",label:"\u6765\u5BBE"},{value:"\u767E\u8272",label:"\u767E\u8272"},{value:"\u5317\u6D77",label:"\u5317\u6D77"},{value:"\u6842\u6797",label:"\u6842\u6797"},{value:"\u9632\u57CE\u6E2F",label:"\u9632\u57CE\u6E2F"},{value:"\u8D35\u6E2F",label:"\u8D35\u6E2F"},{value:"\u6CB3\u6C60",label:"\u6CB3\u6C60"},{value:"\u8D3A\u5DDE",label:"\u8D3A\u5DDE"},{value:"\u67F3\u5DDE",label:"\u67F3\u5DDE"},{value:"\u94A6\u5DDE",label:"\u94A6\u5DDE"},{value:"\u68A7\u5DDE",label:"\u68A7\u5DDE"},{value:"\u7389\u6797",label:"\u7389\u6797"}]},{value:"\u8D35\u5DDE",label:"\u8D35\u5DDE",children:[{value:"\u8D35\u9633",label:"\u8D35\u9633"},{value:"\u5B89\u987A",label:"\u5B89\u987A"},{value:"\u6BD5\u8282",label:"\u6BD5\u8282"},{value:"\u90FD\u5300",label:"\u90FD\u5300"},{value:"\u51EF\u91CC",label:"\u51EF\u91CC"},{value:"\u516D\u76D8\u6C34",label:"\u516D\u76D8\u6C34"},{value:"\u94DC\u4EC1",label:"\u94DC\u4EC1"},{value:"\u5174\u4E49",label:"\u5174\u4E49"},{value:"\u7389\u5C4F",label:"\u7389\u5C4F"},{value:"\u9075\u4E49",label:"\u9075\u4E49"}]},{value:"\u6D77\u5357",label:"\u6D77\u5357",children:[{value:"\u6D77\u53E3",label:"\u6D77\u53E3"},{value:"\u510B\u53BF",label:"\u510B\u53BF"},{value:"\u9675\u6C34",label:"\u9675\u6C34"},{value:"\u743C\u6D77",label:"\u743C\u6D77"},{value:"\u4E09\u4E9A",label:"\u4E09\u4E9A"},{value:"\u901A\u4EC0",label:"\u901A\u4EC0"},{value:"\u4E07\u5B81",label:"\u4E07\u5B81"}]},{value:"\u6CB3\u5317",label:"\u6CB3\u5317",children:[{value:"\u77F3\u5BB6\u5E84",label:"\u77F3\u5BB6\u5E84"},{value:"\u4FDD\u5B9A",label:"\u4FDD\u5B9A"},{value:"\u5317\u6234\u6CB3",label:"\u5317\u6234\u6CB3"},{value:"\u6CA7\u5DDE",label:"\u6CA7\u5DDE"},{value:"\u627F\u5FB7",label:"\u627F\u5FB7"},{value:"\u4E30\u6DA6",label:"\u4E30\u6DA6"},{value:"\u90AF\u90F8",label:"\u90AF\u90F8"},{value:"\u8861\u6C34",label:"\u8861\u6C34"},{value:"\u5ECA\u574A",label:"\u5ECA\u574A"},{value:"\u5357\u6234\u6CB3",label:"\u5357\u6234\u6CB3"},{value:"\u79E6\u7687\u5C9B",label:"\u79E6\u7687\u5C9B"},{value:"\u5510\u5C71",label:"\u5510\u5C71"},{value:"\u65B0\u57CE",label:"\u65B0\u57CE"},{value:"\u90A2\u53F0",label:"\u90A2\u53F0"},{value:"\u5F20\u5BB6\u53E3",label:"\u5F20\u5BB6\u53E3"}]},{value:"\u9ED1\u9F99\u6C5F",label:"\u9ED1\u9F99\u6C5F",children:[{value:"\u54C8\u5C14\u6EE8",label:"\u54C8\u5C14\u6EE8"},{value:"\u5317\u5B89",label:"\u5317\u5B89"},{value:"\u5927\u5E86",label:"\u5927\u5E86"},{value:"\u5927\u5174\u5B89\u5CAD",label:"\u5927\u5174\u5B89\u5CAD"},{value:"\u9E64\u5C97",label:"\u9E64\u5C97"},{value:"\u9ED1\u6CB3",label:"\u9ED1\u6CB3"},{value:"\u4F73\u6728\u65AF",label:"\u4F73\u6728\u65AF"},{value:"\u9E21\u897F",label:"\u9E21\u897F"},{value:"\u7261\u4E39\u6C5F",label:"\u7261\u4E39\u6C5F"},{value:"\u9F50\u9F50\u54C8\u5C14",label:"\u9F50\u9F50\u54C8\u5C14"},{value:"\u4E03\u53F0\u6CB3",label:"\u4E03\u53F0\u6CB3"},{value:"\u53CC\u9E2D\u5C71",label:"\u53CC\u9E2D\u5C71"},{value:"\u7EE5\u5316",label:"\u7EE5\u5316"},{value:"\u4F0A\u6625",label:"\u4F0A\u6625"}]},{value:"\u6CB3\u5357",label:"\u6CB3\u5357",children:[{value:"\u90D1\u5DDE",label:"\u90D1\u5DDE"},{value:"\u5B89\u9633",label:"\u5B89\u9633"},{value:"\u9E64\u58C1",label:"\u9E64\u58C1"},{value:"\u6F62\u5DDD",label:"\u6F62\u5DDD"},{value:"\u7126\u4F5C",label:"\u7126\u4F5C"},{value:"\u6D4E\u6E90",label:"\u6D4E\u6E90"},{value:"\u5F00\u5C01",label:"\u5F00\u5C01"},{value:"\u6F2F\u6CB3",label:"\u6F2F\u6CB3"},{value:"\u6D1B\u9633",label:"\u6D1B\u9633"},{value:"\u5357\u9633",label:"\u5357\u9633"},{value:"\u5E73\u9876\u5C71",label:"\u5E73\u9876\u5C71"},{value:"\u6FEE\u9633",label:"\u6FEE\u9633"},{value:"\u4E09\u95E8\u5CE1",label:"\u4E09\u95E8\u5CE1"},{value:"\u5546\u4E18",label:"\u5546\u4E18"},{value:"\u65B0\u4E61",label:"\u65B0\u4E61"},{value:"\u4FE1\u9633",label:"\u4FE1\u9633"},{value:"\u8BB8\u660C",label:"\u8BB8\u660C"},{value:"\u5468\u53E3",label:"\u5468\u53E3"},{value:"\u9A7B\u9A6C\u5E97",label:"\u9A7B\u9A6C\u5E97"}]},{value:"\u9999\u6E2F",label:"\u9999\u6E2F",children:[{value:"\u9999\u6E2F",label:"\u9999\u6E2F"},{value:"\u4E5D\u9F99",label:"\u4E5D\u9F99"},{value:"\u65B0\u754C",label:"\u65B0\u754C"}]},{value:"\u6E56\u5317",label:"\u6E56\u5317",children:[{value:"\u6B66\u6C49",label:"\u6B66\u6C49"},{value:"\u5929\u95E8",label:"\u5929\u95E8"},{value:"\u6069\u65BD",label:"\u6069\u65BD"},{value:"\u9102\u5DDE",label:"\u9102\u5DDE"},{value:"\u9EC4\u5188",label:"\u9EC4\u5188"},{value:"\u9EC4\u77F3",label:"\u9EC4\u77F3"},{value:"\u8346\u95E8",label:"\u8346\u95E8"},{value:"\u8346\u5DDE",label:"\u8346\u5DDE"},{value:"\u6F5C\u6C5F",label:"\u6F5C\u6C5F"},{value:"\u5341\u5830",label:"\u5341\u5830"},{value:"\u968F\u5DDE",label:"\u968F\u5DDE"},{value:"\u6B66\u7A74",label:"\u6B66\u7A74"},{value:"\u4ED9\u6843",label:"\u4ED9\u6843"},{value:"\u54B8\u5B81",label:"\u54B8\u5B81"},{value:"\u8944\u9633",label:"\u8944\u9633"},{value:"\u8944\u6A0A",label:"\u8944\u6A0A"},{value:"\u5B5D\u611F",label:"\u5B5D\u611F"},{value:"\u5B9C\u660C",label:"\u5B9C\u660C"}]},{value:"\u6E56\u5357",label:"\u6E56\u5357",children:[{value:"\u957F\u6C99",label:"\u957F\u6C99"},{value:"\u5E38\u5FB7",label:"\u5E38\u5FB7"},{value:"\u90F4\u5DDE",label:"\u90F4\u5DDE"},{value:"\u8861\u9633",label:"\u8861\u9633"},{value:"\u6000\u5316",label:"\u6000\u5316"},{value:"\u5409\u9996",label:"\u5409\u9996"},{value:"\u5A04\u5E95",label:"\u5A04\u5E95"},{value:"\u90B5\u9633",label:"\u90B5\u9633"},{value:"\u6E58\u6F6D",label:"\u6E58\u6F6D"},{value:"\u76CA\u9633",label:"\u76CA\u9633"},{value:"\u5CB3\u9633",label:"\u5CB3\u9633"},{value:"\u6C38\u5DDE",label:"\u6C38\u5DDE"},{value:"\u5F20\u5BB6\u754C",label:"\u5F20\u5BB6\u754C"},{value:"\u682A\u6D32",label:"\u682A\u6D32"}]},{value:"\u6C5F\u897F",label:"\u6C5F\u897F",children:[{value:"\u5357\u660C",label:"\u5357\u660C"},{value:"\u629A\u5DDE",label:"\u629A\u5DDE"},{value:"\u8D63\u5DDE",label:"\u8D63\u5DDE"},{value:"\u5409\u5B89",label:"\u5409\u5B89"},{value:"\u666F\u5FB7\u9547",label:"\u666F\u5FB7\u9547"},{value:"\u4E95\u5188\u5C71",label:"\u4E95\u5188\u5C71"},{value:"\u4E5D\u6C5F",label:"\u4E5D\u6C5F"},{value:"\u5E90\u5C71",label:"\u5E90\u5C71"},{value:"\u840D\u4E61",label:"\u840D\u4E61"},{value:"\u4E0A\u9976",label:"\u4E0A\u9976"},{value:"\u65B0\u4F59",label:"\u65B0\u4F59"},{value:"\u5B9C\u6625",label:"\u5B9C\u6625"},{value:"\u9E70\u6F6D",label:"\u9E70\u6F6D"}]},{value:"\u5409\u6797",label:"\u5409\u6797",children:[{value:"\u957F\u6625",label:"\u957F\u6625"},{value:"\u5409\u6797",label:"\u5409\u6797"},{value:"\u767D\u57CE",label:"\u767D\u57CE"},{value:"\u767D\u5C71",label:"\u767D\u5C71"},{value:"\u73F2\u6625",label:"\u73F2\u6625"},{value:"\u8FBD\u6E90",label:"\u8FBD\u6E90"},{value:"\u6885\u6CB3",label:"\u6885\u6CB3"},{value:"\u56DB\u5E73",label:"\u56DB\u5E73"},{value:"\u677E\u539F",label:"\u677E\u539F"},{value:"\u901A\u5316",label:"\u901A\u5316"},{value:"\u5EF6\u5409",label:"\u5EF6\u5409"}]},{value:"\u8FBD\u5B81",label:"\u8FBD\u5B81",children:[{value:"\u6C88\u9633",label:"\u6C88\u9633"},{value:"\u978D\u5C71",label:"\u978D\u5C71"},{value:"\u672C\u6EAA",label:"\u672C\u6EAA"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u5927\u8FDE",label:"\u5927\u8FDE"},{value:"\u4E39\u4E1C",label:"\u4E39\u4E1C"},{value:"\u629A\u987A",label:"\u629A\u987A"},{value:"\u961C\u65B0",label:"\u961C\u65B0"},{value:"\u846B\u82A6\u5C9B",label:"\u846B\u82A6\u5C9B"},{value:"\u9526\u5DDE",label:"\u9526\u5DDE"},{value:"\u8FBD\u9633",label:"\u8FBD\u9633"},{value:"\u76D8\u9526",label:"\u76D8\u9526"},{value:"\u94C1\u5CAD",label:"\u94C1\u5CAD"},{value:"\u8425\u53E3",label:"\u8425\u53E3"}]},{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8",children:[{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8"}]},{value:"\u5185\u8499\u53E4",label:"\u5185\u8499\u53E4",children:[{value:"\u547C\u548C\u6D69\u7279",label:"\u547C\u548C\u6D69\u7279"},{value:"\u963F\u62C9\u5584\u76DF",label:"\u963F\u62C9\u5584\u76DF"},{value:"\u5305\u5934",label:"\u5305\u5934"},{value:"\u8D64\u5CF0",label:"\u8D64\u5CF0"},{value:"\u4E1C\u80DC",label:"\u4E1C\u80DC"},{value:"\u6D77\u62C9\u5C14",label:"\u6D77\u62C9\u5C14"},{value:"\u96C6\u5B81",label:"\u96C6\u5B81"},{value:"\u4E34\u6CB3",label:"\u4E34\u6CB3"},{value:"\u901A\u8FBD",label:"\u901A\u8FBD"},{value:"\u4E4C\u6D77",label:"\u4E4C\u6D77"},{value:"\u4E4C\u5170\u6D69\u7279",label:"\u4E4C\u5170\u6D69\u7279"},{value:"\u9521\u6797\u6D69\u7279",label:"\u9521\u6797\u6D69\u7279"}]},{value:"\u5B81\u590F",label:"\u5B81\u590F",children:[{value:"\u94F6\u5DDD",label:"\u94F6\u5DDD"},{value:"\u56FA\u6E90",label:"\u56FA\u6E90"},{value:"\u77F3\u5634\u5C71",label:"\u77F3\u5634\u5C71"},{value:"\u5434\u5FE0",label:"\u5434\u5FE0"}]},{value:"\u9752\u6D77",label:"\u9752\u6D77",children:[{value:"\u897F\u5B81",label:"\u897F\u5B81"},{value:"\u5FB7\u4EE4\u54C8",label:"\u5FB7\u4EE4\u54C8"},{value:"\u683C\u5C14\u6728",label:"\u683C\u5C14\u6728"},{value:"\u5171\u548C",label:"\u5171\u548C"},{value:"\u6D77\u4E1C",label:"\u6D77\u4E1C"},{value:"\u6D77\u664F",label:"\u6D77\u664F"},{value:"\u739B\u6C81",label:"\u739B\u6C81"},{value:"\u540C\u4EC1",label:"\u540C\u4EC1"},{value:"\u7389\u6811",label:"\u7389\u6811"}]},{value:"\u5C71\u4E1C",label:"\u5C71\u4E1C",children:[{value:"\u6D4E\u5357",label:"\u6D4E\u5357"},{value:"\u6EE8\u5DDE",label:"\u6EE8\u5DDE"},{value:"\u5156\u5DDE",label:"\u5156\u5DDE"},{value:"\u5FB7\u5DDE",label:"\u5FB7\u5DDE"},{value:"\u4E1C\u8425",label:"\u4E1C\u8425"},{value:"\u83CF\u6CFD",label:"\u83CF\u6CFD"},{value:"\u6D4E\u5B81",label:"\u6D4E\u5B81"},{value:"\u83B1\u829C",label:"\u83B1\u829C"},{value:"\u804A\u57CE",label:"\u804A\u57CE"},{value:"\u4E34\u6C82",label:"\u4E34\u6C82"},{value:"\u84EC\u83B1",label:"\u84EC\u83B1"},{value:"\u9752\u5C9B",label:"\u9752\u5C9B"},{value:"\u66F2\u961C",label:"\u66F2\u961C"},{value:"\u65E5\u7167",label:"\u65E5\u7167"},{value:"\u6CF0\u5B89",label:"\u6CF0\u5B89"},{value:"\u6F4D\u574A",label:"\u6F4D\u574A"},{value:"\u5A01\u6D77",label:"\u5A01\u6D77"},{value:"\u70DF\u53F0",label:"\u70DF\u53F0"},{value:"\u67A3\u5E84",label:"\u67A3\u5E84"},{value:"\u6DC4\u535A",label:"\u6DC4\u535A"}]},{value:"\u5C71\u897F",label:"\u5C71\u897F",children:[{value:"\u592A\u539F",label:"\u592A\u539F"},{value:"\u5415\u6881",label:"\u5415\u6881"},{value:"\u957F\u6CBB",label:"\u957F\u6CBB"},{value:"\u5927\u540C",label:"\u5927\u540C"},{value:"\u5019\u9A6C",label:"\u5019\u9A6C"},{value:"\u664B\u57CE",label:"\u664B\u57CE"},{value:"\u79BB\u77F3",label:"\u79BB\u77F3"},{value:"\u4E34\u6C7E",label:"\u4E34\u6C7E"},{value:"\u5B81\u6B66",label:"\u5B81\u6B66"},{value:"\u6714\u5DDE",label:"\u6714\u5DDE"},{value:"\u5FFB\u5DDE",label:"\u5FFB\u5DDE"},{value:"\u9633\u6CC9",label:"\u9633\u6CC9"},{value:"\u6986\u6B21",label:"\u6986\u6B21"},{value:"\u664B\u4E2D",label:"\u664B\u4E2D"},{value:"\u8FD0\u57CE",label:"\u8FD0\u57CE"}]},{value:"\u9655\u897F",label:"\u9655\u897F",children:[{value:"\u897F\u5B89",label:"\u897F\u5B89"},{value:"\u5B89\u5EB7",label:"\u5B89\u5EB7"},{value:"\u5B9D\u9E21",label:"\u5B9D\u9E21"},{value:"\u6C49\u4E2D",label:"\u6C49\u4E2D"},{value:"\u6E2D\u5357",label:"\u6E2D\u5357"},{value:"\u5546\u5DDE",label:"\u5546\u5DDE"},{value:"\u7EE5\u5FB7",label:"\u7EE5\u5FB7"},{value:"\u94DC\u5DDD",label:"\u94DC\u5DDD"},{value:"\u54B8\u9633",label:"\u54B8\u9633"},{value:"\u5EF6\u5B89",label:"\u5EF6\u5B89"},{value:"\u6986\u6797",label:"\u6986\u6797"}]},{value:"\u56DB\u5DDD",label:"\u56DB\u5DDD",children:[{value:"\u6210\u90FD",label:"\u6210\u90FD"},{value:"\u5DF4\u4E2D",label:"\u5DF4\u4E2D"},{value:"\u8FBE\u5DDD",label:"\u8FBE\u5DDD"},{value:"\u5FB7\u9633",label:"\u5FB7\u9633"},{value:"\u90FD\u6C5F\u5830",label:"\u90FD\u6C5F\u5830"},{value:"\u5CE8\u7709\u5C71",label:"\u5CE8\u7709\u5C71"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u5E7F\u5B89",label:"\u5E7F\u5B89"},{value:"\u5E7F\u5143",label:"\u5E7F\u5143"},{value:"\u4E5D\u5BE8\u6C9F",label:"\u4E5D\u5BE8\u6C9F"},{value:"\u5EB7\u5B9A",label:"\u5EB7\u5B9A"},{value:"\u4E50\u5C71",label:"\u4E50\u5C71"},{value:"\u6CF8\u5DDE",label:"\u6CF8\u5DDE"},{value:"\u9A6C\u5C14\u5EB7",label:"\u9A6C\u5C14\u5EB7"},{value:"\u7EF5\u9633",label:"\u7EF5\u9633"},{value:"\u7709\u5C71",label:"\u7709\u5C71"},{value:"\u5357\u5145",label:"\u5357\u5145"},{value:"\u5185\u6C5F",label:"\u5185\u6C5F"},{value:"\u6500\u679D\u82B1",label:"\u6500\u679D\u82B1"},{value:"\u9042\u5B81",label:"\u9042\u5B81"},{value:"\u6C76\u5DDD",label:"\u6C76\u5DDD"},{value:"\u897F\u660C",label:"\u897F\u660C"},{value:"\u96C5\u5B89",label:"\u96C5\u5B89"},{value:"\u5B9C\u5BBE",label:"\u5B9C\u5BBE"},{value:"\u81EA\u8D21",label:"\u81EA\u8D21"},{value:"\u8D44\u9633",label:"\u8D44\u9633"}]},{value:"\u53F0\u6E7E",label:"\u53F0\u6E7E",children:[{value:"\u53F0\u5317",label:"\u53F0\u5317"},{value:"\u57FA\u9686",label:"\u57FA\u9686"},{value:"\u53F0\u5357",label:"\u53F0\u5357"},{value:"\u53F0\u4E2D",label:"\u53F0\u4E2D"},{value:"\u9AD8\u96C4",label:"\u9AD8\u96C4"},{value:"\u5C4F\u4E1C",label:"\u5C4F\u4E1C"},{value:"\u5357\u6295",label:"\u5357\u6295"},{value:"\u4E91\u6797",label:"\u4E91\u6797"},{value:"\u65B0\u7AF9",label:"\u65B0\u7AF9"},{value:"\u5F70\u5316",label:"\u5F70\u5316"},{value:"\u82D7\u6817",label:"\u82D7\u6817"},{value:"\u5609\u4E49",label:"\u5609\u4E49"},{value:"\u6843\u56ED",label:"\u6843\u56ED"},{value:"\u5B9C\u5170",label:"\u5B9C\u5170"},{value:"\u53F0\u4E1C",label:"\u53F0\u4E1C"},{value:"\u91D1\u95E8",label:"\u91D1\u95E8"},{value:"\u9A6C\u7956",label:"\u9A6C\u7956"},{value:"\u6F8E\u6E56",label:"\u6F8E\u6E56"}]},{value:"\u5929\u6D25",label:"\u5929\u6D25",children:[{value:"\u5929\u6D25",label:"\u5929\u6D25"},{value:"\u548C\u5E73",label:"\u548C\u5E73"},{value:"\u4E1C\u4E3D",label:"\u4E1C\u4E3D"},{value:"\u6CB3\u4E1C",label:"\u6CB3\u4E1C"},{value:"\u897F\u9752",label:"\u897F\u9752"},{value:"\u6CB3\u897F",label:"\u6CB3\u897F"},{value:"\u6D25\u5357",label:"\u6D25\u5357"},{value:"\u5357\u5F00",label:"\u5357\u5F00"},{value:"\u5317\u8FB0",label:"\u5317\u8FB0"},{value:"\u6CB3\u5317",label:"\u6CB3\u5317"},{value:"\u6B66\u6E05",label:"\u6B66\u6E05"},{value:"\u7EA2\u6322",label:"\u7EA2\u6322"},{value:"\u5858\u6CBD",label:"\u5858\u6CBD"},{value:"\u6C49\u6CBD",label:"\u6C49\u6CBD"},{value:"\u5927\u6E2F",label:"\u5927\u6E2F"},{value:"\u5B81\u6CB3",label:"\u5B81\u6CB3"},{value:"\u9759\u6D77",label:"\u9759\u6D77"},{value:"\u5B9D\u577B",label:"\u5B9D\u577B"},{value:"\u84DF\u53BF",label:"\u84DF\u53BF"}]},{value:"\u65B0\u7586",label:"\u65B0\u7586",children:[{value:"\u4E4C\u9C81\u6728\u9F50",label:"\u4E4C\u9C81\u6728\u9F50"},{value:"\u963F\u514B\u82CF",label:"\u963F\u514B\u82CF"},{value:"\u963F\u52D2\u6CF0",label:"\u963F\u52D2\u6CF0"},{value:"\u963F\u56FE\u4EC0",label:"\u963F\u56FE\u4EC0"},{value:"\u535A\u4E50",label:"\u535A\u4E50"},{value:"\u660C\u5409",label:"\u660C\u5409"},{value:"\u4E1C\u5C71",label:"\u4E1C\u5C71"},{value:"\u54C8\u5BC6",label:"\u54C8\u5BC6"},{value:"\u548C\u7530",label:"\u548C\u7530"},{value:"\u5580\u4EC0",label:"\u5580\u4EC0"},{value:"\u514B\u62C9\u739B\u4F9D",label:"\u514B\u62C9\u739B\u4F9D"},{value:"\u5E93\u8F66",label:"\u5E93\u8F66"},{value:"\u5E93\u5C14\u52D2",label:"\u5E93\u5C14\u52D2"},{value:"\u594E\u5C6F",label:"\u594E\u5C6F"},{value:"\u77F3\u6CB3\u5B50",label:"\u77F3\u6CB3\u5B50"},{value:"\u5854\u57CE",label:"\u5854\u57CE"},{value:"\u5410\u9C81\u756A",label:"\u5410\u9C81\u756A"},{value:"\u4F0A\u5B81",label:"\u4F0A\u5B81"}]},{value:"\u897F\u85CF",label:"\u897F\u85CF",children:[{value:"\u62C9\u8428",label:"\u62C9\u8428"},{value:"\u963F\u91CC",label:"\u963F\u91CC"},{value:"\u660C\u90FD",label:"\u660C\u90FD"},{value:"\u6797\u829D",label:"\u6797\u829D"},{value:"\u90A3\u66F2",label:"\u90A3\u66F2"},{value:"\u65E5\u5580\u5219",label:"\u65E5\u5580\u5219"},{value:"\u5C71\u5357",label:"\u5C71\u5357"}]},{value:"\u4E91\u5357",label:"\u4E91\u5357",children:[{value:"\u6606\u660E",label:"\u6606\u660E"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4FDD\u5C71",label:"\u4FDD\u5C71"},{value:"\u695A\u96C4",label:"\u695A\u96C4"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4E1C\u5DDD",label:"\u4E1C\u5DDD"},{value:"\u4E2A\u65E7",label:"\u4E2A\u65E7"},{value:"\u666F\u6D2A",label:"\u666F\u6D2A"},{value:"\u5F00\u8FDC",label:"\u5F00\u8FDC"},{value:"\u4E34\u6CA7",label:"\u4E34\u6CA7"},{value:"\u4E3D\u6C5F",label:"\u4E3D\u6C5F"},{value:"\u516D\u5E93",label:"\u516D\u5E93"},{value:"\u6F5E\u897F",label:"\u6F5E\u897F"},{value:"\u66F2\u9756",label:"\u66F2\u9756"},{value:"\u601D\u8305",label:"\u601D\u8305"},{value:"\u6587\u5C71",label:"\u6587\u5C71"},{value:"\u897F\u53CC\u7248\u7EB3",label:"\u897F\u53CC\u7248\u7EB3"},{value:"\u7389\u6EAA",label:"\u7389\u6EAA"},{value:"\u4E2D\u7538",label:"\u4E2D\u7538"},{value:"\u662D\u901A",label:"\u662D\u901A"}]},{value:"\u6D59\u6C5F",label:"\u6D59\u6C5F",children:[{value:"\u676D\u5DDE",label:"\u676D\u5DDE"},{value:"\u6E29\u5DDE",label:"\u6E29\u5DDE"},{value:"\u5B89\u5409",label:"\u5B89\u5409"},{value:"\u6148\u6EAA",label:"\u6148\u6EAA"},{value:"\u5B9A\u6D77",label:"\u5B9A\u6D77"},{value:"\u5949\u5316",label:"\u5949\u5316"},{value:"\u6D77\u76D0",label:"\u6D77\u76D0"},{value:"\u9EC4\u5CA9",label:"\u9EC4\u5CA9"},{value:"\u6E56\u5DDE",label:"\u6E56\u5DDE"},{value:"\u5609\u5174",label:"\u5609\u5174"},{value:"\u91D1\u534E",label:"\u91D1\u534E"},{value:"\u4E34\u5B89",label:"\u4E34\u5B89"},{value:"\u4E34\u6D77",label:"\u4E34\u6D77"},{value:"\u4E3D\u6C34",label:"\u4E3D\u6C34"},{value:"\u5B81\u6CE2",label:"\u5B81\u6CE2"},{value:"\u74EF\u6D77",label:"\u74EF\u6D77"},{value:"\u5E73\u6E56",label:"\u5E73\u6E56"},{value:"\u5343\u5C9B\u6E56",label:"\u5343\u5C9B\u6E56"},{value:"\u8862\u5DDE",label:"\u8862\u5DDE"},{value:"\u6C5F\u5C71",label:"\u6C5F\u5C71"},{value:"\u745E\u5B89",label:"\u745E\u5B89"},{value:"\u7ECD\u5174",label:"\u7ECD\u5174"},{value:"\u5D4A\u5DDE",label:"\u5D4A\u5DDE"},{value:"\u53F0\u5DDE",label:"\u53F0\u5DDE"},{value:"\u6E29\u5CAD",label:"\u6E29\u5CAD"},{value:"\u4F59\u59DA",label:"\u4F59\u59DA"},{value:"\u821F\u5C71",label:"\u821F\u5C71"}]},{value:"\u6D77\u5916",label:"\u6D77\u5916",children:[{value:"\u7F8E\u56FD",label:"\u7F8E\u56FD"},{value:"\u65E5\u672C",label:"\u65E5\u672C"},{value:"\u82F1\u56FD",label:"\u82F1\u56FD"},{value:"\u6CD5\u56FD",label:"\u6CD5\u56FD"},{value:"\u5FB7\u56FD",label:"\u5FB7\u56FD"},{value:"\u5176\u4ED6",label:"\u5176\u4ED6"}]}]},66104:function(De,et,ie){"use strict";ie.d(et,{Z:function(){return gt}});var re=ie(92310),de=ie.n(re),Te=ie(11592),Je=ie(26112),he=ie(59301),ye=ie(92343),se=ie(36355),Ge=ie(84105),Be=ie(91857);const xe=fe=>{let{children:$e}=fe;const{getPrefixCls:Re}=he.useContext(se.E_),Me=Re("breadcrumb");return he.createElement("li",{className:`${Me}-separator`,"aria-hidden":"true"},$e===""?$e:$e||"/")};xe.__ANT_BREADCRUMB_SEPARATOR=!0;var Ne=xe,we=function(fe,$e){var Re={};for(var Me in fe)Object.prototype.hasOwnProperty.call(fe,Me)&&$e.indexOf(Me)<0&&(Re[Me]=fe[Me]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,Me=Object.getOwnPropertySymbols(fe);Ke<Me.length;Ke++)$e.indexOf(Me[Ke])<0&&Object.prototype.propertyIsEnumerable.call(fe,Me[Ke])&&(Re[Me[Ke]]=fe[Me[Ke]]);return Re};function be(fe,$e){if(fe.title===void 0||fe.title===null)return null;const Re=Object.keys($e).join("|");return typeof fe.title=="object"?fe.title:String(fe.title).replace(new RegExp(`:(${Re})`,"g"),(Me,Ke)=>$e[Ke]||Me)}function ne(fe,$e,Re,Me){if(Re==null)return null;const{className:Ke,onClick:Bt}=$e,Et=we($e,["className","onClick"]),yt=Object.assign(Object.assign({},(0,Je.Z)(Et,{data:!0,aria:!0})),{onClick:Bt});return Me!==void 0?he.createElement("a",Object.assign({},yt,{className:de()(`${fe}-link`,Ke),href:Me}),Re):he.createElement("span",Object.assign({},yt,{className:de()(`${fe}-link`,Ke)}),Re)}function a(fe,$e){return(Me,Ke,Bt,Et,yt)=>{if($e)return $e(Me,Ke,Bt,Et);const Ht=be(Me,Ke);return ne(fe,Me,Ht,yt)}}var b=function(fe,$e){var Re={};for(var Me in fe)Object.prototype.hasOwnProperty.call(fe,Me)&&$e.indexOf(Me)<0&&(Re[Me]=fe[Me]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,Me=Object.getOwnPropertySymbols(fe);Ke<Me.length;Ke++)$e.indexOf(Me[Ke])<0&&Object.prototype.propertyIsEnumerable.call(fe,Me[Ke])&&(Re[Me[Ke]]=fe[Me[Ke]]);return Re};const E=fe=>{const{prefixCls:$e,separator:Re="/",children:Me,menu:Ke,overlay:Bt,dropdownProps:Et,href:yt}=fe,Ee=(Ae=>{if(Ke||Bt){const Ze=Object.assign({},Et);if(Ke){const Pt=Ke||{},{items:Qe}=Pt,st=b(Pt,["items"]);Ze.menu=Object.assign(Object.assign({},st),{items:Qe==null?void 0:Qe.map((ue,Ue)=>{var{key:Dt,title:Ot,label:zt,path:Fe}=ue,Le=b(ue,["key","title","label","path"]);let ve=zt!=null?zt:Ot;return Fe&&(ve=he.createElement("a",{href:`${yt}${Fe}`},ve)),Object.assign(Object.assign({},Le),{key:Dt!=null?Dt:Ue,label:ve})})})}else Bt&&(Ze.overlay=Bt);return he.createElement(Be.Z,Object.assign({placement:"bottom"},Ze),he.createElement("span",{className:`${$e}-overlay-link`},Ae,he.createElement(Ge.Z,null)))}return Ae})(Me);return Ee!=null?he.createElement(he.Fragment,null,he.createElement("li",null,Ee),Re&&he.createElement(Ne,null,Re)):null},y=fe=>{const{prefixCls:$e,children:Re,href:Me}=fe,Ke=b(fe,["prefixCls","children","href"]),{getPrefixCls:Bt}=he.useContext(se.E_),Et=Bt("breadcrumb",$e);return he.createElement(E,Object.assign({},Ke,{prefixCls:Et}),ne(Et,Ke,Re,Me))};y.__ANT_BREADCRUMB_ITEM=!0;var x=y,z=ie(17313),ee=ie(83116),te=ie(37613);const oe=fe=>{const{componentCls:$e,iconCls:Re}=fe;return{[$e]:Object.assign(Object.assign({},(0,z.Wf)(fe)),{color:fe.itemColor,fontSize:fe.fontSize,[Re]:{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},[`${$e}-separator`]:{marginInline:fe.separatorMargin,color:fe.separatorColor},[`${$e}-link`]:{[`
> ${Re} + span,
> ${Re} + a
`]:{marginInlineStart:fe.marginXXS}},[`${$e}-overlay-link`]:{borderRadius:fe.borderRadiusSM,height:fe.lineHeight*fe.fontSize,display:"inline-block",padding:`0 ${fe.paddingXXS}px`,marginInline:-fe.marginXXS,[`> ${Re}`]:{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 ae=(0,ee.Z)("Breadcrumb",fe=>{const $e=(0,te.TS)(fe,{});return[oe($e)]},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,$e){var Re={};for(var Me in fe)Object.prototype.hasOwnProperty.call(fe,Me)&&$e.indexOf(Me)<0&&(Re[Me]=fe[Me]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,Me=Object.getOwnPropertySymbols(fe);Ke<Me.length;Ke++)$e.indexOf(Me[Ke])<0&&Object.prototype.propertyIsEnumerable.call(fe,Me[Ke])&&(Re[Me[Ke]]=fe[Me[Ke]]);return Re};function me(fe){const{breadcrumbName:$e,children:Re}=fe,Me=ge(fe,["breadcrumbName","children"]),Ke=Object.assign({title:$e},Me);return Re&&(Ke.menu={items:Re.map(Bt=>{var{breadcrumbName:Et}=Bt,yt=ge(Bt,["breadcrumbName"]);return Object.assign(Object.assign({},yt),{title:Et})})}),Ke}function le(fe,$e){return(0,he.useMemo)(()=>fe||($e?$e.map(me):null),[fe,$e])}var Ce=function(fe,$e){var Re={};for(var Me in fe)Object.prototype.hasOwnProperty.call(fe,Me)&&$e.indexOf(Me)<0&&(Re[Me]=fe[Me]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,Me=Object.getOwnPropertySymbols(fe);Ke<Me.length;Ke++)$e.indexOf(Me[Ke])<0&&Object.prototype.propertyIsEnumerable.call(fe,Me[Ke])&&(Re[Me[Ke]]=fe[Me[Ke]]);return Re};const ze=(fe,$e)=>{if($e===void 0)return $e;let Re=($e||"").replace(/^\//,"");return Object.keys(fe).forEach(Me=>{Re=Re.replace(`:${Me}`,fe[Me])}),Re},ot=fe=>{const{prefixCls:$e,separator:Re="/",style:Me,className:Ke,rootClassName:Bt,routes:Et,items:yt,children:Ht,itemRender:Ee,params:Ae={}}=fe,Ze=Ce(fe,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Pt,direction:Qe,breadcrumb:st}=he.useContext(se.E_);let ue;const Ue=Pt("breadcrumb",$e),[Dt,Ot]=ae(Ue),zt=le(yt,Et),Fe=a(Ue,Ee);if(zt&&zt.length>0){const _e=[],je=yt||Et;ue=zt.map((ut,vt)=>{const{path:Ft,key:xt,type:Mt,menu:ht,overlay:Nt,onClick:Qt,className:mn,separator:gn,dropdownProps:Vt}=ut,tn=ze(Ae,Ft);tn!==void 0&&_e.push(tn);const nn=xt!=null?xt:vt;if(Mt==="separator")return he.createElement(Ne,{key:nn},gn);const Pn={},bn=vt===zt.length-1;ht?Pn.menu=ht:Nt&&(Pn.overlay=Nt);let{href:wn}=ut;return _e.length&&tn!==void 0&&(wn=`#/${_e.join("/")}`),he.createElement(E,Object.assign({key:nn},Pn,(0,Je.Z)(ut,{data:!0,aria:!0}),{className:mn,dropdownProps:Vt,href:wn,separator:bn?"":Re,onClick:Qt,prefixCls:Ue}),Fe(ut,Ae,je,_e,wn))})}else if(Ht){const _e=(0,Te.Z)(Ht).length;ue=(0,Te.Z)(Ht).map((je,ut)=>{if(!je)return je;const vt=ut===_e-1;return(0,ye.Tm)(je,{separator:vt?"":Re,key:ut})})}const Le=de()(Ue,st==null?void 0:st.className,{[`${Ue}-rtl`]:Qe==="rtl"},Ke,Bt,Ot),ve=Object.assign(Object.assign({},st==null?void 0:st.style),Me);return Dt(he.createElement("nav",Object.assign({className:Le,style:ve},Ze),he.createElement("ol",null,ue)))};ot.Item=x,ot.Separator=Ne;var nt=ot,gt=nt},19842:function(De,et,ie){"use strict";ie.d(et,{Z:function(){return da}});var re=ie(65093),de=ie(59301),Te=ie(33853),Je=ie(58617),he=ie(38819),ye=ie(92310),se=ie.n(ye),Ge=ie(16378),Be=ie(10859),xe=ie(61206),Ne=ie(77861),we=ie(17115),be=ie(90782),ne=ie(6089),a=ie(18929),b=de.createContext(null),E=b,y=ie(42066),x=ie(78772),z=ie(35227),ee="__rc_cascader_search_mark__",te=function(He,Ye,rt){var lt=rt.label;return Ye.some(function(ft){return String(ft[lt]).toLowerCase().includes(He.toLowerCase())})},oe=function(He,Ye,rt,lt){return Ye.map(function(ft){return ft[lt.label]}).join(" / ")},ae=function(pe,He,Ye,rt,lt,ft){var Ct=lt.filter,ce=Ct===void 0?te:Ct,Pe=lt.render,Se=Pe===void 0?oe:Pe,ke=lt.limit,qe=ke===void 0?50:ke,tt=lt.sort;return de.useMemo(function(){var pt=[];if(!pe)return[];function dt(ct,bt){var Kt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ct.forEach(function(Ie){if(!(!tt&&qe!==!1&&qe>0&&pt.length>=qe)){var At=[].concat((0,re.Z)(bt),[Ie]),Tt=Ie[Ye.children],un=Kt||Ie.disabled;if((!Tt||Tt.length===0||ft)&&ce(pe,At,{label:Ye.label})){var It;pt.push((0,z.Z)((0,z.Z)({},Ie),{},(It={disabled:un},(0,x.Z)(It,Ye.label,Se(pe,At,rt,Ye)),(0,x.Z)(It,ee,At),(0,x.Z)(It,Ye.children,void 0),It)))}Tt&&dt(Ie[Ye.children],At,un)}})}return dt(He,[]),tt&&pt.sort(function(ct,bt){return tt(ct[ee],bt[ee],pe,Ye)}),qe!==!1&&qe>0?pt.slice(0,qe):pt},[pe,He,Ye,rt,Se,ft,ce,tt,qe])},ge="__RC_CASCADER_SPLIT__",me="SHOW_PARENT",le="SHOW_CHILD";function Ce(pe){return pe.join(ge)}function ze(pe){return pe.map(Ce)}function ot(pe){return pe.split(ge)}function nt(pe){var He=pe||{},Ye=He.label,rt=He.value,lt=He.children,ft=rt||"value";return{label:Ye||"label",value:ft,key:ft,children:lt||"children"}}function gt(pe,He){var Ye,rt;return(Ye=pe.isLeaf)!==null&&Ye!==void 0?Ye:!((rt=pe[He.children])!==null&&rt!==void 0&&rt.length)}function fe(pe){var He=pe.parentElement;if(He){var Ye=pe.offsetTop-He.offsetTop;Ye-He.scrollTop<0?He.scrollTo({top:Ye}):Ye+pe.offsetHeight-He.scrollTop>He.offsetHeight&&He.scrollTo({top:Ye+pe.offsetHeight-He.offsetHeight})}}function $e(pe,He){return pe.map(function(Ye){var rt;return(rt=Ye[ee])===null||rt===void 0?void 0:rt.map(function(lt){return lt[He.value]})})}function Re(pe,He,Ye){var rt=new Set(pe),lt=He();return pe.filter(function(ft){var Ct=lt[ft],ce=Ct?Ct.parent:null,Pe=Ct?Ct.children:null;return Ct&&Ct.node.disabled?!0:Ye===le?!(Pe&&Pe.some(function(Se){return Se.key&&rt.has(Se.key)})):!(ce&&!ce.node.disabled&&rt.has(ce.key))})}function Me(pe,He,Ye){for(var rt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,lt=He,ft=[],Ct=function(){var Se,ke,qe,tt=pe[ce],pt=(Se=lt)===null||Se===void 0?void 0:Se.findIndex(function(ct){var bt=ct[Ye.value];return rt?String(bt)===String(tt):bt===tt}),dt=pt!==-1?(ke=lt)===null||ke===void 0?void 0:ke[pt]:null;ft.push({value:(qe=dt==null?void 0:dt[Ye.value])!==null&&qe!==void 0?qe:tt,index:pt,option:dt}),lt=dt==null?void 0:dt[Ye.children]},ce=0;ce<pe.length;ce+=1)Ct();return ft}var Ke=function(pe,He,Ye,rt,lt){return de.useMemo(function(){var ft=lt||function(Ct){var ce=rt?Ct.slice(-1):Ct,Pe=" / ";return ce.every(function(Se){return["string","number"].includes((0,y.Z)(Se))})?ce.join(Pe):ce.reduce(function(Se,ke,qe){var tt=de.isValidElement(ke)?de.cloneElement(ke,{key:qe}):ke;return qe===0?[tt]:[].concat((0,re.Z)(Se),[Pe,tt])},[])};return pe.map(function(Ct){var ce,Pe,Se=Me(Ct,He,Ye),ke=ft(Se.map(function(tt){var pt,dt=tt.option,ct=tt.value;return(pt=dt==null?void 0:dt[Ye.label])!==null&&pt!==void 0?pt:ct}),Se.map(function(tt){var pt=tt.option;return pt})),qe=Ce(Ct);return{label:ke,value:qe,key:qe,valueCells:Ct,disabled:(ce=Se[Se.length-1])===null||ce===void 0||(Pe=ce.option)===null||Pe===void 0?void 0:Pe.disabled}})},[pe,He,Ye,lt,rt])},Bt=ie(71430),Et=function(pe,He){var Ye=de.useRef({options:null,info:null}),rt=de.useCallback(function(){return Ye.current.options!==pe&&(Ye.current.options=pe,Ye.current.info=(0,Bt.I8)(pe,{fieldNames:He,initWrapper:function(ft){return(0,z.Z)((0,z.Z)({},ft),{},{pathKeyEntities:{}})},processEntity:function(ft,Ct){var ce=ft.nodes.map(function(Pe){return Pe[He.value]}).join(ge);Ct.pathKeyEntities[ce]=ft,ft.key=ce}})),Ye.current.info.pathKeyEntities},[He,pe]);return rt},yt=function(pe,He){return de.useCallback(function(Ye){var rt=[],lt=[];return Ye.forEach(function(ft){var Ct=Me(ft,pe,He);Ct.every(function(ce){return ce.option})?lt.push(ft):rt.push(ft)}),[lt,rt]},[pe,He])},Ht=ie(48736);function Ee(pe){return de.useMemo(function(){if(!pe)return[!1,{}];var He={matchInputWidth:!0,limit:50};return pe&&(0,y.Z)(pe)==="object"&&(He=(0,z.Z)((0,z.Z)({},He),pe)),He.limit<=0&&delete He.limit,[!0,He]},[pe])}var Ae=de.memo(function(pe){var He=pe.children;return He},function(pe,He){return!He.open}),Ze=Ae;function Pt(pe){var He,Ye=pe.prefixCls,rt=pe.checked,lt=pe.halfChecked,ft=pe.disabled,Ct=pe.onClick,ce=pe.disableCheckbox,Pe=de.useContext(E),Se=Pe.checkable,ke=typeof Se!="boolean"?Se:null;return de.createElement("span",{className:se()("".concat(Ye),(He={},(0,x.Z)(He,"".concat(Ye,"-checked"),rt),(0,x.Z)(He,"".concat(Ye,"-indeterminate"),!rt&&lt),(0,x.Z)(He,"".concat(Ye,"-disabled"),ft||ce),He)),onClick:Ct},ke)}var Qe="__cascader_fix_label__";function st(pe){var He=pe.prefixCls,Ye=pe.multiple,rt=pe.options,lt=pe.activeValue,ft=pe.prevValuePath,Ct=pe.onToggleOpen,ce=pe.onSelect,Pe=pe.onActive,Se=pe.checkedSet,ke=pe.halfCheckedSet,qe=pe.loadingKeys,tt=pe.isSelectable,pt=pe.searchValue,dt="".concat(He,"-menu"),ct="".concat(He,"-menu-item"),bt=de.useContext(E),Kt=bt.fieldNames,Ie=bt.changeOnSelect,At=bt.expandTrigger,Tt=bt.expandIcon,un=bt.loadingIcon,It=bt.dropdownMenuColumnStyle,Gt=At==="hover",qt=de.useMemo(function(){return rt.map(function(wt){var Wt,kt=wt.disabled,en=wt.disableCheckbox,Xt=wt[ee],ln=(Wt=wt[Qe])!==null&&Wt!==void 0?Wt:wt[Kt.label],Ut=wt[Kt.value],hn=gt(wt,Kt),Oe=Xt?Xt.map(function(We){return We[Kt.value]}):[].concat((0,re.Z)(ft),[Ut]),Ln=Ce(Oe),yn=qe.includes(Ln),En=Se.has(Ln),jt=ke.has(Ln);return{disabled:kt,label:ln,value:Ut,isLeaf:hn,isLoading:yn,checked:En,halfChecked:jt,option:wt,disableCheckbox:en,fullPath:Oe,fullPathKey:Ln}})},[rt,Se,Kt,ke,qe,ft]);return de.createElement("ul",{className:dt,role:"menu"},qt.map(function(wt){var Wt,kt=wt.disabled,en=wt.label,Xt=wt.value,ln=wt.isLeaf,Ut=wt.isLoading,hn=wt.checked,Oe=wt.halfChecked,Ln=wt.option,yn=wt.fullPath,En=wt.fullPathKey,jt=wt.disableCheckbox,We=function(){if(!(kt||pt)){var $t=(0,re.Z)(yn);Gt&&ln&&$t.pop(),Pe($t)}},mt=function(){tt(Ln)&&ce(yn,ln)},Lt;return typeof Ln.title=="string"?Lt=Ln.title:typeof en=="string"&&(Lt=en),de.createElement("li",{key:En,className:se()(ct,(Wt={},(0,x.Z)(Wt,"".concat(ct,"-expand"),!ln),(0,x.Z)(Wt,"".concat(ct,"-active"),lt===Xt||lt===En),(0,x.Z)(Wt,"".concat(ct,"-disabled"),kt),(0,x.Z)(Wt,"".concat(ct,"-loading"),Ut),Wt)),style:It,role:"menuitemcheckbox",title:Lt,"aria-checked":hn,"data-path-key":En,onClick:function(){We(),!jt&&(!Ye||ln)&&mt()},onDoubleClick:function(){Ie&&Ct(!1)},onMouseEnter:function(){Gt&&We()},onMouseDown:function($t){$t.preventDefault()}},Ye&&de.createElement(Pt,{prefixCls:"".concat(He,"-checkbox"),checked:hn,halfChecked:Oe,disabled:kt||jt,disableCheckbox:jt,onClick:function($t){jt||($t.stopPropagation(),mt())}}),de.createElement("div",{className:"".concat(ct,"-content")},en),!Ut&&Tt&&!ln&&de.createElement("div",{className:"".concat(ct,"-expand-icon")},Tt),Ut&&un&&de.createElement("div",{className:"".concat(ct,"-loading-icon")},un))}))}var ue=function(){var pe=(0,Ne.lk)(),He=pe.multiple,Ye=pe.open,rt=de.useContext(E),lt=rt.values,ft=de.useState([]),Ct=(0,Be.Z)(ft,2),ce=Ct[0],Pe=Ct[1];return de.useEffect(function(){if(Ye&&!He){var Se=lt[0];Pe(Se||[])}},[Ye]),[ce,Pe]},Ue=ie(10228),Dt=function(pe,He,Ye,rt,lt,ft){var Ct=(0,Ne.lk)(),ce=Ct.direction,Pe=Ct.searchValue,Se=Ct.toggleOpen,ke=Ct.open,qe=ce==="rtl",tt=de.useMemo(function(){for(var It=-1,Gt=He,qt=[],wt=[],Wt=rt.length,kt=$e(He,Ye),en=function(Ln){var yn=Gt.findIndex(function(En,jt){return(kt[jt]?Ce(kt[jt]):En[Ye.value])===rt[Ln]});if(yn===-1)return"break";It=yn,qt.push(It),wt.push(rt[Ln]),Gt=Gt[It][Ye.children]},Xt=0;Xt<Wt&&Gt;Xt+=1){var ln=en(Xt);if(ln==="break")break}for(var Ut=He,hn=0;hn<qt.length-1;hn+=1)Ut=Ut[qt[hn]][Ye.children];return[wt,It,Ut,kt]},[rt,Ye,He]),pt=(0,Be.Z)(tt,4),dt=pt[0],ct=pt[1],bt=pt[2],Kt=pt[3],Ie=function(Gt){lt(Gt)},At=function(Gt){var qt=bt.length,wt=ct;wt===-1&&Gt<0&&(wt=qt);for(var Wt=0;Wt<qt;Wt+=1){wt=(wt+Gt+qt)%qt;var kt=bt[wt];if(kt&&!kt.disabled){var en=dt.slice(0,-1).concat(Kt[wt]?Ce(Kt[wt]):kt[Ye.value]);Ie(en);return}}},Tt=function(){if(dt.length>1){var Gt=dt.slice(0,-1);Ie(Gt)}else Se(!1)},un=function(){var Gt,qt=((Gt=bt[ct])===null||Gt===void 0?void 0:Gt[Ye.children])||[],wt=qt.find(function(kt){return!kt.disabled});if(wt){var Wt=[].concat((0,re.Z)(dt),[wt[Ye.value]]);Ie(Wt)}};de.useImperativeHandle(pe,function(){return{onKeyDown:function(Gt){var qt=Gt.which;switch(qt){case Ue.Z.UP:case Ue.Z.DOWN:{var wt=0;qt===Ue.Z.UP?wt=-1:qt===Ue.Z.DOWN&&(wt=1),wt!==0&&At(wt);break}case Ue.Z.LEFT:{if(Pe)break;qe?un():Tt();break}case Ue.Z.RIGHT:{if(Pe)break;qe?Tt():un();break}case Ue.Z.BACKSPACE:{Pe||Tt();break}case Ue.Z.ENTER:{if(dt.length){var Wt=bt[ct],kt=(Wt==null?void 0:Wt[ee])||[];kt.length?ft(kt.map(function(en){return en[Ye.value]}),kt[kt.length-1]):ft(dt,bt[ct])}break}case Ue.Z.ESC:Se(!1),ke&&Gt.stopPropagation()}},onKeyUp:function(){}}})},Ot=de.forwardRef(function(pe,He){var Ye,rt,lt,ft,Ct=(0,Ne.lk)(),ce=Ct.prefixCls,Pe=Ct.multiple,Se=Ct.searchValue,ke=Ct.toggleOpen,qe=Ct.notFoundContent,tt=Ct.direction,pt=Ct.open,dt=de.useRef(),ct=tt==="rtl",bt=de.useContext(E),Kt=bt.options,Ie=bt.values,At=bt.halfValues,Tt=bt.fieldNames,un=bt.changeOnSelect,It=bt.onSelect,Gt=bt.searchOptions,qt=bt.dropdownPrefixCls,wt=bt.loadData,Wt=bt.expandTrigger,kt=qt||ce,en=de.useState([]),Xt=(0,Be.Z)(en,2),ln=Xt[0],Ut=Xt[1],hn=function(Rt){if(!(!wt||Se)){var rn=Me(Rt,Kt,Tt),dn=rn.map(function(zn){var Rn=zn.option;return Rn}),Bn=dn[dn.length-1];if(Bn&&!gt(Bn,Tt)){var Mn=Ce(Rt);Ut(function(zn){return[].concat((0,re.Z)(zn),[Mn])}),wt(dn)}}};de.useEffect(function(){ln.length&&ln.forEach(function(cn){var Rt=ot(cn),rn=Me(Rt,Kt,Tt,!0).map(function(Bn){var Mn=Bn.option;return Mn}),dn=rn[rn.length-1];(!dn||dn[Tt.children]||gt(dn,Tt))&&Ut(function(Bn){return Bn.filter(function(Mn){return Mn!==cn})})})},[Kt,ln,Tt]);var Oe=de.useMemo(function(){return new Set(ze(Ie))},[Ie]),Ln=de.useMemo(function(){return new Set(ze(At))},[At]),yn=ue(),En=(0,Be.Z)(yn,2),jt=En[0],We=En[1],mt=function(Rt){We(Rt),hn(Rt)},Lt=function(Rt){var rn=Rt.disabled,dn=gt(Rt,Tt);return!rn&&(dn||un||Pe)},at=function(Rt,rn){var dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;It(Rt),!Pe&&(rn||un&&(Wt==="hover"||dn))&&ke(!1)},$t=de.useMemo(function(){return Se?Gt:Kt},[Se,Gt,Kt]),Yt=de.useMemo(function(){for(var cn=[{options:$t}],Rt=$t,rn=$e(Rt,Tt),dn=function(){var Rn=jt[Bn],In=Rt.find(function(ta,Wn){return(rn[Wn]?Ce(rn[Wn]):ta[Tt.value])===Rn}),Tn=In==null?void 0:In[Tt.children];if(!(Tn!=null&&Tn.length))return"break";Rt=Tn,cn.push({options:Tn})},Bn=0;Bn<jt.length;Bn+=1){var Mn=dn();if(Mn==="break")break}return cn},[$t,jt,Tt]),Sn=function(Rt,rn){Lt(rn)&&at(Rt,gt(rn,Tt),!0)};Dt(He,$t,Tt,jt,mt,Sn),de.useEffect(function(){for(var cn=0;cn<jt.length;cn+=1){var Rt,rn=jt.slice(0,cn+1),dn=Ce(rn),Bn=(Rt=dt.current)===null||Rt===void 0?void 0:Rt.querySelector('li[data-path-key="'.concat(dn.replace(/\\{0,2}"/g,'\\"'),'"]'));Bn&&fe(Bn)}},[jt]);var Jt=!((Ye=Yt[0])!==null&&Ye!==void 0&&(rt=Ye.options)!==null&&rt!==void 0&&rt.length),sn=[(lt={},(0,x.Z)(lt,Tt.value,"__EMPTY__"),(0,x.Z)(lt,Qe,qe),(0,x.Z)(lt,"disabled",!0),lt)],Nn=(0,z.Z)((0,z.Z)({},pe),{},{multiple:!Jt&&Pe,onSelect:at,onActive:mt,onToggleOpen:ke,checkedSet:Oe,halfCheckedSet:Ln,loadingKeys:ln,isSelectable:Lt}),On=Jt?[{options:sn}]:Yt,ea=On.map(function(cn,Rt){var rn=jt.slice(0,Rt),dn=jt[Rt];return de.createElement(st,(0,Ge.Z)({key:Rt},Nn,{searchValue:Se,prefixCls:kt,options:cn.options,prevValuePath:rn,activeValue:dn}))});return de.createElement(Ze,{open:pt},de.createElement("div",{className:se()("".concat(kt,"-menus"),(ft={},(0,x.Z)(ft,"".concat(kt,"-menu-empty"),Jt),(0,x.Z)(ft,"".concat(kt,"-rtl"),ct),ft)),ref:dt},ea))}),zt=Ot;function Fe(pe){var He=pe.onPopupVisibleChange,Ye=pe.popupVisible,rt=pe.popupClassName,lt=pe.popupPlacement;warning(!He,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Ye===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(rt===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(lt===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Le(pe,He){if(pe){var Ye=function rt(lt){for(var ft=0;ft<lt.length;ft++){var Ct=lt[ft];if(Ct[He==null?void 0:He.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(Ct[He==null?void 0:He.children])&&rt(Ct[He==null?void 0:He.children]))return!0}};Ye(pe)}}var ve=null,_e=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy"];function je(pe){return Array.isArray(pe)&&Array.isArray(pe[0])}function ut(pe){return pe?je(pe)?pe:(pe.length===0?[]:[pe]).map(function(He){return Array.isArray(He)?He:[He]}):[]}var vt=de.forwardRef(function(pe,He){var Ye=pe.id,rt=pe.prefixCls,lt=rt===void 0?"rc-cascader":rt,ft=pe.fieldNames,Ct=pe.defaultValue,ce=pe.value,Pe=pe.changeOnSelect,Se=pe.onChange,ke=pe.displayRender,qe=pe.checkable,tt=pe.autoClearSearchValue,pt=tt===void 0?!0:tt,dt=pe.searchValue,ct=pe.onSearch,bt=pe.showSearch,Kt=pe.expandTrigger,Ie=pe.options,At=pe.dropdownPrefixCls,Tt=pe.loadData,un=pe.popupVisible,It=pe.open,Gt=pe.popupClassName,qt=pe.dropdownClassName,wt=pe.dropdownMenuColumnStyle,Wt=pe.popupPlacement,kt=pe.placement,en=pe.onDropdownVisibleChange,Xt=pe.onPopupVisibleChange,ln=pe.expandIcon,Ut=ln===void 0?">":ln,hn=pe.loadingIcon,Oe=pe.children,Ln=pe.dropdownMatchSelectWidth,yn=Ln===void 0?!1:Ln,En=pe.showCheckedStrategy,jt=En===void 0?me:En,We=(0,xe.Z)(pe,_e),mt=(0,we.ZP)(Ye),Lt=!!qe,at=(0,a.Z)(Ct,{value:ce,postState:ut}),$t=(0,Be.Z)(at,2),Yt=$t[0],Sn=$t[1],Jt=de.useMemo(function(){return nt(ft)},[JSON.stringify(ft)]),sn=de.useMemo(function(){return Ie||[]},[Ie]),Nn=Et(sn,Jt),On=de.useCallback(function(Xe){var Ve=Nn();return Xe.map(function(it){var _t=Ve[it].nodes;return _t.map(function(Zt){return Zt[Jt.value]})})},[Nn,Jt]),ea=(0,a.Z)("",{value:dt,postState:function(Ve){return Ve||""}}),cn=(0,Be.Z)(ea,2),Rt=cn[0],rn=cn[1],dn=function(Ve,it){rn(Ve),it.source!=="blur"&&ct&&ct(Ve)},Bn=Ee(bt),Mn=(0,Be.Z)(Bn,2),zn=Mn[0],Rn=Mn[1],In=ae(Rt,sn,Jt,At||lt,Rn,Pe),Tn=yt(sn,Jt),ta=de.useMemo(function(){var Xe=Tn(Yt),Ve=(0,Be.Z)(Xe,2),it=Ve[0],_t=Ve[1];if(!Lt||!Yt.length)return[it,[],_t];var Zt=ze(it),fn=Nn(),an=(0,be.S)(Zt,!0,fn),vn=an.checkedKeys,pn=an.halfCheckedKeys;return[On(vn),On(pn),_t]},[Lt,Yt,Nn,On,Tn]),Wn=(0,Be.Z)(ta,3),Kn=Wn[0],Jn=Wn[1],Cn=Wn[2],na=de.useMemo(function(){var Xe=ze(Kn),Ve=Re(Xe,Nn,jt);return[].concat((0,re.Z)(Cn),(0,re.Z)(On(Ve)))},[Kn,Nn,On,Cn,jt]),Vn=Ke(na,sn,Jt,Lt,ke),ma=(0,ne.Z)(function(Xe){if(Sn(Xe),Se){var Ve=ut(Xe),it=Ve.map(function(fn){return Me(fn,sn,Jt).map(function(an){return an.option})}),_t=Lt?Ve:Ve[0],Zt=Lt?it:it[0];Se(_t,Zt)}}),sa=(0,ne.Z)(function(Xe){if((!Lt||pt)&&rn(""),!Lt)ma(Xe);else{var Ve=Ce(Xe),it=ze(Kn),_t=ze(Jn),Zt=it.includes(Ve),fn=Cn.some(function(aa){return Ce(aa)===Ve}),an=Kn,vn=Cn;if(fn&&!Zt)vn=Cn.filter(function(aa){return Ce(aa)!==Ve});else{var pn=Zt?it.filter(function(aa){return aa!==Ve}):[].concat((0,re.Z)(it),[Ve]),Hn=Nn(),An;if(Zt){var ga=(0,be.S)(pn,{checked:!1,halfCheckedKeys:_t},Hn);An=ga.checkedKeys}else{var ia=(0,be.S)(pn,!0,Hn);An=ia.checkedKeys}var ua=Re(An,Nn,jt);an=On(ua)}ma([].concat((0,re.Z)(vn),(0,re.Z)(an)))}}),Sa=function(Ve,it){if(it.type==="clear"){ma([]);return}var _t=it.values[0],Zt=_t.valueCells;sa(Zt)},pa=It!==void 0?It:un,Pa=qt||Gt,ba=kt||Wt,La=function(Ve){en==null||en(Ve),Xt==null||Xt(Ve)},ha=de.useMemo(function(){return{options:sn,fieldNames:Jt,values:Kn,halfValues:Jn,changeOnSelect:Pe,onSelect:sa,checkable:qe,searchOptions:In,dropdownPrefixCls:At,loadData:Tt,expandTrigger:Kt,expandIcon:Ut,loadingIcon:hn,dropdownMenuColumnStyle:wt}},[sn,Jt,Kn,Jn,Pe,sa,qe,In,At,Tt,Kt,Ut,hn,wt]),ca=!(Rt?In:sn).length,St=Rt&&Rn.matchInputWidth||ca?{}:{minWidth:"auto"};return de.createElement(E.Provider,{value:ha},de.createElement(Ne.Ac,(0,Ge.Z)({},We,{ref:He,id:mt,prefixCls:lt,autoClearSearchValue:pt,dropdownMatchSelectWidth:yn,dropdownStyle:St,displayValues:Vn,onDisplayValuesChange:Sa,mode:Lt?"multiple":void 0,searchValue:Rt,onSearch:dn,showSearch:zn,OptionList:zt,emptyOptions:ca,open:pa,dropdownClassName:Pa,placement:ba,onDropdownVisibleChange:La,getRawInputElement:function(){return Oe}})))});vt.SHOW_PARENT=me,vt.SHOW_CHILD=le;var Ft=vt,xt=Ft,Mt=ie(2738),ht=ie(62892),Nt=ie(53487),Qt=ie(19080),mn=ie(36355),gn=ie(93891),Vt=ie(1684),tn=ie(19716),nn=ie(32441),Pn=ie(14154),bn=ie(58582),wn=ie(84443),Dn=ie(66339),Fn=ie(33234),$n=ie(98447),on=ie(17313),xn=ie(74207),kn=ie(83116);const jn=pe=>{const{prefixCls:He,componentCls:Ye,antCls:rt}=pe,lt=`${Ye}-menu-item`,ft=`
&${lt}-expand ${lt}-expand-icon,
${lt}-loading-icon
`;return[{[Ye]:{width:pe.controlWidth}},{[`${Ye}-dropdown`]:[(0,$n.C2)(`${He}-checkbox`,pe),{[`&${rt}-select-dropdown`]:{padding:0}},{[Ye]:{"&-checkbox":{top:0,marginInlineEnd:pe.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Ye}-menu-empty`]:{[`${Ye}-menu`]:{width:"100%",height:"auto",[lt]:{color:pe.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:pe.controlItemWidth,height:pe.dropdownHeight,margin:0,padding:pe.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${pe.lineWidth}px ${pe.lineType} ${pe.colorSplit}`},"&-item":Object.assign(Object.assign({},on.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:pe.optionPadding,lineHeight:pe.lineHeight,cursor:"pointer",transition:`all ${pe.motionDurationMid}`,borderRadius:pe.borderRadiusSM,"&:hover":{background:pe.controlItemBgHover},"&-disabled":{color:pe.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[ft]:{color:pe.colorTextDisabled}},[`&-active:not(${lt}-disabled)`]:{"&, &:hover":{fontWeight:pe.optionSelectedFontWeight,backgroundColor:pe.optionSelectedBg}},"&-content":{flex:"auto"},[ft]:{marginInlineStart:pe.paddingXXS,color:pe.colorTextDescription,fontSize:pe.fontSizeIcon},"&-keyword":{color:pe.colorHighlight}})}}}]},{[`${Ye}-dropdown-rtl`]:{direction:"rtl"}},(0,xn.c)(pe)]};var Qn=(0,kn.Z)("Cascader",pe=>[jn(pe)],pe=>{const He=Math.round((pe.controlHeight-pe.fontSize*pe.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:pe.controlItemBgActive,optionSelectedFontWeight:pe.fontWeightStrong,optionPadding:`${He}px ${pe.paddingSM}px`,menuPadding:pe.paddingXXS}}),Un=function(pe,He){var Ye={};for(var rt in pe)Object.prototype.hasOwnProperty.call(pe,rt)&&He.indexOf(rt)<0&&(Ye[rt]=pe[rt]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,rt=Object.getOwnPropertySymbols(pe);lt<rt.length;lt++)He.indexOf(rt[lt])<0&&Object.prototype.propertyIsEnumerable.call(pe,rt[lt])&&(Ye[rt[lt]]=pe[rt[lt]]);return Ye};const{SHOW_CHILD:Yn,SHOW_PARENT:oa}=xt;function Zn(pe,He,Ye){const rt=pe.toLowerCase().split(He).reduce((Ct,ce,Pe)=>Pe===0?[ce]:[].concat((0,re.Z)(Ct),[He,ce]),[]),lt=[];let ft=0;return rt.forEach((Ct,ce)=>{const Pe=ft+Ct.length;let Se=pe.slice(ft,Pe);ft=Pe,ce%2===1&&(Se=de.createElement("span",{className:`${Ye}-menu-item-keyword`,key:`separator-${ce}`},Se)),lt.push(Se)}),lt}const qn=(pe,He,Ye,rt)=>{const lt=[],ft=pe.toLowerCase();return He.forEach((Ct,ce)=>{ce!==0&&lt.push(" / ");let Pe=Ct[rt.label];const Se=typeof Pe;(Se==="string"||Se==="number")&&(Pe=Zn(String(Pe),ft,Ye)),lt.push(Pe)}),lt},Gn=de.forwardRef((pe,He)=>{const{prefixCls:Ye,size:rt,disabled:lt,className:ft,rootClassName:Ct,multiple:ce,bordered:Pe=!0,transitionName:Se,choiceTransitionName:ke="",popupClassName:qe,dropdownClassName:tt,expandIcon:pt,placement:dt,showSearch:ct,allowClear:bt=!0,notFoundContent:Kt,direction:Ie,getPopupContainer:At,status:Tt,showArrow:un,builtinPlacements:It,style:Gt}=pe,qt=Un(pe,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),wt=(0,Mt.Z)(qt,["suffixIcon"]),{getPopupContainer:Wt,getPrefixCls:kt,renderEmpty:en,direction:Xt,popupOverflow:ln,cascader:Ut}=de.useContext(mn.E_),hn=Ie||Xt,Oe=hn==="rtl",{status:Ln,hasFeedback:yn,isFormItemInput:En,feedbackIcon:jt}=de.useContext(nn.aM),We=(0,Qt.F)(Ln,Tt),mt=Kt||(en==null?void 0:en("Cascader"))||de.createElement(gn.Z,{componentName:"Cascader"}),Lt=kt(),at=kt("select",Ye),$t=kt("cascader",Ye),[Yt,Sn]=(0,Pn.Z)(at),[Jt]=Qn($t),{compactSize:sn,compactItemClassnames:Nn}=(0,Fn.ri)(at,Ie),On=se()(qe||tt,`${$t}-dropdown`,{[`${$t}-dropdown-rtl`]:hn==="rtl"},Ct,Sn),ea=de.useMemo(()=>{if(!ct)return ct;let Cn={render:qn};return typeof ct=="object"&&(Cn=Object.assign(Object.assign({},Cn),ct)),Cn},[ct]),cn=(0,tn.Z)(Cn=>{var na;return(na=rt!=null?rt:sn)!==null&&na!==void 0?na:Cn}),Rt=de.useContext(Vt.Z),rn=lt!=null?lt:Rt;let dn=pt;pt||(dn=Oe?de.createElement(Te.Z,null):de.createElement(he.Z,null));const Bn=de.createElement("span",{className:`${at}-menu-item-loading-icon`},de.createElement(Je.Z,{spin:!0})),Mn=de.useMemo(()=>ce?de.createElement("span",{className:`${$t}-checkbox-inner`}):!1,[ce]),zn=(0,wn.Z)(pe.suffixIcon,un),{suffixIcon:Rn,removeIcon:In,clearIcon:Tn}=(0,Dn.Z)(Object.assign(Object.assign({},pe),{hasFeedback:yn,feedbackIcon:jt,showSuffixIcon:zn,multiple:ce,prefixCls:at,componentName:"Cascader"})),ta=de.useMemo(()=>dt!==void 0?dt:Oe?"bottomRight":"bottomLeft",[dt,Oe]),Wn=(0,bn.Z)(It,ln),Kn=bt===!0?{clearIcon:Tn}:bt,Jn=de.createElement(xt,Object.assign({prefixCls:at,className:se()(!Ye&&$t,{[`${at}-lg`]:cn==="large",[`${at}-sm`]:cn==="small",[`${at}-rtl`]:Oe,[`${at}-borderless`]:!Pe,[`${at}-in-form-item`]:En},(0,Qt.Z)(at,We,yn),Nn,Ut==null?void 0:Ut.className,ft,Ct,Sn),disabled:rn,style:Object.assign(Object.assign({},Ut==null?void 0:Ut.style),Gt)},wt,{builtinPlacements:Wn,direction:hn,placement:ta,notFoundContent:mt,allowClear:Kn,showSearch:ea,expandIcon:dn,suffixIcon:Rn,removeIcon:In,loadingIcon:Bn,checkable:Mn,dropdownClassName:On,dropdownPrefixCls:Ye||$t,choiceTransitionName:(0,ht.m)(Lt,"",ke),transitionName:(0,ht.m)(Lt,"slide-up",Se),getPopupContainer:At||Wt,ref:He}));return Jt(Yt(Jn))}),ra=(0,Nt.Z)(Gn);Gn.SHOW_PARENT=oa,Gn.SHOW_CHILD=Yn,Gn._InternalPanelDoNotUseOrYouWillBeFired=ra;var da=Gn},98447:function(De,et,ie){"use strict";ie.d(et,{C2:function(){return he}});var re=ie(17313),de=ie(37613),Te=ie(83116);const Je=ye=>{const{checkboxCls:se}=ye,Ge=`${se}-wrapper`;return[{[`${se}-group`]:Object.assign(Object.assign({},(0,re.Wf)(ye)),{display:"inline-flex",flexWrap:"wrap",columnGap:ye.marginXS,[`> ${ye.antCls}-row`]:{flex:1}}),[Ge]:Object.assign(Object.assign({},(0,re.Wf)(ye)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ge}`]:{marginInlineStart:0},[`&${Ge}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[se]:Object.assign(Object.assign({},(0,re.Wf)(ye)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:ye.borderRadiusSM,alignSelf:"center",[`${se}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${se}-inner`]:Object.assign({},(0,re.oN)(ye))},[`${se}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:ye.checkboxSize,height:ye.checkboxSize,direction:"ltr",backgroundColor:ye.colorBgContainer,border:`${ye.lineWidth}px ${ye.lineType} ${ye.colorBorder}`,borderRadius:ye.borderRadiusSM,borderCollapse:"separate",transition:`all ${ye.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:ye.checkboxSize/14*5,height:ye.checkboxSize/14*8,border:`${ye.lineWidthBold}px solid ${ye.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ye.motionDurationFast} ${ye.motionEaseInBack}, opacity ${ye.motionDurationFast}`}},"& + span":{paddingInlineStart:ye.paddingXS,paddingInlineEnd:ye.paddingXS}})},{[`
${Ge}:not(${Ge}-disabled),
${se}:not(${se}-disabled)
`]:{[`&:hover ${se}-inner`]:{borderColor:ye.colorPrimary}},[`${Ge}:not(${Ge}-disabled)`]:{[`&:hover ${se}-checked:not(${se}-disabled) ${se}-inner`]:{backgroundColor:ye.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${se}-checked:not(${se}-disabled):after`]:{borderColor:ye.colorPrimaryHover}}},{[`${se}-checked`]:{[`${se}-inner`]:{backgroundColor:ye.colorPrimary,borderColor:ye.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${ye.motionDurationMid} ${ye.motionEaseOutBack} ${ye.motionDurationFast}`}}},[`
${Ge}-checked:not(${Ge}-disabled),
${se}-checked:not(${se}-disabled)
`]:{[`&:hover ${se}-inner`]:{backgroundColor:ye.colorPrimaryHover,borderColor:"transparent"}}},{[se]:{"&-indeterminate":{[`${se}-inner`]:{backgroundColor:ye.colorBgContainer,borderColor:ye.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:ye.fontSizeLG/2,height:ye.fontSizeLG/2,backgroundColor:ye.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Ge}-disabled`]:{cursor:"not-allowed"},[`${se}-disabled`]:{[`&, ${se}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${se}-inner`]:{background:ye.colorBgContainerDisabled,borderColor:ye.colorBorder,"&:after":{borderColor:ye.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:ye.colorTextDisabled},[`&${se}-indeterminate ${se}-inner::after`]:{background:ye.colorTextDisabled}}}]};function he(ye,se){const Ge=(0,de.TS)(se,{checkboxCls:`.${ye}`,checkboxSize:se.controlInteractiveSize});return[Je(Ge)]}et.ZP=(0,Te.Z)("Checkbox",(ye,se)=>{let{prefixCls:Ge}=se;return[he(Ge,ye)]})},28103:function(De,et,ie){"use strict";ie.d(et,{Z:function(){return we}});var re=ie(92310),de=ie.n(re),Te=ie(59301),Je=ie(36355),he=ie(17313),ye=ie(83116),se=ie(37613);const Ge=be=>{const{componentCls:ne,sizePaddingEdgeHorizontal:a,colorSplit:b,lineWidth:E,textPaddingInline:y,orientationMargin:x,verticalMarginInline:z}=be;return{[ne]:Object.assign(Object.assign({},(0,he.Wf)(be)),{borderBlockStart:`${E}px solid ${b}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:z,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${E}px solid ${b}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${be.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${ne}-with-text`]:{display:"flex",alignItems:"center",margin:`${be.dividerHorizontalWithTextGutterMargin}px 0`,color:be.colorTextHeading,fontWeight:500,fontSize:be.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${b}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${E}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${ne}-with-text-left`]:{"&::before":{width:`${x*100}%`},"&::after":{width:`${100-x*100}%`}},[`&-horizontal${ne}-with-text-right`]:{"&::before":{width:`${100-x*100}%`},"&::after":{width:`${x*100}%`}},[`${ne}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:y},"&-dashed":{background:"none",borderColor:b,borderStyle:"dashed",borderWidth:`${E}px 0 0`},[`&-horizontal${ne}-with-text${ne}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${ne}-dashed`]:{borderInlineStartWidth:E,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${ne}-with-text`]:{color:be.colorText,fontWeight:"normal",fontSize:be.fontSize},[`&-horizontal${ne}-with-text-left${ne}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${ne}-inner-text`]:{paddingInlineStart:a}},[`&-horizontal${ne}-with-text-right${ne}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${ne}-inner-text`]:{paddingInlineEnd:a}}})}};var Be=(0,ye.Z)("Divider",be=>{const ne=(0,se.TS)(be,{dividerHorizontalWithTextGutterMargin:be.margin,dividerHorizontalGutterMargin:be.marginLG,sizePaddingEdgeHorizontal:0});return[Ge(ne)]},be=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:be.marginXS})),xe=function(be,ne){var a={};for(var b in be)Object.prototype.hasOwnProperty.call(be,b)&&ne.indexOf(b)<0&&(a[b]=be[b]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,b=Object.getOwnPropertySymbols(be);E<b.length;E++)ne.indexOf(b[E])<0&&Object.prototype.propertyIsEnumerable.call(be,b[E])&&(a[b[E]]=be[b[E]]);return a},we=be=>{const{getPrefixCls:ne,direction:a,divider:b}=Te.useContext(Je.E_),{prefixCls:E,type:y="horizontal",orientation:x="center",orientationMargin:z,className:ee,rootClassName:te,children:oe,dashed:ae,plain:ge,style:me}=be,le=xe(be,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Ce=ne("divider",E),[ze,ot]=Be(Ce),nt=x.length>0?`-${x}`:x,gt=!!oe,fe=x==="left"&&z!=null,$e=x==="right"&&z!=null,Re=de()(Ce,b==null?void 0:b.className,ot,`${Ce}-${y}`,{[`${Ce}-with-text`]:gt,[`${Ce}-with-text${nt}`]:gt,[`${Ce}-dashed`]:!!ae,[`${Ce}-plain`]:!!ge,[`${Ce}-rtl`]:a==="rtl",[`${Ce}-no-default-orientation-margin-left`]:fe,[`${Ce}-no-default-orientation-margin-right`]:$e},ee,te),Me=Te.useMemo(()=>typeof z=="number"?z:/^\d+$/.test(z)?Number(z):z,[z]),Ke=Object.assign(Object.assign({},fe&&{marginLeft:Me}),$e&&{marginRight:Me});return ze(Te.createElement("div",Object.assign({className:Re,style:Object.assign(Object.assign({},b==null?void 0:b.style),me)},le,{role:"separator"}),oe&&y!=="vertical"&&Te.createElement("span",{className:`${Ce}-inner-text`,style:Ke},oe)))}},91857:function(De,et,ie){"use strict";var re=ie(59301),de=ie(38819),Te=ie(92310),Je=ie.n(Te),he=ie(31561),ye=ie(70425),se=ie(18929),Ge=ie(2738),Be=ie(79676),xe=ie(53487),Ne=ie(92343),we=ie(36355),be=ie(20834),ne=ie(40875),a=ie(88088),b=ie(47211);const E=null,y=te=>{const{menu:oe,arrow:ae,prefixCls:ge,children:me,trigger:le,disabled:Ce,dropdownRender:ze,getPopupContainer:ot,overlayClassName:nt,rootClassName:gt,open:fe,onOpenChange:$e,visible:Re,onVisibleChange:Me,mouseEnterDelay:Ke=.15,mouseLeaveDelay:Bt=.1,autoAdjustOverflow:Et=!0,placement:yt="",overlay:Ht,transitionName:Ee}=te,{getPopupContainer:Ae,getPrefixCls:Ze,direction:Pt}=re.useContext(we.E_),Qe=re.useMemo(()=>{const ht=Ze();return Ee!==void 0?Ee:yt.includes("top")?`${ht}-slide-down`:`${ht}-slide-up`},[Ze,yt,Ee]),st=re.useMemo(()=>yt?yt.includes("Center")?yt.slice(0,yt.indexOf("Center")):yt:Pt==="rtl"?"bottomRight":"bottomLeft",[yt,Pt]),ue=Ze("dropdown",ge),[Ue,Dt]=(0,b.Z)(ue),[,Ot]=(0,a.Z)(),zt=re.Children.only(me),Fe=(0,Ne.Tm)(zt,{className:Je()(`${ue}-trigger`,{[`${ue}-rtl`]:Pt==="rtl"},zt.props.className),disabled:Ce}),Le=Ce?[]:le;let ve;Le&&Le.includes("contextMenu")&&(ve=!0);const[_e,je]=(0,se.Z)(!1,{value:fe!=null?fe:Re}),ut=(0,ye.useEvent)(ht=>{$e==null||$e(ht),Me==null||Me(ht),je(ht)}),vt=Je()(nt,gt,Dt,{[`${ue}-rtl`]:Pt==="rtl"}),Ft=(0,Be.Z)({arrowPointAtCenter:typeof ae=="object"&&ae.pointAtCenter,autoAdjustOverflow:Et,offset:Ot.marginXXS,arrowWidth:ae?Ot.sizePopupArrow:0,borderRadius:Ot.borderRadius}),xt=re.useCallback(()=>{je(!1)},[]),Mt=()=>{let ht;return oe!=null&&oe.items?ht=re.createElement(be.default,Object.assign({},oe)):typeof Ht=="function"?ht=Ht():ht=Ht,ze&&(ht=ze(ht)),ht=re.Children.only(typeof ht=="string"?re.createElement("span",null,ht):ht),re.createElement(ne.J,{prefixCls:`${ue}-menu`,expandIcon:re.createElement("span",{className:`${ue}-menu-submenu-arrow`},re.createElement(de.Z,{className:`${ue}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:xt,validator:Nt=>{let{mode:Qt}=Nt}},ht)};return Ue(re.createElement(he.Z,Object.assign({alignPoint:ve},(0,Ge.Z)(te,["rootClassName"]),{mouseEnterDelay:Ke,mouseLeaveDelay:Bt,visible:_e,builtinPlacements:Ft,arrow:!!ae,overlayClassName:vt,prefixCls:ue,getPopupContainer:ot||Ae,transitionName:Qe,trigger:Le,overlay:Mt,placement:st,onVisibleChange:ut}),Fe))};function x(te){return Object.assign(Object.assign({},te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,xe.Z)(y,"dropdown",te=>te,x),ee=te=>re.createElement(z,Object.assign({},te),re.createElement("span",null));y._InternalPanelDoNotUseOrYouWillBeFired=ee,et.Z=y},47211:function(De,et,ie){"use strict";ie.d(et,{Z:function(){return Ne}});var re=ie(17313),de=ie(13826),Te=ie(92899),Je=ie(29878),he=ie(19447),ye=ie(83116),se=ie(37613),Be=we=>{const{componentCls:be,menuCls:ne,colorError:a,colorTextLightSolid:b}=we,E=`${ne}-item`;return{[`${be}, ${be}-menu-submenu`]:{[`${ne} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:b,backgroundColor:a}}}}}};const xe=we=>{const{componentCls:be,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:b,sizePopupArrow:E,antCls:y,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:oe,colorTextDisabled:ae,fontSizeIcon:ge,controlPaddingHorizontal:me,colorBgElevated:le}=we;return[{[be]:Object.assign(Object.assign({},(0,re.Wf)(we)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-b+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${y}-btn`]:{[`& > ${x}-down, & > ${y}-btn-icon > ${x}-down`]:{fontSize:ge}},[`${be}-wrap`]:{position:"relative",[`${y}-btn > ${x}-down`]:{fontSize:ge},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${be}-wrap-open`]:{[`${x}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${y}-slide-down-enter${y}-slide-down-enter-active${be}-placement-bottomLeft,
&${y}-slide-down-appear${y}-slide-down-appear-active${be}-placement-bottomLeft,
&${y}-slide-down-enter${y}-slide-down-enter-active${be}-placement-bottom,
&${y}-slide-down-appear${y}-slide-down-appear-active${be}-placement-bottom,
&${y}-slide-down-enter${y}-slide-down-enter-active${be}-placement-bottomRight,
&${y}-slide-down-appear${y}-slide-down-appear-active${be}-placement-bottomRight`]:{animationName:de.fJ},[`&${y}-slide-up-enter${y}-slide-up-enter-active${be}-placement-topLeft,
&${y}-slide-up-appear${y}-slide-up-appear-active${be}-placement-topLeft,
&${y}-slide-up-enter${y}-slide-up-enter-active${be}-placement-top,
&${y}-slide-up-appear${y}-slide-up-appear-active${be}-placement-top,
&${y}-slide-up-enter${y}-slide-up-enter-active${be}-placement-topRight,
&${y}-slide-up-appear${y}-slide-up-appear-active${be}-placement-topRight`]:{animationName:de.Qt},[`&${y}-slide-down-leave${y}-slide-down-leave-active${be}-placement-bottomLeft,
&${y}-slide-down-leave${y}-slide-down-leave-active${be}-placement-bottom,
&${y}-slide-down-leave${y}-slide-down-leave-active${be}-placement-bottomRight`]:{animationName:de.Uw},[`&${y}-slide-up-leave${y}-slide-up-leave-active${be}-placement-topLeft,
&${y}-slide-up-leave${y}-slide-up-leave-active${be}-placement-top,
&${y}-slide-up-leave${y}-slide-up-leave-active${be}-placement-topRight`]:{animationName:de.ly}})},(0,he.ZP)(we,{colorBg:le,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${be} ${ne}`]:{position:"relative",margin:0},[`${ne}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${be}, ${be}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:oe,listStyleType:"none",backgroundColor:le,backgroundClip:"padding-box",borderRadius:we.borderRadiusLG,outline:"none",boxShadow:we.boxShadowSecondary},(0,re.Qy)(we)),{[`${ne}-item-group-title`]:{padding:`${ee}px ${me}px`,color:we.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:te,marginInlineEnd:we.marginXS,fontSize:we.fontSizeSM},[`${ne}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ne}-item, ${ne}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${me}px`,color:we.colorText,fontWeight:"normal",fontSize:te,lineHeight:we.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:we.borderRadiusSM,"&:hover, &-active":{backgroundColor:we.controlItemBgHover}},(0,re.Qy)(we)),{"&-selected":{color:we.colorPrimary,backgroundColor:we.controlItemBgActive,"&:hover, &-active":{backgroundColor:we.controlItemBgActiveHover}},"&-disabled":{color:ae,cursor:"not-allowed","&:hover":{color:ae,backgroundColor:le,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${we.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:we.colorSplit},[`${be}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:we.paddingXS,[`${be}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:we.colorTextDescription,fontSize:ge,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${we.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:me+we.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${be}-menu-submenu-title`]:{[`&, ${be}-menu-submenu-arrow-icon`]:{color:ae,backgroundColor:le,cursor:"not-allowed"}},[`${ne}-submenu-selected ${be}-menu-submenu-title`]:{color:we.colorPrimary}})}},[(0,de.oN)(we,"slide-up"),(0,de.oN)(we,"slide-down"),(0,Te.Fm)(we,"move-up"),(0,Te.Fm)(we,"move-down"),(0,Je._y)(we,"zoom-big")]]};var Ne=(0,ye.Z)("Dropdown",(we,be)=>{let{rootPrefixCls:ne}=be;const{marginXXS:a,sizePopupArrow:b,controlHeight:E,fontSize:y,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=we,oe=(E-y*x)/2,{dropdownArrowOffset:ae}=(0,he.fS)({contentRadius:te}),ge=(0,se.TS)(we,{menuCls:`${ee}-menu`,rootPrefixCls:ne,dropdownArrowDistance:b/2+a,dropdownArrowOffset:ae,dropdownPaddingVertical:oe,dropdownEdgeChildPadding:z});return[xe(ge),Be(ge)]},we=>({zIndexPopup:we.zIndexPopupBase+50}))},45818:function(De,et,ie){"use strict";ie.d(et,{D:function(){return z},Z:function(){return oe}});var re=ie(16378),de=ie(59301),Te={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=Te,he=ie(7657),ye=function(ge,me){return de.createElement(he.Z,(0,re.Z)({},ge,{ref:me,icon:Je}))},se=de.forwardRef(ye),Ge=se,Be=ie(33853),xe=ie(38819),Ne=ie(92310),we=ie.n(Ne),be=ie(2738),a=ae=>!isNaN(parseFloat(ae))&&isFinite(ae),b=ie(36355),E=ie(84966),y=function(ae,ge){var me={};for(var le in ae)Object.prototype.hasOwnProperty.call(ae,le)&&ge.indexOf(le)<0&&(me[le]=ae[le]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,le=Object.getOwnPropertySymbols(ae);Ce<le.length;Ce++)ge.indexOf(le[Ce])<0&&Object.prototype.propertyIsEnumerable.call(ae,le[Ce])&&(me[le[Ce]]=ae[le[Ce]]);return me};const x={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=de.createContext({}),ee=(()=>{let ae=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ae+=1,`${ge}${ae}`}})();var oe=de.forwardRef((ae,ge)=>{const{prefixCls:me,className:le,trigger:Ce,children:ze,defaultCollapsed:ot=!1,theme:nt="dark",style:gt={},collapsible:fe=!1,reverseArrow:$e=!1,width:Re=200,collapsedWidth:Me=80,zeroWidthTriggerStyle:Ke,breakpoint:Bt,onCollapse:Et,onBreakpoint:yt}=ae,Ht=y(ae,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Ee}=(0,de.useContext)(E.Gs),[Ae,Ze]=(0,de.useState)("collapsed"in ae?ae.collapsed:ot),[Pt,Qe]=(0,de.useState)(!1);(0,de.useEffect)(()=>{"collapsed"in ae&&Ze(ae.collapsed)},[ae.collapsed]);const st=(Fe,Le)=>{"collapsed"in ae||Ze(Fe),Et==null||Et(Fe,Le)},ue=(0,de.useRef)();ue.current=Fe=>{Qe(Fe.matches),yt==null||yt(Fe.matches),Ae!==Fe.matches&&st(Fe.matches,"responsive")},(0,de.useEffect)(()=>{function Fe(ve){return ue.current(ve)}let Le;if(typeof window!="undefined"){const{matchMedia:ve}=window;if(ve&&Bt&&Bt in x){Le=ve(`(max-width: ${x[Bt]})`);try{Le.addEventListener("change",Fe)}catch(_e){Le.addListener(Fe)}Fe(Le)}}return()=>{try{Le==null||Le.removeEventListener("change",Fe)}catch(ve){Le==null||Le.removeListener(Fe)}}},[Bt]),(0,de.useEffect)(()=>{const Fe=ee("ant-sider-");return Ee.addSider(Fe),()=>Ee.removeSider(Fe)},[]);const Ue=()=>{st(!Ae,"clickTrigger")},{getPrefixCls:Dt}=(0,de.useContext)(b.E_),Ot=()=>{const Fe=Dt("layout-sider",me),Le=(0,be.Z)(Ht,["collapsed"]),ve=Ae?Me:Re,_e=a(ve)?`${ve}px`:String(ve),je=parseFloat(String(Me||0))===0?de.createElement("span",{onClick:Ue,className:we()(`${Fe}-zero-width-trigger`,`${Fe}-zero-width-trigger-${$e?"right":"left"}`),style:Ke},Ce||de.createElement(Ge,null)):null,Ft={expanded:$e?de.createElement(xe.Z,null):de.createElement(Be.Z,null),collapsed:$e?de.createElement(Be.Z,null):de.createElement(xe.Z,null)}[Ae?"collapsed":"expanded"],xt=Ce!==null?je||de.createElement("div",{className:`${Fe}-trigger`,onClick:Ue,style:{width:_e}},Ce||Ft):null,Mt=Object.assign(Object.assign({},gt),{flex:`0 0 ${_e}`,maxWidth:_e,minWidth:_e,width:_e}),ht=we()(Fe,`${Fe}-${nt}`,{[`${Fe}-collapsed`]:!!Ae,[`${Fe}-has-trigger`]:fe&&Ce!==null&&!je,[`${Fe}-below`]:!!Pt,[`${Fe}-zero-width`]:parseFloat(_e)===0},le);return de.createElement("aside",Object.assign({className:ht},Le,{style:Mt,ref:ge}),de.createElement("div",{className:`${Fe}-children`},ze),fe||Pt&&je?xt:null)},zt=de.useMemo(()=>({siderCollapsed:Ae}),[Ae]);return de.createElement(z.Provider,{value:zt},Ot())})},44e3:function(De,et,ie){"use strict";var re=ie(84966),de=ie(45818);const Te=re.ZP;Te.Header=re.h4,Te.Footer=re.$_,Te.Content=re.VY,Te.Sider=de.Z,et.default=Te},84966:function(De,et,ie){"use strict";ie.d(et,{VY:function(){return z},$_:function(){return x},h4:function(){return y},Gs:function(){return be},ZP:function(){return ee}});var re=ie(65093),de=ie(92310),Te=ie.n(de),Je=ie(2738),he=ie(59301),ye=ie(36355),se=ie(83116),Be=te=>{const{componentCls:oe,bodyBg:ae,lightSiderBg:ge,lightTriggerBg:me,lightTriggerColor:le}=te;return{[`${oe}-sider-light`]:{background:ge,[`${oe}-sider-trigger`]:{color:le,background:me},[`${oe}-sider-zero-width-trigger`]:{color:le,background:me,border:`1px solid ${ae}`,borderInlineStart:0}}}};const xe=te=>{const{antCls:oe,componentCls:ae,colorText:ge,triggerColor:me,footerBg:le,triggerBg:Ce,headerHeight:ze,headerPadding:ot,headerColor:nt,footerPadding:gt,triggerHeight:fe,zeroTriggerHeight:$e,zeroTriggerWidth:Re,motionDurationMid:Me,motionDurationSlow:Ke,fontSize:Bt,borderRadius:Et,bodyBg:yt,headerBg:Ht,siderBg:Ee}=te;return{[ae]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:yt,"&, *":{boxSizing:"border-box"},[`&${ae}-has-sider`]:{flexDirection:"row",[`> ${ae}, > ${ae}-content`]:{width:0}},[`${ae}-header, &${ae}-footer`]:{flex:"0 0 auto"},[`${ae}-sider`]:{position:"relative",minWidth:0,background:Ee,transition:`all ${Me}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:fe},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:fe,color:me,lineHeight:`${fe}px`,textAlign:"center",background:Ce,cursor:"pointer",transition:`all ${Me}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:ze,insetInlineEnd:-Re,zIndex:1,width:Re,height:$e,color:me,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ee,borderStartStartRadius:0,borderStartEndRadius:Et,borderEndEndRadius:Et,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ke} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ke}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Re,borderStartStartRadius:Et,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Et}}}}},Be(te)),{"&-rtl":{direction:"rtl"}}),[`${ae}-header`]:{height:ze,padding:ot,color:nt,lineHeight:`${ze}px`,background:Ht,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${ae}-footer`]:{padding:gt,color:ge,fontSize:Bt,background:le},[`${ae}-content`]:{flex:"auto",minHeight:0}}};var Ne=(0,se.Z)("Layout",te=>[xe(te)],te=>{const{colorBgLayout:oe,controlHeight:ae,controlHeightLG:ge,colorText:me,controlHeightSM:le,marginXXS:Ce,colorTextLightSolid:ze,colorBgContainer:ot}=te,nt=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:ae*2,headerPadding:`0 ${nt}px`,headerColor:me,footerPadding:`${le}px ${nt}px`,footerBg:oe,siderBg:"#001529",triggerHeight:ge+Ce*2,triggerBg:"#002140",triggerColor:ze,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:ot,lightTriggerBg:ot,lightTriggerColor:me}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),we=function(te,oe){var ae={};for(var ge in te)Object.prototype.hasOwnProperty.call(te,ge)&&oe.indexOf(ge)<0&&(ae[ge]=te[ge]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,ge=Object.getOwnPropertySymbols(te);me<ge.length;me++)oe.indexOf(ge[me])<0&&Object.prototype.propertyIsEnumerable.call(te,ge[me])&&(ae[ge[me]]=te[ge[me]]);return ae};const be=he.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(te){let{suffixCls:oe,tagName:ae,displayName:ge}=te;return me=>he.forwardRef((Ce,ze)=>he.createElement(me,Object.assign({ref:ze,suffixCls:oe,tagName:ae},Ce)))}const a=he.forwardRef((te,oe)=>{const{prefixCls:ae,suffixCls:ge,className:me,tagName:le}=te,Ce=we(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ze}=he.useContext(ye.E_),ot=ze("layout",ae),[nt,gt]=Ne(ot),fe=ge?`${ot}-${ge}`:ot;return nt(he.createElement(le,Object.assign({className:Te()(ae||fe,me,gt),ref:oe},Ce)))}),b=he.forwardRef((te,oe)=>{const{direction:ae}=he.useContext(ye.E_),[ge,me]=he.useState([]),{prefixCls:le,className:Ce,rootClassName:ze,children:ot,hasSider:nt,tagName:gt,style:fe}=te,$e=we(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Re=(0,Je.Z)($e,["suffixCls"]),{getPrefixCls:Me,layout:Ke}=he.useContext(ye.E_),Bt=Me("layout",le),[Et,yt]=Ne(Bt),Ht=Te()(Bt,{[`${Bt}-has-sider`]:typeof nt=="boolean"?nt:ge.length>0,[`${Bt}-rtl`]:ae==="rtl"},Ke==null?void 0:Ke.className,Ce,ze,yt),Ee=he.useMemo(()=>({siderHook:{addSider:Ae=>{me(Ze=>[].concat((0,re.Z)(Ze),[Ae]))},removeSider:Ae=>{me(Ze=>Ze.filter(Pt=>Pt!==Ae))}}}),[]);return Et(he.createElement(be.Provider,{value:Ee},he.createElement(gt,Object.assign({ref:oe,className:Ht,style:Object.assign(Object.assign({},Ke==null?void 0:Ke.style),fe)},Re),ot)))}),E=ne({tagName:"div",displayName:"Layout"})(b),y=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},40875:function(De,et,ie){"use strict";ie.d(et,{J:function(){return ye}});var re=ie(59301),de=ie(33234),Te=ie(70425),Je=function(se,Ge){var Be={};for(var xe in se)Object.prototype.hasOwnProperty.call(se,xe)&&Ge.indexOf(xe)<0&&(Be[xe]=se[xe]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,xe=Object.getOwnPropertySymbols(se);Ne<xe.length;Ne++)Ge.indexOf(xe[Ne])<0&&Object.prototype.propertyIsEnumerable.call(se,xe[Ne])&&(Be[xe[Ne]]=se[xe[Ne]]);return Be};const he=re.createContext(null),ye=re.forwardRef((se,Ge)=>{const{children:Be}=se,xe=Je(se,["children"]),Ne=re.useContext(he),we=re.useMemo(()=>Object.assign(Object.assign({},Ne),xe),[Ne,xe.prefixCls,xe.mode,xe.selectable]);return re.createElement(he.Provider,{value:we},re.createElement(de.BR,null,(0,Te.supportNodeRef)(Be)?re.cloneElement(Be,{ref:Ge}):Be))});et.Z=he},20834:function(De,et,ie){"use strict";ie.d(et,{default:function(){return zt}});var re=ie(15285),de=ie(59301),Te=ie(45818),Je=ie(92310),he=ie.n(Je),ye=ie(36355),se=function(Fe,Le){var ve={};for(var _e in Fe)Object.prototype.hasOwnProperty.call(Fe,_e)&&Le.indexOf(_e)<0&&(ve[_e]=Fe[_e]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,_e=Object.getOwnPropertySymbols(Fe);je<_e.length;je++)Le.indexOf(_e[je])<0&&Object.prototype.propertyIsEnumerable.call(Fe,_e[je])&&(ve[_e[je]]=Fe[_e[je]]);return ve},Be=Fe=>{const{prefixCls:Le,className:ve,dashed:_e}=Fe,je=se(Fe,["prefixCls","className","dashed"]),{getPrefixCls:ut}=de.useContext(ye.E_),vt=ut("menu",Le),Ft=he()({[`${vt}-item-divider-dashed`]:!!_e},ve);return de.createElement(re.iz,Object.assign({className:Ft},je))},xe=ie(11592),Ne=ie(2738),we=ie(6848),be=ie(92343),a=(0,de.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Fe=>{var Le;const{className:ve,children:_e,icon:je,title:ut,danger:vt}=Fe,{prefixCls:Ft,firstLevel:xt,direction:Mt,disableMenuItemTitleTooltip:ht,inlineCollapsed:Nt}=de.useContext(a),Qt=Pn=>{const bn=de.createElement("span",{className:`${Ft}-title-content`},_e);return(!je||(0,be.l$)(_e)&&_e.type==="span")&&_e&&Pn&&xt&&typeof _e=="string"?de.createElement("div",{className:`${Ft}-inline-collapsed-noicon`},_e.charAt(0)):bn},{siderCollapsed:mn}=de.useContext(Te.D);let gn=ut;typeof ut=="undefined"?gn=xt?_e:"":ut===!1&&(gn="");const Vt={title:gn};!mn&&!Nt&&(Vt.title=null,Vt.open=!1);const tn=(0,xe.Z)(_e).length;let nn=de.createElement(re.ck,Object.assign({},(0,Ne.Z)(Fe,["title","icon","danger"]),{className:he()({[`${Ft}-item-danger`]:vt,[`${Ft}-item-only-child`]:(je?tn+1:tn)===1},ve),title:typeof ut=="string"?ut:void 0}),(0,be.Tm)(je,{className:he()((0,be.l$)(je)?(Le=je.props)===null||Le===void 0?void 0:Le.className:"",`${Ft}-item-icon`)}),Qt(Nt));return ht||(nn=de.createElement(we.Z,Object.assign({},Vt,{placement:Mt==="rtl"?"left":"right",overlayClassName:`${Ft}-inline-collapsed-tooltip`}),nn)),nn},x=Fe=>{var Le;const{popupClassName:ve,icon:_e,title:je,theme:ut}=Fe,vt=de.useContext(a),{prefixCls:Ft,inlineCollapsed:xt,theme:Mt}=vt,ht=(0,re.Xl)();let Nt;if(!_e)Nt=xt&&!ht.length&&je&&typeof je=="string"?de.createElement("div",{className:`${Ft}-inline-collapsed-noicon`},je.charAt(0)):de.createElement("span",{className:`${Ft}-title-content`},je);else{const mn=(0,be.l$)(je)&&je.type==="span";Nt=de.createElement(de.Fragment,null,(0,be.Tm)(_e,{className:he()((0,be.l$)(_e)?(Le=_e.props)===null||Le===void 0?void 0:Le.className:"",`${Ft}-item-icon`)}),mn?je:de.createElement("span",{className:`${Ft}-title-content`},je))}const Qt=de.useMemo(()=>Object.assign(Object.assign({},vt),{firstLevel:!1}),[vt]);return de.createElement(a.Provider,{value:Qt},de.createElement(re.Wd,Object.assign({},(0,Ne.Z)(Fe,["icon"]),{title:Nt,popupClassName:he()(Ft,ve,`${Ft}-${ut||Mt}`)})))},z=ie(18785),ee=ie(70425),te=ie(62892),oe=ie(40875),ae=function(Fe,Le){var ve={};for(var _e in Fe)Object.prototype.hasOwnProperty.call(Fe,_e)&&Le.indexOf(_e)<0&&(ve[_e]=Fe[_e]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,_e=Object.getOwnPropertySymbols(Fe);je<_e.length;je++)Le.indexOf(_e[je])<0&&Object.prototype.propertyIsEnumerable.call(Fe,_e[je])&&(ve[_e[je]]=Fe[_e[je]]);return ve};function ge(Fe){return(Fe||[]).map((Le,ve)=>{if(Le&&typeof Le=="object"){const _e=Le,{label:je,children:ut,key:vt,type:Ft}=_e,xt=ae(_e,["label","children","key","type"]),Mt=vt!=null?vt:`tmp-${ve}`;return ut||Ft==="group"?Ft==="group"?de.createElement(re.BW,Object.assign({key:Mt},xt,{title:je}),ge(ut)):de.createElement(x,Object.assign({key:Mt},xt,{title:je}),ge(ut)):Ft==="divider"?de.createElement(Be,Object.assign({key:Mt},xt)):de.createElement(E,Object.assign({key:Mt},xt),je)}return null}).filter(Le=>Le)}function me(Fe){return de.useMemo(()=>Fe&&ge(Fe),[Fe])}var le=ie(64993),Ce=ie(17313),ze=ie(8378),ot=ie(13826),nt=ie(29878),gt=ie(83116),fe=ie(37613),Re=Fe=>{const{componentCls:Le,motionDurationSlow:ve,horizontalLineHeight:_e,colorSplit:je,lineWidth:ut,lineType:vt,itemPaddingInline:Ft}=Fe;return{[`${Le}-horizontal`]:{lineHeight:_e,border:0,borderBottom:`${ut}px ${vt} ${je}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Le}-item, ${Le}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ft},[`> ${Le}-item:hover,
> ${Le}-item-active,
> ${Le}-submenu ${Le}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Le}-item, ${Le}-submenu-title`]:{transition:[`border-color ${ve}`,`background ${ve}`].join(",")},[`${Le}-submenu-arrow`]:{display:"none"}}}},Ke=Fe=>{let{componentCls:Le,menuArrowOffset:ve}=Fe;return{[`${Le}-rtl`]:{direction:"rtl"},[`${Le}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Le}-rtl${Le}-vertical,
${Le}-submenu-rtl ${Le}-vertical`]:{[`${Le}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${ve})`},"&::after":{transform:`rotate(45deg) translateY(${ve})`}}}}};const Bt=Fe=>Object.assign({},(0,Ce.oN)(Fe));var yt=(Fe,Le)=>{const{componentCls:ve,itemColor:_e,itemSelectedColor:je,groupTitleColor:ut,itemBg:vt,subMenuItemBg:Ft,itemSelectedBg:xt,activeBarHeight:Mt,activeBarWidth:ht,activeBarBorderWidth:Nt,motionDurationSlow:Qt,motionEaseInOut:mn,motionEaseOut:gn,itemPaddingInline:Vt,motionDurationMid:tn,itemHoverColor:nn,lineType:Pn,colorSplit:bn,itemDisabledColor:wn,dangerItemColor:Dn,dangerItemHoverColor:Fn,dangerItemSelectedColor:$n,dangerItemActiveBg:on,dangerItemSelectedBg:xn,itemHoverBg:kn,itemActiveBg:jn,menuSubMenuBg:Qn,horizontalItemSelectedColor:Un,horizontalItemSelectedBg:Yn,horizontalItemBorderRadius:oa,horizontalItemHoverBg:Zn,popupBg:qn}=Fe;return{[`${ve}-${Le}, ${ve}-${Le} > ${ve}`]:{color:_e,background:vt,[`&${ve}-root:focus-visible`]:Object.assign({},Bt(Fe)),[`${ve}-item-group-title`]:{color:ut},[`${ve}-submenu-selected`]:{[`> ${ve}-submenu-title`]:{color:je}},[`${ve}-item-disabled, ${ve}-submenu-disabled`]:{color:`${wn} !important`},[`${ve}-item:not(${ve}-item-selected):not(${ve}-submenu-selected)`]:{[`&:hover, > ${ve}-submenu-title:hover`]:{color:nn}},[`&:not(${ve}-horizontal)`]:{[`${ve}-item:not(${ve}-item-selected)`]:{"&:hover":{backgroundColor:kn},"&:active":{backgroundColor:jn}},[`${ve}-submenu-title`]:{"&:hover":{backgroundColor:kn},"&:active":{backgroundColor:jn}}},[`${ve}-item-danger`]:{color:Dn,[`&${ve}-item:hover`]:{[`&:not(${ve}-item-selected):not(${ve}-submenu-selected)`]:{color:Fn}},[`&${ve}-item:active`]:{background:on}},[`${ve}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ve}-item-selected`]:{color:je,[`&${ve}-item-danger`]:{color:$n},"a, a:hover":{color:"inherit"}},[`& ${ve}-item-selected`]:{backgroundColor:xt,[`&${ve}-item-danger`]:{backgroundColor:xn}},[`${ve}-item, ${ve}-submenu-title`]:{[`&:not(${ve}-item-disabled):focus-visible`]:Object.assign({},Bt(Fe))},[`&${ve}-submenu > ${ve}`]:{backgroundColor:Qn},[`&${ve}-popup > ${ve}`]:{backgroundColor:qn},[`&${ve}-horizontal`]:Object.assign(Object.assign({},Le==="dark"?{borderBottom:0}:{}),{[`> ${ve}-item, > ${ve}-submenu`]:{top:Nt,marginTop:-Nt,marginBottom:0,borderRadius:oa,"&::after":{position:"absolute",insetInline:Vt,bottom:0,borderBottom:`${Mt}px solid transparent`,transition:`border-color ${Qt} ${mn}`,content:'""'},"&:hover, &-active, &-open":{background:Zn,"&::after":{borderBottomWidth:Mt,borderBottomColor:Un}},"&-selected":{color:Un,backgroundColor:Yn,"&:hover":{backgroundColor:Yn},"&::after":{borderBottomWidth:Mt,borderBottomColor:Un}}}}),[`&${ve}-root`]:{[`&${ve}-inline, &${ve}-vertical`]:{borderInlineEnd:`${Nt}px ${Pn} ${bn}`}},[`&${ve}-inline`]:{[`${ve}-sub${ve}-inline`]:{background:Ft},[`${ve}-item, ${ve}-submenu-title`]:Nt&&ht?{width:`calc(100% + ${Nt}px)`}:{},[`${ve}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ht}px solid ${je}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${tn} ${gn}`,`opacity ${tn} ${gn}`].join(","),content:'""'},[`&${ve}-item-danger`]:{"&::after":{borderInlineEndColor:$n}}},[`${ve}-selected, ${ve}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${tn} ${mn}`,`opacity ${tn} ${mn}`].join(",")}}}}}};const Ht=Fe=>{const{componentCls:Le,itemHeight:ve,itemMarginInline:_e,padding:je,menuArrowSize:ut,marginXS:vt,itemMarginBlock:Ft}=Fe,xt=je+ut+vt;return{[`${Le}-item`]:{position:"relative",overflow:"hidden"},[`${Le}-item, ${Le}-submenu-title`]:{height:ve,lineHeight:`${ve}px`,paddingInline:je,overflow:"hidden",textOverflow:"ellipsis",marginInline:_e,marginBlock:Ft,width:`calc(100% - ${_e*2}px)`},[`> ${Le}-item,
> ${Le}-submenu > ${Le}-submenu-title`]:{height:ve,lineHeight:`${ve}px`},[`${Le}-item-group-list ${Le}-submenu-title,
${Le}-submenu-title`]:{paddingInlineEnd:xt}}};var Ae=Fe=>{const{componentCls:Le,iconCls:ve,itemHeight:_e,colorTextLightSolid:je,dropdownWidth:ut,controlHeightLG:vt,motionDurationMid:Ft,motionEaseOut:xt,paddingXL:Mt,itemMarginInline:ht,fontSizeLG:Nt,motionDurationSlow:Qt,paddingXS:mn,boxShadowSecondary:gn,collapsedWidth:Vt,collapsedIconSize:tn}=Fe,nn={height:_e,lineHeight:`${_e}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Le]:{"&-inline, &-vertical":Object.assign({[`&${Le}-root`]:{boxShadow:"none"}},Ht(Fe))},[`${Le}-submenu-popup`]:{[`${Le}-vertical`]:Object.assign(Object.assign({},Ht(Fe)),{boxShadow:gn})}},{[`${Le}-submenu-popup ${Le}-vertical${Le}-sub`]:{minWidth:ut,maxHeight:`calc(100vh - ${vt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Le}-inline`]:{width:"100%",[`&${Le}-root`]:{[`${Le}-item, ${Le}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Qt}`,`background ${Qt}`,`padding ${Ft} ${xt}`].join(","),[`> ${Le}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Le}-sub${Le}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Le}-submenu > ${Le}-submenu-title`]:nn,[`& ${Le}-item-group-title`]:{paddingInlineStart:Mt}},[`${Le}-item`]:nn}},{[`${Le}-inline-collapsed`]:{width:Vt,[`&${Le}-root`]:{[`${Le}-item, ${Le}-submenu ${Le}-submenu-title`]:{[`> ${Le}-inline-collapsed-noicon`]:{fontSize:Nt,textAlign:"center"}}},[`> ${Le}-item,
> ${Le}-item-group > ${Le}-item-group-list > ${Le}-item,
> ${Le}-item-group > ${Le}-item-group-list > ${Le}-submenu > ${Le}-submenu-title,
> ${Le}-submenu > ${Le}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Nt/2}px - ${ht}px)`,textOverflow:"clip",[`
${Le}-submenu-arrow,
${Le}-submenu-expand-icon
`]:{opacity:0},[`${Le}-item-icon, ${ve}`]:{margin:0,fontSize:tn,lineHeight:`${_e}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Le}-item-icon, ${ve}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Le}-item-icon, ${ve}`]:{display:"none"},"a, a:hover":{color:je}},[`${Le}-item-group-title`]:Object.assign(Object.assign({},Ce.vS),{paddingInline:mn})}}]};const Ze=Fe=>{const{componentCls:Le,motionDurationSlow:ve,motionDurationMid:_e,motionEaseInOut:je,motionEaseOut:ut,iconCls:vt,iconSize:Ft,iconMarginInlineEnd:xt}=Fe;return{[`${Le}-item, ${Le}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ve}`,`background ${ve}`,`padding ${ve} ${je}`].join(","),[`${Le}-item-icon, ${vt}`]:{minWidth:Ft,fontSize:Ft,transition:[`font-size ${_e} ${ut}`,`margin ${ve} ${je}`,`color ${ve}`].join(","),"+ span":{marginInlineStart:xt,opacity:1,transition:[`opacity ${ve} ${je}`,`margin ${ve}`,`color ${ve}`].join(",")}},[`${Le}-item-icon`]:Object.assign({},(0,Ce.Ro)()),[`&${Le}-item-only-child`]:{[`> ${vt}, > ${Le}-item-icon`]:{marginInlineEnd:0}}},[`${Le}-item-disabled, ${Le}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Le}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Pt=Fe=>{const{componentCls:Le,motionDurationSlow:ve,motionEaseInOut:_e,borderRadius:je,menuArrowSize:ut,menuArrowOffset:vt}=Fe;return{[`${Le}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Fe.margin,width:ut,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ve} ${_e}, opacity ${ve}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ut*.6,height:ut*.15,backgroundColor:"currentcolor",borderRadius:je,transition:[`background ${ve} ${_e}`,`transform ${ve} ${_e}`,`top ${ve} ${_e}`,`color ${ve} ${_e}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${vt})`},"&::after":{transform:`rotate(-45deg) translateY(${vt})`}}}}},Qe=Fe=>{const{antCls:Le,componentCls:ve,fontSize:_e,motionDurationSlow:je,motionDurationMid:ut,motionEaseInOut:vt,paddingXS:Ft,padding:xt,colorSplit:Mt,lineWidth:ht,zIndexPopup:Nt,borderRadiusLG:Qt,subMenuItemBorderRadius:mn,menuArrowSize:gn,menuArrowOffset:Vt,lineType:tn,menuPanelMaskInset:nn,groupTitleLineHeight:Pn,groupTitleFontSize:bn}=Fe;return[{"":{[`${ve}`]:Object.assign(Object.assign({},(0,Ce.dF)()),{"&-hidden":{display:"none"}})},[`${ve}-submenu-hidden`]:{display:"none"}},{[ve]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ce.Wf)(Fe)),(0,Ce.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:_e,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${je} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ve}-item`]:{flex:"none"}},[`${ve}-item, ${ve}-submenu, ${ve}-submenu-title`]:{borderRadius:Fe.itemBorderRadius},[`${ve}-item-group-title`]:{padding:`${Ft}px ${xt}px`,fontSize:bn,lineHeight:Pn,transition:`all ${je}`},[`&-horizontal ${ve}-submenu`]:{transition:[`border-color ${je} ${vt}`,`background ${je} ${vt}`].join(",")},[`${ve}-submenu, ${ve}-submenu-inline`]:{transition:[`border-color ${je} ${vt}`,`background ${je} ${vt}`,`padding ${ut} ${vt}`].join(",")},[`${ve}-submenu ${ve}-sub`]:{cursor:"initial",transition:[`background ${je} ${vt}`,`padding ${je} ${vt}`].join(",")},[`${ve}-title-content`]:{transition:`color ${je}`},[`${ve}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ve}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Mt,borderStyle:tn,borderWidth:0,borderTopWidth:ht,marginBlock:ht,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ze(Fe)),{[`${ve}-item-group`]:{[`${ve}-item-group-list`]:{margin:0,padding:0,[`${ve}-item, ${ve}-submenu-title`]:{paddingInline:`${_e*2}px ${xt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Nt,borderRadius:Qt,boxShadow:"none",transformOrigin:"0 0",[`&${ve}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${nn}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:nn},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:Fe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Fe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Fe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Fe.paddingXS},[`> ${ve}`]:Object.assign(Object.assign(Object.assign({borderRadius:Qt},Ze(Fe)),Pt(Fe)),{[`${ve}-item, ${ve}-submenu > ${ve}-submenu-title`]:{borderRadius:mn},[`${ve}-submenu-title::after`]:{transition:`transform ${je} ${vt}`}})}}),Pt(Fe)),{[`&-inline-collapsed ${ve}-submenu-arrow,
&-inline ${ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Vt})`},"&::after":{transform:`rotate(45deg) translateX(-${Vt})`}},[`${ve}-submenu-open${ve}-submenu-inline > ${ve}-submenu-title > ${ve}-submenu-arrow`]:{transform:`translateY(-${gn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Vt})`},"&::before":{transform:`rotate(45deg) translateX(${Vt})`}}})},{[`${Le}-layout-header`]:{[ve]:{lineHeight:"inherit"}}}]};var st=(Fe,Le)=>(0,gt.Z)("Menu",_e=>{if(Le===!1)return[];const{colorBgElevated:je,colorPrimary:ut,colorTextLightSolid:vt,controlHeightLG:Ft,fontSize:xt,darkItemColor:Mt,darkDangerItemColor:ht,darkItemBg:Nt,darkSubMenuItemBg:Qt,darkItemSelectedColor:mn,darkItemSelectedBg:gn,darkDangerItemSelectedBg:Vt,darkItemHoverBg:tn,darkGroupTitleColor:nn,darkItemHoverColor:Pn,darkItemDisabledColor:bn,darkDangerItemHoverColor:wn,darkDangerItemSelectedColor:Dn,darkDangerItemActiveBg:Fn}=_e,$n=xt/7*5,on=(0,fe.TS)(_e,{menuArrowSize:$n,menuHorizontalHeight:Ft*1.15,menuArrowOffset:`${$n*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:je}),xn=(0,fe.TS)(on,{itemColor:Mt,itemHoverColor:Pn,groupTitleColor:nn,itemSelectedColor:mn,itemBg:Nt,popupBg:Nt,subMenuItemBg:Qt,itemActiveBg:"transparent",itemSelectedBg:gn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:tn,itemDisabledColor:bn,dangerItemColor:ht,dangerItemHoverColor:wn,dangerItemSelectedColor:Dn,dangerItemActiveBg:Fn,dangerItemSelectedBg:Vt,menuSubMenuBg:Qt,horizontalItemSelectedColor:vt,horizontalItemSelectedBg:ut});return[Qe(on),Re(on),Ae(on),yt(on,"light"),yt(xn,"dark"),Ke(on),(0,ze.Z)(on),(0,ot.oN)(on,"slide-up"),(0,ot.oN)(on,"slide-down"),(0,nt._y)(on,"zoom-big")]},_e=>{const{colorPrimary:je,colorError:ut,colorTextDisabled:vt,colorErrorBg:Ft,colorText:xt,colorTextDescription:Mt,colorBgContainer:ht,colorFillAlter:Nt,colorFillContent:Qt,lineWidth:mn,lineWidthBold:gn,controlItemBgActive:Vt,colorBgTextHover:tn,controlHeightLG:nn,lineHeight:Pn,colorBgElevated:bn,marginXXS:wn,padding:Dn,fontSize:Fn,controlHeightSM:$n,fontSizeLG:on,colorTextLightSolid:xn,colorErrorHover:kn}=_e,jn=new le.C(xn).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:_e.zIndexPopupBase+50,radiusItem:_e.borderRadiusLG,itemBorderRadius:_e.borderRadiusLG,radiusSubMenuItem:_e.borderRadiusSM,subMenuItemBorderRadius:_e.borderRadiusSM,colorItemText:xt,itemColor:xt,colorItemTextHover:xt,itemHoverColor:xt,colorItemTextHoverHorizontal:je,horizontalItemHoverColor:je,colorGroupTitle:Mt,groupTitleColor:Mt,colorItemTextSelected:je,itemSelectedColor:je,colorItemTextSelectedHorizontal:je,horizontalItemSelectedColor:je,colorItemBg:ht,itemBg:ht,colorItemBgHover:tn,itemHoverBg:tn,colorItemBgActive:Qt,itemActiveBg:Vt,colorSubItemBg:Nt,subMenuItemBg:Nt,colorItemBgSelected:Vt,itemSelectedBg:Vt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:gn,activeBarHeight:gn,colorActiveBarBorderSize:mn,activeBarBorderWidth:mn,colorItemTextDisabled:vt,itemDisabledColor:vt,colorDangerItemText:ut,dangerItemColor:ut,colorDangerItemTextHover:ut,dangerItemHoverColor:ut,colorDangerItemTextSelected:ut,dangerItemSelectedColor:ut,colorDangerItemBgActive:Ft,dangerItemActiveBg:Ft,colorDangerItemBgSelected:Ft,dangerItemSelectedBg:Ft,itemMarginInline:_e.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:nn,groupTitleLineHeight:Pn,collapsedWidth:nn*2,popupBg:bn,itemMarginBlock:wn,itemPaddingInline:Dn,horizontalLineHeight:`${nn*1.15}px`,iconSize:Fn,iconMarginInlineEnd:$n-Fn,collapsedIconSize:on,groupTitleFontSize:Fn,darkItemDisabledColor:new le.C(xn).setAlpha(.25).toRgbString(),darkItemColor:jn,darkDangerItemColor:ut,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:xn,darkItemSelectedBg:je,darkDangerItemSelectedBg:ut,darkItemHoverBg:"transparent",darkGroupTitleColor:jn,darkItemHoverColor:xn,darkDangerItemHoverColor:kn,darkDangerItemSelectedColor:xn,darkDangerItemActiveBg:ut}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(Fe),ue=function(Fe,Le){var ve={};for(var _e in Fe)Object.prototype.hasOwnProperty.call(Fe,_e)&&Le.indexOf(_e)<0&&(ve[_e]=Fe[_e]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,_e=Object.getOwnPropertySymbols(Fe);je<_e.length;je++)Le.indexOf(_e[je])<0&&Object.prototype.propertyIsEnumerable.call(Fe,_e[je])&&(ve[_e[je]]=Fe[_e[je]]);return ve},Dt=(0,de.forwardRef)((Fe,Le)=>{var ve,_e;const je=de.useContext(oe.Z),ut=je||{},{getPrefixCls:vt,getPopupContainer:Ft,direction:xt,menu:Mt}=de.useContext(ye.E_),ht=vt(),{prefixCls:Nt,className:Qt,style:mn,theme:gn="light",expandIcon:Vt,_internalDisableMenuItemTitleTooltip:tn,inlineCollapsed:nn,siderCollapsed:Pn,items:bn,children:wn,rootClassName:Dn,mode:Fn,selectable:$n,onClick:on,overflowedIndicatorPopupClassName:xn}=Fe,kn=ue(Fe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),jn=(0,Ne.Z)(kn,["collapsedWidth"]),Qn=me(bn)||wn;(ve=ut.validator)===null||ve===void 0||ve.call(ut,{mode:Fn});const Un=(0,ee.useEvent)(function(){var rt;on==null||on.apply(void 0,arguments),(rt=ut.onClick)===null||rt===void 0||rt.call(ut)}),Yn=ut.mode||Fn,oa=$n!=null?$n:ut.selectable,Zn=de.useMemo(()=>Pn!==void 0?Pn:nn,[nn,Pn]),qn={horizontal:{motionName:`${ht}-slide-up`},inline:(0,te.Z)(ht),other:{motionName:`${ht}-zoom-big`}},Gn=vt("menu",Nt||ut.prefixCls),[ra,da]=st(Gn,!je),pe=he()(`${Gn}-${gn}`,Mt==null?void 0:Mt.className,Qt);let He;if(typeof Vt=="function")He=Vt;else if(Vt===null||Vt===!1)He=null;else if(ut.expandIcon===null||ut.expandIcon===!1)He=null;else{const rt=Vt!=null?Vt:ut.expandIcon;He=(0,be.Tm)(rt,{className:he()(`${Gn}-submenu-expand-icon`,(0,be.l$)(rt)?(_e=rt.props)===null||_e===void 0?void 0:_e.className:"")})}const Ye=de.useMemo(()=>({prefixCls:Gn,inlineCollapsed:Zn||!1,direction:xt,firstLevel:!0,theme:gn,mode:Yn,disableMenuItemTitleTooltip:tn}),[Gn,Zn,xt,tn,gn]);return ra(de.createElement(oe.Z.Provider,{value:null},de.createElement(a.Provider,{value:Ye},de.createElement(re.ZP,Object.assign({getPopupContainer:Ft,overflowedIndicator:de.createElement(z.Z,null),overflowedIndicatorPopupClassName:he()(Gn,`${Gn}-${gn}`,xn),mode:Yn,selectable:oa,onClick:Un},jn,{inlineCollapsed:Zn,style:Object.assign(Object.assign({},Mt==null?void 0:Mt.style),mn),className:pe,prefixCls:Gn,direction:xt,defaultMotions:qn,expandIcon:He,ref:Le,rootClassName:he()(Dn,da)}),Qn))))});const Ot=(0,de.forwardRef)((Fe,Le)=>{const ve=(0,de.useRef)(null),_e=de.useContext(Te.D);return(0,de.useImperativeHandle)(Le,()=>({menu:ve.current,focus:je=>{var ut;(ut=ve.current)===null||ut===void 0||ut.focus(je)}})),de.createElement(Dt,Object.assign({ref:ve},Fe,_e))});Ot.Item=E,Ot.SubMenu=x,Ot.Divider=Be,Ot.ItemGroup=re.BW;var zt=Ot},90782:function(De,et,ie){"use strict";ie.d(et,{S:function(){return se}});var re=ie(48736),de=ie(67841);function Te(Ge,Be){var xe=new Set;return Ge.forEach(function(Ne){Be.has(Ne)||xe.add(Ne)}),xe}function Je(Ge){var Be=Ge||{},xe=Be.disabled,Ne=Be.disableCheckbox,we=Be.checkable;return!!(xe||Ne)||we===!1}function he(Ge,Be,xe,Ne){for(var we=new Set(Ge),be=new Set,ne=0;ne<=xe;ne+=1){var a=Be.get(ne)||new Set;a.forEach(function(x){var z=x.key,ee=x.node,te=x.children,oe=te===void 0?[]:te;we.has(z)&&!Ne(ee)&&oe.filter(function(ae){return!Ne(ae.node)}).forEach(function(ae){we.add(ae.key)})})}for(var b=new Set,E=xe;E>=0;E-=1){var y=Be.get(E)||new Set;y.forEach(function(x){var z=x.parent,ee=x.node;if(!(Ne(ee)||!x.parent||b.has(x.parent.key))){if(Ne(x.parent.node)){b.add(z.key);return}var te=!0,oe=!1;(z.children||[]).filter(function(ae){return!Ne(ae.node)}).forEach(function(ae){var ge=ae.key,me=we.has(ge);te&&!me&&(te=!1),!oe&&(me||be.has(ge))&&(oe=!0)}),te&&we.add(z.key),oe&&be.add(z.key),b.add(z.key)}})}return{checkedKeys:Array.from(we),halfCheckedKeys:Array.from(Te(be,we))}}function ye(Ge,Be,xe,Ne,we){for(var be=new Set(Ge),ne=new Set(Be),a=0;a<=Ne;a+=1){var b=xe.get(a)||new Set;b.forEach(function(z){var ee=z.key,te=z.node,oe=z.children,ae=oe===void 0?[]:oe;!be.has(ee)&&!ne.has(ee)&&!we(te)&&ae.filter(function(ge){return!we(ge.node)}).forEach(function(ge){be.delete(ge.key)})})}ne=new Set;for(var E=new Set,y=Ne;y>=0;y-=1){var x=xe.get(y)||new Set;x.forEach(function(z){var ee=z.parent,te=z.node;if(!(we(te)||!z.parent||E.has(z.parent.key))){if(we(z.parent.node)){E.add(ee.key);return}var oe=!0,ae=!1;(ee.children||[]).filter(function(ge){return!we(ge.node)}).forEach(function(ge){var me=ge.key,le=be.has(me);oe&&!le&&(oe=!1),!ae&&(le||ne.has(me))&&(ae=!0)}),oe||be.delete(ee.key),ae&&ne.add(ee.key),E.add(ee.key)}})}return{checkedKeys:Array.from(be),halfCheckedKeys:Array.from(Te(ne,be))}}function se(Ge,Be,xe,Ne){var we=[],be;Ne?be=Ne:be=Je;var ne=new Set(Ge.filter(function(y){var x=!!(0,de.Z)(xe,y);return x||we.push(y),x})),a=new Map,b=0;Object.keys(xe).forEach(function(y){var x=xe[y],z=x.level,ee=a.get(z);ee||(ee=new Set,a.set(z,ee)),ee.add(x),b=Math.max(b,z)}),(0,re.ZP)(!we.length,"Tree missing follow keys: ".concat(we.slice(0,100).map(function(y){return"'".concat(y,"'")}).join(", ")));var E;return Be===!0?E=he(ne,a,b,be):E=ye(ne,Be.halfCheckedKeys,a,b,be),E}},67841:function(De,et,ie){"use strict";ie.d(et,{Z:function(){return re}});function re(de,Te){return de[Te]}},71430:function(De,et,ie){"use strict";ie.d(et,{F:function(){return z},H8:function(){return x},I8:function(){return y},km:function(){return we},oH:function(){return b},w$:function(){return be},zn:function(){return a}});var re=ie(42066),de=ie(65093),Te=ie(35227),Je=ie(61206),he=ie(11592),ye=ie(2738),se=ie(48736),Ge=ie(67841),Be=["children"];function xe(ee,te){return"".concat(ee,"-").concat(te)}function Ne(ee){return ee&&ee.type&&ee.type.isTreeNode}function we(ee,te){return ee!=null?ee:te}function be(ee){var te=ee||{},oe=te.title,ae=te._title,ge=te.key,me=te.children,le=oe||"title";return{title:le,_title:ae||[le],key:ge||"key",children:me||"children"}}function ne(ee,te){var oe=new Map;function ae(ge){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ge||[]).forEach(function(le){var Ce=le[te.key],ze=le[te.children];warning(Ce!=null,"Tree node must have a certain key: [".concat(me).concat(Ce,"]"));var ot=String(Ce);warning(!oe.has(ot)||Ce===null||Ce===void 0,"Same 'key' exist in the Tree: ".concat(ot)),oe.set(ot,!0),ae(ze,"".concat(me).concat(ot," > "))})}ae(ee)}function a(ee){function te(oe){var ae=(0,he.Z)(oe);return ae.map(function(ge){if(!Ne(ge))return(0,se.ZP)(!ge,"Tree/TreeNode can only accept TreeNode as children."),null;var me=ge.key,le=ge.props,Ce=le.children,ze=(0,Je.Z)(le,Be),ot=(0,Te.Z)({key:me},ze),nt=te(Ce);return nt.length&&(ot.children=nt),ot}).filter(function(ge){return ge})}return te(ee)}function b(ee,te,oe){var ae=be(oe),ge=ae._title,me=ae.key,le=ae.children,Ce=new Set(te===!0?[]:te),ze=[];function ot(nt){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return nt.map(function(fe,$e){for(var Re=xe(gt?gt.pos:"0",$e),Me=we(fe[me],Re),Ke,Bt=0;Bt<ge.length;Bt+=1){var Et=ge[Bt];if(fe[Et]!==void 0){Ke=fe[Et];break}}var yt=(0,Te.Z)((0,Te.Z)({},(0,ye.Z)(fe,[].concat((0,de.Z)(ge),[me,le]))),{},{title:Ke,key:Me,parent:gt,pos:Re,children:null,data:fe,isStart:[].concat((0,de.Z)(gt?gt.isStart:[]),[$e===0]),isEnd:[].concat((0,de.Z)(gt?gt.isEnd:[]),[$e===nt.length-1])});return ze.push(yt),te===!0||Ce.has(Me)?yt.children=ot(fe[le]||[],yt):yt.children=[],yt})}return ot(ee),ze}function E(ee,te,oe){var ae={};(0,re.Z)(oe)==="object"?ae=oe:ae={externalGetKey:oe},ae=ae||{};var ge=ae,me=ge.childrenPropName,le=ge.externalGetKey,Ce=ge.fieldNames,ze=be(Ce),ot=ze.key,nt=ze.children,gt=me||nt,fe;le?typeof le=="string"?fe=function(Me){return Me[le]}:typeof le=="function"&&(fe=function(Me){return le(Me)}):fe=function(Me,Ke){return we(Me[ot],Ke)};function $e(Re,Me,Ke,Bt){var Et=Re?Re[gt]:ee,yt=Re?xe(Ke.pos,Me):"0",Ht=Re?[].concat((0,de.Z)(Bt),[Re]):[];if(Re){var Ee=fe(Re,yt),Ae={node:Re,index:Me,pos:yt,key:Ee,parentPos:Ke.node?Ke.pos:null,level:Ke.level+1,nodes:Ht};te(Ae)}Et&&Et.forEach(function(Ze,Pt){$e(Ze,Pt,{node:Re,pos:yt,level:Ke?Ke.level+1:-1},Ht)})}$e(null)}function y(ee){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},oe=te.initWrapper,ae=te.processEntity,ge=te.onProcessFinished,me=te.externalGetKey,le=te.childrenPropName,Ce=te.fieldNames,ze=arguments.length>2?arguments[2]:void 0,ot=me||ze,nt={},gt={},fe={posEntities:nt,keyEntities:gt};return oe&&(fe=oe(fe)||fe),E(ee,function($e){var Re=$e.node,Me=$e.index,Ke=$e.pos,Bt=$e.key,Et=$e.parentPos,yt=$e.level,Ht=$e.nodes,Ee={node:Re,nodes:Ht,index:Me,key:Bt,pos:Ke,level:yt},Ae=we(Bt,Ke);nt[Ke]=Ee,gt[Ae]=Ee,Ee.parent=nt[Et],Ee.parent&&(Ee.parent.children=Ee.parent.children||[],Ee.parent.children.push(Ee)),ae&&ae(Ee,fe)},{externalGetKey:ot,childrenPropName:le,fieldNames:Ce}),ge&&ge(fe),fe}function x(ee,te){var oe=te.expandedKeys,ae=te.selectedKeys,ge=te.loadedKeys,me=te.loadingKeys,le=te.checkedKeys,Ce=te.halfCheckedKeys,ze=te.dragOverNodeKey,ot=te.dropPosition,nt=te.keyEntities,gt=(0,Ge.Z)(nt,ee),fe={eventKey:ee,expanded:oe.indexOf(ee)!==-1,selected:ae.indexOf(ee)!==-1,loaded:ge.indexOf(ee)!==-1,loading:me.indexOf(ee)!==-1,checked:le.indexOf(ee)!==-1,halfChecked:Ce.indexOf(ee)!==-1,pos:String(gt?gt.pos:""),dragOver:ze===ee&&ot===0,dragOverGapTop:ze===ee&&ot===-1,dragOverGapBottom:ze===ee&&ot===1};return fe}function z(ee){var te=ee.data,oe=ee.expanded,ae=ee.selected,ge=ee.checked,me=ee.loaded,le=ee.loading,Ce=ee.halfChecked,ze=ee.dragOver,ot=ee.dragOverGapTop,nt=ee.dragOverGapBottom,gt=ee.pos,fe=ee.active,$e=ee.eventKey,Re=(0,Te.Z)((0,Te.Z)({},te),{},{expanded:oe,selected:ae,checked:ge,loaded:me,loading:le,halfChecked:Ce,dragOver:ze,dragOverGapTop:ot,dragOverGapBottom:nt,pos:gt,active:fe,key:$e});return"props"in Re||Object.defineProperty(Re,"props",{get:function(){return(0,se.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),ee}}),Re}}}]);