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.
179 lines
525 KiB
179 lines
525 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[3317],{22751:function(je,yt,ie){"use strict";ie.d(yt,{Z:function(){return Se}});var ae=ie(87462),ge=ie(67294),at={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"},st=at,Le=ie(74643),Ie=function(De,we){return ge.createElement(Le.Z,(0,ae.Z)({},De,{ref:we,icon:st}))},Se=ge.forwardRef(Ie)},91034:function(je,yt,ie){"use strict";ie.d(yt,{Z:function(){return Se}});var ae=ie(87462),ge=ie(67294),at={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"},st=at,Le=ie(74643),Ie=function(De,we){return ge.createElement(Le.Z,(0,ae.Z)({},De,{ref:we,icon:st}))},Se=ge.forwardRef(Ie)},71736:function(je,yt){"use strict";yt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},18023:function(){"use strict";function je(oe,b,a,E){a===void 0&&(a=0),E===void 0&&(E=1/0),this._name=oe,this._defaultValue=b,this._minimum=a,this._maximum=E}Object.defineProperty(je.prototype,"name",{get:function(){return this._name},set:function(oe){if(typeof oe!="string"||oe==="")throw new Error("Shape name must be a valid string.");this._name=oe}}),Object.defineProperty(je.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(oe){if(typeof oe!="number"||isNaN(oe))throw new Error("The default value must be a real number, not: "+oe);this._defaultValue=oe}}),Object.defineProperty(je.prototype,"minimum",{get:function(){return this._minimum},set:function(oe){if(typeof oe!="number"||isNaN(oe))throw new Error("Minimum must be a real number, not: "+oe);this._minimum=oe}}),Object.defineProperty(je.prototype,"maximum",{get:function(){return this._maximum},set:function(oe){if(typeof oe!="number"||isNaN(oe))throw new Error("Maximum must be a real number, not: "+oe);this._maximum=oe}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(oe,b){var a=go.Shape._FigureParameters[oe];return a?a[b]:null},go.Shape.setFigureParameter=function(oe,b,a){if(!(a instanceof je))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+a);if(a.defaultValue<a.minimum||a.defaultValue>a.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+a.defaultValue);var E=go.Shape._FigureParameters[oe];E||(E=[],go.Shape._FigureParameters[oe]=E),E[b]=a};var yt=[];function ie(oe,b){var a=yt.pop();return a===void 0?new go.Point(oe,b):(a.x=oe,a.y=b,a)}function ae(){var oe=yt.pop();return oe===void 0?new go.Point:oe}function ge(oe){yt.push(oe)}function at(oe,b,a,E,y,x,z,ee,te){te||(te=new go.Point);var ue=oe-a,de=y-z,se=NaN,Ee=NaN;if(ue===0)if(de===0)oe===a&&(se=oe,Ee=b);else{var pe=(x-ee)/de,he=x-pe*y;se=oe,Ee=pe*se+he}else if(de===0){var ke=(b-E)/ue,rt=b-ke*oe;se=y,Ee=ke*se+rt}else{var ke=(b-E)/ue,pe=(x-ee)/de,rt=b-ke*oe,he=x-pe*y;se=(he-rt)/(ke-pe),Ee=ke*se+rt}return te.x=se,te.y=Ee,te}function st(oe,b,a,E,y,x,z,ee,te,ue,de,se,Ee,pe){var he=1-te,ke=te,rt=oe*he+a*ke,We=b*he+E*ke,xe=a*he+y*ke,Pe=E*he+x*ke,He=y*he+z*ke,Ye=x*he+ee*ke,ot=rt*he+xe*ke,vt=We*he+Pe*ke,Qt=xe*he+He*ke,Tt=Pe*he+Ye*ke,on=ot*he+Qt*ke,An=vt*he+Tt*ke;ue.x=rt,ue.y=We,de.x=ot,de.y=vt,se.x=on,se.y=An,Ee.x=Qt,Ee.y=Tt,pe.x=He,pe.y=Ye}var Le=new go.Spot(.156,.156),Ie=new go.Spot(.844,.844),Se=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new je("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(oe,b,a){var E=oe?oe.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,b/3),E=Math.min(E,a/3);var y=E*Se,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,b-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,b,E,b-y,0,b,y)).add(new go.PathSegment(go.PathSegment.Line,b,a-E)).add(new go.PathSegment(go.PathSegment.Bezier,b-E,a,b,a-y,b-y,a)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,y,a,0,a-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(oe,b,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,b,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Line,.5*b,a).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(b,a).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,b,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(b,a).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,.5*b,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(.5*b,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.5*b,a)).add(new go.PathSegment(go.PathSegment.Line,b,.5*a).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(oe,b,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=a/2,E.endX=b,E.endY=a/2,E}),go.Shape.defineFigureGenerator("LineV",function(oe,b,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=b/2,E.startY=0,E.endX=b/2,E.endY=a,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(0,a/2,!1).add(new go.PathSegment(go.PathSegment.Line,b,a/2)).add(new go.PathSegment(go.PathSegment.Move,b/2,0)).add(new go.PathSegment(go.PathSegment.Line,b/2,a)))}),go.Shape.defineFigureGenerator("XLine",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,b,a)))}),go.Shape.defineFigureGenerator("LineRight",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(.25*b,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*b,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.25*b,a)))}),go.Shape.defineFigureGenerator("LineDown",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(0,.25*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*b,.75*a)).add(new go.PathSegment(go.PathSegment.Line,b,.25*a)))}),go.Shape.defineFigureGenerator("LineLeft",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(.75*b,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*b,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*b,a)))}),go.Shape.defineFigureGenerator("LineUp",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(0,.75*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*b,.25*a)).add(new go.PathSegment(go.PathSegment.Line,b,.75*a)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(oe,b,a){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*b,(1-E)*a,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*b,E*a)).add(new go.PathSegment(go.PathSegment.Move,E*b,E*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*b,(1-E)*a)).add(new go.PathSegment(go.PathSegment.Move,0,a/2)).add(new go.PathSegment(go.PathSegment.Line,b,a/2)).add(new go.PathSegment(go.PathSegment.Move,b/2,0)).add(new go.PathSegment(go.PathSegment.Line,b/2,a)))}),go.Shape.defineFigureGenerator("CircleLine",function(oe,b,a){var E=b/2,y=new go.Geometry().add(new go.PathFigure(b,b/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return y.spot1=Le,y.spot2=Ie,y.defaultStretch=go.GraphObject.Uniform,y}),go.Shape.defineFigureGenerator("Line1",function(oe,b,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=b,E.endY=a,E}),go.Shape.defineFigureGenerator("Line2",function(oe,b,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=b,E.startY=0,E.endX=0,E.endY=a,E}),go.Shape.defineFigureGenerator("Curve1",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,b,a,Se*b,0,b,(1-Se)*a)))}),go.Shape.defineFigureGenerator("Curve2",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,b,a,0,Se*a,(1-Se)*b,a)))}),go.Shape.defineFigureGenerator("Curve3",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,b,Se*a,Se*b,a)))}),go.Shape.defineFigureGenerator("Curve4",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,(1-Se)*b,0,0,(1-Se)*a)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(b,0,!0).add(new go.PathSegment(go.PathSegment.Line,b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new je("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(oe,b,a){var E=oe?oe.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var y=Math.abs(E)*b;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=b,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Line,b-y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,b-y,0)).add(new go.PathSegment(go.PathSegment.Line,b,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),y<b/2&&x.setSpots(y/b,0,(b-y)/b,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new je("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(oe,b,a){var E=oe?oe.parameter1:NaN;isNaN(E)?E=10:E<-b?E=-b:E>b&&(E=b);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=b,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Line,b-y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,b-y,0)).add(new go.PathSegment(go.PathSegment.Line,b,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),y<b/2&&x.setSpots(y/b,0,(b-y)/b,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new je("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(oe,b,a){var E=oe?oe.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var y=Math.abs(E)*b;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=b,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,b-y,0)).add(new go.PathSegment(go.PathSegment.Line,b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Line,b-y,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),y<b/2&&x.setSpots(y/b,0,(b-y)/b,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new je("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(oe,b,a){var E=oe?oe.parameter1:NaN;isNaN(E)?E=20:E<-b?E=-b/2:E>b&&(E=b/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=b,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,b-y,0)).add(new go.PathSegment(go.PathSegment.Line,b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Line,b-y,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),y<b/2&&x.setSpots(y/b,0,(b-y)/b,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new je("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(oe,b,a){var E=oe?oe.parameter1:NaN;isNaN(E)?E=10:E<-b?E=-b/2:E>b&&(E=b/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=b,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Line,b-y,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())):x.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,b-y,0)).add(new go.PathSegment(go.PathSegment.Line,b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())),y<b/2&&x.setSpots(y/b,0,(b-y)/b,1),x}});var $e=[];function De(){var oe=$e.pop();return oe===void 0?[]:oe}function we(oe){oe.length=0,$e.push(oe)}function Me(oe){for(var b=De(),a=.5,E=.5,y=Math.PI*1.5,x=0,z=0;z<oe;z++)x=2*Math.PI/oe*z+y,b[z]=new go.Point(E+a*Math.cos(x),E+a*Math.sin(x));return b.push(b[0]),b}function Be(oe){var b=Ae(oe),a=De();a[0]=b[0];for(var E=1,y=1;E<b.length;E+=2,y+=3)a[y]=b[E],a[y+1]=b[E],a[y+2]=b[E+1];return we(b),a}function Ae(oe){for(var b=Me(oe),a=De(),E=Math.floor(b.length/2),y=b.length-1,x=oe%2===0?2:1,z=0;z<y;z++){var ee=b[z],te=b[z+1],ue=b[(E+z-1)%y],de=b[(E+z+x)%y];a[z*2]=ee,a[z*2+1]=at(ee.x,ee.y,ue.x,ue.y,te.x,te.y,de.x,de.y,new go.Point)}return a[a.length]=a[0],we(b),a}go.Shape.defineFigureGenerator("Pentagon",function(oe,b,a){var E=Me(5),y=new go.Geometry,x=new go.PathFigure(E[0].x*b,E[0].y*a,!0);y.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*b,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*b,E[0].y*a).close()),we(E),y.spot1=new go.Spot(.2,.22),y.spot2=new go.Spot(.8,.9),y}),go.Shape.defineFigureGenerator("Hexagon",function(oe,b,a){var E=Me(6),y=new go.Geometry,x=new go.PathFigure(E[0].x*b,E[0].y*a,!0);y.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*b,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*b,E[0].y*a).close()),we(E),y.spot1=new go.Spot(.07,.25),y.spot2=new go.Spot(.93,.75),y}),go.Shape.defineFigureGenerator("Heptagon",function(oe,b,a){var E=Me(7),y=new go.Geometry,x=new go.PathFigure(E[0].x*b,E[0].y*a,!0);y.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*b,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*b,E[0].y*a).close()),we(E),y.spot1=new go.Spot(.2,.15),y.spot2=new go.Spot(.8,.85),y}),go.Shape.defineFigureGenerator("Octagon",function(oe,b,a){var E=Me(8),y=new go.Geometry,x=new go.PathFigure(E[0].x*b,E[0].y*a,!0);y.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*b,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*b,E[0].y*a).close()),we(E),y.spot1=new go.Spot(.15,.15),y.spot2=new go.Spot(.85,.85),y}),go.Shape.defineFigureGenerator("Nonagon",function(oe,b,a){var E=Me(9),y=new go.Geometry,x=new go.PathFigure(E[0].x*b,E[0].y*a,!0);y.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*b,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*b,E[0].y*a).close()),we(E),y.spot1=new go.Spot(.17,.13),y.spot2=new go.Spot(.82,.82),y}),go.Shape.defineFigureGenerator("Decagon",function(oe,b,a){var E=Me(10),y=new go.Geometry,x=new go.PathFigure(E[0].x*b,E[0].y*a,!0);y.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*b,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*b,E[0].y*a).close()),we(E),y.spot1=new go.Spot(.16,.16),y.spot2=new go.Spot(.84,.84),y}),go.Shape.defineFigureGenerator("Dodecagon",function(oe,b,a){var E=Me(12),y=new go.Geometry,x=new go.PathFigure(E[0].x*b,E[0].y*a,!0);y.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*b,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*b,E[0].y*a).close()),we(E),y.spot1=new go.Spot(.16,.16),y.spot2=new go.Spot(.84,.84),y}),go.Shape.defineFigureGenerator("FivePointedStar",function(oe,b,a){var E=Ae(5),y=new go.Geometry,x=new go.PathFigure(E[0].x*b,E[0].y*a,!0);y.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*b,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*b,E[0].y*a).close()),we(E),y.spot1=new go.Spot(.266,.333),y.spot2=new go.Spot(.733,.733),y}),go.Shape.defineFigureGenerator("SixPointedStar",function(oe,b,a){var E=Ae(6),y=new go.Geometry,x=new go.PathFigure(E[0].x*b,E[0].y*a,!0);y.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*b,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*b,E[0].y*a).close()),we(E),y.spot1=new go.Spot(.17,.25),y.spot2=new go.Spot(.83,.75),y}),go.Shape.defineFigureGenerator("SevenPointedStar",function(oe,b,a){var E=Ae(7),y=new go.Geometry,x=new go.PathFigure(E[0].x*b,E[0].y*a,!0);y.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*b,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*b,E[0].y*a).close()),we(E),y.spot1=new go.Spot(.222,.277),y.spot2=new go.Spot(.777,.666),y}),go.Shape.defineFigureGenerator("EightPointedStar",function(oe,b,a){var E=Ae(8),y=new go.Geometry,x=new go.PathFigure(E[0].x*b,E[0].y*a,!0);y.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*b,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*b,E[0].y*a).close()),we(E),y.spot1=new go.Spot(.25,.25),y.spot2=new go.Spot(.75,.75),y}),go.Shape.defineFigureGenerator("NinePointedStar",function(oe,b,a){var E=Ae(9),y=new go.Geometry,x=new go.PathFigure(E[0].x*b,E[0].y*a,!0);y.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*b,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*b,E[0].y*a).close()),we(E),y.spot1=new go.Spot(.222,.277),y.spot2=new go.Spot(.777,.666),y}),go.Shape.defineFigureGenerator("TenPointedStar",function(oe,b,a){var E=Ae(10),y=new go.Geometry,x=new go.PathFigure(E[0].x*b,E[0].y*a,!0);y.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*b,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*b,E[0].y*a).close()),we(E),y.spot1=new go.Spot(.281,.261),y.spot2=new go.Spot(.723,.748),y}),go.Shape.defineFigureGenerator("FivePointedBurst",function(oe,b,a){var E=Be(5),y=new go.Geometry,x=new go.PathFigure(E[0].x*b,E[0].y*a,!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*b,E[z+2].y*a,E[z].x*b,E[z].y*a,E[z+1].x*b,E[z+1].y*a));return x.segments.last().close(),we(E),y.spot1=new go.Spot(.222,.277),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("SixPointedBurst",function(oe,b,a){var E=Be(6),y=new go.Geometry,x=new go.PathFigure(E[0].x*b,E[0].y*a,!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*b,E[z+2].y*a,E[z].x*b,E[z].y*a,E[z+1].x*b,E[z+1].y*a));return x.segments.last().close(),we(E),y.spot1=new go.Spot(.17,.222),y.spot2=new go.Spot(.833,.777),y}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(oe,b,a){var E=Be(7),y=new go.Geometry,x=new go.PathFigure(E[0].x*b,E[0].y*a,!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*b,E[z+2].y*a,E[z].x*b,E[z].y*a,E[z+1].x*b,E[z+1].y*a));return x.segments.last().close(),we(E),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("EightPointedBurst",function(oe,b,a){var E=Be(8),y=new go.Geometry,x=new go.PathFigure(E[0].x*b,E[0].y*a,!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*b,E[z+2].y*a,E[z].x*b,E[z].y*a,E[z+1].x*b,E[z+1].y*a));return x.segments.last().close(),we(E),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("NinePointedBurst",function(oe,b,a){var E=Be(9),y=new go.Geometry,x=new go.PathFigure(E[0].x*b,E[0].y*a,!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*b,E[z+2].y*a,E[z].x*b,E[z].y*a,E[z+1].x*b,E[z+1].y*a));return x.segments.last().close(),we(E),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("TenPointedBurst",function(oe,b,a){var E=Be(10),y=new go.Geometry,x=new go.PathFigure(E[0].x*b,E[0].y*a,!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*b,E[z+2].y*a,E[z].x*b,E[z].y*a,E[z+1].x*b,E[z+1].y*a));return x.segments.last().close(),we(E),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.setFigureParameter("FramedRectangle",0,new je("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new je("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(oe,b,a){var E=oe?oe.parameter1:NaN,y=oe?oe.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,b,0)),z.add(new go.PathSegment(go.PathSegment.Line,b,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E<b/2&&y<a/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,a-y)),z.add(new go.PathSegment(go.PathSegment.Line,b-E,a-y)),z.add(new go.PathSegment(go.PathSegment.Line,b-E,y).close())),x.setSpots(0,0,1,1,E,y,-E,-y),x}),go.Shape.setFigureParameter("Ring",0,new je("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(oe,b,a){var E=oe?oe.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var y=b/2,x=new go.Geometry,z=new go.PathFigure(b,b/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,b/2+ee,b/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,y,y,ee,ee).close())),x.spot1=Le,x.spot2=Ie,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(.08034461*b,.1944299*a,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*b,.05349299*a,-.09239631*b,.07836421*a,.1406031*b,-.0542823*a)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*b,.074219*a,.2450511*b,-.00697547*a,.3776197*b,-.01112067*a)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*b,.07004196*a,.4539471*b,0,.6066018*b,-.02526587*a)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*b,.08370865*a,.6914277*b,-.01904177*a,.8921095*b,-.01220843*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*b,.3194596*a,1.036446*b,.04105738*a,1.020377*b,.3022052*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*b,.562044*a,1.04448*b,.360238*a,.992256*b,.5219009*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*b,.8217117*a,1.032337*b,.5771781*a,1.018411*b,.8120651*a)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*b,.9156953*a,1.028411*b,.9571472*a,.8556702*b,1.052487*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*b,.9310455*a,.7431877*b,1.009325*a,.5624123*b,1.021761*a)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*b,.9344623*a,.4820677*b,1.031761*a,.3030112*b,1.002796*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*b,.870098*a,.2329994*b,1.01518*a,.03213784*b,1.01518*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*b,.6545475*a,-.02812061*b,.9032597*a,-.01205169*b,.6835638*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*b,.4265613*a,-.01812061*b,.6089503*a,-.00606892*b,.4555777*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*b,.1944299*a,-.01606892*b,.3892545*a,-.01205169*b,.1944299*a))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(oe,b,a){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*b,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*b,0)).add(new go.PathSegment(go.PathSegment.Line,b,E*a)).add(new go.PathSegment(go.PathSegment.Line,b,(1-E)*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*b,a)).add(new go.PathSegment(go.PathSegment.Line,E*b,a)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*a)).add(new go.PathSegment(go.PathSegment.Line,0,E*a).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new je("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new je("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(oe,b,a){var E=oe?oe.parameter1:NaN,y=oe?oe.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(b,a)/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(oe,b,a){var E=Se/Math.SQRT2*.5,y=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(b,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,y*b,x*a,b,(1-E)*a,(y+E)*b,(x+E)*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()))}),go.Shape.setFigureParameter("ThickCross",0,new je("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(oe,b,a){var E=oe?oe.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var y=Math.min(E,b)/2,x=b/2,z=a/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,b,z-y)).add(new go.PathSegment(go.PathSegment.Line,b,z+y)).add(new go.PathSegment(go.PathSegment.Line,x+y,z+y)).add(new go.PathSegment(go.PathSegment.Line,x+y,a)).add(new go.PathSegment(go.PathSegment.Line,x-y,a)).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 je("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(oe,b,a){var E=oe?oe.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var y=Math.min(E,b)/2,x=b/2,z=a/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,b,z-y)).add(new go.PathSegment(go.PathSegment.Line,b,z+y)).add(new go.PathSegment(go.PathSegment.Line,x+y,z+y)).add(new go.PathSegment(go.PathSegment.Line,x+y,a)).add(new go.PathSegment(go.PathSegment.Line,x-y,a)).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 je("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(oe,b,a){var E=oe?oe.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),b===0||a===0){var y=new go.Geometry(go.Geometry.Rectangle);return y.startX=0,y.startY=0,y.endX=b,y.endY=a,y}else{var x=b/2,z=a/2,ee=Math.atan2(a,b),te=E-Math.min(Math.cos(ee)*E/2,x),ue=E-Math.min(Math.sin(ee)*E/2,z),y=new go.Geometry,de=new go.PathFigure(te,0,!0);return y.add(de),de.add(new go.PathSegment(go.PathSegment.Line,x,.2*a)),de.add(new go.PathSegment(go.PathSegment.Line,b-te,0)),de.add(new go.PathSegment(go.PathSegment.Line,b,ue)),de.add(new go.PathSegment(go.PathSegment.Line,.8*b,z)),de.add(new go.PathSegment(go.PathSegment.Line,b,a-ue)),de.add(new go.PathSegment(go.PathSegment.Line,b-te,a)),de.add(new go.PathSegment(go.PathSegment.Line,x,.8*a)),de.add(new go.PathSegment(go.PathSegment.Line,te,a)),de.add(new go.PathSegment(go.PathSegment.Line,0,a-ue)),de.add(new go.PathSegment(go.PathSegment.Line,.2*b,z)),de.add(new go.PathSegment(go.PathSegment.Line,0,ue).close()),y}}),go.Shape.setFigureParameter("ThinX",0,new je("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(oe,b,a){var E=oe?oe.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var y=new go.Geometry,x=new go.PathFigure(.1*b,0,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*b,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*b,0)),x.add(new go.PathSegment(go.PathSegment.Line,b,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*b,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,b,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*b,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*b,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*b,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*b,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*a).close()),y}),go.Shape.setFigureParameter("SquareIBeam",0,new je("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(oe,b,a){var E=oe?oe.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,b,0)),x.add(new go.PathSegment(go.PathSegment.Line,b,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*b,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*b,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,b,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,b,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*b,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*b,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*a).close()),y}),go.Shape.setFigureParameter("RoundedIBeam",0,new je("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(oe,b,a){var E=oe?oe.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,b,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,b,a,Math.abs(1-E)*b,.25*a,Math.abs(1-E)*b,.75*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*b,.75*a,E*b,.25*a).close()),y}),go.Shape.defineFigureGenerator("HalfEllipse",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,b,.5*a,Se*b,0,b,(.5-Se/2)*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a,b,(.5+Se/2)*a,Se*b,a).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,a,b,0,b,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*b,.75*a,.5*b,.25*a).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(.5*b,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,.1*b,.8*a,0,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*b,.3*a,0,0,.45*b,0)).add(new go.PathSegment(go.PathSegment.Bezier,b,.3*a,.55*b,0,b,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*b,a,b,.5*a,.9*b,.8*a).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(.5*b,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*b,.01*a)).add(new go.PathSegment(go.PathSegment.Bezier,b,.5*a,.6*b,.2*a,b,.25*a)).add(new go.PathSegment(go.PathSegment.Bezier,.55*b,.7*a,b,.8*a,.6*b,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.75*b,a,.5*b,.75*a,.55*b,.95*a)).add(new go.PathSegment(go.PathSegment.Line,.25*b,a)).add(new go.PathSegment(go.PathSegment.Bezier,.45*b,.7*a,.45*b,.95*a,.5*b,.75*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.4*b,.8*a,0,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.49*b,.01*a,0,.25*a,.4*b,.2*a).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(.4*b,.6*a,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.15*b,a,.5*b,.75*a,.45*b,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*b,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*b,.6*a,.55*b,.95*a,.5*b,.75*a));var x=.2,z=.3,ee=0,te=x*Se;return y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*b,(.5+x+ee)*a,(.5-x+z)*b,(.5+te+ee)*a,(.5-te+z)*b,(.5+x+ee)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*b,(.5+ee)*a,(.5+te+z)*b,(.5+x+ee)*a,(.5+x+z)*b,(.5+te+ee)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*b,(.5-x+ee)*a,(1-.5+x+z)*b,(.5-te+ee)*a,(.5+te+z)*b,(.5-x+ee)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.65*b,.36771243*a,(.5-te+z)*b,(.5-x+ee)*a,(.5-x+z+.05)*b,(.5-te+ee-.02)*a)),x=.2,z=0,ee=-.3,te=x*Se,y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*b,(.5+ee)*a,(.5+te+z)*b,(.5+x+ee)*a,(.5+x+z)*b,(.5+te+ee)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*b,(.5-x+ee)*a,(1-.5+x+z)*b,(.5-te+ee)*a,(.5+te+z)*b,(.5-x+ee)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*b,(.5+ee)*a,(.5-te+z)*b,(.5-x+ee)*a,(.5-x+z)*b,(.5-te+ee)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*b,(.5+x+ee)*a,(.5-x+z)*b,(.5+te+ee)*a,(.5-te+z)*b,(.5+x+ee)*a)),x=.2,z=-.3,ee=0,te=x*Se,y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*b,(.5-x+ee)*a,(1-.5+x+z-.05)*b,(.5-te+ee-.02)*a,(.5+te+z)*b,(.5-x+ee)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*b,(.5+ee)*a,(.5-te+z)*b,(.5-x+ee)*a,(.5-x+z)*b,(.5-te+ee)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*b,(.5+x+ee)*a,(.5-x+z)*b,(.5+te+ee)*a,(.5-te+z)*b,(.5+x+ee)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*b,.6*a,(.5+te+z)*b,(.5+x+ee)*a,(.5+x+z)*b,(.5+te+ee)*a).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(b*.5,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,b*.5,b*.5,b*.5,b*.5)),y.add(new go.PathSegment(go.PathSegment.Arc,90,-180,b*.5,b*.75,b*.25,b*.25)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,b*.5,b*.25,b*.25,b*.25));var x=.1,z=.5,ee=.25;return y.add(new go.PathSegment(go.PathSegment.Move,(z+x)*b,ee*a)),y.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b*z,a*ee,x*b,x*b).close()),y=new go.PathFigure(b*.5,0,!1),E.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,-180,b*.5,b*.5,b*.5,b*.5)),ee=.75,y=new go.PathFigure((z+x)*b,ee*a,!0),E.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,0,360,b*z,a*ee,x*b,x*b).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(oe,b,a){var E=.8535533905932737,y=.5*b,x=.5*a;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,a)).add(new go.PathSegment(go.PathSegment.Move,y,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*b,E*a)).add(new go.PathSegment(go.PathSegment.Move,y,x)).add(new go.PathSegment(go.PathSegment.Line,E*b,E*a)))}),go.Shape.defineFigureGenerator("NotAllowed",function(oe,b,a){var E=new go.Geometry,y=Se*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure(z*b,(ee-x)*a);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*b,ee*a,(z-y)*b,(ee-x)*a,(z-x)*b,(ee-y)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee+x)*a,(z-x)*b,(ee+y)*a,(z-y)*b,(ee+x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*b,ee*a,(z+y)*b,(ee+x)*a,(z+x)*b,(ee+y)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee-x)*a,(z+x)*b,(ee-y)*a,(z+y)*b,(ee-x)*a)),x=.4,y=Se*.4;var ue=ae(),de=ae(),se=ae(),Ee=ae();st(z,ee-x,z+y,ee-x,z+x,ee-y,z+x,ee,.42,ue,de,se,Ee,Ee);var pe=ae(),he=ae(),ke=ae();st(z,ee-x,z+y,ee-x,z+x,ee-y,z+x,ee,.58,Ee,Ee,ke,pe,he);var rt=ae(),We=ae(),xe=ae();st(z,ee+x,z-y,ee+x,z-x,ee+y,z-x,ee,.42,rt,We,xe,Ee,Ee);var Pe=ae(),He=ae(),Ye=ae();return st(z,ee+x,z-y,ee+x,z-x,ee+y,z-x,ee,.58,Ee,Ee,Ye,Pe,He),te.add(new go.PathSegment(go.PathSegment.Move,Ye.x*b,Ye.y*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*b,ee*a,Pe.x*b,Pe.y*a,He.x*b,He.y*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee-x)*a,(z-x)*b,(ee-y)*a,(z-y)*b,(ee-x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,se.x*b,se.y*a,ue.x*b,ue.y*a,de.x*b,de.y*a)),te.add(new go.PathSegment(go.PathSegment.Line,Ye.x*b,Ye.y*a).close()),te.add(new go.PathSegment(go.PathSegment.Move,xe.x*b,xe.y*a)),te.add(new go.PathSegment(go.PathSegment.Line,ke.x*b,ke.y*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*b,ee*a,pe.x*b,pe.y*a,he.x*b,he.y*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee+x)*a,(z+x)*b,(ee+y)*a,(z+y)*b,(ee+x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,xe.x*b,xe.y*a,rt.x*b,rt.y*a,We.x*b,We.y*a).close()),ge(ue),ge(de),ge(se),ge(Ee),ge(pe),ge(he),ge(ke),ge(rt),ge(We),ge(xe),ge(Pe),ge(He),ge(Ye),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*b,0)).add(new go.PathSegment(go.PathSegment.Line,.2*b,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.3*b,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.29*b,.33*a)).add(new go.PathSegment(go.PathSegment.Line,.35*b,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.3*b,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.4*b,0)).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*b,.5*a,b,.25*a,.75*b,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.55*b,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*b,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*b,a)).add(new go.PathSegment(go.PathSegment.Line,.3*b,a)).add(new go.PathSegment(go.PathSegment.Line,.3*b,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*b,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*b,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*b,.5*a,0,.25*a).close()))}),go.Shape.setFigureParameter("HourGlass",0,new je("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(oe,b,a){var E=oe?oe.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>b&&(E=b);var y=(b-E)/2,x=y+E;return new go.Geometry().add(new go.PathFigure(x,.5*a).add(new go.PathSegment(go.PathSegment.Line,b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,b,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(0,.55*a).add(new go.PathSegment(go.PathSegment.Line,.6*b,0)).add(new go.PathSegment(go.PathSegment.Line,.3*b,.45*a)).add(new go.PathSegment(go.PathSegment.Line,b,.45*a)).add(new go.PathSegment(go.PathSegment.Line,.4*b,a)).add(new go.PathSegment(go.PathSegment.Line,.7*b,.55*a).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(oe,b,a){var E=new go.Geometry,y=Se*.4,x=.4,z=.5,ee=.5,te=ae(),ue=ae(),de=ae(),se=ae(),Ee=new go.PathFigure((z-x)*b,ee*a,!1);E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee-x)*a,(z-x)*b,(ee-y)*a,(z-y)*b,(ee-x)*a)),st(z,ee-x,z+y,ee-x,z+x,ee-y,z+x,ee,.44,de,se,ue,te,te),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue.x*b,ue.y*a,de.x*b,de.y*a,se.x*b,se.y*a));var pe=ie(ue.x,ue.y);st(z,ee-x,z+y,ee-x,z+x,ee-y,z+x,ee,.56,te,te,ue,de,se);var he=ie(ue.x,ue.y);Ee.add(new go.PathSegment(go.PathSegment.Line,(pe.x*.1+.95*.9)*b,pe.y*.1*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.85*b,pe.y*.1*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.85*b,0)),Ee.add(new go.PathSegment(go.PathSegment.Line,b,0)),Ee.add(new go.PathSegment(go.PathSegment.Line,b,.15*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,(he.x*.1+.9)*b,.15*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,(he.x*.1+.9)*b,(he.y*.1+.05*.9)*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,he.x*b,he.y*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*b,ee*a,de.x*b,de.y*a,se.x*b,se.y*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee+x)*a,(z+x)*b,(ee+y)*a,(z+y)*b,(ee+x)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*b,ee*a,(z-y)*b,(ee+x)*a,(z-x)*b,(ee+y)*a)),x=.35,y=Se*.35;var ke=new go.PathFigure(z*b,(ee-x)*a,!1);E.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*b,ee*a,(z-y)*b,(ee-x)*a,(z-x)*b,(ee-y)*a)),ke.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee+x)*a,(z-x)*b,(ee+y)*a,(z-y)*b,(ee+x)*a)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*b,ee*a,(z+y)*b,(ee+x)*a,(z+x)*b,(ee+y)*a)),ke.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee-x)*a,(z+x)*b,(ee-y)*a,(z+y)*b,(ee-x)*a));var rt=new go.PathFigure((z-x)*b,ee*a,!1);return E.add(rt),ge(te),ge(ue),ge(de),ge(se),ge(pe),ge(he),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(oe,b,a){var E=new go.Geometry,y=.375,x=0,z=-.125,ee=y*Se,te=new go.PathFigure((.525+x)*b,(.5+y+z)*a,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+x)*b,(.5+z)*a,(.5+ee+x)*b,(.5+y+z)*a,(.5+y+x)*b,(.5+ee+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*b,(.5-y+z)*a,(1-.5+y+x)*b,(.5-ee+z)*a,(.5+ee+x)*b,(.5-y+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+x)*b,(.5+z)*a,(.5-ee+x)*b,(.5-y+z)*a,(.5-y+x)*b,(.5-ee+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*b,(.5+y+z)*a,(.5-y+x)*b,(.5+ee+z)*a,(.5-ee+x)*b,(.5+y+z)*a)),te.add(new go.PathSegment(go.PathSegment.Line,.475*b,.85*a)),te.add(new go.PathSegment(go.PathSegment.Line,.425*b,.85*a)),te.add(new go.PathSegment(go.PathSegment.Line,.425*b,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.475*b,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.475*b,a)),te.add(new go.PathSegment(go.PathSegment.Line,.525*b,a)),te.add(new go.PathSegment(go.PathSegment.Line,.525*b,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.575*b,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.575*b,.85*a)),te.add(new go.PathSegment(go.PathSegment.Line,.525*b,.85*a).close()),y=.325,x=0,z=-.125,ee=y*Se;var te=new go.PathFigure((1-.5+y+x)*b,(.5+z)*a,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*b,(.5+y+z)*a,(.5+y+x)*b,(.5+ee+z)*a,(.5+ee+x)*b,(.5+y+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+x)*b,(.5+z)*a,(.5-ee+x)*b,(.5+y+z)*a,(.5-y+x)*b,(.5+ee+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*b,(.5-y+z)*a,(.5-y+x)*b,(.5-ee+z)*a,(.5-ee+x)*b,(.5-y+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+x)*b,(.5+z)*a,(.5+ee+x)*b,(.5-y+z)*a,(1-.5+y+x)*b,(.5-ee+z)*a));var te=new go.PathFigure((.525+x)*b,(.5+y+z)*a,!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(oe,b,a){var E=oe?oe.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*b,0,!1).add(new go.PathSegment(go.PathSegment.Line,b,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*b,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,b,.5*a))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(oe,b,a){var E=oe?oe.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*b,0,!1).add(new go.PathSegment(go.PathSegment.Line,b,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*b,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,b,.5*a)).add(new go.PathSegment(go.PathSegment.Move,E*b,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E*b,a))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Line,b,a)))}),go.Shape.defineFigureGenerator("LogicAnd",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*b,0)).add(new go.PathSegment(go.PathSegment.Line,b,a))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*b,a)).add(new go.PathSegment(go.PathSegment.Line,b,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(oe,b,a){var E=new go.Geometry().add(new go.PathFigure(.5*b,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*b,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,b,.5*a)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*b,.5*a,.5*b,.5*a)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Move,.5*b,0)).add(new go.PathSegment(go.PathSegment.Line,.5*b,a)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,b,a)).add(new go.PathSegment(go.PathSegment.Move,.5*b,a)).add(new go.PathSegment(go.PathSegment.Line,.5*b,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Line,b,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Move,b,.5*a)).add(new go.PathSegment(go.PathSegment.Line,b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)))}),go.Shape.defineFigureGenerator("LogicForAll",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*b,a)).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Move,.25*b,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*b,.5*a))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,b,.5*a)).add(new go.PathSegment(go.PathSegment.Move,0,a)).add(new go.PathSegment(go.PathSegment.Line,b,a))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(oe,b,a){var E=.5;return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*a)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*b,E*a,E*b,E*a)).add(new go.PathSegment(go.PathSegment.Line,b,a))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(oe,b,a){var E=.5;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Line,b,E*a)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*b,E*a,E*b,E*a)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new je("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new je("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(oe,b,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=.3);var y=oe?oe.parameter2:NaN;isNaN(y)&&(y=.3);var x=(1-E)*b,z=(.5-y/2)*a,ee=(.5+y/2)*a,te=new go.Geometry,ue=new go.PathFigure(0,z,!0);te.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,x,z)),ue.add(new go.PathSegment(go.PathSegment.Line,x,0)),ue.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),ue.add(new go.PathSegment(go.PathSegment.Line,x,a)),ue.add(new go.PathSegment(go.PathSegment.Line,x,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/a);var de=at(0,ee/a,1,ee/a,x/b,1,1,.5,ae());return te.spot2=new go.Spot(de.x,de.y),ge(de),te}),go.Shape.setFigureParameter("Arrow2",0,new je("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new je("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(oe,b,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=30),E>b&&(E=b);var y=oe?oe.parameter2:NaN;isNaN(y)&&(y=30),y=Math.min(y,a/2);var x=b-E,z=(a-y)/2,ee=z+y,te=new go.Geometry,ue=new go.PathFigure(0,z,!0);te.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,x,z)),ue.add(new go.PathSegment(go.PathSegment.Line,x,0)),ue.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),ue.add(new go.PathSegment(go.PathSegment.Line,x,a)),ue.add(new go.PathSegment(go.PathSegment.Line,x,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/a);var de=at(0,ee/a,1,ee/a,x/b,1,1,.5,ae());return te.spot2=new go.Spot(de.x,de.y),ge(de),te}),go.Shape.defineFigureGenerator("Chevron",function(oe,b,a){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*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,.5*a).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(oe,b,a){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*b,.214*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,1*b,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*b,1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*b,.786*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,1*a).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new je("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(oe,b,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=.3);var y=(.5-E/2)*a,x=(.5+E/2)*a,z=new go.Geometry,ee=new go.PathFigure(b,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*b,a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*b,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*b,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,0).close());var te=at(0,.5,.3,0,0,y/a,.1,y/a,ae());return z.spot1=new go.Spot(te.x,te.y),te=at(.7,1,1,.5,0,x/a,1,x/a,te),z.spot2=new go.Spot(te.x,te.y),ge(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new je("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new je("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(oe,b,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=40);var y=oe?oe.parameter2:NaN;isNaN(y)&&(y=100);var x=(a-E)/2,z=x+E,ee=(a-y)/2,te=ee+y;(E>a||y>a)&&(y>E?(E=E*a/y,x=(a-E)/2,z=x+E,ee=0,te=a):(x=0,z=a,ee=0,te=a));var ue=new go.Geometry,de=new go.PathFigure(b,.5*a,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.7*b,te)),de.add(new go.PathSegment(go.PathSegment.Line,.7*b,z)),de.add(new go.PathSegment(go.PathSegment.Line,.3*b,z)),de.add(new go.PathSegment(go.PathSegment.Line,.3*b,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),de.add(new go.PathSegment(go.PathSegment.Line,.3*b,ee)),de.add(new go.PathSegment(go.PathSegment.Line,.3*b,x)),de.add(new go.PathSegment(go.PathSegment.Line,.7*b,x)),de.add(new go.PathSegment(go.PathSegment.Line,.7*b,ee).close());var se=at(0,.5,.3,ee/a,0,x/a,1,x/a,ae());return ue.spot1=new go.Spot(se.x,se.y),se=at(.7,te/a,1,.5,0,z/a,1,z/a,se),ue.spot2=new go.Spot(se.x,se.y),ge(se),ue}),go.Shape.setFigureParameter("IBeamArrow",0,new je("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(oe,b,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=.3);var y=(.5-E/2)*a,x=(.5+E/2)*a,z=new go.Geometry,ee=new go.PathFigure(b,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*b,a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*b,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*b,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,0).close()),z.spot1=new go.Spot(0,y/a);var te=at(.7,1,1,.5,0,x/a,1,x/a,ae());return z.spot2=new go.Spot(te.x,te.y),ge(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new je("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new je("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(oe,b,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=40);var y=oe?oe.parameter2:NaN;isNaN(y)&&(y=100);var x=(a-E)/2,z=x+E,ee=(a-y)/2,te=ee+y;(E>a||y>a)&&(y>E?(E=E*a/y,x=(a-E)/2,z=x+E,ee=0,te=a):(x=0,z=a,ee=0,te=a));var ue=new go.Geometry,de=new go.PathFigure(b,.5*a,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.7*b,te)),de.add(new go.PathSegment(go.PathSegment.Line,.7*b,z)),de.add(new go.PathSegment(go.PathSegment.Line,.2*b,z)),de.add(new go.PathSegment(go.PathSegment.Line,.2*b,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee)),de.add(new go.PathSegment(go.PathSegment.Line,.2*b,ee)),de.add(new go.PathSegment(go.PathSegment.Line,.2*b,x)),de.add(new go.PathSegment(go.PathSegment.Line,.7*b,x)),de.add(new go.PathSegment(go.PathSegment.Line,.7*b,ee).close()),ue.spot1=new go.Spot(0,x/a);var se=at(.7,te/a,1,.5,0,z/a,1,z/a,ae());return ue.spot2=new go.Spot(se.x,se.y),ge(se),ue}),go.Shape.setFigureParameter("Pointer",0,new je("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(oe,b,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=.1);var y=new go.Geometry,x=new go.PathFigure(b,.5*a,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,E*b,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),y.spot1=new go.Spot(E,.35);var z=at(.2,.65,1,.65,0,1,1,.5,ae());return y.spot2=new go.Spot(z.x,z.y),ge(z),y}),go.Shape.setFigureParameter("RoundedPointer",0,new je("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(oe,b,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=.3);var y=new go.Geometry,x=new go.PathFigure(b,.5*a,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*b,.75*a,E*b,.25*a).close()),y.spot1=new go.Spot(E,.35);var z=at(0,.65,1,.65,0,1,1,.5,ae());return y.spot2=new go.Spot(z.x,z.y),ge(z),y}),go.Shape.setFigureParameter("SplitEndArrow",0,new je("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(oe,b,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=.4);var y=(.5-E/2)*a,x=(.5+E/2)*a,z=new go.Geometry,ee=new go.PathFigure(b,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*b,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,0).close()),z.spot1=new go.Spot(.2,.3);var te=at(.7,1,1,.5,0,x/a,1,x/a,ae());return z.spot2=new go.Spot(te.x,te.y),ge(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new je("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(oe,b,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=50);var y=(a-E)/2,x=y+E;E>a&&(y=0,x=a);var z=new go.Geometry,ee=new go.PathFigure(b,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*b,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,0).close()),z.spot1=new go.Spot(.2,y/a);var te=at(.7,1,1,.5,0,x/a,1,x/a,ae());return z.spot2=new go.Spot(te.x,te.y),ge(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new je("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(oe,b,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=.7);var y=new go.Geometry,x=new go.PathFigure(b,.5*a,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*b,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*b,0).close()),y.spot1=go.Spot.TopLeft,y.spot2=new go.Spot(E,1),y}),go.Shape.defineFigureGenerator("Cone1",function(oe,b,a){var E=new go.Geometry,y=Se*.5,x=Se*.1,z=new go.PathFigure(0,.9*a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*b,0)),z.add(new go.PathSegment(go.PathSegment.Line,b,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,a,b,(.9+x)*a,(.5+y)*b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-y)*b,a,0,(.9+x)*a).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,.9*a,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,b,.9*a,(1-.85/.9)*b,a,.85/.9*b,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.9*a).close());var x=new go.PathFigure(0,.9*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,b,.9*a,(1-.85/.9)*b,.8*a,.85/.9*b,.8*a)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(.5*b,a,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,b,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,b,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var x=new go.PathFigure(.5*b,a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*b,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),x.add(new go.PathSegment(go.PathSegment.Move,.5*b,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,b,.15*a)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,.3*a,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*b,a)),y.add(new go.PathSegment(go.PathSegment.Line,b,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,b,0)),y.add(new go.PathSegment(go.PathSegment.Line,.3*b,0).close());var x=new go.PathFigure(0,.3*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*b,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,b,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*b,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,.7*b,a)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(oe,b,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/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*b,0,0,Se*E,(.5-x)*b,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*b,E,(.5+x)*b,0,1*b,Se*E)),z.add(new go.PathSegment(go.PathSegment.Line,b,a-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,1*a,1*b,a-Se*E,(.5+x)*b,1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,(.5-x)*b,1*a,0,a-Se*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(b,E,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,2*E,1*b,2*E-Se*E,(.5+x)*b,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*b,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(oe,b,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var y=new go.Geometry,x=Se*.5,z=new go.PathFigure(0,a-E,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,0,0,Se*E,(.5-x)*b,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,E,(.5+x)*b,0,b,Se*E)),z.add(new go.PathSegment(go.PathSegment.Line,b,a-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,a,b,a-Se*E,(.5+x)*b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,(.5-x)*b,a,0,a-Se*E));var ee=new go.PathFigure(0,a-E,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,a-2*E,0,a-E-Se*E,(.5-x)*b,a-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,b,a-E,(.5+x)*b,a-2*E,b,a-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(oe,b,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,b/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,b-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,.5*a,b-Se*E,0,b,(.5-x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,b-E,a,b,(.5+x)*a,b-Se*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,Se*E,a,0,(.5+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*a,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*a,E+Se*E,0,2*E,(.5-x)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,a,2*E,(.5+x)*a,E+Se*E,a)),y.spot1=new go.Spot(0,0,2*E,0),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder4",function(oe,b,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,b/3);var y=new go.Geometry,x=Se*.5,z=new go.PathFigure(b-E,0,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b,.5*a,b-Se*E,0,b,(.5-x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,b-E,a,b,(.5+x)*a,b-Se*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,Se*E,a,0,(.5+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*a,Se*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,b-E,0));var ee=new go.PathFigure(b-E,0,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,b-2*E,.5*a,b-E-Se*E,0,b-2*E,(.5-x)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,b-E,a,b-2*E,(.5+x)*a,b-E-Se*E,a)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,-2*E,0),y}),go.Shape.defineFigureGenerator("Prism1",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(.25*b,.25*a,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(.25*b,.25*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*b,a)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,.25*a,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,b,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*b,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(0,a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*b,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,b,.25*a)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),x.add(new go.PathSegment(go.PathSegment.Line,.25*b,.5*a)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(.5*b,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,b,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*a).close());var x=new go.PathFigure(.5*b,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*b,a)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(.5*b,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,b,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var x=new go.PathFigure(.5*b,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*b,.7*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*a)),x.add(new go.PathSegment(go.PathSegment.Move,.5*b,.7*a)),x.add(new go.PathSegment(go.PathSegment.Line,b,.85*a)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(oe,b,a){var E=new go.Geometry,y=.2,x=.1,z=Se*y,ee=Se*x,te=.5,ue=.1,de=new go.PathFigure(te*b,(ue+x)*a,!0);E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,(te-y)*b,ue*a,(te-z)*b,(ue+x)*a,(te-y)*b,(ue+ee)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,te*b,(ue-x)*a,(te-y)*b,(ue-ee)*a,(te-z)*b,(ue-x)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*b,ue*a,(te+z)*b,(ue-x)*a,(te+y)*b,(ue-ee)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,te*b,(ue+x)*a,(te+y)*b,(ue+ee)*a,(te+z)*b,(ue+x)*a));var se=.05,Ee=Se*se;te=.05,ue=.25;var pe=new go.PathFigure(.5*b,.2*a,!0);return E.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.95*b,.2*a)),te=.95,ue=.25,pe.add(new go.PathSegment(go.PathSegment.Bezier,(te+se)*b,ue*a,(te+Ee)*b,(ue-se)*a,(te+se)*b,(ue-Ee)*a)),pe.add(new go.PathSegment(go.PathSegment.Line,b,.6*a)),pe.add(new go.PathSegment(go.PathSegment.Line,.85*b,.6*a)),pe.add(new go.PathSegment(go.PathSegment.Line,.85*b,.35*a)),se=.025,Ee=Se*se,te=.825,ue=.35,pe.add(new go.PathSegment(go.PathSegment.Bezier,te*b,(ue-se)*a,(te+se)*b,(ue-Ee)*a,(te+Ee)*b,(ue-se)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(te-se)*b,ue*a,(te-Ee)*b,(ue-se)*a,(te-se)*b,(ue-Ee)*a)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*b,a)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*b,a)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*b,.7*a)),se=.05,Ee=Se*se,te=.5,ue=.7,pe.add(new go.PathSegment(go.PathSegment.Bezier,te*b,(ue-se)*a,(te+se)*b,(ue-Ee)*a,(te+Ee)*b,(ue-se)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(te-se)*b,ue*a,(te-Ee)*b,(ue-se)*a,(te-se)*b,(ue-Ee)*a)),pe.add(new go.PathSegment(go.PathSegment.Line,.45*b,a)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*b,a)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*b,.35*a)),se=.025,Ee=Se*se,te=.175,ue=.35,pe.add(new go.PathSegment(go.PathSegment.Bezier,te*b,(ue-se)*a,(te+se)*b,(ue-Ee)*a,(te+Ee)*b,(ue-se)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(te-se)*b,ue*a,(te-Ee)*b,(ue-se)*a,(te-se)*b,(ue-Ee)*a)),pe.add(new go.PathSegment(go.PathSegment.Line,.15*b,.6*a)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),se=.05,Ee=Se*se,te=.05,ue=.25,pe.add(new go.PathSegment(go.PathSegment.Bezier,te*b,(ue-se)*a,(te-se)*b,(ue-Ee)*a,(te-Ee)*b,(ue-se)*a)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*b,.2*a)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new je("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(oe,b,a){var E=oe?oe.parameter1:NaN;isNaN(E)&&(E=.2);var y=new go.Geometry,x=new go.PathFigure(b,0,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,E*b,0).close()),y.spot1=new go.Spot(0,E),y.spot2=go.Spot.BottomRight,y}),go.Shape.defineFigureGenerator("Collate",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(.5*b,.5*a,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,b,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,.5*a));var x=new go.PathFigure(.5*b,.5*a,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*b,.5*a)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(oe,b,a){var E=new go.Geometry,y=oe?oe.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,b,0)),x.add(new go.PathSegment(go.PathSegment.Line,b,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,y*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b,y*a)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*a)),z.add(new go.PathSegment(go.PathSegment.Line,b,(1-y)*a)),E}),go.Shape.defineFigureGenerator("Database",function(oe,b,a){var E=new go.Geometry,y=Se*.5,x=Se*.1,z=new go.PathFigure(b,.1*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,a,b,(.9+x)*a,(.5+y)*b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-y)*b,a,0,(.9+x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,0,0,(.1-x)*a,(.5-y)*b,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,.1*a,(.5+y)*b,0,b,(.1-x)*a));var ee=new go.PathFigure(b,.1*a,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,.2*a,b,(.1+x)*a,(.5+y)*b,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-y)*b,.2*a,0,(.1+x)*a)),ee.add(new go.PathSegment(go.PathSegment.Move,b,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,.3*a,b,(.2+x)*a,(.5+y)*b,.3*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-y)*b,.3*a,0,(.2+x)*a)),ee.add(new go.PathSegment(go.PathSegment.Move,b,.3*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,.4*a,b,(.3+x)*a,(.5+y)*b,.4*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,(.5-y)*b,.4*a,0,(.3+x)*a)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(oe,b,a){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*b,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*b,a,b,0,b,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*b,.9*a,.25*b,.1*a).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(oe,b,a){var E=new go.Geometry,y=Se*.5,x=Se*.1,z=new go.PathFigure(b,.1*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,a,b,(.9+x)*a,(.5+y)*b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-y)*b,a,0,(.9+x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,0,0,(.1-x)*a,(.5-y)*b,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,.1*a,(.5+y)*b,0,b,(.1-x)*a));var ee=new go.PathFigure(b,.1*a,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,.2*a,b,(.1+x)*a,(.5+y)*b,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-y)*b,.2*a,0,(.1+x)*a)),ee.add(new go.PathSegment(go.PathSegment.Move,b,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,.3*a,b,(.2+x)*a,(.5+y)*b,.3*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-y)*b,.3*a,0,(.2+x)*a)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(.25*b,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*b,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*b,a,b,0,b,a)),y.add(new go.PathSegment(go.PathSegment.Line,.25*b,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(oe,b,a){var E=new go.Geometry,y=oe?oe.parameter1:NaN;isNaN(y)?y=.2:y<.15&&(y=.15);var x=Se*.2,z=new go.PathFigure(0,.2*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*b,0,0,(.2-x)*a,(.2-x)*b,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*b,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,.2*a,(.8+x)*b,0,b,(.2-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,b,.8*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*b,a,b,(.8+x)*a,(.8+x)*b,a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*a,(.2-x)*b,a,0,(.8+x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*a));var ee=new go.PathFigure(0,y*a,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b,y*a)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(oe,b,a){var E=new go.Geometry,y=oe?oe.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,b,0)),x.add(new go.PathSegment(go.PathSegment.Line,b,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,y*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b,y*a)),E}),go.Shape.defineFigureGenerator("Document",function(oe,b,a){var E=new go.Geometry;a=a/.8;var y=new go.PathFigure(0,.7*a,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,b,0)),y.add(new go.PathSegment(go.PathSegment.Line,b,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*b,.4*a,.5*b,a).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(oe,b,a){var E=new go.Geometry,y=oe?oe.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,b,0)),x.add(new go.PathSegment(go.PathSegment.Line,b,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(y*b,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,y*a)),z.add(new go.PathSegment(go.PathSegment.Move,b,y*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-y)*b,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*a)),z.add(new go.PathSegment(go.PathSegment.Line,y*b,a)),z.add(new go.PathSegment(go.PathSegment.Move,(1-y)*b,a)),z.add(new go.PathSegment(go.PathSegment.Line,b,(1-y)*a)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(.5*b,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var x=new go.PathFigure(.1*b,.4*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*b,.6*a)),x.add(new go.PathSegment(go.PathSegment.Move,.9*b,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*b,.4*a)),x.add(new go.PathSegment(go.PathSegment.Move,.6*b,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*b,.1*a)),x.add(new go.PathSegment(go.PathSegment.Move,.4*b,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*b,.9*a)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,b,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,b,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(.75*b,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*b,.25*a)),x.add(new go.PathSegment(go.PathSegment.Line,b,.25*a)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(b,.5*a,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,b,.5*a));var x=new go.PathFigure(b,.5*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b,a));var z=new go.PathFigure(b,.5*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(oe,b,a){var E=new go.Geometry,y=oe?oe.parameter1:NaN,x=oe?oe.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,b,0)),z.add(new go.PathSegment(go.PathSegment.Line,b,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ee=new go.PathFigure(y*b,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*b,a)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*a)),ee.add(new go.PathSegment(go.PathSegment.Line,b,x*a)),E}),go.Shape.defineFigureGenerator("Junction",function(oe,b,a){var E=new go.Geometry,y=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=Se*.5,ee=.5,te=new go.PathFigure(b,ee*a,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*b,a,b,(ee+z)*a,(ee+z)*b,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*a,(ee-z)*b,a,0,(ee+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*b,0,0,(ee-z)*a,(ee-z)*b,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,b,ee*a,(ee+z)*b,0,b,(ee-z)*a));var ue=new go.PathFigure((x+y)*b,(x+y)*a,!1);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,x*b,x*a)),ue.add(new go.PathSegment(go.PathSegment.Move,x*b,(x+y)*a)),ue.add(new go.PathSegment(go.PathSegment.Line,(x+y)*b,x*a)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(oe,b,a){var E=new go.Geometry;a=a/.8;var y=new go.PathFigure(0,.7*a,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,b,0)),y.add(new go.PathSegment(go.PathSegment.Line,b,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*b,.4*a,.5*b,a).close());var x=new go.PathFigure(.1*b,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*b,.75*a)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,a,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,.25*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,b,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,b,a).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(oe,b,a){var E=new go.Geometry,y=Se*.5,x=.5,z=new go.PathFigure(.5*b,a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-y)*b,a,0,(x+y)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*b,0,0,(x-y)*a,(x-y)*b,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,x*a,(x+y)*b,0,b,(x-y)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*b,.9*a,b,(x+y)*a,(x+y)*b,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,b,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,b,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*b,a)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(b,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,b,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(oe,b,a){var E=new go.Geometry,y=oe?oe.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,b,0)),x.add(new go.PathSegment(go.PathSegment.Line,y*b,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,b,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(oe,b,a){var E=new go.Geometry,y=oe?oe.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*b,y*a)),x.add(new go.PathSegment(go.PathSegment.Line,b,0)),x.add(new go.PathSegment(go.PathSegment.Line,b,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*b,(1-y)*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(oe,b,a){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*b,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,b,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,b,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*b,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(oe,b,a){var E=new go.Geometry;a=a/.8;var y=new go.PathFigure(b,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*b,.44*a,.96*b,.47*a,.93*b,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*b,.6*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*b,.54*a,.86*b,.57*a,.83*b,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*b,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.4*b,.4*a,.4*b,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*b,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*b,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*b,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*b,0).close());var x=new go.PathFigure(.1*b,.2*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*b,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*b,.54*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*b,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*b,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*b,.44*a)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(.1*b,.1*a,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*b,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,b,0)),y.add(new go.PathSegment(go.PathSegment.Line,b,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*b,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*b,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*b,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*b,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*b,.2*a).close());var x=new go.PathFigure(.2*b,.1*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*b,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*b,.8*a)),x.add(new go.PathSegment(go.PathSegment.Move,.1*b,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*b,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*b,.9*a)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(oe,b,a){var E=new go.Geometry,y=oe?oe.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,b,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*b,a).close());var ee=new go.PathFigure(.5*y*b,y*a,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*y)*b,y*a)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(oe,b,a){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*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*b,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(oe,b,a){var E=new go.Geometry,y=Se*.5,x=.5,z=new go.PathFigure(b,x*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*b,a,b,(x+y)*a,(x+y)*b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-y)*b,a,0,(x+y)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*b,0,0,(x-y)*a,(x-y)*b,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,x*a,(x+y)*b,0,b,(x-y)*a));var ee=new go.PathFigure(b,.5*a,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*b,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*b,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(oe,b,a){var E=new go.Geometry;a=a/.8;var y=new go.PathFigure(0,.7*a,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.3*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,b,.3*a,.5*b,.6*a,.5*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,b,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*b,.4*a,.5*b,a).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(oe,b,a){var E=new go.Geometry,y=oe?oe.parameter1:NaN,x=oe?oe.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,b,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*b,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,b,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(oe,b,a){var E=new go.Geometry,y=oe?oe.parameter1:NaN,x=oe?oe.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)*b,0)),z.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*b,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(oe,b,a){var E=new go.Geometry,y=oe?oe.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,b,0)),x.add(new go.PathSegment(go.PathSegment.Line,b,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure((1-y)*b,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-y)*b,a)),z.add(new go.PathSegment(go.PathSegment.Move,y*b,0)),z.add(new go.PathSegment(go.PathSegment.Line,y*b,a)),E}),go.Shape.defineFigureGenerator("Process",function(oe,b,a){var E=new go.Geometry,y=oe?oe.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,b,0)),x.add(new go.PathSegment(go.PathSegment.Line,b,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(y*b,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*b,a)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(.5*b,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var x=new go.PathFigure(0,.5*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(oe,b,a){var E=new go.Geometry,y=oe?oe.parameter1:NaN;isNaN(y)&&(y=.25);var x=new go.PathFigure(y*b,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*b,.5*a,.25*b,.5*a)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*b,.5*a,.25*b,.5*a));var z=new go.PathFigure(y*b,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*b,a)),z.add(new go.PathSegment(go.PathSegment.Move,(1-y)*b,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-y)*b,a)),E.spot1=new go.Spot(y,0),E.spot2=new go.Spot(1-y,1),E}),go.Shape.defineFigureGenerator("Terminator",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(.25*b,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*b,.5*a,.25*b,.5*a)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*b,.5*a,.25*b,.5*a)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(oe,b,a){var E=new go.Geometry,y=oe?oe.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,b,0)),x.add(new go.PathSegment(go.PathSegment.Line,b,a)),x.add(new go.PathSegment(go.PathSegment.Line,.75*b,(1-y)*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-y)*a).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(oe,b,a){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*b,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,b,.5*a,(.5+y)*b,0,b,(.5-y)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,a,b,(.5+y)*a,(.5+y)*b,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(oe,b,a){var E=new go.Geometry,y=Se*.5,x=.5,z=new go.PathFigure(b,x*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*b,a,b,(x+y)*a,(x+y)*b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-y)*b,a,0,(x+y)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*b,0,0,(x-y)*a,(x-y)*b,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,x*a,(x+y)*b,0,b,(x-y)*a));var ee=new go.PathFigure(b,x*a,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b,x*a));var te=new go.PathFigure(.8*b,.75*a,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*b,.25*a)),te.add(new go.PathSegment(go.PathSegment.Line,.6*b,.25*a)),te.add(new go.PathSegment(go.PathSegment.Line,.6*b,.75*a)),te.add(new go.PathSegment(go.PathSegment.Line,.4*b,.75*a)),te.add(new go.PathSegment(go.PathSegment.Line,.4*b,.25*a)),te.add(new go.PathSegment(go.PathSegment.Line,.2*b,.25*a)),te.add(new go.PathSegment(go.PathSegment.Line,.2*b,.75*a)),E}),go.Shape.defineFigureGenerator("Ground",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(.5*b,0,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,.4*a)),y.add(new go.PathSegment(go.PathSegment.Move,.2*b,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*b,.6*a)),y.add(new go.PathSegment(go.PathSegment.Move,.3*b,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*b,.8*a)),y.add(new go.PathSegment(go.PathSegment.Move,.4*b,a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*b,a)),E}),go.Shape.defineFigureGenerator("Inverter",function(oe,b,a){var E=new go.Geometry,y=Se*.1,x=.1,z=.9,ee=.5,te=new go.PathFigure(.8*b,.5*a,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,a)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*b,.5*a));var ue=new go.PathFigure((z+x)*b,ee*a,!0);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee+x)*a,(z+x)*b,(ee+y)*a,(z+y)*b,(ee+x)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*b,ee*a,(z-y)*b,(ee+x)*a,(z-x)*b,(ee+y)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee-x)*a,(z-x)*b,(ee-y)*a,(z-y)*b,(ee-x)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*b,ee*a,(z+y)*b,(ee-x)*a,(z+x)*b,(ee-y)*a)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(oe,b,a){var E=new go.Geometry,y=Se*.5,x=Se*.4,z=Se*.1,ee=.1,te=.9,ue=.5,de=new go.PathFigure(.8*b,.5*a,!0);E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,.4*b,a,.8*b,(.5+x)*a,(.4+y)*b,a)),de.add(new go.PathSegment(go.PathSegment.Line,0,a)),de.add(new go.PathSegment(go.PathSegment.Line,0,0)),de.add(new go.PathSegment(go.PathSegment.Line,.4*b,0)),de.add(new go.PathSegment(go.PathSegment.Bezier,.8*b,.5*a,(.4+y)*b,0,.8*b,(.5-x)*a));var se=new go.PathFigure((te+ee)*b,ue*a,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,te*b,(ue+ee)*a,(te+ee)*b,(ue+z)*a,(te+z)*b,(ue+ee)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*b,ue*a,(te-z)*b,(ue+ee)*a,(te-ee)*b,(ue+z)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*b,(ue-ee)*a,(te-ee)*b,(ue-z)*a,(te-z)*b,(ue-ee)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*b,ue*a,(te+z)*b,(ue-ee)*a,(te+ee)*b,(ue-z)*a)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(oe,b,a){var E=new go.Geometry,y=.5,x=Se*y,z=0,ee=.5,te=new go.PathFigure(.8*b,.5*a,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.7*b,(ee+x)*a,(z+x)*b,(ee+y)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*b,.75*a,.25*b,.25*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*b,.5*a,(z+x)*b,(ee-y)*a,.7*b,(ee-x)*a)),y=.1,x=Se*.1,z=.9,ee=.5;var ue=new go.PathFigure((z-y)*b,ee*a,!0);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee-y)*a,(z-y)*b,(ee-x)*a,(z-x)*b,(ee-y)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*b,ee*a,(z+x)*b,(ee-y)*a,(z+y)*b,(ee-x)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee+y)*a,(z+y)*b,(ee+x)*a,(z+x)*b,(ee+y)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*b,ee*a,(z-x)*b,(ee+y)*a,(z-y)*b,(ee+x)*a)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(oe,b,a){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,b,.5*a,(z+x+x)*b,(ee-y)*a,.8*b,(ee-x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.8*b,(ee+x)*a,(z+x+x)*b,(ee+y)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*b,.75*a,.25*b,.25*a).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(oe,b,a){var E=new go.Geometry,y=.5,x=Se*y,z=.2,ee=.5,te=new go.PathFigure(.1*b,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*b,a,.35*b,.25*a,.35*b,.75*a));var ue=new go.PathFigure(.8*b,.5*a,!0);E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.2*b,a,.7*b,(ee+x)*a,(z+x)*b,(ee+y)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.2*b,0,.45*b,.75*a,.45*b,.25*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.8*b,.5*a,(z+x)*b,(ee-y)*a,.7*b,(ee-x)*a)),y=.1,x=Se*.1,z=.9,ee=.5;var de=new go.PathFigure((z-y)*b,ee*a,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee-y)*a,(z-y)*b,(ee-x)*a,(z-x)*b,(ee-y)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*b,ee*a,(z+x)*b,(ee-y)*a,(z+y)*b,(ee-x)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee+y)*a,(z+y)*b,(ee+x)*a,(z+x)*b,(ee+y)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*b,ee*a,(z-x)*b,(ee+y)*a,(z-y)*b,(ee+x)*a)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(oe,b,a){var E=new go.Geometry,y=.5,x=Se*y,z=.2,ee=.5,te=new go.PathFigure(.1*b,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*b,a,.35*b,.25*a,.35*b,.75*a));var ue=new go.PathFigure(.2*b,0,!0);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,b,.5*a,(z+x)*b,(ee-y)*a,.9*b,(ee-x)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.2*b,a,.9*b,(ee+x)*a,(z+x)*b,(ee+y)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.2*b,0,.45*b,.75*a,.45*b,.25*a).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(oe,b,a){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,a)),y.add(new go.PathSegment(go.PathSegment.Move,b,0)),y.add(new go.PathSegment(go.PathSegment.Line,b,a)),E}),go.Shape.defineFigureGenerator("Resistor",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,.5*a,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.1*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,.2*b,a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,.4*b,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*b,a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*b,.5*a)),E}),go.Shape.defineFigureGenerator("Inductor",function(oe,b,a){var E=new go.Geometry,y=Se*.1,x=.1,z=.1,ee=.5,te=new go.PathFigure((z-y*.5)*b,a,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*b,0,(z-y)*b,a,(z-x)*b,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*b,a,(z+x)*b,0,(z+y)*b,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*b,0,(z-y)*b,a,(z-x)*b,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*b,a,(z+x)*b,0,(z+y)*b,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*b,0,(z-y)*b,a,(z-x)*b,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*b,a,(z+x)*b,0,(z+y)*b,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*b,0,(z-y)*b,a,(z-x)*b,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+y*.5)*b,a,(z+x)*b,0,(z+y)*b,a)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(oe,b,a){var E=new go.Geometry,y=Se*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure((z-x)*b,ee*a,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee-x)*a,(z-x)*b,(ee-y)*a,(z-y)*b,(ee-x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*b,ee*a,(z+y)*b,(ee-x)*a,(z+x)*b,(ee-y)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee+x)*a,(z+x)*b,(ee+y)*a,(z+y)*b,(ee+x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*b,ee*a,(z-y)*b,(ee+x)*a,(z-x)*b,(ee+y)*a)),te.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*b,ee*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*b,ee*a,z*b,(ee-x)*a,z*b,(ee+x)*a)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,.75*a,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),y.add(new go.PathSegment(go.PathSegment.Move,b,0)),y.add(new go.PathSegment(go.PathSegment.Line,b,a)),E}),go.Shape.defineFigureGenerator("Diode",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(b,0,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,b,a)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(oe,b,a){var E=new go.Geometry,y=b,x=a;b=b*.38,a=a*.6;var z=Se*.8,ee=.8,te=0,ue=.5,de=(y-b)/2,se=(x-a)/2,Ee=new go.PathFigure(te*b+de,(ue+ee)*a+se,!0);E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*b+de,ue*a+se,(te-z)*b+de,(ue+ee)*a+se,(te-ee)*b+de,(ue+z)*a+se)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,te*b+de,(ue-ee)*a+se,(te-ee)*b+de,(ue-z)*a+se,(te-z)*b+de,(ue-ee)*a+se)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*b+de,ue*a+se,te*b+de,(ue-ee)*a+se,(te-ee+z*.5)*b+de,(ue-z)*a+se)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,te*b+de,(ue+ee)*a+se,(te-ee+z*.5)*b+de,(ue+z)*a+se,te*b+de,(ue+ee)*a+se).close()),z=Se*.4,ee=.4,te=.2,ue=.5;var pe=new go.PathFigure(te*b+de,(ue+ee)*a+se,!0);E.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*b+de,ue*a+se,(te-z)*b+de,(ue+ee)*a+se,(te-ee)*b+de,(ue+z)*a+se)),pe.add(new go.PathSegment(go.PathSegment.Bezier,te*b+de,(ue-ee)*a+se,(te-ee)*b+de,(ue-z)*a+se,(te-z)*b+de,(ue-ee)*a+se)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*b+de,ue*a+se,te*b+de,(ue-ee)*a+se,(te-ee+z*.5)*b+de,(ue-z)*a+se)),pe.add(new go.PathSegment(go.PathSegment.Bezier,te*b+de,(ue+ee)*a+se,(te-ee+z*.5)*b+de,(ue+z)*a+se,te*b+de,(ue+ee)*a+se).close()),z=Se*.2,ee=.2,te=.5,ue=.5;var he=new go.PathFigure((te-ee)*b+de,ue*a+se,!0);E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,te*b+de,(ue-ee)*a+se,(te-ee)*b+de,(ue-z)*a+se,(te-z)*b+de,(ue-ee)*a+se)),he.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*b+de,ue*a+se,(te+z)*b+de,(ue-ee)*a+se,(te+ee)*b+de,(ue-z)*a+se)),he.add(new go.PathSegment(go.PathSegment.Bezier,te*b+de,(ue+ee)*a+se,(te+ee)*b+de,(ue+z)*a+se,(te+z)*b+de,(ue+ee)*a+se)),he.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*b+de,ue*a+se,(te-z)*b+de,(ue+ee)*a+se,(te-ee)*b+de,(ue+z)*a+se)),z=Se*.4,ee=.4,te=.8,ue=.5;var ke=new go.PathFigure(te*b+de,(ue-ee)*a+se,!0);E.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*b+de,ue*a+se,(te+z)*b+de,(ue-ee)*a+se,(te+ee)*b+de,(ue-z)*a+se)),ke.add(new go.PathSegment(go.PathSegment.Bezier,te*b+de,(ue+ee)*a+se,(te+ee)*b+de,(ue+z)*a+se,(te+z)*b+de,(ue+ee)*a+se)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*b+de,ue*a+se,te*b+de,(ue+ee)*a+se,(te+ee-z*.5)*b+de,(ue+z)*a+se)),ke.add(new go.PathSegment(go.PathSegment.Bezier,te*b+de,(ue-ee)*a+se,(te+ee-z*.5)*b+de,(ue-z)*a+se,te*b+de,(ue-ee)*a+se).close()),z=Se*.8,ee=.8,te=1,ue=.5;var rt=new go.PathFigure(te*b+de,(ue-ee)*a+se,!0);return E.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*b+de,ue*a+se,(te+z)*b+de,(ue-ee)*a+se,(te+ee)*b+de,(ue-z)*a+se)),rt.add(new go.PathSegment(go.PathSegment.Bezier,te*b+de,(ue+ee)*a+se,(te+ee)*b+de,(ue+z)*a+se,(te+z)*b+de,(ue+ee)*a+se)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*b+de,ue*a+se,te*b+de,(ue+ee)*a+se,(te+ee-z*.5)*b+de,(ue+z)*a+se)),rt.add(new go.PathSegment(go.PathSegment.Bezier,te*b+de,(ue-ee)*a+se,(te+ee-z*.5)*b+de,(ue-z)*a+se,te*b+de,(ue-ee)*a+se).close()),E}),go.Shape.defineFigureGenerator("Email",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,b,0)),y.add(new go.PathSegment(go.PathSegment.Line,b,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),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*b,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,b,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,.45*b,.54*a)),x.add(new go.PathSegment(go.PathSegment.Move,b,a)),x.add(new go.PathSegment(go.PathSegment.Line,.55*b,.54*a)),E}),go.Shape.defineFigureGenerator("Ethernet",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(.35*b,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.65*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,.65*b,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*b,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*b,0).close());var x=new go.PathFigure(.1*b,a,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*b,a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*b,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*b,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*b,a).close());var z=new go.PathFigure(.6*b,a,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*b,a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*b,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*b,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*b,a).close());var ee=new go.PathFigure(0,.5*a,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*b,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*b,.4*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*b,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*b,.6*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*b,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*b,.6*a)),E}),go.Shape.defineFigureGenerator("Power",function(oe,b,a){var E=new go.Geometry,y=Se*.4,x=.4,z=.5,ee=.5,te=ae(),ue=ae(),de=ae(),se=ae();st(z,ee-x,z+y,ee-x,z+x,ee-y,z+x,ee,.5,te,te,ue,de,se);var Ee=ie(ue.x,ue.y),pe=new go.PathFigure(ue.x*b,ue.y*a,!0);E.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*b,ee*a,de.x*b,de.y*a,se.x*b,se.y*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee+x)*a,(z+x)*b,(ee+y)*a,(z+y)*b,(ee+x)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*b,ee*a,(z-y)*b,(ee+x)*a,(z-x)*b,(ee+y)*a)),st(z-x,ee,z-x,ee-y,z-y,ee-x,z,ee-x,.5,de,se,ue,te,te),pe.add(new go.PathSegment(go.PathSegment.Bezier,ue.x*b,ue.y*a,de.x*b,de.y*a,se.x*b,se.y*a)),y=Se*.3,x=.3,st(z-x,ee,z-x,ee-y,z-y,ee-x,z,ee-x,.5,de,se,ue,te,te),pe.add(new go.PathSegment(go.PathSegment.Line,ue.x*b,ue.y*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*b,ee*a,se.x*b,se.y*a,de.x*b,de.y*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee+x)*a,(z-x)*b,(ee+y)*a,(z-y)*b,(ee+x)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*b,ee*a,(z+y)*b,(ee+x)*a,(z+x)*b,(ee+y)*a)),st(z,ee-x,z+y,ee-x,z+x,ee-y,z+x,ee,.5,te,te,ue,de,se),pe.add(new go.PathSegment(go.PathSegment.Bezier,ue.x*b,ue.y*a,se.x*b,se.y*a,de.x*b,de.y*a).close());var pe=new go.PathFigure(.45*b,0,!0);return E.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.45*b,.5*a)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*b,.5*a)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*b,0).close()),ge(te),ge(ue),ge(de),ge(se),ge(Ee),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,a/2,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,180,360,b/2,a/2,b/2,a/2));function x(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*b,(.8+te)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*b,(.5+te)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*b,(.5+te)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*b,(.8+te)*a).close())}return x(y,0,0),x(y,.4,0),x(y,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(.2*b,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,.3*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,b,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*b,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,b,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*b,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*b,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*b,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(.37*b,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,.11*a)),y.add(new go.PathSegment(go.PathSegment.Line,.77*b,.04*a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*b,.49*a)),y.add(new go.PathSegment(go.PathSegment.Line,b,.37*a)),y.add(new go.PathSegment(go.PathSegment.Line,.63*b,.86*a)),y.add(new go.PathSegment(go.PathSegment.Line,.77*b,.91*a)),y.add(new go.PathSegment(go.PathSegment.Line,.34*b,a)),y.add(new go.PathSegment(go.PathSegment.Line,.34*b,.78*a)),y.add(new go.PathSegment(go.PathSegment.Line,.44*b,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*b,.56*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.68*a).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(.1*b,a,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.29*b,0,-.25*b,.63*a,.45*b,.44*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.51*b,.42*a,.48*b,.17*a,.54*b,.35*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.59*b,.18*a,.59*b,.29*a,.58*b,.28*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*b,.6*a,.8*b,.34*a,.88*b,.43*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.88*b,.31*a,.87*b,.48*a,.88*b,.43*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*b,a,1.17*b,.76*a,.82*b,.8*a).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(oe,b,a){var E=new go.Geometry,y=.5,x=0,z=0,ee=y*Se,te=.4*Math.SQRT2/2+.5,ue=.5-.5*Math.SQRT2/2,de=1,se=.5,Ee=.5,pe=0,he=new go.PathFigure(te*b,(1-ue)*a,!1);return E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,de*b,se*a,de*b,.7*a,de*b,se*a)),he.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+x)*b,(pe+x)*a,(.5+y+x)*b,(.5-ee+x)*a,(.5+ee+x)*b,(.5-y+x)*a)),he.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+x)*b,(.5+z)*a,(.5-ee+x)*b,(.5-y+z)*a,(.5-y+x)*b,(.5-ee+z)*a)),he.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*b,.9*a,(.5-y+x)*b,(.5+ee+z)*a,(.5-ee+x)*b,.9*a)),he.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*b,.8*a)),he.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*b,.9*a)),he.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*b,.95*a)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(oe,b,a){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,a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,a)),y.add(new go.PathSegment(go.PathSegment.Move,b,0)),y.add(new go.PathSegment(go.PathSegment.Line,b,a)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,0,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,b,0)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),y.add(new go.PathSegment(go.PathSegment.Move,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,b,a)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,0,!1);E.add(y);var x=new go.PathFigure(b,a,!1);E.add(x);var z=new go.PathFigure(0,.5*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,.5*a,.2*b,.35*a,.3*b,.35*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,.5*a,.7*b,.65*a,.8*b,.65*a)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,b,a)),y.add(new go.PathSegment(go.PathSegment.Line,b,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,a).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,.2*a,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,b,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,b,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a).close());var y=new go.PathFigure(0,.2*a,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,b,.2*a)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(.7*b,a,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*b,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*b,0,.6*b,.5*a,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*b,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*b,a,.4*b,.5*a,b,.5*a).close());var x=new go.PathFigure(.45*b,.73*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*b,.73*a)),x.add(new go.PathSegment(go.PathSegment.Move,.38*b,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.63*b,.5*a)),x.add(new go.PathSegment(go.PathSegment.Move,.31*b,.27*a)),x.add(new go.PathSegment(go.PathSegment.Line,.56*b,.27*a)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,0,!1);E.add(y);var x=new go.PathFigure(.335*b,(1-.555)*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*b,(1-.405)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*b,(1-.405)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*b,(1-.555)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,b,.68*a,(1-.12)*b,.46*a,(1-.02)*b,.54*a)),x.add(new go.PathSegment(go.PathSegment.Line,b,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*b,(1-.555)*a,.02*b,.54*a,.12*b,.46*a)),x.add(new go.PathSegment(go.PathSegment.Line,.365*b,(1-.595)*a));var z=.5-.285,ee=.5,te=z,ue=Math.PI/4,de=4*(1-Math.cos(ue))/(3*Math.sin(ue)),se=de*.5,Ee=z,pe=z,he=de*Ee,ke=de*pe;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-Ee)*b,te*a,(ee-(he+Ee)/2)*b,(te+(pe+ke)/2)*a,(ee-Ee)*b,(te+ke)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*b,(te-pe)*a,(ee-Ee)*b,(te-ke)*a,(ee-he)*b,(te-pe)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+Ee)*b,te*a,(ee+he)*b,(te-pe)*a,(ee+Ee)*b,(te-ke)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*b,(1-.595)*a,(ee+Ee)*b,(te+ke)*a,(ee+(he+Ee)/2)*b,(te+(pe+ke)/2)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*b,(1-.595)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*b,(1-.555)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*b,(1-.405)*a)),x.add(new go.PathSegment(go.PathSegment.Line,.335*b,(1-.405)*a));var rt=new go.PathFigure(.2*b,a,!1);E.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.2*b,.8*a));var We=new go.PathFigure(.8*b,a,!1);return E.add(We),We.add(new go.PathSegment(go.PathSegment.Line,.8*b,.8*a)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(.1*b,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.9*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*b,a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*b,a).close());var x=new go.PathFigure(.2*b,.2*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*b,.2*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*b,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*b,.4*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*b,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*b,.6*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*b,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*b,.8*a)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,a,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.33*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*b,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,b,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*b,a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*b,.5*a).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,0,!1);E.add(y);var x=new go.PathFigure(b,a,!1);E.add(x);var z=new go.PathFigure(.1*b,a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*b,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*b,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*b,.5*a).close()),E}),go.Shape.defineFigureGenerator("Caution",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(.05*b,a,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*b,.8*a,0,a,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*b,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.55*b,.1*a,.5*b,0,.5*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,.95*b,.9*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*b,a,b,a,b,a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*b,a));var x=.05;return y.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*b,.875*a)),y.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*b,.875*a,x*b,x*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*b,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,.325*a,.575*b,.725*a,.625*b,.375*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,.75*a,.375*b,.375*a,.425*b,.725*a)),E}),go.Shape.defineFigureGenerator("Recycle",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(.45*b,.95*a,!1);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*b,.95*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.185*b,.85*a,.17*b,.95*a,.15*b,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.235*b,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*b,.625*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*b,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,.275*b,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*b,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*b,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*b,.575*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.1875*b,.95*a,0,.675*a,0,.7*a)),y.add(new go.PathSegment(go.PathSegment.Move,.45*b,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*b,.775*a)),y.add(new go.PathSegment(go.PathSegment.Line,.22*b,.775*a));var x=new go.PathFigure(.475*b,.2*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*b,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.225*b,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,.275*b,.175*a)),x.add(new go.PathSegment(go.PathSegment.Line,.325*b,.05*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*b,.05*a,.35*b,0,.375*b,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*b,.375*a)),x.add(new go.PathSegment(go.PathSegment.Line,.525*b,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.75*b,.475*a)),x.add(new go.PathSegment(go.PathSegment.Line,.85*b,.315*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*b,.32*a)),x.add(new go.PathSegment(go.PathSegment.Line,.65*b,.05*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*b,0,.65*b,.05*a,.625*b,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*b,.0105*a));var z=new go.PathFigure(.675*b,.575*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*b,.525*a)),z.add(new go.PathSegment(go.PathSegment.Line,b,.775*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*b,.95*a,b,.8*a,b,.85*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*b,.95*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*b,a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*b,.85*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*b,.725*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*b,.775*a)),z.add(new go.PathSegment(go.PathSegment.Line,.7*b,.775*a)),z.add(new go.PathSegment(go.PathSegment.Line,b,.775*a)),z.add(new go.PathSegment(go.PathSegment.Move,.675*b,.575*a)),z.add(new go.PathSegment(go.PathSegment.Line,.775*b,.775*a)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(oe,b,a){var E=new go.Geometry,y=.5,x=Se*.5,z=new go.PathFigure(b,y*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,y*b,a,b,(y+x)*a,(y+x)*b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y*a,(y-x)*b,a,0,(y+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y*b,0,0,(y-x)*a,(y-x)*b,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,y*a,(y+x)*b,0,b,(y-x)*a));var ee=new go.PathFigure(y*b,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*b,.15*a)),ee.add(new go.PathSegment(go.PathSegment.Move,y*b,a)),ee.add(new go.PathSegment(go.PathSegment.Line,y*b,.85*a)),ee.add(new go.PathSegment(go.PathSegment.Move,0,y*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*b,y*a)),ee.add(new go.PathSegment(go.PathSegment.Move,b,y*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*b,y*a)),ee.add(new go.PathSegment(go.PathSegment.Move,y*b,y*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*b,.1*a)),ee.add(new go.PathSegment(go.PathSegment.Move,y*b,y*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*b,.54*a)),E}),go.Shape.defineFigureGenerator("Package",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,.15*a,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,b,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,b,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(0,.15*a,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*b,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*b,.15*a).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,b,0)),y.add(new go.PathSegment(go.PathSegment.Line,b,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b,.2*a).close());var z=new go.PathFigure(0,.5*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b,.5*a).close()),E}),go.Shape.defineFigureGenerator("Component",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(b,a,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,b,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*b,a)),y.add(new go.PathSegment(go.PathSegment.Line,b,a).close());var x=new go.PathFigure(0,.2*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*b,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.45*b,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close());var z=new go.PathFigure(0,.6*a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*b,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*b,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*a).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(.15*b,.6*a,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.15*b,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.15*b,a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*b,a)),y.add(new go.PathSegment(go.PathSegment.Line,b,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*b,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*b,.6*a));var x=new go.PathFigure(.15*b,.6*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*b,.6*a)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(b,a,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,b,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*b,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,.66*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,.33*b,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,b,a).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,a,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,b,0)),y.add(new go.PathSegment(go.PathSegment.Line,b,a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*b,a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*b,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*b,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*b,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,0,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,b,0)),y.add(new go.PathSegment(go.PathSegment.Line,b,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),y.add(new go.PathSegment(go.PathSegment.Move,b,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,b,.66*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.66*a)),y.add(new go.PathSegment(go.PathSegment.Move,b,.66*a)),y.add(new go.PathSegment(go.PathSegment.Line,b,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.6*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*b,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(b,.8*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*b,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*b,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,b,.8*a).close());var z=.1,ee=Se*.1,te=.2,ue=.9,de=new go.PathFigure((te-z)*b,ue*a,!0);E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,te*b,(ue-z)*a,(te-z)*b,(ue-ee)*a,(te-ee)*b,(ue-z)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*b,ue*a,(te+ee)*b,(ue-z)*a,(te+z)*b,(ue-ee)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,te*b,(ue+z)*a,(te+z)*b,(ue+ee)*a,(te+ee)*b,(ue+z)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*b,ue*a,(te-ee)*b,(ue+z)*a,(te-z)*b,(ue+ee)*a).close()),z=.1,ee=Se*.1,te=.8,ue=.9;var se=new go.PathFigure((te-z)*b,ue*a,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,te*b,(ue-z)*a,(te-z)*b,(ue-ee)*a,(te-ee)*b,(ue-z)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*b,ue*a,(te+ee)*b,(ue-z)*a,(te+z)*b,(ue-ee)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*b,(ue+z)*a,(te+z)*b,(ue+ee)*a,(te+ee)*b,(ue+z)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*b,ue*a,(te-ee)*b,(ue+z)*a,(te-z)*b,(ue+ee)*a).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(.2*b,0,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*b,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*b,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*b,0)),y.add(new go.PathSegment(go.PathSegment.Move,.5*b,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*b,a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*b,a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*b,a)),E}),go.Shape.defineFigureGenerator("Forklift",function(oe,b,a){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*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*b,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*b,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.5*b,.8*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*b,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*b,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*b,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*b,.8*a));var ee=new go.PathFigure(.5*b,.7*a,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b,.7*a));var te=.1,ue=Se*.1,de=.1,se=.9,Ee=new go.PathFigure((de-te)*b,se*a,!0);E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,de*b,(se-te)*a,(de-te)*b,(se-ue)*a,(de-ue)*b,(se-te)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(de+te)*b,se*a,(de+ue)*b,(se-te)*a,(de+te)*b,(se-ue)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,de*b,(se+te)*a,(de+te)*b,(se+ue)*a,(de+ue)*b,(se+te)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(de-te)*b,se*a,(de-ue)*b,(se+te)*a,(de-te)*b,(se+ue)*a)),te=.1,ue=Se*.1,de=.4,se=.9;var pe=new go.PathFigure((de-te)*b,se*a,!0);return E.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,de*b,(se-te)*a,(de-te)*b,(se-ue)*a,(de-ue)*b,(se-te)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(de+te)*b,se*a,(de+ue)*b,(se-te)*a,(de+te)*b,(se-ue)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,de*b,(se+te)*a,(de+te)*b,(se+ue)*a,(de+ue)*b,(se+te)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(de-te)*b,se*a,(de-ue)*b,(se+te)*a,(de-te)*b,(se+ue)*a)),E}),go.Shape.defineFigureGenerator("RailShipment",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(.1*b,.4*a,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.45*b,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*b,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*b,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*b,.4*a).close());var x=new go.PathFigure(.45*b,.7*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*b,.7*a));var z=new go.PathFigure(.55*b,.4*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*b,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*b,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*b,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*b,.4*a).close());var de=.05,se=Se*.05,Ee=.175,pe=.95,ee=new go.PathFigure((Ee-de)*b,pe*a,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,Ee*b,(pe-de)*a,(Ee-de)*b,(pe-se)*a,(Ee-se)*b,(pe-de)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+de)*b,pe*a,(Ee+se)*b,(pe-de)*a,(Ee+de)*b,(pe-se)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,Ee*b,(pe+de)*a,(Ee+de)*b,(pe+se)*a,(Ee+se)*b,(pe+de)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-de)*b,pe*a,(Ee-se)*b,(pe+de)*a,(Ee-de)*b,(pe+se)*a));var de=.05,se=Se*.05,Ee=.375,pe=.95,te=new go.PathFigure((Ee-de)*b,pe*a,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,Ee*b,(pe-de)*a,(Ee-de)*b,(pe-se)*a,(Ee-se)*b,(pe-de)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+de)*b,pe*a,(Ee+se)*b,(pe-de)*a,(Ee+de)*b,(pe-se)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,Ee*b,(pe+de)*a,(Ee+de)*b,(pe+se)*a,(Ee+se)*b,(pe+de)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-de)*b,pe*a,(Ee-se)*b,(pe+de)*a,(Ee-de)*b,(pe+se)*a));var de=.05,se=Se*.05,Ee=.625,pe=.95,ue=new go.PathFigure((Ee-de)*b,pe*a,!0);E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,Ee*b,(pe-de)*a,(Ee-de)*b,(pe-se)*a,(Ee-se)*b,(pe-de)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+de)*b,pe*a,(Ee+se)*b,(pe-de)*a,(Ee+de)*b,(pe-se)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,Ee*b,(pe+de)*a,(Ee+de)*b,(pe+se)*a,(Ee+se)*b,(pe+de)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-de)*b,pe*a,(Ee-se)*b,(pe+de)*a,(Ee-de)*b,(pe+se)*a));var de=.05,se=Se*.05,Ee=.825,pe=.95,he=new go.PathFigure((Ee-de)*b,pe*a,!0);E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,Ee*b,(pe-de)*a,(Ee-de)*b,(pe-se)*a,(Ee-se)*b,(pe-de)*a)),he.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+de)*b,pe*a,(Ee+se)*b,(pe-de)*a,(Ee+de)*b,(pe-se)*a)),he.add(new go.PathSegment(go.PathSegment.Bezier,Ee*b,(pe+de)*a,(Ee+de)*b,(pe+se)*a,(Ee+se)*b,(pe+de)*a)),he.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-de)*b,pe*a,(Ee-se)*b,(pe+de)*a,(Ee-de)*b,(pe+se)*a).close());var ke=new go.PathFigure(0,a,!1);return E.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,b,a).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,b,0)),y.add(new go.PathSegment(go.PathSegment.Line,b,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b,.2*a).close());var z=new go.PathFigure(.15*b,a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*b,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*b,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*b,a)),z.add(new go.PathSegment(go.PathSegment.Line,.15*b,a).close());var ee=.05,te=Se*.05,ue=.35,de=.775,se=new go.PathFigure((ue-ee)*b,de*a,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ue*b,(de-ee)*a,(ue-ee)*b,(de-te)*a,(ue-te)*b,(de-ee)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ee)*b,de*a,(ue+te)*b,(de-ee)*a,(ue+ee)*b,(de-te)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,ue*b,(de+ee)*a,(ue+ee)*b,(de+te)*a,(ue+te)*b,(de+ee)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ee)*b,de*a,(ue-te)*b,(de+ee)*a,(ue-ee)*b,(de+te)*a).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,a,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*b,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*b,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,b,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,b,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,.1*b,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*b,.8*a).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,.75*a,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,b,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,a)),y.add(new go.PathSegment(go.PathSegment.Line,b,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),E}),go.Shape.defineFigureGenerator("Bookmark",function(oe,b,a){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,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,b,a)),y.add(new go.PathSegment(go.PathSegment.Line,b,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*b,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*b,.2*a)),y.add(new go.PathSegment(go.PathSegment.Move,.2*b,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*b,.4*a)),E}),go.Shape.defineFigureGenerator("Bookmark",function(oe,b,a){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,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,b,a)),y.add(new go.PathSegment(go.PathSegment.Line,b,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*b,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*b,.2*a)),y.add(new go.PathSegment(go.PathSegment.Move,.2*b,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*b,.4*a)),E}),go.Shape.defineFigureGenerator("Globe",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(.5*b,0,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,a)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*b,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,b,.5*a,.75*b,0,b,.25*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,a,b,.75*a,.75*b,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.25*b,a,0,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,0,0,.25*a,.25*b,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,a,.15*b,.25*a,.15*b,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,0,.85*b,.75*a,.85*b,.25*a)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*b,.15*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*b,.15*a,.35*b,.3*a,.65*b,.3*a)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*b,.85*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*b,.85*a,.35*b,.7*a,.65*b,.7*a)),E}),go.Shape.defineFigureGenerator("Wave",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,.25*a,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*b,.25*a,.1*b,0,.2*b,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*b,.25*a,.425*b,.5*a,.575*b,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,b,.25*a,.8*b,0,.9*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,b,.75*a)),y.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*b,.75*a,.1*b,.5*a,.2*b,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*b,.75*a,.425*b,a,.575*b,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,b,.75*a,.8*b,.5*a,.9*b,.5*a)),E}),go.Shape.defineFigureGenerator("Operator",function(oe,b,a){var E=new go.Geometry,y=.3,x=Se*.3,z=.5,ee=.7,te=new go.PathFigure((z-y)*b,ee*a,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee-y)*a,(z-y)*b,(ee-x)*a,(z-x)*b,(ee-y)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*b,ee*a,(z+x)*b,(ee-y)*a,(z+y)*b,(ee-x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee+y)*a,(z+y)*b,(ee+x)*a,(z+x)*b,(ee+y)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*b,ee*a,(z-x)*b,(ee+y)*a,(z-y)*b,(ee+x)*a));var ue=new go.PathFigure(0,.7*a,!1);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,b,.7*a,0,0,b,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(.5*b,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,.65*a,.65*b,.3*a,.65*b,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,0,.35*b,.5*a,.35*b,.3*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*b,.65*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.3*b,.6*a,.1*b,.8*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,.65*a,.2*b,a,.35*b,.95*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*b,.65*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,b,a,.7*b,.6*a,.9*b,.8*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,.65*a,.8*b,a,.65*b,.95*a)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(b,0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.4*b,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,0,.075*a,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*b,a,0,a,.4*b,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*b,.4*a,.8*b,a,.85*b,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,b,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,b,0)),E}),go.Shape.defineFigureGenerator("Battery",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,a,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,b,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,b,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,.4*b,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*b,.1*a));var x=new go.PathFigure(0,.6*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,b,.4*a)),E}),go.Shape.defineFigureGenerator("Delete",function(oe,b,a){var E=new go.Geometry,y=.5,x=Se*.5,z=.5,ee=.5,te=new go.PathFigure((z-y)*b,ee*a,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee-y)*a,(z-y)*b,(ee-x)*a,(z-x)*b,(ee-y)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*b,ee*a,(z+x)*b,(ee-y)*a,(z+y)*b,(ee-x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee+y)*a,(z+y)*b,(ee+x)*a,(z+x)*b,(ee+y)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*b,ee*a,(z-x)*b,(ee+y)*a,(z-y)*b,(ee+x)*a));var ue=new go.PathFigure(.15*b,.5*a,!1);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.85*b,.5*a)),E}),go.Shape.defineFigureGenerator("Flag",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,.1*a,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,0,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,.1*a,.15*b,0,.35*b,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,b,.1*a,.65*b,.2*a,.85*b,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,.5*a,.85*b,.6*a,.65*b,.6*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.35*b,.4*a,.15*b,.4*a).close()),E}),go.Shape.defineFigureGenerator("Help",function(oe,b,a){var E=new go.Geometry,y=.5,x=Se*.5,z=.5,ee=.5,te=new go.PathFigure((z-y)*b,ee*a,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee-y)*a,(z-y)*b,(ee-x)*a,(z-x)*b,(ee-y)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*b,ee*a,(z+x)*b,(ee-y)*a,(z+y)*b,(ee-x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee+y)*a,(z+y)*b,(ee+x)*a,(z+x)*b,(ee+y)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*b,ee*a,(z-x)*b,(ee+y)*a,(z-y)*b,(ee+x)*a).close()),y=.05,x=Se*.05,z=.5,ee=.8;var ue=new go.PathFigure((z-y)*b,ee*a,!1);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee-y)*a,(z-y)*b,(ee-x)*a,(z-x)*b,(ee-y)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*b,ee*a,(z+x)*b,(ee-y)*a,(z+y)*b,(ee-x)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee+y)*a,(z+y)*b,(ee+x)*a,(z+x)*b,(ee+y)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*b,ee*a,(z-x)*b,(ee+y)*a,(z-y)*b,(ee+x)*a).close()),ue.add(new go.PathSegment(go.PathSegment.Move,.5*b,.7*a)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*b,.5*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,.2*a,.75*b,.475*a,.75*b,.225*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.3*b,.35*a,.4*b,.2*a,.3*b,.25*a)),E}),go.Shape.defineFigureGenerator("Location",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(.5*b,a,!0).add(new go.PathSegment(go.PathSegment.Line,.75*b,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*b,0,.975*b,.025*a,.5*b,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*b,.5*a,.5*b,0,.025*b,.025*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*b,.2*a)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*b,.3*a,.1*b,.1*a).close()))}),go.Shape.defineFigureGenerator("Lock",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,b,a)),y.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var x=new go.PathFigure(.2*b,.5*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*b,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.2*b,.3*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*b,.3*a,.25*b,0,.75*b,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*b,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*b,.3*a)),E}),go.Shape.defineFigureGenerator("Unlocked",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,b,a)),y.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var x=new go.PathFigure(.2*b,.5*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*b,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.2*b,.3*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*b,.3*a,.25*b,0,.75*b,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*b,.35*a)),E}),go.Shape.defineFigureGenerator("Gear",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(.9375*b,.56246875*a,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*b,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.80621875*b,.4375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.763*b,.3316875*a,.79840625*b,.39915625*a,.7834375*b,.3635*a)).add(new go.PathSegment(go.PathSegment.Line,.8566875*b,.23796875*a)).add(new go.PathSegment(go.PathSegment.Line,.76825*b,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.67596875*b,.24184375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*b,.19378125*a,.64228125*b,.2188125*a,.603875*b,.2021875*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*b,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*b,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*b,.19378125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*b,.239375*a,.39759375*b,.20190625*a,.36053125*b,.2176875*a)).add(new go.PathSegment(go.PathSegment.Line,.2379375*b,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.14953125*b,.2379375*a)).add(new go.PathSegment(go.PathSegment.Line,.23934375*b,.3278125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*b,.4375*a,.21765625*b,.36059375*a,.201875*b,.397625*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*b,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*b,.5625*a)).add(new go.PathSegment(go.PathSegment.Line,.1938125*b,.5625*a)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*b,.67596875*a,.20221875*b,.603875*a,.21884375*b,.64228125*a)).add(new go.PathSegment(go.PathSegment.Line,.1495625*b,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.238*b,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.3316875*b,.76296875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*b,.80621875*a,.36353125*b,.78340625*a,.3991875*b,.79840625*a)).add(new go.PathSegment(go.PathSegment.Line,.43753125*b,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*b,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*b,.80621875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*b,.760625*a,.602375*b,.79809375*a,.63946875*b,.78234375*a)).add(new go.PathSegment(go.PathSegment.Line,.76828125*b,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.85671875*b,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.76065625*b,.67221875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*b,.56246875*a,.78234375*b,.63940625*a,.798125*b,.602375*a)).add(new go.PathSegment(go.PathSegment.Line,.9375*b,.56246875*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*b,.6*a)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*b,.5*a,.1*b,.1*a).close()))}),go.Shape.defineFigureGenerator("Hand",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*b,.3*a,0,.375*a,.05*b,.325*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.45*b,.075*a,.3*b,.225*a,.4*b,.175*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.525*b,.075*a,.46*b,.05*a,.525*b,.05*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*b,.4*a,.525*b,.275*a,.475*b,.325*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*b,.4*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*b,.55*a,b,.4*a,b,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,.425*b,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*b,.55*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*b,.7*a,.675*b,.55*a,.675*b,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*b,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.575*b,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.575*b,.85*a,.65*b,.7*a,.65*b,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*b,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.525*b,.85*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.535*b,a,.61*b,.85*a,.61*b,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,.435*b,a,0,a).close()),E}),go.Shape.defineFigureGenerator("Map",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,.2*a,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.25*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,b,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,b,a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*b,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,a)),y.add(new go.PathSegment(go.PathSegment.Line,.25*b,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),y.add(new go.PathSegment(go.PathSegment.Move,.25*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,.25*b,.8*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*b,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,a)),y.add(new go.PathSegment(go.PathSegment.Move,.75*b,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*b,.8*a)),E}),go.Shape.defineFigureGenerator("Eject",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,a,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,b,a)),y.add(new go.PathSegment(go.PathSegment.Line,b,a*.7)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.7).close());var x=new go.PathFigure(0,a*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*b,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*b,.1*a)).add(new go.PathSegment(go.PathSegment.Line,b,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.9*b,a)).add(new go.PathSegment(go.PathSegment.Line,.1*b,.2*a).close()))}),go.Shape.defineFigureGenerator("Building",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(b*1,a*1,!1);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*b,a*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*b,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.046*b,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*b,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,b,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,b,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*b,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*b,a*.85)),y.add(new go.PathSegment(go.PathSegment.Line,b,a*.85).close());var x=new go.PathFigure(.126*b,.85*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*b,.45*a)),x.add(new go.PathSegment(go.PathSegment.Line,.322*b,.45*a)),x.add(new go.PathSegment(go.PathSegment.Line,.322*b,.85*a).close());var z=new go.PathFigure(.402*b,.85*a,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*b,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.598*b,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.598*b,.85*a).close());var ee=new go.PathFigure(.678*b,.85*a,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*b,.45*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*b,.45*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*b,.85*a).close());var te=new go.PathFigure(.5*b,.1*a,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*b,.3*a)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*b,.3*a).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,a*1,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,b*.2,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,b*.2,a*.8)),y.add(new go.PathSegment(go.PathSegment.Line,b*.4,a*.8)),y.add(new go.PathSegment(go.PathSegment.Line,b*.4,a*.6)),y.add(new go.PathSegment(go.PathSegment.Line,b*.6,a*.6)),y.add(new go.PathSegment(go.PathSegment.Line,b*.6,a*.4)),y.add(new go.PathSegment(go.PathSegment.Line,b*.8,a*.4)),y.add(new go.PathSegment(go.PathSegment.Line,b*.8,a*.2)),y.add(new go.PathSegment(go.PathSegment.Line,b*1,a*.2)),y.add(new go.PathSegment(go.PathSegment.Line,b*1,a*.15)),y.add(new go.PathSegment(go.PathSegment.Line,b*.75,a*.15)),y.add(new go.PathSegment(go.PathSegment.Line,b*.75,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,b*.55,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,b*.55,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,b*.35,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,b*.35,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,b*.15,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,b*.15,a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,a*1,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,b*.184,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,b*.184,a*(1-.184)).close());var x=new go.PathFigure(b*.204,a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b*.204,a*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,b*.388,a*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,b*.388,a*1).close());var z=new go.PathFigure(b*.408,a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*.408,a*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,b*.592,a*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,b*.592,a*1).close());var ee=new go.PathFigure(b*.612,a,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*.612,a*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,b*.796,a*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,b*.796,a*1).close());var te=new go.PathFigure(b*.816,a,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,b*.816,a*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,b*1,a*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,b*1,a*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(0,0,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,b*.3,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,b*.3,0).close());var x=new go.PathFigure(b*.055,.07*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b*.245,a*.07)),x.add(new go.PathSegment(go.PathSegment.Line,b*.245,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,b*.055,a*.1).close());var z=new go.PathFigure(b*.055,.13*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*.245,a*.13)),z.add(new go.PathSegment(go.PathSegment.Line,b*.245,a*.16)),z.add(new go.PathSegment(go.PathSegment.Line,b*.055,a*.16).close());var ee=new go.PathFigure(b*.055,.18*a,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*.245,a*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,b*.245,a*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,b*.055,a*.21).close());var te=new go.PathFigure(b*1,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,b*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,b*.4,a*.65)),te.add(new go.PathSegment(go.PathSegment.Line,b*1,a*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(.55*b,a,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*b,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*b,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*b,.475*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.35*b,.525*a,0,.4*a,.225*b,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*b,.475*a)),y.add(new go.PathSegment(go.PathSegment.Line,.15*b,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*b,.325*a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*b,.325*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*b,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*b,.2*a,.975*b,0,b,.08*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*b,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*b,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.55*b,a).close()),E}),go.Shape.defineFigureGenerator("Key",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(b*1,a*.5,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,b*.9,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,b*.5,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,b*.5,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,b*.45,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,b*.3,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,b*.15,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,b*.15,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,b*.3,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,b*.45,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,b*.5,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,b*.5,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,b*.6,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,b*.65,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,b*.7,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,b*.75,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,b*.8,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,b*.85,.575*a)),y.add(new go.PathSegment(go.PathSegment.Line,b*.9,.6*a).close()),y.add(new go.PathSegment(go.PathSegment.Move,.17*b,.425*a)),y.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*b,.5*a,.075*b,.075*a).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(oe,b,a){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,b*0,b*.3,b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,b*.08,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,b*.08,a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*1),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*1),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*2),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*2),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*3),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*3),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*4),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*4),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*5),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*5),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*6),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*6),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*7),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*7),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*8),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*8),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*9),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*9),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*10),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*10),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*11),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*11),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*12),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*12),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*13),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*13),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*14),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*14),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*15),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*15),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,b*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,b*1,a*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b*1,a*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,b*1,b*.3,b*.055)),x.add(new go.PathSegment(go.PathSegment.Line,b*1,a*1));var z=new go.PathFigure(b*.11,a*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*(.11+.24133333*1+.028*0),a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,b*(.11+.24133333*1+.028*0),a*.8)),z.add(new go.PathSegment(go.PathSegment.Line,b*.11,a*.8).close());var ee=new go.PathFigure(b*(.11+.24133333*1+.028*1),a*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*(.11+.24133333*2+.028*1),a*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,b*(.11+.24133333*2+.028*1),a*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,b*(.11+.24133333*1+.028*1),a*.8).close());var te=new go.PathFigure(b*(.11+.24133333*2+.028*2),a*.1,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,b*(.11+.24133333*3+.028*2),a*.1)),te.add(new go.PathSegment(go.PathSegment.Line,b*(.11+.24133333*3+.028*2),a*.8)),te.add(new go.PathSegment(go.PathSegment.Line,b*(.11+.24133333*2+.028*2),a*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(oe,b,a){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,b*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*1,a*.14)),z.add(new go.PathSegment(go.PathSegment.Line,b,a-y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b-y,a,b,a-x,b-x,a)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-y,x,a,0,a-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(b*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*.83,a*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,b*.17,a*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,b*.17,a*0).close());var te=new go.PathFigure(b*.83,a*1,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,b*.83,a*.5)),te.add(new go.PathSegment(go.PathSegment.Line,b*.17,a*.5)),te.add(new go.PathSegment(go.PathSegment.Line,b*.17,a*1).close());var ue=new go.PathFigure(b*.78,a*.05,!1);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,b*.66,a*.05)),ue.add(new go.PathSegment(go.PathSegment.Line,b*.66,a*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,b*.78,a*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(oe,b,a){var E=oe?oe.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,b/3),E=Math.min(E,a/3);var y=E*Se,x=a*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,b,E,b-y,0,b,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,b-E,x,b,x-y,b-y,x)),ee.add(new go.PathSegment(go.PathSegment.Line,b*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,b*.7,a)),ee.add(new go.PathSegment(go.PathSegment.Line,b*.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(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(b*0,a*.45,!0);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,b*.25,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,b*.5,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,b*.3,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,b*.3,a*.9)),y.add(new go.PathSegment(go.PathSegment.Line,b*.6,a*.9)),y.add(new go.PathSegment(go.PathSegment.Line,b*.65,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,b*.2,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,b*.2,a*.45).close());var x=new go.PathFigure(b*1,a*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b*.75,a*1)),x.add(new go.PathSegment(go.PathSegment.Line,b*.5,a*.55)),x.add(new go.PathSegment(go.PathSegment.Line,b*.7,a*.55)),x.add(new go.PathSegment(go.PathSegment.Line,b*.7,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,b*.4,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,b*.35,a*0)),x.add(new go.PathSegment(go.PathSegment.Line,b*.8,a*0)),x.add(new go.PathSegment(go.PathSegment.Line,b*.8,a*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(oe,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Line,b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()).add(new go.PathSegment(go.PathSegment.Move,.4*b,.4*a)).add(new go.PathSegment(go.PathSegment.Line,.4*b,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*b,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*b,.4*a).close()).add(new go.PathSegment(go.PathSegment.Move,.2*b,.1*a)).add(new go.PathSegment(go.PathSegment.Line,.2*b,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*b,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*b,.1*a).close()).add(new go.PathSegment(go.PathSegment.Move,.1*b,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.1*b,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*b,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*b,.6*a).close()))}),go.Shape.defineFigureGenerator("Terminal",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(b*0,a*.1,!1);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,b*1,a*.1)),y.add(new go.PathSegment(go.PathSegment.Line,b*1,a*.9)),y.add(new go.PathSegment(go.PathSegment.Line,b*0,a*.9).close());var x=new go.PathFigure(b*.1,a*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b*.1,a*.25)),x.add(new go.PathSegment(go.PathSegment.Line,b*.22,a*.285)),x.add(new go.PathSegment(go.PathSegment.Line,b*.1,a*.32)),x.add(new go.PathSegment(go.PathSegment.Line,b*.1,a*.37)),x.add(new go.PathSegment(go.PathSegment.Line,b*.275,a*.32)),x.add(new go.PathSegment(go.PathSegment.Line,b*.275,a*.25).close());var z=new go.PathFigure(b*.28,a*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*.45,a*.37)),z.add(new go.PathSegment(go.PathSegment.Line,b*.45,a*.41)),z.add(new go.PathSegment(go.PathSegment.Line,b*.28,a*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(oe,b,a){var E=new go.Geometry,y=15,x=y*Se,z=new go.PathFigure(b*.62,a*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b,a-y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b-y,a,b,a-x,b-x,a)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-y,x,a,0,a-x)),z.add(new go.PathSegment(go.PathSegment.Line,b*.38,a*.475)),z.add(new go.PathSegment(go.PathSegment.Line,b*.38,a*.03)),z.add(new go.PathSegment(go.PathSegment.Line,b*.36,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,b*.64,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,b*.62,a*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(b*0,a*1,!0);E.add(y);var x=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,b*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,b*1,a*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,b*.8,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,b*.66,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,b*.66,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,b*.755,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,b*.93,a*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,b*.64,a*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,b*.61,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,b*.5,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,b*.39,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,b*.36,a*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,b*.07,a*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,b*(1-.755),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,b*(1-.66),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,b*(1-.66),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,b*(1-.8),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,b*0,a*(1-x)).close());var z=new go.PathFigure(b*.4,a*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*.4,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,b*.26,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,b*.5,a*.66)),z.add(new go.PathSegment(go.PathSegment.Line,b*(1-.26),a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,b*.6,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,b*.6,a*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(b*0,a*1,!0);E.add(y);var x=.1/.3;return y.add(new go.PathSegment(go.PathSegment.Line,b*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,b*1,a*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,b*.8,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,b*.66,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,b*.66,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,b*.755,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,b*.93,a*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,b*.64,a*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,b*.61,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,b*.5,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,b*.39,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,b*.36,a*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,b*.07,a*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,b*(1-.755),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,b*(1-.66),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,b*(1-.66),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,b*(1-.8),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,b*0,a*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(b*0,a*1,!0);E.add(y);var x=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,b*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,b*1,a*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,b*.8,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,b*.66,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,b*.66,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,b*.755,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,b*.93,a*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,b*.64,a*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,b*.61,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,b*.5,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,b*.39,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,b*.36,a*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,b*.07,a*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,b*(1-.755),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,b*(1-.66),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,b*(1-.66),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,b*(1-.8),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,b*0,a*(1-x)).close());var z=new go.PathFigure(b*.5,a*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*.26,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,b*.4,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,b*.4,a*.63)),z.add(new go.PathSegment(go.PathSegment.Line,b*.6,a*.63)),z.add(new go.PathSegment(go.PathSegment.Line,b*.6,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,b*.74,a*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(b*.15,a*0,!1);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,b*.85,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,b*.7,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,b*.3,a*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(b*.15,a*0,!1);E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,b*.85,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,b*.7,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,b*.3,a*1).close());var x=new go.PathFigure(b*.235,a*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b*.765,a*.28)),x.add(new go.PathSegment(go.PathSegment.Line,b*.655,a*.97)),x.add(new go.PathSegment(go.PathSegment.Line,b*.345,a*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(oe,b,a){var E=new go.Geometry,y=new go.PathFigure(b*.5,a*0,!0);return E.add(y),y.add(new go.PathSegment(go.PathSegment.Line,b*.65,a*.25)),y.add(new go.PathSegment(go.PathSegment.Line,b*.55,a*.25)),y.add(new go.PathSegment(go.PathSegment.Line,b*.55,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,b*.75,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,b*.75,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,b*1,a*.5)),y.add(new go.PathSegment(go.PathSegment.Line,b*.75,a*.65)),y.add(new go.PathSegment(go.PathSegment.Line,b*.75,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,b*.55,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,b*.55,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,b*.65,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,b*.5,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,b*.35,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,b*.45,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,b*.45,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,b*.25,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,b*.25,a*.65)),y.add(new go.PathSegment(go.PathSegment.Line,b*0,a*.5)),y.add(new go.PathSegment(go.PathSegment.Line,b*.25,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,b*.25,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,b*.45,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,b*.45,a*.25)),y.add(new go.PathSegment(go.PathSegment.Line,b*.35,a*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var je={},yt="5.0",ie={},ae=null,ge=!1,at=!1,st=null,Le=!1,Ie=null,Se=null,$e=0;$e<arguments.length;$e++){var De=arguments[$e];if(De!==null)switch(typeof De){case"number":yt=De.toFixed(1);break;case"string":De.match(new RegExp("^[0-9]\\.[0-9]+$"))?yt=De:st=De;break;case"object":typeof De.is3D!="undefined"?ae=De:ie=De;break;case"boolean":ge=De,at=!0;break}}ae===null&&(ae={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&&!at&&(ge=!0)),st!==null&&ie.id===void 0&&(ie.id=st);var we="",Me="",Be=!1,Ae=null,oe=null,b=null,a=!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(Ve){return parseFloat(Ve)>4?parseFloat(Ve):5};je.setHTML5Codebase=function(Ve,Qe){Se=Ve,Tt(Ve,Qe)},je.setJavaCodebase=je.setJavaCodebaseVersion=je.isCompiledInstalled=je.setPreCompiledScriptPath=je.setPreCompiledResourcePath=function(){},je.setHTML5CodebaseVersion=function(Ve,Qe){var ht=parseFloat(Ve);if(ht!==NaN&&ht<5){console.log("The GeoGebra HTML5 codebase version "+ht+" is deprecated. Using version latest instead.");return}Ie=Ve,Qt(Ve,Qe)},je.getHTML5CodebaseVersion=function(){return oe},je.getParameters=function(){return ie},je.setFontsCSSURL=function(Ve){z=Ve},je.setGiacJSURL=function(Ve){},je.setJNLPFile=function(Ve){we=Ve},je.setJNLPBaseDir=function(Ve){},je.inject=function(){function Ve(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Qe="auto",ht=ie.id,tn,dt=!1,nn=0;nn<arguments.length;nn++){var be=arguments[nn];typeof be=="string"?(be=be.toLowerCase(),be.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Qe=be:ht=arguments[nn]):typeof be=="boolean"?dt=be:be instanceof HTMLElement&&(tn=be)}Lt();function Lt(){if(!Le){setTimeout(Lt,200);return}Qe=ot(Qe);var an=tn||document.getElementById(ht);if(!an){console.log("possibly bug on ajax loading? ");return}if(je.removeExistingApplet(an,!1),ie.width===void 0&&an.clientWidth&&(ie.width=an.clientWidth),ie.height===void 0&&an.clientHeight&&(ie.height=an.clientHeight),!(ie.width&&ie.height)&&Qe==="html5"&&(delete ie.width,delete ie.height),Ae=Qe,Qe==="screenshot")We(an,ie);else{var Mn=!1;ie.hasOwnProperty("playButton")&&ie.playButton||ie.hasOwnProperty("clickToLoad")&&ie.clickToLoad?Mn=!0:ie.hasOwnProperty("playButtonAutoDecide")&&ie.playButtonAutoDecide&&(Mn=(!ue()||Ve())&&de()),Mn?(Ae="screenshot",Pe(an,ie,dt,Qe)):rt(an,ie,dt)}}};function ue(){try{return window.self!==window.top}catch(Ve){return!0}}function de(){return ie.hasOwnProperty("screenshotGenerator")&&ie.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}je.getViews=function(){return ae},je.isJavaInstalled=function(){return!1};var se=function(Ve){var Qe=function(nn){var be=JSON.parse(nn),Lt=function(Pt){return Pt.type=="G"||Pt.type=="E"},an=be.elements?be.elements.filter(Lt)[0]:be;if(!an||!an.url){ht();return}ie.fileName=an.url,Ee(an.settings||{}),ae.is3D=!0;var Mn="https://www.geogebra.org/images/";je.setPreviewImage(E||an.previewUrl,Mn+"GeoGebra_loading.png",Mn+"applet_play.png"),Ve()},ht=function(){ie.onError&&ie.onError(),on("Error: Fetching material (id "+ie.material_id+") failed.",ie)},tn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",dt="/materials/"+ie.material_id+"?scope=basic";pe("https://"+tn+"/api/proxy.php?path="+encodeURIComponent(dt),Qe,ht)};function Ee(Ve){var Qe=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(ht){Ve[ht]=!!Ve[ht]}),Qe.forEach(function(ht){ie[ht]===void 0&&Ve[ht]!==void 0&&(ie[ht]=Ve[ht])}),ie.showToolBarHelp===void 0&&(ie.showToolBarHelp=ie.showToolBar)}function pe(Ve,Qe,ht){var tn=new XMLHttpRequest;tn.open("GET",Ve),tn.onload=function(){Qe(tn.responseText)},tn.onerror=ht,tn.send()}je.isHTML5Installed=function(){return!0},je.getLoadedAppletType=function(){return Ae},je.setPreviewImage=function(Ve,Qe,ht){E=Ve,y=Qe,x=ht},je.removeExistingApplet=function(Ve,Qe){var ht;typeof Ve=="string"&&(Ve=document.getElementById(Ve)),Ae=null;var tn=null;for(ht=0;ht<Ve.childNodes.length;ht++){var dt=Ve.childNodes[ht],nn=dt.className;nn==="applet_screenshot"?Qe?(dt.style.display="block",Ae="screenshot"):dt.style.display="none":nn!=="applet_scaler prerender"&&(Ve.removeChild(dt),tn=nn&&nn.indexOf("appletParameters")!=-1?dt.id:null,ht--)}var be=ie.id!==void 0?ie.id:tn,Lt=window[be];Lt&&typeof Lt.getBase64=="function"&&(Lt.remove(),window[be]=null)},je.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ve=je.getAppletObject();return Ve&&typeof Ve.recalculateEnvironments=="function"?(Ve.recalculateEnvironments(),!0):!1},je.startAnimation=function(){var Ve=je.getAppletObject();return Ve&&typeof Ve.startAnimation=="function"?(Ve.startAnimation(),!0):!1},je.stopAnimation=function(){var Ve=je.getAppletObject();return Ve&&typeof Ve.stopAnimation=="function"?(Ve.stopAnimation(),!0):!1},je.getAppletObject=function(){var Ve=ie.id!==void 0?ie.id:"ggbApplet";return window[Ve]},je.resize=function(){};var he=function(Ve,Qe,ht){var tn=document.createElement("param");tn.setAttribute("name",Qe),tn.setAttribute("value",ht),Ve.appendChild(tn)},ke=function(Ve){return Ve&&Ve!=="false"},rt=function(Ve,Qe,ht){te(oe)<=4.2&&(ht=!0);var tn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==oe||ggbHTML5LoadedCodebaseIsWebSimple&&!a)&&(tn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var dt=document.createElement("div");dt.classList.add("appletParameters","notranslate");var nn=Qe.width,be=Qe.height;if(Qe.disableAutoScale=Qe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Qe.disableAutoScale,Qe.width!==void 0)if(te(oe)<=4.4)ke(Qe.showToolBar)&&(Qe.height-=7),ke(Qe.showAlgebraInput)&&(Qe.height-=37),Qe.width<605&&ke(Qe.showToolBar)&&(Qe.width=605,nn=605);else{var Lt=100;(ke(Qe.showToolBar)||ke(Qe.showMenuBar))&&(Qe.hasOwnProperty("customToolBar")&&(Qe.customToolbar=Qe.customToolBar),Lt=ke(Qe.showMenuBar)?245:155),nn<Lt&&(Qe.width=Lt,nn=Lt)}dt.style.border="none",dt.style.display="inline-block";for(var an in Qe)Qe.hasOwnProperty(an)&&an!=="appletOnLoad"&&dt.setAttribute("data-param-"+an,Qe[an]);z&&dt.setAttribute("data-param-fontscssurl",z),je.resize=function(){GGBAppletUtils.responsiveResize(Ve,Qe)},window.addEventListener("resize",function(wn){je.resize()});var Mn=typeof Qe.appletOnLoad=="function"?Qe.appletOnLoad:function(){};if(!ht&&Qe.width!==void 0){Qe.hasOwnProperty("showSplash")||dt.setAttribute("data-param-showSplash","false");var Pt=Ve.querySelector(".applet_scaler.prerender"),qe=Pt!==null;if(qe)var Xe=Pt.querySelector(".ggb_preview");else{var Xe=Ye(nn,be,Qe.borderColor,!1);Pt=document.createElement("div"),Pt.className="applet_scaler",Pt.style.position="relative",Pt.style.display="block",Pt.style.width=nn+"px",Pt.style.height=be+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Pt,"66%"),te(oe)>=5?(Qe.appletOnLoad=function(wn){var Fn=Ve.querySelector(".ggb_preview");Fn&&Fn.parentNode.removeChild(Fn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Pt),window.GGBT_wsf_view&&$(window).trigger("resize"),Mn(wn)},qe||Pt.appendChild(Xe)):dt.appendChild(Xe),Pt.appendChild(dt),qe||Ve.appendChild(Pt),setTimeout(function(){je.resize()},1)}else{var Re=document.createElement("div");Re.className="applet_scaler",Re.style.position="relative",Re.style.display="block",Re.appendChild(dt),Ve.appendChild(Re),Qe.appletOnLoad=function(wn){je.resize(),Mn(wn)}}function lt(wn,Fn){Fn&&typeof Fn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(wn,Fn.appletOnLoad):renderGGBElement(wn),on("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Fn)}function Et(wn,Fn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:wn,params:Fn}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(jn){lt(jn.article,jn.params)}),html5AppletsToProcess=null)},te(oe)<5&&(wn.className+=" geogebraweb")):lt(wn,Fn)}if(tn){scriptLoadStarted=!0;for(var $t=0;$t<dt.childNodes.length;$t++){var sn=dt.childNodes[$t].tagName;sn==="TABLE"&&(dt.removeChild(dt.childNodes[$t]),$t--)}if(ggbHTML5LoadedScript!==null){var pn=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');pn!=null&&pn.parentNode.removeChild(pn)}var Cn=document.createElement("script"),$n=function(){Et(dt,Qe)};Cn.src=Me+b,ggbHTML5LoadedCodebaseIsWebSimple=a,ggbHTML5LoadedCodebaseVersion=oe,ggbHTML5LoadedScript=Cn.src,on("GeoGebra HTML5 codebase loaded: '"+Me+"'.",Qe),!Se&&(!Ie||Ie=="5.0")?(a?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),$n()):Me.requirejs?__webpack_require__.e(12).then(function(){var wn=[__webpack_require__(12)];$n.apply(null,wn)}.bind(this)).catch(__webpack_require__.oe):(Cn.onload=$n,Ve.appendChild(Cn))}else Et(dt,Qe);Qe.height=be,Qe.width=nn},We=function(Ve,Qe,ht){var tn=Ye(Qe.width,Qe.height,Qe.borderColor,ht),dt=document.createElement("div");dt.style.position="relative",dt.style.display="block",dt.style.width=Qe.width+"px",dt.style.height=Qe.height+"px",dt.className="applet_screenshot applet_scaler"+(ht?" applet_screenshot_play":""),dt.appendChild(tn);var nn=GGBAppletUtils.getScale(Qe,Ve,ht);ht?(Ve.appendChild(He()),window.GGBT_wsf_view||(Ve.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(dt,"66%"),Ve.appendChild(dt),nn!==1&&!isNaN(nn)&&(GGBAppletUtils.scaleElement(dt,nn),dt.style.width=Qe.width+"px",dt.style.height=Qe.height+"px",dt.parentNode.style.width=Qe.width*nn+"px",dt.parentNode.style.height=Qe.height*nn+"px"),je.resize=function(){xe(Ve,tn,dt,ht)},window.addEventListener("resize",function(be){je.resize()}),je.resize()};function xe(Ve,Qe,ht,tn){if(Ve.contains(Qe)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ve.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ve)}var dt=GGBAppletUtils.getScale(ie,Ve,tn);ht.parentNode!==null&&(!isNaN(dt)&&dt!==1?(GGBAppletUtils.scaleElement(ht,dt),ht.parentNode.style.width=ie.width*dt+"px",ht.parentNode.style.height=ie.height*dt+"px"):(GGBAppletUtils.scaleElement(ht,1),ht.parentNode.style.width=ie.width+"px",ht.parentNode.style.height=ie.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ve),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}je.onExitFullscreen=function(Ve,Qe){Qe.appendChild(Ve)};var Pe=function(Ve,Qe,ht,tn){We(Ve,Qe,!0);for(var dt=function(){var Lt=[];for(be=0;be<Ve.childNodes.length;be++)Lt.push(Ve.childNodes[be]);if(window.GGBT_wsf_view){var an=window.GGBT_wsf_view.renderFullScreen(Ve,Qe.id),Mn=document.getElementById("fullscreencontainer"),Pt=jQuery(Ve).find(".fullscreencontent");Pt.length>0?(an.remove(),Pt.attr("id","fullscreencontent").show(),jQuery(Mn).append(Pt),window.dispatchEvent(new Event("resize"))):rt(an,Qe,!1),window.GGBT_wsf_view.launchFullScreen(Mn)}else Ae=tn,rt(Ve,Qe,!1);if(!window.GGBT_wsf_view)for(be=0;be<Lt.length;be++)Ve.removeChild(Lt[be])},nn=Ve.getElementsByClassName("ggb_preview_play"),be=0;be<nn.length;be++)nn[be].addEventListener("click",dt,!1),nn[be].addEventListener("ontouchstart",dt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ve),de()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},He=function(){var Ve=document.createElement("div");if(Ve.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Qe='.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");}',ht=document.createElement("style");ht.styleSheet?ht.styleSheet.cssText=Qe:ht.appendChild(document.createTextNode(Qe)),document.getElementsByTagName("head")[0].appendChild(ht)}return Ve},Ye=function(Ve,Qe,ht,tn){var dt=document.createElement("div");dt.className="ggb_preview",dt.style.position="absolute",dt.style.zIndex="90",dt.style.width=Ve-2+"px",dt.style.height=Qe-2+"px",dt.style.top="0px",dt.style.left="0px",dt.style.overflow="hidden",dt.style.backgroundColor="white";var nn="lightgrey";ht!==void 0&&(ht==="none"?nn="transparent":nn=ht),dt.style.border="1px solid "+nn;var be=document.createElement("img");if(be.style.position="relative",be.style.zIndex="1000",be.style.top="-1px",be.style.left="-1px",E!==null&&be.setAttribute("src",E),be.style.opacity=.7,y!==null){var Lt,an,Mn;if(!tn){Lt=document.createElement("img"),Lt.style.position="absolute",Lt.style.zIndex="1001",Lt.style.opacity=1,be.style.opacity=.3,an=360,an>Ve/4*3&&(an=Ve/4*3),Mn=an/5.8,Lt.setAttribute("src",y),Lt.setAttribute("width",an),Lt.setAttribute("height",Mn);var Pt=(Ve-an)/2,qe=(Qe-Mn)/2;Lt.style.left=Pt+"px",Lt.style.top=qe+"px",dt.appendChild(Lt)}}return dt.appendChild(be),dt},ot=function(Ve){return Ve=Ve.toLowerCase(),Ve==="html5"||Ve==="screenshot"?Ve:"html5"},vt=["web","webSimple","web3d","tablet","tablet3d","phone"],Qt=function(Ve,Qe){if(oe=Ve,Qe){Tt(oe,!0);return}var ht=!ge;if(ht){var tn=te(oe);!isNaN(tn)&&tn<4.4&&(ht=!1)}var dt,nn;window.location.protocol.substr(0,4)==="http"?dt=window.location.protocol:dt="http:";var be=oe.indexOf("//");be>0?nn=oe:be===0?nn=dt+oe:nn="https://www.geogebra.org/apps/5.2.814.0/";for(var Lt in vt)if(oe.slice(vt[Lt].length*-1)===vt[Lt]||oe.slice((vt[Lt].length+1)*-1)===vt[Lt]+"/"){Tt(nn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&ht&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!ke(ie.showToolBar)&&!ke(ie.showMenuBar)&&!ke(ie.showAlgebraInput)&&!ke(ie.enableRightClick)&&(!ie.appName||ie.appName=="classic")?nn+="webSimple/":nn+="web3d/",Tt(nn,!1)},Tt=function(Ve,Qe){if(Ve.requirejs){Me=Ve;return}Ve.slice(-1)!=="/"&&(Ve+="/"),Me=Ve,Qe===null&&(Qe=Ve.indexOf("http")===-1),Be=Qe,b="web.nocache.js",a=!1;var ht=Me.split("/");ht.length>1&&(!Qe&&ht[ht.length-2]==="webSimple"?(b="webSimple.nocache.js",a=!0):vt.indexOf(ht[ht.length-2])>=0&&(b=ht[ht.length-2]+".nocache.js")),ht=Ve.split("/"),oe=ht[ht.length-3],oe.substr(0,4)==="test"?oe=oe.substr(4,1)+"."+oe.substr(5,1):(oe.substr(0,3)==="war"||oe.substr(0,4)==="beta")&&(oe="5.0");var tn=parseFloat(oe);tn!==NaN&&tn<5&&Ve.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+tn+" is deprecated. Using version latest instead."),Qt("5.0",Qe))},on=function(Ve,Qe){window.console&&window.console.log&&(!Qe||typeof Qe.showLogging=="undefined"||Qe.showLogging&&Qe.showLogging!=="false")&&console.log(Ve)};ie.material_id!==void 0?se(An):An();function An(){var Ve=yt;Ie!==null?Ve=Ie:parseFloat(Ve)<5&&(Ve="5.0"),Qt(Ve,!1),Se!==null&&Tt(Se,Be),Le=!0}return je},GGBAppletUtils=function(){"use strict";function je(){return window.GGBT_wsf_edit!==void 0}function yt(Le,Ie){Ie!=1?(Le.style.transformOrigin="0% 0% 0px",Le.style.webkitTransformOrigin="0% 0% 0px",Le.style.transform="scale("+Ie+","+Ie+")",Le.style.webkitTransform="scale("+Ie+","+Ie+")",Le.style.maxWidth="initial",Le.querySelector(".ggb_preview")!==null&&(Le.querySelector(".ggb_preview").style.maxWidth="initial"),Le.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Le.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Le.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Le.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Le.style.transform="none",Le.style.webkitTransform="none")}function ie(Le,Ie,Se,$e,De,we){var Me=null;if(we!=null&&we!="")for(var Be=Le.parentNode;Be!=null;)if((" "+Be.className+" ").indexOf(" "+we+" ")>-1){Me=Be;break}else Be=Be.parentNode;var Ae=0,oe=0,b=0,a=0,E=0,y=0,x=0;if(Me)Ae=Me.offsetWidth,oe=Math.max($e?Me.offsetWidth:0,Me.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ae=Math.min(window.innerWidth,document.documentElement.clientWidth),oe=Math.min(window.innerHeight,document.documentElement.clientHeight),b=Ae):(Ae=window.innerWidth,oe=window.innerHeight,b=window.innerWidth),Le){var z=Le.getBoundingClientRect();z.left>0&&z.left<=Ae&&(De===void 0||!De)&&(document.dir==="rtl"?(E=Ae-z.width-z.left,y=b<=480?10:30):(y=z.left,E=b<=480?10:30),a=y+E)}if(Le&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=Le.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(a=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(a=0,x=40)}}return Le&&((Se===void 0||!Se)&&Ie>0&&Ie+a<Ae?Ae=Ie:Ae-=a,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Se===void 0||!Se)&&(oe-=x)),{width:Ae,height:oe}}function ae(Le,Ie,Se,$e,De){if(Le.isScreenshoGenerator)return 1;var we=$e!==void 0&&$e,Me=Le.noScaleMargin!=null&&Le.noScaleMargin,Be=function(ee){return ee&&ee!=="false"},Ae=Be(Le.autoHeight),oe=ie(Ie,Le.width,Se,Ae,we&&window.GGBT_wsf_view||Me,De),b=parseInt(oe.width),a=Le.width,E=Le.height;if(a===void 0){var y=Ie.querySelector(".appletParameters");y&&(a=y.offsetWidth,E=y.offsetHeight)}var x=b/a,z=we?1:oe.height/E;return Se!==void 0&&!Se&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function ge(Le,Ie,Se){var $e=1,De,we=!1;if(Le.hasOwnProperty("allowUpscale")&&(we=Le.allowUpscale),Le.hasOwnProperty("scale")&&($e=parseFloat(Le.scale),(isNaN($e)||$e===null||$e===0)&&($e=1),$e>1&&(we=!0)),Ie&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(we=!0),!(Le.hasOwnProperty("disableAutoScale")&&Le.disableAutoScale))De=ae(Le,Ie,we,Se,Le.scaleContainerClass);else return $e;return we&&(!Le.hasOwnProperty("scale")||$e===1)?De:Math.min($e,De)}function at(Le){var Ie=Math.min(window.innerWidth,document.documentElement.clientWidth),Se=Math.min(window.innerHeight,document.documentElement.clientHeight),$e=Le.getBoundingClientRect(),De=(Ie-$e.width)/2,we=(Se-$e.height)/2;we<0&&(we=0),Le.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(De<40?Le.style.left="40px":Le.style.left=De+"px",Le.style.top=we+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(we<40?Le.style.top="40px":Le.style.top=we+"px",Le.style.left=De+"px")}function st(Le,Ie){var Se=Le.querySelector(".appletParameters");if(Se){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ie.id!==Se.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Le)}if(Se.parentElement&&/fullscreen/.test(Se.parentElement.className))return;var $e=ge(Ie,Le);je()&&Se.setAttribute("data-param-scale",$e);for(var De=null,we=0;we<Le.childNodes.length;we++)if(Le.childNodes[we].className!==void 0&&Le.childNodes[we].className.match(/^applet_scaler/)){De=Le.childNodes[we];break}if(De!==null&&De.querySelector(".noscale")!==null)return;var Me=Ie.id!==void 0?Ie.id:"ggbApplet",Be=window[Me];(Be==null||!Be.recalculateEnvironments)&&De!==null&&!De.className.match(/fullscreen/)&&(De.parentNode.style.transform="",!isNaN($e)&&$e!==1?(De.parentNode.style.width=Ie.width*$e+"px",De.parentNode.style.height=Ie.height*$e+"px",yt(De,$e)):(yt(De,1),De.parentNode.style.width=Ie.width+"px",De.parentNode.style.height=Ie.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&at(Le),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Se).parents(".content-added-content"))}}return{responsiveResize:st,isFlexibleWorksheetEditor:je,positionCenter:at,getScale:ge,scaleElement:yt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var je=n.location.search;return je.indexOf(J)!=-1||je.indexOf(K)!=-1}function q(je,yt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(je){var yt=s[L].bindings;s[L].bindings=function(){for(var ie=yt?yt():{},ae=je[webModule.__softPermutationId],ge=O;ge<ae.length;ge++){var at=ae[ge];ie[at[O]]=at[P]}return ie}};var t;function u(){return v(),t}function v(){if(!t){var je=o.createElement(Q);if(je.id=L,je.style.cssText=R+S,je.tabIndex=-1,o.body.appendChild(je),t=je.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var yt=document.compatMode==U?V:W;t.write(yt+X),t.close()}}}function w(je){function yt(ae){function ge(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var at=ge();if(at){ae();return}function st(){if(!at){if(!ge())return;at=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,st,!1),Le&&clearInterval(Le)}}o.addEventListener&&o.addEventListener(Z,st,!1);var Le=setInterval(function(){st()},$)}function ie(ae){var ge=u(),at=ge.body,st=ge.createElement(_);st.language=ab,st.crossOrigin=W,st.src=ae,webModule.__errFn&&(st.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),at.appendChild(st)}yt(function(){ie(je)})}webModule.__startLoadingFragment=function(je){return C(je)},webModule.__installRunAsyncCode=function(je){var yt=u(),ie=yt.body,ae=yt.createElement(_);ae.language=ab,ae.text=je,ie.appendChild(ae),ie.removeChild(ae)};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(je){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(je){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(je){var yt=c[je];return yt==null?null:yt},r=d,webModule.__errFn=e}function B(){function je(Le){var Ie=Le.lastIndexOf(rb);Ie==-1&&(Ie=Le.length);var Se=Le.indexOf(sb);Se==-1&&(Se=Le.length);var $e=Le.lastIndexOf(tb,Math.min(Se,Ie));return $e>=O?Le.substring(O,$e+P):W}function yt(Le){if(!Le.match(/^\w+:\/\//)){var Ie=o.createElement(ub);Ie.src=Le+vb,Le=je(Ie.src)}return Le}function ie(){var Le=__gwt_getMetaProperty(wb);return Le!=null?Le:W}function ae(){for(var Le=o.getElementsByTagName(_),Ie=O;Ie<Le.length;++Ie)if(Le[Ie].src.indexOf(xb)!=-1)return je(Le[Ie].src);return W}function ge(){var Le=o.getElementsByTagName(yb);return Le.length>O?Le[Le.length-P].href:W}function at(){var Le=o.location;return Le.href==Le.protocol+zb+Le.host+Le.pathname+Le.search+Le.hash}var st=ie();return st==W&&(st=ae()),st==W&&(st=ge()),st==W&&at()&&(st=je(o.location.href)),st=yt(st),st}function C(je){return je.match(/^\//)||je.match(/^[a-zA-Z]+:\/\//)?je:webModule.__moduleBase+je}function D(){var je=[],yt=O,ie=[],ae=[];function ge(Le){var Ie=ae[Le](),Se=ie[Le];if(Ie in Se)return Ie;var $e=[];for(var De in Se)$e[Se[De]]=De;throw r&&r(Le,$e,Ie),null}if(__gwt_isKnownPropertyValue=function(Le,Ie){return Ie in ie[Le]},webModule.__getPropMap=function(){var Le={};for(var Ie in ie)ie.hasOwnProperty(Ie)&&(Le[Ie]=ge(Ie));return Le},webModule.__computePropValue=ge,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var at;try{at=Cb;var st=at.indexOf(Db);st!=-1&&(yt=parseInt(at.substring(st+P),$),at=at.substring(O,st))}catch(Le){}return webModule.__softPermutationId=yt,C(at+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(je,yt,ie){"use strict";ie.d(yt,{Ax:function(){return st},Ds:function(){return Le},KI:function(){return Se},SI:function(){return at},f1:function(){return ge}});var ae=ie(11320);function ge($e){let De=!0;if($e.length>0){for(let we=0;we<$e.length;we++)if($e[we].compile_success==0||!$e[we].compile_success){De=!1;break}}else De=!1;return De}function at($e,De=""){let we=[];for(let Me=0;Me<$e.length;Me++){let Be=$e[Me],Ae=De?`${De}/${Be.name}`:`${Be.name}`;we.push({title:Be.name,type:Be.type,isLeaf:Be.type!=="tree",key:Ae})}return we}function st($e,De,we){for(let Me=0;Me<$e.length;Me++){let Be=$e[Me];if(Be.key===De){Be.children=we;break}Be.children&&st(Be.children,De,we)}return $e}function Le($e,De,we){let Me;return function(){let Be=this,Ae=arguments,oe=function(){Me=null,we||$e.apply(Be,Ae)},b=we&&!Me;clearTimeout(Me),Me=setTimeout(oe,De),b&&$e.apply(Be,Ae)}}const Ie=!0,Se=ae.Z.API_SERVER},63205:function(je,yt,ie){"use strict";ie.d(yt,{Z:function(){return Me}});var ae=ie(67294),ge={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},at=ie(94184),st=ie.n(at),Le=ie(57953),Ie=ie(15979),Se=ie(33170),$e=ie(28706),De=(Be,Ae,oe)=>new Promise((b,a)=>{var E=z=>{try{x(oe.next(z))}catch(ee){a(ee)}},y=z=>{try{x(oe.throw(z))}catch(ee){a(ee)}},x=z=>z.done?b(z.value):Promise.resolve(z.value).then(E,y);x((oe=oe.apply(Be,Ae)).next())}),Me=({data:Be,className:Ae,fullWidth:oe,style:b={},onClose:a,onOk:E,showFullTools:y,noAssociationId:x})=>{const z=(0,ae.useRef)(null),ee=(0,ae.useRef)(null),te=(0,ae.useRef)(null),ue=(0,ae.useRef)(null),[de,se]=(0,ae.useState)(!1),[Ee,pe]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),Be!=null&&Be.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",Be!=null&&Be.src&&he()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[Be==null?void 0:Be.visible]);const he=()=>De(void 0,null,function*(){se(!0),pe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Pe=yield(0,$e.ZJ)(Be==null?void 0:Be.src);z.current.src="",z.current.src=Pe,z.current.onload=function(){xe()},se(!1),pe("")}),ke=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",a()},rt=Pe=>De(void 0,null,function*(){se(!0),pe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const He=yield(0,Se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Be.title,file:Pe.dataUrl}});He!=null&&He.id&&!x?(yield(0,Se.ZP)(`/api/attachments/${Be.id}/add_subitem.json`,{method:"post",body:{subitem_id:He==null?void 0:He.id,settings:JSON.stringify(Pe.state)}})).status===0&&E():He!=null&&He.id&&E(He),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",se(!1),pe("")}),We=()=>{const Pe=document.querySelector('a[href="https://markerjs.com/"]');Pe&&Pe.parentNode&&(Pe.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(Ye=>{const ot=document.querySelector(Ye.name);ot&&ot.setAttribute("title",Ye.title)})},xe=()=>{ee.current=new Ie.hP(z.current),ee.current.targetRoot=ue.current,ee.current.addEventListener("render",rt),ee.current.addEventListener("beforeclose",ke),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(),Be!=null&&Be.snapshotData&&ee.current.restoreState(Be.snapshotData),setTimeout(()=>{window.scrollTo(0,0),We()},300)};return ae.createElement(ae.Fragment,null,(Be==null?void 0:Be.visible)&&ae.createElement(Le.Z,{spinning:de,tip:Ee,style:{position:"absolute"}},ae.createElement("div",{ref:ue,className:st()(ge.imageDimensions,Ae,oe?ge.fullWidth:""),style:b},ae.createElement("img",{className:ge.img,ref:z}))))}},36527:function(je,yt,ie){"use strict";var ae=ie(67294),ge=ie(71230),at=ie(15746),st=ie(66368),Le=ie(71577),Ie=ie(85725),Se=ie(71736),$e=ie(84279),De=ie(67294);const we=(0,ae.forwardRef)(({callback:Me,showSaveButton:Be,value:Ae=""},oe)=>{const b=(0,ae.useRef)(),a=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],y=ee=>{b.current.setValue(b.current.getValue()+" "+ee.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:De.createElement(ge.Z,{className:Se.Z.lists,gutter:[10,10]},a.map((ee,te)=>De.createElement(at.Z,{flex:"110px",className:Se.Z.item},De.createElement("div",null,De.createElement(Ie.Z,{value:`$$${ee.value}$$`}),ee.name),De.createElement("div",{className:Se.Z.children},ee.children.map((ue,de)=>De.createElement("div",{key:de},De.createElement("h1",null,ue.name),De.createElement(ge.Z,{gutter:[10,10]},ue.data.map((se,Ee)=>De.createElement(at.Z,{key:Ee,onClick:()=>y(se),className:Se.Z.diamond},De.createElement(Ie.Z,{value:"`$$"+se.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:De.createElement(ge.Z,{className:Se.Z.lists,gutter:[10,10]},E.map((ee,te)=>De.createElement(at.Z,{flex:"110px",className:Se.Z.item},De.createElement("div",null,De.createElement(Ie.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),De.createElement("div",{className:Se.Z.children},ee.children.map((ue,de)=>De.createElement("div",{key:de},ue.name&&De.createElement("h1",null,ue.name),De.createElement(ge.Z,{gutter:[10,10]},ue.data.map((se,Ee)=>De.createElement(at.Z,{key:Ee,onClick:()=>y(se),className:Se.Z.diamond},De.createElement(Ie.Z,{value:"`$$"+se.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=b.current.getValue();var te=ee.innerText;return Me&&Me(te),te};return(0,ae.useImperativeHandle)(oe,()=>({getData:z})),De.createElement("div",{className:Se.Z.mathWrap},De.createElement(st.default,{defaultActiveKey:"1",items:x}),De.createElement("math-field",{locale:"zh_cn",className:Se.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:b,style:{width:800,marginTop:30,fontSize:18}},Ae||""),Be&&De.createElement("div",{className:Se.Z.button},De.createElement(Le.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});yt.Z=we},57444:function(je,yt,ie){"use strict";ie.d(yt,{h:function(){return ee}});var ae=ie(67294),ge=ie(42563),at=ie(22150),st=ie(71577),Le=ie(4631),Ie=ie.n(Le),Se=ie(71749),$e=ie(30483),De=Object.defineProperty,we=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,b=(te,ue,de)=>ue in te?De(te,ue,{enumerable:!0,configurable:!0,writable:!0,value:de}):te[ue]=de,a=(te,ue)=>{for(var de in ue||(ue={}))Ae.call(ue,de)&&b(te,de,ue[de]);if(Be)for(var de of Be(ue))oe.call(ue,de)&&b(te,de,ue[de]);return te},E=(te,ue)=>we(te,Me(ue));const y=ge.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};yt.Z=({callback:te,onCancel:ue})=>{const[de,se]=(0,ae.useState)("python");function Ee(he){se(z[he][1])}function pe(he){te(he)}return ae.createElement(at.default,E(a({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:pe,style:{width:500}}),ae.createElement(at.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(ge.default,{getPopupContainer:he=>he.parentNode,onChange:Ee},Object.keys(z).map(he=>ae.createElement(y,{key:he,value:he},z[he][0])))),ae.createElement(at.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(ee,{mode:de})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(st.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(st.ZP,{type:"ghost",onClick:ue},"\u53D6\u6D88")))};function ee({value:te,onChange:ue,mode:de,options:se={}}){const Ee=(0,ae.useRef)(),[pe,he]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(pe){let ke=function(rt){const We=rt.getValue();ue&&ue(We)};return pe.on("change",ke),()=>{pe.off("change",ke)}}},[pe,ue]),(0,ae.useEffect)(()=>{pe&&pe.setOption("mode",de)},[pe,de]),(0,ae.useEffect)(()=>{pe&&(te!==pe.getValue()||te==="")&&setTimeout(()=>{pe.setValue(te||"")},300)},[pe,te]),(0,ae.useEffect)(()=>{if(Ee.current&&!pe){const ke=Ie().fromTextArea(Ee.current,a({mode:de,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},se));he(ke)}},[Ee.current,pe]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:Ee}))}},35567:function(je,yt,ie){"use strict";ie.d(yt,{Z:function(){return Qr}});var ae=ie(67294),ge=ie(4631),at=ie.n(ge),st=ie(91033),Le=ie(71749),Ie=ie(57341),Se=ie(82801),$e=ie(88386),De=ie(49047),we=ie(80785),Me=ie(85725),Be=({value:Te="",className:ze,showTextOnly:Oe,showLines:Rt,style:cn={}})=>{const mn=(0,ae.useMemo)(()=>"",[Te]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:mn}}))},Ae=ie(67294),oe=Object.defineProperty,b=Object.defineProperties,a=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(Te,ze,Oe)=>ze in Te?oe(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Te[ze]=Oe,ee=(Te,ze)=>{for(var Oe in ze||(ze={}))y.call(ze,Oe)&&z(Te,Oe,ze[Oe]);if(E)for(var Oe of E(ze))x.call(ze,Oe)&&z(Te,Oe,ze[Oe]);return Te},te=(Te,ze)=>b(Te,a(ze));let ue=[{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 de({onActionCallback:Te,title:ze,icon:Oe,actionName:Rt,className:cn="",children:mn}){function oa(){Te(Rt)}return Ae.createElement("a",{title:ze,className:cn,onClick:oa},Ae.createElement("i",{className:`${Oe}`}),mn)}var se=({watch:Te,showNullButton:ze,showNullProgramButton:Oe,onActionCallback:Rt,fullScreen:cn,insertTemp:mn,hidetoolBar:oa,extraUse:_n})=>{const Jn=[...ue,{title:`${Te?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Te?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ae.createElement("ul",{className:"markdown-toolbar-container"},!oa&&Jn.map((pa,So)=>Ae.createElement("li",{key:So},pa.actionName?Ae.createElement(de,te(ee({},pa),{onActionCallback:Rt})):Ae.createElement("span",{className:"v-line"}))),ze?Ae.createElement("li",null,Ae.createElement(de,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Rt},Ae.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Oe?Ae.createElement(Ae.Fragment,null,Ae.createElement("li",null,Ae.createElement(de,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Rt},Ae.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ae.createElement("li",null,Ae.createElement(de,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Rt},Ae.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,mn&&Ae.createElement("li",null,Ae.createElement(de,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${mn}`,onActionCallback:Rt},Ae.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),_n&&Ae.createElement("li",null,_n),Ae.createElement("li",{className:"btn-full-screen"},Ae.createElement(de,{icon:`${cn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:cn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Rt})))},Ee=ie(76621),pe=ie(22150),he=ie(69677),ke=ie(71577),rt=Object.defineProperty,We=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,ot=(Te,ze,Oe)=>ze in Te?rt(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Te[ze]=Oe,vt=(Te,ze)=>{for(var Oe in ze||(ze={}))He.call(ze,Oe)&&ot(Te,Oe,ze[Oe]);if(Pe)for(var Oe of Pe(ze))Ye.call(ze,Oe)&&ot(Te,Oe,ze[Oe]);return Te},Qt=(Te,ze)=>We(Te,xe(ze));const Tt={labelCol:{span:4},wrapperCol:{span:20}};var on=({callback:Te,onCancel:ze})=>{function Oe(Rt){Te(Rt)}return ae.createElement(pe.default,Qt(vt({},Tt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Oe,style:{width:500}}),ae.createElement(pe.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(he.default,null)),ae.createElement(pe.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(he.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(ke.ZP,{type:"ghost",onClick:ze},"\u53D6\u6D88")))},An=ie(57444),Ve=ie(70859),Qe=ie(14446),ht=ie(71230),tn=ie(63205),dt=ie(67294),nn=({callback:Te,onCancel:ze})=>{const Oe=document.createElement("canvas"),Rt=Oe.getContext("2d");Oe.width=1e3,Oe.height=800,Rt.fillStyle="#ffffff",Rt.fillRect(0,0,Oe.width,Oe.height);const cn=Oe.toDataURL("image/png");return dt.createElement(Qe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},dt.createElement(ht.Z,{style:{height:"100vh"}},dt.createElement(tn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:cn,visible:!0,title:String(Date.now())},onOk:mn=>{Te({src:mn.url})},onClose:ze})))},be=ie(23495);function Lt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Lt,go.CommandHandler),Lt.prototype.canAlignSelection=function(){var Te=this.diagram;return!(Te===null||Te.isReadOnly||Te.isModelReadOnly||Te.selection.count<2)},Lt.prototype.alignLeft=function(){var Te=this.diagram;Te.startTransaction("aligning left");var ze=1/0;Te.selection.each(function(Oe){Oe instanceof go.Link||(ze=Math.min(Oe.position.x,ze))}),Te.selection.each(function(Oe){Oe instanceof go.Link||Oe.move(new go.Point(ze,Oe.position.y))}),Te.commitTransaction("aligning left")},Lt.prototype.alignRight=function(){var Te=this.diagram;Te.startTransaction("aligning right");var ze=-1/0;Te.selection.each(function(Oe){if(!(Oe instanceof go.Link)){var Rt=Oe.actualBounds.x+Oe.actualBounds.width;ze=Math.max(Rt,ze)}}),Te.selection.each(function(Oe){Oe instanceof go.Link||Oe.move(new go.Point(ze-Oe.actualBounds.width,Oe.position.y))}),Te.commitTransaction("aligning right")},Lt.prototype.alignTop=function(){var Te=this.diagram;Te.startTransaction("alignTop");var ze=1/0;Te.selection.each(function(Oe){Oe instanceof go.Link||(ze=Math.min(Oe.position.y,ze))}),Te.selection.each(function(Oe){Oe instanceof go.Link||Oe.move(new go.Point(Oe.position.x,ze))}),Te.commitTransaction("alignTop")},Lt.prototype.alignBottom=function(){var Te=this.diagram;Te.startTransaction("aligning bottom");var ze=-1/0;Te.selection.each(function(Oe){if(!(Oe instanceof go.Link)){var Rt=Oe.actualBounds.y+Oe.actualBounds.height;ze=Math.max(Rt,ze)}}),Te.selection.each(function(Oe){Oe instanceof go.Link||Oe.move(new go.Point(Oe.actualBounds.x,ze-Oe.actualBounds.height))}),Te.commitTransaction("aligning bottom")},Lt.prototype.alignCenterX=function(){var Te=this.diagram,ze=Te.selection.first();if(ze){Te.startTransaction("aligning Center X");var Oe=ze.actualBounds.x+ze.actualBounds.width/2;Te.selection.each(function(Rt){Rt instanceof go.Link||Rt.move(new go.Point(Oe-Rt.actualBounds.width/2,Rt.actualBounds.y))}),Te.commitTransaction("aligning Center X")}},Lt.prototype.alignCenterY=function(){var Te=this.diagram,ze=Te.selection.first();if(ze){Te.startTransaction("aligning Center Y");var Oe=ze.actualBounds.y+ze.actualBounds.height/2;Te.selection.each(function(Rt){Rt instanceof go.Link||Rt.move(new go.Point(Rt.actualBounds.x,Oe-Rt.actualBounds.height/2))}),Te.commitTransaction("aligning Center Y")}},Lt.prototype.alignColumn=function(Te){var ze=this.diagram;ze.startTransaction("align Column"),Te===void 0&&(Te=0),Te=parseFloat(Te);var Oe=new Array;ze.selection.each(function(_n){_n instanceof go.Link||Oe.push(_n)});for(var Rt=0;Rt<Oe.length-1;Rt++){var cn=Oe[Rt],mn=cn.actualBounds.y+cn.actualBounds.height+Te,oa=Oe[Rt+1];oa.move(new go.Point(cn.actualBounds.x,mn))}ze.commitTransaction("align Column")},Lt.prototype.alignRow=function(Te){Te===void 0&&(Te=0),Te=parseFloat(Te);var ze=this.diagram;ze.startTransaction("align Row");var Oe=new Array;ze.selection.each(function(_n){_n instanceof go.Link||Oe.push(_n)});for(var Rt=0;Rt<Oe.length-1;Rt++){var cn=Oe[Rt],mn=cn.actualBounds.x+cn.actualBounds.width+Te,oa=Oe[Rt+1];oa.move(new go.Point(mn,cn.actualBounds.y))}ze.commitTransaction("align Row")},Lt.prototype.canRotate=function(Te){var ze=this.diagram;return!(ze===null||ze.isReadOnly||ze.isModelReadOnly||ze.selection.count<1)},Lt.prototype.rotate=function(Te){Te===void 0&&(Te=90);var ze=this.diagram;ze.startTransaction("rotate "+Te.toString());var ze=this.diagram;ze.selection.each(function(Oe){Oe instanceof go.Link||Oe instanceof go.Group||(Oe.angle+=Te)}),ze.commitTransaction("rotate "+Te.toString())},Lt.prototype.pullToFront=function(){var Te=this.diagram;Te.startTransaction("pullToFront");var ze=new go.Map;Te.selection.each(function(Oe){ze.set(Oe.layer,0)}),ze.iteratorKeys.each(function(Oe){var Rt=0;Oe.parts.each(function(cn){if(!cn.isSelected){var mn=cn.zOrder;isNaN(mn)?cn.zOrder=0:Rt=Math.max(Rt,mn)}}),ze.set(Oe,Rt)}),Te.selection.each(function(Oe){Lt._assignZOrder(Oe,ze.get(Oe.layer)+1)}),Te.commitTransaction("pullToFront")},Lt.prototype.pushToBack=function(){var Te=this.diagram;Te.startTransaction("pushToBack");var ze=new go.Map;Te.selection.each(function(Oe){ze.set(Oe.layer,0)}),ze.iteratorKeys.each(function(Oe){var Rt=0;Oe.parts.each(function(cn){if(!cn.isSelected){var mn=cn.zOrder;isNaN(mn)?cn.zOrder=0:Rt=Math.min(Rt,mn)}}),ze.set(Oe,Rt)}),Te.selection.each(function(Oe){Lt._assignZOrder(Oe,ze.get(Oe.layer)-1-Lt._findGroupDepth(Oe))}),Te.commitTransaction("pushToBack")},Lt._assignZOrder=function(Te,ze,Oe){Oe===void 0&&(Oe=Te),Te.layer===Oe.layer&&(Te.zOrder=ze),Te instanceof go.Group&&Te.memberParts.each(function(Rt){Lt._assignZOrder(Rt,ze+1,Oe)})},Lt._findGroupDepth=function(Te){if(Te instanceof go.Group){var ze=0;return Te.memberParts.each(function(Oe){ze=Math.max(ze,Lt._findGroupDepth(Oe))}),ze+1}else return 0},Lt.prototype.doKeyDown=function(){var Te=this.diagram;if(Te!==null){var ze=Te.lastInput;if(ze.key==="Up"||ze.key==="Down"||ze.key==="Left"||ze.key==="Right"){var Oe=this.arrowKeyBehavior;if(Oe==="none")return;if(Oe==="select"){this._arrowKeySelect();return}else if(Oe==="move"){this._arrowKeyMove();return}else if(Oe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Lt.prototype._getAllParts=function(){var Te=new Array;return this.diagram.nodes.each(function(ze){Te.push(ze)}),this.diagram.parts.each(function(ze){Te.push(ze)}),Te},Lt.prototype._arrowKeyMove=function(){var Te=this.diagram,ze=Te.lastInput,Oe=0,Rt=0;if(ze.control||ze.meta)Oe=1,Rt=1;else if(Te.grid!==null){var cn=Te.grid.gridCellSize;Rt=cn.width,Oe=cn.height}Te.startTransaction("arrowKeyMove"),Te.selection.each(function(mn){ze.key==="Up"?mn.move(new go.Point(mn.actualBounds.x,mn.actualBounds.y-Oe)):ze.key==="Down"?mn.move(new go.Point(mn.actualBounds.x,mn.actualBounds.y+Oe)):ze.key==="Left"?mn.move(new go.Point(mn.actualBounds.x-Rt,mn.actualBounds.y)):ze.key==="Right"&&mn.move(new go.Point(mn.actualBounds.x+Rt,mn.actualBounds.y))}),Te.commitTransaction("arrowKeyMove")},Lt.prototype._arrowKeySelect=function(){var Te=this.diagram,ze=Te.lastInput,Oe=null;ze.key==="Up"?Oe=this._findNearestPartTowards(270):ze.key==="Down"?Oe=this._findNearestPartTowards(90):ze.key==="Left"?Oe=this._findNearestPartTowards(180):ze.key==="Right"&&(Oe=this._findNearestPartTowards(0)),Oe!==null&&(ze.shift?Oe.isSelected=!0:ze.control||ze.meta?Oe.isSelected=!Oe.isSelected:Te.select(Oe))},Lt.prototype._findNearestPartTowards=function(Te){var ze=this.diagram.selection.first();if(ze===null)return null;for(var Oe=ze.actualBounds.center,Rt=this._getAllParts(),cn=1/0,mn=ze,oa=0;oa<Rt.length;oa++){var _n=Rt[oa];if(_n!==ze&&_n.canSelect()){var Jn=_n.actualBounds.center,pa=Oe.directionPoint(Jn),So=this._angleCloseness(pa,Te);if(So<=45){var wt=Oe.distanceSquaredPoint(Jn);wt*=1+Math.sin(So*Math.PI/180),wt<cn&&(cn=wt,mn=_n)}}}return mn},Lt.prototype._angleCloseness=function(Te,ze){return Math.min(Math.abs(ze-Te),Math.min(Math.abs(ze+360-Te),Math.abs(ze-360-Te)))},Lt.prototype._arrowKeyTree=function(){var Te=this.diagram,ze=Te.selection.first();if(ze instanceof go.Node){var Oe=Te.lastInput;if(Oe.key==="Right"){if(!ze.isTreeLeaf)if(!ze.isTreeExpanded)Te.commandHandler.canExpandTree(ze)&&Te.commandHandler.expandTree(ze);else{var Rt=this._sortTreeChildrenByY(ze).first();Rt!==null&&Te.select(Rt)}}else if(Oe.key==="Left")if(!ze.isTreeLeaf&&ze.isTreeExpanded)Te.commandHandler.canCollapseTree(ze)&&Te.commandHandler.collapseTree(ze);else{var cn=ze.findTreeParentNode();cn!==null&&Te.select(cn)}else if(Oe.key==="Up"){var cn=ze.findTreeParentNode();if(cn!==null){var mn=this._sortTreeChildrenByY(cn),oa=mn.indexOf(ze);if(oa>0){for(var _n=mn.elt(oa-1);_n!==null&&_n.isTreeExpanded&&!_n.isTreeLeaf;){var Jn=this._sortTreeChildrenByY(_n);_n=Jn.last()}_n!==null&&Te.select(_n)}else Te.select(cn)}}else if(Oe.key==="Down")if(ze.isTreeExpanded&&!ze.isTreeLeaf){var Rt=this._sortTreeChildrenByY(ze).first();Rt!==null&&Te.select(Rt)}else for(;ze!==null;){var cn=ze.findTreeParentNode();if(cn===null)break;var mn=this._sortTreeChildrenByY(cn),oa=mn.indexOf(ze);if(oa<mn.length-1){Te.select(mn.elt(oa+1));break}else ze=cn}var pa=Te.selection.first();pa!==null&&Te.scrollToRect(pa.actualBounds)}},Lt.prototype._sortTreeChildrenByY=function(Te){var ze=new go.List().addAll(Te.findTreeChildrenNodes());return ze.sort(function(Oe,Rt){var cn=Oe.location,mn=Rt.location;return cn.y<mn.y?-1:cn.y>mn.y?1:cn.x<mn.x?-1:cn.x>mn.x?1:0}),ze},Lt.prototype.copyToClipboard=function(Te){go.CommandHandler.prototype.copyToClipboard.call(this,Te),this._lastPasteOffset.set(this.pasteOffset)},Lt.prototype.pasteFromClipboard=function(){var Te=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Te,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Te},Object.defineProperty(Lt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Te){if(Te!=="move"&&Te!=="select"&&Te!=="scroll"&&Te!=="tree"&&Te!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Te);this._arrowKeyBehavior=Te}}),Object.defineProperty(Lt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Te){if(!(Te instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Te);this._pasteOffset.set(Te)}});var an=Lt,Mn=ie(18023),Pt=ie(15746),qe=ie(33170),Xe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Re=ie(67294),lt=(Te,ze,Oe)=>new Promise((Rt,cn)=>{var mn=Jn=>{try{_n(Oe.next(Jn))}catch(pa){cn(pa)}},oa=Jn=>{try{_n(Oe.throw(Jn))}catch(pa){cn(pa)}},_n=Jn=>Jn.done?Rt(Jn.value):Promise.resolve(Jn.value).then(mn,oa);_n((Oe=Oe.apply(Te,ze)).next())});function Et({onCancel:Te,callback:ze}){let Oe=(0,ae.useRef)(),Rt=(0,ae.useRef)(),cn=(0,ae.useRef)(),mn=(0,ae.useRef)(!1);const oa=(0,ae.useRef)(!1),[_n,Jn]=(0,ae.useState)(0);function pa(){const wt=be.bx.make,ia={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"};Oe.current=new be.S0(Rt.current,{padding:20,grid:wt(be.s_,"Grid",wt(be.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),wt(be.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Bt=>{var rn=Bt.diagram.commandHandler.addTopLevelParts(Bt.diagram.selection,!0);rn||Bt.diagram.currentTool.doCancel()},commandHandler:wt(an),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Bt=>{var rn=Bt.subject;rn.location=rn.location.copy().snapToGridPoint(Bt.diagram.grid.gridOrigin,Bt.diagram.grid.gridCellSize),setTimeout(()=>{Bt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Bt=>{var rn=Bt.subject;setTimeout(()=>{Bt.diagram.commandHandler.editTextBlock()})},LinkRelinked:Bt=>{var rn=Bt.parameter.part;rn.invalidateConnectedLinks();var Rn=Bt.subject;Bt.diagram.toolManager.linkingTool.isForwards?Rn.toNode.invalidateConnectedLinks():Rn.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Oe.current.nodeTemplate=wt(be.NB,"Auto",{locationSpot:be.z6.Center,locationObjectName:"SHAPE",desiredSize:new be.$u(120,60),minSize:new be.$u(40,40),resizable:!0,resizeCellSize:new be.$u(10,10),rotatable:!0},new be.KX("location","loc",be.E9.parse).makeTwoWay(be.E9.stringify),new be.KX("desiredSize","size",be.$u.parse).makeTwoWay(be.$u.stringify),wt(be.bn,{name:"SHAPE",fill:ia.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:be.z6.AllSides,toSpot:be.z6.AllSides},new be.KX("figure"),new be.KX("fill"),new be.KX("stroke","borderColor"),new be.KX("strokeWidth","thickness"),new be.KX("strokeDashArray","dash")),wt(be.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),wt(be.al,{margin:1,textAlign:"center",overflow:be.al.OverflowEllipsis,editable:!0},new be.KX("text").makeTwoWay(),new be.KX("stroke","color"))),Oe.current.nodeTemplate.toolTip=wt("ToolTip",wt(be.s_,"Vertical",{maxSize:new be.$u(200,NaN)},wt(be.al,{font:"bold 10pt sans-serif",textAlign:"center"},new be.KX("text")),wt(be.al,{font:"10pt sans-serif",textAlign:"center"},new be.KX("text","details"))));function uo(Bt,rn){var Rn=(en,Sa)=>{en.handled=!0,en.diagram.model.commit(Ea=>{var Ja=Sa.part.adornedPart,so=new be.E9().setRectSpot(Ja.actualBounds,Bt);so.subtract(Ja.location),so.scale(2,2),so.x+=Math.sign(so.x)*130,so.y+=Math.sign(so.y)*130,so.add(Ja.location),so.snapToGridPoint(en.diagram.grid.gridOrigin,en.diagram.grid.gridCellSize);var ho=Ea.copyNodeData(Ja.data);Ea.setGroupKeyForNodeData(ho,Ea.getGroupKeyForNodeData(Ja.data)),Ea.addNodeData(ho);var Ar={from:Ja.key,to:Ea.getKeyForNodeData(ho)};Ea.addLinkData(Ar);var qo=en.diagram.findNodeForData(ho);qo.location=so,en.diagram.select(qo),setTimeout(()=>{en.diagram.commandHandler.editTextBlock()},20)})};return wt(be.bn,{figure:rn,alignment:Bt,alignmentFocus:Bt.opposite(),width:Bt.equals(be.z6.Top)||Bt.equals(be.z6.Bottom)?25:18,height:Bt.equals(be.z6.Top)||Bt.equals(be.z6.Bottom)?18:25,fill:"orange",stroke:ia.white,strokeWidth:4,mouseEnter:(en,Sa)=>Sa.fill="dodgerblue",mouseLeave:(en,Sa)=>Sa.fill="orange",isActionable:!0,click:Rn,contextClick:Rn})}function Oo(Bt){return wt(be.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:(rn,Rn)=>Rn.fill="dodgerblue",mouseLeave:(rn,Rn)=>Rn.fill="orange",click:(rn,Rn)=>{rn.diagram.commandHandler.showContextMenu(Rn.part.adornedPart)}},Bt||{})}Oe.current.nodeTemplate.selectionAdornmentTemplate=wt(be.uz,"Spot",wt(be.Vm,{padding:10}),uo(be.z6.Top,"TriangleUp"),uo(be.z6.Left,"TriangleLeft"),uo(be.z6.Right,"TriangleRight"),uo(be.z6.Bottom,"TriangleDown"),Oo({alignment:new be.z6(.75,0)}));function Ha(Bt,rn){return(Rn,en)=>{Rn.handled=!0,Rn.diagram.model.commit(Sa=>{Sa.set(en.part.adornedPart.data,Bt,rn)})}}function wa(Bt,rn){return rn||(rn="color"),wt(be.bn,{width:16,height:16,stroke:"lightgray",fill:Bt,margin:1,background:"transparent",mouseEnter:(Rn,en)=>en.stroke="dodgerblue",mouseLeave:(Rn,en)=>en.stroke="lightgray",click:Ha(rn,Bt),contextClick:Ha(rn,Bt)})}function ar(){return[wt("ContextMenuButton",wt(be.s_,"Horizontal",wa(ia.white,"fill"),wa(ia.beige,"fill"),wa(ia.extralightblue,"fill"),wa(ia.extralightred,"fill"))),wt("ContextMenuButton",wt(be.s_,"Horizontal",wa(ia.lightgray,"fill"),wa(ia.lightgreen,"fill"),wa(ia.lightblue,"fill"),wa(ia.lightred,"fill")))]}function Jo(){return[wt("ContextMenuButton",wt(be.s_,"Horizontal",wa(ia.black),wa(ia.green),wa(ia.blue),wa(ia.red))),wt("ContextMenuButton",wt(be.s_,"Horizontal",wa(ia.white),wa(ia.magenta),wa(ia.purple),wa(ia.orange)))]}function or(Bt,rn){return rn||(rn="thickness"),wt(be.bn,"LineH",{width:16,height:16,strokeWidth:Bt,margin:1,background:"transparent",mouseEnter:(Rn,en)=>en.background="dodgerblue",mouseLeave:(Rn,en)=>en.background="transparent",click:Ha(rn,Bt),contextClick:Ha(rn,Bt)})}function hr(Bt,rn){return rn||(rn="dash"),wt(be.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Bt,margin:1,background:"transparent",mouseEnter:(Rn,en)=>en.background="dodgerblue",mouseLeave:(Rn,en)=>en.background="transparent",click:Ha(rn,Bt),contextClick:Ha(rn,Bt)})}function Zo(){return[wt("ContextMenuButton",wt(be.s_,"Horizontal",or(1),or(2),or(3),or(4))),wt("ContextMenuButton",wt(be.s_,"Horizontal",hr(null),hr([2,4]),hr([4,4])))]}function lo(Bt,rn){return rn||(rn="figure"),wt(be.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Bt,margin:1,background:"transparent",mouseEnter:(Rn,en)=>en.fill="dodgerblue",mouseLeave:(Rn,en)=>en.fill="lightgray",click:Ha(rn,Bt),contextClick:Ha(rn,Bt)})}Oe.current.nodeTemplate.contextMenu=wt("ContextMenu",wt("ContextMenuButton",wt(be.s_,"Horizontal",lo("Rectangle"),lo("RoundedRectangle"),lo("Ellipse"),lo("Diamond"))),wt("ContextMenuButton",wt(be.s_,"Horizontal",lo("Parallelogram2"),lo("ManualOperation"),lo("Procedure"),lo("Cylinder1"))),wt("ContextMenuButton",wt(be.s_,"Horizontal",lo("Terminator"),lo("CreateRequest"),lo("Document"),lo("TriangleDown"))),ar(),Jo(),Zo()),Oe.current.groupTemplate=wt(be.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:be.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Bt,rn)=>{var Rn=rn.addMembers(rn.diagram.selection,!0);Rn||rn.diagram.currentTool.doCancel()},avoidable:!1},new be.KX("location","loc",be.E9.parse).makeTwoWay(be.E9.stringify),wt(be.s_,"Auto",{name:"BODY"},wt(be.bn,{parameter1:10,fill:ia.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:be.z6.AllSides,toSpot:be.z6.AllSides},new be.KX("fill"),new be.KX("stroke","color"),new be.KX("strokeWidth","thickness"),new be.KX("strokeDashArray","dash")),wt(be.Vm,{background:"transparent",margin:20})),wt(be.al,{alignment:be.z6.Top,alignmentFocus:be.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new be.KX("text"),new be.KX("stroke","color"))),Oe.current.groupTemplate.selectionAdornmentTemplate=wt(be.uz,"Spot",wt(be.s_,"Auto",wt(be.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),wt(be.Vm,{margin:1.5})),Oo({alignment:be.z6.TopRight,alignmentFocus:be.z6.BottomRight})),Oe.current.groupTemplate.contextMenu=wt("ContextMenu",ar(),Jo(),Zo()),Oe.current.linkTemplate=wt(be.rU,{layerName:"Foreground",routing:be.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new be.KX("fromSpot","fromSpot",be.z6.parse),new be.KX("toSpot","toSpot",be.z6.parse),new be.KX("fromShortLength","dir",Bt=>Bt>=1?10:0),new be.KX("toShortLength","dir",Bt=>Bt>=1?10:0),new be.KX("points").makeTwoWay(),wt(be.bn,{strokeWidth:2},new be.KX("stroke","color"),new be.KX("strokeWidth","thickness"),new be.KX("strokeDashArray","dash")),wt(be.bn,{segmentIndex:0,segmentOffset:new be.E9(15,0),segmentOrientation:be.rU.OrientAlong,alignmentFocus:be.z6.Right,figure:"circle",width:10,strokeWidth:0},new be.KX("fill","color"),new be.KX("visible","dir",Bt=>Bt===1)),wt(be.bn,{segmentIndex:-1,segmentOffset:new be.E9(-10,6),segmentOrientation:be.rU.OrientPlus90,alignmentFocus:be.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new be.KX("fill","color"),new be.KX("visible","dir",Bt=>Bt>=1),new be.KX("width","thickness",Bt=>7+3*Bt),new be.KX("height","thickness",Bt=>7+3*Bt),new be.KX("segmentOffset","thickness",Bt=>new be.E9(-15,4+1.5*Bt))),wt(be.bn,{segmentIndex:0,segmentOffset:new be.E9(15,-6),segmentOrientation:be.rU.OrientMinus90,alignmentFocus:be.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new be.KX("fill","color"),new be.KX("visible","dir",Bt=>Bt===2),new be.KX("width","thickness",Bt=>7+3*Bt),new be.KX("height","thickness",Bt=>7+3*Bt),new be.KX("segmentOffset","thickness",Bt=>new be.E9(-15,4+1.5*Bt))),wt(be.al,{alignmentFocus:new be.z6(0,1,-4,0),editable:!0},new be.KX("text").makeTwoWay(),new be.KX("stroke","color"))),Oe.current.linkTemplate.selectionAdornmentTemplate=wt(be.uz,wt(be.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:rr(2)},new be.KX("pathPattern","thickness",rr)),Oo({alignmentFocus:new be.z6(0,0,-6,-4)}));function rr(Bt){return wt(be.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Bt+4).toString()+" H3"})}function Ho(Bt){var rn="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Bt===0?rn="M0 0 M16 16 M0 8 L16 8":Bt===2&&(rn="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),wt(be.bn,{geometryString:rn,margin:2,background:"transparent",mouseEnter:(Rn,en)=>en.background="dodgerblue",mouseLeave:(Rn,en)=>en.background="transparent",click:Ha("dir",Bt),contextClick:Ha("dir",Bt)})}function Mr(Bt){var rn=(Rn,en)=>{Rn.handled=!0,Rn.diagram.model.commit(Sa=>{var Ea=en.part.adornedPart;Sa.set(Ea.data,Bt?"toSpot":"fromSpot",be.z6.stringify(be.z6.AllSides)),(Bt?Ea.toNode:Ea.fromNode).invalidateConnectedLinks()})};return wt(be.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Rn,en)=>en.background="dodgerblue",mouseLeave:(Rn,en)=>en.background="transparent",click:rn,contextClick:rn})}function ut(Bt,rn){var Rn=0,en=be.z6.RightSide;Bt.equals(be.z6.Top)?(Rn=270,en=be.z6.TopSide):Bt.equals(be.z6.Left)?(Rn=180,en=be.z6.LeftSide):Bt.equals(be.z6.Bottom)&&(Rn=90,en=be.z6.BottomSide),rn||(Rn-=180);var Sa=(Ea,Ja)=>{Ea.handled=!0,Ea.diagram.model.commit(so=>{var ho=Ja.part.adornedPart;so.set(ho.data,rn?"toSpot":"fromSpot",be.z6.stringify(en)),(rn?ho.toNode:ho.fromNode).invalidateConnectedLinks()})};return wt(be.bn,{alignment:Bt,alignmentFocus:Bt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Rn,background:"transparent",mouseEnter:(Ea,Ja)=>Ja.background="dodgerblue",mouseLeave:(Ea,Ja)=>Ja.background="transparent",click:Sa,contextClick:Sa})}Oe.current.linkTemplate.contextMenu=wt("ContextMenu",Jo(),Zo(),wt("ContextMenuButton",wt(be.s_,"Horizontal",Ho(0),Ho(1),Ho(2))),wt("ContextMenuButton",wt(be.s_,"Horizontal",wt(be.s_,"Spot",Mr(!1),ut(be.z6.Top,!1),ut(be.z6.Left,!1),ut(be.z6.Right,!1),ut(be.z6.Bottom,!1)),wt(be.s_,"Spot",{margin:new be.Zt(0,0,0,2)},Mr(!0),ut(be.z6.Top,!0),ut(be.z6.Left,!0),ut(be.z6.Right,!0),ut(be.z6.Bottom,!0)))));const Zr=`{ "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 Ko=["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 Pr(Bt){return console.log("shapeName:",Bt),Ko.indexOf(Bt)>=0}var No=new be.YI(cn.current,{maxSelectionCount:1,linkTemplate:wt(be.rU,{locationSpot:be.z6.Center,selectionAdornmentTemplate:wt(be.uz,"Link",{locationSpot:be.z6.Center},wt(be.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),wt(be.bn,{toArrow:"Standard",stroke:null}))},{routing:be.rU.AvoidsNodes,curve:be.rU.JumpOver,corner:5,toShortLength:4},new be.KX("points"),wt(be.bn,{isPanelMain:!0,strokeWidth:2}),wt(be.bn,{toArrow:"Standard",stroke:null})),model:new be.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...be.bn.getFigureGenerators().toArray().map(Bt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Bt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Oe.current.addDiagramListener("TextEdited",function(Bt){var rn;const Rn=Bt.subject.part;var en=(rn=document.activeElement)==null?void 0:rn.value;typeof en=="string"&&en.trim()===""&&Oe.current.model.commit(function(Sa){Sa.set(Rn.data,"text","\u672A\u547D\u540D"),Oe.current.commandHandler.stopCommand()},"increment")}),No.nodeTemplate=wt(be.NB,"Auto",{locationSpot:be.z6.Center},new be.KX("location","location",be.E9.parse).makeTwoWay(be.E9.stringify),wt(be.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 be.KX("stroke").makeTwoWay(),new be.KX("fill").makeTwoWay(),new be.KX("figure")),wt(be.al,{margin:new be.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new be.$u(16,16),maxSize:new be.$u(10,NaN),textAlign:"center",editable:!0},new be.KX("key").makeTwoWay())),setTimeout(()=>{Oe.current.grid=wt(be.s_,"Grid",wt(be.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),wt(be.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Oe.current.grid.visible=!0,Oe.current.grid.gridCellStroke="darkgray",Oe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Oe.current,Oe.current}const So=()=>lt(this,null,function*(){var wt=Oe.current.makeImage();const ia=yield(0,qe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:wt.src}});ze({src:ia.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{pa()},500),Jn(_n+1),()=>{Oe.current=null}),[]),Re.createElement("div",{ref:oa,className:mn.current?`${Xe.maxH60} body-overflow-initial`:"body-overflow-initial"},Re.createElement(Qe.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!_n,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Re.createElement(ht.Z,null,Re.createElement(Pt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Re.createElement(Pt.Z,{onClick:()=>{var wt,ia,uo=Oe.current.selection.first();if(mn.current=!mn.current,document.activeElement&&uo){let Oo=(ia=(wt=document.activeElement)==null?void 0:wt.value)==null?void 0:ia.trim();typeof Oo=="string"&&Oe.current.model.commit(function(Ha){Ha.set(uo.data,"text",Oo||"\u672A\u547D\u540D"),Oe.current.commandHandler.stopCommand()},"increment")}Jn(_n+1)}},Re.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Te},Re.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Xe.flowChartWrp},Re.createElement("div",{style:{display:"flex",height:"100%"}},Re.createElement("div",{style:{width:"300px",height:"100%"}},Re.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Re.createElement("div",{style:{height:"calc(100% - 50px)"},className:Xe.myPaletteDiv,ref:cn})),Re.createElement("div",{style:{flex:1,position:"relative"}},Re.createElement("div",{ref:Rt,style:{height:"80vh"}}))),Re.createElement("div",{className:"tr"},Re.createElement(ke.ZP,{size:"large",onClick:So,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var $t=Et,sn=ie(78045),pn=ie(31795);const Cn=sn.ZP.Group,$n={margin:"0 8px"};var wn=({callback:Te,onCancel:ze})=>{function Oe(Rt){Te(Rt)}return ae.createElement(pe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Oe},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:$n},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:$n},"\u884C\u6570"),ae.createElement(pe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(pn.Z,null)),ae.createElement("span",{style:$n},"\u5217\u6570"),ae.createElement(pe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(pn.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:$n},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(pe.default.Item,{name:"align"},ae.createElement(Cn,null,ae.createElement(sn.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(sn.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(sn.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(sn.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(ke.ZP,{type:"ghost",onClick:ze},"\u53D6\u6D88")))},Fn=ie(47897),jn=ie(61016),ya=ie.n(jn),ra=(0,ae.forwardRef)(({use3d:Te,width:ze,height:Oe,callback:Rt,showSaveButton:cn},mn)=>{const oa=(0,ae.useRef)(),_n=(0,ae.useRef)(),[Jn,pa]=(0,ae.useState)(!1),So=(0,ae.useRef)({id:oa,appName:"graphing",width:ze||1e3,height:Oe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ae.useEffect)(()=>{_n.current=new(ya())(So.current,!0),window.onload=function(){_n.current.inject("applet_container")}},[]);const wt=()=>{var ia=window.ggbApplet.getPNGBase64(1,!0,72);return Rt&&Rt(ia),ia};return(0,ae.useEffect)(()=>{So.current.appName=Jn?"3D":"graphing",_n.current.inject("applet_container")},[Jn]),(0,ae.useEffect)(()=>{pa(Te)},[Te]),(0,ae.useImperativeHandle)(mn,()=>({getImgData:wt})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:oa}),ae.createElement(ht.Z,{align:"middle"},ae.createElement(Pt.Z,{flex:1},ae.createElement(Fn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Jn,onChange:ia=>pa(ia)})),ae.createElement(Pt.Z,null,ae.createElement(ke.ZP,{size:"large",onClick:wt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),ca=ie(36527),aa=ie(25934),Fa=ie(2453);const Da="link",no="upload-image",za="add-flowchart",ka="draw-image",Qa="add-flowchart",ma="code-block",_a="add-table",Bo="------------",Za={default:Bo,left:`:${Bo}`,center:`:${Bo}:`,right:`${Bo}:`};var fr=ie(99914),zo=(Te,ze,Oe)=>new Promise((Rt,cn)=>{var mn=Jn=>{try{_n(Oe.next(Jn))}catch(pa){cn(pa)}},oa=Jn=>{try{_n(Oe.throw(Jn))}catch(pa){cn(pa)}},_n=Jn=>Jn.done?Rt(Jn.value):Promise.resolve(Jn.value).then(mn,oa);_n((Oe=Oe.apply(Te,ze)).next())});function Qo(){}let vr=0;const Ao=1e4,tr="\u2581",Co="@\u2581\u2581@",Nr="@\u2581@",ko=`
|
|
**\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`,_o=["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 xo(Te){return/^\d+$/.test(Te)?`${Te}px`:Te}const ro=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",_r={[ro+"-B"]:"bold",[ro+"-I"]:"italic"},Sr={[Da]:"\u6DFB\u52A0\u94FE\u63A5",[ma]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[no]:"\u6DFB\u52A0\u56FE\u7247",[ka]:"\u6DFB\u52A0\u753B\u56FE",[za]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[_a]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Qr=({defaultValue:Te="",onChange:ze,width:Oe="100%",height:Rt=400,miniToolbar:cn=!1,isFocus:mn=!1,watch:oa,insertTemp:_n,mode:Jn="markdown",id:pa="markdown-editor-id",showResizeBar:So=!1,noStorage:wt=!1,showNullButton:ia=!1,showNullProgramButton:uo=!1,hidetoolBar:Oo=!1,fullScreen:Ha=!1,onBlur:wa,onCMBeforeChange:ar,onFullScreen:Jo,className:or="",disablePaste:hr=!1,disabled:Zo=!1,disabledFill:lo=!1,placeholder:rr="",values:Ho="",extraUse:Mr})=>{const[ut,Zr]=(0,ae.useState)(null),[Ko,Pr]=(0,ae.useState)(Te),[No,Bt]=(0,ae.useState)(oa),[rn,Rn]=(0,ae.useState)(Ha),[en,Sa]=(0,ae.useState)(""),[Ea,Ja]=(0,ae.useState)(0),[so,ho]=(0,ae.useState)(Rt),[Ar,qo]=(0,ae.useState)(!1),ci=(0,ae.useRef)((0,aa.Z)()),mi=(0,ae.useRef)(!1),Or=(0,ae.useRef)(),[Jr,ir]=(0,ae.useState)(0),[Ir,Hr]=(0,ae.useState)(0),Io=(0,ae.useRef)(),pr=(0,ae.useRef)(),br=(0,ae.useRef)(),yr=(0,ae.useRef)(),qr=()=>zo(void 0,null,function*(){var un;const Gt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ci.current}});(un=Gt==null?void 0:Gt.attachments)!=null&&un.length&&(console.log("cm:",ut,Io),Gt.attachments.map(Wt=>{Wt.content_type.indexOf("image")>-1?ut.replaceSelection(``):Wt.content_type.indexOf("video")>-1?ut.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Wt.content_type.indexOf("pdf")>-1?ut.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Wt.id}?type=${Wt.content_type}&disposition=inline" target="_blank">${Wt.name}</a>`):ut.replaceSelection(`[${Wt.name}](${ENV.API_SERVER}/api/attachments/${Wt.id}?type=${Wt.content_type})`)}))});(0,ae.useEffect)(()=>{const un=window.scrollY||window.pageYOffset;Pr(Ho),ut==null||ut.setValue(Ho),window.scrollTo(0,un)},[Ho]),(0,ae.useEffect)(()=>{Jo==null||Jo(rn)},[rn]),(0,ae.useEffect)(()=>{if(Io.current){let un=function(Wt,qt){var qn;if(hr){qt.preventDefault();return}const ba=qt.clipboardData;if(ba){const eo=ba.types.toString(),Ca=ba.items;if(eo==="Files"||ba.types.indexOf("Files")>-1){if(qt.preventDefault(),Jn=="stex")return;try{let La=Ca[1];((qn=Ca[0])==null?void 0:qn.kind)==="file"&&(La=Ca[0]);const to=La.getAsFile(),To=to.name.split(".").pop();(0,Ve.I)(to,co=>{var er,gr,lr;co.id?((er=to==null?void 0:to.type)==null?void 0:er.indexOf("image"))>-1?Gt.replaceSelection(`<img width="100%" src="/api/attachments/${co.id}?type=${co.content_type})" alt="" />`):((gr=to==null?void 0:to.type)==null?void 0:gr.indexOf("video"))>-1?Gt.replaceSelection(`<video width="100%" controls src="/api/attachments/${co.id}"></video>`):((lr=to==null?void 0:to.type)==null?void 0:lr.indexOf("pdf"))>-1?Gt.replaceSelection(`<a href="/api/attachments/${co.id}?type=${to.type}&disposition=inline" target="_blank">${to.name}</a>`):_o.includes(To)?Gt.replaceSelection(`<a href="/api/attachments/${co.id}?type=office&disposition=inline" target="_blank">${to.name}</a>`):Gt.replaceSelection(`[${to.name}](/api/attachments/${co.id}?type=${co.content_type})`):(co==null?void 0:co.status)===401&&(Fa.ZP.warning((co==null?void 0:co.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(La){Fa.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Gt=at().fromTextArea(Io.current,{mode:Jn,lineNumbers:!cn,lineWrapping:!0,value:Te,autoCloseTags:!uo,autoCloseBrackets:!0});return Gt.on("keyup",function(Wt,qt){qt.keyCode===8&&(Wt.getValue()==""?Gt.setOption("placeholder",rr):Gt.setOption("placeholder",null))}),Gt.on("keydown",function(Wt,qt){if(qt.keyCode===8){var qn=Tr(Wt);qn&&qt.preventDefault()}}),mn&&Gt.focus(),Gt.on("paste",un),Gt.on("dragleave",function(Wt,qt){pr.current.classList.remove("mouse-hover-md")}),Zo&&Gt.on("beforeChange",function(Wt,qt){(qt.origin==="paste"||qt.origin==="+input")&&qt.cancel()}),Zr(Gt),()=>{Gt.off("paste",un)}}},[]);const Wo=(0,ae.useCallback)(()=>{if(pr.current)try{}catch(un){console.log(un,"---- to set md editor body height")}},[so,pr,rn]);(0,ae.useEffect)(()=>{function un(){let Gt=new st.Z(Wt=>{for(let qt of Wt)(qt.target.offsetHeight>0||qt.target.offsetWidth>0)&&(Wo(),ut.setSize("100%","100%"),ut.refresh())});return Gt.observe(Io.current.parentElement),Gt}if(ut){const Gt=un();return()=>{var Wt,qt;(Wt=Io.current)!=null&&Wt.parentElement&&Gt.unobserve((qt=Io.current)==null?void 0:qt.parentElement)}}},[ut,Wo]),(0,ae.useEffect)(()=>{if(ut){let un=[];for(const[Gt,Wt]of Object.entries(_r)){let qt={[Gt]:()=>{Er(Wt)}};un.push(qt),ut.addKeyMap(qt)}return Or.current=setInterval(()=>{mi.current&&qr()},4e3),()=>{clearInterval(Or.current);for(let Gt of un)ut.removeKeyMap(Gt)}}},[ut]),(0,ae.useEffect)(()=>{Ha!==rn&&Rn(Ha)},[Ha]),(0,fr.Z)(()=>{if(!wt&&Ea>0){let un=new Date().getTime(),Gt=window.sessionStorage.getItem(pa);un>=Ea+Ao&&(!Gt||Gt!==Ko)&&(window.sessionStorage.setItem(pa,Ko),qo(!0))}},Ao),(0,ae.useEffect)(()=>{Bt(oa)},[ut,oa]),(0,ae.useEffect)(()=>{ut&&mn&&ut.focus()},[ut,mn]),(0,ae.useEffect)(()=>{if(No&&ut){let un=function(Wt){let qt=Wt.target;if(yr.current){let qn=qt.scrollTop/qt.scrollHeight;yr.current.scrollTop=yr.current.scrollHeight*qn}};const Gt=ut.getScrollerElement();return Gt.addEventListener("scroll",un),()=>{Gt.removeEventListener("scroll",un)}}},[ut,No]),(0,ae.useEffect)(()=>{if(ut&&ar){let un=function(Gt,Wt){ar(Gt,Wt)};return ut.on("beforeChange",un),()=>{ut.off("beforeChange",un)}}},[ut,ar]),(0,ae.useEffect)(()=>{if(ut&&wa){let un=function(){wa(ut.getValue())};return ut.on("blur",un),()=>{ut.off("blur",un)}}},[ut,wa]);function Tr(un,Gt){var Wt=un.getDoc(),qt=Wt.getCursor(),qn=Wt.getLine(qt.line),ba=qn.charAt(qt.ch-1),eo=qn.lastIndexOf("@\u2581@",qt.ch),Ca=qn.lastIndexOf("@\u2581\u2581@",qt.ch),La=eo>Ca?eo:Ca,to=eo>Ca?3:4;if(Co.indexOf(ba)===-1)return null;if(console.log("change1:",Gt,un,qn,qt,La,eo,Ca,ba),La>=0&&qt.ch-La<5){var To=La+to;return Wt.replaceRange("",{line:qt.line,ch:La},{line:qt.line,ch:To}),{line:qt.line,ch:To}}return null}(0,ae.useEffect)(()=>{if(ut){let un=function(Gt,Wt){const qt=Gt.getValue();Pr(qt),Ja(new Date().getTime()),Gt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ze&&(uo?ze(qt,ai(qt)):ze(qt))};return ut.on("change",un),()=>{ut.off("change",un)}}},[ut,ze]),(0,ae.useEffect)(()=>{if(ut)if(Te==null)ut.setValue(""),Pr("");else{const un=window.scrollY||window.pageYOffset;Te!==ut.getValue()&&(ut.setValue(Te),Pr(Te),ut.setCursor(Zo?1:ut.lineCount(),0),window.scrollTo(0,un))}},[ut,Te]);const Er=(0,ae.useCallback)(un=>{const Gt=ut.getCursor(),Wt=ut.getSelection();let qt=Wt.split(`
|
|
`);switch(un){case"bold":return ut.replaceSelection("**"+Wt+"**"),Wt===""&&ut.setCursor(Gt.line,Gt.ch+2),ut.focus();case"italic":return ut.replaceSelection("*"+Wt+"*"),Wt===""&&ut.setCursor(Gt.line,Gt.ch+1),ut.focus();case"code":return ut.replaceSelection("`"+Wt+"`"),Wt===""&&ut.setCursor(Gt.line,Gt.ch+1),ut.focus();case"inline-latex":return Sa("inline-latex"),ut.focus();case"latex":return ut.replaceSelection("```latex\n"+Wt+"\n```"),ut.setCursor(Gt.line+1,Wt.length+1),ut.focus();case"line-break":return ut.replaceSelection(`<br/>
|
|
`),ut.focus();case"list-ul":return Wt===""?ut.replaceSelection("- "+Wt):ut.replaceSelection(qt.map(qn=>qn===""?"":`- ${qn}`).join(`
|
|
`)),ut.focus();case"list-ol":return Wt===""?ut.replaceSelection("1. "+Wt):ut.replaceSelection(qt.map((qn,ba)=>qn===""?"":`${ba+1}. ${qn}`).join(`
|
|
`)),ut.focus();case"add-null-ch":return Wt===""&&ut.setCursor(Gt.line,Gt.ch),ut.replaceSelection(tr),ut.focus();case"add-signal":return Wt===""&&ut.setCursor(Gt.line,Gt.ch),ut.replaceSelection(Nr),ut.focus();case"add-multiple":return Wt===""&&ut.setCursor(Gt.line,Gt.ch),ut.replaceSelection(Co),ut.focus();case"inster-template-1":return Wt===""&&ut.setCursor(Gt.line,Gt.ch),ut.replaceSelection(ko),ut.focus();case"eraser":return ut.setValue(""),ut.focus();case"trigger-watch":return Bt(!No),ut.focus();case"trigger-full-screen":return Rn(!rn),ut.focus();case Da:Sa(Da);return;case ma:Sa(ma);return;case no:Sa(no);return;case ka:Sa(ka);return;case"maths-latex":Sa("maths-latex");return;case za:Sa(za);return;case _a:Sa(_a);return;default:throw new Error}},[ut,No,rn]),fo=(0,ae.useCallback)((un,Gt)=>{var Wt,qt,qn,ba,eo,Ca;switch(Sa(""),en){case Da:const{title:er,link:gr}=un;return ut.replaceSelection(`[${er}](${gr})`),ut.focus();case ma:const{language:lr,content:Po}=un;return ut.replaceSelection(["```"+lr,Po,"```"].join(`
|
|
`)),ut.focus();case"maths-latex":for(var La=atob(un),to=new Uint8Array(La.length),To=0;To<La.length;To++)to[To]=La.charCodeAt(To);var co=new Blob([to],{type:"image/png"});(0,Ve.I)(co,po=>{po.id?ut.replaceSelection(``):(po==null?void 0:po.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":ut.replaceSelection("`$$"+un+"$$`");break;case no:case ka:case Qa:const{src:Lo,alt:oi}=un,$a=Gt,dr=(qn=(qt=(Wt=$a==null?void 0:$a.name)==null?void 0:Wt.split("."))==null?void 0:qt.pop)==null?void 0:qn.call(qt);return((ba=$a==null?void 0:$a.type)==null?void 0:ba.indexOf("image"))>-1||!($a!=null&&$a.type)?$a.align||$a.width?ut.replaceSelection(`<p style="text-align:${$a.align||"initial"}"><img width="${$a.width?$a.width+"%":"initial"}" src="${Lo}" alt="${oi||""}" /></p>`):ut.replaceSelection(`<img width="100%" src="${Lo}" alt="${oi||""}" />`):((eo=$a==null?void 0:$a.type)==null?void 0:eo.indexOf("video"))>-1?ut.replaceSelection(`<video width="100%" controls src="${Lo}"></video>`):((Ca=$a==null?void 0:$a.type)==null?void 0:Ca.indexOf("pdf"))>-1?ut.replaceSelection(`<a href="${Lo}?type=${$a.type}&disposition=inline" target="_blank">${$a.name}</a>`):_o.includes(dr)?ut.replaceSelection(`<a href="${Lo}?type=office&disposition=inline" target="_blank">${$a.name}</a>`):ut.replaceSelection(`[${$a.name}](${Lo})`),ut.focus();case _a:const{row:ri,col:Lr,align:$r}=un;let $o=`
|
|
`;for(let po=0;po<ri;po++){let ii=[],Rr=[];for(let ui=0;ui<Lr;ui++)po===1&&Rr.push(Za[$r]),ii.push(" ");po===1&&($o+=`| ${Rr.join(" | ")} |
|
|
`),$o+=`| ${ii.join(Lr===1?"":" | ")} |
|
|
`}return ut.replaceSelection($o+`
|
|
`),ut.focus();default:throw new Error}},[ut,en]),ei=(0,ae.useMemo)(()=>{switch(en){case Da:return ae.createElement(on,{callback:fo,onCancel:qa});case ma:return ae.createElement(An.Z,{callback:fo,onCancel:qa});case no:return ae.createElement(Ve.Z,{callback:fo,onCancel:qa});case za:return ae.createElement($t,{callback:fo,onCancel:qa});case _a:return ae.createElement(wn,{callback:fo,onCancel:qa});case"maths-latex":return ae.createElement(ra,{showSaveButton:!0,callback:fo});case"inline-latex":return ae.createElement(ca.Z,{showSaveButton:!0,callback:fo});default:return null}},[en]);function qa(){Sa("")}(0,ae.useEffect)(()=>{if(br.current){let un=function(eo){qn=!0,ba=eo.pageY},Gt=function(){qn=!1},Wt=function(eo){if(qn){let Ca=eo.pageY-ba;Ca<0&&(Ca=0),Ca>300&&(Ca=300);let La=Rt+Ca+"px";ho(La)}},qt=br.current,qn=!1,ba=0;return qt.addEventListener("mousedown",un),document.addEventListener("mousemove",Wt),document.addEventListener("mouseup",Gt),()=>{qt.removeEventListener("mousedown",un),document.removeEventListener("mousemove",Wt),document.removeEventListener("mouseup",Gt)}}},[ut,br]),(0,ae.useEffect)(()=>{ho(Rt)},[Rt]);const ur=xo(Oe),Cr=xo(so),ti={width:ur,height:Cr},ni=(0,ae.useMemo)(()=>{if(Ea){let un=new Date(Ea),Gt=un.getHours(),Wt=un.getMinutes(),qt=un.getSeconds();return Gt=Gt<10?"0"+Gt:Gt,Wt=Wt<10?"0"+Wt:Wt,qt=qt<10?"0"+qt:qt,`${Gt}:${Wt}:${qt}`}return 0},[Ea]),ai=un=>{const Gt=[];if(uo){let Wt=-1;un=un.replace(/(@▁▁@|@▁@)/g,function(qt,qn,ba){Gt.push({multiLine:qt!==Nr})})}return Gt};function fi(){window.sessionStorage.removeItem(pa),qo(!1),Ja(0)}function vi(){qo(!1),Ja(0),ut.setValue(window.sessionStorage.getItem(pa))}(0,ae.useEffect)(()=>{Sr[en]&&en!==ka&&en!==za&&setTimeout(()=>{const un=document.getElementsByClassName("markdown-popup-form")[0],Gt=window.innerWidth/2-un.offsetWidth/2,Wt=window.innerHeight/2-un.offsetHeight/2;ir(Gt),Hr(Wt)},0)},[en]);const Kr=un=>{un.preventDefault();const Gt=un.clientX-Jr,Wt=un.clientY-Ir;document.body.onmousemove=qt=>{let qn=qt.clientX-Gt,ba=qt.clientY-Wt;const eo=document.getElementsByClassName("markdown-popup-form")[0],Ca=window.innerWidth-eo.offsetWidth,La=window.innerHeight-eo.offsetHeight;qn=Math.max(0,Math.min(qn,Ca)),ba=Math.max(0,Math.min(ba,La)),Wr(qt.clientX,qt.clientY,Gt,Wt)&&(ir(qn),Hr(ba))},document.body.onmouseup=function(){document.body.onmousemove=null}},Wr=(un,Gt,Wt,qt)=>{const qn=document.body.clientHeight,ba=document.body.clientWidth;return un<20&&Wt>un||un>ba-20&&Wt<un||Gt<20&&qt>Gt||Gt>qn-20&&qt<Gt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:pr},ae.createElement("div",{className:`markdown-editor-container ${or} ${No?"on-preview":""} ${cn?"mini":""} ${rn?"full-screen":""}`,style:ti},ae.createElement(se,{insertTemp:_n,watch:No,fullScreen:rn,showNullButton:ia,showNullProgramButton:uo,onActionCallback:Er,hidetoolBar:Oo,extraUse:Mr}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:Io,placeholder:rr})),No?ae.createElement("div",{ref:yr,className:"preview-container"},Jn==="stex"&&ae.createElement(Be,{value:Ko}),Jn!=="stex"&&ae.createElement(Me.Z,{disabledFill:lo,showProgramFill:uo,value:Ko})):null))),So?ae.createElement("a",{ref:br,className:"editor-resize"}):null,en===ka&&ae.createElement(nn,{callback:fo,onCancel:qa}),en===za&&ae.createElement($t,{callback:fo,onCancel:qa}),ae.createElement(Ee.Z,null,Sr[en]&&en!==ka&&en!==za?ae.createElement(Qe.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Jr,top:Ir},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:Kr},Sr[en]),open:!0,onCancel:qa,footer:null,destroyOnClose:!0,width:en===za?"1200px":null,height:en===za?"80vh":null,className:"markdown-popup-form"},ei):null))}},70859:function(je,yt,ie){"use strict";ie.d(yt,{Z:function(){return de},I:function(){return Ee}});var ae=ie(22150),ge=ie(2453),at=ie(69677),st=ie(93421),Le=ie(31795),Ie=ie(78045),Se=ie(71577),$e=ie(15476),De=ie(67294),we=ie(52262),Me=ie(67294),Be=Object.defineProperty,Ae=Object.defineProperties,oe=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,y=(pe,he,ke)=>he in pe?Be(pe,he,{enumerable:!0,configurable:!0,writable:!0,value:ke}):pe[he]=ke,x=(pe,he)=>{for(var ke in he||(he={}))a.call(he,ke)&&y(pe,ke,he[ke]);if(b)for(var ke of b(he))E.call(he,ke)&&y(pe,ke,he[ke]);return pe},z=(pe,he)=>Ae(pe,oe(he));const{useForm:ee}=ae.default,te={width:280,marginRight:10},ue={labelCol:{span:5},wrapperCol:{span:19}};var de=({callback:pe,onCancel:he})=>{const[ke]=ee();let rt=(0,De.useRef)();function We(He){rt.current.width=ke.getFieldValue("width"),rt.current.align=ke.getFieldValue("align"),pe(He,rt.current)}function xe(He,Ye){if(He.status===-1){ge.ZP.error(He.message);return}ke.setFieldsValue({src:`/api/attachments/${He.id}`,type:Ye.type})}function Pe(He){let Ye=He.target.files[0];rt.current=Ye,Ee(Ye,xe)}return Me.createElement(ae.default,z(x({form:ke},ue),{className:"upload-image-panel",onFinish:We,style:{width:470,overflow:"hidden"}}),Me.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Me.createElement("div",{className:"flex-container"},Me.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Me.createElement(at.default,{style:te})),Me.createElement(se,{onFileChange:Pe}))),Me.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Me.createElement(at.default,{style:{width:264}})),Me.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Me.createElement(st.Z,null,Me.createElement(ae.default.Item,{name:"width",style:{margin:0}},Me.createElement(Le.Z,{style:{width:264}})),Me.createElement("span",{className:"ml8"},"%"))),Me.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Me.createElement(Ie.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Me.createElement("aside",null,Me.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Me.createElement(Se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Me.createElement(Se.ZP,{type:"default",onClick:he},"\u53D6\u6D88"))))};function se({onFileChange:pe}){return Me.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Me.createElement("input",{type:"file",onChange:pe}))}function Ee(pe,he){if(!pe)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,we.bg)())throw ge.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let ke=new FormData;ke.append("editormd-image-file",pe),ke.append("file_param_name","editormd-image-file"),ke.append("byxhr","true");var rt=new window.XMLHttpRequest;rt.withCredentials=!0,rt.addEventListener("load",function(We){he(JSON.parse(We.target.responseText),pe)},!1),rt.addEventListener("error",function(We){console.error(We)},!1),rt.open("POST",`${$e.KI}/api/attachments.json`),rt.send(ke)}},76621:function(je,yt,ie){"use strict";ie.d(yt,{Z:function(){return at}});var ae=ie(67294),ge=ie(73935);class at extends ae.Component{constructor(Le){super(Le);const Ie=window.document;this.node=Ie.createElement("div"),Ie.body.appendChild(this.node)}render(){const{children:Le}=this.props;return(0,ge.createPortal)(Le,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(je,yt,ie){"use strict";ie.d(yt,{Z:function(){return ge}});var ae=ie(67294);function ge(at,st){const Le=(0,ae.useRef)();(0,ae.useEffect)(()=>{Le.current=at}),(0,ae.useEffect)(()=>{function Ie(){Le.current()}if(st!==null){let Se=setInterval(Ie,st);return()=>clearInterval(Se)}},[st])}},6469:function(je,yt,ie){"use strict";ie.r(yt),ie.d(yt,{default:function(){return rt}});var ae=ie(67294),ge=ie(35567),at=ie(35973),st=ie(68508),Le=ie(97183),Ie=ie(22150),Se=ie(2453),$e=ie(85673),De=ie(71230),we=ie(15746),Me=ie(42563),Be=ie(69677),Ae=ie(96074),oe=ie(85546),b=ie(71577),a=ie(70757),E={flex_box_center:"flex_box_center___JefHi",flex_space_between:"flex_space_between___N1h0l",flex_box_vertical_center:"flex_box_vertical_center___Mtb4t",flex_box_center_end:"flex_box_center_end___F6G6K",flex_box_column:"flex_box_column___JldFX",bg:"bg___Hgook",title:"title____XaYs",titleLeft:"titleLeft___xe0PB",titleRight:"titleRight___wML5g",btns:"btns___l22_n"},y=Object.defineProperty,x=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,te=(We,xe,Pe)=>xe in We?y(We,xe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):We[xe]=Pe,ue=(We,xe)=>{for(var Pe in xe||(xe={}))z.call(xe,Pe)&&te(We,Pe,xe[Pe]);if(x)for(var Pe of x(xe))ee.call(xe,Pe)&&te(We,Pe,xe[Pe]);return We},de=(We,xe)=>{var Pe={};for(var He in We)z.call(We,He)&&xe.indexOf(He)<0&&(Pe[He]=We[He]);if(We!=null&&x)for(var He of x(We))xe.indexOf(He)<0&&ee.call(We,He)&&(Pe[He]=We[He]);return Pe},se=(We,xe,Pe)=>new Promise((He,Ye)=>{var ot=Tt=>{try{Qt(Pe.next(Tt))}catch(on){Ye(on)}},vt=Tt=>{try{Qt(Pe.throw(Tt))}catch(on){Ye(on)}},Qt=Tt=>Tt.done?He(Tt.value):Promise.resolve(Tt.value).then(ot,vt);Qt((Pe=Pe.apply(We,xe)).next())});const{SubMenu:Ee}=st.default,{Content:pe,Sider:he}=Le.default,ke=We=>{var xe=We,{graduation:Pe,globalSetting:He,loading:Ye,user:ot,dispatch:vt}=xe,Qt=de(xe,["graduation","globalSetting","loading","user","dispatch"]),Tt,on,An,Ve,Qe,ht,tn;const dt=(0,at.useParams)(),nn=(0,at.useLocation)(),{userInfo:be}=ot,[Lt]=Ie.default.useForm(),{addTopicData:an}=Pe,Mn=()=>se(void 0,null,function*(){const Pt=Lt.getFieldsValue(),qe=ue({},Pt);qe.city&&(qe.province=qe.city[0],qe.city=qe.city[1]);const Xe=yield vt({type:"graduation/addTopic",payload:{coursesId:dt.coursesId,attachment_ids:[],graduation_topic:qe}});Xe.status?Se.ZP.error(Xe.message):at.history.push(`/classrooms/${dt.coursesId}/graduation_topics/${dt.categoryId}`)});return(0,ae.useEffect)(()=>{vt({type:"graduation/addTopicDefaultData",payload:ue({},dt)})},[dt.coursesId]),ae.createElement("section",{className:"edu-container"},ae.createElement("section",{className:"animated fadeIn"},ae.createElement("aside",{className:"mt10"},be&&ae.createElement($e.Z,{separator:">"},ae.createElement($e.Z.Item,null,ae.createElement(at.Link,{to:`${be.first_category_url}`},(Tt=be==null?void 0:be.course)==null?void 0:Tt.course_name)),ae.createElement($e.Z.Item,null,ae.createElement(at.Link,{to:`/classrooms/${dt.coursesId}/graduation_topics/${dt.categoryId}`},"\u6BD5\u8BBE\u9009\u9898")),ae.createElement($e.Z.Item,null,"\u65B0\u5EFA"))),ae.createElement("aside",{className:[E.title,"mt20"].join(" ")},ae.createElement(De.Z,{style:{width:"100%"}},ae.createElement(we.Z,{flex:"1"},ae.createElement("strong",{className:"font20 ml5"},"\u65B0\u5EFA\u6BD5\u8BBE\u9009\u9898")),ae.createElement(we.Z,null,ae.createElement(at.Link,{className:"font16 c-light-black",to:`/classrooms/${dt.coursesId}/exercise`},"\u8FD4\u56DE"))))),ae.createElement("section",{className:[E.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},ae.createElement(Ie.default,{layout:"vertical",form:Lt,scrollToFirstError:!0,onFinish:Pt=>se(void 0,null,function*(){Mn()})},ae.createElement(Ie.default.Item,{name:"tea_id",label:"\u6307\u5BFC\u8001\u5E08\uFF1A",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08"}]},ae.createElement(Me.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08",style:{width:200}},(on=an.teacher_list)==null?void 0:on.map(function(Pt,qe){return ae.createElement(Me.default.Option,{value:Pt.id,key:qe},Pt.name)}))),ae.createElement(Ie.default.Item,{name:"name",label:"\u9009\u9898\u540D\u79F0\uFF1A",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BD5\u5377\u6807\u9898"}]},ae.createElement(Be.default,{maxLength:60,size:"middle",placeholder:"\u8BD5\u5377\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"})),ae.createElement(Ae.Z,null),ae.createElement(Ie.default.Item,{label:"\u9009\u9898\u7B80\u4ECB",name:"description",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9"}]},ae.createElement(ge.Z,{watch:!0,placeholder:"\u8BF7\u7B80\u8981\u8BF4\u660E\u9009\u9898\u5185\u5BB9\uFF0C\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"})),ae.createElement(De.Z,{gutter:[20,0]},ae.createElement(we.Z,{flex:"1"},ae.createElement(Ie.default.Item,{name:"topic_type"},ae.createElement(Me.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u7C7B\u578B"},(An=an.topic_type)==null?void 0:An.map(function(Pt,qe){return ae.createElement(Me.default.Option,{value:Pt.id,key:qe},Pt.name)})))),ae.createElement(we.Z,{flex:"1"},ae.createElement(Ie.default.Item,{name:"topic_source"},ae.createElement(Me.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6765\u6E90"},(Ve=an.topic_source)==null?void 0:Ve.map(function(Pt,qe){return ae.createElement(Me.default.Option,{value:Pt.id,key:qe},Pt.name)})))),ae.createElement(we.Z,{flex:"1"},ae.createElement(Ie.default.Item,{name:"topic_property_first"},ae.createElement(Me.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6027\u8D281"},(Qe=an.topic_property_first)==null?void 0:Qe.map(function(Pt,qe){return ae.createElement(Me.default.Option,{value:Pt.id,key:qe},Pt.name)})))),ae.createElement(we.Z,{flex:"1"},ae.createElement(Ie.default.Item,{name:"topic_property_second"},ae.createElement(Me.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6027\u8D282"},(ht=an.topic_property_second)==null?void 0:ht.map(function(Pt,qe){return ae.createElement(Me.default.Option,{value:Pt.id,key:qe},Pt.name)})))),ae.createElement(we.Z,{flex:"150px"})),ae.createElement(Ae.Z,null),ae.createElement(Ie.default.Item,{name:"source_unit",label:"\u9009\u9898\u6765\u6E90\u5355\u4F4D\uFF1A"},ae.createElement(Be.default,{width:"200",size:"middle",style:{width:200},placeholder:"\u8BF7\u586B\u5199\u6765\u6E90\u5355\u4F4D"})),ae.createElement(Ie.default.Item,{name:"topic_repeat",label:"\u9009\u9898\u91CD\u590D\u60C5\u51B5\uFF1A"},ae.createElement(Me.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u91CD\u590D\u60C5\u51B5",style:{width:200}},(tn=an.topic_repeat)==null?void 0:tn.map(function(Pt,qe){return ae.createElement(Me.default.Option,{value:Pt.id,key:qe},Pt.name)}))),ae.createElement(Ie.default.Item,{name:"city",label:"\u8C03\u7814\u6216\u5B9E\u4E60\u5730\u70B9\uFF1A"},ae.createElement(oe.Z,{size:"middle",style:{width:200},options:a.P,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730"})))),ae.createElement("aside",{className:E.btns},ae.createElement(b.ZP,{type:"primary",onClick:()=>{Lt.submit()}},"\u4FDD\u5B58"),ae.createElement(at.Link,{to:`/classrooms/${dt.coursesId}/graduation_topics/${dt.categoryId}`},"\u53D6\u6D88")))};var rt=(0,at.connect)(({graduation:We,loading:xe,user:Pe,globalSetting:He})=>({graduation:We,globalSetting:He,user:Pe,loading:xe.effects}))(ke)},70757:function(je,yt,ie){"use strict";ie.d(yt,{P:function(){return ae}});const ae=[{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"}]}]},85673:function(je,yt,ie){"use strict";ie.d(yt,{Z:function(){return xe}});var ae=ie(94184),ge=ie.n(ae),at=ie(37419),st=ie(1337),Le=ie(67294),Ie=ie(96159),Se=ie(53124),$e=ie(42922),De=ie(56153);const we=Pe=>{let{children:He}=Pe;const{getPrefixCls:Ye}=Le.useContext(Se.E_),ot=Ye("breadcrumb");return Le.createElement("li",{className:`${ot}-separator`,"aria-hidden":"true"},He===""?He:He||"/")};we.__ANT_BREADCRUMB_SEPARATOR=!0;var Me=we,Be=function(Pe,He){var Ye={};for(var ot in Pe)Object.prototype.hasOwnProperty.call(Pe,ot)&&He.indexOf(ot)<0&&(Ye[ot]=Pe[ot]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,ot=Object.getOwnPropertySymbols(Pe);vt<ot.length;vt++)He.indexOf(ot[vt])<0&&Object.prototype.propertyIsEnumerable.call(Pe,ot[vt])&&(Ye[ot[vt]]=Pe[ot[vt]]);return Ye};function Ae(Pe,He){if(Pe.title===void 0||Pe.title===null)return null;const Ye=Object.keys(He).join("|");return typeof Pe.title=="object"?Pe.title:String(Pe.title).replace(new RegExp(`:(${Ye})`,"g"),(ot,vt)=>He[vt]||ot)}function oe(Pe,He,Ye,ot){if(Ye==null)return null;const{className:vt,onClick:Qt}=He,Tt=Be(He,["className","onClick"]),on=Object.assign(Object.assign({},(0,st.Z)(Tt,{data:!0,aria:!0})),{onClick:Qt});return ot!==void 0?Le.createElement("a",Object.assign({},on,{className:ge()(`${Pe}-link`,vt),href:ot}),Ye):Le.createElement("span",Object.assign({},on,{className:ge()(`${Pe}-link`,vt)}),Ye)}function b(Pe,He){return(ot,vt,Qt,Tt,on)=>{if(He)return He(ot,vt,Qt,Tt);const An=Ae(ot,vt);return oe(Pe,ot,An,on)}}var a=function(Pe,He){var Ye={};for(var ot in Pe)Object.prototype.hasOwnProperty.call(Pe,ot)&&He.indexOf(ot)<0&&(Ye[ot]=Pe[ot]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,ot=Object.getOwnPropertySymbols(Pe);vt<ot.length;vt++)He.indexOf(ot[vt])<0&&Object.prototype.propertyIsEnumerable.call(Pe,ot[vt])&&(Ye[ot[vt]]=Pe[ot[vt]]);return Ye};const E=Pe=>{const{prefixCls:He,separator:Ye="/",children:ot,menu:vt,overlay:Qt,dropdownProps:Tt,href:on}=Pe,Ve=(Qe=>{if(vt||Qt){const ht=Object.assign({},Tt);if(vt){const tn=vt||{},{items:dt}=tn,nn=a(tn,["items"]);ht.menu=Object.assign(Object.assign({},nn),{items:dt==null?void 0:dt.map((be,Lt)=>{var{key:an,title:Mn,label:Pt,path:qe}=be,Xe=a(be,["key","title","label","path"]);let Re=Pt!=null?Pt:Mn;return qe&&(Re=Le.createElement("a",{href:`${on}${qe}`},Re)),Object.assign(Object.assign({},Xe),{key:an!=null?an:Lt,label:Re})})})}else Qt&&(ht.overlay=Qt);return Le.createElement(De.Z,Object.assign({placement:"bottom"},ht),Le.createElement("span",{className:`${He}-overlay-link`},Qe,Le.createElement($e.Z,null)))}return Qe})(ot);return Ve!=null?Le.createElement(Le.Fragment,null,Le.createElement("li",null,Ve),Ye&&Le.createElement(Me,null,Ye)):null},y=Pe=>{const{prefixCls:He,children:Ye,href:ot}=Pe,vt=a(Pe,["prefixCls","children","href"]),{getPrefixCls:Qt}=Le.useContext(Se.E_),Tt=Qt("breadcrumb",He);return Le.createElement(E,Object.assign({},vt,{prefixCls:Tt}),oe(Tt,vt,Ye,ot))};y.__ANT_BREADCRUMB_ITEM=!0;var x=y,z=ie(14747),ee=ie(67968),te=ie(45503);const ue=Pe=>{const{componentCls:He,iconCls:Ye}=Pe;return{[He]:Object.assign(Object.assign({},(0,z.Wf)(Pe)),{color:Pe.itemColor,fontSize:Pe.fontSize,[Ye]:{fontSize:Pe.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Pe.linkColor,transition:`color ${Pe.motionDurationMid}`,padding:`0 ${Pe.paddingXXS}px`,borderRadius:Pe.borderRadiusSM,height:Pe.lineHeight*Pe.fontSize,display:"inline-block",marginInline:-Pe.marginXXS,"&:hover":{color:Pe.linkHoverColor,backgroundColor:Pe.colorBgTextHover}},(0,z.Qy)(Pe)),"li:last-child":{color:Pe.lastItemColor},[`${He}-separator`]:{marginInline:Pe.separatorMargin,color:Pe.separatorColor},[`${He}-link`]:{[`
|
|
> ${Ye} + span,
|
|
> ${Ye} + a
|
|
`]:{marginInlineStart:Pe.marginXXS}},[`${He}-overlay-link`]:{borderRadius:Pe.borderRadiusSM,height:Pe.lineHeight*Pe.fontSize,display:"inline-block",padding:`0 ${Pe.paddingXXS}px`,marginInline:-Pe.marginXXS,[`> ${Ye}`]:{marginInlineStart:Pe.marginXXS,fontSize:Pe.fontSizeIcon},"&:hover":{color:Pe.linkHoverColor,backgroundColor:Pe.colorBgTextHover,a:{color:Pe.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Pe.componentCls}-rtl`]:{direction:"rtl"}})}};var de=(0,ee.Z)("Breadcrumb",Pe=>{const He=(0,te.TS)(Pe,{});return[ue(He)]},Pe=>({itemColor:Pe.colorTextDescription,lastItemColor:Pe.colorText,iconFontSize:Pe.fontSize,linkColor:Pe.colorTextDescription,linkHoverColor:Pe.colorText,separatorColor:Pe.colorTextDescription,separatorMargin:Pe.marginXS})),se=function(Pe,He){var Ye={};for(var ot in Pe)Object.prototype.hasOwnProperty.call(Pe,ot)&&He.indexOf(ot)<0&&(Ye[ot]=Pe[ot]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,ot=Object.getOwnPropertySymbols(Pe);vt<ot.length;vt++)He.indexOf(ot[vt])<0&&Object.prototype.propertyIsEnumerable.call(Pe,ot[vt])&&(Ye[ot[vt]]=Pe[ot[vt]]);return Ye};function Ee(Pe){const{breadcrumbName:He,children:Ye}=Pe,ot=se(Pe,["breadcrumbName","children"]),vt=Object.assign({title:He},ot);return Ye&&(vt.menu={items:Ye.map(Qt=>{var{breadcrumbName:Tt}=Qt,on=se(Qt,["breadcrumbName"]);return Object.assign(Object.assign({},on),{title:Tt})})}),vt}function pe(Pe,He){return(0,Le.useMemo)(()=>Pe||(He?He.map(Ee):null),[Pe,He])}var he=function(Pe,He){var Ye={};for(var ot in Pe)Object.prototype.hasOwnProperty.call(Pe,ot)&&He.indexOf(ot)<0&&(Ye[ot]=Pe[ot]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,ot=Object.getOwnPropertySymbols(Pe);vt<ot.length;vt++)He.indexOf(ot[vt])<0&&Object.prototype.propertyIsEnumerable.call(Pe,ot[vt])&&(Ye[ot[vt]]=Pe[ot[vt]]);return Ye};const ke=(Pe,He)=>{if(He===void 0)return He;let Ye=(He||"").replace(/^\//,"");return Object.keys(Pe).forEach(ot=>{Ye=Ye.replace(`:${ot}`,Pe[ot])}),Ye},rt=Pe=>{const{prefixCls:He,separator:Ye="/",style:ot,className:vt,rootClassName:Qt,routes:Tt,items:on,children:An,itemRender:Ve,params:Qe={}}=Pe,ht=he(Pe,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:tn,direction:dt,breadcrumb:nn}=Le.useContext(Se.E_);let be;const Lt=tn("breadcrumb",He),[an,Mn]=de(Lt),Pt=pe(on,Tt),qe=b(Lt,Ve);if(Pt&&Pt.length>0){const lt=[],Et=on||Tt;be=Pt.map(($t,sn)=>{const{path:pn,key:Cn,type:$n,menu:wn,overlay:Fn,onClick:jn,className:ya,separator:Pa,dropdownProps:ra}=$t,ca=ke(Qe,pn);ca!==void 0&<.push(ca);const aa=Cn!=null?Cn:sn;if($n==="separator")return Le.createElement(Me,{key:aa},Pa);const Fa={},Da=sn===Pt.length-1;wn?Fa.menu=wn:Fn&&(Fa.overlay=Fn);let{href:no}=$t;return lt.length&&ca!==void 0&&(no=`#/${lt.join("/")}`),Le.createElement(E,Object.assign({key:aa},Fa,(0,st.Z)($t,{data:!0,aria:!0}),{className:ya,dropdownProps:ra,href:no,separator:Da?"":Ye,onClick:jn,prefixCls:Lt}),qe($t,Qe,Et,lt,no))})}else if(An){const lt=(0,at.Z)(An).length;be=(0,at.Z)(An).map((Et,$t)=>{if(!Et)return Et;const sn=$t===lt-1;return(0,Ie.Tm)(Et,{separator:sn?"":Ye,key:$t})})}const Xe=ge()(Lt,nn==null?void 0:nn.className,{[`${Lt}-rtl`]:dt==="rtl"},vt,Qt,Mn),Re=Object.assign(Object.assign({},nn==null?void 0:nn.style),ot);return an(Le.createElement("nav",Object.assign({className:Xe,style:Re},ht),Le.createElement("ol",null,be)))};rt.Item=x,rt.Separator=Me;var We=rt,xe=We},85546:function(je,yt,ie){"use strict";ie.d(yt,{Z:function(){return Ot}});var ae=ie(74902),ge=ie(67294),at=ie(22751),st=ie(3407),Le=ie(91034),Ie=ie(94184),Se=ie.n(Ie),$e=ie(87462),De=ie(97685),we=ie(45987),Me=ie(4942),Be=ie(1413),Ae=ie(71002);function oe(ne){var re=ge.useRef();re.current=ne;var me=ge.useCallback(function(){for(var ce,ye=arguments.length,Fe=new Array(ye),Ne=0;Ne<ye;Ne++)Fe[Ne]=arguments[Ne];return(ce=re.current)===null||ce===void 0?void 0:ce.call.apply(ce,[re].concat(Fe))},[]);return me}function b(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var a=b()?ge.useLayoutEffect:ge.useEffect,E=a,y=function(re,me){var ce=ge.useRef(!0);a(function(){if(!ce.current)return re()},me),a(function(){return ce.current=!1,function(){ce.current=!0}},[])};function x(ne){var re=ge.useRef(!1),me=ge.useState(ne),ce=(0,De.Z)(me,2),ye=ce[0],Fe=ce[1];ge.useEffect(function(){return re.current=!1,function(){re.current=!0}},[]);function Ne(Ze,_e){_e&&re.current||Fe(Ze)}return[ye,Ne]}function z(ne){return ne!==void 0}function ee(ne,re){var me=re||{},ce=me.defaultValue,ye=me.value,Fe=me.onChange,Ne=me.postState,Ze=x(function(){return z(ye)?ye:z(ce)?typeof ce=="function"?ce():ce:typeof ne=="function"?ne():ne}),_e=(0,De.Z)(Ze,2),Ke=_e[0],Ue=_e[1],nt=ye!==void 0?ye:Ke,mt=Ne?Ne(nt):nt,tt=oe(Fe),it=x([nt]),xt=(0,De.Z)(it,2),ft=xt[0],pt=xt[1];y(function(){var It=ft[0];Ke!==It&&tt(Ke,It)},[ft]),y(function(){z(ye)||Ue(ye)},[ye]);var Nt=oe(function(It,Mt){Ue(It,Mt),pt([nt],Mt)});return[mt,Nt]}var te={};function ue(ne,re){}function de(ne,re){}function se(){te={}}function Ee(ne,re,me){!re&&!te[me]&&(ne(!1,me),te[me]=!0)}function pe(ne,re){Ee(ue,ne,re)}function he(ne,re){Ee(de,ne,re)}var ke=pe,rt=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var ne=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(ne)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(ne==null?void 0:ne.substr(0,4))},We={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(re){var me=re.keyCode;if(re.altKey&&!re.ctrlKey||re.metaKey||me>=We.F1&&me<=We.F12)return!1;switch(me){case We.ALT:case We.CAPS_LOCK:case We.CONTEXT_MENU:case We.CTRL:case We.DOWN:case We.END:case We.ESC:case We.HOME:case We.INSERT:case We.LEFT:case We.MAC_FF_META:case We.META:case We.NUMLOCK:case We.NUM_CENTER:case We.PAGE_DOWN:case We.PAGE_UP:case We.PAUSE:case We.PRINT_SCREEN:case We.RIGHT:case We.SHIFT:case We.UP:case We.WIN_KEY:case We.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(re){if(re>=We.ZERO&&re<=We.NINE||re>=We.NUM_ZERO&&re<=We.NUM_MULTIPLY||re>=We.A&&re<=We.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&re===0)return!0;switch(re){case We.SPACE:case We.QUESTION_MARK:case We.NUM_PLUS:case We.NUM_MINUS:case We.NUM_PERIOD:case We.NUM_DIVISION:case We.SEMICOLON:case We.DASH:case We.EQUALS:case We.COMMA:case We.PERIOD:case We.SLASH:case We.APOSTROPHE:case We.SINGLE_QUOTE:case We.OPEN_SQUARE_BRACKET:case We.BACKSLASH:case We.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},xe=We,Pe=ie(16357);function He(ne,re,me){var ce=ge.useRef({});return(!("value"in ce.current)||me(ce.current.condition,re))&&(ce.current.value=ne(),ce.current.condition=re),ce.current.value}function Ye(ne,re){typeof ne=="function"?ne(re):(0,Ae.Z)(ne)==="object"&&ne&&"current"in ne&&(ne.current=re)}function ot(){for(var ne=arguments.length,re=new Array(ne),me=0;me<ne;me++)re[me]=arguments[me];var ce=re.filter(function(ye){return ye});return ce.length<=1?ce[0]:function(ye){re.forEach(function(Fe){Ye(Fe,ye)})}}function vt(){for(var ne=arguments.length,re=new Array(ne),me=0;me<ne;me++)re[me]=arguments[me];return He(function(){return ot.apply(void 0,re)},re,function(ce,ye){return ce.length===ye.length&&ce.every(function(Fe,Ne){return Fe===ye[Ne]})})}function Qt(ne){var re,me,ce=isMemo(ne)?ne.type.type:ne.type;return!(typeof ce=="function"&&!((re=ce.prototype)!==null&&re!==void 0&&re.render)||typeof ne=="function"&&!((me=ne.prototype)!==null&&me!==void 0&&me.render))}var Tt=function(re){var me=re.className,ce=re.customizeIcon,ye=re.customizeIconProps,Fe=re.onMouseDown,Ne=re.onClick,Ze=re.children,_e;return typeof ce=="function"?_e=ce(ye):_e=ce,ge.createElement("span",{className:me,onMouseDown:function(Ue){Ue.preventDefault(),Fe&&Fe(Ue)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Ne,"aria-hidden":!0},_e!==void 0?_e:ge.createElement("span",{className:Se()(me.split(/\s+/).map(function(Ke){return"".concat(Ke,"-icon")}))},Ze))},on=Tt;function An(ne,re,me,ce,ye){var Fe=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Ne=arguments.length>6?arguments[6]:void 0,Ze=arguments.length>7?arguments[7]:void 0,_e=ge.useMemo(function(){if((0,Ae.Z)(ce)==="object")return ce.clearIcon;if(ye)return ye},[ce,ye]),Ke=ge.useMemo(function(){return!!(!Fe&&ce&&(me.length||Ne)&&!(Ze==="combobox"&&Ne===""))},[ce,Fe,me.length,Ne,Ze]);return{allowClear:Ke,clearIcon:ge.createElement(on,{className:"".concat(ne,"-clear"),onMouseDown:re,customizeIcon:_e},"\xD7")}}var Ve=ge.createContext(null);function Qe(){return ge.useContext(Ve)}function ht(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,re=ge.useState(!1),me=(0,De.Z)(re,2),ce=me[0],ye=me[1],Fe=ge.useRef(null),Ne=function(){window.clearTimeout(Fe.current)};ge.useEffect(function(){return Ne},[]);var Ze=function(Ke,Ue){Ne(),Fe.current=window.setTimeout(function(){ye(Ke),Ue&&Ue()},ne)};return[ce,Ze,Ne]}function tn(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,re=ge.useRef(null),me=ge.useRef(null);ge.useEffect(function(){return function(){window.clearTimeout(me.current)}},[]);function ce(ye){(ye||re.current===null)&&(re.current=ye),window.clearTimeout(me.current),me.current=window.setTimeout(function(){re.current=null},ne)}return[function(){return re.current},ce]}function dt(ne,re,me,ce){var ye=ge.useRef(null);ye.current={open:re,triggerOpen:me,customizedTrigger:ce},ge.useEffect(function(){function Fe(Ne){var Ze;if(!((Ze=ye.current)!==null&&Ze!==void 0&&Ze.customizedTrigger)){var _e=Ne.target;_e.shadowRoot&&Ne.composed&&(_e=Ne.composedPath()[0]||_e),ye.current.open&&ne().filter(function(Ke){return Ke}).every(function(Ke){return!Ke.contains(_e)&&Ke!==_e})&&ye.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Fe),function(){return window.removeEventListener("mousedown",Fe)}},[])}var nn=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
summary tabIndex target title type useMap value width wmode wrap`,be=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Lt="".concat(nn," ").concat(be).split(/[\s\n]+/),an="aria-",Mn="data-";function Pt(ne,re){return ne.indexOf(re)===0}function qe(ne){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,me;re===!1?me={aria:!0,data:!0,attr:!0}:re===!0?me={aria:!0}:me=(0,Be.Z)({},re);var ce={};return Object.keys(ne).forEach(function(ye){(me.aria&&(ye==="role"||Pt(ye,an))||me.data&&Pt(ye,Mn)||me.attr&&Lt.includes(ye))&&(ce[ye]=ne[ye])}),ce}var Xe=ie(48555);function Re(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var lt=Re()?ge.useLayoutEffect:ge.useEffect,Et=function(re,me){var ce=ge.useRef(!0);lt(function(){return re(ce.current)},me),lt(function(){return ce.current=!1,function(){ce.current=!0}},[])},$t=function(re,me){Et(function(ce){if(!ce)return re()},me)},sn=Et,pn=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Cn=void 0;function $n(ne,re){var me=ne.prefixCls,ce=ne.invalidate,ye=ne.item,Fe=ne.renderItem,Ne=ne.responsive,Ze=ne.responsiveDisabled,_e=ne.registerSize,Ke=ne.itemKey,Ue=ne.className,nt=ne.style,mt=ne.children,tt=ne.display,it=ne.order,xt=ne.component,ft=xt===void 0?"div":xt,pt=(0,we.Z)(ne,pn),Nt=Ne&&!tt;function It(Ht){_e(Ke,Ht)}ge.useEffect(function(){return function(){It(null)}},[]);var Mt=Fe&&ye!==Cn?Fe(ye):mt,At;ce||(At={opacity:Nt?0:1,height:Nt?0:Cn,overflowY:Nt?"hidden":Cn,order:Ne?it:Cn,pointerEvents:Nt?"none":Cn,position:Nt?"absolute":Cn});var St={};Nt&&(St["aria-hidden"]=!0);var bt=ge.createElement(ft,(0,$e.Z)({className:Se()(!ce&&me,Ue),style:(0,Be.Z)((0,Be.Z)({},At),nt)},St,pt,{ref:re}),Mt);return Ne&&(bt=ge.createElement(Xe.Z,{onResize:function(ct){var zt=ct.offsetWidth;It(zt)},disabled:Ze},bt)),bt}var wn=ge.forwardRef($n);wn.displayName="Item";var Fn=wn;function jn(ne){var re=ge.useRef();re.current=ne;var me=ge.useCallback(function(){for(var ce,ye=arguments.length,Fe=new Array(ye),Ne=0;Ne<ye;Ne++)Fe[Ne]=arguments[Ne];return(ce=re.current)===null||ce===void 0?void 0:ce.call.apply(ce,[re].concat(Fe))},[]);return me}var ya=ie(73935),Pa=function(re){return+setTimeout(re,16)},ra=function(re){return clearTimeout(re)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Pa=function(re){return window.requestAnimationFrame(re)},ra=function(re){return window.cancelAnimationFrame(re)});var ca=0,aa=new Map;function Fa(ne){aa.delete(ne)}var Da=function(re){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ca+=1;var ce=ca;function ye(Fe){if(Fe===0)Fa(ce),re();else{var Ne=Pa(function(){ye(Fe-1)});aa.set(ce,Ne)}}return ye(me),ce};Da.cancel=function(ne){var re=aa.get(ne);return Fa(re),ra(re)};var no=Da;function za(ne){if(typeof MessageChannel=="undefined")no(ne);else{var re=new MessageChannel;re.port1.onmessage=function(){return ne()},re.port2.postMessage(void 0)}}function ka(){var ne=ge.useRef(null),re=function(ce){ne.current||(ne.current=[],za(function(){(0,ya.unstable_batchedUpdates)(function(){ne.current.forEach(function(ye){ye()}),ne.current=null})})),ne.current.push(ce)};return re}function Qa(ne,re){var me=ge.useState(re),ce=(0,De.Z)(me,2),ye=ce[0],Fe=ce[1],Ne=jn(function(Ze){ne(function(){Fe(Ze)})});return[ye,Ne]}var ma=ge.createContext(null),_a=["component"],Bo=["className"],Za=["className"],fr=function(re,me){var ce=ge.useContext(ma);if(!ce){var ye=re.component,Fe=ye===void 0?"div":ye,Ne=(0,we.Z)(re,_a);return ge.createElement(Fe,(0,$e.Z)({},Ne,{ref:me}))}var Ze=ce.className,_e=(0,we.Z)(ce,Bo),Ke=re.className,Ue=(0,we.Z)(re,Za);return ge.createElement(ma.Provider,{value:null},ge.createElement(Fn,(0,$e.Z)({ref:me,className:Se()(Ze,Ke)},_e,Ue)))},zo=ge.forwardRef(fr);zo.displayName="RawItem";var Qo=zo,vr=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Ao="responsive",tr="invalidate";function Co(ne){return"+ ".concat(ne.length," ...")}function Nr(ne,re){var me=ne.prefixCls,ce=me===void 0?"rc-overflow":me,ye=ne.data,Fe=ye===void 0?[]:ye,Ne=ne.renderItem,Ze=ne.renderRawItem,_e=ne.itemKey,Ke=ne.itemWidth,Ue=Ke===void 0?10:Ke,nt=ne.ssr,mt=ne.style,tt=ne.className,it=ne.maxCount,xt=ne.renderRest,ft=ne.renderRawRest,pt=ne.suffix,Nt=ne.component,It=Nt===void 0?"div":Nt,Mt=ne.itemComponent,At=ne.onVisibleChange,St=(0,we.Z)(ne,vr),bt=nt==="full",Ht=ka(),ct=Qa(Ht,null),zt=(0,De.Z)(ct,2),Ut=zt[0],fn=zt[1],vn=Ut||0,dn=Qa(Ht,new Map),_t=(0,De.Z)(dn,2),gn=_t[0],Zt=_t[1],kt=Qa(Ht,0),Yt=(0,De.Z)(kt,2),Hn=Yt[0],Dn=Yt[1],ea=Qa(Ht,0),Xn=(0,De.Z)(ea,2),ln=Xn[0],On=Xn[1],In=Qa(Ht,0),Kt=(0,De.Z)(In,2),gt=Kt[0],jt=Kt[1],yn=(0,ge.useState)(null),Ln=(0,De.Z)(yn,2),Tn=Ln[0],Bn=Ln[1],xn=(0,ge.useState)(null),bn=(0,De.Z)(xn,2),En=bn[0],zn=bn[1],Nn=ge.useMemo(function(){return En===null&&bt?Number.MAX_SAFE_INTEGER:En||0},[En,Ut]),Zn=(0,ge.useState)(!1),fa=(0,De.Z)(Zn,2),kn=fa[0],Ba=fa[1],xa="".concat(ce,"-item"),Ta=Math.max(Hn,ln),Wn=it===Ao,Yn=Fe.length&&Wn,Na=it===tr,ua=Yn||typeof it=="number"&&Fe.length>it,ta=(0,ge.useMemo)(function(){var Sn=Fe;return Yn?Ut===null&&bt?Sn=Fe:Sn=Fe.slice(0,Math.min(Fe.length,vn/Ue)):typeof it=="number"&&(Sn=Fe.slice(0,it)),Sn},[Fe,Ue,Ut,it,Yn]),Ma=(0,ge.useMemo)(function(){return Yn?Fe.slice(Nn+1):Fe.slice(ta.length)},[Fe,ta,Yn,Nn]),Aa=(0,ge.useCallback)(function(Sn,Ct){var Xt;return typeof _e=="function"?_e(Sn):(Xt=_e&&(Sn==null?void 0:Sn[_e]))!==null&&Xt!==void 0?Xt:Ct},[_e]),Ka=(0,ge.useCallback)(Ne||function(Sn){return Sn},[Ne]);function ga(Sn,Ct,Xt){En===Sn&&(Ct===void 0||Ct===Tn)||(zn(Sn),Xt||(Ba(Sn<Fe.length-1),At==null||At(Sn)),Ct!==void 0&&Bn(Ct))}function Kn(Sn,Ct){fn(Ct.clientWidth)}function Wa(Sn,Ct){Zt(function(Xt){var Jt=new Map(Xt);return Ct===null?Jt.delete(Sn):Jt.set(Sn,Ct),Jt})}function Oa(Sn,Ct){On(Ct),Dn(ln)}function wo(Sn,Ct){jt(Ct)}function Va(Sn){return gn.get(Aa(ta[Sn],Sn))}sn(function(){if(vn&&typeof Ta=="number"&&ta){var Sn=gt,Ct=ta.length,Xt=Ct-1;if(!Ct){ga(0,null);return}for(var Jt=0;Jt<Ct;Jt+=1){var hn=Va(Jt);if(bt&&(hn=hn||0),hn===void 0){ga(Jt-1,void 0,!0);break}if(Sn+=hn,Xt===0&&Sn<=vn||Jt===Xt-1&&Sn+Va(Xt)<=vn){ga(Xt,null);break}else if(Sn+Ta>vn){ga(Jt-1,Sn-hn-gt+ln);break}}pt&&Va(0)+gt>vn&&Bn(null)}},[vn,gn,ln,gt,Aa,ta]);var Fo=kn&&!!Ma.length,Ua={};Tn!==null&&Yn&&(Ua={position:"absolute",left:Tn,top:0});var la={prefixCls:xa,responsive:Yn,component:Mt,invalidate:Na},Qn=Ze?function(Sn,Ct){var Xt=Aa(Sn,Ct);return ge.createElement(ma.Provider,{key:Xt,value:(0,Be.Z)((0,Be.Z)({},la),{},{order:Ct,item:Sn,itemKey:Xt,registerSize:Wa,display:Ct<=Nn})},Ze(Sn,Ct))}:function(Sn,Ct){var Xt=Aa(Sn,Ct);return ge.createElement(Fn,(0,$e.Z)({},la,{order:Ct,key:Xt,item:Sn,renderItem:Ka,itemKey:Xt,registerSize:Wa,display:Ct<=Nn}))},va,Ra={order:Fo?Nn:Number.MAX_SAFE_INTEGER,className:"".concat(xa,"-rest"),registerSize:Oa,display:Fo};if(ft)ft&&(va=ge.createElement(ma.Provider,{value:(0,Be.Z)((0,Be.Z)({},la),Ra)},ft(Ma)));else{var Ia=xt||Co;va=ge.createElement(Fn,(0,$e.Z)({},la,Ra),typeof Ia=="function"?Ia(Ma):Ia)}var ao=ge.createElement(It,(0,$e.Z)({className:Se()(!Na&&ce,tt),style:mt,ref:re},St),ta.map(Qn),ua?va:null,pt&&ge.createElement(Fn,(0,$e.Z)({},la,{responsive:Wn,responsiveDisabled:!Yn,order:Nn,className:"".concat(xa,"-suffix"),registerSize:wo,display:!0,style:Ua}),pt));return Wn&&(ao=ge.createElement(Xe.Z,{onResize:Kn,disabled:!Yn},ao)),ao}var ko=ge.forwardRef(Nr);ko.displayName="Overflow",ko.Item=Qo,ko.RESPONSIVE=Ao,ko.INVALIDATE=tr;var _o=ko,xo=_o,nr=function(re,me){var ce,ye,Fe=re.prefixCls,Ne=re.id,Ze=re.inputElement,_e=re.disabled,Ke=re.tabIndex,Ue=re.autoFocus,nt=re.autoComplete,mt=re.editable,tt=re.activeDescendantId,it=re.value,xt=re.maxLength,ft=re.onKeyDown,pt=re.onMouseDown,Nt=re.onChange,It=re.onPaste,Mt=re.onCompositionStart,At=re.onCompositionEnd,St=re.open,bt=re.attrs,Ht=Ze||ge.createElement("input",null),ct=Ht,zt=ct.ref,Ut=ct.props,fn=Ut.onKeyDown,vn=Ut.onChange,dn=Ut.onMouseDown,_t=Ut.onCompositionStart,gn=Ut.onCompositionEnd,Zt=Ut.style;return"maxLength"in Ht.props,Ht=ge.cloneElement(Ht,(0,Be.Z)((0,Be.Z)((0,Be.Z)({type:"search"},Ut),{},{id:Ne,ref:ot(me,zt),disabled:_e,tabIndex:Ke,autoComplete:nt||"off",autoFocus:Ue,className:Se()("".concat(Fe,"-selection-search-input"),(ce=Ht)===null||ce===void 0||(ye=ce.props)===null||ye===void 0?void 0:ye.className),role:"combobox","aria-label":"Search","aria-expanded":St||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Ne,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ne,"_list"),"aria-activedescendant":St?tt:void 0},bt),{},{value:mt?it:"",maxLength:xt,readOnly:!mt,unselectable:mt?null:"on",style:(0,Be.Z)((0,Be.Z)({},Zt),{},{opacity:mt?null:0}),onKeyDown:function(Yt){ft(Yt),fn&&fn(Yt)},onMouseDown:function(Yt){pt(Yt),dn&&dn(Yt)},onChange:function(Yt){Nt(Yt),vn&&vn(Yt)},onCompositionStart:function(Yt){Mt(Yt),_t&&_t(Yt)},onCompositionEnd:function(Yt){At(Yt),gn&&gn(Yt)},onPaste:It})),Ht},ro=ge.forwardRef(nr);ro.displayName="Input";var _r=ro;function Sr(ne){return Array.isArray(ne)?ne:ne!==void 0?[ne]:[]}var Qr=typeof window!="undefined"&&window.document&&window.document.documentElement,Te=Qr;function ze(ne){return ne!=null}function Oe(ne){return!ne&&ne!==0}function Rt(ne){return["string","number"].includes((0,Ae.Z)(ne))}function cn(ne){var re=void 0;return ne&&(Rt(ne.title)?re=ne.title.toString():Rt(ne.label)&&(re=ne.label.toString())),re}function mn(ne,re){Te?ge.useLayoutEffect(ne,re):ge.useEffect(ne,re)}function oa(ne){var re;return(re=ne.key)!==null&&re!==void 0?re:ne.value}var _n=function(re){re.preventDefault(),re.stopPropagation()},Jn=function(re){var me=re.id,ce=re.prefixCls,ye=re.values,Fe=re.open,Ne=re.searchValue,Ze=re.autoClearSearchValue,_e=re.inputRef,Ke=re.placeholder,Ue=re.disabled,nt=re.mode,mt=re.showSearch,tt=re.autoFocus,it=re.autoComplete,xt=re.activeDescendantId,ft=re.tabIndex,pt=re.removeIcon,Nt=re.maxTagCount,It=re.maxTagTextLength,Mt=re.maxTagPlaceholder,At=Mt===void 0?function(Bn){return"+ ".concat(Bn.length," ...")}:Mt,St=re.tagRender,bt=re.onToggleOpen,Ht=re.onRemove,ct=re.onInputChange,zt=re.onInputPaste,Ut=re.onInputKeyDown,fn=re.onInputMouseDown,vn=re.onInputCompositionStart,dn=re.onInputCompositionEnd,_t=ge.useRef(null),gn=(0,ge.useState)(0),Zt=(0,De.Z)(gn,2),kt=Zt[0],Yt=Zt[1],Hn=(0,ge.useState)(!1),Dn=(0,De.Z)(Hn,2),ea=Dn[0],Xn=Dn[1],ln="".concat(ce,"-selection"),On=Fe||nt==="multiple"&&Ze===!1||nt==="tags"?Ne:"",In=nt==="tags"||nt==="multiple"&&Ze===!1||mt&&(Fe||ea);mn(function(){Yt(_t.current.scrollWidth)},[On]);function Kt(Bn,xn,bn,En,zn){return ge.createElement("span",{className:Se()("".concat(ln,"-item"),(0,Me.Z)({},"".concat(ln,"-item-disabled"),bn)),title:cn(Bn)},ge.createElement("span",{className:"".concat(ln,"-item-content")},xn),En&&ge.createElement(on,{className:"".concat(ln,"-item-remove"),onMouseDown:_n,onClick:zn,customizeIcon:pt},"\xD7"))}function gt(Bn,xn,bn,En,zn){var Nn=function(fa){_n(fa),bt(!Fe)};return ge.createElement("span",{onMouseDown:Nn},St({label:xn,value:Bn,disabled:bn,closable:En,onClose:zn}))}function jt(Bn){var xn=Bn.disabled,bn=Bn.label,En=Bn.value,zn=!Ue&&!xn,Nn=bn;if(typeof It=="number"&&(typeof bn=="string"||typeof bn=="number")){var Zn=String(Nn);Zn.length>It&&(Nn="".concat(Zn.slice(0,It),"..."))}var fa=function(Ba){Ba&&Ba.stopPropagation(),Ht(Bn)};return typeof St=="function"?gt(En,Nn,xn,zn,fa):Kt(Bn,Nn,xn,zn,fa)}function yn(Bn){var xn=typeof At=="function"?At(Bn):At;return Kt({title:xn},xn,!1)}var Ln=ge.createElement("div",{className:"".concat(ln,"-search"),style:{width:kt},onFocus:function(){Xn(!0)},onBlur:function(){Xn(!1)}},ge.createElement(_r,{ref:_e,open:Fe,prefixCls:ce,id:me,inputElement:null,disabled:Ue,autoFocus:tt,autoComplete:it,editable:In,activeDescendantId:xt,value:On,onKeyDown:Ut,onMouseDown:fn,onChange:ct,onPaste:zt,onCompositionStart:vn,onCompositionEnd:dn,tabIndex:ft,attrs:qe(re,!0)}),ge.createElement("span",{ref:_t,className:"".concat(ln,"-search-mirror"),"aria-hidden":!0},On,"\xA0")),Tn=ge.createElement(xo,{prefixCls:"".concat(ln,"-overflow"),data:ye,renderItem:jt,renderRest:yn,suffix:Ln,itemKey:oa,maxCount:Nt});return ge.createElement(ge.Fragment,null,Tn,!ye.length&&!On&&ge.createElement("span",{className:"".concat(ln,"-placeholder")},Ke))},pa=Jn,So=function(re){var me=re.inputElement,ce=re.prefixCls,ye=re.id,Fe=re.inputRef,Ne=re.disabled,Ze=re.autoFocus,_e=re.autoComplete,Ke=re.activeDescendantId,Ue=re.mode,nt=re.open,mt=re.values,tt=re.placeholder,it=re.tabIndex,xt=re.showSearch,ft=re.searchValue,pt=re.activeValue,Nt=re.maxLength,It=re.onInputKeyDown,Mt=re.onInputMouseDown,At=re.onInputChange,St=re.onInputPaste,bt=re.onInputCompositionStart,Ht=re.onInputCompositionEnd,ct=re.title,zt=ge.useState(!1),Ut=(0,De.Z)(zt,2),fn=Ut[0],vn=Ut[1],dn=Ue==="combobox",_t=dn||xt,gn=mt[0],Zt=ft||"";dn&&pt&&!fn&&(Zt=pt),ge.useEffect(function(){dn&&vn(!1)},[dn,pt]);var kt=Ue!=="combobox"&&!nt&&!xt?!1:!!Zt,Yt=ct===void 0?cn(gn):ct,Hn=function(){if(gn)return null;var ea=kt?{visibility:"hidden"}:void 0;return ge.createElement("span",{className:"".concat(ce,"-selection-placeholder"),style:ea},tt)};return ge.createElement(ge.Fragment,null,ge.createElement("span",{className:"".concat(ce,"-selection-search")},ge.createElement(_r,{ref:Fe,prefixCls:ce,id:ye,open:nt,inputElement:me,disabled:Ne,autoFocus:Ze,autoComplete:_e,editable:_t,activeDescendantId:Ke,value:Zt,onKeyDown:It,onMouseDown:Mt,onChange:function(ea){vn(!0),At(ea)},onPaste:St,onCompositionStart:bt,onCompositionEnd:Ht,tabIndex:it,attrs:qe(re,!0),maxLength:dn?Nt:void 0})),!dn&&gn?ge.createElement("span",{className:"".concat(ce,"-selection-item"),title:Yt,style:kt?{visibility:"hidden"}:void 0},gn.label):null,Hn())},wt=So;function ia(ne){return![xe.ESC,xe.SHIFT,xe.BACKSPACE,xe.TAB,xe.WIN_KEY,xe.ALT,xe.META,xe.WIN_KEY_RIGHT,xe.CTRL,xe.SEMICOLON,xe.EQUALS,xe.CAPS_LOCK,xe.CONTEXT_MENU,xe.F1,xe.F2,xe.F3,xe.F4,xe.F5,xe.F6,xe.F7,xe.F8,xe.F9,xe.F10,xe.F11,xe.F12].includes(ne)}var uo=function(re,me){var ce=(0,ge.useRef)(null),ye=(0,ge.useRef)(!1),Fe=re.prefixCls,Ne=re.open,Ze=re.mode,_e=re.showSearch,Ke=re.tokenWithEnter,Ue=re.autoClearSearchValue,nt=re.onSearch,mt=re.onSearchSubmit,tt=re.onToggleOpen,it=re.onInputKeyDown,xt=re.domRef;ge.useImperativeHandle(me,function(){return{focus:function(){ce.current.focus()},blur:function(){ce.current.blur()}}});var ft=tn(0),pt=(0,De.Z)(ft,2),Nt=pt[0],It=pt[1],Mt=function(Zt){var kt=Zt.which;(kt===xe.UP||kt===xe.DOWN)&&Zt.preventDefault(),it&&it(Zt),kt===xe.ENTER&&Ze==="tags"&&!ye.current&&!Ne&&(mt==null||mt(Zt.target.value)),ia(kt)&&tt(!0)},At=function(){It(!0)},St=(0,ge.useRef)(null),bt=function(Zt){nt(Zt,!0,ye.current)!==!1&&tt(!0)},Ht=function(){ye.current=!0},ct=function(Zt){ye.current=!1,Ze!=="combobox"&&bt(Zt.target.value)},zt=function(Zt){var kt=Zt.target.value;if(Ke&&St.current&&/[\r\n]/.test(St.current)){var Yt=St.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");kt=kt.replace(Yt,St.current)}St.current=null,bt(kt)},Ut=function(Zt){var kt=Zt.clipboardData,Yt=kt.getData("text");St.current=Yt},fn=function(Zt){var kt=Zt.target;if(kt!==ce.current){var Yt=document.body.style.msTouchAction!==void 0;Yt?setTimeout(function(){ce.current.focus()}):ce.current.focus()}},vn=function(Zt){var kt=Nt();Zt.target!==ce.current&&!kt&&Ze!=="combobox"&&Zt.preventDefault(),(Ze!=="combobox"&&(!_e||!kt)||!Ne)&&(Ne&&Ue!==!1&&nt("",!0,!1),tt())},dn={inputRef:ce,onInputKeyDown:Mt,onInputMouseDown:At,onInputChange:zt,onInputPaste:Ut,onInputCompositionStart:Ht,onInputCompositionEnd:ct},_t=Ze==="multiple"||Ze==="tags"?ge.createElement(pa,(0,$e.Z)({},re,dn)):ge.createElement(wt,(0,$e.Z)({},re,dn));return ge.createElement("div",{ref:xt,className:"".concat(Fe,"-selector"),onClick:fn,onMouseDown:vn},_t)},Oo=ge.forwardRef(uo);Oo.displayName="Selector";var Ha=Oo,wa=ie(62709),ar=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Jo=function(re){var me=re===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:me,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:me,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:me,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:me,adjustY:1},htmlRegion:"scroll"}}},or=function(re,me){var ce=re.prefixCls,ye=re.disabled,Fe=re.visible,Ne=re.children,Ze=re.popupElement,_e=re.animation,Ke=re.transitionName,Ue=re.dropdownStyle,nt=re.dropdownClassName,mt=re.direction,tt=mt===void 0?"ltr":mt,it=re.placement,xt=re.builtinPlacements,ft=re.dropdownMatchSelectWidth,pt=re.dropdownRender,Nt=re.dropdownAlign,It=re.getPopupContainer,Mt=re.empty,At=re.getTriggerDOMNode,St=re.onPopupVisibleChange,bt=re.onPopupMouseEnter,Ht=(0,we.Z)(re,ar),ct="".concat(ce,"-dropdown"),zt=Ze;pt&&(zt=pt(Ze));var Ut=ge.useMemo(function(){return xt||Jo(ft)},[xt,ft]),fn=_e?"".concat(ct,"-").concat(_e):Ke,vn=typeof ft=="number",dn=ge.useMemo(function(){return vn?null:ft===!1?"minWidth":"width"},[ft,vn]),_t=Ue;vn&&(_t=(0,Be.Z)((0,Be.Z)({},_t),{},{width:ft}));var gn=ge.useRef(null);return ge.useImperativeHandle(me,function(){return{getPopupElement:function(){return gn.current}}}),ge.createElement(wa.Z,(0,$e.Z)({},Ht,{showAction:St?["click"]:[],hideAction:St?["click"]:[],popupPlacement:it||(tt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ut,prefixCls:ct,popupTransitionName:fn,popup:ge.createElement("div",{ref:gn,onMouseEnter:bt},zt),stretch:dn,popupAlign:Nt,popupVisible:Fe,getPopupContainer:It,popupClassName:Se()(nt,(0,Me.Z)({},"".concat(ct,"-empty"),Mt)),popupStyle:_t,getTriggerDOMNode:At,onPopupVisibleChange:St}),Ne)},hr=ge.forwardRef(or);hr.displayName="SelectTrigger";var Zo=hr,lo=ie(84506);function rr(ne,re){var me=ne.key,ce;return"value"in ne&&(ce=ne.value),me!=null?me:ce!==void 0?ce:"rc-index-key-".concat(re)}function Ho(ne,re){var me=ne||{},ce=me.label,ye=me.value,Fe=me.options,Ne=me.groupLabel,Ze=ce||(re?"children":"label");return{label:Ze,value:ye||"value",options:Fe||"options",groupLabel:Ne||Ze}}function Mr(ne){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},me=re.fieldNames,ce=re.childrenAsData,ye=[],Fe=Ho(me,!1),Ne=Fe.label,Ze=Fe.value,_e=Fe.options,Ke=Fe.groupLabel;function Ue(nt,mt){nt.forEach(function(tt){if(mt||!(_e in tt)){var it=tt[Ze];ye.push({key:rr(tt,ye.length),groupOption:mt,data:tt,label:tt[Ne],value:it})}else{var xt=tt[Ke];xt===void 0&&ce&&(xt=tt.label),ye.push({key:rr(tt,ye.length),group:!0,data:tt,label:xt}),Ue(tt[_e],!0)}})}return Ue(ne,!1),ye}function ut(ne){var re=(0,Be.Z)({},ne);return"props"in re||Object.defineProperty(re,"props",{get:function(){return ke(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),re}}),re}function Zr(ne,re){if(!re||!re.length)return null;var me=!1;function ce(Fe,Ne){var Ze=(0,lo.Z)(Ne),_e=Ze[0],Ke=Ze.slice(1);if(!_e)return[Fe];var Ue=Fe.split(_e);return me=me||Ue.length>1,Ue.reduce(function(nt,mt){return[].concat((0,ae.Z)(nt),(0,ae.Z)(ce(mt,Ke)))},[]).filter(function(nt){return nt})}var ye=ce(ne,re);return me?ye:null}var Ko=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Pr=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function No(ne){return ne==="tags"||ne==="multiple"}var Bt=ge.forwardRef(function(ne,re){var me,ce,ye=ne.id,Fe=ne.prefixCls,Ne=ne.className,Ze=ne.showSearch,_e=ne.tagRender,Ke=ne.direction,Ue=ne.omitDomProps,nt=ne.displayValues,mt=ne.onDisplayValuesChange,tt=ne.emptyOptions,it=ne.notFoundContent,xt=it===void 0?"Not Found":it,ft=ne.onClear,pt=ne.mode,Nt=ne.disabled,It=ne.loading,Mt=ne.getInputElement,At=ne.getRawInputElement,St=ne.open,bt=ne.defaultOpen,Ht=ne.onDropdownVisibleChange,ct=ne.activeValue,zt=ne.onActiveValueChange,Ut=ne.activeDescendantId,fn=ne.searchValue,vn=ne.autoClearSearchValue,dn=ne.onSearch,_t=ne.onSearchSplit,gn=ne.tokenSeparators,Zt=ne.allowClear,kt=ne.suffixIcon,Yt=ne.clearIcon,Hn=ne.OptionList,Dn=ne.animation,ea=ne.transitionName,Xn=ne.dropdownStyle,ln=ne.dropdownClassName,On=ne.dropdownMatchSelectWidth,In=ne.dropdownRender,Kt=ne.dropdownAlign,gt=ne.placement,jt=ne.builtinPlacements,yn=ne.getPopupContainer,Ln=ne.showAction,Tn=Ln===void 0?[]:Ln,Bn=ne.onFocus,xn=ne.onBlur,bn=ne.onKeyUp,En=ne.onKeyDown,zn=ne.onMouseDown,Nn=(0,we.Z)(ne,Ko),Zn=No(pt),fa=(Ze!==void 0?Ze:Zn)||pt==="combobox",kn=(0,Be.Z)({},Nn);Pr.forEach(function(Vn){delete kn[Vn]}),Ue==null||Ue.forEach(function(Vn){delete kn[Vn]});var Ba=ge.useState(!1),xa=(0,De.Z)(Ba,2),Ta=xa[0],Wn=xa[1];ge.useEffect(function(){Wn(rt())},[]);var Yn=ge.useRef(null),Na=ge.useRef(null),ua=ge.useRef(null),ta=ge.useRef(null),Ma=ge.useRef(null),Aa=ht(),Ka=(0,De.Z)(Aa,3),ga=Ka[0],Kn=Ka[1],Wa=Ka[2];ge.useImperativeHandle(re,function(){var Vn,Gn;return{focus:(Vn=ta.current)===null||Vn===void 0?void 0:Vn.focus,blur:(Gn=ta.current)===null||Gn===void 0?void 0:Gn.blur,scrollTo:function(mo){var sa;return(sa=Ma.current)===null||sa===void 0?void 0:sa.scrollTo(mo)}}});var Oa=ge.useMemo(function(){var Vn;if(pt!=="combobox")return fn;var Gn=(Vn=nt[0])===null||Vn===void 0?void 0:Vn.value;return typeof Gn=="string"||typeof Gn=="number"?String(Gn):""},[fn,pt,nt]),wo=pt==="combobox"&&typeof Mt=="function"&&Mt()||null,Va=typeof At=="function"&&At(),Fo=vt(Na,Va==null||(me=Va.props)===null||me===void 0?void 0:me.ref),Ua=ge.useState(!1),la=(0,De.Z)(Ua,2),Qn=la[0],va=la[1];E(function(){va(!0)},[]);var Ra=ee(!1,{defaultValue:bt,value:St}),Ia=(0,De.Z)(Ra,2),ao=Ia[0],Sn=Ia[1],Ct=Qn?ao:!1,Xt=!xt&&tt;(Nt||Xt&&Ct&&pt==="combobox")&&(Ct=!1);var Jt=Xt?!1:Ct,hn=ge.useCallback(function(Vn){var Gn=Vn!==void 0?Vn:!Ct;Nt||(Sn(Gn),Ct!==Gn&&(Ht==null||Ht(Gn)))},[Nt,Ct,Sn,Ht]),da=ge.useMemo(function(){return(gn||[]).some(function(Vn){return[`
|
|
`,`\r
|
|
`].includes(Vn)})},[gn]),na=function(Gn,oo,mo){var sa=!0,Ga=Gn;zt==null||zt(null);var Eo=mo?null:Zr(Gn,gn);return pt!=="combobox"&&Eo&&(Ga="",_t==null||_t(Eo),hn(!1),sa=!1),dn&&Oa!==Ga&&dn(Ga,{source:oo?"typing":"effect"}),sa},bo=function(Gn){!Gn||!Gn.trim()||dn(Gn,{source:"submit"})};ge.useEffect(function(){!Ct&&!Zn&&pt!=="combobox"&&na("",!1,!1)},[Ct]),ge.useEffect(function(){ao&&Nt&&Sn(!1),Nt&&Kn(!1)},[Nt]);var ha=tn(),yo=(0,De.Z)(ha,2),ja=yo[0],Uo=yo[1],wr=function(Gn){var oo=ja(),mo=Gn.which;if(mo===xe.ENTER&&(pt!=="combobox"&&Gn.preventDefault(),Ct||hn(!0)),Uo(!!Oa),mo===xe.BACKSPACE&&!oo&&Zn&&!Oa&&nt.length){for(var sa=(0,ae.Z)(nt),Ga=null,Eo=sa.length-1;Eo>=0;Eo-=1){var Go=sa[Eo];if(!Go.disabled){sa.splice(Eo,1),Ga=Go;break}}Ga&&mt(sa,{type:"remove",values:[Ga]})}for(var vo=arguments.length,Yo=new Array(vo>1?vo-1:0),Do=1;Do<vo;Do++)Yo[Do-1]=arguments[Do];if(Ct&&Ma.current){var Yr;(Yr=Ma.current).onKeyDown.apply(Yr,[Gn].concat(Yo))}En==null||En.apply(void 0,[Gn].concat(Yo))},zr=function(Gn){for(var oo=arguments.length,mo=new Array(oo>1?oo-1:0),sa=1;sa<oo;sa++)mo[sa-1]=arguments[sa];if(Ct&&Ma.current){var Ga;(Ga=Ma.current).onKeyUp.apply(Ga,[Gn].concat(mo))}bn==null||bn.apply(void 0,[Gn].concat(mo))},sr=function(Gn){var oo=nt.filter(function(mo){return mo!==Gn});mt(oo,{type:"remove",values:[Gn]})},jo=ge.useRef(!1),Ro=function(){Kn(!0),Nt||(Bn&&!jo.current&&Bn.apply(void 0,arguments),Tn.includes("focus")&&hn(!0)),jo.current=!0},Fr=function(){Kn(!1,function(){jo.current=!1,hn(!1)}),!Nt&&(Oa&&(pt==="tags"?dn(Oa,{source:"submit"}):pt==="multiple"&&dn("",{source:"blur"})),xn&&xn.apply(void 0,arguments))},Mo=[];ge.useEffect(function(){return function(){Mo.forEach(function(Vn){return clearTimeout(Vn)}),Mo.splice(0,Mo.length)}},[]);var Ur=function(Gn){var oo,mo=Gn.target,sa=(oo=ua.current)===null||oo===void 0?void 0:oo.getPopupElement();if(sa&&sa.contains(mo)){var Ga=setTimeout(function(){var Yo=Mo.indexOf(Ga);if(Yo!==-1&&Mo.splice(Yo,1),Wa(),!Ta&&!sa.contains(document.activeElement)){var Do;(Do=ta.current)===null||Do===void 0||Do.focus()}});Mo.push(Ga)}for(var Eo=arguments.length,Go=new Array(Eo>1?Eo-1:0),vo=1;vo<Eo;vo++)Go[vo-1]=arguments[vo];zn==null||zn.apply(void 0,[Gn].concat(Go))},Dr=ge.useState({}),cr=(0,De.Z)(Dr,2),mr=cr[1];function Br(){mr({})}var xr;Va&&(xr=function(Gn){hn(Gn)}),dt(function(){var Vn;return[Yn.current,(Vn=ua.current)===null||Vn===void 0?void 0:Vn.getPopupElement()]},Jt,hn,!!Va);var kr=ge.useMemo(function(){return(0,Be.Z)((0,Be.Z)({},ne),{},{notFoundContent:xt,open:Ct,triggerOpen:Jt,id:ye,showSearch:fa,multiple:Zn,toggleOpen:hn})},[ne,xt,Jt,Ct,ye,fa,Zn,hn]),Xo=!!kt||It,gi;Xo&&(gi=ge.createElement(on,{className:Se()("".concat(Fe,"-arrow"),(0,Me.Z)({},"".concat(Fe,"-arrow-loading"),It)),customizeIcon:kt,customizeIconProps:{loading:It,searchValue:Oa,open:Ct,focused:ga,showSearch:fa}}));var li=function(){var Gn;ft==null||ft(),(Gn=ta.current)===null||Gn===void 0||Gn.focus(),mt([],{type:"clear",values:nt}),na("",!1,!1)},di=An(Fe,li,nt,Zt,Yt,Nt,Oa,pt),si=di.allowClear,bi=di.clearIcon,yi=ge.createElement(Hn,{ref:Ma}),Ei=Se()(Fe,Ne,(ce={},(0,Me.Z)(ce,"".concat(Fe,"-focused"),ga),(0,Me.Z)(ce,"".concat(Fe,"-multiple"),Zn),(0,Me.Z)(ce,"".concat(Fe,"-single"),!Zn),(0,Me.Z)(ce,"".concat(Fe,"-allow-clear"),Zt),(0,Me.Z)(ce,"".concat(Fe,"-show-arrow"),Xo),(0,Me.Z)(ce,"".concat(Fe,"-disabled"),Nt),(0,Me.Z)(ce,"".concat(Fe,"-loading"),It),(0,Me.Z)(ce,"".concat(Fe,"-open"),Ct),(0,Me.Z)(ce,"".concat(Fe,"-customize-input"),wo),(0,Me.Z)(ce,"".concat(Fe,"-show-search"),fa),ce)),jr=ge.createElement(Zo,{ref:ua,disabled:Nt,prefixCls:Fe,visible:Jt,popupElement:yi,animation:Dn,transitionName:ea,dropdownStyle:Xn,dropdownClassName:ln,direction:Ke,dropdownMatchSelectWidth:On,dropdownRender:In,dropdownAlign:Kt,placement:gt,builtinPlacements:jt,getPopupContainer:yn,empty:tt,getTriggerDOMNode:function(){return Na.current},onPopupVisibleChange:xr,onPopupMouseEnter:Br},Va?ge.cloneElement(Va,{ref:Fo}):ge.createElement(Ha,(0,$e.Z)({},ne,{domRef:Na,prefixCls:Fe,inputElement:wo,ref:ta,id:ye,showSearch:fa,autoClearSearchValue:vn,mode:pt,activeDescendantId:Ut,tagRender:_e,values:nt,open:Ct,onToggleOpen:hn,activeValue:ct,searchValue:Oa,onSearch:na,onSearchSubmit:bo,onRemove:sr,tokenWithEnter:da}))),Xr;return Va?Xr=jr:Xr=ge.createElement("div",(0,$e.Z)({className:Ei},kn,{ref:Yn,onMouseDown:Ur,onKeyDown:wr,onKeyUp:zr,onFocus:Ro,onBlur:Fr}),ga&&!Ct&&ge.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(nt.map(function(Vn){var Gn=Vn.label,oo=Vn.value;return["number","string"].includes((0,Ae.Z)(Gn))?Gn:oo}).join(", "))),jr,gi,si&&bi),ge.createElement(Ve.Provider,{value:kr},Xr)}),rn=Bt,Rn=function(ne,re){var me=ge.useRef({values:new Map,options:new Map}),ce=ge.useMemo(function(){var Fe=me.current,Ne=Fe.values,Ze=Fe.options,_e=ne.map(function(nt){if(nt.label===void 0){var mt;return(0,Be.Z)((0,Be.Z)({},nt),{},{label:(mt=Ne.get(nt.value))===null||mt===void 0?void 0:mt.label})}return nt}),Ke=new Map,Ue=new Map;return _e.forEach(function(nt){Ke.set(nt.value,nt),Ue.set(nt.value,re.get(nt.value)||Ze.get(nt.value))}),me.current.values=Ke,me.current.options=Ue,_e},[ne,re]),ye=ge.useCallback(function(Fe){return re.get(Fe)||me.current.options.get(Fe)},[re]);return[ce,ye]};function en(ne,re){return Sr(ne).join("").toUpperCase().includes(re)}var Sa=function(ne,re,me,ce,ye){return ge.useMemo(function(){if(!me||ce===!1)return ne;var Fe=re.options,Ne=re.label,Ze=re.value,_e=[],Ke=typeof ce=="function",Ue=me.toUpperCase(),nt=Ke?ce:function(tt,it){return ye?en(it[ye],Ue):it[Fe]?en(it[Ne!=="children"?Ne:"label"],Ue):en(it[Ze],Ue)},mt=Ke?function(tt){return ut(tt)}:function(tt){return tt};return ne.forEach(function(tt){if(tt[Fe]){var it=nt(me,mt(tt));if(it)_e.push(tt);else{var xt=tt[Fe].filter(function(ft){return nt(me,mt(ft))});xt.length&&_e.push((0,Be.Z)((0,Be.Z)({},tt),{},(0,Me.Z)({},Fe,xt)))}return}nt(me,mt(tt))&&_e.push(tt)}),_e},[ne,ce,ye,me,re])},Ea=0,Ja=b();function so(){var ne;return Ja?(ne=Ea,Ea+=1):ne="TEST_OR_SSR",ne}function ho(ne){var re=ge.useState(),me=(0,De.Z)(re,2),ce=me[0],ye=me[1];return ge.useEffect(function(){ye("rc_select_".concat(so()))},[]),ne||ce}function Ar(ne){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},me=[];return ge.Children.forEach(ne,function(ce){ce==null&&!re.keepEmpty||(Array.isArray(ce)?me=me.concat(Ar(ce)):(0,Pe.isFragment)(ce)&&ce.props?me=me.concat(Ar(ce.props.children,re)):me.push(ce))}),me}var qo=["children","value"],ci=["children"];function mi(ne){var re=ne,me=re.key,ce=re.props,ye=ce.children,Fe=ce.value,Ne=(0,we.Z)(ce,qo);return(0,Be.Z)({key:me,value:Fe!==void 0?Fe:me,children:ye},Ne)}function Or(ne){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Ar(ne).map(function(me,ce){if(!ge.isValidElement(me)||!me.type)return null;var ye=me,Fe=ye.type.isSelectOptGroup,Ne=ye.key,Ze=ye.props,_e=Ze.children,Ke=(0,we.Z)(Ze,ci);return re||!Fe?mi(me):(0,Be.Z)((0,Be.Z)({key:"__RC_SELECT_GRP__".concat(Ne===null?ce:Ne,"__"),label:Ne},Ke),{},{options:Or(_e)})}).filter(function(me){return me})}function Jr(ne,re,me,ce,ye){return ge.useMemo(function(){var Fe=ne,Ne=!ne;Ne&&(Fe=Or(re));var Ze=new Map,_e=new Map,Ke=function(mt,tt,it){it&&typeof it=="string"&&mt.set(tt[it],tt)};function Ue(nt){for(var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,tt=0;tt<nt.length;tt+=1){var it=nt[tt];!it[me.options]||mt?(Ze.set(it[me.value],it),Ke(_e,it,me.label),Ke(_e,it,ce),Ke(_e,it,ye)):Ue(it[me.options],!0)}}return Ue(Fe),{options:Fe,valueOptions:Ze,labelOptions:_e}},[ne,re,me,ce,ye])}function ir(ne){var re=ge.useRef();re.current=ne;var me=ge.useCallback(function(){return re.current.apply(re,arguments)},[]);return me}var Ir=function(){return null};Ir.isSelectOptGroup=!0;var Hr=Ir,Io=function(){return null};Io.isSelectOption=!0;var pr=Io;function br(ne,re){var me=(0,Be.Z)({},ne);return Array.isArray(re)&&re.forEach(function(ce){delete me[ce]}),me}var yr=ie(73299),qr=ge.createContext(null),Wo=qr;function Tr(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Er=["disabled","title","children","style","className"];function fo(ne){return typeof ne=="string"||typeof ne=="number"}var ei=function(re,me){var ce=Qe(),ye=ce.prefixCls,Fe=ce.id,Ne=ce.open,Ze=ce.multiple,_e=ce.mode,Ke=ce.searchValue,Ue=ce.toggleOpen,nt=ce.notFoundContent,mt=ce.onPopupScroll,tt=ge.useContext(Wo),it=tt.flattenOptions,xt=tt.onActiveValue,ft=tt.defaultActiveFirstOption,pt=tt.onSelect,Nt=tt.menuItemSelectedIcon,It=tt.rawValues,Mt=tt.fieldNames,At=tt.virtual,St=tt.direction,bt=tt.listHeight,Ht=tt.listItemHeight,ct="".concat(ye,"-item"),zt=He(function(){return it},[Ne,it],function(Kt,gt){return gt[0]&&Kt[1]!==gt[1]}),Ut=ge.useRef(null),fn=function(gt){gt.preventDefault()},vn=function(gt){Ut.current&&Ut.current.scrollTo(typeof gt=="number"?{index:gt}:gt)},dn=function(gt){for(var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,yn=zt.length,Ln=0;Ln<yn;Ln+=1){var Tn=(gt+Ln*jt+yn)%yn,Bn=zt[Tn],xn=Bn.group,bn=Bn.data;if(!xn&&!bn.disabled)return Tn}return-1},_t=ge.useState(function(){return dn(0)}),gn=(0,De.Z)(_t,2),Zt=gn[0],kt=gn[1],Yt=function(gt){var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;kt(gt);var yn={source:jt?"keyboard":"mouse"},Ln=zt[gt];if(!Ln){xt(null,-1,yn);return}xt(Ln.value,gt,yn)};(0,ge.useEffect)(function(){Yt(ft!==!1?dn(0):-1)},[zt.length,Ke]);var Hn=ge.useCallback(function(Kt){return It.has(Kt)&&_e!=="combobox"},[_e,(0,ae.Z)(It).toString(),It.size]);(0,ge.useEffect)(function(){var Kt=setTimeout(function(){if(!Ze&&Ne&&It.size===1){var jt=Array.from(It)[0],yn=zt.findIndex(function(Ln){var Tn=Ln.data;return Tn.value===jt});yn!==-1&&(Yt(yn),vn(yn))}});if(Ne){var gt;(gt=Ut.current)===null||gt===void 0||gt.scrollTo(void 0)}return function(){return clearTimeout(Kt)}},[Ne,Ke,it.length]);var Dn=function(gt){gt!==void 0&&pt(gt,{selected:!It.has(gt)}),Ze||Ue(!1)};if(ge.useImperativeHandle(me,function(){return{onKeyDown:function(gt){var jt=gt.which,yn=gt.ctrlKey;switch(jt){case xe.N:case xe.P:case xe.UP:case xe.DOWN:{var Ln=0;if(jt===xe.UP?Ln=-1:jt===xe.DOWN?Ln=1:Tr()&&yn&&(jt===xe.N?Ln=1:jt===xe.P&&(Ln=-1)),Ln!==0){var Tn=dn(Zt+Ln,Ln);vn(Tn),Yt(Tn,!0)}break}case xe.ENTER:{var Bn=zt[Zt];Bn&&!Bn.data.disabled?Dn(Bn.value):Dn(void 0),Ne&>.preventDefault();break}case xe.ESC:Ue(!1),Ne&>.stopPropagation()}},onKeyUp:function(){},scrollTo:function(gt){vn(gt)}}}),zt.length===0)return ge.createElement("div",{role:"listbox",id:"".concat(Fe,"_list"),className:"".concat(ct,"-empty"),onMouseDown:fn},nt);var ea=Object.keys(Mt).map(function(Kt){return Mt[Kt]}),Xn=function(gt){return gt.label};function ln(Kt,gt){var jt=Kt.group;return{role:jt?"presentation":"option",id:"".concat(Fe,"_list_").concat(gt)}}var On=function(gt){var jt=zt[gt];if(!jt)return null;var yn=jt.data||{},Ln=yn.value,Tn=jt.group,Bn=qe(yn,!0),xn=Xn(jt);return jt?ge.createElement("div",(0,$e.Z)({"aria-label":typeof xn=="string"&&!Tn?xn:null},Bn,{key:gt},ln(jt,gt),{"aria-selected":Hn(Ln)}),Ln):null},In={role:"listbox",id:"".concat(Fe,"_list")};return ge.createElement(ge.Fragment,null,At&&ge.createElement("div",(0,$e.Z)({},In,{style:{height:0,width:0,overflow:"hidden"}}),On(Zt-1),On(Zt),On(Zt+1)),ge.createElement(yr.Z,{itemKey:"key",ref:Ut,data:zt,height:bt,itemHeight:Ht,fullHeight:!1,onMouseDown:fn,onScroll:mt,virtual:At,direction:St,innerProps:At?null:In},function(Kt,gt){var jt,yn=Kt.group,Ln=Kt.groupOption,Tn=Kt.data,Bn=Kt.label,xn=Kt.value,bn=Tn.key;if(yn){var En,zn=(En=Tn.title)!==null&&En!==void 0?En:fo(Bn)?Bn.toString():void 0;return ge.createElement("div",{className:Se()(ct,"".concat(ct,"-group")),title:zn},Bn!==void 0?Bn:bn)}var Nn=Tn.disabled,Zn=Tn.title,fa=Tn.children,kn=Tn.style,Ba=Tn.className,xa=(0,we.Z)(Tn,Er),Ta=br(xa,ea),Wn=Hn(xn),Yn="".concat(ct,"-option"),Na=Se()(ct,Yn,Ba,(jt={},(0,Me.Z)(jt,"".concat(Yn,"-grouped"),Ln),(0,Me.Z)(jt,"".concat(Yn,"-active"),Zt===gt&&!Nn),(0,Me.Z)(jt,"".concat(Yn,"-disabled"),Nn),(0,Me.Z)(jt,"".concat(Yn,"-selected"),Wn),jt)),ua=Xn(Kt),ta=!Nt||typeof Nt=="function"||Wn,Ma=typeof ua=="number"?ua:ua||xn,Aa=fo(Ma)?Ma.toString():void 0;return Zn!==void 0&&(Aa=Zn),ge.createElement("div",(0,$e.Z)({},qe(Ta),At?{}:ln(Kt,gt),{"aria-selected":Wn,className:Na,title:Aa,onMouseMove:function(){Zt===gt||Nn||Yt(gt)},onClick:function(){Nn||Dn(xn)},style:kn}),ge.createElement("div",{className:"".concat(Yn,"-content")},Ma),ge.isValidElement(Nt)||Wn,ta&&ge.createElement(on,{className:"".concat(ct,"-option-state"),customizeIcon:Nt,customizeIconProps:{isSelected:Wn}},Wn?"\u2713":null))}))},qa=ge.forwardRef(ei);qa.displayName="OptionList";var ur=qa;function Cr(ne){var re=ne.mode,me=ne.options,ce=ne.children,ye=ne.backfill,Fe=ne.allowClear,Ne=ne.placeholder,Ze=ne.getInputElement,_e=ne.showSearch,Ke=ne.onSearch,Ue=ne.defaultOpen,nt=ne.autoFocus,mt=ne.labelInValue,tt=ne.value,it=ne.inputValue,xt=ne.optionLabelProp,ft=isMultiple(re),pt=_e!==void 0?_e:ft||re==="combobox",Nt=me||convertChildrenToData(ce);if(warning(re!=="tags"||Nt.every(function(St){return!St.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),re==="tags"||re==="combobox"){var It=Nt.some(function(St){return St.options?St.options.some(function(bt){return typeof("value"in bt?bt.value:bt.key)=="number"}):typeof("value"in St?St.value:St.key)=="number"});warning(!It,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(re!=="combobox"||!xt,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(re==="combobox"||!ye,"`backfill` only works with `combobox` mode."),warning(re==="combobox"||!Ze,"`getInputElement` only work with `combobox` mode."),noteOnce(re!=="combobox"||!Ze||!Fe||!Ne,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ke&&!pt&&re!=="combobox"&&re!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Ue||nt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),tt!=null){var Mt=toArray(tt);warning(!mt||Mt.every(function(St){return _typeof(St)==="object"&&("key"in St||"value"in St)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!ft||Array.isArray(tt),"`value` should be array when `mode` is `multiple` or `tags`")}if(ce){var At=null;toNodeArray(ce).some(function(St){if(!React.isValidElement(St)||!St.type)return!1;var bt=St,Ht=bt.type;if(Ht.isSelectOption)return!1;if(Ht.isSelectOptGroup){var ct=toNodeArray(St.props.children).every(function(zt){return!React.isValidElement(zt)||!St.type||zt.type.isSelectOption?!0:(At=zt.type,!1)});return!ct}return At=Ht,!0}),At&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(At.displayName||At.name||At,"`.")),warning(it===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function ti(ne,re){if(ne){var me=function ce(ye){for(var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ne=0;Ne<ye.length;Ne++){var Ze=ye[Ne];if(Ze[re==null?void 0:re.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Fe&&Array.isArray(Ze[re==null?void 0:re.options])&&ce(Ze[re==null?void 0:re.options],!0))break}};me(ne)}}var ni=null,ai=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],fi=["inputValue"];function vi(ne){return!ne||(0,Ae.Z)(ne)!=="object"}var Kr=ge.forwardRef(function(ne,re){var me=ne.id,ce=ne.mode,ye=ne.prefixCls,Fe=ye===void 0?"rc-select":ye,Ne=ne.backfill,Ze=ne.fieldNames,_e=ne.inputValue,Ke=ne.searchValue,Ue=ne.onSearch,nt=ne.autoClearSearchValue,mt=nt===void 0?!0:nt,tt=ne.onSelect,it=ne.onDeselect,xt=ne.dropdownMatchSelectWidth,ft=xt===void 0?!0:xt,pt=ne.filterOption,Nt=ne.filterSort,It=ne.optionFilterProp,Mt=ne.optionLabelProp,At=ne.options,St=ne.children,bt=ne.defaultActiveFirstOption,Ht=ne.menuItemSelectedIcon,ct=ne.virtual,zt=ne.direction,Ut=ne.listHeight,fn=Ut===void 0?200:Ut,vn=ne.listItemHeight,dn=vn===void 0?20:vn,_t=ne.value,gn=ne.defaultValue,Zt=ne.labelInValue,kt=ne.onChange,Yt=(0,we.Z)(ne,ai),Hn=ho(me),Dn=No(ce),ea=!!(!At&&St),Xn=ge.useMemo(function(){return pt===void 0&&ce==="combobox"?!1:pt},[pt,ce]),ln=ge.useMemo(function(){return Ho(Ze,ea)},[JSON.stringify(Ze),ea]),On=ee("",{value:Ke!==void 0?Ke:_e,postState:function(Xt){return Xt||""}}),In=(0,De.Z)(On,2),Kt=In[0],gt=In[1],jt=Jr(At,St,ln,It,Mt),yn=jt.valueOptions,Ln=jt.labelOptions,Tn=jt.options,Bn=ge.useCallback(function(Ct){var Xt=Sr(Ct);return Xt.map(function(Jt){var hn,da,na,bo,ha;if(vi(Jt))hn=Jt;else{var yo;na=Jt.key,da=Jt.label,hn=(yo=Jt.value)!==null&&yo!==void 0?yo:na}var ja=yn.get(hn);if(ja){var Uo;if(da===void 0&&(da=ja==null?void 0:ja[Mt||ln.label]),na===void 0&&(na=(Uo=ja==null?void 0:ja.key)!==null&&Uo!==void 0?Uo:hn),bo=ja==null?void 0:ja.disabled,ha=ja==null?void 0:ja.title,0)var wr}return{label:da,value:hn,key:na,disabled:bo,title:ha}})},[ln,Mt,yn]),xn=ee(gn,{value:_t}),bn=(0,De.Z)(xn,2),En=bn[0],zn=bn[1],Nn=ge.useMemo(function(){var Ct,Xt=Bn(En);return ce==="combobox"&&Oe((Ct=Xt[0])===null||Ct===void 0?void 0:Ct.value)?[]:Xt},[En,Bn,ce]),Zn=Rn(Nn,yn),fa=(0,De.Z)(Zn,2),kn=fa[0],Ba=fa[1],xa=ge.useMemo(function(){if(!ce&&kn.length===1){var Ct=kn[0];if(Ct.value===null&&(Ct.label===null||Ct.label===void 0))return[]}return kn.map(function(Xt){var Jt;return(0,Be.Z)((0,Be.Z)({},Xt),{},{label:(Jt=Xt.label)!==null&&Jt!==void 0?Jt:Xt.value})})},[ce,kn]),Ta=ge.useMemo(function(){return new Set(kn.map(function(Ct){return Ct.value}))},[kn]);ge.useEffect(function(){if(ce==="combobox"){var Ct,Xt=(Ct=kn[0])===null||Ct===void 0?void 0:Ct.value;gt(ze(Xt)?String(Xt):"")}},[kn]);var Wn=ir(function(Ct,Xt){var Jt,hn=Xt!=null?Xt:Ct;return Jt={},(0,Me.Z)(Jt,ln.value,Ct),(0,Me.Z)(Jt,ln.label,hn),Jt}),Yn=ge.useMemo(function(){if(ce!=="tags")return Tn;var Ct=(0,ae.Z)(Tn),Xt=function(hn){return yn.has(hn)};return(0,ae.Z)(kn).sort(function(Jt,hn){return Jt.value<hn.value?-1:1}).forEach(function(Jt){var hn=Jt.value;Xt(hn)||Ct.push(Wn(hn,Jt.label))}),Ct},[Wn,Tn,yn,kn,ce]),Na=Sa(Yn,ln,Kt,Xn,It),ua=ge.useMemo(function(){return ce!=="tags"||!Kt||Na.some(function(Ct){return Ct[It||"value"]===Kt})||Na.some(function(Ct){return Ct[ln.value]===Kt})?Na:[Wn(Kt)].concat((0,ae.Z)(Na))},[Wn,It,ce,Na,Kt,ln]),ta=ge.useMemo(function(){return Nt?(0,ae.Z)(ua).sort(function(Ct,Xt){return Nt(Ct,Xt)}):ua},[ua,Nt]),Ma=ge.useMemo(function(){return Mr(ta,{fieldNames:ln,childrenAsData:ea})},[ta,ln,ea]),Aa=function(Xt){var Jt=Bn(Xt);if(zn(Jt),kt&&(Jt.length!==kn.length||Jt.some(function(na,bo){var ha;return((ha=kn[bo])===null||ha===void 0?void 0:ha.value)!==(na==null?void 0:na.value)}))){var hn=Zt?Jt:Jt.map(function(na){return na.value}),da=Jt.map(function(na){return ut(Ba(na.value))});kt(Dn?hn:hn[0],Dn?da:da[0])}},Ka=ge.useState(null),ga=(0,De.Z)(Ka,2),Kn=ga[0],Wa=ga[1],Oa=ge.useState(0),wo=(0,De.Z)(Oa,2),Va=wo[0],Fo=wo[1],Ua=bt!==void 0?bt:ce!=="combobox",la=ge.useCallback(function(Ct,Xt){var Jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},hn=Jt.source,da=hn===void 0?"keyboard":hn;Fo(Xt),Ne&&ce==="combobox"&&Ct!==null&&da==="keyboard"&&Wa(String(Ct))},[Ne,ce]),Qn=function(Xt,Jt,hn){var da=function(){var jo,Ro=Ba(Xt);return[Zt?{label:Ro==null?void 0:Ro[ln.label],value:Xt,key:(jo=Ro==null?void 0:Ro.key)!==null&&jo!==void 0?jo:Xt}:Xt,ut(Ro)]};if(Jt&&tt){var na=da(),bo=(0,De.Z)(na,2),ha=bo[0],yo=bo[1];tt(ha,yo)}else if(!Jt&&it&&hn!=="clear"){var ja=da(),Uo=(0,De.Z)(ja,2),wr=Uo[0],zr=Uo[1];it(wr,zr)}},va=ir(function(Ct,Xt){var Jt,hn=Dn?Xt.selected:!0;hn?Jt=Dn?[].concat((0,ae.Z)(kn),[Ct]):[Ct]:Jt=kn.filter(function(da){return da.value!==Ct}),Aa(Jt),Qn(Ct,hn),ce==="combobox"?Wa(""):(!No||mt)&&(gt(""),Wa(""))}),Ra=function(Xt,Jt){Aa(Xt);var hn=Jt.type,da=Jt.values;(hn==="remove"||hn==="clear")&&da.forEach(function(na){Qn(na.value,!1,hn)})},Ia=function(Xt,Jt){if(gt(Xt),Wa(null),Jt.source==="submit"){var hn=(Xt||"").trim();if(hn){var da=Array.from(new Set([].concat((0,ae.Z)(Ta),[hn])));Aa(da),Qn(hn,!0),gt("")}return}Jt.source!=="blur"&&(ce==="combobox"&&Aa(Xt),Ue==null||Ue(Xt))},ao=function(Xt){var Jt=Xt;ce!=="tags"&&(Jt=Xt.map(function(da){var na=Ln.get(da);return na==null?void 0:na.value}).filter(function(da){return da!==void 0}));var hn=Array.from(new Set([].concat((0,ae.Z)(Ta),(0,ae.Z)(Jt))));Aa(hn),hn.forEach(function(da){Qn(da,!0)})},Sn=ge.useMemo(function(){var Ct=ct!==!1&&ft!==!1;return(0,Be.Z)((0,Be.Z)({},jt),{},{flattenOptions:Ma,onActiveValue:la,defaultActiveFirstOption:Ua,onSelect:va,menuItemSelectedIcon:Ht,rawValues:Ta,fieldNames:ln,virtual:Ct,direction:zt,listHeight:fn,listItemHeight:dn,childrenAsData:ea})},[jt,Ma,la,Ua,va,Ht,Ta,ln,ct,ft,fn,dn,ea]);return ge.createElement(Wo.Provider,{value:Sn},ge.createElement(rn,(0,$e.Z)({},Yt,{id:Hn,prefixCls:Fe,ref:re,omitDomProps:fi,mode:ce,displayValues:xa,onDisplayValuesChange:Ra,direction:zt,searchValue:Kt,onSearch:Ia,autoClearSearchValue:mt,onSearchSplit:ao,dropdownMatchSelectWidth:ft,OptionList:ur,emptyOptions:!Ma.length,activeValue:Kn,activeDescendantId:"".concat(Hn,"_list_").concat(Va)})))}),Wr=Kr;Wr.Option=pr,Wr.OptGroup=Hr;var un=null,Gt=null,Wt=ie(17341);function qt(ne){var re=ge.useRef(!1),me=ge.useState(ne),ce=(0,De.Z)(me,2),ye=ce[0],Fe=ce[1];ge.useEffect(function(){return re.current=!1,function(){re.current=!0}},[]);function Ne(Ze,_e){_e&&re.current||Fe(Ze)}return[ye,Ne]}function qn(ne){return ne!==void 0}function ba(ne,re){var me=re||{},ce=me.defaultValue,ye=me.value,Fe=me.onChange,Ne=me.postState,Ze=qt(function(){return qn(ye)?ye:qn(ce)?typeof ce=="function"?ce():ce:typeof ne=="function"?ne():ne}),_e=(0,De.Z)(Ze,2),Ke=_e[0],Ue=_e[1],nt=ye!==void 0?ye:Ke,mt=Ne?Ne(nt):nt,tt=jn(Fe),it=qt([nt]),xt=(0,De.Z)(it,2),ft=xt[0],pt=xt[1];$t(function(){var It=ft[0];Ke!==It&&tt(Ke,It)},[ft]),$t(function(){qn(ye)||Ue(ye)},[ye]);var Nt=jn(function(It,Mt){Ue(It,Mt),pt([nt],Mt)});return[mt,Nt]}var eo=ge.createContext(null),Ca=eo,La="__rc_cascader_search_mark__",to=function(re,me,ce){var ye=ce.label;return me.some(function(Fe){return String(Fe[ye]).toLowerCase().includes(re.toLowerCase())})},To=function(re,me,ce,ye){return me.map(function(Fe){return Fe[ye.label]}).join(" / ")},co=function(ne,re,me,ce,ye,Fe){var Ne=ye.filter,Ze=Ne===void 0?to:Ne,_e=ye.render,Ke=_e===void 0?To:_e,Ue=ye.limit,nt=Ue===void 0?50:Ue,mt=ye.sort;return ge.useMemo(function(){var tt=[];if(!ne)return[];function it(xt,ft){var pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;xt.forEach(function(Nt){if(!(!mt&&nt!==!1&&nt>0&&tt.length>=nt)){var It=[].concat((0,ae.Z)(ft),[Nt]),Mt=Nt[me.children],At=pt||Nt.disabled;if((!Mt||Mt.length===0||Fe)&&Ze(ne,It,{label:me.label})){var St;tt.push((0,Be.Z)((0,Be.Z)({},Nt),{},(St={disabled:At},(0,Me.Z)(St,me.label,Ke(ne,It,ce,me)),(0,Me.Z)(St,La,It),(0,Me.Z)(St,me.children,void 0),St)))}Mt&&it(Nt[me.children],It,At)}})}return it(re,[]),mt&&tt.sort(function(xt,ft){return mt(xt[La],ft[La],ne,me)}),nt!==!1&&nt>0?tt.slice(0,nt):tt},[ne,re,me,ce,Ke,Fe,Ze,mt,nt])},er="__RC_CASCADER_SPLIT__",gr="SHOW_PARENT",lr="SHOW_CHILD";function Po(ne){return ne.join(er)}function Lo(ne){return ne.map(Po)}function oi(ne){return ne.split(er)}function $a(ne){var re=ne||{},me=re.label,ce=re.value,ye=re.children,Fe=ce||"value";return{label:me||"label",value:Fe,key:Fe,children:ye||"children"}}function dr(ne,re){var me,ce;return(me=ne.isLeaf)!==null&&me!==void 0?me:!((ce=ne[re.children])!==null&&ce!==void 0&&ce.length)}function ri(ne){var re=ne.parentElement;if(re){var me=ne.offsetTop-re.offsetTop;me-re.scrollTop<0?re.scrollTo({top:me}):me+ne.offsetHeight-re.scrollTop>re.offsetHeight&&re.scrollTo({top:me+ne.offsetHeight-re.offsetHeight})}}function Lr(ne,re){return ne.map(function(me){var ce;return(ce=me[La])===null||ce===void 0?void 0:ce.map(function(ye){return ye[re.value]})})}function $r(ne,re,me){var ce=new Set(ne),ye=re();return ne.filter(function(Fe){var Ne=ye[Fe],Ze=Ne?Ne.parent:null,_e=Ne?Ne.children:null;return Ne&&Ne.node.disabled?!0:me===lr?!(_e&&_e.some(function(Ke){return Ke.key&&ce.has(Ke.key)})):!(Ze&&!Ze.node.disabled&&ce.has(Ze.key))})}function $o(ne,re,me){for(var ce=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,ye=re,Fe=[],Ne=function(){var Ke,Ue,nt,mt=ne[Ze],tt=(Ke=ye)===null||Ke===void 0?void 0:Ke.findIndex(function(xt){var ft=xt[me.value];return ce?String(ft)===String(mt):ft===mt}),it=tt!==-1?(Ue=ye)===null||Ue===void 0?void 0:Ue[tt]:null;Fe.push({value:(nt=it==null?void 0:it[me.value])!==null&&nt!==void 0?nt:mt,index:tt,option:it}),ye=it==null?void 0:it[me.children]},Ze=0;Ze<ne.length;Ze+=1)Ne();return Fe}var po=function(ne,re,me,ce,ye){return ge.useMemo(function(){var Fe=ye||function(Ne){var Ze=ce?Ne.slice(-1):Ne,_e=" / ";return Ze.every(function(Ke){return["string","number"].includes((0,Ae.Z)(Ke))})?Ze.join(_e):Ze.reduce(function(Ke,Ue,nt){var mt=ge.isValidElement(Ue)?ge.cloneElement(Ue,{key:nt}):Ue;return nt===0?[mt]:[].concat((0,ae.Z)(Ke),[_e,mt])},[])};return ne.map(function(Ne){var Ze,_e,Ke=$o(Ne,re,me),Ue=Fe(Ke.map(function(mt){var tt,it=mt.option,xt=mt.value;return(tt=it==null?void 0:it[me.label])!==null&&tt!==void 0?tt:xt}),Ke.map(function(mt){var tt=mt.option;return tt})),nt=Po(Ne);return{label:Ue,value:nt,key:nt,valueCells:Ne,disabled:(Ze=Ke[Ke.length-1])===null||Ze===void 0||(_e=Ze.option)===null||_e===void 0?void 0:_e.disabled}})},[ne,re,me,ye,ce])},ii=ie(1089),Rr=function(ne,re){var me=ge.useRef({options:null,info:null}),ce=ge.useCallback(function(){return me.current.options!==ne&&(me.current.options=ne,me.current.info=(0,ii.I8)(ne,{fieldNames:re,initWrapper:function(Fe){return(0,Be.Z)((0,Be.Z)({},Fe),{},{pathKeyEntities:{}})},processEntity:function(Fe,Ne){var Ze=Fe.nodes.map(function(_e){return _e[re.value]}).join(er);Ne.pathKeyEntities[Ze]=Fe,Fe.key=Ze}})),me.current.info.pathKeyEntities},[re,ne]);return ce},ui=function(ne,re){return ge.useCallback(function(me){var ce=[],ye=[];return me.forEach(function(Fe){var Ne=$o(Fe,ne,re);Ne.every(function(Ze){return Ze.option})?ye.push(Fe):ce.push(Fe)}),[ye,ce]},[ne,re])},Si={},Ai=[],Oi=function(re){Ai.push(re)};function Ii(ne,re){if(0)var me}function cu(ne,re){if(0)var me}function Ci(){Si={}}function Li(ne,re,me){!re&&!Si[me]&&(ne(!1,me),Si[me]=!0)}function hi(ne,re){Li(Ii,ne,re)}function Ti(ne,re){Li(cu,ne,re)}hi.preMessage=Oi,hi.resetWarned=Ci,hi.noteOnce=Ti;var mu=null;function $i(ne){return ge.useMemo(function(){if(!ne)return[!1,{}];var re={matchInputWidth:!0,limit:50};return ne&&(0,Ae.Z)(ne)==="object"&&(re=(0,Be.Z)((0,Be.Z)({},re),ne)),re.limit<=0&&delete re.limit,[!0,re]},[ne])}var Ri=ge.memo(function(ne){var re=ne.children;return re},function(ne,re){return!re.open}),Gi=Ri;function zi(ne){var re,me=ne.prefixCls,ce=ne.checked,ye=ne.halfChecked,Fe=ne.disabled,Ne=ne.onClick,Ze=ne.disableCheckbox,_e=ge.useContext(Ca),Ke=_e.checkable,Ue=typeof Ke!="boolean"?Ke:null;return ge.createElement("span",{className:Se()("".concat(me),(re={},(0,Me.Z)(re,"".concat(me,"-checked"),ce),(0,Me.Z)(re,"".concat(me,"-indeterminate"),!ce&&ye),(0,Me.Z)(re,"".concat(me,"-disabled"),Fe||Ze),re)),onClick:Ne},Ue)}var wi="__cascader_fix_label__";function ki(ne){var re=ne.prefixCls,me=ne.multiple,ce=ne.options,ye=ne.activeValue,Fe=ne.prevValuePath,Ne=ne.onToggleOpen,Ze=ne.onSelect,_e=ne.onActive,Ke=ne.checkedSet,Ue=ne.halfCheckedSet,nt=ne.loadingKeys,mt=ne.isSelectable,tt=ne.searchValue,it="".concat(re,"-menu"),xt="".concat(re,"-menu-item"),ft=ge.useContext(Ca),pt=ft.fieldNames,Nt=ft.changeOnSelect,It=ft.expandTrigger,Mt=ft.expandIcon,At=ft.loadingIcon,St=ft.dropdownMenuColumnStyle,bt=It==="hover",Ht=ge.useMemo(function(){return ce.map(function(ct){var zt,Ut=ct.disabled,fn=ct.disableCheckbox,vn=ct[La],dn=(zt=ct[wi])!==null&&zt!==void 0?zt:ct[pt.label],_t=ct[pt.value],gn=dr(ct,pt),Zt=vn?vn.map(function(ea){return ea[pt.value]}):[].concat((0,ae.Z)(Fe),[_t]),kt=Po(Zt),Yt=nt.includes(kt),Hn=Ke.has(kt),Dn=Ue.has(kt);return{disabled:Ut,label:dn,value:_t,isLeaf:gn,isLoading:Yt,checked:Hn,halfChecked:Dn,option:ct,disableCheckbox:fn,fullPath:Zt,fullPathKey:kt}})},[ce,Ke,pt,Ue,nt,Fe]);return ge.createElement("ul",{className:it,role:"menu"},Ht.map(function(ct){var zt,Ut=ct.disabled,fn=ct.label,vn=ct.value,dn=ct.isLeaf,_t=ct.isLoading,gn=ct.checked,Zt=ct.halfChecked,kt=ct.option,Yt=ct.fullPath,Hn=ct.fullPathKey,Dn=ct.disableCheckbox,ea=function(){if(!(Ut||tt)){var In=(0,ae.Z)(Yt);bt&&dn&&In.pop(),_e(In)}},Xn=function(){mt(kt)&&Ze(Yt,dn)},ln;return typeof kt.title=="string"?ln=kt.title:typeof fn=="string"&&(ln=fn),ge.createElement("li",{key:Hn,className:Se()(xt,(zt={},(0,Me.Z)(zt,"".concat(xt,"-expand"),!dn),(0,Me.Z)(zt,"".concat(xt,"-active"),ye===vn||ye===Hn),(0,Me.Z)(zt,"".concat(xt,"-disabled"),Ut),(0,Me.Z)(zt,"".concat(xt,"-loading"),_t),zt)),style:St,role:"menuitemcheckbox",title:ln,"aria-checked":gn,"data-path-key":Hn,onClick:function(){ea(),!Dn&&(!me||dn)&&Xn()},onDoubleClick:function(){Nt&&Ne(!1)},onMouseEnter:function(){bt&&ea()},onMouseDown:function(In){In.preventDefault()}},me&&ge.createElement(zi,{prefixCls:"".concat(re,"-checkbox"),checked:gn,halfChecked:Zt,disabled:Ut||Dn,disableCheckbox:Dn,onClick:function(In){Dn||(In.stopPropagation(),Xn())}}),ge.createElement("div",{className:"".concat(xt,"-content")},fn),!_t&&Mt&&!dn&&ge.createElement("div",{className:"".concat(xt,"-expand-icon")},Mt),_t&&At&&ge.createElement("div",{className:"".concat(xt,"-loading-icon")},At))}))}var _i=function(){var ne=Qe(),re=ne.multiple,me=ne.open,ce=ge.useContext(Ca),ye=ce.values,Fe=ge.useState([]),Ne=(0,De.Z)(Fe,2),Ze=Ne[0],_e=Ne[1];return ge.useEffect(function(){if(me&&!re){var Ke=ye[0];_e(Ke||[])}},[me]),[Ze,_e]},Ft={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(re){var me=re.keyCode;if(re.altKey&&!re.ctrlKey||re.metaKey||me>=Ft.F1&&me<=Ft.F12)return!1;switch(me){case Ft.ALT:case Ft.CAPS_LOCK:case Ft.CONTEXT_MENU:case Ft.CTRL:case Ft.DOWN:case Ft.END:case Ft.ESC:case Ft.HOME:case Ft.INSERT:case Ft.LEFT:case Ft.MAC_FF_META:case Ft.META:case Ft.NUMLOCK:case Ft.NUM_CENTER:case Ft.PAGE_DOWN:case Ft.PAGE_UP:case Ft.PAUSE:case Ft.PRINT_SCREEN:case Ft.RIGHT:case Ft.SHIFT:case Ft.UP:case Ft.WIN_KEY:case Ft.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(re){if(re>=Ft.ZERO&&re<=Ft.NINE||re>=Ft.NUM_ZERO&&re<=Ft.NUM_MULTIPLY||re>=Ft.A&&re<=Ft.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&re===0)return!0;switch(re){case Ft.SPACE:case Ft.QUESTION_MARK:case Ft.NUM_PLUS:case Ft.NUM_MINUS:case Ft.NUM_PERIOD:case Ft.NUM_DIVISION:case Ft.SEMICOLON:case Ft.DASH:case Ft.EQUALS:case Ft.COMMA:case Ft.PERIOD:case Ft.SLASH:case Ft.APOSTROPHE:case Ft.SINGLE_QUOTE:case Ft.OPEN_SQUARE_BRACKET:case Ft.BACKSLASH:case Ft.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Vo=Ft,Zi=function(ne,re,me,ce,ye,Fe){var Ne=Qe(),Ze=Ne.direction,_e=Ne.searchValue,Ke=Ne.toggleOpen,Ue=Ne.open,nt=Ze==="rtl",mt=ge.useMemo(function(){for(var St=-1,bt=re,Ht=[],ct=[],zt=ce.length,Ut=Lr(re,me),fn=function(kt){var Yt=bt.findIndex(function(Hn,Dn){return(Ut[Dn]?Po(Ut[Dn]):Hn[me.value])===ce[kt]});if(Yt===-1)return"break";St=Yt,Ht.push(St),ct.push(ce[kt]),bt=bt[St][me.children]},vn=0;vn<zt&&bt;vn+=1){var dn=fn(vn);if(dn==="break")break}for(var _t=re,gn=0;gn<Ht.length-1;gn+=1)_t=_t[Ht[gn]][me.children];return[ct,St,_t,Ut]},[ce,me,re]),tt=(0,De.Z)(mt,4),it=tt[0],xt=tt[1],ft=tt[2],pt=tt[3],Nt=function(bt){ye(bt)},It=function(bt){var Ht=ft.length,ct=xt;ct===-1&&bt<0&&(ct=Ht);for(var zt=0;zt<Ht;zt+=1){ct=(ct+bt+Ht)%Ht;var Ut=ft[ct];if(Ut&&!Ut.disabled){var fn=it.slice(0,-1).concat(pt[ct]?Po(pt[ct]):Ut[me.value]);Nt(fn);return}}},Mt=function(){if(it.length>1){var bt=it.slice(0,-1);Nt(bt)}else Ke(!1)},At=function(){var bt,Ht=((bt=ft[xt])===null||bt===void 0?void 0:bt[me.children])||[],ct=Ht.find(function(Ut){return!Ut.disabled});if(ct){var zt=[].concat((0,ae.Z)(it),[ct[me.value]]);Nt(zt)}};ge.useImperativeHandle(ne,function(){return{onKeyDown:function(bt){var Ht=bt.which;switch(Ht){case Vo.UP:case Vo.DOWN:{var ct=0;Ht===Vo.UP?ct=-1:Ht===Vo.DOWN&&(ct=1),ct!==0&&It(ct);break}case Vo.LEFT:{if(_e)break;nt?At():Mt();break}case Vo.RIGHT:{if(_e)break;nt?Mt():At();break}case Vo.BACKSPACE:{_e||Mt();break}case Vo.ENTER:{if(it.length){var zt=ft[xt],Ut=(zt==null?void 0:zt[La])||[];Ut.length?Fe(Ut.map(function(fn){return fn[me.value]}),Ut[Ut.length-1]):Fe(it,ft[xt])}break}case Vo.ESC:Ke(!1),Ue&&bt.stopPropagation()}},onKeyUp:function(){}}})},Hi=ge.forwardRef(function(ne,re){var me,ce,ye,Fe,Ne=Qe(),Ze=Ne.prefixCls,_e=Ne.multiple,Ke=Ne.searchValue,Ue=Ne.toggleOpen,nt=Ne.notFoundContent,mt=Ne.direction,tt=Ne.open,it=ge.useRef(),xt=mt==="rtl",ft=ge.useContext(Ca),pt=ft.options,Nt=ft.values,It=ft.halfValues,Mt=ft.fieldNames,At=ft.changeOnSelect,St=ft.onSelect,bt=ft.searchOptions,Ht=ft.dropdownPrefixCls,ct=ft.loadData,zt=ft.expandTrigger,Ut=Ht||Ze,fn=ge.useState([]),vn=(0,De.Z)(fn,2),dn=vn[0],_t=vn[1],gn=function(bn){if(!(!ct||Ke)){var En=$o(bn,pt,Mt),zn=En.map(function(fa){var kn=fa.option;return kn}),Nn=zn[zn.length-1];if(Nn&&!dr(Nn,Mt)){var Zn=Po(bn);_t(function(fa){return[].concat((0,ae.Z)(fa),[Zn])}),ct(zn)}}};ge.useEffect(function(){dn.length&&dn.forEach(function(xn){var bn=oi(xn),En=$o(bn,pt,Mt,!0).map(function(Nn){var Zn=Nn.option;return Zn}),zn=En[En.length-1];(!zn||zn[Mt.children]||dr(zn,Mt))&&_t(function(Nn){return Nn.filter(function(Zn){return Zn!==xn})})})},[pt,dn,Mt]);var Zt=ge.useMemo(function(){return new Set(Lo(Nt))},[Nt]),kt=ge.useMemo(function(){return new Set(Lo(It))},[It]),Yt=_i(),Hn=(0,De.Z)(Yt,2),Dn=Hn[0],ea=Hn[1],Xn=function(bn){ea(bn),gn(bn)},ln=function(bn){var En=bn.disabled,zn=dr(bn,Mt);return!En&&(zn||At||_e)},On=function(bn,En){var zn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;St(bn),!_e&&(En||At&&(zt==="hover"||zn))&&Ue(!1)},In=ge.useMemo(function(){return Ke?bt:pt},[Ke,bt,pt]),Kt=ge.useMemo(function(){for(var xn=[{options:In}],bn=In,En=Lr(bn,Mt),zn=function(){var kn=Dn[Nn],Ba=bn.find(function(Ta,Wn){return(En[Wn]?Po(En[Wn]):Ta[Mt.value])===kn}),xa=Ba==null?void 0:Ba[Mt.children];if(!(xa!=null&&xa.length))return"break";bn=xa,xn.push({options:xa})},Nn=0;Nn<Dn.length;Nn+=1){var Zn=zn();if(Zn==="break")break}return xn},[In,Dn,Mt]),gt=function(bn,En){ln(En)&&On(bn,dr(En,Mt),!0)};Zi(re,In,Mt,Dn,Xn,gt),ge.useEffect(function(){for(var xn=0;xn<Dn.length;xn+=1){var bn,En=Dn.slice(0,xn+1),zn=Po(En),Nn=(bn=it.current)===null||bn===void 0?void 0:bn.querySelector('li[data-path-key="'.concat(zn.replace(/\\{0,2}"/g,'\\"'),'"]'));Nn&&ri(Nn)}},[Dn]);var jt=!((me=Kt[0])!==null&&me!==void 0&&(ce=me.options)!==null&&ce!==void 0&&ce.length),yn=[(ye={},(0,Me.Z)(ye,Mt.value,"__EMPTY__"),(0,Me.Z)(ye,wi,nt),(0,Me.Z)(ye,"disabled",!0),ye)],Ln=(0,Be.Z)((0,Be.Z)({},ne),{},{multiple:!jt&&_e,onSelect:On,onActive:Xn,onToggleOpen:Ue,checkedSet:Zt,halfCheckedSet:kt,loadingKeys:dn,isSelectable:ln}),Tn=jt?[{options:yn}]:Kt,Bn=Tn.map(function(xn,bn){var En=Dn.slice(0,bn),zn=Dn[bn];return ge.createElement(ki,(0,$e.Z)({key:bn},Ln,{searchValue:Ke,prefixCls:Ut,options:xn.options,prevValuePath:En,activeValue:zn}))});return ge.createElement(Gi,{open:tt},ge.createElement("div",{className:Se()("".concat(Ut,"-menus"),(Fe={},(0,Me.Z)(Fe,"".concat(Ut,"-menu-empty"),jt),(0,Me.Z)(Fe,"".concat(Ut,"-rtl"),xt),Fe)),ref:it},Bn))}),Ki=Hi;function fu(ne){var re=ne.onPopupVisibleChange,me=ne.popupVisible,ce=ne.popupClassName,ye=ne.popupPlacement;warning(!re,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(me===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(ce===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(ye===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function vu(ne,re){if(ne){var me=function ce(ye){for(var Fe=0;Fe<ye.length;Fe++){var Ne=ye[Fe];if(Ne[re==null?void 0:re.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(Ne[re==null?void 0:re.children])&&ce(Ne[re==null?void 0:re.children]))return!0}};me(ne)}}var Vr=null,Gr=["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 Wi(ne){return Array.isArray(ne)&&Array.isArray(ne[0])}function Fi(ne){return ne?Wi(ne)?ne:(ne.length===0?[]:[ne]).map(function(re){return Array.isArray(re)?re:[re]}):[]}var Pi=ge.forwardRef(function(ne,re){var me=ne.id,ce=ne.prefixCls,ye=ce===void 0?"rc-cascader":ce,Fe=ne.fieldNames,Ne=ne.defaultValue,Ze=ne.value,_e=ne.changeOnSelect,Ke=ne.onChange,Ue=ne.displayRender,nt=ne.checkable,mt=ne.autoClearSearchValue,tt=mt===void 0?!0:mt,it=ne.searchValue,xt=ne.onSearch,ft=ne.showSearch,pt=ne.expandTrigger,Nt=ne.options,It=ne.dropdownPrefixCls,Mt=ne.loadData,At=ne.popupVisible,St=ne.open,bt=ne.popupClassName,Ht=ne.dropdownClassName,ct=ne.dropdownMenuColumnStyle,zt=ne.popupPlacement,Ut=ne.placement,fn=ne.onDropdownVisibleChange,vn=ne.onPopupVisibleChange,dn=ne.expandIcon,_t=dn===void 0?">":dn,gn=ne.loadingIcon,Zt=ne.children,kt=ne.dropdownMatchSelectWidth,Yt=kt===void 0?!1:kt,Hn=ne.showCheckedStrategy,Dn=Hn===void 0?gr:Hn,ea=(0,we.Z)(ne,Gr),Xn=ho(me),ln=!!nt,On=ba(Ne,{value:Ze,postState:Fi}),In=(0,De.Z)(On,2),Kt=In[0],gt=In[1],jt=ge.useMemo(function(){return $a(Fe)},[JSON.stringify(Fe)]),yn=ge.useMemo(function(){return Nt||[]},[Nt]),Ln=Rr(yn,jt),Tn=ge.useCallback(function(la){var Qn=Ln();return la.map(function(va){var Ra=Qn[va].nodes;return Ra.map(function(Ia){return Ia[jt.value]})})},[Ln,jt]),Bn=ba("",{value:it,postState:function(Qn){return Qn||""}}),xn=(0,De.Z)(Bn,2),bn=xn[0],En=xn[1],zn=function(Qn,va){En(Qn),va.source!=="blur"&&xt&&xt(Qn)},Nn=$i(ft),Zn=(0,De.Z)(Nn,2),fa=Zn[0],kn=Zn[1],Ba=co(bn,yn,jt,It||ye,kn,_e),xa=ui(yn,jt),Ta=ge.useMemo(function(){var la=xa(Kt),Qn=(0,De.Z)(la,2),va=Qn[0],Ra=Qn[1];if(!ln||!Kt.length)return[va,[],Ra];var Ia=Lo(va),ao=Ln(),Sn=(0,Wt.S)(Ia,!0,ao),Ct=Sn.checkedKeys,Xt=Sn.halfCheckedKeys;return[Tn(Ct),Tn(Xt),Ra]},[ln,Kt,Ln,Tn,xa]),Wn=(0,De.Z)(Ta,3),Yn=Wn[0],Na=Wn[1],ua=Wn[2],ta=ge.useMemo(function(){var la=Lo(Yn),Qn=$r(la,Ln,Dn);return[].concat((0,ae.Z)(ua),(0,ae.Z)(Tn(Qn)))},[Yn,Ln,Tn,ua,Dn]),Ma=po(ta,yn,jt,ln,Ue),Aa=jn(function(la){if(gt(la),Ke){var Qn=Fi(la),va=Qn.map(function(ao){return $o(ao,yn,jt).map(function(Sn){return Sn.option})}),Ra=ln?Qn:Qn[0],Ia=ln?va:va[0];Ke(Ra,Ia)}}),Ka=jn(function(la){if((!ln||tt)&&En(""),!ln)Aa(la);else{var Qn=Po(la),va=Lo(Yn),Ra=Lo(Na),Ia=va.includes(Qn),ao=ua.some(function(ha){return Po(ha)===Qn}),Sn=Yn,Ct=ua;if(ao&&!Ia)Ct=ua.filter(function(ha){return Po(ha)!==Qn});else{var Xt=Ia?va.filter(function(ha){return ha!==Qn}):[].concat((0,ae.Z)(va),[Qn]),Jt=Ln(),hn;if(Ia){var da=(0,Wt.S)(Xt,{checked:!1,halfCheckedKeys:Ra},Jt);hn=da.checkedKeys}else{var na=(0,Wt.S)(Xt,!0,Jt);hn=na.checkedKeys}var bo=$r(hn,Ln,Dn);Sn=Tn(bo)}Aa([].concat((0,ae.Z)(Ct),(0,ae.Z)(Sn)))}}),ga=function(Qn,va){if(va.type==="clear"){Aa([]);return}var Ra=va.values[0],Ia=Ra.valueCells;Ka(Ia)},Kn=St!==void 0?St:At,Wa=Ht||bt,Oa=Ut||zt,wo=function(Qn){fn==null||fn(Qn),vn==null||vn(Qn)},Va=ge.useMemo(function(){return{options:yn,fieldNames:jt,values:Yn,halfValues:Na,changeOnSelect:_e,onSelect:Ka,checkable:nt,searchOptions:Ba,dropdownPrefixCls:It,loadData:Mt,expandTrigger:pt,expandIcon:_t,loadingIcon:gn,dropdownMenuColumnStyle:ct}},[yn,jt,Yn,Na,_e,Ka,nt,Ba,It,Mt,pt,_t,gn,ct]),Fo=!(bn?Ba:yn).length,Ua=bn&&kn.matchInputWidth||Fo?{}:{minWidth:"auto"};return ge.createElement(Ca.Provider,{value:Va},ge.createElement(rn,(0,$e.Z)({},ea,{ref:re,id:Xn,prefixCls:ye,autoClearSearchValue:tt,dropdownMatchSelectWidth:Yt,dropdownStyle:Ua,displayValues:Ma,onDisplayValuesChange:ga,mode:ln?"multiple":void 0,searchValue:bn,onSearch:zn,showSearch:fa,OptionList:Ki,emptyOptions:Fo,open:Kn,dropdownClassName:Wa,placement:Oa,onDropdownVisibleChange:wo,getRawInputElement:function(){return Zt}})))});Pi.SHOW_PARENT=gr,Pi.SHOW_CHILD=lr;var Vi=Pi,Di=Vi,Ui=ie(10366),Bi=ie(33603),ji=ie(8745),xi=ie(9708),Xi=ie(53124),Yi=ie(88258),Qi=ie(98866),Ji=ie(98675),qi=ie(65223),eu=ie(87244),tu=ie(13458),nu=ie(78642),Su=ie(46163),pi=ie(4173),au=ie(63185),ou=ie(14747),ru=ie(80110),iu=ie(67968);const le=ne=>{const{prefixCls:re,componentCls:me,antCls:ce}=ne,ye=`${me}-menu-item`,Fe=`
|
|
&${ye}-expand ${ye}-expand-icon,
|
|
${ye}-loading-icon
|
|
`;return[{[me]:{width:ne.controlWidth}},{[`${me}-dropdown`]:[(0,au.C2)(`${re}-checkbox`,ne),{[`&${ce}-select-dropdown`]:{padding:0}},{[me]:{"&-checkbox":{top:0,marginInlineEnd:ne.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${me}-menu-empty`]:{[`${me}-menu`]:{width:"100%",height:"auto",[ye]:{color:ne.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:ne.controlItemWidth,height:ne.dropdownHeight,margin:0,padding:ne.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${ne.lineWidth}px ${ne.lineType} ${ne.colorSplit}`},"&-item":Object.assign(Object.assign({},ou.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:ne.optionPadding,lineHeight:ne.lineHeight,cursor:"pointer",transition:`all ${ne.motionDurationMid}`,borderRadius:ne.borderRadiusSM,"&:hover":{background:ne.controlItemBgHover},"&-disabled":{color:ne.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Fe]:{color:ne.colorTextDisabled}},[`&-active:not(${ye}-disabled)`]:{"&, &:hover":{fontWeight:ne.optionSelectedFontWeight,backgroundColor:ne.optionSelectedBg}},"&-content":{flex:"auto"},[Fe]:{marginInlineStart:ne.paddingXXS,color:ne.colorTextDescription,fontSize:ne.fontSizeIcon},"&-keyword":{color:ne.colorHighlight}})}}}]},{[`${me}-dropdown-rtl`]:{direction:"rtl"}},(0,ru.c)(ne)]};var fe=(0,iu.Z)("Cascader",ne=>[le(ne)],ne=>{const re=Math.round((ne.controlHeight-ne.fontSize*ne.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:ne.controlItemBgActive,optionSelectedFontWeight:ne.fontWeightStrong,optionPadding:`${re}px ${ne.paddingSM}px`,menuPadding:ne.paddingXXS}}),ve=function(ne,re){var me={};for(var ce in ne)Object.prototype.hasOwnProperty.call(ne,ce)&&re.indexOf(ce)<0&&(me[ce]=ne[ce]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,ce=Object.getOwnPropertySymbols(ne);ye<ce.length;ye++)re.indexOf(ce[ye])<0&&Object.prototype.propertyIsEnumerable.call(ne,ce[ye])&&(me[ce[ye]]=ne[ce[ye]]);return me};const{SHOW_CHILD:Ce,SHOW_PARENT:Ge}=Di;function Je(ne,re,me){const ce=ne.toLowerCase().split(re).reduce((Ne,Ze,_e)=>_e===0?[Ze]:[].concat((0,ae.Z)(Ne),[re,Ze]),[]),ye=[];let Fe=0;return ce.forEach((Ne,Ze)=>{const _e=Fe+Ne.length;let Ke=ne.slice(Fe,_e);Fe=_e,Ze%2===1&&(Ke=ge.createElement("span",{className:`${me}-menu-item-keyword`,key:`separator-${Ze}`},Ke)),ye.push(Ke)}),ye}const et=(ne,re,me,ce)=>{const ye=[],Fe=ne.toLowerCase();return re.forEach((Ne,Ze)=>{Ze!==0&&ye.push(" / ");let _e=Ne[ce.label];const Ke=typeof _e;(Ke==="string"||Ke==="number")&&(_e=Je(String(_e),Fe,me)),ye.push(_e)}),ye},Dt=ge.forwardRef((ne,re)=>{const{prefixCls:me,size:ce,disabled:ye,className:Fe,rootClassName:Ne,multiple:Ze,bordered:_e=!0,transitionName:Ke,choiceTransitionName:Ue="",popupClassName:nt,dropdownClassName:mt,expandIcon:tt,placement:it,showSearch:xt,allowClear:ft=!0,notFoundContent:pt,direction:Nt,getPopupContainer:It,status:Mt,showArrow:At,builtinPlacements:St,style:bt}=ne,Ht=ve(ne,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),ct=(0,Ui.Z)(Ht,["suffixIcon"]),{getPopupContainer:zt,getPrefixCls:Ut,renderEmpty:fn,direction:vn,popupOverflow:dn,cascader:_t}=ge.useContext(Xi.E_),gn=Nt||vn,Zt=gn==="rtl",{status:kt,hasFeedback:Yt,isFormItemInput:Hn,feedbackIcon:Dn}=ge.useContext(qi.aM),ea=(0,xi.F)(kt,Mt),Xn=pt||(fn==null?void 0:fn("Cascader"))||ge.createElement(Yi.Z,{componentName:"Cascader"}),ln=Ut(),On=Ut("select",me),In=Ut("cascader",me),[Kt,gt]=(0,eu.Z)(On),[jt]=fe(In),{compactSize:yn,compactItemClassnames:Ln}=(0,pi.ri)(On,Nt),Tn=Se()(nt||mt,`${In}-dropdown`,{[`${In}-dropdown-rtl`]:gn==="rtl"},Ne,gt),Bn=ge.useMemo(()=>{if(!xt)return xt;let ua={render:et};return typeof xt=="object"&&(ua=Object.assign(Object.assign({},ua),xt)),ua},[xt]),xn=(0,Ji.Z)(ua=>{var ta;return(ta=ce!=null?ce:yn)!==null&&ta!==void 0?ta:ua}),bn=ge.useContext(Qi.Z),En=ye!=null?ye:bn;let zn=tt;tt||(zn=Zt?ge.createElement(at.Z,null):ge.createElement(Le.Z,null));const Nn=ge.createElement("span",{className:`${On}-menu-item-loading-icon`},ge.createElement(st.Z,{spin:!0})),Zn=ge.useMemo(()=>Ze?ge.createElement("span",{className:`${In}-checkbox-inner`}):!1,[Ze]),fa=(0,nu.Z)(ne.suffixIcon,At),{suffixIcon:kn,removeIcon:Ba,clearIcon:xa}=(0,Su.Z)(Object.assign(Object.assign({},ne),{hasFeedback:Yt,feedbackIcon:Dn,showSuffixIcon:fa,multiple:Ze,prefixCls:On,componentName:"Cascader"})),Ta=ge.useMemo(()=>it!==void 0?it:Zt?"bottomRight":"bottomLeft",[it,Zt]),Wn=(0,tu.Z)(St,dn),Yn=ft===!0?{clearIcon:xa}:ft,Na=ge.createElement(Di,Object.assign({prefixCls:On,className:Se()(!me&&In,{[`${On}-lg`]:xn==="large",[`${On}-sm`]:xn==="small",[`${On}-rtl`]:Zt,[`${On}-borderless`]:!_e,[`${On}-in-form-item`]:Hn},(0,xi.Z)(On,ea,Yt),Ln,_t==null?void 0:_t.className,Fe,Ne,gt),disabled:En,style:Object.assign(Object.assign({},_t==null?void 0:_t.style),bt)},ct,{builtinPlacements:Wn,direction:gn,placement:Ta,notFoundContent:Xn,allowClear:Yn,showSearch:Bn,expandIcon:zn,suffixIcon:kn,removeIcon:Ba,loadingIcon:Nn,checkable:Zn,dropdownClassName:Tn,dropdownPrefixCls:me||In,choiceTransitionName:(0,Bi.m)(ln,"",Ue),transitionName:(0,Bi.m)(ln,"slide-up",Ke),getPopupContainer:It||zt,ref:re}));return jt(Kt(Na))}),Vt=(0,ji.Z)(Dt);Dt.SHOW_PARENT=Ge,Dt.SHOW_CHILD=Ce,Dt._InternalPanelDoNotUseOrYouWillBeFired=Vt;var Ot=Dt},63185:function(je,yt,ie){"use strict";ie.d(yt,{C2:function(){return Le}});var ae=ie(14747),ge=ie(45503),at=ie(67968);const st=Ie=>{const{checkboxCls:Se}=Ie,$e=`${Se}-wrapper`;return[{[`${Se}-group`]:Object.assign(Object.assign({},(0,ae.Wf)(Ie)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ie.marginXS,[`> ${Ie.antCls}-row`]:{flex:1}}),[$e]:Object.assign(Object.assign({},(0,ae.Wf)(Ie)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${$e}`]:{marginInlineStart:0},[`&${$e}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Se]:Object.assign(Object.assign({},(0,ae.Wf)(Ie)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ie.borderRadiusSM,alignSelf:"center",[`${Se}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Se}-inner`]:Object.assign({},(0,ae.oN)(Ie))},[`${Se}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Ie.checkboxSize,height:Ie.checkboxSize,direction:"ltr",backgroundColor:Ie.colorBgContainer,border:`${Ie.lineWidth}px ${Ie.lineType} ${Ie.colorBorder}`,borderRadius:Ie.borderRadiusSM,borderCollapse:"separate",transition:`all ${Ie.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Ie.checkboxSize/14*5,height:Ie.checkboxSize/14*8,border:`${Ie.lineWidthBold}px solid ${Ie.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ie.motionDurationFast} ${Ie.motionEaseInBack}, opacity ${Ie.motionDurationFast}`}},"& + span":{paddingInlineStart:Ie.paddingXS,paddingInlineEnd:Ie.paddingXS}})},{[`
|
|
${$e}:not(${$e}-disabled),
|
|
${Se}:not(${Se}-disabled)
|
|
`]:{[`&:hover ${Se}-inner`]:{borderColor:Ie.colorPrimary}},[`${$e}:not(${$e}-disabled)`]:{[`&:hover ${Se}-checked:not(${Se}-disabled) ${Se}-inner`]:{backgroundColor:Ie.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Se}-checked:not(${Se}-disabled):after`]:{borderColor:Ie.colorPrimaryHover}}},{[`${Se}-checked`]:{[`${Se}-inner`]:{backgroundColor:Ie.colorPrimary,borderColor:Ie.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Ie.motionDurationMid} ${Ie.motionEaseOutBack} ${Ie.motionDurationFast}`}}},[`
|
|
${$e}-checked:not(${$e}-disabled),
|
|
${Se}-checked:not(${Se}-disabled)
|
|
`]:{[`&:hover ${Se}-inner`]:{backgroundColor:Ie.colorPrimaryHover,borderColor:"transparent"}}},{[Se]:{"&-indeterminate":{[`${Se}-inner`]:{backgroundColor:Ie.colorBgContainer,borderColor:Ie.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Ie.fontSizeLG/2,height:Ie.fontSizeLG/2,backgroundColor:Ie.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${$e}-disabled`]:{cursor:"not-allowed"},[`${Se}-disabled`]:{[`&, ${Se}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Se}-inner`]:{background:Ie.colorBgContainerDisabled,borderColor:Ie.colorBorder,"&:after":{borderColor:Ie.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ie.colorTextDisabled},[`&${Se}-indeterminate ${Se}-inner::after`]:{background:Ie.colorTextDisabled}}}]};function Le(Ie,Se){const $e=(0,ge.TS)(Se,{checkboxCls:`.${Ie}`,checkboxSize:Se.controlInteractiveSize});return[st($e)]}yt.ZP=(0,at.Z)("Checkbox",(Ie,Se)=>{let{prefixCls:$e}=Se;return[Le($e,Ie)]})},96074:function(je,yt,ie){"use strict";ie.d(yt,{Z:function(){return Be}});var ae=ie(94184),ge=ie.n(ae),at=ie(67294),st=ie(53124),Le=ie(14747),Ie=ie(67968),Se=ie(45503);const $e=Ae=>{const{componentCls:oe,sizePaddingEdgeHorizontal:b,colorSplit:a,lineWidth:E,textPaddingInline:y,orientationMargin:x,verticalMarginInline:z}=Ae;return{[oe]:Object.assign(Object.assign({},(0,Le.Wf)(Ae)),{borderBlockStart:`${E}px solid ${a}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:z,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${E}px solid ${a}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Ae.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${oe}-with-text`]:{display:"flex",alignItems:"center",margin:`${Ae.dividerHorizontalWithTextGutterMargin}px 0`,color:Ae.colorTextHeading,fontWeight:500,fontSize:Ae.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${a}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${E}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${oe}-with-text-left`]:{"&::before":{width:`${x*100}%`},"&::after":{width:`${100-x*100}%`}},[`&-horizontal${oe}-with-text-right`]:{"&::before":{width:`${100-x*100}%`},"&::after":{width:`${x*100}%`}},[`${oe}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:y},"&-dashed":{background:"none",borderColor:a,borderStyle:"dashed",borderWidth:`${E}px 0 0`},[`&-horizontal${oe}-with-text${oe}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${oe}-dashed`]:{borderInlineStartWidth:E,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${oe}-with-text`]:{color:Ae.colorText,fontWeight:"normal",fontSize:Ae.fontSize},[`&-horizontal${oe}-with-text-left${oe}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${oe}-inner-text`]:{paddingInlineStart:b}},[`&-horizontal${oe}-with-text-right${oe}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${oe}-inner-text`]:{paddingInlineEnd:b}}})}};var De=(0,Ie.Z)("Divider",Ae=>{const oe=(0,Se.TS)(Ae,{dividerHorizontalWithTextGutterMargin:Ae.margin,dividerHorizontalGutterMargin:Ae.marginLG,sizePaddingEdgeHorizontal:0});return[$e(oe)]},Ae=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Ae.marginXS})),we=function(Ae,oe){var b={};for(var a in Ae)Object.prototype.hasOwnProperty.call(Ae,a)&&oe.indexOf(a)<0&&(b[a]=Ae[a]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,a=Object.getOwnPropertySymbols(Ae);E<a.length;E++)oe.indexOf(a[E])<0&&Object.prototype.propertyIsEnumerable.call(Ae,a[E])&&(b[a[E]]=Ae[a[E]]);return b},Be=Ae=>{const{getPrefixCls:oe,direction:b,divider:a}=at.useContext(st.E_),{prefixCls:E,type:y="horizontal",orientation:x="center",orientationMargin:z,className:ee,rootClassName:te,children:ue,dashed:de,plain:se,style:Ee}=Ae,pe=we(Ae,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),he=oe("divider",E),[ke,rt]=De(he),We=x.length>0?`-${x}`:x,xe=!!ue,Pe=x==="left"&&z!=null,He=x==="right"&&z!=null,Ye=ge()(he,a==null?void 0:a.className,rt,`${he}-${y}`,{[`${he}-with-text`]:xe,[`${he}-with-text${We}`]:xe,[`${he}-dashed`]:!!de,[`${he}-plain`]:!!se,[`${he}-rtl`]:b==="rtl",[`${he}-no-default-orientation-margin-left`]:Pe,[`${he}-no-default-orientation-margin-right`]:He},ee,te),ot=at.useMemo(()=>typeof z=="number"?z:/^\d+$/.test(z)?Number(z):z,[z]),vt=Object.assign(Object.assign({},Pe&&{marginLeft:ot}),He&&{marginRight:ot});return ke(at.createElement("div",Object.assign({className:Ye,style:Object.assign(Object.assign({},a==null?void 0:a.style),Ee)},pe,{role:"separator"}),ue&&y!=="vertical"&&at.createElement("span",{className:`${he}-inner-text`,style:vt},ue)))}},56153:function(je,yt,ie){"use strict";ie.d(yt,{Z:function(){return iu}});var ae=ie(67294),ge=ie.t(ae,2),at=ie(91034),st=ie(94184),Le=ie.n(st),Ie=ie(87462),Se=ie(4942),$e=ie(97685),De=ie(45987),we=ie(1413),Me=ie(73935);function Be(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ae={};function oe(le,fe){}function b(le,fe){}function a(){Ae={}}function E(le,fe,ve){!fe&&!Ae[ve]&&(le(!1,ve),Ae[ve]=!0)}function y(le,fe){E(oe,le,fe)}function x(le,fe){E(b,le,fe)}var z=null,ee=ie(71002),te=ie(12060);function ue(le,fe,ve){var Ce=ae.useRef({});return(!("value"in Ce.current)||ve(Ce.current.condition,fe))&&(Ce.current.value=le(),Ce.current.condition=fe),Ce.current.value}function de(le,fe){typeof le=="function"?le(fe):(0,ee.Z)(le)==="object"&&le&&"current"in le&&(le.current=fe)}function se(){for(var le=arguments.length,fe=new Array(le),ve=0;ve<le;ve++)fe[ve]=arguments[ve];var Ce=fe.filter(function(Ge){return Ge});return Ce.length<=1?Ce[0]:function(Ge){fe.forEach(function(Je){de(Je,Ge)})}}function Ee(){for(var le=arguments.length,fe=new Array(le),ve=0;ve<le;ve++)fe[ve]=arguments[ve];return ue(function(){return se.apply(void 0,fe)},fe,function(Ce,Ge){return Ce.length===Ge.length&&Ce.every(function(Je,et){return Je===Ge[et]})})}function pe(le){var fe,ve,Ce=(0,te.isMemo)(le)?le.type.type:le.type;return!(typeof Ce=="function"&&!((fe=Ce.prototype)!==null&&fe!==void 0&&fe.render)||typeof le=="function"&&!((ve=le.prototype)!==null&&ve!==void 0&&ve.render))}var he=ae.createContext(null),ke=he,rt=ie(74902),We=Be()?ae.useLayoutEffect:ae.useEffect,xe=We,Pe=function(fe,ve){var Ce=React.useRef(!0);We(function(){if(!Ce.current)return fe()},ve),We(function(){return Ce.current=!1,function(){Ce.current=!0}},[])},He=[];function Ye(le,fe){var ve=ae.useState(function(){if(!Be())return null;var ye=document.createElement("div");return ye}),Ce=(0,$e.Z)(ve,1),Ge=Ce[0],Je=ae.useRef(!1),et=ae.useContext(ke),Dt=ae.useState(He),Vt=(0,$e.Z)(Dt,2),Ot=Vt[0],ne=Vt[1],re=et||(Je.current?void 0:function(ye){ne(function(Fe){var Ne=[ye].concat((0,rt.Z)(Fe));return Ne})});function me(){Ge.parentElement||document.body.appendChild(Ge),Je.current=!0}function ce(){var ye;(ye=Ge.parentElement)===null||ye===void 0||ye.removeChild(Ge),Je.current=!1}return xe(function(){return le?et?et(me):me():ce(),ce},[le]),xe(function(){Ot.length&&(Ot.forEach(function(ye){return ye()}),ne(He))},[Ot]),[Ge,re]}function ot(le,fe){if(!le)return!1;if(le.contains)return le.contains(fe);for(var ve=fe;ve;){if(ve===le)return!0;ve=ve.parentNode}return!1}var vt="data-rc-order",Qt="rc-util-key",Tt=new Map;function on(){var le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},fe=le.mark;return fe?fe.startsWith("data-")?fe:"data-".concat(fe):Qt}function An(le){if(le.attachTo)return le.attachTo;var fe=document.querySelector("head");return fe||document.body}function Ve(le){return le==="queue"?"prependQueue":le?"prepend":"append"}function Qe(le){return Array.from((Tt.get(le)||le).children).filter(function(fe){return fe.tagName==="STYLE"})}function ht(le){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Be())return null;var ve=fe.csp,Ce=fe.prepend,Ge=document.createElement("style");Ge.setAttribute(vt,Ve(Ce)),ve!=null&&ve.nonce&&(Ge.nonce=ve==null?void 0:ve.nonce),Ge.innerHTML=le;var Je=An(fe),et=Je.firstChild;if(Ce){if(Ce==="queue"){var Dt=Qe(Je).filter(function(Vt){return["prepend","prependQueue"].includes(Vt.getAttribute(vt))});if(Dt.length)return Je.insertBefore(Ge,Dt[Dt.length-1].nextSibling),Ge}Je.insertBefore(Ge,et)}else Je.appendChild(Ge);return Ge}function tn(le){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ve=An(fe);return Qe(ve).find(function(Ce){return Ce.getAttribute(on(fe))===le})}function dt(le){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ve=tn(le,fe);if(ve){var Ce=An(fe);Ce.removeChild(ve)}}function nn(le,fe){var ve=Tt.get(le);if(!ve||!ot(document,ve)){var Ce=ht("",fe),Ge=Ce.parentNode;Tt.set(le,Ge),le.removeChild(Ce)}}function be(){Tt.clear()}function Lt(le,fe){var ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ce=An(ve);nn(Ce,ve);var Ge=tn(fe,ve);if(Ge){var Je,et;if((Je=ve.csp)!==null&&Je!==void 0&&Je.nonce&&Ge.nonce!==((et=ve.csp)===null||et===void 0?void 0:et.nonce)){var Dt;Ge.nonce=(Dt=ve.csp)===null||Dt===void 0?void 0:Dt.nonce}return Ge.innerHTML!==le&&(Ge.innerHTML=le),Ge}var Vt=ht(le,ve);return Vt.setAttribute(on(ve),fe),Vt}var an;function Mn(le){if(typeof document=="undefined")return 0;if(le||an===void 0){var fe=document.createElement("div");fe.style.width="100%",fe.style.height="200px";var ve=document.createElement("div"),Ce=ve.style;Ce.position="absolute",Ce.top="0",Ce.left="0",Ce.pointerEvents="none",Ce.visibility="hidden",Ce.width="200px",Ce.height="150px",Ce.overflow="hidden",ve.appendChild(fe),document.body.appendChild(ve);var Ge=fe.offsetWidth;ve.style.overflow="scroll";var Je=fe.offsetWidth;Ge===Je&&(Je=ve.clientWidth),document.body.removeChild(ve),an=Ge-Je}return an}function Pt(le){var fe=le.match(/^(.*)px$/),ve=Number(fe==null?void 0:fe[1]);return Number.isNaN(ve)?Mn():ve}function qe(le){if(typeof document=="undefined"||!le||!(le instanceof Element))return{width:0,height:0};var fe=getComputedStyle(le,"::-webkit-scrollbar"),ve=fe.width,Ce=fe.height;return{width:Pt(ve),height:Pt(Ce)}}function Xe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Re="rc-util-locker-".concat(Date.now()),lt=0;function Et(le){var fe=!!le,ve=ae.useState(function(){return lt+=1,"".concat(Re,"_").concat(lt)}),Ce=(0,$e.Z)(ve,1),Ge=Ce[0];xe(function(){if(fe){var Je=qe(document.body).width,et=Xe();Lt(`
|
|
html body {
|
|
overflow-y: hidden;
|
|
`.concat(et?"width: calc(100% - ".concat(Je,"px);"):"",`
|
|
}`),Ge)}else dt(Ge);return function(){dt(Ge)}},[fe,Ge])}var $t=!1;function sn(le){return typeof le=="boolean"&&($t=le),$t}var pn=function(fe){return fe===!1?!1:!Be()||!fe?null:typeof fe=="string"?document.querySelector(fe):typeof fe=="function"?fe():fe},Cn=ae.forwardRef(function(le,fe){var ve=le.open,Ce=le.autoLock,Ge=le.getContainer,Je=le.debug,et=le.autoDestroy,Dt=et===void 0?!0:et,Vt=le.children,Ot=ae.useState(ve),ne=(0,$e.Z)(Ot,2),re=ne[0],me=ne[1],ce=re||ve;ae.useEffect(function(){(Dt||ve)&&me(ve)},[ve,Dt]);var ye=ae.useState(function(){return pn(Ge)}),Fe=(0,$e.Z)(ye,2),Ne=Fe[0],Ze=Fe[1];ae.useEffect(function(){var Nt=pn(Ge);Ze(Nt!=null?Nt:null)});var _e=Ye(ce&&!Ne,Je),Ke=(0,$e.Z)(_e,2),Ue=Ke[0],nt=Ke[1],mt=Ne!=null?Ne:Ue;Et(Ce&&ve&&Be()&&(mt===Ue||mt===document.body));var tt=null;if(Vt&&pe(Vt)&&fe){var it=Vt;tt=it.ref}var xt=Ee(tt,fe);if(!ce||!Be()||Ne===void 0)return null;var ft=mt===!1||sn(),pt=Vt;return fe&&(pt=ae.cloneElement(Vt,{ref:xt})),ae.createElement(ke.Provider,{value:nt},ft?pt:(0,Me.createPortal)(pt,mt))}),$n=Cn,wn=$n,Fn=ie(48555);function jn(le){return le instanceof HTMLElement||le instanceof SVGElement}function ya(le){return jn(le)?le:le instanceof React.Component?ReactDOM.findDOMNode(le):null}function Pa(le){var fe;return le==null||(fe=le.getRootNode)===null||fe===void 0?void 0:fe.call(le)}function ra(le){return Pa(le)instanceof ShadowRoot}function ca(le){return ra(le)?Pa(le):null}function aa(le){var fe=ae.useRef();fe.current=le;var ve=ae.useCallback(function(){for(var Ce,Ge=arguments.length,Je=new Array(Ge),et=0;et<Ge;et++)Je[et]=arguments[et];return(Ce=fe.current)===null||Ce===void 0?void 0:Ce.call.apply(Ce,[fe].concat(Je))},[]);return ve}function Fa(){var le=(0,we.Z)({},ge);return le.useId}var Da=0;function no(){}var za=Fa(),ka=za?function(fe){var ve=za();return fe||ve}:function(fe){var ve=ae.useState("ssr-id"),Ce=(0,$e.Z)(ve,2),Ge=Ce[0],Je=Ce[1];return ae.useEffect(function(){var et=Da;Da+=1,Je("rc_unique_".concat(et))},[]),fe||Ge};function Qa(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ma=Qa()?ae.useLayoutEffect:ae.useEffect,_a=function(fe,ve){var Ce=ae.useRef(!0);ma(function(){return fe(Ce.current)},ve),ma(function(){return Ce.current=!1,function(){Ce.current=!0}},[])},Bo=function(fe,ve){_a(function(Ce){if(!Ce)return fe()},ve)},Za=_a,fr=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var le=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(le)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(le==null?void 0:le.substr(0,4))},zo=ae.createContext(null),Qo=zo;function vr(le){return le?Array.isArray(le)?le:[le]:[]}function Ao(le,fe,ve,Ce){return ae.useMemo(function(){var Ge=vr(ve!=null?ve:fe),Je=vr(Ce!=null?Ce:fe),et=new Set(Ge),Dt=new Set(Je);return le&&(et.has("hover")&&(et.delete("hover"),et.add("click")),Dt.has("hover")&&(Dt.delete("hover"),Dt.add("click"))),[et,Dt]},[le,fe,ve,Ce])}var tr=function(le){if(!le)return!1;if(le instanceof Element){if(le.offsetParent)return!0;if(le.getBBox){var fe=le.getBBox(),ve=fe.width,Ce=fe.height;if(ve||Ce)return!0}if(le.getBoundingClientRect){var Ge=le.getBoundingClientRect(),Je=Ge.width,et=Ge.height;if(Je||et)return!0}}return!1};function Co(){var le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ve=arguments.length>2?arguments[2]:void 0;return ve?le[0]===fe[0]:le[0]===fe[0]&&le[1]===fe[1]}function Nr(le,fe,ve,Ce){for(var Ge=ve.points,Je=Object.keys(le),et=0;et<Je.length;et+=1){var Dt,Vt=Je[et];if(Co((Dt=le[Vt])===null||Dt===void 0?void 0:Dt.points,Ge,Ce))return"".concat(fe,"-placement-").concat(Vt)}return""}function ko(le,fe,ve,Ce){return fe||(ve?{motionName:"".concat(le,"-").concat(ve)}:Ce?{motionName:Ce}:null)}function _o(le){return le.ownerDocument.defaultView}function xo(le){for(var fe=[],ve=le==null?void 0:le.parentElement,Ce=["hidden","scroll","clip","auto"];ve;){var Ge=_o(ve).getComputedStyle(ve),Je=Ge.overflowX,et=Ge.overflowY,Dt=Ge.overflow;[Je,et,Dt].some(function(Vt){return Ce.includes(Vt)})&&fe.push(ve),ve=ve.parentElement}return fe}function nr(le){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(le)?fe:le}function ro(le){return nr(parseFloat(le),0)}function _r(le,fe){var ve=(0,we.Z)({},le);return(fe||[]).forEach(function(Ce){if(!(Ce instanceof HTMLBodyElement||Ce instanceof HTMLHtmlElement)){var Ge=_o(Ce).getComputedStyle(Ce),Je=Ge.overflow,et=Ge.overflowClipMargin,Dt=Ge.borderTopWidth,Vt=Ge.borderBottomWidth,Ot=Ge.borderLeftWidth,ne=Ge.borderRightWidth,re=Ce.getBoundingClientRect(),me=Ce.offsetHeight,ce=Ce.clientHeight,ye=Ce.offsetWidth,Fe=Ce.clientWidth,Ne=ro(Dt),Ze=ro(Vt),_e=ro(Ot),Ke=ro(ne),Ue=nr(Math.round(re.width/ye*1e3)/1e3),nt=nr(Math.round(re.height/me*1e3)/1e3),mt=(ye-Fe-_e-Ke)*Ue,tt=(me-ce-Ne-Ze)*nt,it=Ne*nt,xt=Ze*nt,ft=_e*Ue,pt=Ke*Ue,Nt=0,It=0;if(Je==="clip"){var Mt=ro(et);Nt=Mt*Ue,It=Mt*nt}var At=re.x+ft-Nt,St=re.y+it-It,bt=At+re.width+2*Nt-ft-pt-mt,Ht=St+re.height+2*It-it-xt-tt;ve.left=Math.max(ve.left,At),ve.top=Math.max(ve.top,St),ve.right=Math.min(ve.right,bt),ve.bottom=Math.min(ve.bottom,Ht)}}),ve}function Sr(le){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ve="".concat(fe),Ce=ve.match(/^(.*)\%$/);return Ce?le*(parseFloat(Ce[1])/100):parseFloat(ve)}function Qr(le,fe){var ve=fe||[],Ce=(0,$e.Z)(ve,2),Ge=Ce[0],Je=Ce[1];return[Sr(le.width,Ge),Sr(le.height,Je)]}function Te(){var le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[le[0],le[1]]}function ze(le,fe){var ve=fe[0],Ce=fe[1],Ge,Je;return ve==="t"?Je=le.y:ve==="b"?Je=le.y+le.height:Je=le.y+le.height/2,Ce==="l"?Ge=le.x:Ce==="r"?Ge=le.x+le.width:Ge=le.x+le.width/2,{x:Ge,y:Je}}function Oe(le,fe){var ve={t:"b",b:"t",l:"r",r:"l"};return le.map(function(Ce,Ge){return Ge===fe?ve[Ce]||"c":Ce}).join("")}function Rt(le,fe,ve,Ce,Ge,Je,et){var Dt=ae.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Ge[Ce]||{}}),Vt=(0,$e.Z)(Dt,2),Ot=Vt[0],ne=Vt[1],re=ae.useRef(0),me=ae.useMemo(function(){return fe?xo(fe):[]},[fe]),ce=ae.useRef({}),ye=function(){ce.current={}};le||ye();var Fe=aa(function(){if(fe&&ve&&le){let sa=function(Eo,Go){var vo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:jt,Yo=ct.x+Eo,Do=ct.y+Go,Yr=Yo+kt,uu=Do+Zt,gu=Math.max(Yo,vo.left),lu=Math.max(Do,vo.top),du=Math.min(Yr,vo.right),Pn=Math.min(uu,vo.bottom);return Math.max(0,(du-gu)*(Pn-lu))},Ga=function(){Sn=ct.y+Kn,Ct=Sn+Zt,Xt=ct.x+ga,Jt=Xt+kt};var _e,Ke,Ue=fe,nt=Ue.ownerDocument,mt=_o(Ue),tt=mt.getComputedStyle(Ue),it=tt.width,xt=tt.height,ft=tt.position,pt=Ue.style.left,Nt=Ue.style.top,It=Ue.style.right,Mt=Ue.style.bottom,At=(0,we.Z)((0,we.Z)({},Ge[Ce]),Je),St=nt.createElement("div");(_e=Ue.parentElement)===null||_e===void 0||_e.appendChild(St),St.style.left="".concat(Ue.offsetLeft,"px"),St.style.top="".concat(Ue.offsetTop,"px"),St.style.position=ft,St.style.height="".concat(Ue.offsetHeight,"px"),St.style.width="".concat(Ue.offsetWidth,"px"),Ue.style.left="0",Ue.style.top="0",Ue.style.right="auto",Ue.style.bottom="auto";var bt;if(Array.isArray(ve))bt={x:ve[0],y:ve[1],width:0,height:0};else{var Ht=ve.getBoundingClientRect();bt={x:Ht.x,y:Ht.y,width:Ht.width,height:Ht.height}}var ct=Ue.getBoundingClientRect(),zt=nt.documentElement,Ut=zt.clientWidth,fn=zt.clientHeight,vn=zt.scrollWidth,dn=zt.scrollHeight,_t=zt.scrollTop,gn=zt.scrollLeft,Zt=ct.height,kt=ct.width,Yt=bt.height,Hn=bt.width,Dn={left:0,top:0,right:Ut,bottom:fn},ea={left:-gn,top:-_t,right:vn-gn,bottom:dn-_t},Xn=At.htmlRegion,ln="visible",On="visibleFirst";Xn!=="scroll"&&Xn!==On&&(Xn=ln);var In=Xn===On,Kt=_r(ea,me),gt=_r(Dn,me),jt=Xn===ln?gt:Kt,yn=In?gt:jt;Ue.style.left="auto",Ue.style.top="auto",Ue.style.right="0",Ue.style.bottom="0";var Ln=Ue.getBoundingClientRect();Ue.style.left=pt,Ue.style.top=Nt,Ue.style.right=It,Ue.style.bottom=Mt,(Ke=Ue.parentElement)===null||Ke===void 0||Ke.removeChild(St);var Tn=nr(Math.round(kt/parseFloat(it)*1e3)/1e3),Bn=nr(Math.round(Zt/parseFloat(xt)*1e3)/1e3);if(Tn===0||Bn===0||jn(ve)&&!tr(ve))return;var xn=At.offset,bn=At.targetOffset,En=Qr(ct,xn),zn=(0,$e.Z)(En,2),Nn=zn[0],Zn=zn[1],fa=Qr(bt,bn),kn=(0,$e.Z)(fa,2),Ba=kn[0],xa=kn[1];bt.x-=Ba,bt.y-=xa;var Ta=At.points||[],Wn=(0,$e.Z)(Ta,2),Yn=Wn[0],Na=Wn[1],ua=Te(Na),ta=Te(Yn),Ma=ze(bt,ua),Aa=ze(ct,ta),Ka=(0,we.Z)({},At),ga=Ma.x-Aa.x+Nn,Kn=Ma.y-Aa.y+Zn,Wa=sa(ga,Kn),Oa=sa(ga,Kn,gt),wo=ze(bt,["t","l"]),Va=ze(ct,["t","l"]),Fo=ze(bt,["b","r"]),Ua=ze(ct,["b","r"]),la=At.overflow||{},Qn=la.adjustX,va=la.adjustY,Ra=la.shiftX,Ia=la.shiftY,ao=function(Go){return typeof Go=="boolean"?Go:Go>=0},Sn,Ct,Xt,Jt;Ga();var hn=ao(va),da=ta[0]===ua[0];if(hn&&ta[0]==="t"&&(Ct>yn.bottom||ce.current.bt)){var na=Kn;da?na-=Zt-Yt:na=wo.y-Ua.y-Zn;var bo=sa(ga,na),ha=sa(ga,na,gt);bo>Wa||bo===Wa&&(!In||ha>=Oa)?(ce.current.bt=!0,Kn=na,Zn=-Zn,Ka.points=[Oe(ta,0),Oe(ua,0)]):ce.current.bt=!1}if(hn&&ta[0]==="b"&&(Sn<yn.top||ce.current.tb)){var yo=Kn;da?yo+=Zt-Yt:yo=Fo.y-Va.y-Zn;var ja=sa(ga,yo),Uo=sa(ga,yo,gt);ja>Wa||ja===Wa&&(!In||Uo>=Oa)?(ce.current.tb=!0,Kn=yo,Zn=-Zn,Ka.points=[Oe(ta,0),Oe(ua,0)]):ce.current.tb=!1}var wr=ao(Qn),zr=ta[1]===ua[1];if(wr&&ta[1]==="l"&&(Jt>yn.right||ce.current.rl)){var sr=ga;zr?sr-=kt-Hn:sr=wo.x-Ua.x-Nn;var jo=sa(sr,Kn),Ro=sa(sr,Kn,gt);jo>Wa||jo===Wa&&(!In||Ro>=Oa)?(ce.current.rl=!0,ga=sr,Nn=-Nn,Ka.points=[Oe(ta,1),Oe(ua,1)]):ce.current.rl=!1}if(wr&&ta[1]==="r"&&(Xt<yn.left||ce.current.lr)){var Fr=ga;zr?Fr+=kt-Hn:Fr=Fo.x-Va.x-Nn;var Mo=sa(Fr,Kn),Ur=sa(Fr,Kn,gt);Mo>Wa||Mo===Wa&&(!In||Ur>=Oa)?(ce.current.lr=!0,ga=Fr,Nn=-Nn,Ka.points=[Oe(ta,1),Oe(ua,1)]):ce.current.lr=!1}Ga();var Dr=Ra===!0?0:Ra;typeof Dr=="number"&&(Xt<gt.left&&(ga-=Xt-gt.left-Nn,bt.x+Hn<gt.left+Dr&&(ga+=bt.x-gt.left+Hn-Dr)),Jt>gt.right&&(ga-=Jt-gt.right-Nn,bt.x>gt.right-Dr&&(ga+=bt.x-gt.right+Dr)));var cr=Ia===!0?0:Ia;typeof cr=="number"&&(Sn<gt.top&&(Kn-=Sn-gt.top-Zn,bt.y+Yt<gt.top+cr&&(Kn+=bt.y-gt.top+Yt-cr)),Ct>gt.bottom&&(Kn-=Ct-gt.bottom-Zn,bt.y>gt.bottom-cr&&(Kn+=bt.y-gt.bottom+cr)));var mr=ct.x+ga,Br=mr+kt,xr=ct.y+Kn,kr=xr+Zt,Xo=bt.x,gi=Xo+Hn,li=bt.y,di=li+Yt,si=Math.max(mr,Xo),bi=Math.min(Br,gi),yi=(si+bi)/2,Ei=yi-mr,jr=Math.max(xr,li),Xr=Math.min(kr,di),Vn=(jr+Xr)/2,Gn=Vn-xr;et==null||et(fe,Ka);var oo=Ln.right-ct.x-(ga+ct.width),mo=Ln.bottom-ct.y-(Kn+ct.height);ne({ready:!0,offsetX:ga/Tn,offsetY:Kn/Bn,offsetR:oo/Tn,offsetB:mo/Bn,arrowX:Ei/Tn,arrowY:Gn/Bn,scaleX:Tn,scaleY:Bn,align:Ka})}}),Ne=function(){re.current+=1;var Ke=re.current;Promise.resolve().then(function(){re.current===Ke&&Fe()})},Ze=function(){ne(function(Ke){return(0,we.Z)((0,we.Z)({},Ke),{},{ready:!1})})};return Za(Ze,[Ce]),Za(function(){le||Ze()},[le]),[Ot.ready,Ot.offsetX,Ot.offsetY,Ot.offsetR,Ot.offsetB,Ot.arrowX,Ot.arrowY,Ot.scaleX,Ot.scaleY,Ot.align,Ne]}function cn(le,fe,ve,Ce,Ge){Za(function(){if(le&&fe&&ve){let re=function(){Ce(),Ge()};var Je=fe,et=ve,Dt=xo(Je),Vt=xo(et),Ot=_o(et),ne=new Set([Ot].concat((0,rt.Z)(Dt),(0,rt.Z)(Vt)));return ne.forEach(function(me){me.addEventListener("scroll",re,{passive:!0})}),Ot.addEventListener("resize",re,{passive:!0}),Ce(),function(){ne.forEach(function(me){me.removeEventListener("scroll",re),Ot.removeEventListener("resize",re)})}}},[le,fe,ve])}function mn(le){var fe=React.useRef(!1),ve=React.useState(le),Ce=_slicedToArray(ve,2),Ge=Ce[0],Je=Ce[1];React.useEffect(function(){return fe.current=!1,function(){fe.current=!0}},[]);function et(Dt,Vt){Vt&&fe.current||Je(Dt)}return[Ge,et]}function oa(le){return le!==void 0}function _n(le,fe){var ve=fe||{},Ce=ve.defaultValue,Ge=ve.value,Je=ve.onChange,et=ve.postState,Dt=useState(function(){return oa(Ge)?Ge:oa(Ce)?typeof Ce=="function"?Ce():Ce:typeof le=="function"?le():le}),Vt=_slicedToArray(Dt,2),Ot=Vt[0],ne=Vt[1],re=Ge!==void 0?Ge:Ot,me=et?et(re):re,ce=useEvent(Je),ye=useState([re]),Fe=_slicedToArray(ye,2),Ne=Fe[0],Ze=Fe[1];useLayoutUpdateEffect(function(){var Ke=Ne[0];Ot!==Ke&&ce(Ot,Ke)},[Ne]),useLayoutUpdateEffect(function(){oa(Ge)||ne(Ge)},[Ge]);var _e=useEvent(function(Ke,Ue){ne(Ke,Ue),Ze([re],Ue)});return[me,_e]}var Jn=ie(95845);function pa(le,fe,ve){var Ce=ae.useRef({});return(!("value"in Ce.current)||ve(Ce.current.condition,fe))&&(Ce.current.value=le(),Ce.current.condition=fe),Ce.current.value}function So(le,fe){typeof le=="function"?le(fe):(0,ee.Z)(le)==="object"&&le&&"current"in le&&(le.current=fe)}function wt(){for(var le=arguments.length,fe=new Array(le),ve=0;ve<le;ve++)fe[ve]=arguments[ve];var Ce=fe.filter(function(Ge){return Ge});return Ce.length<=1?Ce[0]:function(Ge){fe.forEach(function(Je){So(Je,Ge)})}}function ia(){for(var le=arguments.length,fe=new Array(le),ve=0;ve<le;ve++)fe[ve]=arguments[ve];return pa(function(){return wt.apply(void 0,fe)},fe,function(Ce,Ge){return Ce.length!==Ge.length||Ce.every(function(Je,et){return Je!==Ge[et]})})}function uo(le){var fe,ve,Ce=(0,Jn.isMemo)(le)?le.type.type:le.type;return!(typeof Ce=="function"&&!((fe=Ce.prototype)!==null&&fe!==void 0&&fe.render)||typeof le=="function"&&!((ve=le.prototype)!==null&&ve!==void 0&&ve.render))}function Oo(le){return!isValidElement(le)||isFragment(le)?!1:uo(le)}function Ha(le,fe,ve,Ce){if(!fe.length)return ve;var Ge=_toArray(fe),Je=Ge[0],et=Ge.slice(1),Dt;return!le&&typeof Je=="number"?Dt=[]:Array.isArray(le)?Dt=_toConsumableArray(le):Dt=_objectSpread({},le),Ce&&ve===void 0&&et.length===1?delete Dt[Je][et[0]]:Dt[Je]=Ha(Dt[Je],et,ve,Ce),Dt}function wa(le,fe,ve){var Ce=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return fe.length&&Ce&&ve===void 0&&!get(le,fe.slice(0,-1))?le:Ha(le,fe,ve,Ce)}function ar(le){return _typeof(le)==="object"&&le!==null&&Object.getPrototypeOf(le)===Object.prototype}function Jo(le){return Array.isArray(le)?[]:{}}var or=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function hr(){for(var le=arguments.length,fe=new Array(le),ve=0;ve<le;ve++)fe[ve]=arguments[ve];var Ce=Jo(fe[0]);return fe.forEach(function(Ge){function Je(et,Dt){var Vt=new Set(Dt),Ot=get(Ge,et),ne=Array.isArray(Ot);if(ne||ar(Ot)){if(!Vt.has(Ot)){Vt.add(Ot);var re=get(Ce,et);ne?Ce=wa(Ce,et,[]):(!re||_typeof(re)!=="object")&&(Ce=wa(Ce,et,Jo(Ot))),or(Ot).forEach(function(me){Je([].concat(_toConsumableArray(et),[me]),Vt)})}}else Ce=wa(Ce,et,Ot)}Je([])}),Ce}var Zo={},lo=[],rr=function(fe){lo.push(fe)};function Ho(le,fe){if(0)var ve}function Mr(le,fe){if(0)var ve}function ut(){Zo={}}function Zr(le,fe,ve){!fe&&!Zo[ve]&&(le(!1,ve),Zo[ve]=!0)}function Ko(le,fe){Zr(Ho,le,fe)}function Pr(le,fe){Zr(Mr,le,fe)}Ko.preMessage=rr,Ko.resetWarned=ut,Ko.noteOnce=Pr;var No=null,Bt=function(fe){return+setTimeout(fe,16)},rn=function(fe){return clearTimeout(fe)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Bt=function(fe){return window.requestAnimationFrame(fe)},rn=function(fe){return window.cancelAnimationFrame(fe)});var Rn=0,en=new Map;function Sa(le){en.delete(le)}var Ea=function(fe){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Rn+=1;var Ce=Rn;function Ge(Je){if(Je===0)Sa(Ce),fe();else{var et=Bt(function(){Ge(Je-1)});en.set(Ce,et)}}return Ge(ve),Ce};Ea.cancel=function(le){var fe=en.get(le);return Sa(fe),rn(fe)};var Ja=Ea;function so(le,fe,ve,Ce,Ge,Je,et,Dt){var Vt=ae.useRef(le),Ot=ae.useRef(!1);Vt.current!==le&&(Ot.current=!0,Vt.current=le),ae.useEffect(function(){var ne=Ja(function(){Ot.current=!1});return function(){Ja.cancel(ne)}},[le]),ae.useEffect(function(){if(fe&&Ce&&(!Ge||Je)){var ne=function(){var ft=!1,pt=function(Mt){var At=Mt.target;ft=et(At)},Nt=function(Mt){var At=Mt.target;!Ot.current&&Vt.current&&!ft&&!et(At)&&Dt(!1)};return[pt,Nt]},re=ne(),me=(0,$e.Z)(re,2),ce=me[0],ye=me[1],Fe=ne(),Ne=(0,$e.Z)(Fe,2),Ze=Ne[0],_e=Ne[1],Ke=_o(Ce);Ke.addEventListener("mousedown",ce,!0),Ke.addEventListener("click",ye,!0),Ke.addEventListener("contextmenu",ye,!0);var Ue=ca(ve);if(Ue&&(Ue.addEventListener("mousedown",Ze,!0),Ue.addEventListener("click",_e,!0),Ue.addEventListener("contextmenu",_e,!0)),0)var nt,mt,tt,it;return function(){Ke.removeEventListener("mousedown",ce,!0),Ke.removeEventListener("click",ye,!0),Ke.removeEventListener("contextmenu",ye,!0),Ue&&(Ue.removeEventListener("mousedown",Ze,!0),Ue.removeEventListener("click",_e,!0),Ue.removeEventListener("contextmenu",_e,!0))}}},[fe,ve,Ce,Ge,Je])}function ho(le){return le instanceof HTMLElement||le instanceof SVGElement}function Ar(le){return ho(le)?le:le instanceof ae.Component?Me.findDOMNode(le):null}function qo(le,fe){var ve={};return ve[le.toLowerCase()]=fe.toLowerCase(),ve["Webkit".concat(le)]="webkit".concat(fe),ve["Moz".concat(le)]="moz".concat(fe),ve["ms".concat(le)]="MS".concat(fe),ve["O".concat(le)]="o".concat(fe.toLowerCase()),ve}function ci(le,fe){var ve={animationend:qo("Animation","AnimationEnd"),transitionend:qo("Transition","TransitionEnd")};return le&&("AnimationEvent"in fe||delete ve.animationend.animation,"TransitionEvent"in fe||delete ve.transitionend.transition),ve}var mi=ci(Be(),typeof window!="undefined"?window:{}),Or={};if(Be()){var Jr=document.createElement("div");Or=Jr.style}var ir={};function Ir(le){if(ir[le])return ir[le];var fe=mi[le];if(fe)for(var ve=Object.keys(fe),Ce=ve.length,Ge=0;Ge<Ce;Ge+=1){var Je=ve[Ge];if(Object.prototype.hasOwnProperty.call(fe,Je)&&Je in Or)return ir[le]=fe[Je],ir[le]}return""}var Hr=Ir("animationend"),Io=Ir("transitionend"),pr=!!(Hr&&Io),br=Hr||"animationend",yr=Io||"transitionend";function qr(le,fe){if(!le)return null;if((0,ee.Z)(le)==="object"){var ve=fe.replace(/-\w/g,function(Ce){return Ce[1].toUpperCase()});return le[ve]}return"".concat(le,"-").concat(fe)}var Wo="none",Tr="appear",Er="enter",fo="leave",ei="none",qa="prepare",ur="start",Cr="active",ti="end";function ni(le){var fe=ae.useRef(!1),ve=ae.useState(le),Ce=(0,$e.Z)(ve,2),Ge=Ce[0],Je=Ce[1];ae.useEffect(function(){return fe.current=!1,function(){fe.current=!0}},[]);function et(Dt,Vt){Vt&&fe.current||Je(Dt)}return[Ge,et]}var ai=function(fe){return+setTimeout(fe,16)},fi=function(fe){return clearTimeout(fe)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(ai=function(fe){return window.requestAnimationFrame(fe)},fi=function(fe){return window.cancelAnimationFrame(fe)});var vi=0,Kr=new Map;function Wr(le){Kr.delete(le)}var un=function(fe){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;vi+=1;var Ce=vi;function Ge(Je){if(Je===0)Wr(Ce),fe();else{var et=ai(function(){Ge(Je-1)});Kr.set(Ce,et)}}return Ge(ve),Ce};un.cancel=function(le){var fe=Kr.get(le);return Wr(fe),fi(fe)};var Gt=un,Wt=function(){var le=ae.useRef(null);function fe(){Gt.cancel(le.current)}function ve(Ce){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;fe();var Je=Gt(function(){Ge<=1?Ce({isCanceled:function(){return Je!==le.current}}):ve(Ce,Ge-1)});le.current=Je}return ae.useEffect(function(){return function(){fe()}},[]),[ve,fe]},qt=Be()?ae.useLayoutEffect:ae.useEffect,qn=qt,ba=[qa,ur,Cr,ti],eo=!1,Ca=!0;function La(le){return le===Cr||le===ti}var to=function(le,fe){var ve=ni(ei),Ce=(0,$e.Z)(ve,2),Ge=Ce[0],Je=Ce[1],et=Wt(),Dt=(0,$e.Z)(et,2),Vt=Dt[0],Ot=Dt[1];function ne(){Je(qa,!0)}return qn(function(){if(Ge!==ei&&Ge!==ti){var re=ba.indexOf(Ge),me=ba[re+1],ce=fe(Ge);ce===eo?Je(me,!0):Vt(function(ye){function Fe(){ye.isCanceled()||Je(me,!0)}ce===!0?Fe():Promise.resolve(ce).then(Fe)})}},[le,Ge]),ae.useEffect(function(){return function(){Ot()}},[]),[ne,Ge]},To=function(le){var fe=(0,ae.useRef)(),ve=(0,ae.useRef)(le);ve.current=le;var Ce=ae.useCallback(function(et){ve.current(et)},[]);function Ge(et){et&&(et.removeEventListener(yr,Ce),et.removeEventListener(br,Ce))}function Je(et){fe.current&&fe.current!==et&&Ge(fe.current),et&&et!==fe.current&&(et.addEventListener(yr,Ce),et.addEventListener(br,Ce),fe.current=et)}return ae.useEffect(function(){return function(){Ge(fe.current)}},[]),[Je,Ge]};function co(le,fe,ve,Ce){var Ge=Ce.motionEnter,Je=Ge===void 0?!0:Ge,et=Ce.motionAppear,Dt=et===void 0?!0:et,Vt=Ce.motionLeave,Ot=Vt===void 0?!0:Vt,ne=Ce.motionDeadline,re=Ce.motionLeaveImmediately,me=Ce.onAppearPrepare,ce=Ce.onEnterPrepare,ye=Ce.onLeavePrepare,Fe=Ce.onAppearStart,Ne=Ce.onEnterStart,Ze=Ce.onLeaveStart,_e=Ce.onAppearActive,Ke=Ce.onEnterActive,Ue=Ce.onLeaveActive,nt=Ce.onAppearEnd,mt=Ce.onEnterEnd,tt=Ce.onLeaveEnd,it=Ce.onVisibleChanged,xt=ni(),ft=(0,$e.Z)(xt,2),pt=ft[0],Nt=ft[1],It=ni(Wo),Mt=(0,$e.Z)(It,2),At=Mt[0],St=Mt[1],bt=ni(null),Ht=(0,$e.Z)(bt,2),ct=Ht[0],zt=Ht[1],Ut=(0,ae.useRef)(!1),fn=(0,ae.useRef)(null);function vn(){return ve()}var dn=(0,ae.useRef)(!1);function _t(Kt){var gt=vn();if(!(Kt&&!Kt.deadline&&Kt.target!==gt)){var jt=dn.current,yn;At===Tr&&jt?yn=nt==null?void 0:nt(gt,Kt):At===Er&&jt?yn=mt==null?void 0:mt(gt,Kt):At===fo&&jt&&(yn=tt==null?void 0:tt(gt,Kt)),At!==Wo&&jt&&yn!==!1&&(St(Wo,!0),zt(null,!0))}}var gn=To(_t),Zt=(0,$e.Z)(gn,1),kt=Zt[0],Yt=ae.useMemo(function(){var Kt,gt,jt;switch(At){case Tr:return Kt={},(0,Se.Z)(Kt,qa,me),(0,Se.Z)(Kt,ur,Fe),(0,Se.Z)(Kt,Cr,_e),Kt;case Er:return gt={},(0,Se.Z)(gt,qa,ce),(0,Se.Z)(gt,ur,Ne),(0,Se.Z)(gt,Cr,Ke),gt;case fo:return jt={},(0,Se.Z)(jt,qa,ye),(0,Se.Z)(jt,ur,Ze),(0,Se.Z)(jt,Cr,Ue),jt;default:return{}}},[At]),Hn=to(At,function(Kt){if(Kt===qa){var gt=Yt[qa];return gt?gt(vn()):eo}if(Xn in Yt){var jt;zt(((jt=Yt[Xn])===null||jt===void 0?void 0:jt.call(Yt,vn(),null))||null)}return Xn===Cr&&(kt(vn()),ne>0&&(clearTimeout(fn.current),fn.current=setTimeout(function(){_t({deadline:!0})},ne))),Ca}),Dn=(0,$e.Z)(Hn,2),ea=Dn[0],Xn=Dn[1],ln=La(Xn);dn.current=ln,qn(function(){Nt(fe);var Kt=Ut.current;if(Ut.current=!0,!!le){var gt;!Kt&&fe&&Dt&&(gt=Tr),Kt&&fe&&Je&&(gt=Er),(Kt&&!fe&&Ot||!Kt&&re&&!fe&&Ot)&&(gt=fo),gt&&(St(gt),ea())}},[fe]),(0,ae.useEffect)(function(){(At===Tr&&!Dt||At===Er&&!Je||At===fo&&!Ot)&&St(Wo)},[Dt,Je,Ot]),(0,ae.useEffect)(function(){return function(){Ut.current=!1,clearTimeout(fn.current)}},[]);var On=ae.useRef(!1);(0,ae.useEffect)(function(){pt&&(On.current=!0),pt!==void 0&&At===Wo&&((On.current||pt)&&(it==null||it(pt)),On.current=!0)},[pt,At]);var In=ct;return Yt[qa]&&Xn===ur&&(In=(0,we.Z)({transition:"none"},In)),[At,Xn,In,pt!=null?pt:fe]}var er=ie(15671),gr=ie(43144),lr=ie(60136),Po=ie(51630),Lo=function(le){(0,lr.Z)(ve,le);var fe=(0,Po.Z)(ve);function ve(){return(0,er.Z)(this,ve),fe.apply(this,arguments)}return(0,gr.Z)(ve,[{key:"render",value:function(){return this.props.children}}]),ve}(ae.Component),oi=Lo;function $a(le){var fe=le;(0,ee.Z)(le)==="object"&&(fe=le.transitionSupport);function ve(Ge){return!!(Ge.motionName&&fe)}var Ce=ae.forwardRef(function(Ge,Je){var et=Ge.visible,Dt=et===void 0?!0:et,Vt=Ge.removeOnLeave,Ot=Vt===void 0?!0:Vt,ne=Ge.forceRender,re=Ge.children,me=Ge.motionName,ce=Ge.leavedClassName,ye=Ge.eventProps,Fe=ve(Ge),Ne=(0,ae.useRef)(),Ze=(0,ae.useRef)();function _e(){try{return Ne.current instanceof HTMLElement?Ne.current:Ar(Ze.current)}catch(bt){return null}}var Ke=co(Fe,Dt,_e,Ge),Ue=(0,$e.Z)(Ke,4),nt=Ue[0],mt=Ue[1],tt=Ue[2],it=Ue[3],xt=ae.useRef(it);it&&(xt.current=!0);var ft=ae.useCallback(function(bt){Ne.current=bt,de(Je,bt)},[Je]),pt,Nt=(0,we.Z)((0,we.Z)({},ye),{},{visible:Dt});if(!re)pt=null;else if(nt===Wo||!ve(Ge))it?pt=re((0,we.Z)({},Nt),ft):!Ot&&xt.current&&ce?pt=re((0,we.Z)((0,we.Z)({},Nt),{},{className:ce}),ft):ne||!Ot&&!ce?pt=re((0,we.Z)((0,we.Z)({},Nt),{},{style:{display:"none"}}),ft):pt=null;else{var It,Mt;mt===qa?Mt="prepare":La(mt)?Mt="active":mt===ur&&(Mt="start"),pt=re((0,we.Z)((0,we.Z)({},Nt),{},{className:Le()(qr(me,nt),(It={},(0,Se.Z)(It,qr(me,"".concat(nt,"-").concat(Mt)),Mt),(0,Se.Z)(It,me,typeof me=="string"),It)),style:tt}),ft)}if(ae.isValidElement(pt)&&pe(pt)){var At=pt,St=At.ref;St||(pt=ae.cloneElement(pt,{ref:ft}))}return ae.createElement(oi,{ref:Ze},pt)});return Ce.displayName="CSSMotion",Ce}var dr=$a(pr),ri=ie(97326),Lr="add",$r="keep",$o="remove",po="removed";function ii(le){var fe;return le&&(0,ee.Z)(le)==="object"&&"key"in le?fe=le:fe={key:le},(0,we.Z)((0,we.Z)({},fe),{},{key:String(fe.key)})}function Rr(){var le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return le.map(ii)}function ui(){var le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ve=[],Ce=0,Ge=fe.length,Je=Rr(le),et=Rr(fe);Je.forEach(function(Ot){for(var ne=!1,re=Ce;re<Ge;re+=1){var me=et[re];if(me.key===Ot.key){Ce<re&&(ve=ve.concat(et.slice(Ce,re).map(function(ce){return(0,we.Z)((0,we.Z)({},ce),{},{status:Lr})})),Ce=re),ve.push((0,we.Z)((0,we.Z)({},me),{},{status:$r})),Ce+=1,ne=!0;break}}ne||ve.push((0,we.Z)((0,we.Z)({},Ot),{},{status:$o}))}),Ce<Ge&&(ve=ve.concat(et.slice(Ce).map(function(Ot){return(0,we.Z)((0,we.Z)({},Ot),{},{status:Lr})})));var Dt={};ve.forEach(function(Ot){var ne=Ot.key;Dt[ne]=(Dt[ne]||0)+1});var Vt=Object.keys(Dt).filter(function(Ot){return Dt[Ot]>1});return Vt.forEach(function(Ot){ve=ve.filter(function(ne){var re=ne.key,me=ne.status;return re!==Ot||me!==$o}),ve.forEach(function(ne){ne.key===Ot&&(ne.status=$r)})}),ve}var Si=["component","children","onVisibleChanged","onAllRemoved"],Ai=["status"],Oi=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Ii(le){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dr,ve=function(Ce){(0,lr.Z)(Je,Ce);var Ge=(0,Po.Z)(Je);function Je(){var et;(0,er.Z)(this,Je);for(var Dt=arguments.length,Vt=new Array(Dt),Ot=0;Ot<Dt;Ot++)Vt[Ot]=arguments[Ot];return et=Ge.call.apply(Ge,[this].concat(Vt)),(0,Se.Z)((0,ri.Z)(et),"state",{keyEntities:[]}),(0,Se.Z)((0,ri.Z)(et),"removeKey",function(ne){var re=et.state.keyEntities,me=re.map(function(ce){return ce.key!==ne?ce:(0,we.Z)((0,we.Z)({},ce),{},{status:po})});return et.setState({keyEntities:me}),me.filter(function(ce){var ye=ce.status;return ye!==po}).length}),et}return(0,gr.Z)(Je,[{key:"render",value:function(){var Dt=this,Vt=this.state.keyEntities,Ot=this.props,ne=Ot.component,re=Ot.children,me=Ot.onVisibleChanged,ce=Ot.onAllRemoved,ye=(0,De.Z)(Ot,Si),Fe=ne||ae.Fragment,Ne={};return Oi.forEach(function(Ze){Ne[Ze]=ye[Ze],delete ye[Ze]}),delete ye.keys,ae.createElement(Fe,ye,Vt.map(function(Ze){var _e=Ze.status,Ke=(0,De.Z)(Ze,Ai),Ue=_e===Lr||_e===$r;return ae.createElement(fe,(0,Ie.Z)({},Ne,{key:Ke.key,visible:Ue,eventProps:Ke,onVisibleChanged:function(mt){if(me==null||me(mt,{key:Ke.key}),!mt){var tt=Dt.removeKey(Ke.key);tt===0&&ce&&ce()}}}),re)}))}}],[{key:"getDerivedStateFromProps",value:function(Dt,Vt){var Ot=Dt.keys,ne=Vt.keyEntities,re=Rr(Ot),me=ui(ne,re);return{keyEntities:me.filter(function(ce){var ye=ne.find(function(Fe){var Ne=Fe.key;return ce.key===Ne});return!(ye&&ye.status===po&&ce.status===$o)})}}}]),Je}(ae.Component);return(0,Se.Z)(ve,"defaultProps",{component:"div"}),ve}var cu=Ii(pr),Ci=dr;function Li(le){var fe=le.prefixCls,ve=le.align,Ce=le.arrow,Ge=le.arrowPos,Je=Ce||{},et=Je.className,Dt=Je.content,Vt=Ge.x,Ot=Vt===void 0?0:Vt,ne=Ge.y,re=ne===void 0?0:ne,me=ae.useRef();if(!ve||!ve.points)return null;var ce={position:"absolute"};if(ve.autoArrow!==!1){var ye=ve.points[0],Fe=ve.points[1],Ne=ye[0],Ze=ye[1],_e=Fe[0],Ke=Fe[1];Ne===_e||!["t","b"].includes(Ne)?ce.top=re:Ne==="t"?ce.top=0:ce.bottom=0,Ze===Ke||!["l","r"].includes(Ze)?ce.left=Ot:Ze==="l"?ce.left=0:ce.right=0}return ae.createElement("div",{ref:me,className:Le()("".concat(fe,"-arrow"),et),style:ce},Dt)}function hi(le){var fe=le.prefixCls,ve=le.open,Ce=le.zIndex,Ge=le.mask,Je=le.motion;return Ge?ae.createElement(Ci,(0,Ie.Z)({},Je,{motionAppear:!0,visible:ve,removeOnLeave:!0}),function(et){var Dt=et.className;return ae.createElement("div",{style:{zIndex:Ce},className:Le()("".concat(fe,"-mask"),Dt)})}):null}var Ti=ae.memo(function(le){var fe=le.children;return fe},function(le,fe){return fe.cache}),mu=Ti,$i=ae.forwardRef(function(le,fe){var ve=le.popup,Ce=le.className,Ge=le.prefixCls,Je=le.style,et=le.target,Dt=le.onVisibleChanged,Vt=le.open,Ot=le.keepDom,ne=le.fresh,re=le.onClick,me=le.mask,ce=le.arrow,ye=le.arrowPos,Fe=le.align,Ne=le.motion,Ze=le.maskMotion,_e=le.forceRender,Ke=le.getPopupContainer,Ue=le.autoDestroy,nt=le.portal,mt=le.zIndex,tt=le.onMouseEnter,it=le.onMouseLeave,xt=le.onPointerEnter,ft=le.ready,pt=le.offsetX,Nt=le.offsetY,It=le.offsetR,Mt=le.offsetB,At=le.onAlign,St=le.onPrepare,bt=le.stretch,Ht=le.targetWidth,ct=le.targetHeight,zt=typeof ve=="function"?ve():ve,Ut=Vt||Ot,fn=(Ke==null?void 0:Ke.length)>0,vn=ae.useState(!Ke||!fn),dn=(0,$e.Z)(vn,2),_t=dn[0],gn=dn[1];if(Za(function(){!_t&&fn&&et&&gn(!0)},[_t,fn,et]),!_t)return null;var Zt="auto",kt={left:"-1000vw",top:"-1000vh",right:Zt,bottom:Zt};if(ft||!Vt){var Yt,Hn=Fe.points,Dn=Fe.dynamicInset||((Yt=Fe._experimental)===null||Yt===void 0?void 0:Yt.dynamicInset),ea=Dn&&Hn[0][1]==="r",Xn=Dn&&Hn[0][0]==="b";ea?(kt.right=It,kt.left=Zt):(kt.left=pt,kt.right=Zt),Xn?(kt.bottom=Mt,kt.top=Zt):(kt.top=Nt,kt.bottom=Zt)}var ln={};return bt&&(bt.includes("height")&&ct?ln.height=ct:bt.includes("minHeight")&&ct&&(ln.minHeight=ct),bt.includes("width")&&Ht?ln.width=Ht:bt.includes("minWidth")&&Ht&&(ln.minWidth=Ht)),Vt||(ln.pointerEvents="none"),ae.createElement(nt,{open:_e||Ut,getContainer:Ke&&function(){return Ke(et)},autoDestroy:Ue},ae.createElement(hi,{prefixCls:Ge,open:Vt,zIndex:mt,mask:me,motion:Ze}),ae.createElement(Fn.Z,{onResize:At,disabled:!Vt},function(On){return ae.createElement(Ci,(0,Ie.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:_e,leavedClassName:"".concat(Ge,"-hidden")},Ne,{onAppearPrepare:St,onEnterPrepare:St,visible:Vt,onVisibleChanged:function(Kt){var gt;Ne==null||(gt=Ne.onVisibleChanged)===null||gt===void 0||gt.call(Ne,Kt),Dt(Kt)}}),function(In,Kt){var gt=In.className,jt=In.style,yn=Le()(Ge,gt,Ce);return ae.createElement("div",{ref:wt(On,fe,Kt),className:yn,style:(0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)({"--arrow-x":"".concat(ye.x||0,"px"),"--arrow-y":"".concat(ye.y||0,"px")},kt),ln),jt),{},{boxSizing:"border-box",zIndex:mt},Je),onMouseEnter:tt,onMouseLeave:it,onPointerEnter:xt,onClick:re},ce&&ae.createElement(Li,{prefixCls:Ge,arrow:ce,arrowPos:ye,align:Fe}),ae.createElement(mu,{cache:!Vt&&!ne},zt))})}))}),Ri=$i,Gi=ae.forwardRef(function(le,fe){var ve=le.children,Ce=le.getTriggerDOMNode,Ge=uo(ve),Je=ae.useCallback(function(Dt){So(fe,Ce?Ce(Dt):Dt)},[Ce]),et=ia(Je,ve.ref);return Ge?ae.cloneElement(ve,{ref:et}):ve}),zi=Gi,wi=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function ki(){var le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wn,fe=ae.forwardRef(function(ve,Ce){var Ge=ve.prefixCls,Je=Ge===void 0?"rc-trigger-popup":Ge,et=ve.children,Dt=ve.action,Vt=Dt===void 0?"hover":Dt,Ot=ve.showAction,ne=ve.hideAction,re=ve.popupVisible,me=ve.defaultPopupVisible,ce=ve.onPopupVisibleChange,ye=ve.afterPopupVisibleChange,Fe=ve.mouseEnterDelay,Ne=ve.mouseLeaveDelay,Ze=Ne===void 0?.1:Ne,_e=ve.focusDelay,Ke=ve.blurDelay,Ue=ve.mask,nt=ve.maskClosable,mt=nt===void 0?!0:nt,tt=ve.getPopupContainer,it=ve.forceRender,xt=ve.autoDestroy,ft=ve.destroyPopupOnHide,pt=ve.popup,Nt=ve.popupClassName,It=ve.popupStyle,Mt=ve.popupPlacement,At=ve.builtinPlacements,St=At===void 0?{}:At,bt=ve.popupAlign,Ht=ve.zIndex,ct=ve.stretch,zt=ve.getPopupClassNameFromAlign,Ut=ve.fresh,fn=ve.alignPoint,vn=ve.onPopupClick,dn=ve.onPopupAlign,_t=ve.arrow,gn=ve.popupMotion,Zt=ve.maskMotion,kt=ve.popupTransitionName,Yt=ve.popupAnimation,Hn=ve.maskTransitionName,Dn=ve.maskAnimation,ea=ve.className,Xn=ve.getTriggerDOMNode,ln=(0,De.Z)(ve,wi),On=xt||ft||!1,In=ae.useState(!1),Kt=(0,$e.Z)(In,2),gt=Kt[0],jt=Kt[1];Za(function(){jt(fr())},[]);var yn=ae.useRef({}),Ln=ae.useContext(Qo),Tn=ae.useMemo(function(){return{registerSubPopup:function(Un,Xa){yn.current[Un]=Xa,Ln==null||Ln.registerSubPopup(Un,Xa)}}},[Ln]),Bn=ka(),xn=ae.useState(null),bn=(0,$e.Z)(xn,2),En=bn[0],zn=bn[1],Nn=aa(function(Pn){jn(Pn)&&En!==Pn&&zn(Pn),Ln==null||Ln.registerSubPopup(Bn,Pn)}),Zn=ae.useState(null),fa=(0,$e.Z)(Zn,2),kn=fa[0],Ba=fa[1],xa=aa(function(Pn){jn(Pn)&&kn!==Pn&&Ba(Pn)}),Ta=ae.Children.only(et),Wn=(Ta==null?void 0:Ta.props)||{},Yn={},Na=aa(function(Pn){var Un,Xa,io=kn;return(io==null?void 0:io.contains(Pn))||((Un=ca(io))===null||Un===void 0?void 0:Un.host)===Pn||Pn===io||(En==null?void 0:En.contains(Pn))||((Xa=ca(En))===null||Xa===void 0?void 0:Xa.host)===Pn||Pn===En||Object.values(yn.current).some(function(Ya){return(Ya==null?void 0:Ya.contains(Pn))||Pn===Ya})}),ua=ko(Je,gn,Yt,kt),ta=ko(Je,Zt,Dn,Hn),Ma=ae.useState(me||!1),Aa=(0,$e.Z)(Ma,2),Ka=Aa[0],ga=Aa[1],Kn=re!=null?re:Ka,Wa=aa(function(Pn){re===void 0&&ga(Pn)});Za(function(){ga(re||!1)},[re]);var Oa=ae.useRef(Kn);Oa.current=Kn;var wo=aa(function(Pn){(0,Me.flushSync)(function(){Kn!==Pn&&(Wa(Pn),ce==null||ce(Pn))})}),Va=ae.useRef(),Fo=function(){clearTimeout(Va.current)},Ua=function(Un){var Xa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Fo(),Xa===0?wo(Un):Va.current=setTimeout(function(){wo(Un)},Xa*1e3)};ae.useEffect(function(){return Fo},[]);var la=ae.useState(!1),Qn=(0,$e.Z)(la,2),va=Qn[0],Ra=Qn[1];Za(function(Pn){(!Pn||Kn)&&Ra(!0)},[Kn]);var Ia=ae.useState(null),ao=(0,$e.Z)(Ia,2),Sn=ao[0],Ct=ao[1],Xt=ae.useState([0,0]),Jt=(0,$e.Z)(Xt,2),hn=Jt[0],da=Jt[1],na=function(Un){da([Un.clientX,Un.clientY])},bo=Rt(Kn,En,fn?hn:kn,Mt,St,bt,dn),ha=(0,$e.Z)(bo,11),yo=ha[0],ja=ha[1],Uo=ha[2],wr=ha[3],zr=ha[4],sr=ha[5],jo=ha[6],Ro=ha[7],Fr=ha[8],Mo=ha[9],Ur=ha[10],Dr=Ao(gt,Vt,Ot,ne),cr=(0,$e.Z)(Dr,2),mr=cr[0],Br=cr[1],xr=mr.has("click"),kr=Br.has("click")||Br.has("contextMenu"),Xo=aa(function(){va||Ur()}),gi=function(){Oa.current&&fn&&kr&&Ua(!1)};cn(Kn,kn,En,Xo,gi),Za(function(){Xo()},[hn,Mt]),Za(function(){Kn&&!(St!=null&&St[Mt])&&Xo()},[JSON.stringify(bt)]);var li=ae.useMemo(function(){var Pn=Nr(St,Je,Mo,fn);return Le()(Pn,zt==null?void 0:zt(Mo))},[Mo,zt,St,Je,fn]);ae.useImperativeHandle(Ce,function(){return{forceAlign:Xo}});var di=ae.useState(0),si=(0,$e.Z)(di,2),bi=si[0],yi=si[1],Ei=ae.useState(0),jr=(0,$e.Z)(Ei,2),Xr=jr[0],Vn=jr[1],Gn=function(){if(ct&&kn){var Un=kn.getBoundingClientRect();yi(Un.width),Vn(Un.height)}},oo=function(){Gn(),Xo()},mo=function(Un){Ra(!1),Ur(),ye==null||ye(Un)},sa=function(){return new Promise(function(Un){Gn(),Ct(function(){return Un})})};Za(function(){Sn&&(Ur(),Sn(),Ct(null))},[Sn]);function Ga(Pn,Un,Xa,io){Yn[Pn]=function(Ya){var Ni;io==null||io(Ya),Ua(Un,Xa);for(var su=arguments.length,hu=new Array(su>1?su-1:0),Mi=1;Mi<su;Mi++)hu[Mi-1]=arguments[Mi];(Ni=Wn[Pn])===null||Ni===void 0||Ni.call.apply(Ni,[Wn,Ya].concat(hu))}}(xr||kr)&&(Yn.onClick=function(Pn){var Un;Oa.current&&kr?Ua(!1):!Oa.current&&xr&&(na(Pn),Ua(!0));for(var Xa=arguments.length,io=new Array(Xa>1?Xa-1:0),Ya=1;Ya<Xa;Ya++)io[Ya-1]=arguments[Ya];(Un=Wn.onClick)===null||Un===void 0||Un.call.apply(Un,[Wn,Pn].concat(io))}),so(Kn,kr,kn,En,Ue,mt,Na,Ua);var Eo=mr.has("hover"),Go=Br.has("hover"),vo,Yo;Eo&&(Ga("onMouseEnter",!0,Fe,function(Pn){na(Pn)}),Ga("onPointerEnter",!0,Fe,function(Pn){na(Pn)}),vo=function(){(Kn||va)&&Ua(!0,Fe)},fn&&(Yn.onMouseMove=function(Pn){var Un;(Un=Wn.onMouseMove)===null||Un===void 0||Un.call(Wn,Pn)})),Go&&(Ga("onMouseLeave",!1,Ze),Ga("onPointerLeave",!1,Ze),Yo=function(){Ua(!1,Ze)}),mr.has("focus")&&Ga("onFocus",!0,_e),Br.has("focus")&&Ga("onBlur",!1,Ke),mr.has("contextMenu")&&(Yn.onContextMenu=function(Pn){var Un;Oa.current&&Br.has("contextMenu")?Ua(!1):(na(Pn),Ua(!0)),Pn.preventDefault();for(var Xa=arguments.length,io=new Array(Xa>1?Xa-1:0),Ya=1;Ya<Xa;Ya++)io[Ya-1]=arguments[Ya];(Un=Wn.onContextMenu)===null||Un===void 0||Un.call.apply(Un,[Wn,Pn].concat(io))}),ea&&(Yn.className=Le()(Wn.className,ea));var Do=(0,we.Z)((0,we.Z)({},Wn),Yn),Yr={},uu=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];uu.forEach(function(Pn){ln[Pn]&&(Yr[Pn]=function(){for(var Un,Xa=arguments.length,io=new Array(Xa),Ya=0;Ya<Xa;Ya++)io[Ya]=arguments[Ya];(Un=Do[Pn])===null||Un===void 0||Un.call.apply(Un,[Do].concat(io)),ln[Pn].apply(ln,io)})});var gu=ae.cloneElement(Ta,(0,we.Z)((0,we.Z)({},Do),Yr)),lu={x:sr,y:jo},du=_t?(0,we.Z)({},_t!==!0?_t:{}):null;return ae.createElement(ae.Fragment,null,ae.createElement(Fn.Z,{disabled:!Kn,ref:xa,onResize:oo},ae.createElement(zi,{getTriggerDOMNode:Xn},gu)),ae.createElement(Qo.Provider,{value:Tn},ae.createElement(Ri,{portal:le,ref:Nn,prefixCls:Je,popup:pt,className:Le()(Nt,li),style:It,target:kn,onMouseEnter:vo,onMouseLeave:Yo,onPointerEnter:vo,zIndex:Ht,open:Kn,keepDom:va,fresh:Ut,onClick:vn,mask:Ue,motion:ua,maskMotion:ta,onVisibleChanged:mo,onPrepare:sa,forceRender:it,autoDestroy:On,getPopupContainer:tt,align:Mo,arrow:du,arrowPos:lu,ready:yo,offsetX:ja,offsetY:Uo,offsetR:wr,offsetB:zr,onAlign:Xo,stretch:ct,targetWidth:bi/Ro,targetHeight:Xr/Fr})))});return fe}var _i=ki(wn),Ft={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(fe){var ve=fe.keyCode;if(fe.altKey&&!fe.ctrlKey||fe.metaKey||ve>=Ft.F1&&ve<=Ft.F12)return!1;switch(ve){case Ft.ALT:case Ft.CAPS_LOCK:case Ft.CONTEXT_MENU:case Ft.CTRL:case Ft.DOWN:case Ft.END:case Ft.ESC:case Ft.HOME:case Ft.INSERT:case Ft.LEFT:case Ft.MAC_FF_META:case Ft.META:case Ft.NUMLOCK:case Ft.NUM_CENTER:case Ft.PAGE_DOWN:case Ft.PAGE_UP:case Ft.PAUSE:case Ft.PRINT_SCREEN:case Ft.RIGHT:case Ft.SHIFT:case Ft.UP:case Ft.WIN_KEY:case Ft.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(fe){if(fe>=Ft.ZERO&&fe<=Ft.NINE||fe>=Ft.NUM_ZERO&&fe<=Ft.NUM_MULTIPLY||fe>=Ft.A&&fe<=Ft.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&fe===0)return!0;switch(fe){case Ft.SPACE:case Ft.QUESTION_MARK:case Ft.NUM_PLUS:case Ft.NUM_MINUS:case Ft.NUM_PERIOD:case Ft.NUM_DIVISION:case Ft.SEMICOLON:case Ft.DASH:case Ft.EQUALS:case Ft.COMMA:case Ft.PERIOD:case Ft.SLASH:case Ft.APOSTROPHE:case Ft.SINGLE_QUOTE:case Ft.OPEN_SQUARE_BRACKET:case Ft.BACKSLASH:case Ft.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Vo=Ft,Zi=Vo.ESC,Hi=Vo.TAB;function Ki(le){var fe=le.visible,ve=le.triggerRef,Ce=le.onVisibleChange,Ge=le.autoFocus,Je=le.overlayRef,et=ae.useRef(!1),Dt=function(){if(fe){var re,me;(re=ve.current)===null||re===void 0||(me=re.focus)===null||me===void 0||me.call(re),Ce==null||Ce(!1)}},Vt=function(){var re;return(re=Je.current)!==null&&re!==void 0&&re.focus?(Je.current.focus(),et.current=!0,!0):!1},Ot=function(re){switch(re.keyCode){case Zi:Dt();break;case Hi:{var me=!1;et.current||(me=Vt()),me?re.preventDefault():Dt();break}}};ae.useEffect(function(){return fe?(window.addEventListener("keydown",Ot),Ge&&Gt(Vt,3),function(){window.removeEventListener("keydown",Ot),et.current=!1}):function(){et.current=!1}},[fe])}var fu=(0,ae.forwardRef)(function(le,fe){var ve=le.overlay,Ce=le.arrow,Ge=le.prefixCls,Je=(0,ae.useMemo)(function(){var Dt;return typeof ve=="function"?Dt=ve():Dt=ve,Dt},[ve]),et=se(fe,Je==null?void 0:Je.ref);return ae.createElement(ae.Fragment,null,Ce&&ae.createElement("div",{className:"".concat(Ge,"-arrow")}),ae.cloneElement(Je,{ref:pe(Je)?et:void 0}))}),vu=fu,Vr={adjustX:1,adjustY:1},Gr=[0,0],Wi={topLeft:{points:["bl","tl"],overflow:Vr,offset:[0,-4],targetOffset:Gr},top:{points:["bc","tc"],overflow:Vr,offset:[0,-4],targetOffset:Gr},topRight:{points:["br","tr"],overflow:Vr,offset:[0,-4],targetOffset:Gr},bottomLeft:{points:["tl","bl"],overflow:Vr,offset:[0,4],targetOffset:Gr},bottom:{points:["tc","bc"],overflow:Vr,offset:[0,4],targetOffset:Gr},bottomRight:{points:["tr","br"],overflow:Vr,offset:[0,4],targetOffset:Gr}},Fi=Wi,Pi=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Vi(le,fe){var ve,Ce=le.arrow,Ge=Ce===void 0?!1:Ce,Je=le.prefixCls,et=Je===void 0?"rc-dropdown":Je,Dt=le.transitionName,Vt=le.animation,Ot=le.align,ne=le.placement,re=ne===void 0?"bottomLeft":ne,me=le.placements,ce=me===void 0?Fi:me,ye=le.getPopupContainer,Fe=le.showAction,Ne=le.hideAction,Ze=le.overlayClassName,_e=le.overlayStyle,Ke=le.visible,Ue=le.trigger,nt=Ue===void 0?["hover"]:Ue,mt=le.autoFocus,tt=le.overlay,it=le.children,xt=le.onVisibleChange,ft=(0,De.Z)(le,Pi),pt=ae.useState(),Nt=(0,$e.Z)(pt,2),It=Nt[0],Mt=Nt[1],At="visible"in le?Ke:It,St=ae.useRef(null),bt=ae.useRef(null),Ht=ae.useRef(null);ae.useImperativeHandle(fe,function(){return St.current});var ct=function(kt){Mt(kt),xt==null||xt(kt)};Ki({visible:At,triggerRef:Ht,onVisibleChange:ct,autoFocus:mt,overlayRef:bt});var zt=function(kt){var Yt=le.onOverlayClick;Mt(!1),Yt&&Yt(kt)},Ut=function(){return ae.createElement(vu,{ref:bt,overlay:tt,prefixCls:et,arrow:Ge})},fn=function(){return typeof tt=="function"?Ut:Ut()},vn=function(){var kt=le.minOverlayWidthMatchTrigger,Yt=le.alignPoint;return"minOverlayWidthMatchTrigger"in le?kt:!Yt},dn=function(){var kt=le.openClassName;return kt!==void 0?kt:"".concat(et,"-open")},_t=ae.cloneElement(it,{className:Le()((ve=it.props)===null||ve===void 0?void 0:ve.className,At&&dn()),ref:pe(it)?se(Ht,it.ref):void 0}),gn=Ne;return!gn&&nt.indexOf("contextMenu")!==-1&&(gn=["click"]),ae.createElement(_i,(0,Ie.Z)({builtinPlacements:ce},ft,{prefixCls:et,ref:St,popupClassName:Le()(Ze,(0,Se.Z)({},"".concat(et,"-show-arrow"),Ge)),popupStyle:_e,action:nt,showAction:Fe,hideAction:gn,popupPlacement:re,popupAlign:Ot,popupTransitionName:Dt,popupAnimation:Vt,popupVisible:At,stretch:vn()?"minWidth":"",popup:fn(),onPopupVisibleChange:ct,onPopupClick:zt,getPopupContainer:ye}),_t)}var Di=ae.forwardRef(Vi),Ui=Di,Bi=ie(60276),ji=ie(5663),xi=ie(10366),Xi=ie(80636),Yi=ie(8745),Qi=ie(96159),Ji=ie(53124),qi=ie(68508),eu=ie(76529),tu=ie(46605),nu=ie(66748);const Su=null,pi=le=>{const{menu:fe,arrow:ve,prefixCls:Ce,children:Ge,trigger:Je,disabled:et,dropdownRender:Dt,getPopupContainer:Vt,overlayClassName:Ot,rootClassName:ne,open:re,onOpenChange:me,visible:ce,onVisibleChange:ye,mouseEnterDelay:Fe=.15,mouseLeaveDelay:Ne=.1,autoAdjustOverflow:Ze=!0,placement:_e="",overlay:Ke,transitionName:Ue}=le,{getPopupContainer:nt,getPrefixCls:mt,direction:tt}=ae.useContext(Ji.E_),it=ae.useMemo(()=>{const _t=mt();return Ue!==void 0?Ue:_e.includes("top")?`${_t}-slide-down`:`${_t}-slide-up`},[mt,_e,Ue]),xt=ae.useMemo(()=>_e?_e.includes("Center")?_e.slice(0,_e.indexOf("Center")):_e:tt==="rtl"?"bottomRight":"bottomLeft",[_e,tt]),ft=mt("dropdown",Ce),[pt,Nt]=(0,nu.Z)(ft),[,It]=(0,tu.Z)(),Mt=ae.Children.only(Ge),At=(0,Qi.Tm)(Mt,{className:Le()(`${ft}-trigger`,{[`${ft}-rtl`]:tt==="rtl"},Mt.props.className),disabled:et}),St=et?[]:Je;let bt;St&&St.includes("contextMenu")&&(bt=!0);const[Ht,ct]=(0,ji.Z)(!1,{value:re!=null?re:ce}),zt=(0,Bi.useEvent)(_t=>{me==null||me(_t),ye==null||ye(_t),ct(_t)}),Ut=Le()(Ot,ne,Nt,{[`${ft}-rtl`]:tt==="rtl"}),fn=(0,Xi.Z)({arrowPointAtCenter:typeof ve=="object"&&ve.pointAtCenter,autoAdjustOverflow:Ze,offset:It.marginXXS,arrowWidth:ve?It.sizePopupArrow:0,borderRadius:It.borderRadius}),vn=ae.useCallback(()=>{ct(!1)},[]),dn=()=>{let _t;return fe!=null&&fe.items?_t=ae.createElement(qi.default,Object.assign({},fe)):typeof Ke=="function"?_t=Ke():_t=Ke,Dt&&(_t=Dt(_t)),_t=ae.Children.only(typeof _t=="string"?ae.createElement("span",null,_t):_t),ae.createElement(eu.J,{prefixCls:`${ft}-menu`,expandIcon:ae.createElement("span",{className:`${ft}-menu-submenu-arrow`},ae.createElement(at.Z,{className:`${ft}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:vn,validator:gn=>{let{mode:Zt}=gn}},_t)};return pt(ae.createElement(Ui,Object.assign({alignPoint:bt},(0,xi.Z)(le,["rootClassName"]),{mouseEnterDelay:Fe,mouseLeaveDelay:Ne,visible:Ht,builtinPlacements:fn,arrow:!!ve,overlayClassName:Ut,prefixCls:ft,getPopupContainer:Vt||nt,transitionName:it,trigger:St,overlay:dn,placement:xt,onVisibleChange:zt}),At))};function au(le){return Object.assign(Object.assign({},le),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ou=(0,Yi.Z)(pi,"dropdown",le=>le,au),ru=le=>ae.createElement(ou,Object.assign({},le),ae.createElement("span",null));pi._InternalPanelDoNotUseOrYouWillBeFired=ru;var iu=pi},66748:function(je,yt,ie){"use strict";ie.d(yt,{Z:function(){return Me}});var ae=ie(14747),ge=ie(67771),at=ie(33297),st=ie(50438),Le=ie(97414),Ie=ie(67968),Se=ie(45503),De=Be=>{const{componentCls:Ae,menuCls:oe,colorError:b,colorTextLightSolid:a}=Be,E=`${oe}-item`;return{[`${Ae}, ${Ae}-menu-submenu`]:{[`${oe} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:b,"&:hover":{color:a,backgroundColor:b}}}}}};const we=Be=>{const{componentCls:Ae,menuCls:oe,zIndexPopup:b,dropdownArrowDistance:a,sizePopupArrow:E,antCls:y,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:ue,colorTextDisabled:de,fontSizeIcon:se,controlPaddingHorizontal:Ee,colorBgElevated:pe}=Be;return[{[Ae]:Object.assign(Object.assign({},(0,ae.Wf)(Be)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:b,display:"block","&::before":{position:"absolute",insetBlock:-a+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${y}-btn`]:{[`& > ${x}-down, & > ${y}-btn-icon > ${x}-down`]:{fontSize:se}},[`${Ae}-wrap`]:{position:"relative",[`${y}-btn > ${x}-down`]:{fontSize:se},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${Ae}-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${Ae}-placement-bottomLeft,
|
|
&${y}-slide-down-appear${y}-slide-down-appear-active${Ae}-placement-bottomLeft,
|
|
&${y}-slide-down-enter${y}-slide-down-enter-active${Ae}-placement-bottom,
|
|
&${y}-slide-down-appear${y}-slide-down-appear-active${Ae}-placement-bottom,
|
|
&${y}-slide-down-enter${y}-slide-down-enter-active${Ae}-placement-bottomRight,
|
|
&${y}-slide-down-appear${y}-slide-down-appear-active${Ae}-placement-bottomRight`]:{animationName:ge.fJ},[`&${y}-slide-up-enter${y}-slide-up-enter-active${Ae}-placement-topLeft,
|
|
&${y}-slide-up-appear${y}-slide-up-appear-active${Ae}-placement-topLeft,
|
|
&${y}-slide-up-enter${y}-slide-up-enter-active${Ae}-placement-top,
|
|
&${y}-slide-up-appear${y}-slide-up-appear-active${Ae}-placement-top,
|
|
&${y}-slide-up-enter${y}-slide-up-enter-active${Ae}-placement-topRight,
|
|
&${y}-slide-up-appear${y}-slide-up-appear-active${Ae}-placement-topRight`]:{animationName:ge.Qt},[`&${y}-slide-down-leave${y}-slide-down-leave-active${Ae}-placement-bottomLeft,
|
|
&${y}-slide-down-leave${y}-slide-down-leave-active${Ae}-placement-bottom,
|
|
&${y}-slide-down-leave${y}-slide-down-leave-active${Ae}-placement-bottomRight`]:{animationName:ge.Uw},[`&${y}-slide-up-leave${y}-slide-up-leave-active${Ae}-placement-topLeft,
|
|
&${y}-slide-up-leave${y}-slide-up-leave-active${Ae}-placement-top,
|
|
&${y}-slide-up-leave${y}-slide-up-leave-active${Ae}-placement-topRight`]:{animationName:ge.ly}})},(0,Le.ZP)(Be,{colorBg:pe,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Ae} ${oe}`]:{position:"relative",margin:0},[`${oe}-submenu-popup`]:{position:"absolute",zIndex:b,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ae}, ${Ae}-menu-submenu`]:{[oe]:Object.assign(Object.assign({padding:ue,listStyleType:"none",backgroundColor:pe,backgroundClip:"padding-box",borderRadius:Be.borderRadiusLG,outline:"none",boxShadow:Be.boxShadowSecondary},(0,ae.Qy)(Be)),{[`${oe}-item-group-title`]:{padding:`${ee}px ${Ee}px`,color:Be.colorTextDescription,transition:`all ${z}`},[`${oe}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${oe}-item-icon`]:{minWidth:te,marginInlineEnd:Be.marginXS,fontSize:Be.fontSizeSM},[`${oe}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${oe}-item, ${oe}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${Ee}px`,color:Be.colorText,fontWeight:"normal",fontSize:te,lineHeight:Be.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Be.borderRadiusSM,"&:hover, &-active":{backgroundColor:Be.controlItemBgHover}},(0,ae.Qy)(Be)),{"&-selected":{color:Be.colorPrimary,backgroundColor:Be.controlItemBgActive,"&:hover, &-active":{backgroundColor:Be.controlItemBgActiveHover}},"&-disabled":{color:de,cursor:"not-allowed","&:hover":{color:de,backgroundColor:pe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Be.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Be.colorSplit},[`${Ae}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Be.paddingXS,[`${Ae}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Be.colorTextDescription,fontSize:se,fontStyle:"normal"}}}),[`${oe}-item-group-list`]:{margin:`0 ${Be.marginXS}px`,padding:0,listStyle:"none"},[`${oe}-submenu-title`]:{paddingInlineEnd:Ee+Be.fontSizeSM},[`${oe}-submenu-vertical`]:{position:"relative"},[`${oe}-submenu${oe}-submenu-disabled ${Ae}-menu-submenu-title`]:{[`&, ${Ae}-menu-submenu-arrow-icon`]:{color:de,backgroundColor:pe,cursor:"not-allowed"}},[`${oe}-submenu-selected ${Ae}-menu-submenu-title`]:{color:Be.colorPrimary}})}},[(0,ge.oN)(Be,"slide-up"),(0,ge.oN)(Be,"slide-down"),(0,at.Fm)(Be,"move-up"),(0,at.Fm)(Be,"move-down"),(0,st._y)(Be,"zoom-big")]]};var Me=(0,Ie.Z)("Dropdown",(Be,Ae)=>{let{rootPrefixCls:oe}=Ae;const{marginXXS:b,sizePopupArrow:a,controlHeight:E,fontSize:y,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=Be,ue=(E-y*x)/2,{dropdownArrowOffset:de}=(0,Le.fS)({contentRadius:te}),se=(0,Se.TS)(Be,{menuCls:`${ee}-menu`,rootPrefixCls:oe,dropdownArrowDistance:a/2+b,dropdownArrowOffset:de,dropdownPaddingVertical:ue,dropdownEdgeChildPadding:z});return[we(se),De(se)]},Be=>({zIndexPopup:Be.zIndexPopupBase+50}))},71322:function(je,yt,ie){"use strict";ie.d(yt,{D:function(){return x},Z:function(){return te}});var ae=ie(87462),ge=ie(67294),at={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"},st=at,Le=ie(74643),Ie=function(de,se){return ge.createElement(Le.Z,(0,ae.Z)({},de,{ref:se,icon:st}))},Se=ge.forwardRef(Ie),$e=ie(22751),De=ie(91034),we=ie(94184),Me=ie.n(we),Be=ie(10366),oe=ue=>!isNaN(parseFloat(ue))&&isFinite(ue),b=ie(53124),a=ie(84321),E=function(ue,de){var se={};for(var Ee in ue)Object.prototype.hasOwnProperty.call(ue,Ee)&&de.indexOf(Ee)<0&&(se[Ee]=ue[Ee]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,Ee=Object.getOwnPropertySymbols(ue);pe<Ee.length;pe++)de.indexOf(Ee[pe])<0&&Object.prototype.propertyIsEnumerable.call(ue,Ee[pe])&&(se[Ee[pe]]=ue[Ee[pe]]);return se};const y={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=ge.createContext({}),z=(()=>{let ue=0;return function(){let de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ue+=1,`${de}${ue}`}})();var te=ge.forwardRef((ue,de)=>{const{prefixCls:se,className:Ee,trigger:pe,children:he,defaultCollapsed:ke=!1,theme:rt="dark",style:We={},collapsible:xe=!1,reverseArrow:Pe=!1,width:He=200,collapsedWidth:Ye=80,zeroWidthTriggerStyle:ot,breakpoint:vt,onCollapse:Qt,onBreakpoint:Tt}=ue,on=E(ue,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:An}=(0,ge.useContext)(a.Gs),[Ve,Qe]=(0,ge.useState)("collapsed"in ue?ue.collapsed:ke),[ht,tn]=(0,ge.useState)(!1);(0,ge.useEffect)(()=>{"collapsed"in ue&&Qe(ue.collapsed)},[ue.collapsed]);const dt=(Pt,qe)=>{"collapsed"in ue||Qe(Pt),Qt==null||Qt(Pt,qe)},nn=(0,ge.useRef)();nn.current=Pt=>{tn(Pt.matches),Tt==null||Tt(Pt.matches),Ve!==Pt.matches&&dt(Pt.matches,"responsive")},(0,ge.useEffect)(()=>{function Pt(Xe){return nn.current(Xe)}let qe;if(typeof window!="undefined"){const{matchMedia:Xe}=window;if(Xe&&vt&&vt in y){qe=Xe(`(max-width: ${y[vt]})`);try{qe.addEventListener("change",Pt)}catch(Re){qe.addListener(Pt)}Pt(qe)}}return()=>{try{qe==null||qe.removeEventListener("change",Pt)}catch(Xe){qe==null||qe.removeListener(Pt)}}},[vt]),(0,ge.useEffect)(()=>{const Pt=z("ant-sider-");return An.addSider(Pt),()=>An.removeSider(Pt)},[]);const be=()=>{dt(!Ve,"clickTrigger")},{getPrefixCls:Lt}=(0,ge.useContext)(b.E_),an=()=>{const Pt=Lt("layout-sider",se),qe=(0,Be.Z)(on,["collapsed"]),Xe=Ve?Ye:He,Re=oe(Xe)?`${Xe}px`:String(Xe),lt=parseFloat(String(Ye||0))===0?ge.createElement("span",{onClick:be,className:Me()(`${Pt}-zero-width-trigger`,`${Pt}-zero-width-trigger-${Pe?"right":"left"}`),style:ot},pe||ge.createElement(Se,null)):null,sn={expanded:Pe?ge.createElement(De.Z,null):ge.createElement($e.Z,null),collapsed:Pe?ge.createElement($e.Z,null):ge.createElement(De.Z,null)}[Ve?"collapsed":"expanded"],pn=pe!==null?lt||ge.createElement("div",{className:`${Pt}-trigger`,onClick:be,style:{width:Re}},pe||sn):null,Cn=Object.assign(Object.assign({},We),{flex:`0 0 ${Re}`,maxWidth:Re,minWidth:Re,width:Re}),$n=Me()(Pt,`${Pt}-${rt}`,{[`${Pt}-collapsed`]:!!Ve,[`${Pt}-has-trigger`]:xe&&pe!==null&&!lt,[`${Pt}-below`]:!!ht,[`${Pt}-zero-width`]:parseFloat(Re)===0},Ee);return ge.createElement("aside",Object.assign({className:$n},qe,{style:Cn,ref:de}),ge.createElement("div",{className:`${Pt}-children`},he),xe||ht&<?pn:null)},Mn=ge.useMemo(()=>({siderCollapsed:Ve}),[Ve]);return ge.createElement(x.Provider,{value:Mn},an())})},97183:function(je,yt,ie){"use strict";var ae=ie(84321),ge=ie(71322);const at=ae.ZP;at.Header=ae.h4,at.Footer=ae.$_,at.Content=ae.VY,at.Sider=ge.Z,yt.default=at},84321:function(je,yt,ie){"use strict";ie.d(yt,{VY:function(){return z},$_:function(){return x},h4:function(){return y},Gs:function(){return Ae},ZP:function(){return ee}});var ae=ie(74902),ge=ie(94184),at=ie.n(ge),st=ie(10366),Le=ie(67294),Ie=ie(53124),Se=ie(67968),De=te=>{const{componentCls:ue,bodyBg:de,lightSiderBg:se,lightTriggerBg:Ee,lightTriggerColor:pe}=te;return{[`${ue}-sider-light`]:{background:se,[`${ue}-sider-trigger`]:{color:pe,background:Ee},[`${ue}-sider-zero-width-trigger`]:{color:pe,background:Ee,border:`1px solid ${de}`,borderInlineStart:0}}}};const we=te=>{const{antCls:ue,componentCls:de,colorText:se,triggerColor:Ee,footerBg:pe,triggerBg:he,headerHeight:ke,headerPadding:rt,headerColor:We,footerPadding:xe,triggerHeight:Pe,zeroTriggerHeight:He,zeroTriggerWidth:Ye,motionDurationMid:ot,motionDurationSlow:vt,fontSize:Qt,borderRadius:Tt,bodyBg:on,headerBg:An,siderBg:Ve}=te;return{[de]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:on,"&, *":{boxSizing:"border-box"},[`&${de}-has-sider`]:{flexDirection:"row",[`> ${de}, > ${de}-content`]:{width:0}},[`${de}-header, &${de}-footer`]:{flex:"0 0 auto"},[`${de}-sider`]:{position:"relative",minWidth:0,background:Ve,transition:`all ${ot}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ue}-menu${ue}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Pe},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Pe,color:Ee,lineHeight:`${Pe}px`,textAlign:"center",background:he,cursor:"pointer",transition:`all ${ot}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:ke,insetInlineEnd:-Ye,zIndex:1,width:Ye,height:He,color:Ee,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ve,borderStartStartRadius:0,borderStartEndRadius:Tt,borderEndEndRadius:Tt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${vt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${vt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Ye,borderStartStartRadius:Tt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Tt}}}}},De(te)),{"&-rtl":{direction:"rtl"}}),[`${de}-header`]:{height:ke,padding:rt,color:We,lineHeight:`${ke}px`,background:An,[`${ue}-menu`]:{lineHeight:"inherit"}},[`${de}-footer`]:{padding:xe,color:se,fontSize:Qt,background:pe},[`${de}-content`]:{flex:"auto",minHeight:0}}};var Me=(0,Se.Z)("Layout",te=>[we(te)],te=>{const{colorBgLayout:ue,controlHeight:de,controlHeightLG:se,colorText:Ee,controlHeightSM:pe,marginXXS:he,colorTextLightSolid:ke,colorBgContainer:rt}=te,We=se*1.25;return{colorBgHeader:"#001529",colorBgBody:ue,colorBgTrigger:"#002140",bodyBg:ue,headerBg:"#001529",headerHeight:de*2,headerPadding:`0 ${We}px`,headerColor:Ee,footerPadding:`${pe}px ${We}px`,footerBg:ue,siderBg:"#001529",triggerHeight:se+he*2,triggerBg:"#002140",triggerColor:ke,zeroTriggerWidth:se,zeroTriggerHeight:se,lightSiderBg:rt,lightTriggerBg:rt,lightTriggerColor:Ee}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Be=function(te,ue){var de={};for(var se in te)Object.prototype.hasOwnProperty.call(te,se)&&ue.indexOf(se)<0&&(de[se]=te[se]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,se=Object.getOwnPropertySymbols(te);Ee<se.length;Ee++)ue.indexOf(se[Ee])<0&&Object.prototype.propertyIsEnumerable.call(te,se[Ee])&&(de[se[Ee]]=te[se[Ee]]);return de};const Ae=Le.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function oe(te){let{suffixCls:ue,tagName:de,displayName:se}=te;return Ee=>Le.forwardRef((he,ke)=>Le.createElement(Ee,Object.assign({ref:ke,suffixCls:ue,tagName:de},he)))}const b=Le.forwardRef((te,ue)=>{const{prefixCls:de,suffixCls:se,className:Ee,tagName:pe}=te,he=Be(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ke}=Le.useContext(Ie.E_),rt=ke("layout",de),[We,xe]=Me(rt),Pe=se?`${rt}-${se}`:rt;return We(Le.createElement(pe,Object.assign({className:at()(de||Pe,Ee,xe),ref:ue},he)))}),a=Le.forwardRef((te,ue)=>{const{direction:de}=Le.useContext(Ie.E_),[se,Ee]=Le.useState([]),{prefixCls:pe,className:he,rootClassName:ke,children:rt,hasSider:We,tagName:xe,style:Pe}=te,He=Be(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Ye=(0,st.Z)(He,["suffixCls"]),{getPrefixCls:ot,layout:vt}=Le.useContext(Ie.E_),Qt=ot("layout",pe),[Tt,on]=Me(Qt),An=at()(Qt,{[`${Qt}-has-sider`]:typeof We=="boolean"?We:se.length>0,[`${Qt}-rtl`]:de==="rtl"},vt==null?void 0:vt.className,he,ke,on),Ve=Le.useMemo(()=>({siderHook:{addSider:Qe=>{Ee(ht=>[].concat((0,ae.Z)(ht),[Qe]))},removeSider:Qe=>{Ee(ht=>ht.filter(tn=>tn!==Qe))}}}),[]);return Tt(Le.createElement(Ae.Provider,{value:Ve},Le.createElement(xe,Object.assign({ref:ue,className:An,style:Object.assign(Object.assign({},vt==null?void 0:vt.style),Pe)},Ye),rt)))}),E=oe({tagName:"div",displayName:"Layout"})(a),y=oe({suffixCls:"header",tagName:"header",displayName:"Header"})(b),x=oe({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(b),z=oe({suffixCls:"content",tagName:"main",displayName:"Content"})(b);var ee=E},76529:function(je,yt,ie){"use strict";ie.d(yt,{J:function(){return Ie}});var ae=ie(67294),ge=ie(4173),at=ie(60276),st=function(Se,$e){var De={};for(var we in Se)Object.prototype.hasOwnProperty.call(Se,we)&&$e.indexOf(we)<0&&(De[we]=Se[we]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,we=Object.getOwnPropertySymbols(Se);Me<we.length;Me++)$e.indexOf(we[Me])<0&&Object.prototype.propertyIsEnumerable.call(Se,we[Me])&&(De[we[Me]]=Se[we[Me]]);return De};const Le=ae.createContext(null),Ie=ae.forwardRef((Se,$e)=>{const{children:De}=Se,we=st(Se,["children"]),Me=ae.useContext(Le),Be=ae.useMemo(()=>Object.assign(Object.assign({},Me),we),[Me,we.prefixCls,we.mode,we.selectable]);return ae.createElement(Le.Provider,{value:Be},ae.createElement(ge.BR,null,(0,at.supportNodeRef)(De)?ae.cloneElement(De,{ref:$e}):De))});yt.Z=Le},68508:function(je,yt,ie){"use strict";ie.d(yt,{default:function(){return Pt}});var ae=ie(52073),ge=ie(67294),at=ie(71322),st=ie(94184),Le=ie.n(st),Ie=ie(53124),Se=function(qe,Xe){var Re={};for(var lt in qe)Object.prototype.hasOwnProperty.call(qe,lt)&&Xe.indexOf(lt)<0&&(Re[lt]=qe[lt]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,lt=Object.getOwnPropertySymbols(qe);Et<lt.length;Et++)Xe.indexOf(lt[Et])<0&&Object.prototype.propertyIsEnumerable.call(qe,lt[Et])&&(Re[lt[Et]]=qe[lt[Et]]);return Re},De=qe=>{const{prefixCls:Xe,className:Re,dashed:lt}=qe,Et=Se(qe,["prefixCls","className","dashed"]),{getPrefixCls:$t}=ge.useContext(Ie.E_),sn=$t("menu",Xe),pn=Le()({[`${sn}-item-divider-dashed`]:!!lt},Re);return ge.createElement(ae.iz,Object.assign({className:pn},Et))},we=ie(37419),Me=ie(10366),Be=ie(83062),Ae=ie(96159),b=(0,ge.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=qe=>{var Xe;const{className:Re,children:lt,icon:Et,title:$t,danger:sn}=qe,{prefixCls:pn,firstLevel:Cn,direction:$n,disableMenuItemTitleTooltip:wn,inlineCollapsed:Fn}=ge.useContext(b),jn=Fa=>{const Da=ge.createElement("span",{className:`${pn}-title-content`},lt);return(!Et||(0,Ae.l$)(lt)&<.type==="span")&<&&Fa&&Cn&&typeof lt=="string"?ge.createElement("div",{className:`${pn}-inline-collapsed-noicon`},lt.charAt(0)):Da},{siderCollapsed:ya}=ge.useContext(at.D);let Pa=$t;typeof $t=="undefined"?Pa=Cn?lt:"":$t===!1&&(Pa="");const ra={title:Pa};!ya&&!Fn&&(ra.title=null,ra.open=!1);const ca=(0,we.Z)(lt).length;let aa=ge.createElement(ae.ck,Object.assign({},(0,Me.Z)(qe,["title","icon","danger"]),{className:Le()({[`${pn}-item-danger`]:sn,[`${pn}-item-only-child`]:(Et?ca+1:ca)===1},Re),title:typeof $t=="string"?$t:void 0}),(0,Ae.Tm)(Et,{className:Le()((0,Ae.l$)(Et)?(Xe=Et.props)===null||Xe===void 0?void 0:Xe.className:"",`${pn}-item-icon`)}),jn(Fn));return wn||(aa=ge.createElement(Be.Z,Object.assign({},ra,{placement:$n==="rtl"?"left":"right",overlayClassName:`${pn}-inline-collapsed-tooltip`}),aa)),aa},x=qe=>{var Xe;const{popupClassName:Re,icon:lt,title:Et,theme:$t}=qe,sn=ge.useContext(b),{prefixCls:pn,inlineCollapsed:Cn,theme:$n}=sn,wn=(0,ae.Xl)();let Fn;if(!lt)Fn=Cn&&!wn.length&&Et&&typeof Et=="string"?ge.createElement("div",{className:`${pn}-inline-collapsed-noicon`},Et.charAt(0)):ge.createElement("span",{className:`${pn}-title-content`},Et);else{const ya=(0,Ae.l$)(Et)&&Et.type==="span";Fn=ge.createElement(ge.Fragment,null,(0,Ae.Tm)(lt,{className:Le()((0,Ae.l$)(lt)?(Xe=lt.props)===null||Xe===void 0?void 0:Xe.className:"",`${pn}-item-icon`)}),ya?Et:ge.createElement("span",{className:`${pn}-title-content`},Et))}const jn=ge.useMemo(()=>Object.assign(Object.assign({},sn),{firstLevel:!1}),[sn]);return ge.createElement(b.Provider,{value:jn},ge.createElement(ae.Wd,Object.assign({},(0,Me.Z)(qe,["icon"]),{title:Fn,popupClassName:Le()(pn,Re,`${pn}-${$t||$n}`)})))},z=ie(25877),ee=ie(60276),te=ie(33603),ue=ie(76529),de=function(qe,Xe){var Re={};for(var lt in qe)Object.prototype.hasOwnProperty.call(qe,lt)&&Xe.indexOf(lt)<0&&(Re[lt]=qe[lt]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,lt=Object.getOwnPropertySymbols(qe);Et<lt.length;Et++)Xe.indexOf(lt[Et])<0&&Object.prototype.propertyIsEnumerable.call(qe,lt[Et])&&(Re[lt[Et]]=qe[lt[Et]]);return Re};function se(qe){return(qe||[]).map((Xe,Re)=>{if(Xe&&typeof Xe=="object"){const lt=Xe,{label:Et,children:$t,key:sn,type:pn}=lt,Cn=de(lt,["label","children","key","type"]),$n=sn!=null?sn:`tmp-${Re}`;return $t||pn==="group"?pn==="group"?ge.createElement(ae.BW,Object.assign({key:$n},Cn,{title:Et}),se($t)):ge.createElement(x,Object.assign({key:$n},Cn,{title:Et}),se($t)):pn==="divider"?ge.createElement(De,Object.assign({key:$n},Cn)):ge.createElement(E,Object.assign({key:$n},Cn),Et)}return null}).filter(Xe=>Xe)}function Ee(qe){return ge.useMemo(()=>qe&&se(qe),[qe])}var pe=ie(84780),he=ie(14747),ke=ie(33507),rt=ie(67771),We=ie(50438),xe=ie(67968),Pe=ie(45503),Ye=qe=>{const{componentCls:Xe,motionDurationSlow:Re,horizontalLineHeight:lt,colorSplit:Et,lineWidth:$t,lineType:sn,itemPaddingInline:pn}=qe;return{[`${Xe}-horizontal`]:{lineHeight:lt,border:0,borderBottom:`${$t}px ${sn} ${Et}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Xe}-item, ${Xe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:pn},[`> ${Xe}-item:hover,
|
|
> ${Xe}-item-active,
|
|
> ${Xe}-submenu ${Xe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Xe}-item, ${Xe}-submenu-title`]:{transition:[`border-color ${Re}`,`background ${Re}`].join(",")},[`${Xe}-submenu-arrow`]:{display:"none"}}}},vt=qe=>{let{componentCls:Xe,menuArrowOffset:Re}=qe;return{[`${Xe}-rtl`]:{direction:"rtl"},[`${Xe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Xe}-rtl${Xe}-vertical,
|
|
${Xe}-submenu-rtl ${Xe}-vertical`]:{[`${Xe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Re})`},"&::after":{transform:`rotate(45deg) translateY(${Re})`}}}}};const Qt=qe=>Object.assign({},(0,he.oN)(qe));var on=(qe,Xe)=>{const{componentCls:Re,itemColor:lt,itemSelectedColor:Et,groupTitleColor:$t,itemBg:sn,subMenuItemBg:pn,itemSelectedBg:Cn,activeBarHeight:$n,activeBarWidth:wn,activeBarBorderWidth:Fn,motionDurationSlow:jn,motionEaseInOut:ya,motionEaseOut:Pa,itemPaddingInline:ra,motionDurationMid:ca,itemHoverColor:aa,lineType:Fa,colorSplit:Da,itemDisabledColor:no,dangerItemColor:za,dangerItemHoverColor:ka,dangerItemSelectedColor:Qa,dangerItemActiveBg:ma,dangerItemSelectedBg:_a,itemHoverBg:Bo,itemActiveBg:Za,menuSubMenuBg:fr,horizontalItemSelectedColor:zo,horizontalItemSelectedBg:Qo,horizontalItemBorderRadius:vr,horizontalItemHoverBg:Ao,popupBg:tr}=qe;return{[`${Re}-${Xe}, ${Re}-${Xe} > ${Re}`]:{color:lt,background:sn,[`&${Re}-root:focus-visible`]:Object.assign({},Qt(qe)),[`${Re}-item-group-title`]:{color:$t},[`${Re}-submenu-selected`]:{[`> ${Re}-submenu-title`]:{color:Et}},[`${Re}-item-disabled, ${Re}-submenu-disabled`]:{color:`${no} !important`},[`${Re}-item:not(${Re}-item-selected):not(${Re}-submenu-selected)`]:{[`&:hover, > ${Re}-submenu-title:hover`]:{color:aa}},[`&:not(${Re}-horizontal)`]:{[`${Re}-item:not(${Re}-item-selected)`]:{"&:hover":{backgroundColor:Bo},"&:active":{backgroundColor:Za}},[`${Re}-submenu-title`]:{"&:hover":{backgroundColor:Bo},"&:active":{backgroundColor:Za}}},[`${Re}-item-danger`]:{color:za,[`&${Re}-item:hover`]:{[`&:not(${Re}-item-selected):not(${Re}-submenu-selected)`]:{color:ka}},[`&${Re}-item:active`]:{background:ma}},[`${Re}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Re}-item-selected`]:{color:Et,[`&${Re}-item-danger`]:{color:Qa},"a, a:hover":{color:"inherit"}},[`& ${Re}-item-selected`]:{backgroundColor:Cn,[`&${Re}-item-danger`]:{backgroundColor:_a}},[`${Re}-item, ${Re}-submenu-title`]:{[`&:not(${Re}-item-disabled):focus-visible`]:Object.assign({},Qt(qe))},[`&${Re}-submenu > ${Re}`]:{backgroundColor:fr},[`&${Re}-popup > ${Re}`]:{backgroundColor:tr},[`&${Re}-horizontal`]:Object.assign(Object.assign({},Xe==="dark"?{borderBottom:0}:{}),{[`> ${Re}-item, > ${Re}-submenu`]:{top:Fn,marginTop:-Fn,marginBottom:0,borderRadius:vr,"&::after":{position:"absolute",insetInline:ra,bottom:0,borderBottom:`${$n}px solid transparent`,transition:`border-color ${jn} ${ya}`,content:'""'},"&:hover, &-active, &-open":{background:Ao,"&::after":{borderBottomWidth:$n,borderBottomColor:zo}},"&-selected":{color:zo,backgroundColor:Qo,"&:hover":{backgroundColor:Qo},"&::after":{borderBottomWidth:$n,borderBottomColor:zo}}}}),[`&${Re}-root`]:{[`&${Re}-inline, &${Re}-vertical`]:{borderInlineEnd:`${Fn}px ${Fa} ${Da}`}},[`&${Re}-inline`]:{[`${Re}-sub${Re}-inline`]:{background:pn},[`${Re}-item, ${Re}-submenu-title`]:Fn&&wn?{width:`calc(100% + ${Fn}px)`}:{},[`${Re}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${wn}px solid ${Et}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${ca} ${Pa}`,`opacity ${ca} ${Pa}`].join(","),content:'""'},[`&${Re}-item-danger`]:{"&::after":{borderInlineEndColor:Qa}}},[`${Re}-selected, ${Re}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${ca} ${ya}`,`opacity ${ca} ${ya}`].join(",")}}}}}};const An=qe=>{const{componentCls:Xe,itemHeight:Re,itemMarginInline:lt,padding:Et,menuArrowSize:$t,marginXS:sn,itemMarginBlock:pn}=qe,Cn=Et+$t+sn;return{[`${Xe}-item`]:{position:"relative",overflow:"hidden"},[`${Xe}-item, ${Xe}-submenu-title`]:{height:Re,lineHeight:`${Re}px`,paddingInline:Et,overflow:"hidden",textOverflow:"ellipsis",marginInline:lt,marginBlock:pn,width:`calc(100% - ${lt*2}px)`},[`> ${Xe}-item,
|
|
> ${Xe}-submenu > ${Xe}-submenu-title`]:{height:Re,lineHeight:`${Re}px`},[`${Xe}-item-group-list ${Xe}-submenu-title,
|
|
${Xe}-submenu-title`]:{paddingInlineEnd:Cn}}};var Qe=qe=>{const{componentCls:Xe,iconCls:Re,itemHeight:lt,colorTextLightSolid:Et,dropdownWidth:$t,controlHeightLG:sn,motionDurationMid:pn,motionEaseOut:Cn,paddingXL:$n,itemMarginInline:wn,fontSizeLG:Fn,motionDurationSlow:jn,paddingXS:ya,boxShadowSecondary:Pa,collapsedWidth:ra,collapsedIconSize:ca}=qe,aa={height:lt,lineHeight:`${lt}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Xe]:{"&-inline, &-vertical":Object.assign({[`&${Xe}-root`]:{boxShadow:"none"}},An(qe))},[`${Xe}-submenu-popup`]:{[`${Xe}-vertical`]:Object.assign(Object.assign({},An(qe)),{boxShadow:Pa})}},{[`${Xe}-submenu-popup ${Xe}-vertical${Xe}-sub`]:{minWidth:$t,maxHeight:`calc(100vh - ${sn*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Xe}-inline`]:{width:"100%",[`&${Xe}-root`]:{[`${Xe}-item, ${Xe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${jn}`,`background ${jn}`,`padding ${pn} ${Cn}`].join(","),[`> ${Xe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Xe}-sub${Xe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Xe}-submenu > ${Xe}-submenu-title`]:aa,[`& ${Xe}-item-group-title`]:{paddingInlineStart:$n}},[`${Xe}-item`]:aa}},{[`${Xe}-inline-collapsed`]:{width:ra,[`&${Xe}-root`]:{[`${Xe}-item, ${Xe}-submenu ${Xe}-submenu-title`]:{[`> ${Xe}-inline-collapsed-noicon`]:{fontSize:Fn,textAlign:"center"}}},[`> ${Xe}-item,
|
|
> ${Xe}-item-group > ${Xe}-item-group-list > ${Xe}-item,
|
|
> ${Xe}-item-group > ${Xe}-item-group-list > ${Xe}-submenu > ${Xe}-submenu-title,
|
|
> ${Xe}-submenu > ${Xe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Fn/2}px - ${wn}px)`,textOverflow:"clip",[`
|
|
${Xe}-submenu-arrow,
|
|
${Xe}-submenu-expand-icon
|
|
`]:{opacity:0},[`${Xe}-item-icon, ${Re}`]:{margin:0,fontSize:ca,lineHeight:`${lt}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Xe}-item-icon, ${Re}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Xe}-item-icon, ${Re}`]:{display:"none"},"a, a:hover":{color:Et}},[`${Xe}-item-group-title`]:Object.assign(Object.assign({},he.vS),{paddingInline:ya})}}]};const ht=qe=>{const{componentCls:Xe,motionDurationSlow:Re,motionDurationMid:lt,motionEaseInOut:Et,motionEaseOut:$t,iconCls:sn,iconSize:pn,iconMarginInlineEnd:Cn}=qe;return{[`${Xe}-item, ${Xe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Re}`,`background ${Re}`,`padding ${Re} ${Et}`].join(","),[`${Xe}-item-icon, ${sn}`]:{minWidth:pn,fontSize:pn,transition:[`font-size ${lt} ${$t}`,`margin ${Re} ${Et}`,`color ${Re}`].join(","),"+ span":{marginInlineStart:Cn,opacity:1,transition:[`opacity ${Re} ${Et}`,`margin ${Re}`,`color ${Re}`].join(",")}},[`${Xe}-item-icon`]:Object.assign({},(0,he.Ro)()),[`&${Xe}-item-only-child`]:{[`> ${sn}, > ${Xe}-item-icon`]:{marginInlineEnd:0}}},[`${Xe}-item-disabled, ${Xe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Xe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},tn=qe=>{const{componentCls:Xe,motionDurationSlow:Re,motionEaseInOut:lt,borderRadius:Et,menuArrowSize:$t,menuArrowOffset:sn}=qe;return{[`${Xe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:qe.margin,width:$t,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Re} ${lt}, opacity ${Re}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:$t*.6,height:$t*.15,backgroundColor:"currentcolor",borderRadius:Et,transition:[`background ${Re} ${lt}`,`transform ${Re} ${lt}`,`top ${Re} ${lt}`,`color ${Re} ${lt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${sn})`},"&::after":{transform:`rotate(-45deg) translateY(${sn})`}}}}},dt=qe=>{const{antCls:Xe,componentCls:Re,fontSize:lt,motionDurationSlow:Et,motionDurationMid:$t,motionEaseInOut:sn,paddingXS:pn,padding:Cn,colorSplit:$n,lineWidth:wn,zIndexPopup:Fn,borderRadiusLG:jn,subMenuItemBorderRadius:ya,menuArrowSize:Pa,menuArrowOffset:ra,lineType:ca,menuPanelMaskInset:aa,groupTitleLineHeight:Fa,groupTitleFontSize:Da}=qe;return[{"":{[`${Re}`]:Object.assign(Object.assign({},(0,he.dF)()),{"&-hidden":{display:"none"}})},[`${Re}-submenu-hidden`]:{display:"none"}},{[Re]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,he.Wf)(qe)),(0,he.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:lt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Et} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Re}-item`]:{flex:"none"}},[`${Re}-item, ${Re}-submenu, ${Re}-submenu-title`]:{borderRadius:qe.itemBorderRadius},[`${Re}-item-group-title`]:{padding:`${pn}px ${Cn}px`,fontSize:Da,lineHeight:Fa,transition:`all ${Et}`},[`&-horizontal ${Re}-submenu`]:{transition:[`border-color ${Et} ${sn}`,`background ${Et} ${sn}`].join(",")},[`${Re}-submenu, ${Re}-submenu-inline`]:{transition:[`border-color ${Et} ${sn}`,`background ${Et} ${sn}`,`padding ${$t} ${sn}`].join(",")},[`${Re}-submenu ${Re}-sub`]:{cursor:"initial",transition:[`background ${Et} ${sn}`,`padding ${Et} ${sn}`].join(",")},[`${Re}-title-content`]:{transition:`color ${Et}`},[`${Re}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Re}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:$n,borderStyle:ca,borderWidth:0,borderTopWidth:wn,marginBlock:wn,padding:0,"&-dashed":{borderStyle:"dashed"}}}),ht(qe)),{[`${Re}-item-group`]:{[`${Re}-item-group-list`]:{margin:0,padding:0,[`${Re}-item, ${Re}-submenu-title`]:{paddingInline:`${lt*2}px ${Cn}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Fn,borderRadius:jn,boxShadow:"none",transformOrigin:"0 0",[`&${Re}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${aa}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:aa},"\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:qe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:qe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:qe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:qe.paddingXS},[`> ${Re}`]:Object.assign(Object.assign(Object.assign({borderRadius:jn},ht(qe)),tn(qe)),{[`${Re}-item, ${Re}-submenu > ${Re}-submenu-title`]:{borderRadius:ya},[`${Re}-submenu-title::after`]:{transition:`transform ${Et} ${sn}`}})}}),tn(qe)),{[`&-inline-collapsed ${Re}-submenu-arrow,
|
|
&-inline ${Re}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ra})`},"&::after":{transform:`rotate(45deg) translateX(-${ra})`}},[`${Re}-submenu-open${Re}-submenu-inline > ${Re}-submenu-title > ${Re}-submenu-arrow`]:{transform:`translateY(-${Pa*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${ra})`},"&::before":{transform:`rotate(45deg) translateX(${ra})`}}})},{[`${Xe}-layout-header`]:{[Re]:{lineHeight:"inherit"}}}]};var nn=(qe,Xe)=>(0,xe.Z)("Menu",lt=>{if(Xe===!1)return[];const{colorBgElevated:Et,colorPrimary:$t,colorTextLightSolid:sn,controlHeightLG:pn,fontSize:Cn,darkItemColor:$n,darkDangerItemColor:wn,darkItemBg:Fn,darkSubMenuItemBg:jn,darkItemSelectedColor:ya,darkItemSelectedBg:Pa,darkDangerItemSelectedBg:ra,darkItemHoverBg:ca,darkGroupTitleColor:aa,darkItemHoverColor:Fa,darkItemDisabledColor:Da,darkDangerItemHoverColor:no,darkDangerItemSelectedColor:za,darkDangerItemActiveBg:ka}=lt,Qa=Cn/7*5,ma=(0,Pe.TS)(lt,{menuArrowSize:Qa,menuHorizontalHeight:pn*1.15,menuArrowOffset:`${Qa*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Et}),_a=(0,Pe.TS)(ma,{itemColor:$n,itemHoverColor:Fa,groupTitleColor:aa,itemSelectedColor:ya,itemBg:Fn,popupBg:Fn,subMenuItemBg:jn,itemActiveBg:"transparent",itemSelectedBg:Pa,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:ca,itemDisabledColor:Da,dangerItemColor:wn,dangerItemHoverColor:no,dangerItemSelectedColor:za,dangerItemActiveBg:ka,dangerItemSelectedBg:ra,menuSubMenuBg:jn,horizontalItemSelectedColor:sn,horizontalItemSelectedBg:$t});return[dt(ma),Ye(ma),Qe(ma),on(ma,"light"),on(_a,"dark"),vt(ma),(0,ke.Z)(ma),(0,rt.oN)(ma,"slide-up"),(0,rt.oN)(ma,"slide-down"),(0,We._y)(ma,"zoom-big")]},lt=>{const{colorPrimary:Et,colorError:$t,colorTextDisabled:sn,colorErrorBg:pn,colorText:Cn,colorTextDescription:$n,colorBgContainer:wn,colorFillAlter:Fn,colorFillContent:jn,lineWidth:ya,lineWidthBold:Pa,controlItemBgActive:ra,colorBgTextHover:ca,controlHeightLG:aa,lineHeight:Fa,colorBgElevated:Da,marginXXS:no,padding:za,fontSize:ka,controlHeightSM:Qa,fontSizeLG:ma,colorTextLightSolid:_a,colorErrorHover:Bo}=lt,Za=new pe.C(_a).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:lt.zIndexPopupBase+50,radiusItem:lt.borderRadiusLG,itemBorderRadius:lt.borderRadiusLG,radiusSubMenuItem:lt.borderRadiusSM,subMenuItemBorderRadius:lt.borderRadiusSM,colorItemText:Cn,itemColor:Cn,colorItemTextHover:Cn,itemHoverColor:Cn,colorItemTextHoverHorizontal:Et,horizontalItemHoverColor:Et,colorGroupTitle:$n,groupTitleColor:$n,colorItemTextSelected:Et,itemSelectedColor:Et,colorItemTextSelectedHorizontal:Et,horizontalItemSelectedColor:Et,colorItemBg:wn,itemBg:wn,colorItemBgHover:ca,itemHoverBg:ca,colorItemBgActive:jn,itemActiveBg:ra,colorSubItemBg:Fn,subMenuItemBg:Fn,colorItemBgSelected:ra,itemSelectedBg:ra,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Pa,activeBarHeight:Pa,colorActiveBarBorderSize:ya,activeBarBorderWidth:ya,colorItemTextDisabled:sn,itemDisabledColor:sn,colorDangerItemText:$t,dangerItemColor:$t,colorDangerItemTextHover:$t,dangerItemHoverColor:$t,colorDangerItemTextSelected:$t,dangerItemSelectedColor:$t,colorDangerItemBgActive:pn,dangerItemActiveBg:pn,colorDangerItemBgSelected:pn,dangerItemSelectedBg:pn,itemMarginInline:lt.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:aa,groupTitleLineHeight:Fa,collapsedWidth:aa*2,popupBg:Da,itemMarginBlock:no,itemPaddingInline:za,horizontalLineHeight:`${aa*1.15}px`,iconSize:ka,iconMarginInlineEnd:Qa-ka,collapsedIconSize:ma,groupTitleFontSize:ka,darkItemDisabledColor:new pe.C(_a).setAlpha(.25).toRgbString(),darkItemColor:Za,darkDangerItemColor:$t,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:_a,darkItemSelectedBg:Et,darkDangerItemSelectedBg:$t,darkItemHoverBg:"transparent",darkGroupTitleColor:Za,darkItemHoverColor:_a,darkDangerItemHoverColor:Bo,darkDangerItemSelectedColor:_a,darkDangerItemActiveBg:$t}},{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"]]})(qe),be=function(qe,Xe){var Re={};for(var lt in qe)Object.prototype.hasOwnProperty.call(qe,lt)&&Xe.indexOf(lt)<0&&(Re[lt]=qe[lt]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,lt=Object.getOwnPropertySymbols(qe);Et<lt.length;Et++)Xe.indexOf(lt[Et])<0&&Object.prototype.propertyIsEnumerable.call(qe,lt[Et])&&(Re[lt[Et]]=qe[lt[Et]]);return Re},an=(0,ge.forwardRef)((qe,Xe)=>{var Re,lt;const Et=ge.useContext(ue.Z),$t=Et||{},{getPrefixCls:sn,getPopupContainer:pn,direction:Cn,menu:$n}=ge.useContext(Ie.E_),wn=sn(),{prefixCls:Fn,className:jn,style:ya,theme:Pa="light",expandIcon:ra,_internalDisableMenuItemTitleTooltip:ca,inlineCollapsed:aa,siderCollapsed:Fa,items:Da,children:no,rootClassName:za,mode:ka,selectable:Qa,onClick:ma,overflowedIndicatorPopupClassName:_a}=qe,Bo=be(qe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Za=(0,Me.Z)(Bo,["collapsedWidth"]),fr=Ee(Da)||no;(Re=$t.validator)===null||Re===void 0||Re.call($t,{mode:ka});const zo=(0,ee.useEvent)(function(){var ro;ma==null||ma.apply(void 0,arguments),(ro=$t.onClick)===null||ro===void 0||ro.call($t)}),Qo=$t.mode||ka,vr=Qa!=null?Qa:$t.selectable,Ao=ge.useMemo(()=>Fa!==void 0?Fa:aa,[aa,Fa]),tr={horizontal:{motionName:`${wn}-slide-up`},inline:(0,te.Z)(wn),other:{motionName:`${wn}-zoom-big`}},Co=sn("menu",Fn||$t.prefixCls),[Nr,ko]=nn(Co,!Et),_o=Le()(`${Co}-${Pa}`,$n==null?void 0:$n.className,jn);let xo;if(typeof ra=="function")xo=ra;else if(ra===null||ra===!1)xo=null;else if($t.expandIcon===null||$t.expandIcon===!1)xo=null;else{const ro=ra!=null?ra:$t.expandIcon;xo=(0,Ae.Tm)(ro,{className:Le()(`${Co}-submenu-expand-icon`,(0,Ae.l$)(ro)?(lt=ro.props)===null||lt===void 0?void 0:lt.className:"")})}const nr=ge.useMemo(()=>({prefixCls:Co,inlineCollapsed:Ao||!1,direction:Cn,firstLevel:!0,theme:Pa,mode:Qo,disableMenuItemTitleTooltip:ca}),[Co,Ao,Cn,ca,Pa]);return Nr(ge.createElement(ue.Z.Provider,{value:null},ge.createElement(b.Provider,{value:nr},ge.createElement(ae.ZP,Object.assign({getPopupContainer:pn,overflowedIndicator:ge.createElement(z.Z,null),overflowedIndicatorPopupClassName:Le()(Co,`${Co}-${Pa}`,_a),mode:Qo,selectable:vr,onClick:zo},Za,{inlineCollapsed:Ao,style:Object.assign(Object.assign({},$n==null?void 0:$n.style),ya),className:_o,prefixCls:Co,direction:Cn,defaultMotions:tr,expandIcon:xo,ref:Xe,rootClassName:Le()(za,ko)}),fr))))});const Mn=(0,ge.forwardRef)((qe,Xe)=>{const Re=(0,ge.useRef)(null),lt=ge.useContext(at.D);return(0,ge.useImperativeHandle)(Xe,()=>({menu:Re.current,focus:Et=>{var $t;($t=Re.current)===null||$t===void 0||$t.focus(Et)}})),ge.createElement(an,Object.assign({ref:Re},qe,lt))});Mn.Item=E,Mn.SubMenu=x,Mn.Divider=De,Mn.ItemGroup=ae.BW;var Pt=Mn},62661:function(je,yt){"use strict";var ie;var ae=Symbol.for("react.element"),ge=Symbol.for("react.portal"),at=Symbol.for("react.fragment"),st=Symbol.for("react.strict_mode"),Le=Symbol.for("react.profiler"),Ie=Symbol.for("react.provider"),Se=Symbol.for("react.context"),$e=Symbol.for("react.server_context"),De=Symbol.for("react.forward_ref"),we=Symbol.for("react.suspense"),Me=Symbol.for("react.suspense_list"),Be=Symbol.for("react.memo"),Ae=Symbol.for("react.lazy"),oe=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function a(E){if(typeof E=="object"&&E!==null){var y=E.$$typeof;switch(y){case ae:switch(E=E.type,E){case at:case Le:case st:case we:case Me:return E;default:switch(E=E&&E.$$typeof,E){case $e:case Se:case De:case Ae:case Be:case Ie:return E;default:return y}}case ge:return y}}}ie=Se,ie=Ie,ie=ae,ie=De,ie=at,ie=Ae,ie=Be,ie=ge,ie=Le,ie=st,ie=we,ie=Me,ie=function(){return!1},ie=function(){return!1},ie=function(E){return a(E)===Se},ie=function(E){return a(E)===Ie},ie=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===ae},ie=function(E){return a(E)===De},ie=function(E){return a(E)===at},ie=function(E){return a(E)===Ae},yt.isMemo=function(E){return a(E)===Be},ie=function(E){return a(E)===ge},ie=function(E){return a(E)===Le},ie=function(E){return a(E)===st},ie=function(E){return a(E)===we},ie=function(E){return a(E)===Me},ie=function(E){return typeof E=="string"||typeof E=="function"||E===at||E===Le||E===st||E===we||E===Me||E===oe||typeof E=="object"&&E!==null&&(E.$$typeof===Ae||E.$$typeof===Be||E.$$typeof===Ie||E.$$typeof===Se||E.$$typeof===De||E.$$typeof===b||E.getModuleId!==void 0)},ie=a},95845:function(je,yt,ie){"use strict";je.exports=ie(62661)},72665:function(je,yt){"use strict";var ie;var ae=typeof Symbol=="function"&&Symbol.for,ge=ae?Symbol.for("react.element"):60103,at=ae?Symbol.for("react.portal"):60106,st=ae?Symbol.for("react.fragment"):60107,Le=ae?Symbol.for("react.strict_mode"):60108,Ie=ae?Symbol.for("react.profiler"):60114,Se=ae?Symbol.for("react.provider"):60109,$e=ae?Symbol.for("react.context"):60110,De=ae?Symbol.for("react.async_mode"):60111,we=ae?Symbol.for("react.concurrent_mode"):60111,Me=ae?Symbol.for("react.forward_ref"):60112,Be=ae?Symbol.for("react.suspense"):60113,Ae=ae?Symbol.for("react.suspense_list"):60120,oe=ae?Symbol.for("react.memo"):60115,b=ae?Symbol.for("react.lazy"):60116,a=ae?Symbol.for("react.block"):60121,E=ae?Symbol.for("react.fundamental"):60117,y=ae?Symbol.for("react.responder"):60118,x=ae?Symbol.for("react.scope"):60119;function z(te){if(typeof te=="object"&&te!==null){var ue=te.$$typeof;switch(ue){case ge:switch(te=te.type,te){case De:case we:case st:case Ie:case Le:case Be:return te;default:switch(te=te&&te.$$typeof,te){case $e:case Me:case b:case oe:case Se:return te;default:return ue}}case at:return ue}}}function ee(te){return z(te)===we}ie=De,ie=we,ie=$e,ie=Se,ie=ge,ie=Me,ie=st,ie=b,ie=oe,ie=at,ie=Ie,ie=Le,ie=Be,ie=function(te){return ee(te)||z(te)===De},ie=ee,ie=function(te){return z(te)===$e},ie=function(te){return z(te)===Se},ie=function(te){return typeof te=="object"&&te!==null&&te.$$typeof===ge},ie=function(te){return z(te)===Me},ie=function(te){return z(te)===st},ie=function(te){return z(te)===b},yt.isMemo=function(te){return z(te)===oe},ie=function(te){return z(te)===at},ie=function(te){return z(te)===Ie},ie=function(te){return z(te)===Le},ie=function(te){return z(te)===Be},ie=function(te){return typeof te=="string"||typeof te=="function"||te===st||te===we||te===Ie||te===Le||te===Be||te===Ae||typeof te=="object"&&te!==null&&(te.$$typeof===b||te.$$typeof===oe||te.$$typeof===Se||te.$$typeof===$e||te.$$typeof===Me||te.$$typeof===E||te.$$typeof===y||te.$$typeof===x||te.$$typeof===a)},ie=z},12060:function(je,yt,ie){"use strict";je.exports=ie(72665)},42767:function(je,yt){"use strict";var ie;var ae=typeof Symbol=="function"&&Symbol.for,ge=ae?Symbol.for("react.element"):60103,at=ae?Symbol.for("react.portal"):60106,st=ae?Symbol.for("react.fragment"):60107,Le=ae?Symbol.for("react.strict_mode"):60108,Ie=ae?Symbol.for("react.profiler"):60114,Se=ae?Symbol.for("react.provider"):60109,$e=ae?Symbol.for("react.context"):60110,De=ae?Symbol.for("react.async_mode"):60111,we=ae?Symbol.for("react.concurrent_mode"):60111,Me=ae?Symbol.for("react.forward_ref"):60112,Be=ae?Symbol.for("react.suspense"):60113,Ae=ae?Symbol.for("react.suspense_list"):60120,oe=ae?Symbol.for("react.memo"):60115,b=ae?Symbol.for("react.lazy"):60116,a=ae?Symbol.for("react.block"):60121,E=ae?Symbol.for("react.fundamental"):60117,y=ae?Symbol.for("react.responder"):60118,x=ae?Symbol.for("react.scope"):60119;function z(te){if(typeof te=="object"&&te!==null){var ue=te.$$typeof;switch(ue){case ge:switch(te=te.type,te){case De:case we:case st:case Ie:case Le:case Be:return te;default:switch(te=te&&te.$$typeof,te){case $e:case Me:case b:case oe:case Se:return te;default:return ue}}case at:return ue}}}function ee(te){return z(te)===we}ie=De,ie=we,ie=$e,ie=Se,ie=ge,ie=Me,ie=st,ie=b,ie=oe,ie=at,ie=Ie,ie=Le,ie=Be,ie=function(te){return ee(te)||z(te)===De},ie=ee,ie=function(te){return z(te)===$e},ie=function(te){return z(te)===Se},ie=function(te){return typeof te=="object"&&te!==null&&te.$$typeof===ge},ie=function(te){return z(te)===Me},yt.isFragment=function(te){return z(te)===st},ie=function(te){return z(te)===b},ie=function(te){return z(te)===oe},ie=function(te){return z(te)===at},ie=function(te){return z(te)===Ie},ie=function(te){return z(te)===Le},ie=function(te){return z(te)===Be},ie=function(te){return typeof te=="string"||typeof te=="function"||te===st||te===we||te===Ie||te===Le||te===Be||te===Ae||typeof te=="object"&&te!==null&&(te.$$typeof===b||te.$$typeof===oe||te.$$typeof===Se||te.$$typeof===$e||te.$$typeof===Me||te.$$typeof===E||te.$$typeof===y||te.$$typeof===x||te.$$typeof===a)},ie=z},16357:function(je,yt,ie){"use strict";je.exports=ie(42767)},86128:function(je,yt,ie){"use strict";ie.d(yt,{Z:function(){return de}});var ae=ie(87462),ge=ie(4942),at=ie(45987),st=ie(1413),Le=ie(15671),Ie=ie(43144),Se=ie(97326),$e=ie(60136),De=ie(51630),we=ie(67294),Me=ie(94184),Be=ie.n(Me),Ae=ie(64217),oe=ie(27822),b=function(Ee){for(var pe=Ee.prefixCls,he=Ee.level,ke=Ee.isStart,rt=Ee.isEnd,We="".concat(pe,"-indent-unit"),xe=[],Pe=0;Pe<he;Pe+=1){var He;xe.push(we.createElement("span",{key:Pe,className:Be()(We,(He={},(0,ge.Z)(He,"".concat(We,"-start"),ke[Pe]),(0,ge.Z)(He,"".concat(We,"-end"),rt[Pe]),He))}))}return we.createElement("span",{"aria-hidden":"true",className:"".concat(pe,"-indent")},xe)},a=we.memo(b),E=ie(1089),y=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],x="open",z="close",ee="---",te=function(se){(0,$e.Z)(pe,se);var Ee=(0,De.Z)(pe);function pe(){var he;(0,Le.Z)(this,pe);for(var ke=arguments.length,rt=new Array(ke),We=0;We<ke;We++)rt[We]=arguments[We];return he=Ee.call.apply(Ee,[this].concat(rt)),he.state={dragNodeHighlight:!1},he.selectHandle=void 0,he.onSelectorClick=function(xe){var Pe=he.props.context.onNodeClick;Pe(xe,(0,E.F)(he.props)),he.isSelectable()?he.onSelect(xe):he.onCheck(xe)},he.onSelectorDoubleClick=function(xe){var Pe=he.props.context.onNodeDoubleClick;Pe(xe,(0,E.F)(he.props))},he.onSelect=function(xe){if(!he.isDisabled()){var Pe=he.props.context.onNodeSelect;xe.preventDefault(),Pe(xe,(0,E.F)(he.props))}},he.onCheck=function(xe){if(!he.isDisabled()){var Pe=he.props,He=Pe.disableCheckbox,Ye=Pe.checked,ot=he.props.context.onNodeCheck;if(!(!he.isCheckable()||He)){xe.preventDefault();var vt=!Ye;ot(xe,(0,E.F)(he.props),vt)}}},he.onMouseEnter=function(xe){var Pe=he.props.context.onNodeMouseEnter;Pe(xe,(0,E.F)(he.props))},he.onMouseLeave=function(xe){var Pe=he.props.context.onNodeMouseLeave;Pe(xe,(0,E.F)(he.props))},he.onContextMenu=function(xe){var Pe=he.props.context.onNodeContextMenu;Pe(xe,(0,E.F)(he.props))},he.onDragStart=function(xe){var Pe=he.props.context.onNodeDragStart;xe.stopPropagation(),he.setState({dragNodeHighlight:!0}),Pe(xe,(0,Se.Z)(he));try{xe.dataTransfer.setData("text/plain","")}catch(He){}},he.onDragEnter=function(xe){var Pe=he.props.context.onNodeDragEnter;xe.preventDefault(),xe.stopPropagation(),Pe(xe,(0,Se.Z)(he))},he.onDragOver=function(xe){var Pe=he.props.context.onNodeDragOver;xe.preventDefault(),xe.stopPropagation(),Pe(xe,(0,Se.Z)(he))},he.onDragLeave=function(xe){var Pe=he.props.context.onNodeDragLeave;xe.stopPropagation(),Pe(xe,(0,Se.Z)(he))},he.onDragEnd=function(xe){var Pe=he.props.context.onNodeDragEnd;xe.stopPropagation(),he.setState({dragNodeHighlight:!1}),Pe(xe,(0,Se.Z)(he))},he.onDrop=function(xe){var Pe=he.props.context.onNodeDrop;xe.preventDefault(),xe.stopPropagation(),he.setState({dragNodeHighlight:!1}),Pe(xe,(0,Se.Z)(he))},he.onExpand=function(xe){var Pe=he.props,He=Pe.loading,Ye=Pe.context.onNodeExpand;He||Ye(xe,(0,E.F)(he.props))},he.setSelectHandle=function(xe){he.selectHandle=xe},he.getNodeState=function(){var xe=he.props.expanded;return he.isLeaf()?null:xe?x:z},he.hasChildren=function(){var xe=he.props.eventKey,Pe=he.props.context.keyEntities,He=Pe[xe]||{},Ye=He.children;return!!(Ye||[]).length},he.isLeaf=function(){var xe=he.props,Pe=xe.isLeaf,He=xe.loaded,Ye=he.props.context.loadData,ot=he.hasChildren();return Pe===!1?!1:Pe||!Ye&&!ot||Ye&&He&&!ot},he.isDisabled=function(){var xe=he.props.disabled,Pe=he.props.context.disabled;return!!(Pe||xe)},he.isCheckable=function(){var xe=he.props.checkable,Pe=he.props.context.checkable;return!Pe||xe===!1?!1:Pe},he.syncLoadData=function(xe){var Pe=xe.expanded,He=xe.loading,Ye=xe.loaded,ot=he.props.context,vt=ot.loadData,Qt=ot.onNodeLoad;He||vt&&Pe&&!he.isLeaf()&&!he.hasChildren()&&!Ye&&Qt((0,E.F)(he.props))},he.isDraggable=function(){var xe=he.props,Pe=xe.data,He=xe.context.draggable;return!!(He&&(!He.nodeDraggable||He.nodeDraggable(Pe)))},he.renderDragHandler=function(){var xe=he.props.context,Pe=xe.draggable,He=xe.prefixCls;return Pe!=null&&Pe.icon?we.createElement("span",{className:"".concat(He,"-draggable-icon")},Pe.icon):null},he.renderSwitcherIconDom=function(xe){var Pe=he.props.switcherIcon,He=he.props.context.switcherIcon,Ye=Pe||He;return typeof Ye=="function"?Ye((0,st.Z)((0,st.Z)({},he.props),{},{isLeaf:xe})):Ye},he.renderSwitcher=function(){var xe=he.props.expanded,Pe=he.props.context.prefixCls;if(he.isLeaf()){var He=he.renderSwitcherIconDom(!0);return He!==!1?we.createElement("span",{className:Be()("".concat(Pe,"-switcher"),"".concat(Pe,"-switcher-noop"))},He):null}var Ye=Be()("".concat(Pe,"-switcher"),"".concat(Pe,"-switcher_").concat(xe?x:z)),ot=he.renderSwitcherIconDom(!1);return ot!==!1?we.createElement("span",{onClick:he.onExpand,className:Ye},ot):null},he.renderCheckbox=function(){var xe=he.props,Pe=xe.checked,He=xe.halfChecked,Ye=xe.disableCheckbox,ot=he.props.context.prefixCls,vt=he.isDisabled(),Qt=he.isCheckable();if(!Qt)return null;var Tt=typeof Qt!="boolean"?Qt:null;return we.createElement("span",{className:Be()("".concat(ot,"-checkbox"),Pe&&"".concat(ot,"-checkbox-checked"),!Pe&&He&&"".concat(ot,"-checkbox-indeterminate"),(vt||Ye)&&"".concat(ot,"-checkbox-disabled")),onClick:he.onCheck},Tt)},he.renderIcon=function(){var xe=he.props.loading,Pe=he.props.context.prefixCls;return we.createElement("span",{className:Be()("".concat(Pe,"-iconEle"),"".concat(Pe,"-icon__").concat(he.getNodeState()||"docu"),xe&&"".concat(Pe,"-icon_loading"))})},he.renderSelector=function(){var xe=he.state.dragNodeHighlight,Pe=he.props,He=Pe.title,Ye=He===void 0?ee:He,ot=Pe.selected,vt=Pe.icon,Qt=Pe.loading,Tt=Pe.data,on=he.props.context,An=on.prefixCls,Ve=on.showIcon,Qe=on.icon,ht=on.loadData,tn=on.titleRender,dt=he.isDisabled(),nn="".concat(An,"-node-content-wrapper"),be;if(Ve){var Lt=vt||Qe;be=Lt?we.createElement("span",{className:Be()("".concat(An,"-iconEle"),"".concat(An,"-icon__customize"))},typeof Lt=="function"?Lt(he.props):Lt):he.renderIcon()}else ht&&Qt&&(be=he.renderIcon());var an;typeof Ye=="function"?an=Ye(Tt):tn?an=tn(Tt):an=Ye;var Mn=we.createElement("span",{className:"".concat(An,"-title")},an);return we.createElement("span",{ref:he.setSelectHandle,title:typeof Ye=="string"?Ye:"",className:Be()("".concat(nn),"".concat(nn,"-").concat(he.getNodeState()||"normal"),!dt&&(ot||xe)&&"".concat(An,"-node-selected")),onMouseEnter:he.onMouseEnter,onMouseLeave:he.onMouseLeave,onContextMenu:he.onContextMenu,onClick:he.onSelectorClick,onDoubleClick:he.onSelectorDoubleClick},be,Mn,he.renderDropIndicator())},he.renderDropIndicator=function(){var xe=he.props,Pe=xe.disabled,He=xe.eventKey,Ye=he.props.context,ot=Ye.draggable,vt=Ye.dropLevelOffset,Qt=Ye.dropPosition,Tt=Ye.prefixCls,on=Ye.indent,An=Ye.dropIndicatorRender,Ve=Ye.dragOverNodeKey,Qe=Ye.direction,ht=!!ot,tn=!Pe&&ht&&Ve===He;return tn?An({dropPosition:Qt,dropLevelOffset:vt,indent:on,prefixCls:Tt,direction:Qe}):null},he}return(0,Ie.Z)(pe,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var ke=this.props.selectable,rt=this.props.context.selectable;return typeof ke=="boolean"?ke:rt}},{key:"render",value:function(){var ke,rt=this.props,We=rt.eventKey,xe=rt.className,Pe=rt.style,He=rt.dragOver,Ye=rt.dragOverGapTop,ot=rt.dragOverGapBottom,vt=rt.isLeaf,Qt=rt.isStart,Tt=rt.isEnd,on=rt.expanded,An=rt.selected,Ve=rt.checked,Qe=rt.halfChecked,ht=rt.loading,tn=rt.domRef,dt=rt.active,nn=rt.data,be=rt.onMouseMove,Lt=rt.selectable,an=(0,at.Z)(rt,y),Mn=this.props.context,Pt=Mn.prefixCls,qe=Mn.filterTreeNode,Xe=Mn.keyEntities,Re=Mn.dropContainerKey,lt=Mn.dropTargetKey,Et=Mn.draggingNodeKey,$t=this.isDisabled(),sn=(0,Ae.Z)(an,{aria:!0,data:!0}),pn=Xe[We]||{},Cn=pn.level,$n=Tt[Tt.length-1],wn=this.isDraggable(),Fn=!$t&&wn,jn=Et===We,ya=Lt!==void 0?{"aria-selected":!!Lt}:void 0;return we.createElement("div",(0,ae.Z)({ref:tn,className:Be()(xe,"".concat(Pt,"-treenode"),(ke={},(0,ge.Z)(ke,"".concat(Pt,"-treenode-disabled"),$t),(0,ge.Z)(ke,"".concat(Pt,"-treenode-switcher-").concat(on?"open":"close"),!vt),(0,ge.Z)(ke,"".concat(Pt,"-treenode-checkbox-checked"),Ve),(0,ge.Z)(ke,"".concat(Pt,"-treenode-checkbox-indeterminate"),Qe),(0,ge.Z)(ke,"".concat(Pt,"-treenode-selected"),An),(0,ge.Z)(ke,"".concat(Pt,"-treenode-loading"),ht),(0,ge.Z)(ke,"".concat(Pt,"-treenode-active"),dt),(0,ge.Z)(ke,"".concat(Pt,"-treenode-leaf-last"),$n),(0,ge.Z)(ke,"".concat(Pt,"-treenode-draggable"),wn),(0,ge.Z)(ke,"dragging",jn),(0,ge.Z)(ke,"drop-target",lt===We),(0,ge.Z)(ke,"drop-container",Re===We),(0,ge.Z)(ke,"drag-over",!$t&&He),(0,ge.Z)(ke,"drag-over-gap-top",!$t&&Ye),(0,ge.Z)(ke,"drag-over-gap-bottom",!$t&&ot),(0,ge.Z)(ke,"filter-node",qe&&qe((0,E.F)(this.props))),ke)),style:Pe,draggable:Fn,"aria-grabbed":jn,onDragStart:Fn?this.onDragStart:void 0,onDragEnter:wn?this.onDragEnter:void 0,onDragOver:wn?this.onDragOver:void 0,onDragLeave:wn?this.onDragLeave:void 0,onDrop:wn?this.onDrop:void 0,onDragEnd:wn?this.onDragEnd:void 0,onMouseMove:be},ya,sn),we.createElement(a,{prefixCls:Pt,level:Cn,isStart:Qt,isEnd:Tt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),pe}(we.Component),ue=function(Ee){return we.createElement(oe.k.Consumer,null,function(pe){return we.createElement(te,(0,ae.Z)({},Ee,{context:pe}))})};ue.displayName="TreeNode",ue.isTreeNode=1;var de=ue},27822:function(je,yt,ie){"use strict";ie.d(yt,{k:function(){return ge}});var ae=ie(67294),ge=ae.createContext(null)},10225:function(je,yt,ie){"use strict";ie.d(yt,{BT:function(){return a},Ds:function(){return Me},E6:function(){return x},L0:function(){return $e},OM:function(){return b},_5:function(){return Se},bt:function(){return we},r7:function(){return z},wA:function(){return Be},yx:function(){return De}});var ae=ie(74902),ge=ie(71002),at=ie(67294),st=ie(80334),Le=ie(86128),Ie=null;function Se(ee,te){if(!ee)return[];var ue=ee.slice(),de=ue.indexOf(te);return de>=0&&ue.splice(de,1),ue}function $e(ee,te){var ue=(ee||[]).slice();return ue.indexOf(te)===-1&&ue.push(te),ue}function De(ee){return ee.split("-")}function we(ee,te){return"".concat(ee,"-").concat(te)}function Me(ee){return ee&&ee.type&&ee.type.isTreeNode}function Be(ee,te){var ue=[],de=te[ee];function se(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ee.forEach(function(pe){var he=pe.key,ke=pe.children;ue.push(he),se(ke)})}return se(de.children),ue}function Ae(ee){if(ee.parent){var te=De(ee.pos);return Number(te[te.length-1])===ee.parent.children.length-1}return!1}function oe(ee){var te=De(ee.pos);return Number(te[te.length-1])===0}function b(ee,te,ue,de,se,Ee,pe,he,ke,rt){var We,xe=ee.clientX,Pe=ee.clientY,He=ee.target.getBoundingClientRect(),Ye=He.top,ot=He.height,vt=(rt==="rtl"?-1:1)*(((se==null?void 0:se.x)||0)-xe),Qt=(vt-12)/de,Tt=he[ue.props.eventKey];if(Pe<Ye+ot/2){var on=pe.findIndex(function(Pt){return Pt.key===Tt.key}),An=on<=0?0:on-1,Ve=pe[An].key;Tt=he[Ve]}var Qe=Tt.key,ht=Tt,tn=Tt.key,dt=0,nn=0;if(!ke.includes(Qe))for(var be=0;be<Qt&&Ae(Tt);be+=1)Tt=Tt.parent,nn+=1;var Lt=te.props.data,an=Tt.node,Mn=!0;return oe(Tt)&&Tt.level===0&&Pe<Ye+ot/2&&Ee({dragNode:Lt,dropNode:an,dropPosition:-1})&&Tt.key===ue.props.eventKey?dt=-1:(ht.children||[]).length&&ke.includes(tn)?Ee({dragNode:Lt,dropNode:an,dropPosition:0})?dt=0:Mn=!1:nn===0?Qt>-1.5?Ee({dragNode:Lt,dropNode:an,dropPosition:1})?dt=1:Mn=!1:Ee({dragNode:Lt,dropNode:an,dropPosition:0})?dt=0:Ee({dragNode:Lt,dropNode:an,dropPosition:1})?dt=1:Mn=!1:Ee({dragNode:Lt,dropNode:an,dropPosition:1})?dt=1:Mn=!1,{dropPosition:dt,dropLevelOffset:nn,dropTargetKey:Tt.key,dropTargetPos:Tt.pos,dragOverNodeKey:tn,dropContainerKey:dt===0?null:((We=Tt.parent)===null||We===void 0?void 0:We.key)||null,dropAllowed:Mn}}function a(ee,te){if(ee){var ue=te.multiple;return ue?ee.slice():ee.length?[ee[0]]:ee}}var E=function(te){return te};function y(ee,te){if(!ee)return[];var ue=te||{},de=ue.processProps,se=de===void 0?E:de,Ee=Array.isArray(ee)?ee:[ee];return Ee.map(function(pe){var he=pe.children,ke=_objectWithoutProperties(pe,Ie),rt=y(he,te);return React.createElement(TreeNode,_extends({key:ke.key},se(ke)),rt)})}function x(ee){if(!ee)return null;var te;if(Array.isArray(ee))te={checkedKeys:ee,halfCheckedKeys:void 0};else if((0,ge.Z)(ee)==="object")te={checkedKeys:ee.checked||void 0,halfCheckedKeys:ee.halfChecked||void 0};else return(0,st.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return te}function z(ee,te){var ue=new Set;function de(se){if(!ue.has(se)){var Ee=te[se];if(Ee){ue.add(se);var pe=Ee.parent,he=Ee.node;he.disabled||pe&&de(pe.key)}}}return(ee||[]).forEach(function(se){de(se)}),(0,ae.Z)(ue)}},17341:function(je,yt,ie){"use strict";ie.d(yt,{S:function(){return Ie}});var ae=ie(80334);function ge(Se,$e){var De=new Set;return Se.forEach(function(we){$e.has(we)||De.add(we)}),De}function at(Se){var $e=Se||{},De=$e.disabled,we=$e.disableCheckbox,Me=$e.checkable;return!!(De||we)||Me===!1}function st(Se,$e,De,we){for(var Me=new Set(Se),Be=new Set,Ae=0;Ae<=De;Ae+=1){var oe=$e.get(Ae)||new Set;oe.forEach(function(y){var x=y.key,z=y.node,ee=y.children,te=ee===void 0?[]:ee;Me.has(x)&&!we(z)&&te.filter(function(ue){return!we(ue.node)}).forEach(function(ue){Me.add(ue.key)})})}for(var b=new Set,a=De;a>=0;a-=1){var E=$e.get(a)||new Set;E.forEach(function(y){var x=y.parent,z=y.node;if(!(we(z)||!y.parent||b.has(y.parent.key))){if(we(y.parent.node)){b.add(x.key);return}var ee=!0,te=!1;(x.children||[]).filter(function(ue){return!we(ue.node)}).forEach(function(ue){var de=ue.key,se=Me.has(de);ee&&!se&&(ee=!1),!te&&(se||Be.has(de))&&(te=!0)}),ee&&Me.add(x.key),te&&Be.add(x.key),b.add(x.key)}})}return{checkedKeys:Array.from(Me),halfCheckedKeys:Array.from(ge(Be,Me))}}function Le(Se,$e,De,we,Me){for(var Be=new Set(Se),Ae=new Set($e),oe=0;oe<=we;oe+=1){var b=De.get(oe)||new Set;b.forEach(function(x){var z=x.key,ee=x.node,te=x.children,ue=te===void 0?[]:te;!Be.has(z)&&!Ae.has(z)&&!Me(ee)&&ue.filter(function(de){return!Me(de.node)}).forEach(function(de){Be.delete(de.key)})})}Ae=new Set;for(var a=new Set,E=we;E>=0;E-=1){var y=De.get(E)||new Set;y.forEach(function(x){var z=x.parent,ee=x.node;if(!(Me(ee)||!x.parent||a.has(x.parent.key))){if(Me(x.parent.node)){a.add(z.key);return}var te=!0,ue=!1;(z.children||[]).filter(function(de){return!Me(de.node)}).forEach(function(de){var se=de.key,Ee=Be.has(se);te&&!Ee&&(te=!1),!ue&&(Ee||Ae.has(se))&&(ue=!0)}),te||Be.delete(z.key),ue&&Ae.add(z.key),a.add(z.key)}})}return{checkedKeys:Array.from(Be),halfCheckedKeys:Array.from(ge(Ae,Be))}}function Ie(Se,$e,De,we){var Me=[],Be;we?Be=we:Be=at;var Ae=new Set(Se.filter(function(E){var y=!!De[E];return y||Me.push(E),y})),oe=new Map,b=0;Object.keys(De).forEach(function(E){var y=De[E],x=y.level,z=oe.get(x);z||(z=new Set,oe.set(x,z)),z.add(y),b=Math.max(b,x)}),(0,ae.ZP)(!Me.length,"Tree missing follow keys: ".concat(Me.slice(0,100).map(function(E){return"'".concat(E,"'")}).join(", ")));var a;return $e===!0?a=st(Ae,oe,b,Be):a=Le(Ae,$e.halfCheckedKeys,oe,b,Be),a}},1089:function(je,yt,ie){"use strict";ie.d(yt,{F:function(){return y},H8:function(){return E},I8:function(){return a},km:function(){return we},oH:function(){return oe},w$:function(){return Me},zn:function(){return Ae}});var ae=ie(71002),ge=ie(74902),at=ie(1413),st=ie(45987),Le=ie(98423),Ie=ie(50344),Se=ie(80334),$e=ie(10225),De=["children"];function we(x,z){return x!=null?x:z}function Me(x){var z=x||{},ee=z.title,te=z._title,ue=z.key,de=z.children,se=ee||"title";return{title:se,_title:te||[se],key:ue||"key",children:de||"children"}}function Be(x,z){var ee=new Map;function te(ue){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ue||[]).forEach(function(se){var Ee=se[z.key],pe=se[z.children];warning(Ee!=null,"Tree node must have a certain key: [".concat(de).concat(Ee,"]"));var he=String(Ee);warning(!ee.has(he)||Ee===null||Ee===void 0,"Same 'key' exist in the Tree: ".concat(he)),ee.set(he,!0),te(pe,"".concat(de).concat(he," > "))})}te(x)}function Ae(x){function z(ee){var te=(0,Ie.Z)(ee);return te.map(function(ue){if(!(0,$e.Ds)(ue))return(0,Se.ZP)(!ue,"Tree/TreeNode can only accept TreeNode as children."),null;var de=ue.key,se=ue.props,Ee=se.children,pe=(0,st.Z)(se,De),he=(0,at.Z)({key:de},pe),ke=z(Ee);return ke.length&&(he.children=ke),he}).filter(function(ue){return ue})}return z(x)}function oe(x,z,ee){var te=Me(ee),ue=te._title,de=te.key,se=te.children,Ee=new Set(z===!0?[]:z),pe=[];function he(ke){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return ke.map(function(We,xe){for(var Pe=(0,$e.bt)(rt?rt.pos:"0",xe),He=we(We[de],Pe),Ye,ot=0;ot<ue.length;ot+=1){var vt=ue[ot];if(We[vt]!==void 0){Ye=We[vt];break}}var Qt=(0,at.Z)((0,at.Z)({},(0,Le.Z)(We,[].concat((0,ge.Z)(ue),[de,se]))),{},{title:Ye,key:He,parent:rt,pos:Pe,children:null,data:We,isStart:[].concat((0,ge.Z)(rt?rt.isStart:[]),[xe===0]),isEnd:[].concat((0,ge.Z)(rt?rt.isEnd:[]),[xe===ke.length-1])});return pe.push(Qt),z===!0||Ee.has(He)?Qt.children=he(We[se]||[],Qt):Qt.children=[],Qt})}return he(x),pe}function b(x,z,ee){var te={};(0,ae.Z)(ee)==="object"?te=ee:te={externalGetKey:ee},te=te||{};var ue=te,de=ue.childrenPropName,se=ue.externalGetKey,Ee=ue.fieldNames,pe=Me(Ee),he=pe.key,ke=pe.children,rt=de||ke,We;se?typeof se=="string"?We=function(He){return He[se]}:typeof se=="function"&&(We=function(He){return se(He)}):We=function(He,Ye){return we(He[he],Ye)};function xe(Pe,He,Ye,ot){var vt=Pe?Pe[rt]:x,Qt=Pe?(0,$e.bt)(Ye.pos,He):"0",Tt=Pe?[].concat((0,ge.Z)(ot),[Pe]):[];if(Pe){var on=We(Pe,Qt),An={node:Pe,index:He,pos:Qt,key:on,parentPos:Ye.node?Ye.pos:null,level:Ye.level+1,nodes:Tt};z(An)}vt&&vt.forEach(function(Ve,Qe){xe(Ve,Qe,{node:Pe,pos:Qt,level:Ye?Ye.level+1:-1},Tt)})}xe(null)}function a(x){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=z.initWrapper,te=z.processEntity,ue=z.onProcessFinished,de=z.externalGetKey,se=z.childrenPropName,Ee=z.fieldNames,pe=arguments.length>2?arguments[2]:void 0,he=de||pe,ke={},rt={},We={posEntities:ke,keyEntities:rt};return ee&&(We=ee(We)||We),b(x,function(xe){var Pe=xe.node,He=xe.index,Ye=xe.pos,ot=xe.key,vt=xe.parentPos,Qt=xe.level,Tt=xe.nodes,on={node:Pe,nodes:Tt,index:He,key:ot,pos:Ye,level:Qt},An=we(ot,Ye);ke[Ye]=on,rt[An]=on,on.parent=ke[vt],on.parent&&(on.parent.children=on.parent.children||[],on.parent.children.push(on)),te&&te(on,We)},{externalGetKey:he,childrenPropName:se,fieldNames:Ee}),ue&&ue(We),We}function E(x,z){var ee=z.expandedKeys,te=z.selectedKeys,ue=z.loadedKeys,de=z.loadingKeys,se=z.checkedKeys,Ee=z.halfCheckedKeys,pe=z.dragOverNodeKey,he=z.dropPosition,ke=z.keyEntities,rt=ke[x],We={eventKey:x,expanded:ee.indexOf(x)!==-1,selected:te.indexOf(x)!==-1,loaded:ue.indexOf(x)!==-1,loading:de.indexOf(x)!==-1,checked:se.indexOf(x)!==-1,halfChecked:Ee.indexOf(x)!==-1,pos:String(rt?rt.pos:""),dragOver:pe===x&&he===0,dragOverGapTop:pe===x&&he===-1,dragOverGapBottom:pe===x&&he===1};return We}function y(x){var z=x.data,ee=x.expanded,te=x.selected,ue=x.checked,de=x.loaded,se=x.loading,Ee=x.halfChecked,pe=x.dragOver,he=x.dragOverGapTop,ke=x.dragOverGapBottom,rt=x.pos,We=x.active,xe=x.eventKey,Pe=(0,at.Z)((0,at.Z)({},z),{},{expanded:ee,selected:te,checked:ue,loaded:de,loading:se,halfChecked:Ee,dragOver:pe,dragOverGapTop:he,dragOverGapBottom:ke,pos:rt,active:We,key:xe});return"props"in Pe||Object.defineProperty(Pe,"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`."),x}}),Pe}},64217:function(je,yt,ie){"use strict";ie.d(yt,{Z:function(){return $e}});var ae=ie(1413),ge=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
summary tabIndex target title type useMap value width wmode wrap`,at=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,st="".concat(ge," ").concat(at).split(/[\s\n]+/),Le="aria-",Ie="data-";function Se(De,we){return De.indexOf(we)===0}function $e(De){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Me;we===!1?Me={aria:!0,data:!0,attr:!0}:we===!0?Me={aria:!0}:Me=(0,ae.Z)({},we);var Be={};return Object.keys(De).forEach(function(Ae){(Me.aria&&(Ae==="role"||Se(Ae,Le))||Me.data&&Se(Ae,Ie)||Me.attr&&st.includes(Ae))&&(Be[Ae]=De[Ae])}),Be}}}]);
|