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.
207 lines
548 KiB
207 lines
548 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[1578],{27812:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Je}});var ie=ne(54476),ce=ne(59301),De={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},We=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:We}))},ae=ce.forwardRef(Be),Je=ae},89489:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Je}});var ie=ne(54476),ce=ne(59301),De={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},We=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:We}))},ae=ce.forwardRef(Be),Je=ae},59477:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Je}});var ie=ne(54476),ce=ne(59301),De={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},We=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:We}))},ae=ce.forwardRef(Be),Je=ae},26227:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Je}});var ie=ne(54476),ce=ne(59301),De={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},We=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:We}))},ae=ce.forwardRef(Be),Je=ae},49198:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Je}});var ie=ne(54476),ce=ne(59301),De={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},We=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:We}))},ae=ce.forwardRef(Be),Je=ae},52671:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Je}});var ie=ne(54476),ce=ne(59301),De={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},We=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:We}))},ae=ce.forwardRef(Be),Je=ae},8657:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Je}});var ie=ne(54476),ce=ne(59301),De={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},We=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:We}))},ae=ce.forwardRef(Be),Je=ae},56082:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Je}});var ie=ne(54476),ce=ne(59301),De={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},We=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:We}))},ae=ce.forwardRef(Be),Je=ae},33853:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Je}});var ie=ne(54476),ce=ne(59301),De={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"},We=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:We}))},ae=ce.forwardRef(Be),Je=ae},63524:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Je}});var ie=ne(54476),ce=ne(59301),De={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"},We=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:We}))},ae=ce.forwardRef(Be),Je=ae},15075:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Je}});var ie=ne(54476),ce=ne(59301),De={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},We=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:We}))},ae=ce.forwardRef(Be),Je=ae},43531:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Je}});var ie=ne(54476),ce=ne(59301),De={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},We=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:We}))},ae=ce.forwardRef(Be),Je=ae},38819:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Je}});var ie=ne(54476),ce=ne(59301),De={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"},We=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:We}))},ae=ce.forwardRef(Be),Je=ae},96408:function(qe,gt){"use strict";gt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},25863:function(){"use strict";function qe(oe,y,a,x){a===void 0&&(a=0),x===void 0&&(x=1/0),this._name=oe,this._defaultValue=y,this._minimum=a,this._maximum=x}Object.defineProperty(qe.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(qe.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(qe.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(qe.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,y){var a=go.Shape._FigureParameters[oe];return a?a[y]:null},go.Shape.setFigureParameter=function(oe,y,a){if(!(a instanceof qe))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 x=go.Shape._FigureParameters[oe];x||(x=[],go.Shape._FigureParameters[oe]=x),x[y]=a};var gt=[];function ne(oe,y){var a=gt.pop();return a===void 0?new go.Point(oe,y):(a.x=oe,a.y=y,a)}function ie(){var oe=gt.pop();return oe===void 0?new go.Point:oe}function ce(oe){gt.push(oe)}function De(oe,y,a,x,b,E,z,ee,te){te||(te=new go.Point);var ge=oe-a,de=b-z,se=NaN,be=NaN;if(ge===0)if(de===0)oe===a&&(se=oe,be=y);else{var Se=(E-ee)/de,Ee=E-Se*b;se=oe,be=Se*se+Ee}else if(de===0){var he=(y-x)/ge,ft=y-he*oe;se=b,be=he*se+ft}else{var he=(y-x)/ge,Se=(E-ee)/de,ft=y-he*oe,Ee=E-Se*b;se=(Ee-ft)/(he-Se),be=he*se+ft}return te.x=se,te.y=be,te}function We(oe,y,a,x,b,E,z,ee,te,ge,de,se,be,Se){var Ee=1-te,he=te,ft=oe*Ee+a*he,it=y*Ee+x*he,_t=a*Ee+b*he,Ce=x*Ee+E*he,Ae=b*Ee+z*he,tt=E*Ee+ee*he,at=ft*Ee+_t*he,st=it*Ee+Ce*he,St=_t*Ee+Ae*he,wt=Ce*Ee+tt*he,Ft=at*Ee+St*he,Tt=st*Ee+wt*he;ge.x=ft,ge.y=it,de.x=at,de.y=st,se.x=Ft,se.y=Tt,be.x=St,be.y=wt,Se.x=Ae,Se.y=tt}var we=new go.Spot(.156,.156),Be=new go.Spot(.844,.844),ae=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new qe("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(oe,y,a){var x=oe?oe.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,y/3),x=Math.min(x,a/3);var b=x*ae,E=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,y-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,y,x,y-b,0,y,b)).add(new go.PathSegment(go.PathSegment.Line,y,a-x)).add(new go.PathSegment(go.PathSegment.Bezier,y-x,a,y,a-b,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,x,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,b,a,0,a-b)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()));return b>1&&(E.spot1=new go.Spot(0,0,b,b),E.spot2=new go.Spot(1,1,-b,-b)),E}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(y,a).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(y,a).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(oe,y,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=a/2,x.endX=y,x.endY=a/2,x}),go.Shape.defineFigureGenerator("LineV",function(oe,y,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=y/2,x.startY=0,x.endX=y/2,x.endY=a,x}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,a/2,!1).add(new go.PathSegment(go.PathSegment.Line,y,a/2)).add(new go.PathSegment(go.PathSegment.Move,y/2,0)).add(new go.PathSegment(go.PathSegment.Line,y/2,a)))}),go.Shape.defineFigureGenerator("XLine",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)))}),go.Shape.defineFigureGenerator("LineRight",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(.25*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.25*y,a)))}),go.Shape.defineFigureGenerator("LineDown",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,.25*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,.75*a)).add(new go.PathSegment(go.PathSegment.Line,y,.25*a)))}),go.Shape.defineFigureGenerator("LineLeft",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(.75*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*y,a)))}),go.Shape.defineFigureGenerator("LineUp",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,.75*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,y,.75*a)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(oe,y,a){var x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*y,(1-x)*a,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,x*a)).add(new go.PathSegment(go.PathSegment.Move,x*y,x*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Move,0,a/2)).add(new go.PathSegment(go.PathSegment.Line,y,a/2)).add(new go.PathSegment(go.PathSegment.Move,y/2,0)).add(new go.PathSegment(go.PathSegment.Line,y/2,a)))}),go.Shape.defineFigureGenerator("CircleLine",function(oe,y,a){var x=y/2,b=new go.Geometry().add(new go.PathFigure(y,y/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return b.spot1=we,b.spot2=Be,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(oe,y,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}),go.Shape.defineFigureGenerator("Line2",function(oe,y,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=y,x.startY=0,x.endX=0,x.endY=a,x}),go.Shape.defineFigureGenerator("Curve1",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,y,a,ae*y,0,y,(1-ae)*a)))}),go.Shape.defineFigureGenerator("Curve2",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,y,a,0,ae*a,(1-ae)*y,a)))}),go.Shape.defineFigureGenerator("Curve3",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,ae*a,ae*y,a)))}),go.Shape.defineFigureGenerator("Curve4",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,(1-ae)*y,0,0,(1-ae)*a)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new qe("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var b=Math.abs(x)*y;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=y,E.endY=a,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&E.setSpots(b/y,0,(y-b)/y,1),E}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new qe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)?x=10:x<-y?x=-y:x>y&&(x=y);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=y,E.endY=a,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&E.setSpots(b/y,0,(y-b)/y,1),E}}),go.Shape.setFigureParameter("Trapezoid1",0,new qe("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)?x=.2:x<.5?x=-.5:x>.5&&(x=.5);var b=Math.abs(x)*y;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=y,E.endY=a,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&E.setSpots(b/y,0,(y-b)/y,1),E}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new qe("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)?x=20:x<-y?x=-y/2:x>y&&(x=y/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=y,E.endY=a,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&E.setSpots(b/y,0,(y-b)/y,1),E}}),go.Shape.setFigureParameter("ManualOperation",0,new qe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)?x=10:x<-y?x=-y/2:x>y&&(x=y/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=y,E.endY=a,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())):E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())),b<y/2&&E.setSpots(b/y,0,(y-b)/y,1),E}});var Je=[];function Ve(){var oe=Je.pop();return oe===void 0?[]:oe}function He(oe){oe.length=0,Je.push(oe)}function Re(oe){for(var y=Ve(),a=.5,x=.5,b=Math.PI*1.5,E=0,z=0;z<oe;z++)E=2*Math.PI/oe*z+b,y[z]=new go.Point(x+a*Math.cos(E),x+a*Math.sin(E));return y.push(y[0]),y}function et(oe){var y=Ke(oe),a=Ve();a[0]=y[0];for(var x=1,b=1;x<y.length;x+=2,b+=3)a[b]=y[x],a[b+1]=y[x],a[b+2]=y[x+1];return He(y),a}function Ke(oe){for(var y=Re(oe),a=Ve(),x=Math.floor(y.length/2),b=y.length-1,E=oe%2===0?2:1,z=0;z<b;z++){var ee=y[z],te=y[z+1],ge=y[(x+z-1)%b],de=y[(x+z+E)%b];a[z*2]=ee,a[z*2+1]=De(ee.x,ee.y,ge.x,ge.y,te.x,te.y,de.x,de.y,new go.Point)}return a[a.length]=a[0],He(y),a}go.Shape.defineFigureGenerator("Pentagon",function(oe,y,a){var x=Re(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<5;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),He(x),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(oe,y,a){var x=Re(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<6;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),He(x),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(oe,y,a){var x=Re(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<7;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),He(x),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(oe,y,a){var x=Re(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<8;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),He(x),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(oe,y,a){var x=Re(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<9;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),He(x),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(oe,y,a){var x=Re(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),He(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(oe,y,a){var x=Re(12),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),He(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(oe,y,a){var x=Ke(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),He(x),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(oe,y,a){var x=Ke(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),He(x),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(oe,y,a){var x=Ke(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<14;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),He(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(oe,y,a){var x=Ke(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<16;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),He(x),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(oe,y,a){var x=Ke(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<18;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),He(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(oe,y,a){var x=Ke(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<20;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),He(x),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(oe,y,a){var x=et(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*y,x[z+2].y*a,x[z].x*y,x[z].y*a,x[z+1].x*y,x[z+1].y*a));return E.segments.last().close(),He(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(oe,y,a){var x=et(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*y,x[z+2].y*a,x[z].x*y,x[z].y*a,x[z+1].x*y,x[z+1].y*a));return E.segments.last().close(),He(x),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(oe,y,a){var x=et(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*y,x[z+2].y*a,x[z].x*y,x[z].y*a,x[z+1].x*y,x[z+1].y*a));return E.segments.last().close(),He(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(oe,y,a){var x=et(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*y,x[z+2].y*a,x[z].x*y,x[z].y*a,x[z+1].x*y,x[z+1].y*a));return E.segments.last().close(),He(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(oe,y,a){var x=et(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*y,x[z+2].y*a,x[z].x*y,x[z].y*a,x[z+1].x*y,x[z+1].y*a));return E.segments.last().close(),He(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(oe,y,a){var x=et(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*y,x[z+2].y*a,x[z].x*y,x[z].y*a,x[z+1].x*y,x[z+1].y*a));return E.segments.last().close(),He(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new qe("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new qe("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(oe,y,a){var x=oe?oe.parameter1:NaN,b=oe?oe.parameter2:NaN;isNaN(x)&&(x=8),isNaN(b)&&(b=8);var E=new go.Geometry,z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x<y/2&&b<a/2&&(z.add(new go.PathSegment(go.PathSegment.Move,x,b)),z.add(new go.PathSegment(go.PathSegment.Line,x,a-b)),z.add(new go.PathSegment(go.PathSegment.Line,y-x,a-b)),z.add(new go.PathSegment(go.PathSegment.Line,y-x,b).close())),E.setSpots(0,0,1,1,x,b,-x,-b),E}),go.Shape.setFigureParameter("Ring",0,new qe("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(oe,y,a){var x=oe?oe.parameter1:NaN;(isNaN(x)||x<0)&&(x=8);var b=y/2,E=new go.Geometry,z=new go.PathFigure(y,y/2,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-x,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,y/2+ee,y/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),E.spot1=we,E.spot2=Be,E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Cloud",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(.08034461*y,.1944299*a,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*y,.05349299*a,-.09239631*y,.07836421*a,.1406031*y,-.0542823*a)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*y,.074219*a,.2450511*y,-.00697547*a,.3776197*y,-.01112067*a)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*y,.07004196*a,.4539471*y,0,.6066018*y,-.02526587*a)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*y,.08370865*a,.6914277*y,-.01904177*a,.8921095*y,-.01220843*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*y,.3194596*a,1.036446*y,.04105738*a,1.020377*y,.3022052*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*y,.562044*a,1.04448*y,.360238*a,.992256*y,.5219009*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*y,.8217117*a,1.032337*y,.5771781*a,1.018411*y,.8120651*a)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*y,.9156953*a,1.028411*y,.9571472*a,.8556702*y,1.052487*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*y,.9310455*a,.7431877*y,1.009325*a,.5624123*y,1.021761*a)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*y,.9344623*a,.4820677*y,1.031761*a,.3030112*y,1.002796*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*y,.870098*a,.2329994*y,1.01518*a,.03213784*y,1.01518*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*y,.6545475*a,-.02812061*y,.9032597*a,-.01205169*y,.6835638*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*y,.4265613*a,-.01812061*y,.6089503*a,-.00606892*y,.4555777*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*y,.1944299*a,-.01606892*y,.3892545*a,-.01205169*y,.1944299*a))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(oe,y,a){var x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*y,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,x*a)).add(new go.PathSegment(go.PathSegment.Line,y,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,a)).add(new go.PathSegment(go.PathSegment.Line,x*y,a)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Line,0,x*a).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new qe("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new qe("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(oe,y,a){var x=oe?oe.parameter1:NaN,b=oe?oe.parameter2:NaN;isNaN(x)&&(x=0),isNaN(b)&&(b=315);var E=x%360;E<0&&(E+=360);var z=b%360,ee=Math.min(y,a)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,E,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(oe,y,a){var x=ae/Math.SQRT2*.5,b=Math.SQRT2/2,E=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(y,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*y,E*a,y,(1-x)*a,(b+x)*y,(E+x)*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()))}),go.Shape.setFigureParameter("ThickCross",0,new qe("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(oe,y,a){var x=oe?oe.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var b=Math.min(x,y)/2,E=y/2,z=a/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,a)).add(new go.PathSegment(go.PathSegment.Line,E-b,a)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new qe("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(oe,y,a){var x=oe?oe.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=Math.min(x,y)/2,E=y/2,z=a/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,a)).add(new go.PathSegment(go.PathSegment.Line,E-b,a)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new qe("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(oe,y,a){var x=oe?oe.parameter1:NaN;if((isNaN(x)||x<0)&&(x=30),y===0||a===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=y,b.endY=a,b}else{var E=y/2,z=a/2,ee=Math.atan2(a,y),te=x-Math.min(Math.cos(ee)*x/2,E),ge=x-Math.min(Math.sin(ee)*x/2,z),b=new go.Geometry,de=new go.PathFigure(te,0,!0);return b.add(de),de.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),de.add(new go.PathSegment(go.PathSegment.Line,y-te,0)),de.add(new go.PathSegment(go.PathSegment.Line,y,ge)),de.add(new go.PathSegment(go.PathSegment.Line,.8*y,z)),de.add(new go.PathSegment(go.PathSegment.Line,y,a-ge)),de.add(new go.PathSegment(go.PathSegment.Line,y-te,a)),de.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),de.add(new go.PathSegment(go.PathSegment.Line,te,a)),de.add(new go.PathSegment(go.PathSegment.Line,0,a-ge)),de.add(new go.PathSegment(go.PathSegment.Line,.2*y,z)),de.add(new go.PathSegment(go.PathSegment.Line,0,ge).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new qe("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(oe,y,a){var x=oe?oe.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=new go.Geometry,E=new go.PathFigure(.1*y,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),E.add(new go.PathSegment(go.PathSegment.Line,y,.1*a)),E.add(new go.PathSegment(go.PathSegment.Line,.6*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),E.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,.1*y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.9*a)),E.add(new go.PathSegment(go.PathSegment.Line,.4*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.1*a).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new qe("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,0)),E.add(new go.PathSegment(go.PathSegment.Line,y,x*a)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*y,x*a)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*y,(1-x)*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,(1-x)*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*a)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*y,(1-x)*a)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*y,x*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*a).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new qe("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=.5);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,y,a,Math.abs(1-x)*y,.25*a,Math.abs(1-x)*y,.75*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*y,.75*a,x*y,.25*a).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,ae*y,0,y,(.5-ae/2)*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,(.5+ae/2)*a,ae*y,a).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,0,y,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*y,.75*a,.5*y,.25*a).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,.1*y,.8*a,0,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,0,0,.45*y,0)).add(new go.PathSegment(go.PathSegment.Bezier,y,.3*a,.55*y,0,y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,.5*a,.9*y,.8*a).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*y,.01*a)).add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.6*y,.2*a,y,.25*a)).add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.7*a,y,.8*a,.6*y,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,.5*y,.75*a,.55*y,.95*a)).add(new go.PathSegment(go.PathSegment.Line,.25*y,a)).add(new go.PathSegment(go.PathSegment.Bezier,.45*y,.7*a,.45*y,.95*a,.5*y,.75*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.4*y,.8*a,0,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.49*y,.01*a,0,.25*a,.4*y,.2*a).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.4*y,.6*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*y,a,.5*y,.75*a,.45*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*y,.6*a,.55*y,.95*a,.5*y,.75*a));var E=.2,z=.3,ee=0,te=E*ae;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5+E+ee)*a,(.5-E+z)*y,(.5+te+ee)*a,(.5-te+z)*y,(.5+E+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*y,(.5+ee)*a,(.5+te+z)*y,(.5+E+ee)*a,(.5+E+z)*y,(.5+te+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-E+ee)*a,(1-.5+E+z)*y,(.5-te+ee)*a,(.5+te+z)*y,(.5-E+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*y,.36771243*a,(.5-te+z)*y,(.5-E+ee)*a,(.5-E+z+.05)*y,(.5-te+ee-.02)*a)),E=.2,z=0,ee=-.3,te=E*ae,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*y,(.5+ee)*a,(.5+te+z)*y,(.5+E+ee)*a,(.5+E+z)*y,(.5+te+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-E+ee)*a,(1-.5+E+z)*y,(.5-te+ee)*a,(.5+te+z)*y,(.5-E+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*y,(.5+ee)*a,(.5-te+z)*y,(.5-E+ee)*a,(.5-E+z)*y,(.5-te+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*y,(.5+E+ee)*a,(.5-E+z)*y,(.5+te+ee)*a,(.5-te+z)*y,(.5+E+ee)*a)),E=.2,z=-.3,ee=0,te=E*ae,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-E+ee)*a,(1-.5+E+z-.05)*y,(.5-te+ee-.02)*a,(.5+te+z)*y,(.5-E+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*y,(.5+ee)*a,(.5-te+z)*y,(.5-E+ee)*a,(.5-E+z)*y,(.5-te+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5+E+ee)*a,(.5-E+z)*y,(.5+te+ee)*a,(.5-te+z)*y,(.5+E+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,.6*a,(.5+te+z)*y,(.5+E+ee)*a,(.5+E+z)*y,(.5+te+ee)*a).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y*.5,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,y*.5,y*.5,y*.5,y*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,y*.5,y*.75,y*.25,y*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,y*.5,y*.25,y*.25,y*.25));var E=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+E)*y,ee*a)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,y*z,a*ee,E*y,E*y).close()),b=new go.PathFigure(y*.5,0,!1),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,y*.5,y*.5,y*.5,y*.5)),ee=.75,b=new go.PathFigure((z+E)*y,ee*a,!0),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,y*z,a*ee,E*y,E*y).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(oe,y,a){var x=.8535533905932737,b=.5*y,E=.5*a;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,E,b,E)).add(new go.PathSegment(go.PathSegment.Line,b,a)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,x*a)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,x*y,x*a)))}),go.Shape.defineFigureGenerator("NotAllowed",function(oe,y,a){var x=new go.Geometry,b=ae*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure(z*y,(ee-E)*a);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*y,ee*a,(z-b)*y,(ee-E)*a,(z-E)*y,(ee-b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+E)*a,(z-E)*y,(ee+b)*a,(z-b)*y,(ee+E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,ee*a,(z+b)*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-E)*a,(z+E)*y,(ee-b)*a,(z+b)*y,(ee-E)*a)),E=.4,b=ae*.4;var ge=ie(),de=ie(),se=ie(),be=ie();We(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,ge,de,se,be,be);var Se=ie(),Ee=ie(),he=ie();We(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,be,be,he,Se,Ee);var ft=ie(),it=ie(),_t=ie();We(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,ft,it,_t,be,be);var Ce=ie(),Ae=ie(),tt=ie();return We(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,be,be,tt,Ce,Ae),te.add(new go.PathSegment(go.PathSegment.Move,tt.x*y,tt.y*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*y,ee*a,Ce.x*y,Ce.y*a,Ae.x*y,Ae.y*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-E)*a,(z-E)*y,(ee-b)*a,(z-b)*y,(ee-E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,se.x*y,se.y*a,ge.x*y,ge.y*a,de.x*y,de.y*a)),te.add(new go.PathSegment(go.PathSegment.Line,tt.x*y,tt.y*a).close()),te.add(new go.PathSegment(go.PathSegment.Move,_t.x*y,_t.y*a)),te.add(new go.PathSegment(go.PathSegment.Line,he.x*y,he.y*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,ee*a,Se.x*y,Se.y*a,Ee.x*y,Ee.y*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+E)*a,(z+E)*y,(ee+b)*a,(z+b)*y,(ee+E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,_t.x*y,_t.y*a,ft.x*y,ft.y*a,it.x*y,it.y*a).close()),ce(ge),ce(de),ce(se),ce(be),ce(Se),ce(Ee),ce(he),ce(ft),ce(it),ce(_t),ce(Ce),ce(Ae),ce(tt),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*y,0)).add(new go.PathSegment(go.PathSegment.Line,.2*y,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.29*y,.33*a)).add(new go.PathSegment(go.PathSegment.Line,.35*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.5*a,y,.25*a,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.55*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*y,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.5*a,0,.25*a).close()))}),go.Shape.setFigureParameter("HourGlass",0,new qe("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(oe,y,a){var x=oe?oe.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>y&&(x=y);var b=(y-x)/2,E=b+x;return new go.Geometry().add(new go.PathFigure(E,.5*a).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,b,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,y,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,.55*a).add(new go.PathSegment(go.PathSegment.Line,.6*y,0)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.45*a)).add(new go.PathSegment(go.PathSegment.Line,y,.45*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.55*a).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(oe,y,a){var x=new go.Geometry,b=ae*.4,E=.4,z=.5,ee=.5,te=ie(),ge=ie(),de=ie(),se=ie(),be=new go.PathFigure((z-E)*y,ee*a,!1);x.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-E)*a,(z-E)*y,(ee-b)*a,(z-b)*y,(ee-E)*a)),We(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.44,de,se,ge,te,te),be.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*y,ge.y*a,de.x*y,de.y*a,se.x*y,se.y*a));var Se=ne(ge.x,ge.y);We(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,te,te,ge,de,se);var Ee=ne(ge.x,ge.y);be.add(new go.PathSegment(go.PathSegment.Line,(Se.x*.1+.95*.9)*y,Se.y*.1*a)),be.add(new go.PathSegment(go.PathSegment.Line,.85*y,Se.y*.1*a)),be.add(new go.PathSegment(go.PathSegment.Line,.85*y,0)),be.add(new go.PathSegment(go.PathSegment.Line,y,0)),be.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),be.add(new go.PathSegment(go.PathSegment.Line,(Ee.x*.1+.9)*y,.15*a)),be.add(new go.PathSegment(go.PathSegment.Line,(Ee.x*.1+.9)*y,(Ee.y*.1+.05*.9)*a)),be.add(new go.PathSegment(go.PathSegment.Line,Ee.x*y,Ee.y*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,ee*a,de.x*y,de.y*a,se.x*y,se.y*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+E)*a,(z+E)*y,(ee+b)*a,(z+b)*y,(ee+E)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*y,ee*a,(z-b)*y,(ee+E)*a,(z-E)*y,(ee+b)*a)),E=.35,b=ae*.35;var he=new go.PathFigure(z*y,(ee-E)*a,!1);x.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*y,ee*a,(z-b)*y,(ee-E)*a,(z-E)*y,(ee-b)*a)),he.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+E)*a,(z-E)*y,(ee+b)*a,(z-b)*y,(ee+E)*a)),he.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,ee*a,(z+b)*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),he.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-E)*a,(z+E)*y,(ee-b)*a,(z+b)*y,(ee-E)*a));var ft=new go.PathFigure((z-E)*y,ee*a,!1);return x.add(ft),ce(te),ce(ge),ce(de),ce(se),ce(Se),ce(Ee),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(oe,y,a){var x=new go.Geometry,b=.375,E=0,z=-.125,ee=b*ae,te=new go.PathFigure((.525+E)*y,(.5+b+z)*a,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*y,(.5+z)*a,(.5+ee+E)*y,(.5+b+z)*a,(.5+b+E)*y,(.5+ee+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*y,(.5-b+z)*a,(1-.5+b+E)*y,(.5-ee+z)*a,(.5+ee+E)*y,(.5-b+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*y,(.5+z)*a,(.5-ee+E)*y,(.5-b+z)*a,(.5-b+E)*y,(.5-ee+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+E)*y,(.5+b+z)*a,(.5-b+E)*y,(.5+ee+z)*a,(.5-ee+E)*y,(.5+b+z)*a)),te.add(new go.PathSegment(go.PathSegment.Line,.475*y,.85*a)),te.add(new go.PathSegment(go.PathSegment.Line,.425*y,.85*a)),te.add(new go.PathSegment(go.PathSegment.Line,.425*y,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.475*y,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.475*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,.525*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,.525*y,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.575*y,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.575*y,.85*a)),te.add(new go.PathSegment(go.PathSegment.Line,.525*y,.85*a).close()),b=.325,E=0,z=-.125,ee=b*ae;var te=new go.PathFigure((1-.5+b+E)*y,(.5+z)*a,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*y,(.5+b+z)*a,(.5+b+E)*y,(.5+ee+z)*a,(.5+ee+E)*y,(.5+b+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*y,(.5+z)*a,(.5-ee+E)*y,(.5+b+z)*a,(.5-b+E)*y,(.5+ee+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*y,(.5-b+z)*a,(.5-b+E)*y,(.5-ee+z)*a,(.5-ee+E)*y,(.5-b+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*y,(.5+z)*a,(.5+ee+E)*y,(.5-b+z)*a,(1-.5+b+E)*y,(.5-ee+z)*a));var te=new go.PathFigure((.525+E)*y,(.5+b+z)*a,!1);return x.add(te),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(oe,y,a){var x=oe?oe.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(oe,y,a){var x=oe?oe.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Move,x*y,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,x*y,a))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)))}),go.Shape.defineFigureGenerator("LogicAnd",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(oe,y,a){var x=new go.Geometry().add(new go.PathFigure(.5*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*y,.5*a,.5*y,.5*a)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,.5*y,0)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Move,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Move,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)))}),go.Shape.defineFigureGenerator("LogicForAll",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,.25*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Move,0,a)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(oe,y,a){var x=.5;return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*a)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*y,x*a,x*y,x*a)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(oe,y,a){var x=.5;return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,x*a)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*y,x*a,x*y,x*a)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new qe("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new qe("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=.3);var b=oe?oe.parameter2:NaN;isNaN(b)&&(b=.3);var E=(1-x)*y,z=(.5-b/2)*a,ee=(.5+b/2)*a,te=new go.Geometry,ge=new go.PathFigure(0,z,!0);te.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,E,z)),ge.add(new go.PathSegment(go.PathSegment.Line,E,0)),ge.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),ge.add(new go.PathSegment(go.PathSegment.Line,E,a)),ge.add(new go.PathSegment(go.PathSegment.Line,E,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/a);var de=De(0,ee/a,1,ee/a,E/y,1,1,.5,ie());return te.spot2=new go.Spot(de.x,de.y),ce(de),te}),go.Shape.setFigureParameter("Arrow2",0,new qe("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new qe("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=30),x>y&&(x=y);var b=oe?oe.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,a/2);var E=y-x,z=(a-b)/2,ee=z+b,te=new go.Geometry,ge=new go.PathFigure(0,z,!0);te.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,E,z)),ge.add(new go.PathSegment(go.PathSegment.Line,E,0)),ge.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),ge.add(new go.PathSegment(go.PathSegment.Line,E,a)),ge.add(new go.PathSegment(go.PathSegment.Line,E,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/a);var de=De(0,ee/a,1,ee/a,E/y,1,1,.5,ie());return te.spot2=new go.Spot(de.x,de.y),ce(de),te}),go.Shape.defineFigureGenerator("Chevron",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a).close()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.214*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.786*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*a).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new qe("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*a,E=(.5+x/2)*a,z=new go.Geometry,ee=new go.PathFigure(y,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*y,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close());var te=De(0,.5,.3,0,0,b/a,.1,b/a,ie());return z.spot1=new go.Spot(te.x,te.y),te=De(.7,1,1,.5,0,E/a,1,E/a,te),z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new qe("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new qe("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=40);var b=oe?oe.parameter2:NaN;isNaN(b)&&(b=100);var E=(a-x)/2,z=E+x,ee=(a-b)/2,te=ee+b;(x>a||b>a)&&(b>x?(x=x*a/b,E=(a-x)/2,z=E+x,ee=0,te=a):(E=0,z=a,ee=0,te=a));var ge=new go.Geometry,de=new go.PathFigure(y,.5*a,!0);ge.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.7*y,te)),de.add(new go.PathSegment(go.PathSegment.Line,.7*y,z)),de.add(new go.PathSegment(go.PathSegment.Line,.3*y,z)),de.add(new go.PathSegment(go.PathSegment.Line,.3*y,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),de.add(new go.PathSegment(go.PathSegment.Line,.3*y,ee)),de.add(new go.PathSegment(go.PathSegment.Line,.3*y,E)),de.add(new go.PathSegment(go.PathSegment.Line,.7*y,E)),de.add(new go.PathSegment(go.PathSegment.Line,.7*y,ee).close());var se=De(0,.5,.3,ee/a,0,E/a,1,E/a,ie());return ge.spot1=new go.Spot(se.x,se.y),se=De(.7,te/a,1,.5,0,z/a,1,z/a,se),ge.spot2=new go.Spot(se.x,se.y),ce(se),ge}),go.Shape.setFigureParameter("IBeamArrow",0,new qe("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*a,E=(.5+x/2)*a,z=new go.Geometry,ee=new go.PathFigure(y,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,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*y,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(0,b/a);var te=De(.7,1,1,.5,0,E/a,1,E/a,ie());return z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new qe("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new qe("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=40);var b=oe?oe.parameter2:NaN;isNaN(b)&&(b=100);var E=(a-x)/2,z=E+x,ee=(a-b)/2,te=ee+b;(x>a||b>a)&&(b>x?(x=x*a/b,E=(a-x)/2,z=E+x,ee=0,te=a):(E=0,z=a,ee=0,te=a));var ge=new go.Geometry,de=new go.PathFigure(y,.5*a,!0);ge.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.7*y,te)),de.add(new go.PathSegment(go.PathSegment.Line,.7*y,z)),de.add(new go.PathSegment(go.PathSegment.Line,.2*y,z)),de.add(new go.PathSegment(go.PathSegment.Line,.2*y,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*y,ee)),de.add(new go.PathSegment(go.PathSegment.Line,.2*y,E)),de.add(new go.PathSegment(go.PathSegment.Line,.7*y,E)),de.add(new go.PathSegment(go.PathSegment.Line,.7*y,ee).close()),ge.spot1=new go.Spot(0,E/a);var se=De(.7,te/a,1,.5,0,z/a,1,z/a,ie());return ge.spot2=new go.Spot(se.x,se.y),ce(se),ge}),go.Shape.setFigureParameter("Pointer",0,new qe("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=.1);var b=new go.Geometry,E=new go.PathFigure(y,.5*a,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,x*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(x,.35);var z=De(.2,.65,1,.65,0,1,1,.5,ie());return b.spot2=new go.Spot(z.x,z.y),ce(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new qe("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=.3);var b=new go.Geometry,E=new go.PathFigure(y,.5*a,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*y,.75*a,x*y,.25*a).close()),b.spot1=new go.Spot(x,.35);var z=De(0,.65,1,.65,0,1,1,.5,ie());return b.spot2=new go.Spot(z.x,z.y),ce(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new qe("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=.4);var b=(.5-x/2)*a,E=(.5+x/2)*a,z=new go.Geometry,ee=new go.PathFigure(y,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(.2,.3);var te=De(.7,1,1,.5,0,E/a,1,E/a,ie());return z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new qe("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=50);var b=(a-x)/2,E=b+x;x>a&&(b=0,E=a);var z=new go.Geometry,ee=new go.PathFigure(y,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(.2,b/a);var te=De(.7,1,1,.5,0,E/a,1,E/a,ie());return z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new qe("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=.7);var b=new go.Geometry,E=new go.PathFigure(y,.5*a,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,x*y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,x*y,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(x,1),b}),go.Shape.defineFigureGenerator("Cone1",function(oe,y,a){var x=new go.Geometry,b=ae*.5,E=ae*.1,z=new go.PathFigure(0,.9*a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+E)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+E)*a).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.9*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.9*a,(1-.85/.9)*y,a,.85/.9*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*a).close());var E=new go.PathFigure(0,.9*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,y,.9*a,(1-.85/.9)*y,.8*a,.85/.9*y,.8*a)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.5*y,a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var E=new go.PathFigure(.5*y,a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,.3*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),E.add(new go.PathSegment(go.PathSegment.Move,.5*y,.3*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.3*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0).close());var E=new go.PathFigure(0,.3*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*y,.3*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,0)),E.add(new go.PathSegment(go.PathSegment.Move,.7*y,.3*a)),E.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=ae*.5,z=new go.PathFigure(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,ae*x,(.5-E)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*y,x,(.5+E)*y,0,1*y,ae*x)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,1*a,1*y,a-ae*x,(.5+E)*y,1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,(.5-E)*y,1*a,0,a-ae*x)),z.add(new go.PathSegment(go.PathSegment.Line,0,x));var ee=new go.PathFigure(y,x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,2*x,1*y,2*x-ae*x,(.5+E)*y,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*y,2*x,0,2*x-ae*x)),b.spot1=new go.Spot(0,0,0,2*x),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=ae*.5,z=new go.PathFigure(0,a-x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,ae*x,(.5-E)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,x,(.5+E)*y,0,y,ae*x)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,a-ae*x,(.5+E)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,(.5-E)*y,a,0,a-ae*x));var ee=new go.PathFigure(0,a-x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a-2*x,0,a-x-ae*x,(.5-E)*y,a-2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,y,a-x,(.5+E)*y,a-2*x,y,a-x-ae*x)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*x),b}),go.Shape.defineFigureGenerator("Cylinder3",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=ae*.5,z=new go.PathFigure(x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y-x,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,y-ae*x,0,y,(.5-E)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-x,a,y,(.5+E)*a,y-ae*x,a)),z.add(new go.PathSegment(go.PathSegment.Line,x,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,ae*x,a,0,(.5+E)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*a,ae*x,0));var ee=new go.PathFigure(x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*a,x+ae*x,0,2*x,(.5-E)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,a,2*x,(.5+E)*a,x+ae*x,a)),b.spot1=new go.Spot(0,0,2*x,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=ae*.5,z=new go.PathFigure(y-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,y-ae*x,0,y,(.5-E)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-x,a,y,(.5+E)*a,y-ae*x,a)),z.add(new go.PathSegment(go.PathSegment.Line,x,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,ae*x,a,0,(.5+E)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*a,ae*x,0)),z.add(new go.PathSegment(go.PathSegment.Line,y-x,0));var ee=new go.PathFigure(y-x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,y-2*x,.5*a,y-x-ae*x,0,y-2*x,(.5-E)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,y-x,a,y-2*x,(.5+E)*a,y-x-ae*x,a)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*x,0),b}),go.Shape.defineFigureGenerator("Prism1",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.25*y,.25*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var E=new go.PathFigure(.25*y,.25*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.25*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var E=new go.PathFigure(0,a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),E.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),E.add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a).close());var E=new go.PathFigure(.5*y,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var E=new go.PathFigure(.5*y,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,.7*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.85*a)),E.add(new go.PathSegment(go.PathSegment.Move,.5*y,.7*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(oe,y,a){var x=new go.Geometry,b=.2,E=.1,z=ae*b,ee=ae*E,te=.5,ge=.1,de=new go.PathFigure(te*y,(ge+E)*a,!0);x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*y,ge*a,(te-z)*y,(ge+E)*a,(te-b)*y,(ge+ee)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(ge-E)*a,(te-b)*y,(ge-ee)*a,(te-z)*y,(ge-E)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*y,ge*a,(te+z)*y,(ge-E)*a,(te+b)*y,(ge-ee)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(ge+E)*a,(te+b)*y,(ge+ee)*a,(te+z)*y,(ge+E)*a));var se=.05,be=ae*se;te=.05,ge=.25;var Se=new go.PathFigure(.5*y,.2*a,!0);return x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.95*y,.2*a)),te=.95,ge=.25,Se.add(new go.PathSegment(go.PathSegment.Bezier,(te+se)*y,ge*a,(te+be)*y,(ge-se)*a,(te+se)*y,(ge-be)*a)),Se.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*y,.35*a)),se=.025,be=ae*se,te=.825,ge=.35,Se.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(ge-se)*a,(te+se)*y,(ge-be)*a,(te+be)*y,(ge-se)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(te-se)*y,ge*a,(te-be)*y,(ge-se)*a,(te-se)*y,(ge-be)*a)),Se.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*y,a)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*y,.7*a)),se=.05,be=ae*se,te=.5,ge=.7,Se.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(ge-se)*a,(te+se)*y,(ge-be)*a,(te+be)*y,(ge-se)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(te-se)*y,ge*a,(te-be)*y,(ge-se)*a,(te-se)*y,(ge-be)*a)),Se.add(new go.PathSegment(go.PathSegment.Line,.45*y,a)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*y,.35*a)),se=.025,be=ae*se,te=.175,ge=.35,Se.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(ge-se)*a,(te+se)*y,(ge-be)*a,(te+be)*y,(ge-se)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(te-se)*y,ge*a,(te-be)*y,(ge-se)*a,(te-se)*y,(ge-be)*a)),Se.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),se=.05,be=ae*se,te=.05,ge=.25,Se.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(ge-se)*a,(te-se)*y,(ge-be)*a,(te-be)*y,(ge-se)*a)),Se.add(new go.PathSegment(go.PathSegment.Line,.5*y,.2*a)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new qe("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(y,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*a)),E.add(new go.PathSegment(go.PathSegment.Line,x*y,0).close()),b.spot1=new go.Spot(0,x),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.5*y,.5*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a));var E=new go.PathFigure(.5*y,.5*a,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(oe,y,a){var x=new go.Geometry,b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,0)),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,b*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,(1-b)*a)),x}),go.Shape.defineFigureGenerator("Database",function(oe,y,a){var x=new go.Geometry,b=ae*.5,E=ae*.1,z=new go.PathFigure(y,.1*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+E)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+E)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,(.1-E)*a,(.5-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,(.5+b)*y,0,y,(.1-E)*a));var ee=new go.PathFigure(y,.1*a,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,y,(.1+E)*a,(.5+b)*y,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-b)*y,.2*a,0,(.1+E)*a)),ee.add(new go.PathSegment(go.PathSegment.Move,y,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,y,(.2+E)*a,(.5+b)*y,.3*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-b)*y,.3*a,0,(.2+E)*a)),ee.add(new go.PathSegment(go.PathSegment.Move,y,.3*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.4*a,y,(.3+E)*a,(.5+b)*y,.4*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,(.5-b)*y,.4*a,0,(.3+E)*a)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,y,0,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.9*a,.25*y,.1*a).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(oe,y,a){var x=new go.Geometry,b=ae*.5,E=ae*.1,z=new go.PathFigure(y,.1*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+E)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+E)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,(.1-E)*a,(.5-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,(.5+b)*y,0,y,(.1-E)*a));var ee=new go.PathFigure(y,.1*a,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,y,(.1+E)*a,(.5+b)*y,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-b)*y,.2*a,0,(.1+E)*a)),ee.add(new go.PathSegment(go.PathSegment.Move,y,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,y,(.2+E)*a,(.5+b)*y,.3*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-b)*y,.3*a,0,(.2+E)*a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.25*y,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,y,0,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(oe,y,a){var x=new go.Geometry,b=oe?oe.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var E=ae*.2,z=new go.PathFigure(0,.2*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,0,(.2-E)*a,(.2-E)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.2*a,(.8+E)*y,0,y,(.2-E)*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,a,y,(.8+E)*a,(.8+E)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*a,(.2-E)*y,a,0,(.8+E)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*a));var ee=new go.PathFigure(0,b*a,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(oe,y,a){var x=new go.Geometry,b=oe?oe.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,0)),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,b*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),x}),go.Shape.defineFigureGenerator("Document",function(oe,y,a){var x=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(oe,y,a){var x=new go.Geometry,b=oe?oe.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,0)),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(b*y,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*a)),z.add(new go.PathSegment(go.PathSegment.Move,y,b*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*a)),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,y,(1-b)*a)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var E=new go.PathFigure(.1*y,.4*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*y,.6*a)),E.add(new go.PathSegment(go.PathSegment.Move,.9*y,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),E.add(new go.PathSegment(go.PathSegment.Move,.6*y,.1*a)),E.add(new go.PathSegment(go.PathSegment.Line,.4*y,.1*a)),E.add(new go.PathSegment(go.PathSegment.Move,.4*y,.9*a)),E.add(new go.PathSegment(go.PathSegment.Line,.6*y,.9*a)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var E=new go.PathFigure(.75*y,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*y,.25*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y,.5*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a));var E=new go.PathFigure(y,.5*a,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,a));var z=new go.PathFigure(y,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(oe,y,a){var x=new go.Geometry,b=oe?oe.parameter1:NaN,E=oe?oe.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ee=new go.PathFigure(b*y,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),ee.add(new go.PathSegment(go.PathSegment.Move,0,E*a)),ee.add(new go.PathSegment(go.PathSegment.Line,y,E*a)),x}),go.Shape.defineFigureGenerator("Junction",function(oe,y,a){var x=new go.Geometry,b=1/Math.SQRT2,E=(1-1/Math.SQRT2)/2,z=ae*.5,ee=.5,te=new go.PathFigure(y,ee*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*y,a,y,(ee+z)*a,(ee+z)*y,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*a,(ee-z)*y,a,0,(ee+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*y,0,0,(ee-z)*a,(ee-z)*y,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,y,ee*a,(ee+z)*y,0,y,(ee-z)*a));var ge=new go.PathFigure((E+b)*y,(E+b)*a,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,E*y,E*a)),ge.add(new go.PathSegment(go.PathSegment.Move,E*y,(E+b)*a)),ge.add(new go.PathSegment(go.PathSegment.Line,(E+b)*y,E*a)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(oe,y,a){var x=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close());var E=new go.PathFigure(.1*y,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*y,.75*a)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(oe,y,a){var x=new go.Geometry,b=ae*.5,E=.5,z=new go.PathFigure(.5*y,a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*a,(E-b)*y,a,0,(E+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*y,0,0,(E-b)*a,(E-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,E*a,(E+b)*y,0,y,(E-b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(E+.1)*y,.9*a,y,(E+b)*a,(E+b)*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(oe,y,a){var x=new go.Geometry,b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.7);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,0)),E.add(new go.PathSegment(go.PathSegment.Line,b*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(oe,y,a){var x=new go.Geometry,b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,b*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,0)),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,(1-b)*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(oe,y,a){var x=new go.Geometry;a=a/.8;var b=new go.PathFigure(y,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.44*a,.96*y,.47*a,.93*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.54*a,.86*y,.57*a,.83*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.4*y,.4*a,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,0).close());var E=new go.PathFigure(.1*y,.2*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.54*a)),E.add(new go.PathSegment(go.PathSegment.Move,.2*y,.1*a)),E.add(new go.PathSegment(go.PathSegment.Line,.9*y,.1*a)),E.add(new go.PathSegment(go.PathSegment.Line,.9*y,.44*a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.1*y,.1*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a).close());var E=new go.PathFigure(.2*y,.1*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.9*y,.1*a)),E.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),E.add(new go.PathSegment(go.PathSegment.Move,.1*y,.2*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.9*a)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(oe,y,a){var x=new go.Geometry,b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.1);var E=1-b,z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close());var ee=new go.PathFigure(.5*b*y,b*a,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*y,b*a)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(oe,y,a){var x=new go.Geometry,b=ae*.5,E=.5,z=new go.PathFigure(y,E*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*y,a,y,(E+b)*a,(E+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*a,(E-b)*y,a,0,(E+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*y,0,0,(E-b)*a,(E-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,E*a,(E+b)*y,0,y,(E-b)*a));var ee=new go.PathFigure(y,.5*a,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(oe,y,a){var x=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.3*a,.5*y,.6*a,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(oe,y,a){var x=new go.Geometry,b=oe?oe.parameter1:NaN,E=oe?oe.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(oe,y,a){var x=new go.Geometry,b=oe?oe.parameter1:NaN,E=oe?oe.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(oe,y,a){var x=new go.Geometry,b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,0)),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure((1-b)*y,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,b*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),x}),go.Shape.defineFigureGenerator("Process",function(oe,y,a){var x=new go.Geometry,b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,0)),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(b*y,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var E=new go.PathFigure(0,.5*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(oe,y,a){var x=new go.Geometry,b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(b*y,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*y,.5*a,.25*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*y,.5*a,.25*y,.5*a));var z=new go.PathFigure(b*y,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,a)),x.spot1=new go.Spot(b,0),x.spot2=new go.Spot(1-b,1),x}),go.Shape.defineFigureGenerator("Terminator",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.25*y,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*y,.5*a,.25*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*y,.5*a,.25*y,.5*a)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(oe,y,a){var x=new go.Geometry,b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,0)),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,.75*y,(1-b)*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*a).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(oe,y,a){var x=new go.Geometry,b=ae*.5,E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,(.5+b)*y,0,y,(.5-b)*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.5+b)*a,(.5+b)*y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(oe,y,a){var x=new go.Geometry,b=ae*.5,E=.5,z=new go.PathFigure(y,E*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*y,a,y,(E+b)*a,(E+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*a,(E-b)*y,a,0,(E+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*y,0,0,(E-b)*a,(E-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,E*a,(E+b)*y,0,y,(E-b)*a));var ee=new go.PathFigure(y,E*a,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y,E*a));var te=new go.PathFigure(.8*y,.75*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*y,.25*a)),te.add(new go.PathSegment(go.PathSegment.Line,.6*y,.25*a)),te.add(new go.PathSegment(go.PathSegment.Line,.6*y,.75*a)),te.add(new go.PathSegment(go.PathSegment.Line,.4*y,.75*a)),te.add(new go.PathSegment(go.PathSegment.Line,.4*y,.25*a)),te.add(new go.PathSegment(go.PathSegment.Line,.2*y,.25*a)),te.add(new go.PathSegment(go.PathSegment.Line,.2*y,.75*a)),x}),go.Shape.defineFigureGenerator("Ground",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.5*y,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Move,.3*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Move,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,a)),x}),go.Shape.defineFigureGenerator("Inverter",function(oe,y,a){var x=new go.Geometry,b=ae*.1,E=.1,z=.9,ee=.5,te=new go.PathFigure(.8*y,.5*a,!0);x.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*y,.5*a));var ge=new go.PathFigure((z+E)*y,ee*a,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+E)*a,(z+E)*y,(ee+b)*a,(z+b)*y,(ee+E)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*y,ee*a,(z-b)*y,(ee+E)*a,(z-E)*y,(ee+b)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-E)*a,(z-E)*y,(ee-b)*a,(z-b)*y,(ee-E)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,ee*a,(z+b)*y,(ee-E)*a,(z+E)*y,(ee-b)*a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(oe,y,a){var x=new go.Geometry,b=ae*.5,E=ae*.4,z=ae*.1,ee=.1,te=.9,ge=.5,de=new go.PathFigure(.8*y,.5*a,!0);x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,a,.8*y,(.5+E)*a,(.4+b)*y,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*y,0)),de.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(.4+b)*y,0,.8*y,(.5-E)*a));var se=new go.PathFigure((te+ee)*y,ge*a,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(ge+ee)*a,(te+ee)*y,(ge+z)*a,(te+z)*y,(ge+ee)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*y,ge*a,(te-z)*y,(ge+ee)*a,(te-ee)*y,(ge+z)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(ge-ee)*a,(te-ee)*y,(ge-z)*a,(te-z)*y,(ge-ee)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*y,ge*a,(te+z)*y,(ge-ee)*a,(te+ee)*y,(ge-z)*a)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(oe,y,a){var x=new go.Geometry,b=.5,E=ae*b,z=0,ee=.5,te=new go.PathFigure(.8*y,.5*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.7*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.75*a,.25*y,.25*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(z+E)*y,(ee-b)*a,.7*y,(ee-E)*a)),b=.1,E=ae*.1,z=.9,ee=.5;var ge=new go.PathFigure((z-b)*y,ee*a,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-E)*a,(z-E)*y,(ee-b)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+E)*y,(ee-b)*a,(z+b)*y,(ee-E)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-E)*y,(ee+b)*a,(z-b)*y,(ee+E)*a)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(oe,y,a){var x=new go.Geometry,b=.5,E=ae*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,(z+E+E)*y,(ee-b)*a,.8*y,(ee-E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.8*y,(ee+E)*a,(z+E+E)*y,(ee+b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.75*a,.25*y,.25*a).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(oe,y,a){var x=new go.Geometry,b=.5,E=ae*b,z=.2,ee=.5,te=new go.PathFigure(.1*y,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,a,.35*y,.25*a,.35*y,.75*a));var ge=new go.PathFigure(.8*y,.5*a,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,a,.7*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,.45*y,.75*a,.45*y,.25*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(z+E)*y,(ee-b)*a,.7*y,(ee-E)*a)),b=.1,E=ae*.1,z=.9,ee=.5;var de=new go.PathFigure((z-b)*y,ee*a,!0);return x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-E)*a,(z-E)*y,(ee-b)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+E)*y,(ee-b)*a,(z+b)*y,(ee-E)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-E)*y,(ee+b)*a,(z-b)*y,(ee+E)*a)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(oe,y,a){var x=new go.Geometry,b=.5,E=ae*b,z=.2,ee=.5,te=new go.PathFigure(.1*y,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,a,.35*y,.25*a,.35*y,.75*a));var ge=new go.PathFigure(.2*y,0,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,(z+E)*y,(ee-b)*a,.9*y,(ee-E)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,a,.9*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,.45*y,.75*a,.45*y,.25*a).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),x}),go.Shape.defineFigureGenerator("Resistor",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.5*a,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.5*a)),x}),go.Shape.defineFigureGenerator("Inductor",function(oe,y,a){var x=new go.Geometry,b=ae*.1,E=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*y,a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,0,(z-b)*y,a,(z-E)*y,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+E)*y,0,(z+b)*y,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,0,(z-b)*y,a,(z-E)*y,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+E)*y,0,(z+b)*y,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,0,(z-b)*y,a,(z-E)*y,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+E)*y,0,(z+b)*y,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,0,(z-b)*y,a,(z-E)*y,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*y,a,(z+E)*y,0,(z+b)*y,a)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(oe,y,a){var x=new go.Geometry,b=ae*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure((z-E)*y,ee*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-E)*a,(z-E)*y,(ee-b)*a,(z-b)*y,(ee-E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,ee*a,(z+b)*y,(ee-E)*a,(z+E)*y,(ee-b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+E)*a,(z+E)*y,(ee+b)*a,(z+b)*y,(ee+E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*y,ee*a,(z-b)*y,(ee+E)*a,(z-E)*y,(ee+b)*a)),te.add(new go.PathSegment(go.PathSegment.Move,(z-E+.1)*y,ee*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E-.1)*y,ee*a,z*y,(ee-E)*a,z*y,(ee+E)*a)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.75*a,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),x}),go.Shape.defineFigureGenerator("Diode",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(oe,y,a){var x=new go.Geometry,b=y,E=a;y=y*.38,a=a*.6;var z=ae*.8,ee=.8,te=0,ge=.5,de=(b-y)/2,se=(E-a)/2,be=new go.PathFigure(te*y+de,(ge+ee)*a+se,!0);x.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*y+de,ge*a+se,(te-z)*y+de,(ge+ee)*a+se,(te-ee)*y+de,(ge+z)*a+se)),be.add(new go.PathSegment(go.PathSegment.Bezier,te*y+de,(ge-ee)*a+se,(te-ee)*y+de,(ge-z)*a+se,(te-z)*y+de,(ge-ee)*a+se)),be.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*y+de,ge*a+se,te*y+de,(ge-ee)*a+se,(te-ee+z*.5)*y+de,(ge-z)*a+se)),be.add(new go.PathSegment(go.PathSegment.Bezier,te*y+de,(ge+ee)*a+se,(te-ee+z*.5)*y+de,(ge+z)*a+se,te*y+de,(ge+ee)*a+se).close()),z=ae*.4,ee=.4,te=.2,ge=.5;var Se=new go.PathFigure(te*y+de,(ge+ee)*a+se,!0);x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*y+de,ge*a+se,(te-z)*y+de,(ge+ee)*a+se,(te-ee)*y+de,(ge+z)*a+se)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te*y+de,(ge-ee)*a+se,(te-ee)*y+de,(ge-z)*a+se,(te-z)*y+de,(ge-ee)*a+se)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*y+de,ge*a+se,te*y+de,(ge-ee)*a+se,(te-ee+z*.5)*y+de,(ge-z)*a+se)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te*y+de,(ge+ee)*a+se,(te-ee+z*.5)*y+de,(ge+z)*a+se,te*y+de,(ge+ee)*a+se).close()),z=ae*.2,ee=.2,te=.5,ge=.5;var Ee=new go.PathFigure((te-ee)*y+de,ge*a+se,!0);x.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,te*y+de,(ge-ee)*a+se,(te-ee)*y+de,(ge-z)*a+se,(te-z)*y+de,(ge-ee)*a+se)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*y+de,ge*a+se,(te+z)*y+de,(ge-ee)*a+se,(te+ee)*y+de,(ge-z)*a+se)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,te*y+de,(ge+ee)*a+se,(te+ee)*y+de,(ge+z)*a+se,(te+z)*y+de,(ge+ee)*a+se)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*y+de,ge*a+se,(te-z)*y+de,(ge+ee)*a+se,(te-ee)*y+de,(ge+z)*a+se)),z=ae*.4,ee=.4,te=.8,ge=.5;var he=new go.PathFigure(te*y+de,(ge-ee)*a+se,!0);x.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*y+de,ge*a+se,(te+z)*y+de,(ge-ee)*a+se,(te+ee)*y+de,(ge-z)*a+se)),he.add(new go.PathSegment(go.PathSegment.Bezier,te*y+de,(ge+ee)*a+se,(te+ee)*y+de,(ge+z)*a+se,(te+z)*y+de,(ge+ee)*a+se)),he.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*y+de,ge*a+se,te*y+de,(ge+ee)*a+se,(te+ee-z*.5)*y+de,(ge+z)*a+se)),he.add(new go.PathSegment(go.PathSegment.Bezier,te*y+de,(ge-ee)*a+se,(te+ee-z*.5)*y+de,(ge-z)*a+se,te*y+de,(ge-ee)*a+se).close()),z=ae*.8,ee=.8,te=1,ge=.5;var ft=new go.PathFigure(te*y+de,(ge-ee)*a+se,!0);return x.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*y+de,ge*a+se,(te+z)*y+de,(ge-ee)*a+se,(te+ee)*y+de,(ge-z)*a+se)),ft.add(new go.PathSegment(go.PathSegment.Bezier,te*y+de,(ge+ee)*a+se,(te+ee)*y+de,(ge+z)*a+se,(te+z)*y+de,(ge+ee)*a+se)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*y+de,ge*a+se,te*y+de,(ge+ee)*a+se,(te+ee-z*.5)*y+de,(ge+z)*a+se)),ft.add(new go.PathSegment(go.PathSegment.Bezier,te*y+de,(ge-ee)*a+se,(te+ee-z*.5)*y+de,(ge-z)*a+se,te*y+de,(ge-ee)*a+se).close()),x}),go.Shape.defineFigureGenerator("Email",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,0)),E.add(new go.PathSegment(go.PathSegment.Move,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,.45*y,.54*a)),E.add(new go.PathSegment(go.PathSegment.Move,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,.55*y,.54*a)),x}),go.Shape.defineFigureGenerator("Ethernet",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.35*y,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,0).close());var E=new go.PathFigure(.1*y,a,!0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),E.add(new go.PathSegment(go.PathSegment.Line,.4*y,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,.1*y,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,.1*y,a).close());var z=new go.PathFigure(.6*y,a,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*y,a).close());var ee=new go.PathFigure(0,.5*a,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*y,.6*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*y,.6*a)),x}),go.Shape.defineFigureGenerator("Power",function(oe,y,a){var x=new go.Geometry,b=ae*.4,E=.4,z=.5,ee=.5,te=ie(),ge=ie(),de=ie(),se=ie();We(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,ge,de,se);var be=ne(ge.x,ge.y),Se=new go.PathFigure(ge.x*y,ge.y*a,!0);x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,ee*a,de.x*y,de.y*a,se.x*y,se.y*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+E)*a,(z+E)*y,(ee+b)*a,(z+b)*y,(ee+E)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*y,ee*a,(z-b)*y,(ee+E)*a,(z-E)*y,(ee+b)*a)),We(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,de,se,ge,te,te),Se.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*y,ge.y*a,de.x*y,de.y*a,se.x*y,se.y*a)),b=ae*.3,E=.3,We(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,de,se,ge,te,te),Se.add(new go.PathSegment(go.PathSegment.Line,ge.x*y,ge.y*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*y,ee*a,se.x*y,se.y*a,de.x*y,de.y*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+E)*a,(z-E)*y,(ee+b)*a,(z-b)*y,(ee+E)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,ee*a,(z+b)*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),We(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,ge,de,se),Se.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*y,ge.y*a,se.x*y,se.y*a,de.x*y,de.y*a).close());var Se=new go.PathFigure(.45*y,0,!0);return x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.45*y,.5*a)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*y,.5*a)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*y,0).close()),ce(te),ce(ge),ce(de),ce(se),ce(be),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,a/2,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,y/2,a/2,y/2,a/2));function E(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*y,(.8+te)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*y,(.5+te)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*y,(.5+te)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*y,(.8+te)*a).close())}return E(b,0,0),E(b,.4,0),E(b,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.2*y,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.37*y,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.11*a)),b.add(new go.PathSegment(go.PathSegment.Line,.77*y,.04*a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.49*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.37*a)),b.add(new go.PathSegment(go.PathSegment.Line,.63*y,.86*a)),b.add(new go.PathSegment(go.PathSegment.Line,.77*y,.91*a)),b.add(new go.PathSegment(go.PathSegment.Line,.34*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.34*y,.78*a)),b.add(new go.PathSegment(go.PathSegment.Line,.44*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.56*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*a).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.1*y,a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*y,0,-.25*y,.63*a,.45*y,.44*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*y,.42*a,.48*y,.17*a,.54*y,.35*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*y,.18*a,.59*y,.29*a,.58*y,.28*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,.6*a,.8*y,.34*a,.88*y,.43*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*y,.31*a,.87*y,.48*a,.88*y,.43*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,a,1.17*y,.76*a,.82*y,.8*a).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(oe,y,a){var x=new go.Geometry,b=.5,E=0,z=0,ee=b*ae,te=.4*Math.SQRT2/2+.5,ge=.5-.5*Math.SQRT2/2,de=1,se=.5,be=.5,Se=0,Ee=new go.PathFigure(te*y,(1-ge)*a,!1);return x.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,de*y,se*a,de*y,.7*a,de*y,se*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(be+E)*y,(Se+E)*a,(.5+b+E)*y,(.5-ee+E)*a,(.5+ee+E)*y,(.5-b+E)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*y,(.5+z)*a,(.5-ee+E)*y,(.5-b+z)*a,(.5-b+E)*y,(.5-ee+z)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(.35+E)*y,.9*a,(.5-b+E)*y,(.5+ee+z)*a,(.5-ee+E)*y,.9*a)),Ee.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*y,.8*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*y,.9*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,(.2+E)*y,.95*a)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Move,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(y,a,!1);x.add(E);var z=new go.PathFigure(0,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.5*a,.2*y,.35*a,.3*y,.35*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.7*y,.65*a,.8*y,.65*a)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.2*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a).close());var b=new go.PathFigure(0,.2*a,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.7*y,a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,0,.6*y,.5*a,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,a,.4*y,.5*a,y,.5*a).close());var E=new go.PathFigure(.45*y,.73*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*y,.73*a)),E.add(new go.PathSegment(go.PathSegment.Move,.38*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,.63*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Move,.31*y,.27*a)),E.add(new go.PathSegment(go.PathSegment.Line,.56*y,.27*a)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(.335*y,(1-.555)*a,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.335*y,(1-.405)*a)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.405)*a)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.555)*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,y,.68*a,(1-.12)*y,.46*a,(1-.02)*y,.54*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.68*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.335*y,(1-.555)*a,.02*y,.54*a,.12*y,.46*a)),E.add(new go.PathSegment(go.PathSegment.Line,.365*y,(1-.595)*a));var z=.5-.285,ee=.5,te=z,ge=Math.PI/4,de=4*(1-Math.cos(ge))/(3*Math.sin(ge)),se=de*.5,be=z,Se=z,Ee=de*be,he=de*Se;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-be)*y,te*a,(ee-(Ee+be)/2)*y,(te+(Se+he)/2)*a,(ee-be)*y,(te+he)*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*y,(te-Se)*a,(ee-be)*y,(te-he)*a,(ee-Ee)*y,(te-Se)*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+be)*y,te*a,(ee+Ee)*y,(te-Se)*a,(ee+be)*y,(te-he)*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*y,(1-.595)*a,(ee+be)*y,(te+he)*a,(ee+(Ee+be)/2)*y,(te+(Se+he)/2)*a)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*y,(1-.595)*a)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.555)*a)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.405)*a)),E.add(new go.PathSegment(go.PathSegment.Line,.335*y,(1-.405)*a));var ft=new go.PathFigure(.2*y,a,!1);x.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.2*y,.8*a));var it=new go.PathFigure(.8*y,a,!1);return x.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.8*y,.8*a)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.1*y,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,a).close());var E=new go.PathFigure(.2*y,.2*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),E.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),E.add(new go.PathSegment(go.PathSegment.Move,.2*y,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.6*a)),E.add(new go.PathSegment(go.PathSegment.Move,.2*y,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.8*a)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.5*a).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(y,a,!1);x.add(E);var z=new go.PathFigure(.1*y,a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a).close()),x}),go.Shape.defineFigureGenerator("Caution",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.05*y,a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,.8*a,0,a,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.1*a,.5*y,0,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,a,y,a,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,a));var E=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-E)*y,.875*a)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*y,.875*a,E*y,E*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.325*a,.575*y,.725*a,.625*y,.375*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.75*a,.375*y,.375*a,.425*y,.725*a)),x}),go.Shape.defineFigureGenerator("Recycle",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.45*y,.95*a,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*y,.85*a,.17*y,.95*a,.15*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.235*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.625*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,.275*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,.575*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*y,.95*a,0,.675*a,0,.7*a)),b.add(new go.PathSegment(go.PathSegment.Move,.45*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.775*a)),b.add(new go.PathSegment(go.PathSegment.Line,.22*y,.775*a));var E=new go.PathFigure(.475*y,.2*a,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*y,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,.225*y,.3*a)),E.add(new go.PathSegment(go.PathSegment.Line,.275*y,.175*a)),E.add(new go.PathSegment(go.PathSegment.Line,.325*y,.05*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,.05*a,.35*y,0,.375*y,0)),E.add(new go.PathSegment(go.PathSegment.Line,.575*y,.375*a)),E.add(new go.PathSegment(go.PathSegment.Line,.525*y,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,.75*y,.475*a)),E.add(new go.PathSegment(go.PathSegment.Line,.85*y,.315*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.32*a)),E.add(new go.PathSegment(go.PathSegment.Line,.65*y,.05*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.575*y,0,.65*y,.05*a,.625*y,0)),E.add(new go.PathSegment(go.PathSegment.Line,.38*y,.0105*a));var z=new go.PathFigure(.675*y,.575*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*y,.525*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*y,.95*a,y,.8*a,y,.85*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.95*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.85*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.725*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Line,.7*y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Move,.675*y,.575*a)),z.add(new go.PathSegment(go.PathSegment.Line,.775*y,.775*a)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(oe,y,a){var x=new go.Geometry,b=.5,E=ae*.5,z=new go.PathFigure(y,b*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*y,a,y,(b+E)*a,(b+E)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*a,(b-E)*y,a,0,(b+E)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*y,0,0,(b-E)*a,(b-E)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,b*a,(b+E)*y,0,y,(b-E)*a));var ee=new go.PathFigure(b*y,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*y,.15*a)),ee.add(new go.PathSegment(go.PathSegment.Move,b*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,b*y,.85*a)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*y,b*a)),ee.add(new go.PathSegment(go.PathSegment.Move,y,b*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*y,b*a)),ee.add(new go.PathSegment(go.PathSegment.Move,b*y,b*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*y,.1*a)),ee.add(new go.PathSegment(go.PathSegment.Move,b*y,b*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*y,.54*a)),x}),go.Shape.defineFigureGenerator("Package",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.15*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var E=new go.PathFigure(0,.15*a,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),E.add(new go.PathSegment(go.PathSegment.Line,.65*y,.15*a).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*a,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,.2*a).close());var z=new go.PathFigure(0,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.5*a).close()),x}),go.Shape.defineFigureGenerator("Component",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y,a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close());var E=new go.PathFigure(0,.2*a,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.45*y,.2*a)),E.add(new go.PathSegment(go.PathSegment.Line,.45*y,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close());var z=new go.PathFigure(0,.6*a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*a).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.15*y,.6*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a));var E=new go.PathFigure(.15*y,.6*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y,a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.66*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,.66*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(y,.8*a,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,.6*y,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,.6*y,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,.8*a).close());var z=.1,ee=ae*.1,te=.2,ge=.9,de=new go.PathFigure((te-z)*y,ge*a,!0);x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(ge-z)*a,(te-z)*y,(ge-ee)*a,(te-ee)*y,(ge-z)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*y,ge*a,(te+ee)*y,(ge-z)*a,(te+z)*y,(ge-ee)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(ge+z)*a,(te+z)*y,(ge+ee)*a,(te+ee)*y,(ge+z)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*y,ge*a,(te-ee)*y,(ge+z)*a,(te-z)*y,(ge+ee)*a).close()),z=.1,ee=ae*.1,te=.8,ge=.9;var se=new go.PathFigure((te-z)*y,ge*a,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(ge-z)*a,(te-z)*y,(ge-ee)*a,(te-ee)*y,(ge-z)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*y,ge*a,(te+ee)*y,(ge-z)*a,(te+z)*y,(ge-ee)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(ge+z)*a,(te+z)*y,(ge+ee)*a,(te+ee)*y,(ge+z)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*y,ge*a,(te-ee)*y,(ge+z)*a,(te-z)*y,(ge+ee)*a).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.2*y,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),x}),go.Shape.defineFigureGenerator("Forklift",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var E=new go.PathFigure(0,.5*a,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.5*y,.8*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.8*a));var ee=new go.PathFigure(.5*y,.7*a,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y,.7*a));var te=.1,ge=ae*.1,de=.1,se=.9,be=new go.PathFigure((de-te)*y,se*a,!0);x.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,de*y,(se-te)*a,(de-te)*y,(se-ge)*a,(de-ge)*y,(se-te)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,(de+te)*y,se*a,(de+ge)*y,(se-te)*a,(de+te)*y,(se-ge)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,de*y,(se+te)*a,(de+te)*y,(se+ge)*a,(de+ge)*y,(se+te)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,(de-te)*y,se*a,(de-ge)*y,(se+te)*a,(de-te)*y,(se+ge)*a)),te=.1,ge=ae*.1,de=.4,se=.9;var Se=new go.PathFigure((de-te)*y,se*a,!0);return x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,de*y,(se-te)*a,(de-te)*y,(se-ge)*a,(de-ge)*y,(se-te)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(de+te)*y,se*a,(de+ge)*y,(se-te)*a,(de+te)*y,(se-ge)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,de*y,(se+te)*a,(de+te)*y,(se+ge)*a,(de+ge)*y,(se+te)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(de-te)*y,se*a,(de-ge)*y,(se+te)*a,(de-te)*y,(se+ge)*a)),x}),go.Shape.defineFigureGenerator("RailShipment",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.1*y,.4*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.4*a).close());var E=new go.PathFigure(.45*y,.7*a,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.55*y,.7*a));var z=new go.PathFigure(.55*y,.4*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.4*a).close());var de=.05,se=ae*.05,be=.175,Se=.95,ee=new go.PathFigure((be-de)*y,Se*a,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,be*y,(Se-de)*a,(be-de)*y,(Se-se)*a,(be-se)*y,(Se-de)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(be+de)*y,Se*a,(be+se)*y,(Se-de)*a,(be+de)*y,(Se-se)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,be*y,(Se+de)*a,(be+de)*y,(Se+se)*a,(be+se)*y,(Se+de)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(be-de)*y,Se*a,(be-se)*y,(Se+de)*a,(be-de)*y,(Se+se)*a));var de=.05,se=ae*.05,be=.375,Se=.95,te=new go.PathFigure((be-de)*y,Se*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,be*y,(Se-de)*a,(be-de)*y,(Se-se)*a,(be-se)*y,(Se-de)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(be+de)*y,Se*a,(be+se)*y,(Se-de)*a,(be+de)*y,(Se-se)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,be*y,(Se+de)*a,(be+de)*y,(Se+se)*a,(be+se)*y,(Se+de)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(be-de)*y,Se*a,(be-se)*y,(Se+de)*a,(be-de)*y,(Se+se)*a));var de=.05,se=ae*.05,be=.625,Se=.95,ge=new go.PathFigure((be-de)*y,Se*a,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,be*y,(Se-de)*a,(be-de)*y,(Se-se)*a,(be-se)*y,(Se-de)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(be+de)*y,Se*a,(be+se)*y,(Se-de)*a,(be+de)*y,(Se-se)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,be*y,(Se+de)*a,(be+de)*y,(Se+se)*a,(be+se)*y,(Se+de)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(be-de)*y,Se*a,(be-se)*y,(Se+de)*a,(be-de)*y,(Se+se)*a));var de=.05,se=ae*.05,be=.825,Se=.95,Ee=new go.PathFigure((be-de)*y,Se*a,!0);x.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,be*y,(Se-de)*a,(be-de)*y,(Se-se)*a,(be-se)*y,(Se-de)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(be+de)*y,Se*a,(be+se)*y,(Se-de)*a,(be+de)*y,(Se-se)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,be*y,(Se+de)*a,(be+de)*y,(Se+se)*a,(be+se)*y,(Se+de)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(be-de)*y,Se*a,(be-se)*y,(Se+de)*a,(be-de)*y,(Se+se)*a).close());var he=new go.PathFigure(0,a,!1);return x.add(he),he.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*a,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,.2*a).close());var z=new go.PathFigure(.15*y,a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.15*y,a).close());var ee=.05,te=ae*.05,ge=.35,de=.775,se=new go.PathFigure((ge-ee)*y,de*a,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ge*y,(de-ee)*a,(ge-ee)*y,(de-te)*a,(ge-te)*y,(de-ee)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ee)*y,de*a,(ge+te)*y,(de-ee)*a,(ge+ee)*y,(de-te)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,ge*y,(de+ee)*a,(ge+ee)*y,(de+te)*a,(ge+te)*y,(de+ee)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ee)*y,de*a,(ge-te)*y,(de+ee)*a,(ge-ee)*y,(de+te)*a).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.75*a,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),x}),go.Shape.defineFigureGenerator("Bookmark",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),x}),go.Shape.defineFigureGenerator("Bookmark",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),x}),go.Shape.defineFigureGenerator("Globe",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.5*y,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.75*y,0,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,.75*a,.75*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.25*y,a,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,.25*a,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,.15*y,.25*a,.15*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.85*y,.75*a,.85*y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*y,.15*a,.35*y,.3*a,.65*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*y,.85*a,.35*y,.7*a,.65*y,.7*a)),x}),go.Shape.defineFigureGenerator("Wave",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.25*a,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.25*a,.1*y,0,.2*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,.25*a,.425*y,.5*a,.575*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.25*a,.8*y,0,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.75*a,.1*y,.5*a,.2*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,.75*a,.425*y,a,.575*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.75*a,.8*y,.5*a,.9*y,.5*a)),x}),go.Shape.defineFigureGenerator("Operator",function(oe,y,a){var x=new go.Geometry,b=.3,E=ae*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*y,ee*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-E)*a,(z-E)*y,(ee-b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+E)*y,(ee-b)*a,(z+b)*y,(ee-E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-E)*y,(ee+b)*a,(z-b)*y,(ee+E)*a));var ge=new go.PathFigure(0,.7*a,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,y,.7*a,0,0,y,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.65*y,.3*a,.65*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.35*y,.5*a,.35*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.3*y,.6*a,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.2*y,a,.35*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,a,.7*y,.6*a,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.8*y,a,.65*y,.95*a)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,0,.075*a,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,a,0,a,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.4*a,.8*y,a,.85*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),x}),go.Shape.defineFigureGenerator("Battery",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,.4*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.1*a));var E=new go.PathFigure(0,.6*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,0,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),x}),go.Shape.defineFigureGenerator("Delete",function(oe,y,a){var x=new go.Geometry,b=.5,E=ae*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*y,ee*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-E)*a,(z-E)*y,(ee-b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+E)*y,(ee-b)*a,(z+b)*y,(ee-E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-E)*y,(ee+b)*a,(z-b)*y,(ee+E)*a));var ge=new go.PathFigure(.15*y,.5*a,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.85*y,.5*a)),x}),go.Shape.defineFigureGenerator("Flag",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.1*a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.1*a,.15*y,0,.35*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,.65*y,.2*a,.85*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.5*a,.85*y,.6*a,.65*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.35*y,.4*a,.15*y,.4*a).close()),x}),go.Shape.defineFigureGenerator("Help",function(oe,y,a){var x=new go.Geometry,b=.5,E=ae*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*y,ee*a,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-E)*a,(z-E)*y,(ee-b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+E)*y,(ee-b)*a,(z+b)*y,(ee-E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-E)*y,(ee+b)*a,(z-b)*y,(ee+E)*a).close()),b=.05,E=ae*.05,z=.5,ee=.8;var ge=new go.PathFigure((z-b)*y,ee*a,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-E)*a,(z-E)*y,(ee-b)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+E)*y,(ee-b)*a,(z+b)*y,(ee-E)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-E)*y,(ee+b)*a,(z-b)*y,(ee+E)*a).close()),ge.add(new go.PathSegment(go.PathSegment.Move,.5*y,.7*a)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,.75*y,.475*a,.75*y,.225*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.35*a,.4*y,.2*a,.3*y,.25*a)),x}),go.Shape.defineFigureGenerator("Location",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,a,!0).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.975*y,.025*a,.5*y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*y,.5*a,.5*y,0,.025*y,.025*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*y,.2*a)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*y,.3*a,.1*y,.1*a).close()))}),go.Shape.defineFigureGenerator("Lock",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var E=new go.PathFigure(.2*y,.5*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,.2*y,.3*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.3*a,.25*y,0,.75*y,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.3*a)),x}),go.Shape.defineFigureGenerator("Unlocked",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var E=new go.PathFigure(.2*y,.5*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,.2*y,.3*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.3*a,.25*y,0,.75*y,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.35*a)),x}),go.Shape.defineFigureGenerator("Gear",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(.9375*y,.56246875*a,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.80621875*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.763*y,.3316875*a,.79840625*y,.39915625*a,.7834375*y,.3635*a)).add(new go.PathSegment(go.PathSegment.Line,.8566875*y,.23796875*a)).add(new go.PathSegment(go.PathSegment.Line,.76825*y,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.67596875*y,.24184375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*y,.19378125*a,.64228125*y,.2188125*a,.603875*y,.2021875*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*y,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*y,.19378125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*y,.239375*a,.39759375*y,.20190625*a,.36053125*y,.2176875*a)).add(new go.PathSegment(go.PathSegment.Line,.2379375*y,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.14953125*y,.2379375*a)).add(new go.PathSegment(go.PathSegment.Line,.23934375*y,.3278125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*y,.4375*a,.21765625*y,.36059375*a,.201875*y,.397625*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*y,.5625*a)).add(new go.PathSegment(go.PathSegment.Line,.1938125*y,.5625*a)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*y,.67596875*a,.20221875*y,.603875*a,.21884375*y,.64228125*a)).add(new go.PathSegment(go.PathSegment.Line,.1495625*y,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.238*y,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.3316875*y,.76296875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*y,.80621875*a,.36353125*y,.78340625*a,.3991875*y,.79840625*a)).add(new go.PathSegment(go.PathSegment.Line,.43753125*y,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.80621875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*y,.760625*a,.602375*y,.79809375*a,.63946875*y,.78234375*a)).add(new go.PathSegment(go.PathSegment.Line,.76828125*y,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.85671875*y,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.76065625*y,.67221875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*y,.56246875*a,.78234375*y,.63940625*a,.798125*y,.602375*a)).add(new go.PathSegment(go.PathSegment.Line,.9375*y,.56246875*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*y,.6*a)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*y,.5*a,.1*y,.1*a).close()))}),go.Shape.defineFigureGenerator("Hand",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,.3*a,0,.375*a,.05*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*y,.075*a,.3*y,.225*a,.4*y,.175*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*y,.075*a,.46*y,.05*a,.525*y,.05*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.4*a,.525*y,.275*a,.475*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.55*a,y,.4*a,y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.425*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*y,.7*a,.675*y,.55*a,.675*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.575*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*y,.85*a,.65*y,.7*a,.65*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.525*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*y,a,.61*y,.85*a,.61*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,.435*y,a,0,a).close()),x}),go.Shape.defineFigureGenerator("Map",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.2*a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.8*a)),x}),go.Shape.defineFigureGenerator("Eject",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.7).close());var E=new go.PathFigure(0,a*.6,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)).add(new go.PathSegment(go.PathSegment.Line,y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,a)).add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a).close()))}),go.Shape.defineFigureGenerator("Building",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y*1,a*1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.85).close());var E=new go.PathFigure(.126*y,.85*a,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.126*y,.45*a)),E.add(new go.PathSegment(go.PathSegment.Line,.322*y,.45*a)),E.add(new go.PathSegment(go.PathSegment.Line,.322*y,.85*a).close());var z=new go.PathFigure(.402*y,.85*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*y,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.598*y,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.598*y,.85*a).close());var ee=new go.PathFigure(.678*y,.85*a,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*y,.45*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*y,.45*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*y,.85*a).close());var te=new go.PathFigure(.5*y,.1*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*y,.3*a)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*y,.3*a).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,a*1,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*.8)),b.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.8)),b.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.6)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.6)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.4)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.4)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.2)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.2)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.15)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.15)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,a*1,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.184,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.184,a*(1-.184)).close());var E=new go.PathFigure(y*.204,a,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y*.204,a*(1-.184))),E.add(new go.PathSegment(go.PathSegment.Line,y*.388,a*(1-.184*2))),E.add(new go.PathSegment(go.PathSegment.Line,y*.388,a*1).close());var z=new go.PathFigure(y*.408,a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.408,a*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,y*.592,a*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,y*.592,a*1).close());var ee=new go.PathFigure(y*.612,a,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*.612,a*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,y*.796,a*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,y*.796,a*1).close());var te=new go.PathFigure(y*.816,a,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*.816,a*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,0).close());var E=new go.PathFigure(y*.055,.07*a,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.07)),E.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.1)),E.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.1).close());var z=new go.PathFigure(y*.055,.13*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.13)),z.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.16)),z.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.16).close());var ee=new go.PathFigure(y*.055,.18*a,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.21).close());var te=new go.PathFigure(y*1,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.65)),te.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.55*y,a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.475*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*y,.525*a,0,.4*a,.225*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.475*a)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.2*a,.975*y,0,y,.08*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.55*y,a).close()),x}),go.Shape.defineFigureGenerator("Key",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y*1,a*.5,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.9,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,.575*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.9,.6*a).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*y,.425*a)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*y,.5*a,.075*y,.075*a).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,y*0,y*.3,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.08,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.08,a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*1),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*1),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*2),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*2),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*3),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*3),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*4),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*4),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*5),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*5),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*6),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*6),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*7),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*7),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*8),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*8),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*9),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*9),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*10),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*10),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*11),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*11),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*12),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*12),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*13),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*13),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*14),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*14),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*15),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*15),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1));var E=new go.PathFigure(0,0,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y*1,a*0)),E.add(new go.PathSegment(go.PathSegment.Arc,270,-180,y*1,y*.3,y*.055)),E.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1));var z=new go.PathFigure(y*.11,a*.1,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*0),a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*0),a*.8)),z.add(new go.PathSegment(go.PathSegment.Line,y*.11,a*.8).close());var ee=new go.PathFigure(y*(.11+.24133333*1+.028*1),a*.1,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*1),a*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*1),a*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*1),a*.8).close());var te=new go.PathFigure(y*(.11+.24133333*2+.028*2),a*.1,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*3+.028*2),a*.1)),te.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*3+.028*2),a*.8)),te.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*2),a*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(oe,y,a){var x=new go.Geometry,b=8,E=b*ae,z=new go.PathFigure(b,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.14)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-b,a,y,a-E,y-E,a)),z.add(new go.PathSegment(go.PathSegment.Line,b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-b,E,a,0,a-E)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,E,E,0).close());var ee=new go.PathFigure(y*.83,0,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*.83,a*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*0).close());var te=new go.PathFigure(y*.83,a*1,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*.83,a*.5)),te.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*.5)),te.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*1).close());var ge=new go.PathFigure(y*.78,a*.05,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.05)),ge.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.25)),ge.add(new go.PathSegment(go.PathSegment.Line,y*.78,a*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(oe,y,a){var x=oe?oe.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,y/3),x=Math.min(x,a/3);var b=x*ae,E=a*.8,z=new go.Geometry,ee=new go.PathFigure(x,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y-x,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,y,x,y-b,0,y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,y,E-x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,y-x,E,y,E-b,y-b,E)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.7,E)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.7,a)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.55,E)),ee.add(new go.PathSegment(go.PathSegment.Line,x,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E-x,b,E,0,E-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y*0,a*.45,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*.45).close());var E=new go.PathFigure(y*1,a*.55,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*1)),E.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.55)),E.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*.55)),E.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*.1)),E.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.1)),E.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*0)),E.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),E.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()).add(new go.PathSegment(go.PathSegment.Move,.4*y,.4*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a).close()).add(new go.PathSegment(go.PathSegment.Move,.2*y,.1*a)).add(new go.PathSegment(go.PathSegment.Line,.2*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.1*a).close()).add(new go.PathSegment(go.PathSegment.Move,.1*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.1*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a).close()))}),go.Shape.defineFigureGenerator("Terminal",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y*0,a*.1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*.9).close());var E=new go.PathFigure(y*.1,a*.2,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.25)),E.add(new go.PathSegment(go.PathSegment.Line,y*.22,a*.285)),E.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.32)),E.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.37)),E.add(new go.PathSegment(go.PathSegment.Line,y*.275,a*.32)),E.add(new go.PathSegment(go.PathSegment.Line,y*.275,a*.25).close());var z=new go.PathFigure(y*.28,a*.37,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.37)),z.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.41)),z.add(new go.PathSegment(go.PathSegment.Line,y*.28,a*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(oe,y,a){var x=new go.Geometry,b=15,E=b*ae,z=new go.PathFigure(y*.62,a*.475,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,a-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-b,a,y,a-E,y-E,a)),z.add(new go.PathSegment(go.PathSegment.Line,b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-b,E,a,0,a-E)),z.add(new go.PathSegment(go.PathSegment.Line,y*.38,a*.475)),z.add(new go.PathSegment(go.PathSegment.Line,y*.38,a*.03)),z.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,y*.62,a*.03).close()),E>1?(x.spot1=new go.Spot(0,0,E,E),x.spot2=new go.Spot(1,1,-E,-E)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-E)).close());var z=new go.PathFigure(y*.4,a*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.26,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.66)),z.add(new go.PathSegment(go.PathSegment.Line,y*(1-.26),a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);x.add(b);var E=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-E)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-E)).close());var z=new go.PathFigure(y*.5,a*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.26,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.63)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.63)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.74,a*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y*.15,a*0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y*.15,a*0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1).close());var E=new go.PathFigure(y*.235,a*.28,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y*.765,a*.28)),E.add(new go.PathSegment(go.PathSegment.Line,y*.655,a*.97)),E.add(new go.PathSegment(go.PathSegment.Line,y*.345,a*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y*.5,a*0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.5)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.65)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.65)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*.5)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.25).close()),x}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},93510: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 qe={},gt="5.0",ne={},ie=null,ce=!1,De=!1,We=null,we=!1,Be=null,ae=null,Je=0;Je<arguments.length;Je++){var Ve=arguments[Je];if(Ve!==null)switch(typeof Ve){case"number":gt=Ve.toFixed(1);break;case"string":Ve.match(new RegExp("^[0-9]\\.[0-9]+$"))?gt=Ve:We=Ve;break;case"object":typeof Ve.is3D!="undefined"?ie=Ve:ne=Ve;break;case"boolean":ce=Ve,De=!0;break}}ie===null&&(ie={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ne.material_id!==void 0&&!De&&(ce=!0)),We!==null&&ne.id===void 0&&(ne.id=We);var He="",Re="",et=!1,Ke=null,oe=null,y=null,a=!1,x=null,b=null,E=null,z=null,ee=null;ne.height!==void 0&&(ne.height=Math.round(ne.height)),ne.width!==void 0&&(ne.width=Math.round(ne.width));var te=function(Oe){return parseFloat(Oe)>4?parseFloat(Oe):5};qe.setHTML5Codebase=function(Oe,je){ae=Oe,wt(Oe,je)},qe.setJavaCodebase=qe.setJavaCodebaseVersion=qe.isCompiledInstalled=qe.setPreCompiledScriptPath=qe.setPreCompiledResourcePath=function(){},qe.setHTML5CodebaseVersion=function(Oe,je){var ct=parseFloat(Oe);if(ct!==NaN&&ct<5){console.log("The GeoGebra HTML5 codebase version "+ct+" is deprecated. Using version latest instead.");return}Be=Oe,St(Oe,je)},qe.getHTML5CodebaseVersion=function(){return oe},qe.getParameters=function(){return ne},qe.setFontsCSSURL=function(Oe){z=Oe},qe.setGiacJSURL=function(Oe){},qe.setJNLPFile=function(Oe){He=Oe},qe.setJNLPBaseDir=function(Oe){},qe.inject=function(){function Oe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var je="auto",ct=ne.id,Gt,nt=!1,$t=0;$t<arguments.length;$t++){var ye=arguments[$t];typeof ye=="string"?(ye=ye.toLowerCase(),ye.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?je=ye:ct=arguments[$t]):typeof ye=="boolean"?nt=ye:ye instanceof HTMLElement&&(Gt=ye)}Et();function Et(){if(!we){setTimeout(Et,200);return}je=at(je);var Ht=Gt||document.getElementById(ct);if(!Ht){console.log("possibly bug on ajax loading? ");return}if(qe.removeExistingApplet(Ht,!1),ne.width===void 0&&Ht.clientWidth&&(ne.width=Ht.clientWidth),ne.height===void 0&&Ht.clientHeight&&(ne.height=Ht.clientHeight),!(ne.width&&ne.height)&&je==="html5"&&(delete ne.width,delete ne.height),Ke=je,je==="screenshot")it(Ht,ne);else{var cn=!1;ne.hasOwnProperty("playButton")&&ne.playButton||ne.hasOwnProperty("clickToLoad")&&ne.clickToLoad?cn=!0:ne.hasOwnProperty("playButtonAutoDecide")&&ne.playButtonAutoDecide&&(cn=(!ge()||Oe())&&de()),cn?(Ke="screenshot",Ce(Ht,ne,nt,je)):ft(Ht,ne,nt)}}};function ge(){try{return window.self!==window.top}catch(Oe){return!0}}function de(){return ne.hasOwnProperty("screenshotGenerator")&&ne.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}qe.getViews=function(){return ie},qe.isJavaInstalled=function(){return!1};var se=function(Oe){var je=function($t){var ye=JSON.parse($t),Et=function(Xt){return Xt.type=="G"||Xt.type=="E"},Ht=ye.elements?ye.elements.filter(Et)[0]:ye;if(!Ht||!Ht.url){ct();return}ne.fileName=Ht.url,be(Ht.settings||{}),ie.is3D=!0;var cn="https://www.geogebra.org/images/";qe.setPreviewImage(x||Ht.previewUrl,cn+"GeoGebra_loading.png",cn+"applet_play.png"),Oe()},ct=function(){ne.onError&&ne.onError(),Ft("Error: Fetching material (id "+ne.material_id+") failed.",ne)},Gt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",nt="/materials/"+ne.material_id+"?scope=basic";Se("https://"+Gt+"/api/proxy.php?path="+encodeURIComponent(nt),je,ct)};function be(Oe){var je=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(ct){Oe[ct]=!!Oe[ct]}),je.forEach(function(ct){ne[ct]===void 0&&Oe[ct]!==void 0&&(ne[ct]=Oe[ct])}),ne.showToolBarHelp===void 0&&(ne.showToolBarHelp=ne.showToolBar)}function Se(Oe,je,ct){var Gt=new XMLHttpRequest;Gt.open("GET",Oe),Gt.onload=function(){je(Gt.responseText)},Gt.onerror=ct,Gt.send()}qe.isHTML5Installed=function(){return!0},qe.getLoadedAppletType=function(){return Ke},qe.setPreviewImage=function(Oe,je,ct){x=Oe,b=je,E=ct},qe.removeExistingApplet=function(Oe,je){var ct;typeof Oe=="string"&&(Oe=document.getElementById(Oe)),Ke=null;var Gt=null;for(ct=0;ct<Oe.childNodes.length;ct++){var nt=Oe.childNodes[ct],$t=nt.className;$t==="applet_screenshot"?je?(nt.style.display="block",Ke="screenshot"):nt.style.display="none":$t!=="applet_scaler prerender"&&(Oe.removeChild(nt),Gt=$t&&$t.indexOf("appletParameters")!=-1?nt.id:null,ct--)}var ye=ne.id!==void 0?ne.id:Gt,Et=window[ye];Et&&typeof Et.getBase64=="function"&&(Et.remove(),window[ye]=null)},qe.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Oe=qe.getAppletObject();return Oe&&typeof Oe.recalculateEnvironments=="function"?(Oe.recalculateEnvironments(),!0):!1},qe.startAnimation=function(){var Oe=qe.getAppletObject();return Oe&&typeof Oe.startAnimation=="function"?(Oe.startAnimation(),!0):!1},qe.stopAnimation=function(){var Oe=qe.getAppletObject();return Oe&&typeof Oe.stopAnimation=="function"?(Oe.stopAnimation(),!0):!1},qe.getAppletObject=function(){var Oe=ne.id!==void 0?ne.id:"ggbApplet";return window[Oe]},qe.resize=function(){};var Ee=function(Oe,je,ct){var Gt=document.createElement("param");Gt.setAttribute("name",je),Gt.setAttribute("value",ct),Oe.appendChild(Gt)},he=function(Oe){return Oe&&Oe!=="false"},ft=function(Oe,je,ct){te(oe)<=4.2&&(ct=!0);var Gt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==oe||ggbHTML5LoadedCodebaseIsWebSimple&&!a)&&(Gt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var nt=document.createElement("div");nt.classList.add("appletParameters","notranslate");var $t=je.width,ye=je.height;if(je.disableAutoScale=je.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():je.disableAutoScale,je.width!==void 0)if(te(oe)<=4.4)he(je.showToolBar)&&(je.height-=7),he(je.showAlgebraInput)&&(je.height-=37),je.width<605&&he(je.showToolBar)&&(je.width=605,$t=605);else{var Et=100;(he(je.showToolBar)||he(je.showMenuBar))&&(je.hasOwnProperty("customToolBar")&&(je.customToolbar=je.customToolBar),Et=he(je.showMenuBar)?245:155),$t<Et&&(je.width=Et,$t=Et)}nt.style.border="none",nt.style.display="inline-block";for(var Ht in je)je.hasOwnProperty(Ht)&&Ht!=="appletOnLoad"&&nt.setAttribute("data-param-"+Ht,je[Ht]);z&&nt.setAttribute("data-param-fontscssurl",z),qe.resize=function(){GGBAppletUtils.responsiveResize(Oe,je)},window.addEventListener("resize",function(Pe){qe.resize()});var cn=typeof je.appletOnLoad=="function"?je.appletOnLoad:function(){};if(!ct&&je.width!==void 0){je.hasOwnProperty("showSplash")||nt.setAttribute("data-param-showSplash","false");var Xt=Oe.querySelector(".applet_scaler.prerender"),Te=Xt!==null;if(Te)var $e=Xt.querySelector(".ggb_preview");else{var $e=tt($t,ye,je.borderColor,!1);Xt=document.createElement("div"),Xt.className="applet_scaler",Xt.style.position="relative",Xt.style.display="block",Xt.style.width=$t+"px",Xt.style.height=ye+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Xt,"66%"),te(oe)>=5?(je.appletOnLoad=function(Pe){var ke=Oe.querySelector(".ggb_preview");ke&&ke.parentNode.removeChild(ke),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Xt),window.GGBT_wsf_view&&$(window).trigger("resize"),cn(Pe)},Te||Xt.appendChild($e)):nt.appendChild($e),Xt.appendChild(nt),Te||Oe.appendChild(Xt),setTimeout(function(){qe.resize()},1)}else{var Fe=document.createElement("div");Fe.className="applet_scaler",Fe.style.position="relative",Fe.style.display="block",Fe.appendChild(nt),Oe.appendChild(Fe),je.appletOnLoad=function(Pe){qe.resize(),cn(Pe)}}function me(Pe,ke){ke&&typeof ke.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Pe,ke.appletOnLoad):renderGGBElement(Pe),Ft("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ke)}function Ue(Pe,ke){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Pe,params:ke}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Lt){me(Lt.article,Lt.params)}),html5AppletsToProcess=null)},te(oe)<5&&(Pe.className+=" geogebraweb")):me(Pe,ke)}if(Gt){scriptLoadStarted=!0;for(var vt=0;vt<nt.childNodes.length;vt++){var pe=nt.childNodes[vt].tagName;pe==="TABLE"&&(nt.removeChild(nt.childNodes[vt]),vt--)}if(ggbHTML5LoadedScript!==null){var ue=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');ue!=null&&ue.parentNode.removeChild(ue)}var Ze=document.createElement("script"),Ne=function(){Ue(nt,je)};Ze.src=Re+y,ggbHTML5LoadedCodebaseIsWebSimple=a,ggbHTML5LoadedCodebaseVersion=oe,ggbHTML5LoadedScript=Ze.src,Ft("GeoGebra HTML5 codebase loaded: '"+Re+"'.",je),!ae&&(!Be||Be=="5.0")?(a?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ne()):Re.requirejs?__webpack_require__.e(3861).then(function(){var Pe=[__webpack_require__(40341)];Ne.apply(null,Pe)}.bind(this)).catch(__webpack_require__.oe):(Ze.onload=Ne,Oe.appendChild(Ze))}else Ue(nt,je);je.height=ye,je.width=$t},it=function(Oe,je,ct){var Gt=tt(je.width,je.height,je.borderColor,ct),nt=document.createElement("div");nt.style.position="relative",nt.style.display="block",nt.style.width=je.width+"px",nt.style.height=je.height+"px",nt.className="applet_screenshot applet_scaler"+(ct?" applet_screenshot_play":""),nt.appendChild(Gt);var $t=GGBAppletUtils.getScale(je,Oe,ct);ct?(Oe.appendChild(Ae()),window.GGBT_wsf_view||(Oe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(nt,"66%"),Oe.appendChild(nt),$t!==1&&!isNaN($t)&&(GGBAppletUtils.scaleElement(nt,$t),nt.style.width=je.width+"px",nt.style.height=je.height+"px",nt.parentNode.style.width=je.width*$t+"px",nt.parentNode.style.height=je.height*$t+"px"),qe.resize=function(){_t(Oe,Gt,nt,ct)},window.addEventListener("resize",function(ye){qe.resize()}),qe.resize()};function _t(Oe,je,ct,Gt){if(Oe.contains(je)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Oe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Oe)}var nt=GGBAppletUtils.getScale(ne,Oe,Gt);ct.parentNode!==null&&(!isNaN(nt)&&nt!==1?(GGBAppletUtils.scaleElement(ct,nt),ct.parentNode.style.width=ne.width*nt+"px",ct.parentNode.style.height=ne.height*nt+"px"):(GGBAppletUtils.scaleElement(ct,1),ct.parentNode.style.width=ne.width+"px",ct.parentNode.style.height=ne.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Oe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}qe.onExitFullscreen=function(Oe,je){je.appendChild(Oe)};var Ce=function(Oe,je,ct,Gt){it(Oe,je,!0);for(var nt=function(){var Et=[];for(ye=0;ye<Oe.childNodes.length;ye++)Et.push(Oe.childNodes[ye]);if(window.GGBT_wsf_view){var Ht=window.GGBT_wsf_view.renderFullScreen(Oe,je.id),cn=document.getElementById("fullscreencontainer"),Xt=jQuery(Oe).find(".fullscreencontent");Xt.length>0?(Ht.remove(),Xt.attr("id","fullscreencontent").show(),jQuery(cn).append(Xt),window.dispatchEvent(new Event("resize"))):ft(Ht,je,!1),window.GGBT_wsf_view.launchFullScreen(cn)}else Ke=Gt,ft(Oe,je,!1);if(!window.GGBT_wsf_view)for(ye=0;ye<Et.length;ye++)Oe.removeChild(Et[ye])},$t=Oe.getElementsByClassName("ggb_preview_play"),ye=0;ye<$t.length;ye++)$t[ye].addEventListener("click",nt,!1),$t[ye].addEventListener("ontouchstart",nt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Oe),de()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ae=function(){var Oe=document.createElement("div");if(Oe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var je='.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");}',ct=document.createElement("style");ct.styleSheet?ct.styleSheet.cssText=je:ct.appendChild(document.createTextNode(je)),document.getElementsByTagName("head")[0].appendChild(ct)}return Oe},tt=function(Oe,je,ct,Gt){var nt=document.createElement("div");nt.className="ggb_preview",nt.style.position="absolute",nt.style.zIndex="90",nt.style.width=Oe-2+"px",nt.style.height=je-2+"px",nt.style.top="0px",nt.style.left="0px",nt.style.overflow="hidden",nt.style.backgroundColor="white";var $t="lightgrey";ct!==void 0&&(ct==="none"?$t="transparent":$t=ct),nt.style.border="1px solid "+$t;var ye=document.createElement("img");if(ye.style.position="relative",ye.style.zIndex="1000",ye.style.top="-1px",ye.style.left="-1px",x!==null&&ye.setAttribute("src",x),ye.style.opacity=.7,b!==null){var Et,Ht,cn;if(!Gt){Et=document.createElement("img"),Et.style.position="absolute",Et.style.zIndex="1001",Et.style.opacity=1,ye.style.opacity=.3,Ht=360,Ht>Oe/4*3&&(Ht=Oe/4*3),cn=Ht/5.8,Et.setAttribute("src",b),Et.setAttribute("width",Ht),Et.setAttribute("height",cn);var Xt=(Oe-Ht)/2,Te=(je-cn)/2;Et.style.left=Xt+"px",Et.style.top=Te+"px",nt.appendChild(Et)}}return nt.appendChild(ye),nt},at=function(Oe){return Oe=Oe.toLowerCase(),Oe==="html5"||Oe==="screenshot"?Oe:"html5"},st=["web","webSimple","web3d","tablet","tablet3d","phone"],St=function(Oe,je){if(oe=Oe,je){wt(oe,!0);return}var ct=!ce;if(ct){var Gt=te(oe);!isNaN(Gt)&&Gt<4.4&&(ct=!1)}var nt,$t;window.location.protocol.substr(0,4)==="http"?nt=window.location.protocol:nt="http:";var ye=oe.indexOf("//");ye>0?$t=oe:ye===0?$t=nt+oe:$t="https://www.geogebra.org/apps/5.2.814.0/";for(var Et in st)if(oe.slice(st[Et].length*-1)===st[Et]||oe.slice((st[Et].length+1)*-1)===st[Et]+"/"){wt($t,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&ct&&!ie.is3D&&!ie.AV&&!ie.SV&&!ie.CV&&!ie.EV2&&!ie.CP&&!ie.PC&&!ie.DA&&!ie.FI&&!ie.PV&&!he(ne.showToolBar)&&!he(ne.showMenuBar)&&!he(ne.showAlgebraInput)&&!he(ne.enableRightClick)&&(!ne.appName||ne.appName=="classic")?$t+="webSimple/":$t+="web3d/",wt($t,!1)},wt=function(Oe,je){if(Oe.requirejs){Re=Oe;return}Oe.slice(-1)!=="/"&&(Oe+="/"),Re=Oe,je===null&&(je=Oe.indexOf("http")===-1),et=je,y="web.nocache.js",a=!1;var ct=Re.split("/");ct.length>1&&(!je&&ct[ct.length-2]==="webSimple"?(y="webSimple.nocache.js",a=!0):st.indexOf(ct[ct.length-2])>=0&&(y=ct[ct.length-2]+".nocache.js")),ct=Oe.split("/"),oe=ct[ct.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 Gt=parseFloat(oe);Gt!==NaN&&Gt<5&&Oe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Gt+" is deprecated. Using version latest instead."),St("5.0",je))},Ft=function(Oe,je){window.console&&window.console.log&&(!je||typeof je.showLogging=="undefined"||je.showLogging&&je.showLogging!=="false")&&console.log(Oe)};ne.material_id!==void 0?se(Tt):Tt();function Tt(){var Oe=gt;Be!==null?Oe=Be:parseFloat(Oe)<5&&(Oe="5.0"),St(Oe,!1),ae!==null&&wt(ae,et),we=!0}return qe},GGBAppletUtils=function(){"use strict";function qe(){return window.GGBT_wsf_edit!==void 0}function gt(we,Be){Be!=1?(we.style.transformOrigin="0% 0% 0px",we.style.webkitTransformOrigin="0% 0% 0px",we.style.transform="scale("+Be+","+Be+")",we.style.webkitTransform="scale("+Be+","+Be+")",we.style.maxWidth="initial",we.querySelector(".ggb_preview")!==null&&(we.querySelector(".ggb_preview").style.maxWidth="initial"),we.querySelectorAll(".ggb_preview img")[0]!==void 0&&(we.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),we.querySelectorAll(".ggb_preview img")[1]!==void 0&&(we.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(we.style.transform="none",we.style.webkitTransform="none")}function ne(we,Be,ae,Je,Ve,He){var Re=null;if(He!=null&&He!="")for(var et=we.parentNode;et!=null;)if((" "+et.className+" ").indexOf(" "+He+" ")>-1){Re=et;break}else et=et.parentNode;var Ke=0,oe=0,y=0,a=0,x=0,b=0,E=0;if(Re)Ke=Re.offsetWidth,oe=Math.max(Je?Re.offsetWidth:0,Re.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ke=Math.min(window.innerWidth,document.documentElement.clientWidth),oe=Math.min(window.innerHeight,document.documentElement.clientHeight),y=Ke):(Ke=window.innerWidth,oe=window.innerHeight,y=window.innerWidth),we){var z=we.getBoundingClientRect();z.left>0&&z.left<=Ke&&(Ve===void 0||!Ve)&&(document.dir==="rtl"?(x=Ke-z.width-z.left,b=y<=480?10:30):(b=z.left,x=y<=480?10:30),a=b+x)}if(we&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=we.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(a=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(a=0,E=40)}}return we&&((ae===void 0||!ae)&&Be>0&&Be+a<Ke?Ke=Be:Ke-=a,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ae===void 0||!ae)&&(oe-=E)),{width:Ke,height:oe}}function ie(we,Be,ae,Je,Ve){if(we.isScreenshoGenerator)return 1;var He=Je!==void 0&&Je,Re=we.noScaleMargin!=null&&we.noScaleMargin,et=function(ee){return ee&&ee!=="false"},Ke=et(we.autoHeight),oe=ne(Be,we.width,ae,Ke,He&&window.GGBT_wsf_view||Re,Ve),y=parseInt(oe.width),a=we.width,x=we.height;if(a===void 0){var b=Be.querySelector(".appletParameters");b&&(a=b.offsetWidth,x=b.offsetHeight)}var E=y/a,z=He?1:oe.height/x;return ae!==void 0&&!ae&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function ce(we,Be,ae){var Je=1,Ve,He=!1;if(we.hasOwnProperty("allowUpscale")&&(He=we.allowUpscale),we.hasOwnProperty("scale")&&(Je=parseFloat(we.scale),(isNaN(Je)||Je===null||Je===0)&&(Je=1),Je>1&&(He=!0)),Be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(He=!0),!(we.hasOwnProperty("disableAutoScale")&&we.disableAutoScale))Ve=ie(we,Be,He,ae,we.scaleContainerClass);else return Je;return He&&(!we.hasOwnProperty("scale")||Je===1)?Ve:Math.min(Je,Ve)}function De(we){var Be=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),Je=we.getBoundingClientRect(),Ve=(Be-Je.width)/2,He=(ae-Je.height)/2;He<0&&(He=0),we.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ve<40?we.style.left="40px":we.style.left=Ve+"px",we.style.top=He+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(He<40?we.style.top="40px":we.style.top=He+"px",we.style.left=Ve+"px")}function We(we,Be){var ae=we.querySelector(".appletParameters");if(ae){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Be.id!==ae.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(we)}if(ae.parentElement&&/fullscreen/.test(ae.parentElement.className))return;var Je=ce(Be,we);qe()&&ae.setAttribute("data-param-scale",Je);for(var Ve=null,He=0;He<we.childNodes.length;He++)if(we.childNodes[He].className!==void 0&&we.childNodes[He].className.match(/^applet_scaler/)){Ve=we.childNodes[He];break}if(Ve!==null&&Ve.querySelector(".noscale")!==null)return;var Re=Be.id!==void 0?Be.id:"ggbApplet",et=window[Re];(et==null||!et.recalculateEnvironments)&&Ve!==null&&!Ve.className.match(/fullscreen/)&&(Ve.parentNode.style.transform="",!isNaN(Je)&&Je!==1?(Ve.parentNode.style.width=Be.width*Je+"px",Ve.parentNode.style.height=Be.height*Je+"px",gt(Ve,Je)):(gt(Ve,1),Ve.parentNode.style.width=Be.width+"px",Ve.parentNode.style.height=Be.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&De(we),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ae).parents(".content-added-content"))}}return{responsiveResize:We,isFlexibleWorksheetEditor:qe,positionCenter:De,getScale:ce,scaleElement:gt}}();__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 qe=n.location.search;return qe.indexOf(J)!=-1||qe.indexOf(K)!=-1}function q(qe,gt){}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(qe){var gt=s[L].bindings;s[L].bindings=function(){for(var ne=gt?gt():{},ie=qe[webModule.__softPermutationId],ce=O;ce<ie.length;ce++){var De=ie[ce];ne[De[O]]=De[P]}return ne}};var t;function u(){return v(),t}function v(){if(!t){var qe=o.createElement(Q);if(qe.id=L,qe.style.cssText=R+S,qe.tabIndex=-1,o.body.appendChild(qe),t=qe.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var gt=document.compatMode==U?V:W;t.write(gt+X),t.close()}}}function w(qe){function gt(ie){function ce(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var De=ce();if(De){ie();return}function We(){if(!De){if(!ce())return;De=!0,ie(),o.removeEventListener&&o.removeEventListener(Z,We,!1),we&&clearInterval(we)}}o.addEventListener&&o.addEventListener(Z,We,!1);var we=setInterval(function(){We()},$)}function ne(ie){var ce=u(),De=ce.body,We=ce.createElement(_);We.language=ab,We.crossOrigin=W,We.src=ie,webModule.__errFn&&(We.onerror=function(){webModule.__errFn(L,new Error(bb+ie))}),De.appendChild(We)}gt(function(){ne(qe)})}webModule.__startLoadingFragment=function(qe){return C(qe)},webModule.__installRunAsyncCode=function(qe){var gt=u(),ne=gt.body,ie=gt.createElement(_);ie.language=ab,ie.text=qe,ne.appendChild(ie),ne.removeChild(ie)};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(qe){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(qe){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(qe){var gt=c[qe];return gt==null?null:gt},r=d,webModule.__errFn=e}function B(){function qe(we){var Be=we.lastIndexOf(rb);Be==-1&&(Be=we.length);var ae=we.indexOf(sb);ae==-1&&(ae=we.length);var Je=we.lastIndexOf(tb,Math.min(ae,Be));return Je>=O?we.substring(O,Je+P):W}function gt(we){if(!we.match(/^\w+:\/\//)){var Be=o.createElement(ub);Be.src=we+vb,we=qe(Be.src)}return we}function ne(){var we=__gwt_getMetaProperty(wb);return we!=null?we:W}function ie(){for(var we=o.getElementsByTagName(_),Be=O;Be<we.length;++Be)if(we[Be].src.indexOf(xb)!=-1)return qe(we[Be].src);return W}function ce(){var we=o.getElementsByTagName(yb);return we.length>O?we[we.length-P].href:W}function De(){var we=o.location;return we.href==we.protocol+zb+we.host+we.pathname+we.search+we.hash}var We=ne();return We==W&&(We=ie()),We==W&&(We=ce()),We==W&&De()&&(We=qe(o.location.href)),We=gt(We),We}function C(qe){return qe.match(/^\//)||qe.match(/^[a-zA-Z]+:\/\//)?qe:webModule.__moduleBase+qe}function D(){var qe=[],gt=O,ne=[],ie=[];function ce(we){var Be=ie[we](),ae=ne[we];if(Be in ae)return Be;var Je=[];for(var Ve in ae)Je[ae[Ve]]=Ve;throw r&&r(we,Je,Be),null}if(__gwt_isKnownPropertyValue=function(we,Be){return Be in ne[we]},webModule.__getPropMap=function(){var we={};for(var Be in ne)ne.hasOwnProperty(Be)&&(we[Be]=ce(Be));return we},webModule.__computePropValue=ce,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var De;try{De=Cb;var We=De.indexOf(Db);We!=-1&&(gt=parseInt(De.substring(We+P),$),De=De.substring(O,We))}catch(we){}return webModule.__softPermutationId=gt,C(De+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})()},28735:function(qe,gt,ne){"use strict";ne.d(gt,{Ax:function(){return We},Ds:function(){return we},KI:function(){return ae},SI:function(){return De},f1:function(){return ce}});var ie=ne(74128);function ce(Je){let Ve=!0;if(Je.length>0){for(let He=0;He<Je.length;He++)if(Je[He].compile_success==0||!Je[He].compile_success){Ve=!1;break}}else Ve=!1;return Ve}function De(Je,Ve=""){let He=[];for(let Re=0;Re<Je.length;Re++){let et=Je[Re],Ke=Ve?`${Ve}/${et.name}`:`${et.name}`;He.push({title:et.name,type:et.type,isLeaf:et.type!=="tree",key:Ke})}return He}function We(Je,Ve,He){for(let Re=0;Re<Je.length;Re++){let et=Je[Re];if(et.key===Ve){et.children=He;break}et.children&&We(et.children,Ve,He)}return Je}function we(Je,Ve,He){let Re;return function(){let et=this,Ke=arguments,oe=function(){Re=null,He||Je.apply(et,Ke)},y=He&&!Re;clearTimeout(Re),Re=setTimeout(oe,Ve),y&&Je.apply(et,Ke)}}const Be=!0,ae=ie.Z.API_SERVER},16750:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Re}});var ie=ne(59301),ce={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},De=ne(92310),We=ne.n(De),we=ne(71418),Be=ne(2859),ae=ne(38147),Je=ne(65862),Ve=(et,Ke,oe)=>new Promise((y,a)=>{var x=z=>{try{E(oe.next(z))}catch(ee){a(ee)}},b=z=>{try{E(oe.throw(z))}catch(ee){a(ee)}},E=z=>z.done?y(z.value):Promise.resolve(z.value).then(x,b);E((oe=oe.apply(et,Ke)).next())}),Re=({data:et,className:Ke,fullWidth:oe,style:y={},onClose:a,onOk:x,showFullTools:b,noAssociationId:E})=>{const z=(0,ie.useRef)(null),ee=(0,ie.useRef)(null),te=(0,ie.useRef)(null),ge=(0,ie.useRef)(null),[de,se]=(0,ie.useState)(!1),[be,Se]=(0,ie.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ie.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),et!=null&&et.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",et!=null&&et.src&&Ee()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[et==null?void 0:et.visible]);const Ee=()=>Ve(void 0,null,function*(){se(!0),Se("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ce=yield(0,Je.ZJ)(et==null?void 0:et.src);z.current.src="",z.current.src=Ce,z.current.onload=function(){_t()},se(!1),Se("")}),he=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",a()},ft=Ce=>Ve(void 0,null,function*(){se(!0),Se("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ae=yield(0,ae.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:et.title,file:Ce.dataUrl}});Ae!=null&&Ae.id&&!E?(yield(0,ae.ZP)(`/api/attachments/${et.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ae==null?void 0:Ae.id,settings:JSON.stringify(Ce.state)}})).status===0&&x():Ae!=null&&Ae.id&&x(Ae),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",se(!1),Se("")}),it=()=>{const Ce=document.querySelector('a[href="https://markerjs.com/"]');Ce&&Ce.parentNode&&(Ce.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(tt=>{const at=document.querySelector(tt.name);at&&at.setAttribute("title",tt.title)})},_t=()=>{ee.current=new Be.hP(z.current),ee.current.targetRoot=ge.current,ee.current.addEventListener("render",ft),ee.current.addEventListener("beforeclose",he),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),et!=null&&et.snapshotData&&ee.current.restoreState(et.snapshotData),setTimeout(()=>{window.scrollTo(0,0),it()},300)};return ie.createElement(ie.Fragment,null,(et==null?void 0:et.visible)&&ie.createElement(we.Z,{spinning:de,tip:be,style:{position:"absolute"}},ie.createElement("div",{ref:ge,className:We()(ce.imageDimensions,Ke,oe?ce.fullWidth:""),style:y},ie.createElement("img",{className:ce.img,ref:z}))))}},99298:function(qe,gt,ne){"use strict";var ie=ne(59301),ce=ne(95237),De=ne(43604),We=ne(99313),we=ne(3113),Be=ne(6339),ae=ne(96408),Je=ne(48136),Ve=ne(59301);const He=(0,ie.forwardRef)(({callback:Re,showSaveButton:et,value:Ke=""},oe)=>{const y=(0,ie.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 "}]}]}],x=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],b=ee=>{y.current.setValue(y.current.getValue()+" "+ee.value+" ")},E=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ve.createElement(ce.Z,{className:ae.Z.lists,gutter:[10,10]},a.map((ee,te)=>Ve.createElement(De.Z,{flex:"110px",className:ae.Z.item},Ve.createElement("div",null,Ve.createElement(Be.Z,{value:`$$${ee.value}$$`}),ee.name),Ve.createElement("div",{className:ae.Z.children},ee.children.map((ge,de)=>Ve.createElement("div",{key:de},Ve.createElement("h1",null,ge.name),Ve.createElement(ce.Z,{gutter:[10,10]},ge.data.map((se,be)=>Ve.createElement(De.Z,{key:be,onClick:()=>b(se),className:ae.Z.diamond},Ve.createElement(Be.Z,{value:"`$$"+se.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ve.createElement(ce.Z,{className:ae.Z.lists,gutter:[10,10]},x.map((ee,te)=>Ve.createElement(De.Z,{flex:"110px",className:ae.Z.item},Ve.createElement("div",null,Ve.createElement(Be.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Ve.createElement("div",{className:ae.Z.children},ee.children.map((ge,de)=>Ve.createElement("div",{key:de},ge.name&&Ve.createElement("h1",null,ge.name),Ve.createElement(ce.Z,{gutter:[10,10]},ge.data.map((se,be)=>Ve.createElement(De.Z,{key:be,onClick:()=>b(se),className:ae.Z.diamond},Ve.createElement(Be.Z,{value:"`$$"+se.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=y.current.getValue();var te=ee.innerText;return Re&&Re(te),te};return(0,ie.useImperativeHandle)(oe,()=>({getData:z})),Ve.createElement("div",{className:ae.Z.mathWrap},Ve.createElement(We.default,{defaultActiveKey:"1",items:E}),Ve.createElement("math-field",{locale:"zh_cn",className:ae.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:y,style:{width:800,marginTop:30,fontSize:18}},Ke||""),et&&Ve.createElement("div",{className:ae.Z.button},Ve.createElement(we.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});gt.Z=He},85533:function(qe,gt,ne){"use strict";ne.d(gt,{h:function(){return ee}});var ie=ne(59301),ce=ne(57809),De=ne(78241),We=ne(3113),we=ne(89780),Be=ne.n(we),ae=ne(45559),Je=ne(42313),Ve=Object.defineProperty,He=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,et=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,y=(te,ge,de)=>ge in te?Ve(te,ge,{enumerable:!0,configurable:!0,writable:!0,value:de}):te[ge]=de,a=(te,ge)=>{for(var de in ge||(ge={}))Ke.call(ge,de)&&y(te,de,ge[de]);if(et)for(var de of et(ge))oe.call(ge,de)&&y(te,de,ge[de]);return te},x=(te,ge)=>He(te,Re(ge));const b=ce.default.Option,E={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};gt.Z=({callback:te,onCancel:ge})=>{const[de,se]=(0,ie.useState)("python");function be(Ee){se(z[Ee][1])}function Se(Ee){te(Ee)}return ie.createElement(De.default,x(a({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Se,style:{width:500}}),ie.createElement(De.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ie.createElement(ce.default,{getPopupContainer:Ee=>Ee.parentNode,onChange:be},Object.keys(z).map(Ee=>ie.createElement(b,{key:Ee,value:Ee},z[Ee][0])))),ie.createElement(De.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ie.createElement(ee,{mode:de})),ie.createElement("div",{className:"flex-container flex-end"},ie.createElement(We.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ie.createElement(We.ZP,{type:"ghost",onClick:ge},"\u53D6\u6D88")))};function ee({value:te,onChange:ge,mode:de,options:se={}}){const be=(0,ie.useRef)(),[Se,Ee]=(0,ie.useState)();return(0,ie.useEffect)(()=>{if(Se){let he=function(ft){const it=ft.getValue();ge&&ge(it)};return Se.on("change",he),()=>{Se.off("change",he)}}},[Se,ge]),(0,ie.useEffect)(()=>{Se&&Se.setOption("mode",de)},[Se,de]),(0,ie.useEffect)(()=>{Se&&(te!==Se.getValue()||te==="")&&setTimeout(()=>{Se.setValue(te||"")},300)},[Se,te]),(0,ie.useEffect)(()=>{if(be.current&&!Se){const he=Be().fromTextArea(be.current,a({mode:de,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},se));Ee(he)}},[be.current,Se]),ie.createElement("div",{className:"my-codemirror-container"},ie.createElement("textarea",{ref:be}))}},96565:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return ao}});var ie=ne(59301),ce=ne(89780),De=ne.n(ce),We=ne(76374),we=ne(45559),Be=ne(6313),ae=ne(25717),Je=ne(99498),Ve=ne(25419),He=ne(67549),Re=ne(6339),et=({value:Ge="",className:Xe,showTextOnly:_e,showLines:zt,style:un={}})=>{const tn=(0,ie.useMemo)(()=>"",[Ge]);return ie.createElement(ie.Fragment,null,ie.createElement("div",{dangerouslySetInnerHTML:{__html:tn}}))},Ke=ne(59301),oe=Object.defineProperty,y=Object.defineProperties,a=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(Ge,Xe,_e)=>Xe in Ge?oe(Ge,Xe,{enumerable:!0,configurable:!0,writable:!0,value:_e}):Ge[Xe]=_e,ee=(Ge,Xe)=>{for(var _e in Xe||(Xe={}))b.call(Xe,_e)&&z(Ge,_e,Xe[_e]);if(x)for(var _e of x(Xe))E.call(Xe,_e)&&z(Ge,_e,Xe[_e]);return Ge},te=(Ge,Xe)=>y(Ge,a(Xe));let ge=[{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:Ge,title:Xe,icon:_e,actionName:zt,className:un="",children:tn}){function Vn(){Ge(zt)}return Ke.createElement("a",{title:Xe,className:un,onClick:Vn},Ke.createElement("i",{className:`${_e}`}),tn)}var se=({watch:Ge,showNullButton:Xe,showNullProgramButton:_e,onActionCallback:zt,fullScreen:un,insertTemp:tn,hidetoolBar:Vn,extraUse:gn})=>{const zn=[...ge,{title:`${Ge?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Ge?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ke.createElement("ul",{className:"markdown-toolbar-container"},!Vn&&zn.map((Qn,Ba)=>Ke.createElement("li",{key:Ba},Qn.actionName?Ke.createElement(de,te(ee({},Qn),{onActionCallback:zt})):Ke.createElement("span",{className:"v-line"}))),Xe?Ke.createElement("li",null,Ke.createElement(de,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:zt},Ke.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,_e?Ke.createElement(Ke.Fragment,null,Ke.createElement("li",null,Ke.createElement(de,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:zt},Ke.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ke.createElement("li",null,Ke.createElement(de,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:zt},Ke.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,tn&&Ke.createElement("li",null,Ke.createElement(de,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${tn}`,onActionCallback:zt},Ke.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),gn&&Ke.createElement("li",null,gn),Ke.createElement("li",{className:"btn-full-screen"},Ke.createElement(de,{icon:`${un?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:un?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:zt})))},be=ne(57261),Se=ne(78241),Ee=ne(92832),he=ne(3113),ft=Object.defineProperty,it=Object.defineProperties,_t=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,at=(Ge,Xe,_e)=>Xe in Ge?ft(Ge,Xe,{enumerable:!0,configurable:!0,writable:!0,value:_e}):Ge[Xe]=_e,st=(Ge,Xe)=>{for(var _e in Xe||(Xe={}))Ae.call(Xe,_e)&&at(Ge,_e,Xe[_e]);if(Ce)for(var _e of Ce(Xe))tt.call(Xe,_e)&&at(Ge,_e,Xe[_e]);return Ge},St=(Ge,Xe)=>it(Ge,_t(Xe));const wt={labelCol:{span:4},wrapperCol:{span:20}};var Ft=({callback:Ge,onCancel:Xe})=>{function _e(zt){Ge(zt)}return ie.createElement(Se.default,St(st({},wt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:_e,style:{width:500}}),ie.createElement(Se.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ie.createElement(Ee.default,null)),ie.createElement(Se.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ie.createElement(Ee.default,null)),ie.createElement("div",{className:"flex-container flex-end"},ie.createElement(he.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ie.createElement(he.ZP,{type:"ghost",onClick:Xe},"\u53D6\u6D88")))},Tt=ne(85533),Oe=ne(45053),je=ne(43418),ct=ne(95237),Gt=ne(16750),nt=ne(59301),$t=({callback:Ge,onCancel:Xe})=>{const _e=document.createElement("canvas"),zt=_e.getContext("2d");_e.width=1e3,_e.height=800,zt.fillStyle="#ffffff",zt.fillRect(0,0,_e.width,_e.height);const un=_e.toDataURL("image/png");return nt.createElement(je.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},nt.createElement(ct.Z,{style:{height:"100vh"}},nt.createElement(Gt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:un,visible:!0,title:String(Date.now())},onOk:tn=>{Ge({src:tn.url})},onClose:Xe})))},ye=ne(12378);function Et(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Et,go.CommandHandler),Et.prototype.canAlignSelection=function(){var Ge=this.diagram;return!(Ge===null||Ge.isReadOnly||Ge.isModelReadOnly||Ge.selection.count<2)},Et.prototype.alignLeft=function(){var Ge=this.diagram;Ge.startTransaction("aligning left");var Xe=1/0;Ge.selection.each(function(_e){_e instanceof go.Link||(Xe=Math.min(_e.position.x,Xe))}),Ge.selection.each(function(_e){_e instanceof go.Link||_e.move(new go.Point(Xe,_e.position.y))}),Ge.commitTransaction("aligning left")},Et.prototype.alignRight=function(){var Ge=this.diagram;Ge.startTransaction("aligning right");var Xe=-1/0;Ge.selection.each(function(_e){if(!(_e instanceof go.Link)){var zt=_e.actualBounds.x+_e.actualBounds.width;Xe=Math.max(zt,Xe)}}),Ge.selection.each(function(_e){_e instanceof go.Link||_e.move(new go.Point(Xe-_e.actualBounds.width,_e.position.y))}),Ge.commitTransaction("aligning right")},Et.prototype.alignTop=function(){var Ge=this.diagram;Ge.startTransaction("alignTop");var Xe=1/0;Ge.selection.each(function(_e){_e instanceof go.Link||(Xe=Math.min(_e.position.y,Xe))}),Ge.selection.each(function(_e){_e instanceof go.Link||_e.move(new go.Point(_e.position.x,Xe))}),Ge.commitTransaction("alignTop")},Et.prototype.alignBottom=function(){var Ge=this.diagram;Ge.startTransaction("aligning bottom");var Xe=-1/0;Ge.selection.each(function(_e){if(!(_e instanceof go.Link)){var zt=_e.actualBounds.y+_e.actualBounds.height;Xe=Math.max(zt,Xe)}}),Ge.selection.each(function(_e){_e instanceof go.Link||_e.move(new go.Point(_e.actualBounds.x,Xe-_e.actualBounds.height))}),Ge.commitTransaction("aligning bottom")},Et.prototype.alignCenterX=function(){var Ge=this.diagram,Xe=Ge.selection.first();if(Xe){Ge.startTransaction("aligning Center X");var _e=Xe.actualBounds.x+Xe.actualBounds.width/2;Ge.selection.each(function(zt){zt instanceof go.Link||zt.move(new go.Point(_e-zt.actualBounds.width/2,zt.actualBounds.y))}),Ge.commitTransaction("aligning Center X")}},Et.prototype.alignCenterY=function(){var Ge=this.diagram,Xe=Ge.selection.first();if(Xe){Ge.startTransaction("aligning Center Y");var _e=Xe.actualBounds.y+Xe.actualBounds.height/2;Ge.selection.each(function(zt){zt instanceof go.Link||zt.move(new go.Point(zt.actualBounds.x,_e-zt.actualBounds.height/2))}),Ge.commitTransaction("aligning Center Y")}},Et.prototype.alignColumn=function(Ge){var Xe=this.diagram;Xe.startTransaction("align Column"),Ge===void 0&&(Ge=0),Ge=parseFloat(Ge);var _e=new Array;Xe.selection.each(function(gn){gn instanceof go.Link||_e.push(gn)});for(var zt=0;zt<_e.length-1;zt++){var un=_e[zt],tn=un.actualBounds.y+un.actualBounds.height+Ge,Vn=_e[zt+1];Vn.move(new go.Point(un.actualBounds.x,tn))}Xe.commitTransaction("align Column")},Et.prototype.alignRow=function(Ge){Ge===void 0&&(Ge=0),Ge=parseFloat(Ge);var Xe=this.diagram;Xe.startTransaction("align Row");var _e=new Array;Xe.selection.each(function(gn){gn instanceof go.Link||_e.push(gn)});for(var zt=0;zt<_e.length-1;zt++){var un=_e[zt],tn=un.actualBounds.x+un.actualBounds.width+Ge,Vn=_e[zt+1];Vn.move(new go.Point(tn,un.actualBounds.y))}Xe.commitTransaction("align Row")},Et.prototype.canRotate=function(Ge){var Xe=this.diagram;return!(Xe===null||Xe.isReadOnly||Xe.isModelReadOnly||Xe.selection.count<1)},Et.prototype.rotate=function(Ge){Ge===void 0&&(Ge=90);var Xe=this.diagram;Xe.startTransaction("rotate "+Ge.toString());var Xe=this.diagram;Xe.selection.each(function(_e){_e instanceof go.Link||_e instanceof go.Group||(_e.angle+=Ge)}),Xe.commitTransaction("rotate "+Ge.toString())},Et.prototype.pullToFront=function(){var Ge=this.diagram;Ge.startTransaction("pullToFront");var Xe=new go.Map;Ge.selection.each(function(_e){Xe.set(_e.layer,0)}),Xe.iteratorKeys.each(function(_e){var zt=0;_e.parts.each(function(un){if(!un.isSelected){var tn=un.zOrder;isNaN(tn)?un.zOrder=0:zt=Math.max(zt,tn)}}),Xe.set(_e,zt)}),Ge.selection.each(function(_e){Et._assignZOrder(_e,Xe.get(_e.layer)+1)}),Ge.commitTransaction("pullToFront")},Et.prototype.pushToBack=function(){var Ge=this.diagram;Ge.startTransaction("pushToBack");var Xe=new go.Map;Ge.selection.each(function(_e){Xe.set(_e.layer,0)}),Xe.iteratorKeys.each(function(_e){var zt=0;_e.parts.each(function(un){if(!un.isSelected){var tn=un.zOrder;isNaN(tn)?un.zOrder=0:zt=Math.min(zt,tn)}}),Xe.set(_e,zt)}),Ge.selection.each(function(_e){Et._assignZOrder(_e,Xe.get(_e.layer)-1-Et._findGroupDepth(_e))}),Ge.commitTransaction("pushToBack")},Et._assignZOrder=function(Ge,Xe,_e){_e===void 0&&(_e=Ge),Ge.layer===_e.layer&&(Ge.zOrder=Xe),Ge instanceof go.Group&&Ge.memberParts.each(function(zt){Et._assignZOrder(zt,Xe+1,_e)})},Et._findGroupDepth=function(Ge){if(Ge instanceof go.Group){var Xe=0;return Ge.memberParts.each(function(_e){Xe=Math.max(Xe,Et._findGroupDepth(_e))}),Xe+1}else return 0},Et.prototype.doKeyDown=function(){var Ge=this.diagram;if(Ge!==null){var Xe=Ge.lastInput;if(Xe.key==="Up"||Xe.key==="Down"||Xe.key==="Left"||Xe.key==="Right"){var _e=this.arrowKeyBehavior;if(_e==="none")return;if(_e==="select"){this._arrowKeySelect();return}else if(_e==="move"){this._arrowKeyMove();return}else if(_e==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Et.prototype._getAllParts=function(){var Ge=new Array;return this.diagram.nodes.each(function(Xe){Ge.push(Xe)}),this.diagram.parts.each(function(Xe){Ge.push(Xe)}),Ge},Et.prototype._arrowKeyMove=function(){var Ge=this.diagram,Xe=Ge.lastInput,_e=0,zt=0;if(Xe.control||Xe.meta)_e=1,zt=1;else if(Ge.grid!==null){var un=Ge.grid.gridCellSize;zt=un.width,_e=un.height}Ge.startTransaction("arrowKeyMove"),Ge.selection.each(function(tn){Xe.key==="Up"?tn.move(new go.Point(tn.actualBounds.x,tn.actualBounds.y-_e)):Xe.key==="Down"?tn.move(new go.Point(tn.actualBounds.x,tn.actualBounds.y+_e)):Xe.key==="Left"?tn.move(new go.Point(tn.actualBounds.x-zt,tn.actualBounds.y)):Xe.key==="Right"&&tn.move(new go.Point(tn.actualBounds.x+zt,tn.actualBounds.y))}),Ge.commitTransaction("arrowKeyMove")},Et.prototype._arrowKeySelect=function(){var Ge=this.diagram,Xe=Ge.lastInput,_e=null;Xe.key==="Up"?_e=this._findNearestPartTowards(270):Xe.key==="Down"?_e=this._findNearestPartTowards(90):Xe.key==="Left"?_e=this._findNearestPartTowards(180):Xe.key==="Right"&&(_e=this._findNearestPartTowards(0)),_e!==null&&(Xe.shift?_e.isSelected=!0:Xe.control||Xe.meta?_e.isSelected=!_e.isSelected:Ge.select(_e))},Et.prototype._findNearestPartTowards=function(Ge){var Xe=this.diagram.selection.first();if(Xe===null)return null;for(var _e=Xe.actualBounds.center,zt=this._getAllParts(),un=1/0,tn=Xe,Vn=0;Vn<zt.length;Vn++){var gn=zt[Vn];if(gn!==Xe&&gn.canSelect()){var zn=gn.actualBounds.center,Qn=_e.directionPoint(zn),Ba=this._angleCloseness(Qn,Ge);if(Ba<=45){var Bt=_e.distanceSquaredPoint(zn);Bt*=1+Math.sin(Ba*Math.PI/180),Bt<un&&(un=Bt,tn=gn)}}}return tn},Et.prototype._angleCloseness=function(Ge,Xe){return Math.min(Math.abs(Xe-Ge),Math.min(Math.abs(Xe+360-Ge),Math.abs(Xe-360-Ge)))},Et.prototype._arrowKeyTree=function(){var Ge=this.diagram,Xe=Ge.selection.first();if(Xe instanceof go.Node){var _e=Ge.lastInput;if(_e.key==="Right"){if(!Xe.isTreeLeaf)if(!Xe.isTreeExpanded)Ge.commandHandler.canExpandTree(Xe)&&Ge.commandHandler.expandTree(Xe);else{var zt=this._sortTreeChildrenByY(Xe).first();zt!==null&&Ge.select(zt)}}else if(_e.key==="Left")if(!Xe.isTreeLeaf&&Xe.isTreeExpanded)Ge.commandHandler.canCollapseTree(Xe)&&Ge.commandHandler.collapseTree(Xe);else{var un=Xe.findTreeParentNode();un!==null&&Ge.select(un)}else if(_e.key==="Up"){var un=Xe.findTreeParentNode();if(un!==null){var tn=this._sortTreeChildrenByY(un),Vn=tn.indexOf(Xe);if(Vn>0){for(var gn=tn.elt(Vn-1);gn!==null&&gn.isTreeExpanded&&!gn.isTreeLeaf;){var zn=this._sortTreeChildrenByY(gn);gn=zn.last()}gn!==null&&Ge.select(gn)}else Ge.select(un)}}else if(_e.key==="Down")if(Xe.isTreeExpanded&&!Xe.isTreeLeaf){var zt=this._sortTreeChildrenByY(Xe).first();zt!==null&&Ge.select(zt)}else for(;Xe!==null;){var un=Xe.findTreeParentNode();if(un===null)break;var tn=this._sortTreeChildrenByY(un),Vn=tn.indexOf(Xe);if(Vn<tn.length-1){Ge.select(tn.elt(Vn+1));break}else Xe=un}var Qn=Ge.selection.first();Qn!==null&&Ge.scrollToRect(Qn.actualBounds)}},Et.prototype._sortTreeChildrenByY=function(Ge){var Xe=new go.List().addAll(Ge.findTreeChildrenNodes());return Xe.sort(function(_e,zt){var un=_e.location,tn=zt.location;return un.y<tn.y?-1:un.y>tn.y?1:un.x<tn.x?-1:un.x>tn.x?1:0}),Xe},Et.prototype.copyToClipboard=function(Ge){go.CommandHandler.prototype.copyToClipboard.call(this,Ge),this._lastPasteOffset.set(this.pasteOffset)},Et.prototype.pasteFromClipboard=function(){var Ge=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Ge,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Ge},Object.defineProperty(Et.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Ge){if(Ge!=="move"&&Ge!=="select"&&Ge!=="scroll"&&Ge!=="tree"&&Ge!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Ge);this._arrowKeyBehavior=Ge}}),Object.defineProperty(Et.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Ge){if(!(Ge instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Ge);this._pasteOffset.set(Ge)}});var Ht=Et,cn=ne(25863),Xt=ne(43604),Te=ne(38147),$e={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Fe=ne(59301),me=(Ge,Xe,_e)=>new Promise((zt,un)=>{var tn=zn=>{try{gn(_e.next(zn))}catch(Qn){un(Qn)}},Vn=zn=>{try{gn(_e.throw(zn))}catch(Qn){un(Qn)}},gn=zn=>zn.done?zt(zn.value):Promise.resolve(zn.value).then(tn,Vn);gn((_e=_e.apply(Ge,Xe)).next())});function Ue({onCancel:Ge,callback:Xe}){let _e=(0,ie.useRef)(),zt=(0,ie.useRef)(),un=(0,ie.useRef)(),tn=(0,ie.useRef)(!1);const Vn=(0,ie.useRef)(!1),[gn,zn]=(0,ie.useState)(0);function Qn(){const Bt=ye.bx.make,Kn={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"};_e.current=new ye.S0(zt.current,{padding:20,grid:Bt(ye.s_,"Grid",Bt(ye.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Bt(ye.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Mt=>{var xn=Mt.diagram.commandHandler.addTopLevelParts(Mt.diagram.selection,!0);xn||Mt.diagram.currentTool.doCancel()},commandHandler:Bt(Ht),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Mt=>{var xn=Mt.subject;xn.location=xn.location.copy().snapToGridPoint(Mt.diagram.grid.gridOrigin,Mt.diagram.grid.gridCellSize),setTimeout(()=>{Mt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Mt=>{var xn=Mt.subject;setTimeout(()=>{Mt.diagram.commandHandler.editTextBlock()})},LinkRelinked:Mt=>{var xn=Mt.parameter.part;xn.invalidateConnectedLinks();var In=Mt.subject;Mt.diagram.toolManager.linkingTool.isForwards?In.toNode.invalidateConnectedLinks():In.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),_e.current.nodeTemplate=Bt(ye.NB,"Auto",{locationSpot:ye.z6.Center,locationObjectName:"SHAPE",desiredSize:new ye.$u(120,60),minSize:new ye.$u(40,40),resizable:!0,resizeCellSize:new ye.$u(10,10),rotatable:!0},new ye.KX("location","loc",ye.E9.parse).makeTwoWay(ye.E9.stringify),new ye.KX("desiredSize","size",ye.$u.parse).makeTwoWay(ye.$u.stringify),Bt(ye.bn,{name:"SHAPE",fill:Kn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ye.z6.AllSides,toSpot:ye.z6.AllSides},new ye.KX("figure"),new ye.KX("fill"),new ye.KX("stroke","borderColor"),new ye.KX("strokeWidth","thickness"),new ye.KX("strokeDashArray","dash")),Bt(ye.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Bt(ye.al,{margin:1,textAlign:"center",overflow:ye.al.OverflowEllipsis,editable:!0},new ye.KX("text").makeTwoWay(),new ye.KX("stroke","color"))),_e.current.nodeTemplate.toolTip=Bt("ToolTip",Bt(ye.s_,"Vertical",{maxSize:new ye.$u(200,NaN)},Bt(ye.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ye.KX("text")),Bt(ye.al,{font:"10pt sans-serif",textAlign:"center"},new ye.KX("text","details"))));function Ca(Mt,xn){var In=(Tn,ra)=>{Tn.handled=!0,Tn.diagram.model.commit(ia=>{var Ta=ra.part.adornedPart,Ka=new ye.E9().setRectSpot(Ta.actualBounds,Mt);Ka.subtract(Ta.location),Ka.scale(2,2),Ka.x+=Math.sign(Ka.x)*130,Ka.y+=Math.sign(Ka.y)*130,Ka.add(Ta.location),Ka.snapToGridPoint(Tn.diagram.grid.gridOrigin,Tn.diagram.grid.gridCellSize);var to=ia.copyNodeData(Ta.data);ia.setGroupKeyForNodeData(to,ia.getGroupKeyForNodeData(Ta.data)),ia.addNodeData(to);var To={from:Ta.key,to:ia.getKeyForNodeData(to)};ia.addLinkData(To);var Wo=Tn.diagram.findNodeForData(to);Wo.location=Ka,Tn.diagram.select(Wo),setTimeout(()=>{Tn.diagram.commandHandler.editTextBlock()},20)})};return Bt(ye.bn,{figure:xn,alignment:Mt,alignmentFocus:Mt.opposite(),width:Mt.equals(ye.z6.Top)||Mt.equals(ye.z6.Bottom)?25:18,height:Mt.equals(ye.z6.Top)||Mt.equals(ye.z6.Bottom)?18:25,fill:"orange",stroke:Kn.white,strokeWidth:4,mouseEnter:(Tn,ra)=>ra.fill="dodgerblue",mouseLeave:(Tn,ra)=>ra.fill="orange",isActionable:!0,click:In,contextClick:In})}function ta(Mt){return Bt(ye.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:(xn,In)=>In.fill="dodgerblue",mouseLeave:(xn,In)=>In.fill="orange",click:(xn,In)=>{xn.diagram.commandHandler.showContextMenu(In.part.adornedPart)}},Mt||{})}_e.current.nodeTemplate.selectionAdornmentTemplate=Bt(ye.uz,"Spot",Bt(ye.Vm,{padding:10}),Ca(ye.z6.Top,"TriangleUp"),Ca(ye.z6.Left,"TriangleLeft"),Ca(ye.z6.Right,"TriangleRight"),Ca(ye.z6.Bottom,"TriangleDown"),ta({alignment:new ye.z6(.75,0)}));function la(Mt,xn){return(In,Tn)=>{In.handled=!0,In.diagram.model.commit(ra=>{ra.set(Tn.part.adornedPart.data,Mt,xn)})}}function na(Mt,xn){return xn||(xn="color"),Bt(ye.bn,{width:16,height:16,stroke:"lightgray",fill:Mt,margin:1,background:"transparent",mouseEnter:(In,Tn)=>Tn.stroke="dodgerblue",mouseLeave:(In,Tn)=>Tn.stroke="lightgray",click:la(xn,Mt),contextClick:la(xn,Mt)})}function Aa(){return[Bt("ContextMenuButton",Bt(ye.s_,"Horizontal",na(Kn.white,"fill"),na(Kn.beige,"fill"),na(Kn.extralightblue,"fill"),na(Kn.extralightred,"fill"))),Bt("ContextMenuButton",Bt(ye.s_,"Horizontal",na(Kn.lightgray,"fill"),na(Kn.lightgreen,"fill"),na(Kn.lightblue,"fill"),na(Kn.lightred,"fill")))]}function Da(){return[Bt("ContextMenuButton",Bt(ye.s_,"Horizontal",na(Kn.black),na(Kn.green),na(Kn.blue),na(Kn.red))),Bt("ContextMenuButton",Bt(ye.s_,"Horizontal",na(Kn.white),na(Kn.magenta),na(Kn.purple),na(Kn.orange)))]}function _a(Mt,xn){return xn||(xn="thickness"),Bt(ye.bn,"LineH",{width:16,height:16,strokeWidth:Mt,margin:1,background:"transparent",mouseEnter:(In,Tn)=>Tn.background="dodgerblue",mouseLeave:(In,Tn)=>Tn.background="transparent",click:la(xn,Mt),contextClick:la(xn,Mt)})}function ro(Mt,xn){return xn||(xn="dash"),Bt(ye.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Mt,margin:1,background:"transparent",mouseEnter:(In,Tn)=>Tn.background="dodgerblue",mouseLeave:(In,Tn)=>Tn.background="transparent",click:la(xn,Mt),contextClick:la(xn,Mt)})}function Xa(){return[Bt("ContextMenuButton",Bt(ye.s_,"Horizontal",_a(1),_a(2),_a(3),_a(4))),Bt("ContextMenuButton",Bt(ye.s_,"Horizontal",ro(null),ro([2,4]),ro([4,4])))]}function xa(Mt,xn){return xn||(xn="figure"),Bt(ye.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Mt,margin:1,background:"transparent",mouseEnter:(In,Tn)=>Tn.fill="dodgerblue",mouseLeave:(In,Tn)=>Tn.fill="lightgray",click:la(xn,Mt),contextClick:la(xn,Mt)})}_e.current.nodeTemplate.contextMenu=Bt("ContextMenu",Bt("ContextMenuButton",Bt(ye.s_,"Horizontal",xa("Rectangle"),xa("RoundedRectangle"),xa("Ellipse"),xa("Diamond"))),Bt("ContextMenuButton",Bt(ye.s_,"Horizontal",xa("Parallelogram2"),xa("ManualOperation"),xa("Procedure"),xa("Cylinder1"))),Bt("ContextMenuButton",Bt(ye.s_,"Horizontal",xa("Terminator"),xa("CreateRequest"),xa("Document"),xa("TriangleDown"))),Aa(),Da(),Xa()),_e.current.groupTemplate=Bt(ye.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ye.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Mt,xn)=>{var In=xn.addMembers(xn.diagram.selection,!0);In||xn.diagram.currentTool.doCancel()},avoidable:!1},new ye.KX("location","loc",ye.E9.parse).makeTwoWay(ye.E9.stringify),Bt(ye.s_,"Auto",{name:"BODY"},Bt(ye.bn,{parameter1:10,fill:Kn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ye.z6.AllSides,toSpot:ye.z6.AllSides},new ye.KX("fill"),new ye.KX("stroke","color"),new ye.KX("strokeWidth","thickness"),new ye.KX("strokeDashArray","dash")),Bt(ye.Vm,{background:"transparent",margin:20})),Bt(ye.al,{alignment:ye.z6.Top,alignmentFocus:ye.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new ye.KX("text"),new ye.KX("stroke","color"))),_e.current.groupTemplate.selectionAdornmentTemplate=Bt(ye.uz,"Spot",Bt(ye.s_,"Auto",Bt(ye.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Bt(ye.Vm,{margin:1.5})),ta({alignment:ye.z6.TopRight,alignmentFocus:ye.z6.BottomRight})),_e.current.groupTemplate.contextMenu=Bt("ContextMenu",Aa(),Da(),Xa()),_e.current.linkTemplate=Bt(ye.rU,{layerName:"Foreground",routing:ye.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new ye.KX("fromSpot","fromSpot",ye.z6.parse),new ye.KX("toSpot","toSpot",ye.z6.parse),new ye.KX("fromShortLength","dir",Mt=>Mt>=1?10:0),new ye.KX("toShortLength","dir",Mt=>Mt>=1?10:0),new ye.KX("points").makeTwoWay(),Bt(ye.bn,{strokeWidth:2},new ye.KX("stroke","color"),new ye.KX("strokeWidth","thickness"),new ye.KX("strokeDashArray","dash")),Bt(ye.bn,{segmentIndex:0,segmentOffset:new ye.E9(15,0),segmentOrientation:ye.rU.OrientAlong,alignmentFocus:ye.z6.Right,figure:"circle",width:10,strokeWidth:0},new ye.KX("fill","color"),new ye.KX("visible","dir",Mt=>Mt===1)),Bt(ye.bn,{segmentIndex:-1,segmentOffset:new ye.E9(-10,6),segmentOrientation:ye.rU.OrientPlus90,alignmentFocus:ye.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ye.KX("fill","color"),new ye.KX("visible","dir",Mt=>Mt>=1),new ye.KX("width","thickness",Mt=>7+3*Mt),new ye.KX("height","thickness",Mt=>7+3*Mt),new ye.KX("segmentOffset","thickness",Mt=>new ye.E9(-15,4+1.5*Mt))),Bt(ye.bn,{segmentIndex:0,segmentOffset:new ye.E9(15,-6),segmentOrientation:ye.rU.OrientMinus90,alignmentFocus:ye.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ye.KX("fill","color"),new ye.KX("visible","dir",Mt=>Mt===2),new ye.KX("width","thickness",Mt=>7+3*Mt),new ye.KX("height","thickness",Mt=>7+3*Mt),new ye.KX("segmentOffset","thickness",Mt=>new ye.E9(-15,4+1.5*Mt))),Bt(ye.al,{alignmentFocus:new ye.z6(0,1,-4,0),editable:!0},new ye.KX("text").makeTwoWay(),new ye.KX("stroke","color"))),_e.current.linkTemplate.selectionAdornmentTemplate=Bt(ye.uz,Bt(ye.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:bo(2)},new ye.KX("pathPattern","thickness",bo)),ta({alignmentFocus:new ye.z6(0,0,-6,-4)}));function bo(Mt){return Bt(ye.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Mt+4).toString()+" H3"})}function xo(Mt){var xn="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Mt===0?xn="M0 0 M16 16 M0 8 L16 8":Mt===2&&(xn="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Bt(ye.bn,{geometryString:xn,margin:2,background:"transparent",mouseEnter:(In,Tn)=>Tn.background="dodgerblue",mouseLeave:(In,Tn)=>Tn.background="transparent",click:la("dir",Mt),contextClick:la("dir",Mt)})}function zo(Mt){var xn=(In,Tn)=>{In.handled=!0,In.diagram.model.commit(ra=>{var ia=Tn.part.adornedPart;ra.set(ia.data,Mt?"toSpot":"fromSpot",ye.z6.stringify(ye.z6.AllSides)),(Mt?ia.toNode:ia.fromNode).invalidateConnectedLinks()})};return Bt(ye.bn,{width:12,height:12,fill:"transparent",mouseEnter:(In,Tn)=>Tn.background="dodgerblue",mouseLeave:(In,Tn)=>Tn.background="transparent",click:xn,contextClick:xn})}function oo(Mt,xn){var In=0,Tn=ye.z6.RightSide;Mt.equals(ye.z6.Top)?(In=270,Tn=ye.z6.TopSide):Mt.equals(ye.z6.Left)?(In=180,Tn=ye.z6.LeftSide):Mt.equals(ye.z6.Bottom)&&(In=90,Tn=ye.z6.BottomSide),xn||(In-=180);var ra=(ia,Ta)=>{ia.handled=!0,ia.diagram.model.commit(Ka=>{var to=Ta.part.adornedPart;Ka.set(to.data,xn?"toSpot":"fromSpot",ye.z6.stringify(Tn)),(xn?to.toNode:to.fromNode).invalidateConnectedLinks()})};return Bt(ye.bn,{alignment:Mt,alignmentFocus:Mt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:In,background:"transparent",mouseEnter:(ia,Ta)=>Ta.background="dodgerblue",mouseLeave:(ia,Ta)=>Ta.background="transparent",click:ra,contextClick:ra})}_e.current.linkTemplate.contextMenu=Bt("ContextMenu",Da(),Xa(),Bt("ContextMenuButton",Bt(ye.s_,"Horizontal",xo(0),xo(1),xo(2))),Bt("ContextMenuButton",Bt(ye.s_,"Horizontal",Bt(ye.s_,"Spot",zo(!1),oo(ye.z6.Top,!1),oo(ye.z6.Left,!1),oo(ye.z6.Right,!1),oo(ye.z6.Bottom,!1)),Bt(ye.s_,"Spot",{margin:new ye.Zt(0,0,0,2)},zo(!0),oo(ye.z6.Top,!0),oo(ye.z6.Left,!0),oo(ye.z6.Right,!0),oo(ye.z6.Bottom,!0)))));const Dt=`{ "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 _o=["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 Io(Mt){return console.log("shapeName:",Mt),_o.indexOf(Mt)>=0}var Co=new ye.YI(un.current,{maxSelectionCount:1,linkTemplate:Bt(ye.rU,{locationSpot:ye.z6.Center,selectionAdornmentTemplate:Bt(ye.uz,"Link",{locationSpot:ye.z6.Center},Bt(ye.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Bt(ye.bn,{toArrow:"Standard",stroke:null}))},{routing:ye.rU.AvoidsNodes,curve:ye.rU.JumpOver,corner:5,toShortLength:4},new ye.KX("points"),Bt(ye.bn,{isPanelMain:!0,strokeWidth:2}),Bt(ye.bn,{toArrow:"Standard",stroke:null})),model:new ye.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...ye.bn.getFigureGenerators().toArray().map(Mt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Mt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return _e.current.addDiagramListener("TextEdited",function(Mt){var xn;const In=Mt.subject.part;var Tn=(xn=document.activeElement)==null?void 0:xn.value;typeof Tn=="string"&&Tn.trim()===""&&_e.current.model.commit(function(ra){ra.set(In.data,"text","\u672A\u547D\u540D"),_e.current.commandHandler.stopCommand()},"increment")}),Co.nodeTemplate=Bt(ye.NB,"Auto",{locationSpot:ye.z6.Center},new ye.KX("location","location",ye.E9.parse).makeTwoWay(ye.E9.stringify),Bt(ye.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 ye.KX("stroke").makeTwoWay(),new ye.KX("fill").makeTwoWay(),new ye.KX("figure")),Bt(ye.al,{margin:new ye.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new ye.$u(16,16),maxSize:new ye.$u(10,NaN),textAlign:"center",editable:!0},new ye.KX("key").makeTwoWay())),setTimeout(()=>{_e.current.grid=Bt(ye.s_,"Grid",Bt(ye.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Bt(ye.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),_e.current.grid.visible=!0,_e.current.grid.gridCellStroke="darkgray",_e.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=_e.current,_e.current}const Ba=()=>me(this,null,function*(){var Bt=_e.current.makeImage();const Kn=yield(0,Te.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Bt.src}});Xe({src:Kn.url})});return(0,ie.useEffect)(()=>(setTimeout(()=>{Qn()},500),zn(gn+1),()=>{_e.current=null}),[]),Fe.createElement("div",{ref:Vn,className:tn.current?`${$e.maxH60} body-overflow-initial`:"body-overflow-initial"},Fe.createElement(je.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!gn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Fe.createElement(ct.Z,null,Fe.createElement(Xt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Fe.createElement(Xt.Z,{onClick:()=>{var Bt,Kn,Ca=_e.current.selection.first();if(tn.current=!tn.current,document.activeElement&&Ca){let ta=(Kn=(Bt=document.activeElement)==null?void 0:Bt.value)==null?void 0:Kn.trim();typeof ta=="string"&&_e.current.model.commit(function(la){la.set(Ca.data,"text",ta||"\u672A\u547D\u540D"),_e.current.commandHandler.stopCommand()},"increment")}zn(gn+1)}},Fe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Ge},Fe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:$e.flowChartWrp},Fe.createElement("div",{style:{display:"flex",height:"100%"}},Fe.createElement("div",{style:{width:"300px",height:"100%"}},Fe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Fe.createElement("div",{style:{height:"calc(100% - 50px)"},className:$e.myPaletteDiv,ref:un})),Fe.createElement("div",{style:{flex:1,position:"relative"}},Fe.createElement("div",{ref:zt,style:{height:"80vh"}}))),Fe.createElement("div",{className:"tr"},Fe.createElement(he.ZP,{size:"large",onClick:Ba,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var vt=Ue,pe=ne(5112),ue=ne(5871);const Ze=pe.ZP.Group,Ne={margin:"0 8px"};var Pe=({callback:Ge,onCancel:Xe})=>{function _e(zt){Ge(zt)}return ie.createElement(Se.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:_e},ie.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ie.createElement("span",{style:Ne},"\u5355\u5143\u683C\u6570\uFF1A"),ie.createElement("span",{style:Ne},"\u884C\u6570"),ie.createElement(Se.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ie.createElement(ue.Z,null)),ie.createElement("span",{style:Ne},"\u5217\u6570"),ie.createElement(Se.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ie.createElement(ue.Z,null))),ie.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ie.createElement("span",{style:Ne},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ie.createElement(Se.default.Item,{name:"align"},ie.createElement(Ze,null,ie.createElement(pe.ZP,{value:"default"},ie.createElement("i",{className:"fa fa-align-justify"})),ie.createElement(pe.ZP,{value:"left"},ie.createElement("i",{className:"fa fa-align-left"})),ie.createElement(pe.ZP,{value:"center"},ie.createElement("i",{className:"fa fa-align-center"})),ie.createElement(pe.ZP,{value:"right"},ie.createElement("i",{className:"fa fa-align-right"}))))),ie.createElement("div",{className:"flex-container flex-end"},ie.createElement(he.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ie.createElement(he.ZP,{type:"ghost",onClick:Xe},"\u53D6\u6D88")))},ke=ne(78673),Lt=ne(93510),mt=ne.n(Lt),lt=(0,ie.forwardRef)(({use3d:Ge,width:Xe,height:_e,callback:zt,showSaveButton:un},tn)=>{const Vn=(0,ie.useRef)(),gn=(0,ie.useRef)(),[zn,Qn]=(0,ie.useState)(!1),Ba=(0,ie.useRef)({id:Vn,appName:"graphing",width:Xe||1e3,height:_e||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ie.useEffect)(()=>{gn.current=new(mt())(Ba.current,!0),window.onload=function(){gn.current.inject("applet_container")}},[]);const Bt=()=>{var Kn=window.ggbApplet.getPNGBase64(1,!0,72);return zt&&zt(Kn),Kn};return(0,ie.useEffect)(()=>{Ba.current.appName=zn?"3D":"graphing",gn.current.inject("applet_container")},[zn]),(0,ie.useEffect)(()=>{Qn(Ge)},[Ge]),(0,ie.useImperativeHandle)(tn,()=>({getImgData:Bt})),ie.createElement(ie.Fragment,null,ie.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Vn}),ie.createElement(ct.Z,{align:"middle"},ie.createElement(Xt.Z,{flex:1},ie.createElement(ke.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:zn,onChange:Kn=>Qn(Kn)})),ie.createElement(Xt.Z,null,ie.createElement(he.ZP,{size:"large",onClick:Bt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),yt=ne(99298),ot=ne(1012),Zt=ne(8591);const Rt="link",Nt="upload-image",Jt="add-flowchart",Yt="draw-image",yn="add-flowchart",on="code-block",Nn="add-table",Gn="------------",Hn={default:Gn,left:`:${Gn}`,center:`:${Gn}:`,right:`${Gn}:`};var ht=ne(31103),ut=(Ge,Xe,_e)=>new Promise((zt,un)=>{var tn=zn=>{try{gn(_e.next(zn))}catch(Qn){un(Qn)}},Vn=zn=>{try{gn(_e.throw(zn))}catch(Qn){un(Qn)}},gn=zn=>zn.done?zt(zn.value):Promise.resolve(zn.value).then(tn,Vn);gn((_e=_e.apply(Ge,Xe)).next())});function dt(){}let Ct=0;const pn=1e4,Bn="\u2581",vn="@\u2581\u2581@",wn="@\u2581@",Ln=`
|
|
**\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`,kn=["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 ca(Ge){return/^\d+$/.test(Ge)?`${Ge}px`:Ge}const jn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Jn={[jn+"-B"]:"bold",[jn+"-I"]:"italic"},ha={[Rt]:"\u6DFB\u52A0\u94FE\u63A5",[on]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Nt]:"\u6DFB\u52A0\u56FE\u7247",[Yt]:"\u6DFB\u52A0\u753B\u56FE",[Jt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Nn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var ao=({defaultValue:Ge="",onChange:Xe,width:_e="100%",height:zt=400,miniToolbar:un=!1,isFocus:tn=!1,watch:Vn,insertTemp:gn,mode:zn="markdown",id:Qn="markdown-editor-id",showResizeBar:Ba=!1,noStorage:Bt=!1,showNullButton:Kn=!1,showNullProgramButton:Ca=!1,hidetoolBar:ta=!1,fullScreen:la=!1,onBlur:na,onCMBeforeChange:Aa,onFullScreen:Da,className:_a="",disablePaste:ro=!1,disabled:Xa=!1,disabledFill:xa=!1,placeholder:bo="",values:xo="",extraUse:zo,onAddBlank:oo})=>{const[Dt,_o]=(0,ie.useState)(null),[Io,Co]=(0,ie.useState)(Ge),[Mt,xn]=(0,ie.useState)(Vn),[In,Tn]=(0,ie.useState)(la),[ra,ia]=(0,ie.useState)(""),[Ta,Ka]=(0,ie.useState)(0),[to,To]=(0,ie.useState)(zt),[Wo,Uo]=(0,ie.useState)(!1),vr=(0,ie.useRef)((0,ot.Z)()),Pr=(0,ie.useRef)(!1),nr=(0,ie.useRef)(),[ar,Vo]=(0,ie.useState)(0),[or,rr]=(0,ie.useState)(0),Lo=(0,ie.useRef)(),Ro=(0,ie.useRef)(),Ao=(0,ie.useRef)(),ko=(0,ie.useRef)(),ir=()=>ut(void 0,null,function*(){var mn;const Vt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:vr.current}});(mn=Vt==null?void 0:Vt.attachments)!=null&&mn.length&&(console.log("cm:",Dt,Lo),Vt.attachments.map(nn=>{nn.content_type.indexOf("image")>-1?Dt.replaceSelection(``):nn.content_type.indexOf("video")>-1?Dt.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):nn.content_type.indexOf("pdf")>-1?Dt.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${nn.id}?type=${nn.content_type}&disposition=inline" target="_blank">${nn.name}</a>`):Dt.replaceSelection(`[${nn.name}](${ENV.API_SERVER}/api/attachments/${nn.id}?type=${nn.content_type})`)}))});(0,ie.useEffect)(()=>{const mn=window.scrollY||window.pageYOffset;Co(xo),Dt==null||Dt.setValue(xo),window.scrollTo(0,mn)},[xo]),(0,ie.useEffect)(()=>{Da==null||Da(In)},[In]),(0,ie.useEffect)(()=>{if(Lo.current){let mn=function(nn,an){var qn;if(ro){an.preventDefault();return}const Sa=an.clipboardData;if(Sa){const ka=Sa.types.toString(),Ia=Sa.items;if(ka==="Files"||Sa.types.indexOf("Files")>-1){if(an.preventDefault(),zn=="stex")return;try{let Ma=Ia[1];((qn=Ia[0])==null?void 0:qn.kind)==="file"&&(Ma=Ia[0]);const za=Ma.getAsFile(),mo=za.name.split(".").pop();(0,Oe.I)(za,Wa=>{var Go,Ko,Zo;Wa.id?((Go=za==null?void 0:za.type)==null?void 0:Go.indexOf("image"))>-1?Vt.replaceSelection(`<img width="100%" src="/api/attachments/${Wa.id}?type=${Wa.content_type})" alt="" />`):((Ko=za==null?void 0:za.type)==null?void 0:Ko.indexOf("video"))>-1?Vt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Wa.id}"></video>`):((Zo=za==null?void 0:za.type)==null?void 0:Zo.indexOf("pdf"))>-1?Vt.replaceSelection(`<a href="/api/attachments/${Wa.id}?type=${za.type}&disposition=inline" target="_blank">${za.name}</a>`):kn.includes(mo)?Vt.replaceSelection(`<a href="/api/attachments/${Wa.id}?type=office&disposition=inline" target="_blank">${za.name}</a>`):Vt.replaceSelection(`[${za.name}](/api/attachments/${Wa.id}?type=${Wa.content_type})`):(Wa==null?void 0:Wa.status)===401&&(Zt.ZP.warning((Wa==null?void 0:Wa.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Ma){Zt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Vt=De().fromTextArea(Lo.current,{mode:zn,lineNumbers:!un,lineWrapping:!0,value:Ge,autoCloseTags:!Ca,autoCloseBrackets:!0});return Vt.on("keyup",function(nn,an){an.keyCode===8&&(nn.getValue()==""?Vt.setOption("placeholder",bo):Vt.setOption("placeholder",null))}),Vt.on("keydown",function(nn,an){if(an.keyCode===8){var qn=Ur(nn);qn&&an.preventDefault()}}),tn&&Vt.focus(),Vt.on("paste",mn),Vt.on("dragleave",function(nn,an){Ro.current.classList.remove("mouse-hover-md")}),Xa&&Vt.on("beforeChange",function(nn,an){(an.origin==="paste"||an.origin==="+input")&&an.cancel()}),_o(Vt),()=>{Vt.off("paste",mn)}}},[]);const yr=(0,ie.useCallback)(()=>{if(Ro.current)try{}catch(mn){console.log(mn,"---- to set md editor body height")}},[to,Ro,In]);(0,ie.useEffect)(()=>{function mn(){let Vt=new We.Z(nn=>{for(let an of nn)(an.target.offsetHeight>0||an.target.offsetWidth>0)&&(yr(),Dt.setSize("100%","100%"),Dt.refresh())});return Vt.observe(Lo.current.parentElement),Vt}if(Dt){const Vt=mn();return()=>{var nn,an;(nn=Lo.current)!=null&&nn.parentElement&&Vt.unobserve((an=Lo.current)==null?void 0:an.parentElement)}}},[Dt,yr]),(0,ie.useEffect)(()=>{if(Dt){let mn=[];for(const[Vt,nn]of Object.entries(Jn)){let an={[Vt]:()=>{lr(nn)}};mn.push(an),Dt.addKeyMap(an)}return nr.current=setInterval(()=>{Pr.current&&ir()},4e3),()=>{clearInterval(nr.current);for(let Vt of mn)Dt.removeKeyMap(Vt)}}},[Dt]),(0,ie.useEffect)(()=>{la!==In&&Tn(la)},[la]),(0,ht.Z)(()=>{if(!Bt&&Ta>0){let mn=new Date().getTime(),Vt=window.sessionStorage.getItem(Qn);mn>=Ta+pn&&(!Vt||Vt!==Io)&&(window.sessionStorage.setItem(Qn,Io),Uo(!0))}},pn),(0,ie.useEffect)(()=>{xn(Vn)},[Dt,Vn]),(0,ie.useEffect)(()=>{Dt&&tn&&Dt.focus()},[Dt,tn]),(0,ie.useEffect)(()=>{if(Mt&&Dt){let mn=function(nn){let an=nn.target;if(ko.current){let qn=an.scrollTop/an.scrollHeight;ko.current.scrollTop=ko.current.scrollHeight*qn}};const Vt=Dt.getScrollerElement();return Vt.addEventListener("scroll",mn),()=>{Vt.removeEventListener("scroll",mn)}}},[Dt,Mt]),(0,ie.useEffect)(()=>{if(Dt&&Aa){let mn=function(Vt,nn){Aa(Vt,nn)};return Dt.on("beforeChange",mn),()=>{Dt.off("beforeChange",mn)}}},[Dt,Aa]),(0,ie.useEffect)(()=>{if(Dt&&na){let mn=function(){na(Dt.getValue())};return Dt.on("blur",mn),()=>{Dt.off("blur",mn)}}},[Dt,na]);function Ur(mn,Vt){var nn=mn.getDoc(),an=nn.getCursor(),qn=nn.getLine(an.line),Sa=qn.charAt(an.ch-1),ka=qn.lastIndexOf("@\u2581@",an.ch),Ia=qn.lastIndexOf("@\u2581\u2581@",an.ch),Ma=ka>Ia?ka:Ia,za=ka>Ia?3:4;if(vn.indexOf(Sa)===-1)return null;if(console.log("change1:",Vt,mn,qn,an,Ma,ka,Ia,Sa),Ma>=0&&an.ch-Ma<5){var mo=Ma+za;return nn.replaceRange("",{line:an.line,ch:Ma},{line:an.line,ch:mo}),{line:an.line,ch:mo}}return null}(0,ie.useEffect)(()=>{if(Dt){let mn=function(Vt,nn){const an=Vt.getValue();Co(an),Ka(new Date().getTime()),Vt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Xe&&(Ca?Xe(an,Lr(an)):Xe(an))};return Dt.on("change",mn),()=>{Dt.off("change",mn)}}},[Dt,Xe]),(0,ie.useEffect)(()=>{if(Dt)if(Ge==null)Dt.setValue(""),Co("");else{const mn=window.scrollY||window.pageYOffset;Ge!==Dt.getValue()&&(Dt.setValue(Ge),Co(Ge),Dt.setCursor(Xa?1:Dt.lineCount(),0),window.scrollTo(0,mn))}},[Dt,Ge]);const lr=(0,ie.useCallback)(mn=>{const Vt=Dt.getCursor(),nn=Dt.getSelection();let an=nn.split(`
|
|
`);switch(mn){case"bold":return Dt.replaceSelection("**"+nn+"**"),nn===""&&Dt.setCursor(Vt.line,Vt.ch+2),Dt.focus();case"italic":return Dt.replaceSelection("*"+nn+"*"),nn===""&&Dt.setCursor(Vt.line,Vt.ch+1),Dt.focus();case"code":return Dt.replaceSelection("`"+nn+"`"),nn===""&&Dt.setCursor(Vt.line,Vt.ch+1),Dt.focus();case"inline-latex":return ia("inline-latex"),Dt.focus();case"latex":return Dt.replaceSelection("```latex\n"+nn+"\n```"),Dt.setCursor(Vt.line+1,nn.length+1),Dt.focus();case"line-break":return Dt.replaceSelection(`<br/>
|
|
`),Dt.focus();case"list-ul":return nn===""?Dt.replaceSelection("- "+nn):Dt.replaceSelection(an.map(qn=>qn===""?"":`- ${qn}`).join(`
|
|
`)),Dt.focus();case"list-ol":return nn===""?Dt.replaceSelection("1. "+nn):Dt.replaceSelection(an.map((qn,Sa)=>qn===""?"":`${Sa+1}. ${qn}`).join(`
|
|
`)),Dt.focus();case"add-null-ch":oo==null||oo();return;case"add-signal":return nn===""&&Dt.setCursor(Vt.line,Vt.ch),Dt.replaceSelection(wn),Dt.focus();case"add-multiple":return nn===""&&Dt.setCursor(Vt.line,Vt.ch),Dt.replaceSelection(vn),Dt.focus();case"inster-template-1":return nn===""&&Dt.setCursor(Vt.line,Vt.ch),Dt.replaceSelection(Ln),Dt.focus();case"eraser":return Dt.setValue(""),Dt.focus();case"trigger-watch":return xn(!Mt),Dt.focus();case"trigger-full-screen":return Tn(!In),Dt.focus();case Rt:ia(Rt);return;case on:ia(on);return;case Nt:ia(Nt);return;case Yt:ia(Yt);return;case"maths-latex":ia("maths-latex");return;case Jt:ia(Jt);return;case Nn:ia(Nn);return;default:throw new Error}},[Dt,Mt,In]),uo=(0,ie.useCallback)((mn,Vt)=>{var nn,an,qn,Sa,ka,Ia;switch(ia(""),ra){case Rt:const{title:Go,link:Ko}=mn;return Dt.replaceSelection(`[${Go}](${Ko})`),Dt.focus();case on:const{language:Zo,content:dr}=mn;return Dt.replaceSelection(["```"+Zo,dr,"```"].join(`
|
|
`)),Dt.focus();case"maths-latex":for(var Ma=atob(mn),za=new Uint8Array(Ma.length),mo=0;mo<Ma.length;mo++)za[mo]=Ma.charCodeAt(mo);var Wa=new Blob([za],{type:"image/png"});(0,Oe.I)(Wa,io=>{io.id?Dt.replaceSelection(``):(io==null?void 0:io.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Dt.replaceSelection("`$$"+mn+"$$`");break;case Nt:case Yt:case yn:const{src:fo,alt:Xo}=mn,Fa=Vt,Br=(qn=(an=(nn=Fa==null?void 0:Fa.name)==null?void 0:nn.split("."))==null?void 0:an.pop)==null?void 0:qn.call(an);return((Sa=Fa==null?void 0:Fa.type)==null?void 0:Sa.indexOf("image"))>-1||!(Fa!=null&&Fa.type)?Fa.align||Fa.width?Dt.replaceSelection(`<p style="text-align:${Fa.align||"initial"}"><img width="${Fa.width?Fa.width+"%":"initial"}" src="${fo}" alt="${Xo||""}" /></p>`):Dt.replaceSelection(`<img width="100%" src="${fo}" alt="${Xo||""}" />`):((ka=Fa==null?void 0:Fa.type)==null?void 0:ka.indexOf("video"))>-1?Dt.replaceSelection(`<video width="100%" controls src="${fo}"></video>`):((Ia=Fa==null?void 0:Fa.type)==null?void 0:Ia.indexOf("pdf"))>-1?Dt.replaceSelection(`<a href="${fo}?type=${Fa.type}&disposition=inline" target="_blank">${Fa.name}</a>`):kn.includes(Br)?Dt.replaceSelection(`<a href="${fo}?type=office&disposition=inline" target="_blank">${Fa.name}</a>`):Dt.replaceSelection(`[${Fa.name}](${fo})`),Dt.focus();case Nn:const{row:Fr,col:Yo,align:Nr}=mn;let Jo=`
|
|
`;for(let io=0;io<Fr;io++){let sr=[],Qo=[];for(let qo=0;qo<Yo;qo++)io===1&&Qo.push(Hn[Nr]),sr.push(" ");io===1&&(Jo+=`| ${Qo.join(" | ")} |
|
|
`),Jo+=`| ${sr.join(Yo===1?"":" | ")} |
|
|
`}return Dt.replaceSelection(Jo+`
|
|
`),Dt.focus();default:throw new Error}},[Dt,ra]),br=(0,ie.useMemo)(()=>{switch(ra){case Rt:return ie.createElement(Ft,{callback:uo,onCancel:po});case on:return ie.createElement(Tt.Z,{callback:uo,onCancel:po});case Nt:return ie.createElement(Oe.Z,{callback:uo,onCancel:po});case Jt:return ie.createElement(vt,{callback:uo,onCancel:po});case Nn:return ie.createElement(Pe,{callback:uo,onCancel:po});case"maths-latex":return ie.createElement(lt,{showSaveButton:!0,callback:uo});case"inline-latex":return ie.createElement(yt.Z,{showSaveButton:!0,callback:uo});default:return null}},[ra]);function po(){ia("")}(0,ie.useEffect)(()=>{if(Ao.current){let mn=function(ka){qn=!0,Sa=ka.pageY},Vt=function(){qn=!1},nn=function(ka){if(qn){let Ia=ka.pageY-Sa;Ia<0&&(Ia=0),Ia>300&&(Ia=300);let Ma=zt+Ia+"px";To(Ma)}},an=Ao.current,qn=!1,Sa=0;return an.addEventListener("mousedown",mn),document.addEventListener("mousemove",nn),document.addEventListener("mouseup",Vt),()=>{an.removeEventListener("mousedown",mn),document.removeEventListener("mousemove",nn),document.removeEventListener("mouseup",Vt)}}},[Dt,Ao]),(0,ie.useEffect)(()=>{To(zt)},[zt]);const xr=ca(_e),Cr=ca(to),gr={width:xr,height:Cr},Vr=(0,ie.useMemo)(()=>{if(Ta){let mn=new Date(Ta),Vt=mn.getHours(),nn=mn.getMinutes(),an=mn.getSeconds();return Vt=Vt<10?"0"+Vt:Vt,nn=nn<10?"0"+nn:nn,an=an<10?"0"+an:an,`${Vt}:${nn}:${an}`}return 0},[Ta]),Lr=mn=>{const Vt=[];if(Ca){let nn=-1;mn=mn.replace(/(@▁▁@|@▁@)/g,function(an,qn,Sa){Vt.push({multiLine:an!==wn})})}return Vt};function Xr(){window.sessionStorage.removeItem(Qn),Uo(!1),Ka(0)}function Yr(){Uo(!1),Ka(0),Dt.setValue(window.sessionStorage.getItem(Qn))}(0,ie.useEffect)(()=>{ha[ra]&&ra!==Yt&&ra!==Jt&&setTimeout(()=>{const mn=document.getElementsByClassName("markdown-popup-form")[0],Vt=window.innerWidth/2-mn.offsetWidth/2,nn=window.innerHeight/2-mn.offsetHeight/2;Vo(Vt),rr(nn)},0)},[ra]);const wr=mn=>{mn.preventDefault();const Vt=mn.clientX-ar,nn=mn.clientY-or;document.body.onmousemove=an=>{let qn=an.clientX-Vt,Sa=an.clientY-nn;const ka=document.getElementsByClassName("markdown-popup-form")[0],Ia=window.innerWidth-ka.offsetWidth,Ma=window.innerHeight-ka.offsetHeight;qn=Math.max(0,Math.min(qn,Ia)),Sa=Math.max(0,Math.min(Sa,Ma)),Er(an.clientX,an.clientY,Vt,nn)&&(Vo(qn),rr(Sa))},document.body.onmouseup=function(){document.body.onmousemove=null}},Er=(mn,Vt,nn,an)=>{const qn=document.body.clientHeight,Sa=document.body.clientWidth;return mn<20&&nn>mn||mn>Sa-20&&nn<mn||Vt<20&&an>Vt||Vt>qn-20&&an<Vt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ie.createElement(ie.Fragment,null,ie.createElement("div",{className:"markdown-editor-wrapper",ref:Ro},ie.createElement("div",{className:`markdown-editor-container ${_a} ${Mt?"on-preview":""} ${un?"mini":""} ${In?"full-screen":""}`,style:gr},ie.createElement(se,{insertTemp:gn,watch:Mt,fullScreen:In,showNullButton:Kn,showNullProgramButton:Ca,onActionCallback:lr,hidetoolBar:ta,extraUse:zo}),ie.createElement("div",{className:"markdown-editor-body"},ie.createElement("div",{className:"codemirror-container"},ie.createElement("textarea",{ref:Lo,placeholder:bo})),Mt?ie.createElement("div",{ref:ko,className:"preview-container"},zn==="stex"&&ie.createElement(et,{value:Io}),zn!=="stex"&&ie.createElement(Re.Z,{disabledFill:xa,showProgramFill:Ca,value:Io})):null))),Ba?ie.createElement("a",{ref:Ao,className:"editor-resize"}):null,ra===Yt&&ie.createElement($t,{callback:uo,onCancel:po}),ra===Jt&&ie.createElement(vt,{callback:uo,onCancel:po}),ie.createElement(be.Z,null,ha[ra]&&ra!==Yt&&ra!==Jt?ie.createElement(je.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:ar,top:or},title:ie.createElement("div",{style:{cursor:"move"},onMouseDown:wr},ha[ra]),open:!0,onCancel:po,footer:null,destroyOnClose:!0,width:ra===Jt?"1200px":null,height:ra===Jt?"80vh":null,className:"markdown-popup-form"},br):null))}},45053:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return de},I:function(){return be}});var ie=ne(78241),ce=ne(8591),De=ne(92832),We=ne(81327),we=ne(5871),Be=ne(5112),ae=ne(3113),Je=ne(28735),Ve=ne(59301),He=ne(41867),Re=ne(59301),et=Object.defineProperty,Ke=Object.defineProperties,oe=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,b=(Se,Ee,he)=>Ee in Se?et(Se,Ee,{enumerable:!0,configurable:!0,writable:!0,value:he}):Se[Ee]=he,E=(Se,Ee)=>{for(var he in Ee||(Ee={}))a.call(Ee,he)&&b(Se,he,Ee[he]);if(y)for(var he of y(Ee))x.call(Ee,he)&&b(Se,he,Ee[he]);return Se},z=(Se,Ee)=>Ke(Se,oe(Ee));const{useForm:ee}=ie.default,te={width:280,marginRight:10},ge={labelCol:{span:5},wrapperCol:{span:19}};var de=({callback:Se,onCancel:Ee})=>{const[he]=ee();let ft=(0,Ve.useRef)();function it(Ae){ft.current.width=he.getFieldValue("width"),ft.current.align=he.getFieldValue("align"),Se(Ae,ft.current)}function _t(Ae,tt){if(Ae.status===-1){ce.ZP.error(Ae.message);return}he.setFieldsValue({src:`/api/attachments/${Ae.id}`,type:tt.type})}function Ce(Ae){let tt=Ae.target.files[0];ft.current=tt,be(tt,_t)}return Re.createElement(ie.default,z(E({form:he},ge),{className:"upload-image-panel",onFinish:it,style:{width:470,overflow:"hidden"}}),Re.createElement(ie.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Re.createElement("div",{className:"flex-container"},Re.createElement(ie.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Re.createElement(De.default,{style:te})),Re.createElement(se,{onFileChange:Ce}))),Re.createElement(ie.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Re.createElement(De.default,{style:{width:264}})),Re.createElement(ie.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Re.createElement(We.Z,null,Re.createElement(ie.default.Item,{name:"width",style:{margin:0}},Re.createElement(we.Z,{style:{width:264}})),Re.createElement("span",{className:"ml8"},"%"))),Re.createElement(ie.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Re.createElement(Be.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"}]})),Re.createElement("aside",null,Re.createElement(ie.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Re.createElement(ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Re.createElement(ae.ZP,{type:"default",onClick:Ee},"\u53D6\u6D88"))))};function se({onFileChange:Se}){return Re.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Re.createElement("input",{type:"file",onChange:Se}))}function be(Se,Ee){if(!Se)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,He.bg)())throw ce.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let he=new FormData;he.append("editormd-image-file",Se),he.append("file_param_name","editormd-image-file"),he.append("byxhr","true");var ft=new window.XMLHttpRequest;ft.withCredentials=!0,ft.addEventListener("load",function(it){Ee(JSON.parse(it.target.responseText),Se)},!1),ft.addEventListener("error",function(it){console.error(it)},!1),ft.open("POST",`${Je.KI}/api/attachments.json`),ft.send(he)}},57261:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return De}});var ie=ne(59301),ce=ne(4676);class De extends ie.Component{constructor(we){super(we);const Be=window.document;this.node=Be.createElement("div"),Be.body.appendChild(this.node)}render(){const{children:we}=this.props;return(0,ce.createPortal)(we,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},31103:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return ce}});var ie=ne(59301);function ce(De,We){const we=(0,ie.useRef)();(0,ie.useEffect)(()=>{we.current=De}),(0,ie.useEffect)(()=>{function Be(){we.current()}if(We!==null){let ae=setInterval(Be,We);return()=>clearInterval(ae)}},[We])}},35507:function(qe,gt,ne){"use strict";ne.r(gt),ne.d(gt,{default:function(){return Hn}});var ie=ne(59301),ce=ne(65582),De=ne(66104),We=ne(99313),we=ne(27812),Be=ne(65862),ae=ne(96565),Je=ne(74128),Ve=ne(6339),He=ne(43418),Re=ne(8591),et=Object.defineProperty,Ke=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,a=(ht,ut,dt)=>ut in ht?et(ht,ut,{enumerable:!0,configurable:!0,writable:!0,value:dt}):ht[ut]=dt,x=(ht,ut)=>{for(var dt in ut||(ut={}))oe.call(ut,dt)&&a(ht,dt,ut[dt]);if(Ke)for(var dt of Ke(ut))y.call(ut,dt)&&a(ht,dt,ut[dt]);return ht},b=(ht,ut,dt)=>new Promise((Ct,pn)=>{var Bn=Ln=>{try{wn(dt.next(Ln))}catch(kn){pn(kn)}},vn=Ln=>{try{wn(dt.throw(Ln))}catch(kn){pn(kn)}},wn=Ln=>Ln.done?Ct(Ln.value):Promise.resolve(Ln.value).then(Bn,vn);wn((dt=dt.apply(ht,ut)).next())});const E=({shixunHomeworks:ht,dispatch:ut})=>{const dt=(0,ce.useParams)();return ie.createElement(He.default,{centered:!0,title:"\u63D0\u793A",open:ht.actionTabs.key==="\u5220\u9664",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>b(void 0,null,function*(){(yield ut({type:"shixunHomeworks/deleteReply",payload:{object_id:ht.actionTabs.selectArr.id,object_type:"journals_for_message"}})).status===0&&(Re.ZP.success("\u5220\u9664\u6210\u529F"),ut({type:"shixunHomeworks/setActionTabs",payload:{}}),ut({type:"shixunHomeworks/getReplyList",payload:x({},ht.actionTabs.params)}))}),onCancel:()=>{ut({type:"shixunHomeworks/setActionTabs",payload:{}})}},ie.createElement("p",null,"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"))};var z=(0,ce.connect)(({shixunHomeworks:ht})=>({shixunHomeworks:ht}))(E),ee=ne(66649),te=ne.n(ee),ge=ne(95237),de=ne(43604),se=ne(92832),be=ne(3113),Se=ne(6848),Ee=ne(58421),he=ne(26227),ft=ne(63524),it={flex_box_center:"flex_box_center___rwkot",flex_space_between:"flex_space_between___CV5Yi",flex_box_vertical_center:"flex_box_vertical_center___meeO5",flex_box_center_end:"flex_box_center_end___RXqc0",flex_box_column:"flex_box_column___HwZxi",listItem:"listItem___Cb1Ly",description:"description___UqYVS",liked:"liked___xlDpa",likedActive:"likedActive___GqNt1",reply:"reply___R3gEt",replyList:"replyList___AA3m5",comment:"comment___JuJKy"},_t=Object.defineProperty,Ce=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,at=(ht,ut,dt)=>ut in ht?_t(ht,ut,{enumerable:!0,configurable:!0,writable:!0,value:dt}):ht[ut]=dt,st=(ht,ut)=>{for(var dt in ut||(ut={}))Ae.call(ut,dt)&&at(ht,dt,ut[dt]);if(Ce)for(var dt of Ce(ut))tt.call(ut,dt)&&at(ht,dt,ut[dt]);return ht},St=(ht,ut,dt)=>new Promise((Ct,pn)=>{var Bn=Ln=>{try{wn(dt.next(Ln))}catch(kn){pn(kn)}},vn=Ln=>{try{wn(dt.throw(Ln))}catch(kn){pn(kn)}},wn=Ln=>Ln.done?Ct(Ln.value):Promise.resolve(Ln.value).then(Bn,vn);wn((dt=dt.apply(ht,ut)).next())});te().locale("ZH-cn");const wt=({graduation:ht,classroomList:ut,globalSetting:dt,loading:Ct,dispatch:pn})=>{const[Bn,vn]=(0,ie.useState)(st({},(0,ce.useParams)())),[wn,Ln]=(0,ie.useState)(!1),[kn,ca]=(0,ie.useState)(-1),[da,jn]=(0,ie.useState)(""),{detail:Jn}=ht,{detailLeftMenus:ha}=ut,{graduationDetail:ao,replyList:Ge,workDetail:Xe}=ht,_e={1:"\u8BBE\u8BA1",2:"\u8BBA\u6587",3:"\u521B\u4F5C"},zt={1:"\u751F\u4EA7/\u793E\u4F1A\u5B9E\u9645",2:"\u7ED3\u5408\u79D1\u7814",3:"\u5176\u5B83"},un={1:"\u771F\u9898",2:"\u6A21\u62DF\u9898"},tn={1:"\u7EB5\u5411\u8BFE\u9898",2:"\u6A2A\u5411\u8BFE\u9898",3:"\u81EA\u9009"},Vn={1:"\u65B0\u9898",2:"\u5F80\u5C4A\u9898\uFF0C\u6709\u65B0\u8981\u6C42",3:"\u5F80\u5C4A\u9898\uFF0C\u65E0\u65B0\u8981\u6C42"};return Bn.page_size=10,(0,ie.useEffect)(()=>{pn({type:"graduation/getReplyList",payload:st({},Bn)}),pn({type:"graduation/getTopisDetail",payload:st({},Bn)})},[Bn.categoryId]),ie.createElement("section",{className:it.bg},ie.createElement("section",{className:" edu-container"},ie.createElement("aside",{className:[it.desc,"c-black","font14","bg-white"].join(" ")},ie.createElement("h1",{className:it.description},Jn.description),ie.createElement("div",{className:"mt30"},ie.createElement("ul",{className:it.listItem},ie.createElement("li",null,ie.createElement("span",{className:"c-light-black"},"\u8BFE\u9898\u7C7B\u578B\uFF1A"),ie.createElement("span",null,_e[Jn==null?void 0:Jn.topic_type]||"--")),ie.createElement("li",null,ie.createElement("span",{className:"c-light-black"},"\u8BFE\u9898\u6765\u6E90\uFF1A"),ie.createElement("span",null,zt[Jn==null?void 0:Jn.topic_source]||"--")),ie.createElement("li",null,ie.createElement("span",{className:"c-light-black"},"\u8BFE\u9898\u6027\u8D281\uFF1A"),ie.createElement("span",null,un[Jn==null?void 0:Jn.topic_property_first]||"--")),ie.createElement("li",null,ie.createElement("span",{className:"c-light-black"},"\u8BFE\u9898\u6027\u8D282\uFF1A"),ie.createElement("span",null,tn[Jn==null?void 0:Jn.topic_property_second]||"--")),ie.createElement("li",null,ie.createElement("span",{className:"c-light-black"},"\u8BFE\u9898\u91CD\u590D\u60C5\u51B5\uFF1A"),ie.createElement("span",null,Vn[Jn==null?void 0:Jn.topic_repeat]||"--")),ie.createElement("li",null,ie.createElement("span",{className:"c-light-black"},"\u8C03\u7814\u6216\u5B9E\u4E60\u5730\u70B9\uFF1A"),ie.createElement("span",null,Jn.city||"--")),ie.createElement("li",{className:"fl with50"},ie.createElement("span",{className:"c-light-black"},"\u8BFE\u9898\u6765\u6E90\u5355\u4F4D\uFF1A"),ie.createElement("span",null,Jn.source_unit||"--"))))),ie.createElement("aside",{className:[it.reply,"bg-white","mt20"].join(" ")},wn&&ie.createElement(ae.Z,{onChange:gn=>{jn(gn)},height:200,isFocus:!0,watch:!0}),ie.createElement(ge.Z,{onClick:()=>{Ln(!0)}},ie.createElement(de.Z,{flex:"1"},!wn&&ie.createElement(se.default,{size:"middle",className:"current",placeholder:"\u8BF4\u70B9\u4EC0\u4E48",disabled:!0})),ie.createElement(de.Z,null,ie.createElement(be.ZP,{type:"primary",size:"middle",onClick:()=>St(void 0,null,function*(){da===""?Re.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):(yield pn({type:"graduation/createReply",payload:{journals_for_message:{jour_id:Bn.categoryId,jour_type:"HomeworkCommon",reply_id:1,notes:da}}})).status===0&&(Re.ZP.success("\u53D1\u5E03\u6210\u529F"),pn({type:"graduation/getReplyList",payload:st({},Bn)}),Ln(!1))})},"\u53D1\u8868")))),(Ge==null?void 0:Ge.comments)&&Ge.comments!=""&&ie.createElement("aside",{className:[it.replyList,"bg-white"].join(" ")},Ge==null?void 0:Ge.comments.map(function(gn,zn){var Qn,Ba;return ie.createElement(ge.Z,{gutter:[12,12],key:zn},ie.createElement(de.Z,{flex:"40px"},ie.createElement("img",{width:"40",src:`${Je.Z.IMG_SERVER}/images/${(Qn=gn==null?void 0:gn.author)==null?void 0:Qn.image_url}`})),ie.createElement(de.Z,{flex:"1"},ie.createElement(ge.Z,{align:"middle"},ie.createElement(de.Z,{span:24},ie.createElement("span",{className:"c-light-black"},(Ba=gn==null?void 0:gn.author)==null?void 0:Ba.name),ie.createElement("span",{className:"c-light-black ml10"},te()(gn==null?void 0:gn.created_on).fromNow()," \u53D1\u5E03")),ie.createElement(de.Z,{span:24},ie.createElement(Ve.Z,{value:gn.content})),gn.children&&ie.createElement("aside",{className:it.comment},gn.children.map(function(Bt,Kn){return ie.createElement(ge.Z,{key:Kn},ie.createElement(de.Z,{span:24},ie.createElement(ge.Z,null,ie.createElement(de.Z,{flex:"1"},Bt.author.name,ie.createElement("span",{className:"c-light-black ml10"},te()(Bt==null?void 0:Bt.created_on).fromNow())),ie.createElement(de.Z,null,ie.createElement(Se.Z,{title:"\u5220\u9664"},ie.createElement(he.Z,{className:"current",onClick:()=>{pn({type:"graduation/setActionTabs",payload:{key:"\u5220\u9664",params:Bn,selectArr:gn}})}}))))),ie.createElement(de.Z,null,ie.createElement("strong",null,ie.createElement(Ve.Z,{value:Bt.content}))))})),ie.createElement(de.Z,{span:24,className:"mt5 c-light-black"},kn===zn&&ie.createElement("aside",null,ie.createElement(ae.Z,{onChange:Bt=>{jn(Bt)},height:150,isFocus:!0}),ie.createElement(ge.Z,null,ie.createElement(de.Z,{span:24,className:"tr"},ie.createElement(be.ZP,{type:"primary",size:"middle",onClick:()=>St(this,null,function*(){da===""?Re.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):(yield pn({type:"graduation/createReply",payload:{journals_for_message:{jour_id:Bn.categoryId,jour_type:"HomeworkCommon",m_parent_id:gn.id,reply_id:1,notes:da}}}),pn({type:"graduation/getReplyList",payload:st({},Bn)}),Re.ZP.success("\u53D1\u5E03\u6210\u529F"),ca(-1))})},"\u53D1\u8868")))),kn!==zn&&ie.createElement("div",{className:"tr"},ie.createElement("span",{className:"iconfont icon-huifu1 mr5 ml30",onClick:()=>ca(zn)}),gn.liked&&ie.createElement("span",{className:"c-orange"},ie.createElement(ft.Z,{className:"mr5 ml30",onClick:()=>St(this,null,function*(){yield pn({type:"graduation/replyUnLike",payload:{object_id:gn.id,object_type:"message"}}),pn({type:"graduation/getReplyList",payload:st({},Bn)})})}),gn.praises_count),!gn.liked&&ie.createElement("span",null,ie.createElement(ft.Z,{className:"mr5 ml30",onClick:()=>St(this,null,function*(){yield pn({type:"graduation/replyLike",payload:{object_id:gn.id,object_type:"message"}}),pn({type:"graduation/getReplyList",payload:st({},Bn)})})}),gn.praises_count))))))}))),ie.createElement("aside",{className:"tc mt30 pb30"},ie.createElement(Ee.Z,{defaultCurrent:1,total:Ge==null?void 0:Ge.total_count,hideOnSinglePage:!0,current:Bn.page||1,onChange:gn=>{Bn.page=gn,pn({type:"graduation/getReplyList",payload:st({},Bn)})}})),ie.createElement(z,null))};var Ft=(0,ce.connect)(({graduation:ht,classroomList:ut,loading:dt,globalSetting:Ct})=>({graduation:ht,globalSetting:Ct,classroomList:ut,loading:dt.effects}))(wt),Tt=ne(78241),Oe=ne(1710),je=Object.defineProperty,ct=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,$t=(ht,ut,dt)=>ut in ht?je(ht,ut,{enumerable:!0,configurable:!0,writable:!0,value:dt}):ht[ut]=dt,ye=(ht,ut)=>{for(var dt in ut||(ut={}))Gt.call(ut,dt)&&$t(ht,dt,ut[dt]);if(ct)for(var dt of ct(ut))nt.call(ut,dt)&&$t(ht,dt,ut[dt]);return ht},Et=(ht,ut)=>{var dt={};for(var Ct in ht)Gt.call(ht,Ct)&&ut.indexOf(Ct)<0&&(dt[Ct]=ht[Ct]);if(ht!=null&&ct)for(var Ct of ct(ht))ut.indexOf(Ct)<0&&nt.call(ht,Ct)&&(dt[Ct]=ht[Ct]);return dt},Ht=(ht,ut,dt)=>new Promise((Ct,pn)=>{var Bn=Ln=>{try{wn(dt.next(Ln))}catch(kn){pn(kn)}},vn=Ln=>{try{wn(dt.throw(Ln))}catch(kn){pn(kn)}},wn=Ln=>Ln.done?Ct(Ln.value):Promise.resolve(Ln.value).then(Bn,vn);wn((dt=dt.apply(ht,ut)).next())});const cn=ht=>{var ut=ht,{graduation:dt,dispatch:Ct}=ut,pn=Et(ut,["graduation","dispatch"]);const Bn=(0,ce.useParams)();return ie.createElement(He.default,{centered:!0,title:"\u63D0\u793A",open:dt.actionTabs.key==="\u62D2\u7EDD",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Ht(void 0,null,function*(){(yield Ct({type:"graduation/refuseTopic",payload:ye({student_graduation_topic:dt.actionTabs.selectArrs.id},Bn)})).status===0&&(Re.ZP.success("\u62D2\u7EDD\u6210\u529F"),Ct({type:"graduation/setActionTabs",payload:{}}),Ct({type:"graduation/getTopisDetailList",payload:ye({},dt.actionTabs.params)}))}),onCancel:()=>{Ct({type:"graduation/setActionTabs",payload:{}})}},ie.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u62D2\u7EDD\u5B66\u751F\u9009\u9898?"))};var Xt=(0,ce.connect)(({graduation:ht})=>({graduation:ht}))(cn),Te=ne(57809),$e=Object.defineProperty,Fe=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,vt=(ht,ut,dt)=>ut in ht?$e(ht,ut,{enumerable:!0,configurable:!0,writable:!0,value:dt}):ht[ut]=dt,pe=(ht,ut)=>{for(var dt in ut||(ut={}))me.call(ut,dt)&&vt(ht,dt,ut[dt]);if(Fe)for(var dt of Fe(ut))Ue.call(ut,dt)&&vt(ht,dt,ut[dt]);return ht},ue=(ht,ut)=>{var dt={};for(var Ct in ht)me.call(ht,Ct)&&ut.indexOf(Ct)<0&&(dt[Ct]=ht[Ct]);if(ht!=null&&Fe)for(var Ct of Fe(ht))ut.indexOf(Ct)<0&&Ue.call(ht,Ct)&&(dt[Ct]=ht[Ct]);return dt},Ze=(ht,ut,dt)=>new Promise((Ct,pn)=>{var Bn=Ln=>{try{wn(dt.next(Ln))}catch(kn){pn(kn)}},vn=Ln=>{try{wn(dt.throw(Ln))}catch(kn){pn(kn)}},wn=Ln=>Ln.done?Ct(Ln.value):Promise.resolve(Ln.value).then(Bn,vn);wn((dt=dt.apply(ht,ut)).next())});const Ne=ht=>{var ut=ht,{graduation:dt,dispatch:Ct}=ut,pn=ue(ut,["graduation","dispatch"]),Bn;const vn=(0,ce.useParams)(),{detailList:wn}=dt,[Ln]=Tt.default.useForm();return ie.createElement(He.default,{centered:!0,title:"\u540C\u610F\u9009\u9898",open:dt.actionTabs.key==="\u540C\u610F",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Ze(void 0,null,function*(){var kn;yield Ln.validateFields();const ca=Ln.getFieldsValue();(yield Ct({type:"graduation/agreeTopic",payload:pe({group_id:ca.group_id,course_group_name:(kn=wn==null?void 0:wn.group_list)==null?void 0:kn.filter(jn=>jn.group_id==ca.group_id)[0].group_name,student_graduation_topic:dt.actionTabs.selectArrs.id},vn)})).status===0&&(Re.ZP.success("\u540C\u610F\u6210\u529F"),Ct({type:"graduation/setActionTabs",payload:{}}),Ct({type:"graduation/getTopisDetailList",payload:pe({},dt.actionTabs.params)}))}),onCancel:()=>{Ct({type:"graduation/setActionTabs",payload:{}})}},ie.createElement("p",null,"\u786E\u8BA4\u540C\u610F\u5B66\u751F\u7684\u9009\u9898\uFF0C\u5C06\u5B66\u751F\u52A0\u5165\u6211\u7684\u5206\u73ED"),ie.createElement(Tt.default,{form:Ln},ie.createElement(Tt.default.Item,{name:"group_id",label:"\u9009\u62E9\uFF1A",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5206\u73ED"}]},ie.createElement(Te.default,{placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED",size:"middle"},(Bn=wn==null?void 0:wn.group_list)==null?void 0:Bn.map(function(kn,ca){return ie.createElement(Te.default.Option,{value:kn.group_id},kn.group_name)})))))};var Pe=(0,ce.connect)(({graduation:ht})=>({graduation:ht}))(Ne),ke=Object.defineProperty,Lt=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,lt=(ht,ut,dt)=>ut in ht?ke(ht,ut,{enumerable:!0,configurable:!0,writable:!0,value:dt}):ht[ut]=dt,yt=(ht,ut)=>{for(var dt in ut||(ut={}))mt.call(ut,dt)&<(ht,dt,ut[dt]);if(Lt)for(var dt of Lt(ut))xt.call(ut,dt)&<(ht,dt,ut[dt]);return ht};const ot=({graduation:ht,loading:ut,dispatch:dt})=>{const[Ct,pn]=(0,ie.useState)(yt({},(0,ce.useParams)())),Bn=(0,ce.useLocation)(),{detailList:vn}=ht,[wn,Ln]=(0,ie.useState)({}),[kn]=Tt.default.useForm(),ca=(jn,Jn)=>{Ct.page=jn,Ct.limit=20,dt({type:"graduation/getTopisDetailList",payload:yt({},Ct)})},da=[{title:"\u5E8F\u53F7",dataIndex:"name",width:200,align:"center",render:(jn,Jn,ha)=>ha+1},{title:"\u59D3\u540D",dataIndex:"student_name"},{title:"\u5B66\u53F7",dataIndex:"student_id"},{title:"\u5206\u73ED",dataIndex:"class_group_name"},{title:"\u9009\u9898\u65F6\u95F4",dataIndex:"selected_time"},{title:"\u786E\u8BA4\u7ED3\u679C",dataIndex:"result",render:jn=>jn==="\u5DF2\u62D2\u7EDD"?ie.createElement("span",{className:"c-orange"},"\u5DF2\u62D2\u7EDD"):jn},{title:"\u64CD\u4F5C",dataInex:"action",render:(jn,Jn)=>ie.createElement("div",null,(Jn.result==="\u5F85\u786E\u8BA4"||Jn.result==="\u5DF2\u540C\u610F")&&ie.createElement("span",{className:"current",onClick:()=>{dt({type:"graduation/setActionTabs",payload:{key:"\u62D2\u7EDD",selectArrs:Jn,params:Ct}})}},"\u62D2\u7EDD"),Jn.result==="\u5F85\u786E\u8BA4"&&ie.createElement("span",{className:"current ml20 c-blue",onClick:()=>{dt({type:"graduation/setActionTabs",payload:{key:"\u540C\u610F",selectArrs:Jn,params:Ct}})}},"\u540C\u610F"))}];return ie.createElement(ie.Fragment,null,ie.createElement("section",{className:"minH500 bg-white "},ie.createElement(Oe.default,{loading:ut["graduation/getTopisDetailList"],pagination:!1,dataSource:vn.users_list,columns:da}),ie.createElement(Xt,null),ie.createElement(Pe,null)),ie.createElement("aside",{className:"tc mb50 mt30"},ie.createElement(Ee.Z,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:ca,defaultCurrent:Ct.page||1,current:Ct.page||1,defaultPageSize:15,total:ht.users_count})))};var Zt=(0,ce.connect)(({graduation:ht,loading:ut})=>({graduation:ht,loading:ut.effects}))(ot),Rt={flex_box_center:"flex_box_center___D_8YV",flex_space_between:"flex_space_between___DI3Lx",flex_box_vertical_center:"flex_box_vertical_center___HQIdb",flex_box_center_end:"flex_box_center_end___jBPdg",flex_box_column:"flex_box_column___oBJ_R",title:"title___vQC28",menuTabs:"menuTabs___ZWqcp",rightMenu:"rightMenu___JdFEE",shixunDetail:"shixunDetail___rsPHS"},Nt=Object.defineProperty,Jt=Object.getOwnPropertySymbols,Yt=Object.prototype.hasOwnProperty,yn=Object.prototype.propertyIsEnumerable,on=(ht,ut,dt)=>ut in ht?Nt(ht,ut,{enumerable:!0,configurable:!0,writable:!0,value:dt}):ht[ut]=dt,Nn=(ht,ut)=>{for(var dt in ut||(ut={}))Yt.call(ut,dt)&&on(ht,dt,ut[dt]);if(Jt)for(var dt of Jt(ut))yn.call(ut,dt)&&on(ht,dt,ut[dt]);return ht};const Gn=({graduation:ht,globalSetting:ut,loading:dt,dispatch:Ct})=>{const pn=(0,ce.useParams)(),Bn=(0,ce.useLocation)(),[vn]=(0,ce.useSearchParams)(),[wn,Ln]=(0,ie.useState)([]),[kn,ca]=(0,ie.useState)(vn.get("tabs")||0),{detailList:da}=ht;let jn;pn.category=vn.get("category_id"),(0,ie.useEffect)(()=>{Ct({type:"graduation/getTopisDetailList",payload:Nn({},pn)})},[pn.coursesId]);const Jn=[{name:"\u9009\u9898\u5217\u8868",id:0,compontent:ie.createElement(Zt,null)},{name:"\u9009\u9898\u63CF\u8FF0",id:1,compontent:ie.createElement(Ft,null)}];return ie.createElement("section",null,ie.createElement("div",{className:"edu-container"},da.course_name&&ie.createElement("section",{className:"animated fadeIn"},ie.createElement("aside",{className:"mt10"},ie.createElement(De.Z,{separator:">"},ie.createElement(De.Z.Item,null,ie.createElement(ce.Link,{to:`/classrooms/${da.course_id}/shixun_homework`},da.course_name)),ie.createElement(De.Z.Item,null,ie.createElement(ce.Link,{to:`/classrooms/${da.course_id}/graduation_topics/${da.graduation_id}`},"\u6BD5\u8BBE\u9009\u9898")),ie.createElement(De.Z.Item,null,"\u9009\u9898\u8BE6\u60C5"))),ie.createElement("aside",{className:[Rt.title,"mt20"].join(" ")},ie.createElement(ce.Link,{to:`/classrooms/${da.course_id}/graduation_topics/${da.graduation_id}`},ie.createElement(we.Z,{className:"font16 c-black"})),ie.createElement("strong",{className:"font20 ml5"},da.graduation_topic_name),ie.createElement(Be.VV,{status:[da.status_name]}))),ie.createElement("aside",{className:"mt30 relative"},ie.createElement("aside",{className:Rt.rightMenu},ie.createElement(ce.Link,{className:Rt.shixunDetail,to:`/classrooms/${pn.coursesId}/graduation_topics/${pn.categoryId}/edit`},ie.createElement("span",{className:"iconfont icon-shixunxiangqing"}),"\u7F16\u8F91\u9009\u9898")),ie.createElement(We.default,{defaultActiveKey:kn,className:Rt.menuTabs},Jn.map((ha,ao)=>ie.createElement(We.default.TabPane,{tab:ha.name,key:ha.id},ha.compontent))))))};var Hn=(0,ce.connect)(({graduation:ht,loading:ut,globalSetting:dt})=>({graduation:ht,globalSetting:dt,loading:ut.effects}))(Gn)},50371:function(qe,gt){"use strict";function ne(){const ie=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ce=1;ce<arguments.length;ce++){const De=ce<0||arguments.length<=ce?void 0:arguments[ce];De&&Object.keys(De).forEach(We=>{const we=De[We];we!==void 0&&(ie[We]=we)})}return ie}gt.Z=ne},13845:function(qe,gt,ne){"use strict";ne.d(gt,{F:function(){return ie},Z:function(){return ce}});function ie(De){return De!=null&&De===De.window}function ce(De,We){var we,Be;if(typeof window=="undefined")return 0;const ae=We?"scrollTop":"scrollLeft";let Je=0;return ie(De)?Je=De[We?"pageYOffset":"pageXOffset"]:De instanceof Document?Je=De.documentElement[ae]:(De instanceof HTMLElement||De)&&(Je=De[ae]),De&&!ie(De)&&typeof Je!="number"&&(Je=(Be=((we=De.ownerDocument)!==null&&we!==void 0?we:De).documentElement)===null||Be===void 0?void 0:Be[ae]),Je}},56762:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return ce}});var ie=ne(59301);function ce(){const[,De]=ie.useReducer(We=>We+1,0);return De}},68031:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return We}});var ie=ne(16089);function ce(we,Be,ae,Je){const Ve=ae-Be;return we/=Je/2,we<1?Ve/2*we*we*we+Be:Ve/2*((we-=2)*we*we+2)+Be}var De=ne(13845);function We(we){let Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ae=()=>window,callback:Je,duration:Ve=450}=Be,He=ae(),Re=(0,De.Z)(He,!0),et=Date.now(),Ke=()=>{const y=Date.now()-et,a=ce(y>Ve?Ve:y,Re,we,Ve);(0,De.F)(He)?He.scrollTo(window.pageXOffset,a):He instanceof Document||He.constructor.name==="HTMLDocument"?He.documentElement.scrollTop=a:He.scrollTop=a,y<Ve?(0,ie.Z)(Ke):typeof Je=="function"&&Je()};(0,ie.Z)(Ke)}},66104:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return _t}});var ie=ne(92310),ce=ne.n(ie),De=ne(11592),We=ne(26112),we=ne(59301),Be=ne(92343),ae=ne(36355),Je=ne(84105),Ve=ne(91857);const He=Ce=>{let{children:Ae}=Ce;const{getPrefixCls:tt}=we.useContext(ae.E_),at=tt("breadcrumb");return we.createElement("li",{className:`${at}-separator`,"aria-hidden":"true"},Ae===""?Ae:Ae||"/")};He.__ANT_BREADCRUMB_SEPARATOR=!0;var Re=He,et=function(Ce,Ae){var tt={};for(var at in Ce)Object.prototype.hasOwnProperty.call(Ce,at)&&Ae.indexOf(at)<0&&(tt[at]=Ce[at]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,at=Object.getOwnPropertySymbols(Ce);st<at.length;st++)Ae.indexOf(at[st])<0&&Object.prototype.propertyIsEnumerable.call(Ce,at[st])&&(tt[at[st]]=Ce[at[st]]);return tt};function Ke(Ce,Ae){if(Ce.title===void 0||Ce.title===null)return null;const tt=Object.keys(Ae).join("|");return typeof Ce.title=="object"?Ce.title:String(Ce.title).replace(new RegExp(`:(${tt})`,"g"),(at,st)=>Ae[st]||at)}function oe(Ce,Ae,tt,at){if(tt==null)return null;const{className:st,onClick:St}=Ae,wt=et(Ae,["className","onClick"]),Ft=Object.assign(Object.assign({},(0,We.Z)(wt,{data:!0,aria:!0})),{onClick:St});return at!==void 0?we.createElement("a",Object.assign({},Ft,{className:ce()(`${Ce}-link`,st),href:at}),tt):we.createElement("span",Object.assign({},Ft,{className:ce()(`${Ce}-link`,st)}),tt)}function y(Ce,Ae){return(at,st,St,wt,Ft)=>{if(Ae)return Ae(at,st,St,wt);const Tt=Ke(at,st);return oe(Ce,at,Tt,Ft)}}var a=function(Ce,Ae){var tt={};for(var at in Ce)Object.prototype.hasOwnProperty.call(Ce,at)&&Ae.indexOf(at)<0&&(tt[at]=Ce[at]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,at=Object.getOwnPropertySymbols(Ce);st<at.length;st++)Ae.indexOf(at[st])<0&&Object.prototype.propertyIsEnumerable.call(Ce,at[st])&&(tt[at[st]]=Ce[at[st]]);return tt};const x=Ce=>{const{prefixCls:Ae,separator:tt="/",children:at,menu:st,overlay:St,dropdownProps:wt,href:Ft}=Ce,Oe=(je=>{if(st||St){const ct=Object.assign({},wt);if(st){const Gt=st||{},{items:nt}=Gt,$t=a(Gt,["items"]);ct.menu=Object.assign(Object.assign({},$t),{items:nt==null?void 0:nt.map((ye,Et)=>{var{key:Ht,title:cn,label:Xt,path:Te}=ye,$e=a(ye,["key","title","label","path"]);let Fe=Xt!=null?Xt:cn;return Te&&(Fe=we.createElement("a",{href:`${Ft}${Te}`},Fe)),Object.assign(Object.assign({},$e),{key:Ht!=null?Ht:Et,label:Fe})})})}else St&&(ct.overlay=St);return we.createElement(Ve.Z,Object.assign({placement:"bottom"},ct),we.createElement("span",{className:`${Ae}-overlay-link`},je,we.createElement(Je.Z,null)))}return je})(at);return Oe!=null?we.createElement(we.Fragment,null,we.createElement("li",null,Oe),tt&&we.createElement(Re,null,tt)):null},b=Ce=>{const{prefixCls:Ae,children:tt,href:at}=Ce,st=a(Ce,["prefixCls","children","href"]),{getPrefixCls:St}=we.useContext(ae.E_),wt=St("breadcrumb",Ae);return we.createElement(x,Object.assign({},st,{prefixCls:wt}),oe(wt,st,tt,at))};b.__ANT_BREADCRUMB_ITEM=!0;var E=b,z=ne(17313),ee=ne(83116),te=ne(37613);const ge=Ce=>{const{componentCls:Ae,iconCls:tt}=Ce;return{[Ae]:Object.assign(Object.assign({},(0,z.Wf)(Ce)),{color:Ce.itemColor,fontSize:Ce.fontSize,[tt]:{fontSize:Ce.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Ce.linkColor,transition:`color ${Ce.motionDurationMid}`,padding:`0 ${Ce.paddingXXS}px`,borderRadius:Ce.borderRadiusSM,height:Ce.lineHeight*Ce.fontSize,display:"inline-block",marginInline:-Ce.marginXXS,"&:hover":{color:Ce.linkHoverColor,backgroundColor:Ce.colorBgTextHover}},(0,z.Qy)(Ce)),"li:last-child":{color:Ce.lastItemColor},[`${Ae}-separator`]:{marginInline:Ce.separatorMargin,color:Ce.separatorColor},[`${Ae}-link`]:{[`
|
|
> ${tt} + span,
|
|
> ${tt} + a
|
|
`]:{marginInlineStart:Ce.marginXXS}},[`${Ae}-overlay-link`]:{borderRadius:Ce.borderRadiusSM,height:Ce.lineHeight*Ce.fontSize,display:"inline-block",padding:`0 ${Ce.paddingXXS}px`,marginInline:-Ce.marginXXS,[`> ${tt}`]:{marginInlineStart:Ce.marginXXS,fontSize:Ce.fontSizeIcon},"&:hover":{color:Ce.linkHoverColor,backgroundColor:Ce.colorBgTextHover,a:{color:Ce.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Ce.componentCls}-rtl`]:{direction:"rtl"}})}};var de=(0,ee.Z)("Breadcrumb",Ce=>{const Ae=(0,te.TS)(Ce,{});return[ge(Ae)]},Ce=>({itemColor:Ce.colorTextDescription,lastItemColor:Ce.colorText,iconFontSize:Ce.fontSize,linkColor:Ce.colorTextDescription,linkHoverColor:Ce.colorText,separatorColor:Ce.colorTextDescription,separatorMargin:Ce.marginXS})),se=function(Ce,Ae){var tt={};for(var at in Ce)Object.prototype.hasOwnProperty.call(Ce,at)&&Ae.indexOf(at)<0&&(tt[at]=Ce[at]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,at=Object.getOwnPropertySymbols(Ce);st<at.length;st++)Ae.indexOf(at[st])<0&&Object.prototype.propertyIsEnumerable.call(Ce,at[st])&&(tt[at[st]]=Ce[at[st]]);return tt};function be(Ce){const{breadcrumbName:Ae,children:tt}=Ce,at=se(Ce,["breadcrumbName","children"]),st=Object.assign({title:Ae},at);return tt&&(st.menu={items:tt.map(St=>{var{breadcrumbName:wt}=St,Ft=se(St,["breadcrumbName"]);return Object.assign(Object.assign({},Ft),{title:wt})})}),st}function Se(Ce,Ae){return(0,we.useMemo)(()=>Ce||(Ae?Ae.map(be):null),[Ce,Ae])}var Ee=function(Ce,Ae){var tt={};for(var at in Ce)Object.prototype.hasOwnProperty.call(Ce,at)&&Ae.indexOf(at)<0&&(tt[at]=Ce[at]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,at=Object.getOwnPropertySymbols(Ce);st<at.length;st++)Ae.indexOf(at[st])<0&&Object.prototype.propertyIsEnumerable.call(Ce,at[st])&&(tt[at[st]]=Ce[at[st]]);return tt};const he=(Ce,Ae)=>{if(Ae===void 0)return Ae;let tt=(Ae||"").replace(/^\//,"");return Object.keys(Ce).forEach(at=>{tt=tt.replace(`:${at}`,Ce[at])}),tt},ft=Ce=>{const{prefixCls:Ae,separator:tt="/",style:at,className:st,rootClassName:St,routes:wt,items:Ft,children:Tt,itemRender:Oe,params:je={}}=Ce,ct=Ee(Ce,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Gt,direction:nt,breadcrumb:$t}=we.useContext(ae.E_);let ye;const Et=Gt("breadcrumb",Ae),[Ht,cn]=de(Et),Xt=Se(Ft,wt),Te=y(Et,Oe);if(Xt&&Xt.length>0){const me=[],Ue=Ft||wt;ye=Xt.map((vt,pe)=>{const{path:ue,key:Ze,type:Ne,menu:Pe,overlay:ke,onClick:Lt,className:mt,separator:xt,dropdownProps:lt}=vt,yt=he(je,ue);yt!==void 0&&me.push(yt);const ot=Ze!=null?Ze:pe;if(Ne==="separator")return we.createElement(Re,{key:ot},xt);const Zt={},Rt=pe===Xt.length-1;Pe?Zt.menu=Pe:ke&&(Zt.overlay=ke);let{href:Nt}=vt;return me.length&&yt!==void 0&&(Nt=`#/${me.join("/")}`),we.createElement(x,Object.assign({key:ot},Zt,(0,We.Z)(vt,{data:!0,aria:!0}),{className:mt,dropdownProps:lt,href:Nt,separator:Rt?"":tt,onClick:Lt,prefixCls:Et}),Te(vt,je,Ue,me,Nt))})}else if(Tt){const me=(0,De.Z)(Tt).length;ye=(0,De.Z)(Tt).map((Ue,vt)=>{if(!Ue)return Ue;const pe=vt===me-1;return(0,Be.Tm)(Ue,{separator:pe?"":tt,key:vt})})}const $e=ce()(Et,$t==null?void 0:$t.className,{[`${Et}-rtl`]:nt==="rtl"},st,St,cn),Fe=Object.assign(Object.assign({},$t==null?void 0:$t.style),at);return Ht(we.createElement("nav",Object.assign({className:$e,style:Fe},ct),we.createElement("ol",null,ye)))};ft.Item=E,ft.Separator=Re;var it=ft,_t=it},24905:function(qe,gt,ne){"use strict";ne.d(gt,{default:function(){return de}});var ie=ne(92310),ce=ne.n(ie),De=ne(5630),We=ne(59301),we=ne(36355),Be=ne(1684),ae=ne(32441),Ve=We.createContext(null),He=ne(98447),Re=ne(14088),et=ne(4572),Ke=function(se,be){var Se={};for(var Ee in se)Object.prototype.hasOwnProperty.call(se,Ee)&&be.indexOf(Ee)<0&&(Se[Ee]=se[Ee]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,Ee=Object.getOwnPropertySymbols(se);he<Ee.length;he++)be.indexOf(Ee[he])<0&&Object.prototype.propertyIsEnumerable.call(se,Ee[he])&&(Se[Ee[he]]=se[Ee[he]]);return Se};const oe=(se,be)=>{var Se;const{prefixCls:Ee,className:he,rootClassName:ft,children:it,indeterminate:_t=!1,style:Ce,onMouseEnter:Ae,onMouseLeave:tt,skipGroup:at=!1,disabled:st}=se,St=Ke(se,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:wt,direction:Ft,checkbox:Tt}=We.useContext(we.E_),Oe=We.useContext(Ve),{isFormItemInput:je}=We.useContext(ae.aM),ct=We.useContext(Be.Z),Gt=(Se=(Oe==null?void 0:Oe.disabled)||st)!==null&&Se!==void 0?Se:ct,nt=We.useRef(St.value);We.useEffect(()=>{Oe==null||Oe.registerValue(St.value)},[]),We.useEffect(()=>{if(!at)return St.value!==nt.current&&(Oe==null||Oe.cancelValue(nt.current),Oe==null||Oe.registerValue(St.value),nt.current=St.value),()=>Oe==null?void 0:Oe.cancelValue(St.value)},[St.value]);const $t=wt("checkbox",Ee),[ye,Et]=(0,He.ZP)($t),Ht=Object.assign({},St);Oe&&!at&&(Ht.onChange=function(){St.onChange&&St.onChange.apply(St,arguments),Oe.toggleOption&&Oe.toggleOption({label:it,value:St.value})},Ht.name=Oe.name,Ht.checked=Oe.value.includes(St.value));const cn=ce()(`${$t}-wrapper`,{[`${$t}-rtl`]:Ft==="rtl",[`${$t}-wrapper-checked`]:Ht.checked,[`${$t}-wrapper-disabled`]:Gt,[`${$t}-wrapper-in-form-item`]:je},Tt==null?void 0:Tt.className,he,ft,Et),Xt=ce()({[`${$t}-indeterminate`]:_t},et.A,Et),Te=_t?"mixed":void 0;return ye(We.createElement(Re.Z,{component:"Checkbox",disabled:Gt},We.createElement("label",{className:cn,style:Object.assign(Object.assign({},Tt==null?void 0:Tt.style),Ce),onMouseEnter:Ae,onMouseLeave:tt},We.createElement(De.Z,Object.assign({"aria-checked":Te},Ht,{prefixCls:$t,className:Xt,disabled:Gt,ref:be})),it!==void 0&&We.createElement("span",null,it))))};var a=We.forwardRef(oe),x=ne(94480),b=ne(2738),E=function(se,be){var Se={};for(var Ee in se)Object.prototype.hasOwnProperty.call(se,Ee)&&be.indexOf(Ee)<0&&(Se[Ee]=se[Ee]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,Ee=Object.getOwnPropertySymbols(se);he<Ee.length;he++)be.indexOf(Ee[he])<0&&Object.prototype.propertyIsEnumerable.call(se,Ee[he])&&(Se[Ee[he]]=se[Ee[he]]);return Se};const z=(se,be)=>{const{defaultValue:Se,children:Ee,options:he=[],prefixCls:ft,className:it,rootClassName:_t,style:Ce,onChange:Ae}=se,tt=E(se,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:at,direction:st}=We.useContext(we.E_),[St,wt]=We.useState(tt.value||Se||[]),[Ft,Tt]=We.useState([]);We.useEffect(()=>{"value"in tt&&wt(tt.value||[])},[tt.value]);const Oe=We.useMemo(()=>he.map($e=>typeof $e=="string"||typeof $e=="number"?{label:$e,value:$e}:$e),[he]),je=$e=>{Tt(Fe=>Fe.filter(me=>me!==$e))},ct=$e=>{Tt(Fe=>[].concat((0,x.Z)(Fe),[$e]))},Gt=$e=>{const Fe=St.indexOf($e.value),me=(0,x.Z)(St);Fe===-1?me.push($e.value):me.splice(Fe,1),"value"in tt||wt(me),Ae==null||Ae(me.filter(Ue=>Ft.includes(Ue)).sort((Ue,vt)=>{const pe=Oe.findIndex(Ze=>Ze.value===Ue),ue=Oe.findIndex(Ze=>Ze.value===vt);return pe-ue}))},nt=at("checkbox",ft),$t=`${nt}-group`,[ye,Et]=(0,He.ZP)(nt),Ht=(0,b.Z)(tt,["value","disabled"]),cn=he.length?Oe.map($e=>We.createElement(a,{prefixCls:nt,key:$e.value.toString(),disabled:"disabled"in $e?$e.disabled:tt.disabled,value:$e.value,checked:St.includes($e.value),onChange:$e.onChange,className:`${$t}-item`,style:$e.style,title:$e.title},$e.label)):Ee,Xt={toggleOption:Gt,value:St,disabled:tt.disabled,name:tt.name,registerValue:ct,cancelValue:je},Te=ce()($t,{[`${$t}-rtl`]:st==="rtl"},it,_t,Et);return ye(We.createElement("div",Object.assign({className:Te,style:Ce},Ht,{ref:be}),We.createElement(Ve.Provider,{value:Xt},cn)))},ee=We.forwardRef(z);var te=We.memo(ee);const ge=a;ge.Group=te,ge.__ANT_CHECKBOX=!0;var de=ge},98447:function(qe,gt,ne){"use strict";ne.d(gt,{C2:function(){return we}});var ie=ne(17313),ce=ne(37613),De=ne(83116);const We=Be=>{const{checkboxCls:ae}=Be,Je=`${ae}-wrapper`;return[{[`${ae}-group`]:Object.assign(Object.assign({},(0,ie.Wf)(Be)),{display:"inline-flex",flexWrap:"wrap",columnGap:Be.marginXS,[`> ${Be.antCls}-row`]:{flex:1}}),[Je]:Object.assign(Object.assign({},(0,ie.Wf)(Be)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Je}`]:{marginInlineStart:0},[`&${Je}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ae]:Object.assign(Object.assign({},(0,ie.Wf)(Be)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Be.borderRadiusSM,alignSelf:"center",[`${ae}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ae}-inner`]:Object.assign({},(0,ie.oN)(Be))},[`${ae}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Be.checkboxSize,height:Be.checkboxSize,direction:"ltr",backgroundColor:Be.colorBgContainer,border:`${Be.lineWidth}px ${Be.lineType} ${Be.colorBorder}`,borderRadius:Be.borderRadiusSM,borderCollapse:"separate",transition:`all ${Be.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Be.checkboxSize/14*5,height:Be.checkboxSize/14*8,border:`${Be.lineWidthBold}px solid ${Be.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Be.motionDurationFast} ${Be.motionEaseInBack}, opacity ${Be.motionDurationFast}`}},"& + span":{paddingInlineStart:Be.paddingXS,paddingInlineEnd:Be.paddingXS}})},{[`
|
|
${Je}:not(${Je}-disabled),
|
|
${ae}:not(${ae}-disabled)
|
|
`]:{[`&:hover ${ae}-inner`]:{borderColor:Be.colorPrimary}},[`${Je}:not(${Je}-disabled)`]:{[`&:hover ${ae}-checked:not(${ae}-disabled) ${ae}-inner`]:{backgroundColor:Be.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ae}-checked:not(${ae}-disabled):after`]:{borderColor:Be.colorPrimaryHover}}},{[`${ae}-checked`]:{[`${ae}-inner`]:{backgroundColor:Be.colorPrimary,borderColor:Be.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Be.motionDurationMid} ${Be.motionEaseOutBack} ${Be.motionDurationFast}`}}},[`
|
|
${Je}-checked:not(${Je}-disabled),
|
|
${ae}-checked:not(${ae}-disabled)
|
|
`]:{[`&:hover ${ae}-inner`]:{backgroundColor:Be.colorPrimaryHover,borderColor:"transparent"}}},{[ae]:{"&-indeterminate":{[`${ae}-inner`]:{backgroundColor:Be.colorBgContainer,borderColor:Be.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Be.fontSizeLG/2,height:Be.fontSizeLG/2,backgroundColor:Be.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Je}-disabled`]:{cursor:"not-allowed"},[`${ae}-disabled`]:{[`&, ${ae}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ae}-inner`]:{background:Be.colorBgContainerDisabled,borderColor:Be.colorBorder,"&:after":{borderColor:Be.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Be.colorTextDisabled},[`&${ae}-indeterminate ${ae}-inner::after`]:{background:Be.colorTextDisabled}}}]};function we(Be,ae){const Je=(0,ce.TS)(ae,{checkboxCls:`.${Be}`,checkboxSize:ae.controlInteractiveSize});return[We(Je)]}gt.ZP=(0,De.Z)("Checkbox",(Be,ae)=>{let{prefixCls:Je}=ae;return[we(Je,Be)]})},91857:function(qe,gt,ne){"use strict";var ie=ne(59301),ce=ne(38819),De=ne(92310),We=ne.n(De),we=ne(31561),Be=ne(70425),ae=ne(18929),Je=ne(2738),Ve=ne(79676),He=ne(53487),Re=ne(92343),et=ne(36355),Ke=ne(20834),oe=ne(40875),y=ne(88088),a=ne(47211);const x=null,b=te=>{const{menu:ge,arrow:de,prefixCls:se,children:be,trigger:Se,disabled:Ee,dropdownRender:he,getPopupContainer:ft,overlayClassName:it,rootClassName:_t,open:Ce,onOpenChange:Ae,visible:tt,onVisibleChange:at,mouseEnterDelay:st=.15,mouseLeaveDelay:St=.1,autoAdjustOverflow:wt=!0,placement:Ft="",overlay:Tt,transitionName:Oe}=te,{getPopupContainer:je,getPrefixCls:ct,direction:Gt}=ie.useContext(et.E_),nt=ie.useMemo(()=>{const Pe=ct();return Oe!==void 0?Oe:Ft.includes("top")?`${Pe}-slide-down`:`${Pe}-slide-up`},[ct,Ft,Oe]),$t=ie.useMemo(()=>Ft?Ft.includes("Center")?Ft.slice(0,Ft.indexOf("Center")):Ft:Gt==="rtl"?"bottomRight":"bottomLeft",[Ft,Gt]),ye=ct("dropdown",se),[Et,Ht]=(0,a.Z)(ye),[,cn]=(0,y.Z)(),Xt=ie.Children.only(be),Te=(0,Re.Tm)(Xt,{className:We()(`${ye}-trigger`,{[`${ye}-rtl`]:Gt==="rtl"},Xt.props.className),disabled:Ee}),$e=Ee?[]:Se;let Fe;$e&&$e.includes("contextMenu")&&(Fe=!0);const[me,Ue]=(0,ae.Z)(!1,{value:Ce!=null?Ce:tt}),vt=(0,Be.useEvent)(Pe=>{Ae==null||Ae(Pe),at==null||at(Pe),Ue(Pe)}),pe=We()(it,_t,Ht,{[`${ye}-rtl`]:Gt==="rtl"}),ue=(0,Ve.Z)({arrowPointAtCenter:typeof de=="object"&&de.pointAtCenter,autoAdjustOverflow:wt,offset:cn.marginXXS,arrowWidth:de?cn.sizePopupArrow:0,borderRadius:cn.borderRadius}),Ze=ie.useCallback(()=>{Ue(!1)},[]),Ne=()=>{let Pe;return ge!=null&&ge.items?Pe=ie.createElement(Ke.default,Object.assign({},ge)):typeof Tt=="function"?Pe=Tt():Pe=Tt,he&&(Pe=he(Pe)),Pe=ie.Children.only(typeof Pe=="string"?ie.createElement("span",null,Pe):Pe),ie.createElement(oe.J,{prefixCls:`${ye}-menu`,expandIcon:ie.createElement("span",{className:`${ye}-menu-submenu-arrow`},ie.createElement(ce.Z,{className:`${ye}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Ze,validator:ke=>{let{mode:Lt}=ke}},Pe)};return Et(ie.createElement(we.Z,Object.assign({alignPoint:Fe},(0,Je.Z)(te,["rootClassName"]),{mouseEnterDelay:st,mouseLeaveDelay:St,visible:me,builtinPlacements:ue,arrow:!!de,overlayClassName:pe,prefixCls:ye,getPopupContainer:ft||je,transitionName:nt,trigger:$e,overlay:Ne,placement:$t,onVisibleChange:vt}),Te))};function E(te){return Object.assign(Object.assign({},te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,He.Z)(b,"dropdown",te=>te,E),ee=te=>ie.createElement(z,Object.assign({},te),ie.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,gt.Z=b},38854:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return y}});var ie=ne(91857),ce=ne(92310),De=ne.n(ce),We=ne(59301),we=ne(18785),Be=ne(3113),ae=ne(36355),Je=ne(81327),Ve=ne(33234),He=ne(47211),Re=function(a,x){var b={};for(var E in a)Object.prototype.hasOwnProperty.call(a,E)&&x.indexOf(E)<0&&(b[E]=a[E]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,E=Object.getOwnPropertySymbols(a);z<E.length;z++)x.indexOf(E[z])<0&&Object.prototype.propertyIsEnumerable.call(a,E[z])&&(b[E[z]]=a[E[z]]);return b};const et=a=>{const{getPopupContainer:x,getPrefixCls:b,direction:E}=We.useContext(ae.E_),{prefixCls:z,type:ee="default",danger:te,disabled:ge,loading:de,onClick:se,htmlType:be,children:Se,className:Ee,menu:he,arrow:ft,autoFocus:it,overlay:_t,trigger:Ce,align:Ae,open:tt,onOpenChange:at,placement:st,getPopupContainer:St,href:wt,icon:Ft=We.createElement(we.Z,null),title:Tt,buttonsRender:Oe=Ne=>Ne,mouseEnterDelay:je,mouseLeaveDelay:ct,overlayClassName:Gt,overlayStyle:nt,destroyPopupOnHide:$t,dropdownRender:ye}=a,Et=Re(a,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),Ht=b("dropdown",z),cn=`${Ht}-button`,[Xt,Te]=(0,He.Z)(Ht),$e={menu:he,arrow:ft,autoFocus:it,align:Ae,disabled:ge,trigger:ge?[]:Ce,onOpenChange:at,getPopupContainer:St||x,mouseEnterDelay:je,mouseLeaveDelay:ct,overlayClassName:Gt,overlayStyle:nt,destroyPopupOnHide:$t,dropdownRender:ye},{compactSize:Fe,compactItemClassnames:me}=(0,Ve.ri)(Ht,E),Ue=De()(cn,me,Ee,Te);"overlay"in a&&($e.overlay=_t),"open"in a&&($e.open=tt),"placement"in a?$e.placement=st:$e.placement=E==="rtl"?"bottomLeft":"bottomRight";const vt=We.createElement(Be.ZP,{type:ee,danger:te,disabled:ge,loading:de,onClick:se,htmlType:be,href:wt,title:Tt},Se),pe=We.createElement(Be.ZP,{type:ee,danger:te,icon:Ft}),[ue,Ze]=Oe([vt,pe]);return Xt(We.createElement(Je.Z.Compact,Object.assign({className:Ue,size:Fe,block:!0},Et),ue,We.createElement(ie.Z,Object.assign({},$e),Ze)))};et.__ANT_BUTTON=!0;var Ke=et;const oe=ie.Z;oe.Button=Ke;var y=oe},47211:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Re}});var ie=ne(17313),ce=ne(13826),De=ne(92899),We=ne(29878),we=ne(19447),Be=ne(83116),ae=ne(37613),Ve=et=>{const{componentCls:Ke,menuCls:oe,colorError:y,colorTextLightSolid:a}=et,x=`${oe}-item`;return{[`${Ke}, ${Ke}-menu-submenu`]:{[`${oe} ${x}`]:{[`&${x}-danger:not(${x}-disabled)`]:{color:y,"&:hover":{color:a,backgroundColor:y}}}}}};const He=et=>{const{componentCls:Ke,menuCls:oe,zIndexPopup:y,dropdownArrowDistance:a,sizePopupArrow:x,antCls:b,iconCls:E,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:ge,colorTextDisabled:de,fontSizeIcon:se,controlPaddingHorizontal:be,colorBgElevated:Se}=et;return[{[Ke]:Object.assign(Object.assign({},(0,ie.Wf)(et)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:y,display:"block","&::before":{position:"absolute",insetBlock:-a+x/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${E}-down, & > ${b}-btn-icon > ${E}-down`]:{fontSize:se}},[`${Ke}-wrap`]:{position:"relative",[`${b}-btn > ${E}-down`]:{fontSize:se},[`${E}-down::before`]:{transition:`transform ${z}`}},[`${Ke}-wrap-open`]:{[`${E}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${Ke}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Ke}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Ke}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Ke}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Ke}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Ke}-placement-bottomRight`]:{animationName:ce.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Ke}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Ke}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Ke}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Ke}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Ke}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Ke}-placement-topRight`]:{animationName:ce.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Ke}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Ke}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Ke}-placement-bottomRight`]:{animationName:ce.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Ke}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Ke}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Ke}-placement-topRight`]:{animationName:ce.ly}})},(0,we.ZP)(et,{colorBg:Se,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Ke} ${oe}`]:{position:"relative",margin:0},[`${oe}-submenu-popup`]:{position:"absolute",zIndex:y,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ke}, ${Ke}-menu-submenu`]:{[oe]:Object.assign(Object.assign({padding:ge,listStyleType:"none",backgroundColor:Se,backgroundClip:"padding-box",borderRadius:et.borderRadiusLG,outline:"none",boxShadow:et.boxShadowSecondary},(0,ie.Qy)(et)),{[`${oe}-item-group-title`]:{padding:`${ee}px ${be}px`,color:et.colorTextDescription,transition:`all ${z}`},[`${oe}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${oe}-item-icon`]:{minWidth:te,marginInlineEnd:et.marginXS,fontSize:et.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 ${be}px`,color:et.colorText,fontWeight:"normal",fontSize:te,lineHeight:et.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:et.borderRadiusSM,"&:hover, &-active":{backgroundColor:et.controlItemBgHover}},(0,ie.Qy)(et)),{"&-selected":{color:et.colorPrimary,backgroundColor:et.controlItemBgActive,"&:hover, &-active":{backgroundColor:et.controlItemBgActiveHover}},"&-disabled":{color:de,cursor:"not-allowed","&:hover":{color:de,backgroundColor:Se,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${et.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:et.colorSplit},[`${Ke}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:et.paddingXS,[`${Ke}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:et.colorTextDescription,fontSize:se,fontStyle:"normal"}}}),[`${oe}-item-group-list`]:{margin:`0 ${et.marginXS}px`,padding:0,listStyle:"none"},[`${oe}-submenu-title`]:{paddingInlineEnd:be+et.fontSizeSM},[`${oe}-submenu-vertical`]:{position:"relative"},[`${oe}-submenu${oe}-submenu-disabled ${Ke}-menu-submenu-title`]:{[`&, ${Ke}-menu-submenu-arrow-icon`]:{color:de,backgroundColor:Se,cursor:"not-allowed"}},[`${oe}-submenu-selected ${Ke}-menu-submenu-title`]:{color:et.colorPrimary}})}},[(0,ce.oN)(et,"slide-up"),(0,ce.oN)(et,"slide-down"),(0,De.Fm)(et,"move-up"),(0,De.Fm)(et,"move-down"),(0,We._y)(et,"zoom-big")]]};var Re=(0,Be.Z)("Dropdown",(et,Ke)=>{let{rootPrefixCls:oe}=Ke;const{marginXXS:y,sizePopupArrow:a,controlHeight:x,fontSize:b,lineHeight:E,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=et,ge=(x-b*E)/2,{dropdownArrowOffset:de}=(0,we.fS)({contentRadius:te}),se=(0,ae.TS)(et,{menuCls:`${ee}-menu`,rootPrefixCls:oe,dropdownArrowDistance:a/2+y,dropdownArrowOffset:de,dropdownPaddingVertical:ge,dropdownEdgeChildPadding:z});return[He(se),Ve(se)]},et=>({zIndexPopup:et.zIndexPopupBase+50}))},8628:function(qe,gt,ne){"use strict";var ie=ne(59301),ce=ne(34280),De=ne(56762),We=ne(69507);function we(){let Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ae=(0,ie.useRef)({}),Je=(0,De.Z)(),Ve=(0,We.ZP)();return(0,ce.Z)(()=>{const He=Ve.subscribe(Re=>{ae.current=Re,Be&&Je()});return()=>Ve.unsubscribe(He)},[]),ae.current}gt.Z=we},45818:function(qe,gt,ne){"use strict";ne.d(gt,{D:function(){return z},Z:function(){return ge}});var ie=ne(54476),ce=ne(59301),De={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"},We=De,we=ne(7657),Be=function(se,be){return ce.createElement(we.Z,(0,ie.Z)({},se,{ref:be,icon:We}))},ae=ce.forwardRef(Be),Je=ae,Ve=ne(33853),He=ne(38819),Re=ne(92310),et=ne.n(Re),Ke=ne(2738),y=de=>!isNaN(parseFloat(de))&&isFinite(de),a=ne(36355),x=ne(84966),b=function(de,se){var be={};for(var Se in de)Object.prototype.hasOwnProperty.call(de,Se)&&se.indexOf(Se)<0&&(be[Se]=de[Se]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,Se=Object.getOwnPropertySymbols(de);Ee<Se.length;Ee++)se.indexOf(Se[Ee])<0&&Object.prototype.propertyIsEnumerable.call(de,Se[Ee])&&(be[Se[Ee]]=de[Se[Ee]]);return be};const E={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=ce.createContext({}),ee=(()=>{let de=0;return function(){let se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return de+=1,`${se}${de}`}})();var ge=ce.forwardRef((de,se)=>{const{prefixCls:be,className:Se,trigger:Ee,children:he,defaultCollapsed:ft=!1,theme:it="dark",style:_t={},collapsible:Ce=!1,reverseArrow:Ae=!1,width:tt=200,collapsedWidth:at=80,zeroWidthTriggerStyle:st,breakpoint:St,onCollapse:wt,onBreakpoint:Ft}=de,Tt=b(de,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Oe}=(0,ce.useContext)(x.Gs),[je,ct]=(0,ce.useState)("collapsed"in de?de.collapsed:ft),[Gt,nt]=(0,ce.useState)(!1);(0,ce.useEffect)(()=>{"collapsed"in de&&ct(de.collapsed)},[de.collapsed]);const $t=(Te,$e)=>{"collapsed"in de||ct(Te),wt==null||wt(Te,$e)},ye=(0,ce.useRef)();ye.current=Te=>{nt(Te.matches),Ft==null||Ft(Te.matches),je!==Te.matches&&$t(Te.matches,"responsive")},(0,ce.useEffect)(()=>{function Te(Fe){return ye.current(Fe)}let $e;if(typeof window!="undefined"){const{matchMedia:Fe}=window;if(Fe&&St&&St in E){$e=Fe(`(max-width: ${E[St]})`);try{$e.addEventListener("change",Te)}catch(me){$e.addListener(Te)}Te($e)}}return()=>{try{$e==null||$e.removeEventListener("change",Te)}catch(Fe){$e==null||$e.removeListener(Te)}}},[St]),(0,ce.useEffect)(()=>{const Te=ee("ant-sider-");return Oe.addSider(Te),()=>Oe.removeSider(Te)},[]);const Et=()=>{$t(!je,"clickTrigger")},{getPrefixCls:Ht}=(0,ce.useContext)(a.E_),cn=()=>{const Te=Ht("layout-sider",be),$e=(0,Ke.Z)(Tt,["collapsed"]),Fe=je?at:tt,me=y(Fe)?`${Fe}px`:String(Fe),Ue=parseFloat(String(at||0))===0?ce.createElement("span",{onClick:Et,className:et()(`${Te}-zero-width-trigger`,`${Te}-zero-width-trigger-${Ae?"right":"left"}`),style:st},Ee||ce.createElement(Je,null)):null,ue={expanded:Ae?ce.createElement(He.Z,null):ce.createElement(Ve.Z,null),collapsed:Ae?ce.createElement(Ve.Z,null):ce.createElement(He.Z,null)}[je?"collapsed":"expanded"],Ze=Ee!==null?Ue||ce.createElement("div",{className:`${Te}-trigger`,onClick:Et,style:{width:me}},Ee||ue):null,Ne=Object.assign(Object.assign({},_t),{flex:`0 0 ${me}`,maxWidth:me,minWidth:me,width:me}),Pe=et()(Te,`${Te}-${it}`,{[`${Te}-collapsed`]:!!je,[`${Te}-has-trigger`]:Ce&&Ee!==null&&!Ue,[`${Te}-below`]:!!Gt,[`${Te}-zero-width`]:parseFloat(me)===0},Se);return ce.createElement("aside",Object.assign({className:Pe},$e,{style:Ne,ref:se}),ce.createElement("div",{className:`${Te}-children`},he),Ce||Gt&&Ue?Ze:null)},Xt=ce.useMemo(()=>({siderCollapsed:je}),[je]);return ce.createElement(z.Provider,{value:Xt},cn())})},84966:function(qe,gt,ne){"use strict";ne.d(gt,{VY:function(){return z},$_:function(){return E},h4:function(){return b},Gs:function(){return Ke},ZP:function(){return ee}});var ie=ne(94480),ce=ne(92310),De=ne.n(ce),We=ne(2738),we=ne(59301),Be=ne(36355),ae=ne(83116),Ve=te=>{const{componentCls:ge,bodyBg:de,lightSiderBg:se,lightTriggerBg:be,lightTriggerColor:Se}=te;return{[`${ge}-sider-light`]:{background:se,[`${ge}-sider-trigger`]:{color:Se,background:be},[`${ge}-sider-zero-width-trigger`]:{color:Se,background:be,border:`1px solid ${de}`,borderInlineStart:0}}}};const He=te=>{const{antCls:ge,componentCls:de,colorText:se,triggerColor:be,footerBg:Se,triggerBg:Ee,headerHeight:he,headerPadding:ft,headerColor:it,footerPadding:_t,triggerHeight:Ce,zeroTriggerHeight:Ae,zeroTriggerWidth:tt,motionDurationMid:at,motionDurationSlow:st,fontSize:St,borderRadius:wt,bodyBg:Ft,headerBg:Tt,siderBg:Oe}=te;return{[de]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ft,"&, *":{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:Oe,transition:`all ${at}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ge}-menu${ge}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ce},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ce,color:be,lineHeight:`${Ce}px`,textAlign:"center",background:Ee,cursor:"pointer",transition:`all ${at}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:he,insetInlineEnd:-tt,zIndex:1,width:tt,height:Ae,color:be,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Oe,borderStartStartRadius:0,borderStartEndRadius:wt,borderEndEndRadius:wt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${st} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${st}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-tt,borderStartStartRadius:wt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:wt}}}}},Ve(te)),{"&-rtl":{direction:"rtl"}}),[`${de}-header`]:{height:he,padding:ft,color:it,lineHeight:`${he}px`,background:Tt,[`${ge}-menu`]:{lineHeight:"inherit"}},[`${de}-footer`]:{padding:_t,color:se,fontSize:St,background:Se},[`${de}-content`]:{flex:"auto",minHeight:0}}};var Re=(0,ae.Z)("Layout",te=>[He(te)],te=>{const{colorBgLayout:ge,controlHeight:de,controlHeightLG:se,colorText:be,controlHeightSM:Se,marginXXS:Ee,colorTextLightSolid:he,colorBgContainer:ft}=te,it=se*1.25;return{colorBgHeader:"#001529",colorBgBody:ge,colorBgTrigger:"#002140",bodyBg:ge,headerBg:"#001529",headerHeight:de*2,headerPadding:`0 ${it}px`,headerColor:be,footerPadding:`${Se}px ${it}px`,footerBg:ge,siderBg:"#001529",triggerHeight:se+Ee*2,triggerBg:"#002140",triggerColor:he,zeroTriggerWidth:se,zeroTriggerHeight:se,lightSiderBg:ft,lightTriggerBg:ft,lightTriggerColor:be}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),et=function(te,ge){var de={};for(var se in te)Object.prototype.hasOwnProperty.call(te,se)&&ge.indexOf(se)<0&&(de[se]=te[se]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,se=Object.getOwnPropertySymbols(te);be<se.length;be++)ge.indexOf(se[be])<0&&Object.prototype.propertyIsEnumerable.call(te,se[be])&&(de[se[be]]=te[se[be]]);return de};const Ke=we.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function oe(te){let{suffixCls:ge,tagName:de,displayName:se}=te;return be=>we.forwardRef((Ee,he)=>we.createElement(be,Object.assign({ref:he,suffixCls:ge,tagName:de},Ee)))}const y=we.forwardRef((te,ge)=>{const{prefixCls:de,suffixCls:se,className:be,tagName:Se}=te,Ee=et(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:he}=we.useContext(Be.E_),ft=he("layout",de),[it,_t]=Re(ft),Ce=se?`${ft}-${se}`:ft;return it(we.createElement(Se,Object.assign({className:De()(de||Ce,be,_t),ref:ge},Ee)))}),a=we.forwardRef((te,ge)=>{const{direction:de}=we.useContext(Be.E_),[se,be]=we.useState([]),{prefixCls:Se,className:Ee,rootClassName:he,children:ft,hasSider:it,tagName:_t,style:Ce}=te,Ae=et(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),tt=(0,We.Z)(Ae,["suffixCls"]),{getPrefixCls:at,layout:st}=we.useContext(Be.E_),St=at("layout",Se),[wt,Ft]=Re(St),Tt=De()(St,{[`${St}-has-sider`]:typeof it=="boolean"?it:se.length>0,[`${St}-rtl`]:de==="rtl"},st==null?void 0:st.className,Ee,he,Ft),Oe=we.useMemo(()=>({siderHook:{addSider:je=>{be(ct=>[].concat((0,ie.Z)(ct),[je]))},removeSider:je=>{be(ct=>ct.filter(Gt=>Gt!==je))}}}),[]);return wt(we.createElement(Ke.Provider,{value:Oe},we.createElement(_t,Object.assign({ref:ge,className:Tt,style:Object.assign(Object.assign({},st==null?void 0:st.style),Ce)},tt),ft)))}),x=oe({tagName:"div",displayName:"Layout"})(a),b=oe({suffixCls:"header",tagName:"header",displayName:"Header"})(y),E=oe({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(y),z=oe({suffixCls:"content",tagName:"main",displayName:"Content"})(y);var ee=x},40875:function(qe,gt,ne){"use strict";ne.d(gt,{J:function(){return Be}});var ie=ne(59301),ce=ne(33234),De=ne(70425),We=function(ae,Je){var Ve={};for(var He in ae)Object.prototype.hasOwnProperty.call(ae,He)&&Je.indexOf(He)<0&&(Ve[He]=ae[He]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,He=Object.getOwnPropertySymbols(ae);Re<He.length;Re++)Je.indexOf(He[Re])<0&&Object.prototype.propertyIsEnumerable.call(ae,He[Re])&&(Ve[He[Re]]=ae[He[Re]]);return Ve};const we=ie.createContext(null),Be=ie.forwardRef((ae,Je)=>{const{children:Ve}=ae,He=We(ae,["children"]),Re=ie.useContext(we),et=ie.useMemo(()=>Object.assign(Object.assign({},Re),He),[Re,He.prefixCls,He.mode,He.selectable]);return ie.createElement(we.Provider,{value:et},ie.createElement(ce.BR,null,(0,De.supportNodeRef)(Ve)?ie.cloneElement(Ve,{ref:Je}):Ve))});gt.Z=we},20834:function(qe,gt,ne){"use strict";ne.d(gt,{default:function(){return Xt}});var ie=ne(15285),ce=ne(59301),De=ne(45818),We=ne(92310),we=ne.n(We),Be=ne(36355),ae=function(Te,$e){var Fe={};for(var me in Te)Object.prototype.hasOwnProperty.call(Te,me)&&$e.indexOf(me)<0&&(Fe[me]=Te[me]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,me=Object.getOwnPropertySymbols(Te);Ue<me.length;Ue++)$e.indexOf(me[Ue])<0&&Object.prototype.propertyIsEnumerable.call(Te,me[Ue])&&(Fe[me[Ue]]=Te[me[Ue]]);return Fe},Ve=Te=>{const{prefixCls:$e,className:Fe,dashed:me}=Te,Ue=ae(Te,["prefixCls","className","dashed"]),{getPrefixCls:vt}=ce.useContext(Be.E_),pe=vt("menu",$e),ue=we()({[`${pe}-item-divider-dashed`]:!!me},Fe);return ce.createElement(ie.iz,Object.assign({className:ue},Ue))},He=ne(11592),Re=ne(2738),et=ne(6848),Ke=ne(92343),y=(0,ce.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=Te=>{var $e;const{className:Fe,children:me,icon:Ue,title:vt,danger:pe}=Te,{prefixCls:ue,firstLevel:Ze,direction:Ne,disableMenuItemTitleTooltip:Pe,inlineCollapsed:ke}=ce.useContext(y),Lt=Zt=>{const Rt=ce.createElement("span",{className:`${ue}-title-content`},me);return(!Ue||(0,Ke.l$)(me)&&me.type==="span")&&me&&Zt&&Ze&&typeof me=="string"?ce.createElement("div",{className:`${ue}-inline-collapsed-noicon`},me.charAt(0)):Rt},{siderCollapsed:mt}=ce.useContext(De.D);let xt=vt;typeof vt=="undefined"?xt=Ze?me:"":vt===!1&&(xt="");const lt={title:xt};!mt&&!ke&&(lt.title=null,lt.open=!1);const yt=(0,He.Z)(me).length;let ot=ce.createElement(ie.ck,Object.assign({},(0,Re.Z)(Te,["title","icon","danger"]),{className:we()({[`${ue}-item-danger`]:pe,[`${ue}-item-only-child`]:(Ue?yt+1:yt)===1},Fe),title:typeof vt=="string"?vt:void 0}),(0,Ke.Tm)(Ue,{className:we()((0,Ke.l$)(Ue)?($e=Ue.props)===null||$e===void 0?void 0:$e.className:"",`${ue}-item-icon`)}),Lt(ke));return Pe||(ot=ce.createElement(et.Z,Object.assign({},lt,{placement:Ne==="rtl"?"left":"right",overlayClassName:`${ue}-inline-collapsed-tooltip`}),ot)),ot},E=Te=>{var $e;const{popupClassName:Fe,icon:me,title:Ue,theme:vt}=Te,pe=ce.useContext(y),{prefixCls:ue,inlineCollapsed:Ze,theme:Ne}=pe,Pe=(0,ie.Xl)();let ke;if(!me)ke=Ze&&!Pe.length&&Ue&&typeof Ue=="string"?ce.createElement("div",{className:`${ue}-inline-collapsed-noicon`},Ue.charAt(0)):ce.createElement("span",{className:`${ue}-title-content`},Ue);else{const mt=(0,Ke.l$)(Ue)&&Ue.type==="span";ke=ce.createElement(ce.Fragment,null,(0,Ke.Tm)(me,{className:we()((0,Ke.l$)(me)?($e=me.props)===null||$e===void 0?void 0:$e.className:"",`${ue}-item-icon`)}),mt?Ue:ce.createElement("span",{className:`${ue}-title-content`},Ue))}const Lt=ce.useMemo(()=>Object.assign(Object.assign({},pe),{firstLevel:!1}),[pe]);return ce.createElement(y.Provider,{value:Lt},ce.createElement(ie.Wd,Object.assign({},(0,Re.Z)(Te,["icon"]),{title:ke,popupClassName:we()(ue,Fe,`${ue}-${vt||Ne}`)})))},z=ne(18785),ee=ne(70425),te=ne(62892),ge=ne(40875),de=function(Te,$e){var Fe={};for(var me in Te)Object.prototype.hasOwnProperty.call(Te,me)&&$e.indexOf(me)<0&&(Fe[me]=Te[me]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,me=Object.getOwnPropertySymbols(Te);Ue<me.length;Ue++)$e.indexOf(me[Ue])<0&&Object.prototype.propertyIsEnumerable.call(Te,me[Ue])&&(Fe[me[Ue]]=Te[me[Ue]]);return Fe};function se(Te){return(Te||[]).map(($e,Fe)=>{if($e&&typeof $e=="object"){const me=$e,{label:Ue,children:vt,key:pe,type:ue}=me,Ze=de(me,["label","children","key","type"]),Ne=pe!=null?pe:`tmp-${Fe}`;return vt||ue==="group"?ue==="group"?ce.createElement(ie.BW,Object.assign({key:Ne},Ze,{title:Ue}),se(vt)):ce.createElement(E,Object.assign({key:Ne},Ze,{title:Ue}),se(vt)):ue==="divider"?ce.createElement(Ve,Object.assign({key:Ne},Ze)):ce.createElement(x,Object.assign({key:Ne},Ze),Ue)}return null}).filter($e=>$e)}function be(Te){return ce.useMemo(()=>Te&&se(Te),[Te])}var Se=ne(64993),Ee=ne(17313),he=ne(8378),ft=ne(13826),it=ne(29878),_t=ne(83116),Ce=ne(37613),tt=Te=>{const{componentCls:$e,motionDurationSlow:Fe,horizontalLineHeight:me,colorSplit:Ue,lineWidth:vt,lineType:pe,itemPaddingInline:ue}=Te;return{[`${$e}-horizontal`]:{lineHeight:me,border:0,borderBottom:`${vt}px ${pe} ${Ue}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${$e}-item, ${$e}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ue},[`> ${$e}-item:hover,
|
|
> ${$e}-item-active,
|
|
> ${$e}-submenu ${$e}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${$e}-item, ${$e}-submenu-title`]:{transition:[`border-color ${Fe}`,`background ${Fe}`].join(",")},[`${$e}-submenu-arrow`]:{display:"none"}}}},st=Te=>{let{componentCls:$e,menuArrowOffset:Fe}=Te;return{[`${$e}-rtl`]:{direction:"rtl"},[`${$e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${$e}-rtl${$e}-vertical,
|
|
${$e}-submenu-rtl ${$e}-vertical`]:{[`${$e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Fe})`},"&::after":{transform:`rotate(45deg) translateY(${Fe})`}}}}};const St=Te=>Object.assign({},(0,Ee.oN)(Te));var Ft=(Te,$e)=>{const{componentCls:Fe,itemColor:me,itemSelectedColor:Ue,groupTitleColor:vt,itemBg:pe,subMenuItemBg:ue,itemSelectedBg:Ze,activeBarHeight:Ne,activeBarWidth:Pe,activeBarBorderWidth:ke,motionDurationSlow:Lt,motionEaseInOut:mt,motionEaseOut:xt,itemPaddingInline:lt,motionDurationMid:yt,itemHoverColor:ot,lineType:Zt,colorSplit:Rt,itemDisabledColor:Nt,dangerItemColor:Jt,dangerItemHoverColor:Yt,dangerItemSelectedColor:yn,dangerItemActiveBg:on,dangerItemSelectedBg:Nn,itemHoverBg:Gn,itemActiveBg:Hn,menuSubMenuBg:ht,horizontalItemSelectedColor:ut,horizontalItemSelectedBg:dt,horizontalItemBorderRadius:Ct,horizontalItemHoverBg:pn,popupBg:Bn}=Te;return{[`${Fe}-${$e}, ${Fe}-${$e} > ${Fe}`]:{color:me,background:pe,[`&${Fe}-root:focus-visible`]:Object.assign({},St(Te)),[`${Fe}-item-group-title`]:{color:vt},[`${Fe}-submenu-selected`]:{[`> ${Fe}-submenu-title`]:{color:Ue}},[`${Fe}-item-disabled, ${Fe}-submenu-disabled`]:{color:`${Nt} !important`},[`${Fe}-item:not(${Fe}-item-selected):not(${Fe}-submenu-selected)`]:{[`&:hover, > ${Fe}-submenu-title:hover`]:{color:ot}},[`&:not(${Fe}-horizontal)`]:{[`${Fe}-item:not(${Fe}-item-selected)`]:{"&:hover":{backgroundColor:Gn},"&:active":{backgroundColor:Hn}},[`${Fe}-submenu-title`]:{"&:hover":{backgroundColor:Gn},"&:active":{backgroundColor:Hn}}},[`${Fe}-item-danger`]:{color:Jt,[`&${Fe}-item:hover`]:{[`&:not(${Fe}-item-selected):not(${Fe}-submenu-selected)`]:{color:Yt}},[`&${Fe}-item:active`]:{background:on}},[`${Fe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Fe}-item-selected`]:{color:Ue,[`&${Fe}-item-danger`]:{color:yn},"a, a:hover":{color:"inherit"}},[`& ${Fe}-item-selected`]:{backgroundColor:Ze,[`&${Fe}-item-danger`]:{backgroundColor:Nn}},[`${Fe}-item, ${Fe}-submenu-title`]:{[`&:not(${Fe}-item-disabled):focus-visible`]:Object.assign({},St(Te))},[`&${Fe}-submenu > ${Fe}`]:{backgroundColor:ht},[`&${Fe}-popup > ${Fe}`]:{backgroundColor:Bn},[`&${Fe}-horizontal`]:Object.assign(Object.assign({},$e==="dark"?{borderBottom:0}:{}),{[`> ${Fe}-item, > ${Fe}-submenu`]:{top:ke,marginTop:-ke,marginBottom:0,borderRadius:Ct,"&::after":{position:"absolute",insetInline:lt,bottom:0,borderBottom:`${Ne}px solid transparent`,transition:`border-color ${Lt} ${mt}`,content:'""'},"&:hover, &-active, &-open":{background:pn,"&::after":{borderBottomWidth:Ne,borderBottomColor:ut}},"&-selected":{color:ut,backgroundColor:dt,"&:hover":{backgroundColor:dt},"&::after":{borderBottomWidth:Ne,borderBottomColor:ut}}}}),[`&${Fe}-root`]:{[`&${Fe}-inline, &${Fe}-vertical`]:{borderInlineEnd:`${ke}px ${Zt} ${Rt}`}},[`&${Fe}-inline`]:{[`${Fe}-sub${Fe}-inline`]:{background:ue},[`${Fe}-item, ${Fe}-submenu-title`]:ke&&Pe?{width:`calc(100% + ${ke}px)`}:{},[`${Fe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Pe}px solid ${Ue}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${yt} ${xt}`,`opacity ${yt} ${xt}`].join(","),content:'""'},[`&${Fe}-item-danger`]:{"&::after":{borderInlineEndColor:yn}}},[`${Fe}-selected, ${Fe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${yt} ${mt}`,`opacity ${yt} ${mt}`].join(",")}}}}}};const Tt=Te=>{const{componentCls:$e,itemHeight:Fe,itemMarginInline:me,padding:Ue,menuArrowSize:vt,marginXS:pe,itemMarginBlock:ue}=Te,Ze=Ue+vt+pe;return{[`${$e}-item`]:{position:"relative",overflow:"hidden"},[`${$e}-item, ${$e}-submenu-title`]:{height:Fe,lineHeight:`${Fe}px`,paddingInline:Ue,overflow:"hidden",textOverflow:"ellipsis",marginInline:me,marginBlock:ue,width:`calc(100% - ${me*2}px)`},[`> ${$e}-item,
|
|
> ${$e}-submenu > ${$e}-submenu-title`]:{height:Fe,lineHeight:`${Fe}px`},[`${$e}-item-group-list ${$e}-submenu-title,
|
|
${$e}-submenu-title`]:{paddingInlineEnd:Ze}}};var je=Te=>{const{componentCls:$e,iconCls:Fe,itemHeight:me,colorTextLightSolid:Ue,dropdownWidth:vt,controlHeightLG:pe,motionDurationMid:ue,motionEaseOut:Ze,paddingXL:Ne,itemMarginInline:Pe,fontSizeLG:ke,motionDurationSlow:Lt,paddingXS:mt,boxShadowSecondary:xt,collapsedWidth:lt,collapsedIconSize:yt}=Te,ot={height:me,lineHeight:`${me}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[$e]:{"&-inline, &-vertical":Object.assign({[`&${$e}-root`]:{boxShadow:"none"}},Tt(Te))},[`${$e}-submenu-popup`]:{[`${$e}-vertical`]:Object.assign(Object.assign({},Tt(Te)),{boxShadow:xt})}},{[`${$e}-submenu-popup ${$e}-vertical${$e}-sub`]:{minWidth:vt,maxHeight:`calc(100vh - ${pe*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${$e}-inline`]:{width:"100%",[`&${$e}-root`]:{[`${$e}-item, ${$e}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Lt}`,`background ${Lt}`,`padding ${ue} ${Ze}`].join(","),[`> ${$e}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${$e}-sub${$e}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${$e}-submenu > ${$e}-submenu-title`]:ot,[`& ${$e}-item-group-title`]:{paddingInlineStart:Ne}},[`${$e}-item`]:ot}},{[`${$e}-inline-collapsed`]:{width:lt,[`&${$e}-root`]:{[`${$e}-item, ${$e}-submenu ${$e}-submenu-title`]:{[`> ${$e}-inline-collapsed-noicon`]:{fontSize:ke,textAlign:"center"}}},[`> ${$e}-item,
|
|
> ${$e}-item-group > ${$e}-item-group-list > ${$e}-item,
|
|
> ${$e}-item-group > ${$e}-item-group-list > ${$e}-submenu > ${$e}-submenu-title,
|
|
> ${$e}-submenu > ${$e}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ke/2}px - ${Pe}px)`,textOverflow:"clip",[`
|
|
${$e}-submenu-arrow,
|
|
${$e}-submenu-expand-icon
|
|
`]:{opacity:0},[`${$e}-item-icon, ${Fe}`]:{margin:0,fontSize:yt,lineHeight:`${me}px`,"+ span":{display:"inline-block",opacity:0}}},[`${$e}-item-icon, ${Fe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${$e}-item-icon, ${Fe}`]:{display:"none"},"a, a:hover":{color:Ue}},[`${$e}-item-group-title`]:Object.assign(Object.assign({},Ee.vS),{paddingInline:mt})}}]};const ct=Te=>{const{componentCls:$e,motionDurationSlow:Fe,motionDurationMid:me,motionEaseInOut:Ue,motionEaseOut:vt,iconCls:pe,iconSize:ue,iconMarginInlineEnd:Ze}=Te;return{[`${$e}-item, ${$e}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Fe}`,`background ${Fe}`,`padding ${Fe} ${Ue}`].join(","),[`${$e}-item-icon, ${pe}`]:{minWidth:ue,fontSize:ue,transition:[`font-size ${me} ${vt}`,`margin ${Fe} ${Ue}`,`color ${Fe}`].join(","),"+ span":{marginInlineStart:Ze,opacity:1,transition:[`opacity ${Fe} ${Ue}`,`margin ${Fe}`,`color ${Fe}`].join(",")}},[`${$e}-item-icon`]:Object.assign({},(0,Ee.Ro)()),[`&${$e}-item-only-child`]:{[`> ${pe}, > ${$e}-item-icon`]:{marginInlineEnd:0}}},[`${$e}-item-disabled, ${$e}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${$e}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Gt=Te=>{const{componentCls:$e,motionDurationSlow:Fe,motionEaseInOut:me,borderRadius:Ue,menuArrowSize:vt,menuArrowOffset:pe}=Te;return{[`${$e}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Te.margin,width:vt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Fe} ${me}, opacity ${Fe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:vt*.6,height:vt*.15,backgroundColor:"currentcolor",borderRadius:Ue,transition:[`background ${Fe} ${me}`,`transform ${Fe} ${me}`,`top ${Fe} ${me}`,`color ${Fe} ${me}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${pe})`},"&::after":{transform:`rotate(-45deg) translateY(${pe})`}}}}},nt=Te=>{const{antCls:$e,componentCls:Fe,fontSize:me,motionDurationSlow:Ue,motionDurationMid:vt,motionEaseInOut:pe,paddingXS:ue,padding:Ze,colorSplit:Ne,lineWidth:Pe,zIndexPopup:ke,borderRadiusLG:Lt,subMenuItemBorderRadius:mt,menuArrowSize:xt,menuArrowOffset:lt,lineType:yt,menuPanelMaskInset:ot,groupTitleLineHeight:Zt,groupTitleFontSize:Rt}=Te;return[{"":{[`${Fe}`]:Object.assign(Object.assign({},(0,Ee.dF)()),{"&-hidden":{display:"none"}})},[`${Fe}-submenu-hidden`]:{display:"none"}},{[Fe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ee.Wf)(Te)),(0,Ee.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:me,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ue} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Fe}-item`]:{flex:"none"}},[`${Fe}-item, ${Fe}-submenu, ${Fe}-submenu-title`]:{borderRadius:Te.itemBorderRadius},[`${Fe}-item-group-title`]:{padding:`${ue}px ${Ze}px`,fontSize:Rt,lineHeight:Zt,transition:`all ${Ue}`},[`&-horizontal ${Fe}-submenu`]:{transition:[`border-color ${Ue} ${pe}`,`background ${Ue} ${pe}`].join(",")},[`${Fe}-submenu, ${Fe}-submenu-inline`]:{transition:[`border-color ${Ue} ${pe}`,`background ${Ue} ${pe}`,`padding ${vt} ${pe}`].join(",")},[`${Fe}-submenu ${Fe}-sub`]:{cursor:"initial",transition:[`background ${Ue} ${pe}`,`padding ${Ue} ${pe}`].join(",")},[`${Fe}-title-content`]:{transition:`color ${Ue}`},[`${Fe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Fe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Ne,borderStyle:yt,borderWidth:0,borderTopWidth:Pe,marginBlock:Pe,padding:0,"&-dashed":{borderStyle:"dashed"}}}),ct(Te)),{[`${Fe}-item-group`]:{[`${Fe}-item-group-list`]:{margin:0,padding:0,[`${Fe}-item, ${Fe}-submenu-title`]:{paddingInline:`${me*2}px ${Ze}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:ke,borderRadius:Lt,boxShadow:"none",transformOrigin:"0 0",[`&${Fe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${ot}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:ot},"\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:Te.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Te.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Te.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Te.paddingXS},[`> ${Fe}`]:Object.assign(Object.assign(Object.assign({borderRadius:Lt},ct(Te)),Gt(Te)),{[`${Fe}-item, ${Fe}-submenu > ${Fe}-submenu-title`]:{borderRadius:mt},[`${Fe}-submenu-title::after`]:{transition:`transform ${Ue} ${pe}`}})}}),Gt(Te)),{[`&-inline-collapsed ${Fe}-submenu-arrow,
|
|
&-inline ${Fe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${lt})`},"&::after":{transform:`rotate(45deg) translateX(-${lt})`}},[`${Fe}-submenu-open${Fe}-submenu-inline > ${Fe}-submenu-title > ${Fe}-submenu-arrow`]:{transform:`translateY(-${xt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${lt})`},"&::before":{transform:`rotate(45deg) translateX(${lt})`}}})},{[`${$e}-layout-header`]:{[Fe]:{lineHeight:"inherit"}}}]};var $t=(Te,$e)=>(0,_t.Z)("Menu",me=>{if($e===!1)return[];const{colorBgElevated:Ue,colorPrimary:vt,colorTextLightSolid:pe,controlHeightLG:ue,fontSize:Ze,darkItemColor:Ne,darkDangerItemColor:Pe,darkItemBg:ke,darkSubMenuItemBg:Lt,darkItemSelectedColor:mt,darkItemSelectedBg:xt,darkDangerItemSelectedBg:lt,darkItemHoverBg:yt,darkGroupTitleColor:ot,darkItemHoverColor:Zt,darkItemDisabledColor:Rt,darkDangerItemHoverColor:Nt,darkDangerItemSelectedColor:Jt,darkDangerItemActiveBg:Yt}=me,yn=Ze/7*5,on=(0,Ce.TS)(me,{menuArrowSize:yn,menuHorizontalHeight:ue*1.15,menuArrowOffset:`${yn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ue}),Nn=(0,Ce.TS)(on,{itemColor:Ne,itemHoverColor:Zt,groupTitleColor:ot,itemSelectedColor:mt,itemBg:ke,popupBg:ke,subMenuItemBg:Lt,itemActiveBg:"transparent",itemSelectedBg:xt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:yt,itemDisabledColor:Rt,dangerItemColor:Pe,dangerItemHoverColor:Nt,dangerItemSelectedColor:Jt,dangerItemActiveBg:Yt,dangerItemSelectedBg:lt,menuSubMenuBg:Lt,horizontalItemSelectedColor:pe,horizontalItemSelectedBg:vt});return[nt(on),tt(on),je(on),Ft(on,"light"),Ft(Nn,"dark"),st(on),(0,he.Z)(on),(0,ft.oN)(on,"slide-up"),(0,ft.oN)(on,"slide-down"),(0,it._y)(on,"zoom-big")]},me=>{const{colorPrimary:Ue,colorError:vt,colorTextDisabled:pe,colorErrorBg:ue,colorText:Ze,colorTextDescription:Ne,colorBgContainer:Pe,colorFillAlter:ke,colorFillContent:Lt,lineWidth:mt,lineWidthBold:xt,controlItemBgActive:lt,colorBgTextHover:yt,controlHeightLG:ot,lineHeight:Zt,colorBgElevated:Rt,marginXXS:Nt,padding:Jt,fontSize:Yt,controlHeightSM:yn,fontSizeLG:on,colorTextLightSolid:Nn,colorErrorHover:Gn}=me,Hn=new Se.C(Nn).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:me.zIndexPopupBase+50,radiusItem:me.borderRadiusLG,itemBorderRadius:me.borderRadiusLG,radiusSubMenuItem:me.borderRadiusSM,subMenuItemBorderRadius:me.borderRadiusSM,colorItemText:Ze,itemColor:Ze,colorItemTextHover:Ze,itemHoverColor:Ze,colorItemTextHoverHorizontal:Ue,horizontalItemHoverColor:Ue,colorGroupTitle:Ne,groupTitleColor:Ne,colorItemTextSelected:Ue,itemSelectedColor:Ue,colorItemTextSelectedHorizontal:Ue,horizontalItemSelectedColor:Ue,colorItemBg:Pe,itemBg:Pe,colorItemBgHover:yt,itemHoverBg:yt,colorItemBgActive:Lt,itemActiveBg:lt,colorSubItemBg:ke,subMenuItemBg:ke,colorItemBgSelected:lt,itemSelectedBg:lt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:xt,activeBarHeight:xt,colorActiveBarBorderSize:mt,activeBarBorderWidth:mt,colorItemTextDisabled:pe,itemDisabledColor:pe,colorDangerItemText:vt,dangerItemColor:vt,colorDangerItemTextHover:vt,dangerItemHoverColor:vt,colorDangerItemTextSelected:vt,dangerItemSelectedColor:vt,colorDangerItemBgActive:ue,dangerItemActiveBg:ue,colorDangerItemBgSelected:ue,dangerItemSelectedBg:ue,itemMarginInline:me.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ot,groupTitleLineHeight:Zt,collapsedWidth:ot*2,popupBg:Rt,itemMarginBlock:Nt,itemPaddingInline:Jt,horizontalLineHeight:`${ot*1.15}px`,iconSize:Yt,iconMarginInlineEnd:yn-Yt,collapsedIconSize:on,groupTitleFontSize:Yt,darkItemDisabledColor:new Se.C(Nn).setAlpha(.25).toRgbString(),darkItemColor:Hn,darkDangerItemColor:vt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Nn,darkItemSelectedBg:Ue,darkDangerItemSelectedBg:vt,darkItemHoverBg:"transparent",darkGroupTitleColor:Hn,darkItemHoverColor:Nn,darkDangerItemHoverColor:Gn,darkDangerItemSelectedColor:Nn,darkDangerItemActiveBg:vt}},{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"]]})(Te),ye=function(Te,$e){var Fe={};for(var me in Te)Object.prototype.hasOwnProperty.call(Te,me)&&$e.indexOf(me)<0&&(Fe[me]=Te[me]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,me=Object.getOwnPropertySymbols(Te);Ue<me.length;Ue++)$e.indexOf(me[Ue])<0&&Object.prototype.propertyIsEnumerable.call(Te,me[Ue])&&(Fe[me[Ue]]=Te[me[Ue]]);return Fe},Ht=(0,ce.forwardRef)((Te,$e)=>{var Fe,me;const Ue=ce.useContext(ge.Z),vt=Ue||{},{getPrefixCls:pe,getPopupContainer:ue,direction:Ze,menu:Ne}=ce.useContext(Be.E_),Pe=pe(),{prefixCls:ke,className:Lt,style:mt,theme:xt="light",expandIcon:lt,_internalDisableMenuItemTitleTooltip:yt,inlineCollapsed:ot,siderCollapsed:Zt,items:Rt,children:Nt,rootClassName:Jt,mode:Yt,selectable:yn,onClick:on,overflowedIndicatorPopupClassName:Nn}=Te,Gn=ye(Te,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Hn=(0,Re.Z)(Gn,["collapsedWidth"]),ht=be(Rt)||Nt;(Fe=vt.validator)===null||Fe===void 0||Fe.call(vt,{mode:Yt});const ut=(0,ee.useEvent)(function(){var jn;on==null||on.apply(void 0,arguments),(jn=vt.onClick)===null||jn===void 0||jn.call(vt)}),dt=vt.mode||Yt,Ct=yn!=null?yn:vt.selectable,pn=ce.useMemo(()=>Zt!==void 0?Zt:ot,[ot,Zt]),Bn={horizontal:{motionName:`${Pe}-slide-up`},inline:(0,te.Z)(Pe),other:{motionName:`${Pe}-zoom-big`}},vn=pe("menu",ke||vt.prefixCls),[wn,Ln]=$t(vn,!Ue),kn=we()(`${vn}-${xt}`,Ne==null?void 0:Ne.className,Lt);let ca;if(typeof lt=="function")ca=lt;else if(lt===null||lt===!1)ca=null;else if(vt.expandIcon===null||vt.expandIcon===!1)ca=null;else{const jn=lt!=null?lt:vt.expandIcon;ca=(0,Ke.Tm)(jn,{className:we()(`${vn}-submenu-expand-icon`,(0,Ke.l$)(jn)?(me=jn.props)===null||me===void 0?void 0:me.className:"")})}const da=ce.useMemo(()=>({prefixCls:vn,inlineCollapsed:pn||!1,direction:Ze,firstLevel:!0,theme:xt,mode:dt,disableMenuItemTitleTooltip:yt}),[vn,pn,Ze,yt,xt]);return wn(ce.createElement(ge.Z.Provider,{value:null},ce.createElement(y.Provider,{value:da},ce.createElement(ie.ZP,Object.assign({getPopupContainer:ue,overflowedIndicator:ce.createElement(z.Z,null),overflowedIndicatorPopupClassName:we()(vn,`${vn}-${xt}`,Nn),mode:dt,selectable:Ct,onClick:ut},Hn,{inlineCollapsed:pn,style:Object.assign(Object.assign({},Ne==null?void 0:Ne.style),mt),className:kn,prefixCls:vn,direction:Ze,defaultMotions:Bn,expandIcon:ca,ref:$e,rootClassName:we()(Jt,Ln)}),ht))))});const cn=(0,ce.forwardRef)((Te,$e)=>{const Fe=(0,ce.useRef)(null),me=ce.useContext(De.D);return(0,ce.useImperativeHandle)($e,()=>({menu:Fe.current,focus:Ue=>{var vt;(vt=Fe.current)===null||vt===void 0||vt.focus(Ue)}})),ce.createElement(Ht,Object.assign({ref:Fe},Te,me))});cn.Item=x,cn.SubMenu=E,cn.Divider=Ve,cn.ItemGroup=ie.BW;var Xt=cn},58421:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return vt}});var ie=ne(54476),ce=ne(59301),De={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},We=De,we=ne(7657),Be=function(ue,Ze){return ce.createElement(we.Z,(0,ie.Z)({},ue,{ref:Ze,icon:We}))},ae=ce.forwardRef(Be),Je=ae,Ve=ne(49198),He=ne(33853),Re=ne(38819),et=ne(92310),Ke=ne.n(et),oe=ne(20068),y=ne(33885),a=ne(67732),x=ne(83652),b=ne(42403),E=ne(158),z=ne(26112),ee={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},te=ee,ge=ne(91735),de=function(pe){(0,b.Z)(Ze,pe);var ue=(0,E.Z)(Ze);function Ze(){var Ne;(0,a.Z)(this,Ze);for(var Pe=arguments.length,ke=new Array(Pe),Lt=0;Lt<Pe;Lt++)ke[Lt]=arguments[Lt];return Ne=ue.call.apply(ue,[this].concat(ke)),Ne.state={goInputText:""},Ne.getValidValue=function(){var mt=Ne.state.goInputText;return!mt||Number.isNaN(mt)?void 0:Number(mt)},Ne.buildOptionText=function(mt){return"".concat(mt," ").concat(Ne.props.locale.items_per_page)},Ne.changeSize=function(mt){Ne.props.changeSize(Number(mt))},Ne.handleChange=function(mt){Ne.setState({goInputText:mt.target.value})},Ne.handleBlur=function(mt){var xt=Ne.props,lt=xt.goButton,yt=xt.quickGo,ot=xt.rootPrefixCls,Zt=Ne.state.goInputText;lt||Zt===""||(Ne.setState({goInputText:""}),!(mt.relatedTarget&&(mt.relatedTarget.className.indexOf("".concat(ot,"-item-link"))>=0||mt.relatedTarget.className.indexOf("".concat(ot,"-item"))>=0))&&yt(Ne.getValidValue()))},Ne.go=function(mt){var xt=Ne.state.goInputText;xt!==""&&(mt.keyCode===te.ENTER||mt.type==="click")&&(Ne.setState({goInputText:""}),Ne.props.quickGo(Ne.getValidValue()))},Ne}return(0,x.Z)(Ze,[{key:"getPageSizeOptions",value:function(){var Pe=this.props,ke=Pe.pageSize,Lt=Pe.pageSizeOptions;return Lt.some(function(mt){return mt.toString()===ke.toString()})?Lt:Lt.concat([ke.toString()]).sort(function(mt,xt){var lt=Number.isNaN(Number(mt))?0:Number(mt),yt=Number.isNaN(Number(xt))?0:Number(xt);return lt-yt})}},{key:"render",value:function(){var Pe=this,ke=this.props,Lt=ke.pageSize,mt=ke.locale,xt=ke.rootPrefixCls,lt=ke.changeSize,yt=ke.quickGo,ot=ke.goButton,Zt=ke.selectComponentClass,Rt=ke.buildOptionText,Nt=ke.selectPrefixCls,Jt=ke.disabled,Yt=this.state.goInputText,yn="".concat(xt,"-options"),on=Zt,Nn=null,Gn=null,Hn=null;if(!lt&&!yt)return null;var ht=this.getPageSizeOptions();if(lt&&on){var ut=ht.map(function(dt,Ct){return ce.createElement(on.Option,{key:Ct,value:dt.toString()},(Rt||Pe.buildOptionText)(dt))});Nn=ce.createElement(on,{disabled:Jt,prefixCls:Nt,showSearch:!1,className:"".concat(yn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Lt||ht[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Ct){return Ct.parentNode},"aria-label":mt.page_size,defaultOpen:!1},ut)}return yt&&(ot&&(Hn=typeof ot=="boolean"?ce.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Jt,className:"".concat(yn,"-quick-jumper-button")},mt.jump_to_confirm):ce.createElement("span",{onClick:this.go,onKeyUp:this.go},ot)),Gn=ce.createElement("div",{className:"".concat(yn,"-quick-jumper")},mt.jump_to,ce.createElement("input",{disabled:Jt,type:"text",value:Yt,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":mt.page}),mt.page,Hn)),ce.createElement("li",{className:"".concat(yn)},Nn,Gn)}}]),Ze}(ce.Component);de.defaultProps={pageSizeOptions:["10","20","50","100"]};var se=de,be=function(ue){var Ze,Ne=ue.rootPrefixCls,Pe=ue.page,ke=ue.active,Lt=ue.className,mt=ue.showTitle,xt=ue.onClick,lt=ue.onKeyPress,yt=ue.itemRender,ot="".concat(Ne,"-item"),Zt=Ke()(ot,"".concat(ot,"-").concat(Pe),(Ze={},(0,oe.Z)(Ze,"".concat(ot,"-active"),ke),(0,oe.Z)(Ze,"".concat(ot,"-disabled"),!Pe),(0,oe.Z)(Ze,ue.className,Lt),Ze)),Rt=function(){xt(Pe)},Nt=function(yn){lt(yn,xt,Pe)},Jt=yt(Pe,"page",ce.createElement("a",{rel:"nofollow"},Pe));return Jt?ce.createElement("li",{title:mt?Pe.toString():null,className:Zt,onClick:Rt,onKeyPress:Nt,tabIndex:0},Jt):null},Se=be;function Ee(){}function he(pe){var ue=Number(pe);return typeof ue=="number"&&!Number.isNaN(ue)&&isFinite(ue)&&Math.floor(ue)===ue}var ft=function(ue,Ze,Ne){return Ne};function it(pe,ue,Ze){var Ne=typeof pe=="undefined"?ue.pageSize:pe;return Math.floor((Ze.total-1)/Ne)+1}var _t=function(pe){(0,b.Z)(Ze,pe);var ue=(0,E.Z)(Ze);function Ze(Ne){var Pe;(0,a.Z)(this,Ze),Pe=ue.call(this,Ne),Pe.paginationNode=ce.createRef(),Pe.getJumpPrevPage=function(){return Math.max(1,Pe.state.current-(Pe.props.showLessItems?3:5))},Pe.getJumpNextPage=function(){return Math.min(it(void 0,Pe.state,Pe.props),Pe.state.current+(Pe.props.showLessItems?3:5))},Pe.getItemIcon=function(lt,yt){var ot=Pe.props.prefixCls,Zt=lt||ce.createElement("button",{type:"button","aria-label":yt,className:"".concat(ot,"-item-link")});return typeof lt=="function"&&(Zt=ce.createElement(lt,(0,y.Z)({},Pe.props))),Zt},Pe.isValid=function(lt){var yt=Pe.props.total;return he(lt)&<!==Pe.state.current&&he(yt)&&yt>0},Pe.shouldDisplayQuickJumper=function(){var lt=Pe.props,yt=lt.showQuickJumper,ot=lt.total,Zt=Pe.state.pageSize;return ot<=Zt?!1:yt},Pe.handleKeyDown=function(lt){(lt.keyCode===te.ARROW_UP||lt.keyCode===te.ARROW_DOWN)&<.preventDefault()},Pe.handleKeyUp=function(lt){var yt=Pe.getValidValue(lt),ot=Pe.state.currentInputValue;yt!==ot&&Pe.setState({currentInputValue:yt}),lt.keyCode===te.ENTER?Pe.handleChange(yt):lt.keyCode===te.ARROW_UP?Pe.handleChange(yt-1):lt.keyCode===te.ARROW_DOWN&&Pe.handleChange(yt+1)},Pe.handleBlur=function(lt){var yt=Pe.getValidValue(lt);Pe.handleChange(yt)},Pe.changePageSize=function(lt){var yt=Pe.state.current,ot=it(lt,Pe.state,Pe.props);yt=yt>ot?ot:yt,ot===0&&(yt=Pe.state.current),typeof lt=="number"&&("pageSize"in Pe.props||Pe.setState({pageSize:lt}),"current"in Pe.props||Pe.setState({current:yt,currentInputValue:yt})),Pe.props.onShowSizeChange(yt,lt),"onChange"in Pe.props&&Pe.props.onChange&&Pe.props.onChange(yt,lt)},Pe.handleChange=function(lt){var yt=Pe.props,ot=yt.disabled,Zt=yt.onChange,Rt=Pe.state,Nt=Rt.pageSize,Jt=Rt.current,Yt=Rt.currentInputValue;if(Pe.isValid(lt)&&!ot){var yn=it(void 0,Pe.state,Pe.props),on=lt;return lt>yn?on=yn:lt<1&&(on=1),"current"in Pe.props||Pe.setState({current:on}),on!==Yt&&Pe.setState({currentInputValue:on}),Zt(on,Nt),on}return Jt},Pe.prev=function(){Pe.hasPrev()&&Pe.handleChange(Pe.state.current-1)},Pe.next=function(){Pe.hasNext()&&Pe.handleChange(Pe.state.current+1)},Pe.jumpPrev=function(){Pe.handleChange(Pe.getJumpPrevPage())},Pe.jumpNext=function(){Pe.handleChange(Pe.getJumpNextPage())},Pe.hasPrev=function(){return Pe.state.current>1},Pe.hasNext=function(){return Pe.state.current<it(void 0,Pe.state,Pe.props)},Pe.runIfEnter=function(lt,yt){if(lt.key==="Enter"||lt.charCode===13){for(var ot=arguments.length,Zt=new Array(ot>2?ot-2:0),Rt=2;Rt<ot;Rt++)Zt[Rt-2]=arguments[Rt];yt.apply(void 0,Zt)}},Pe.runIfEnterPrev=function(lt){Pe.runIfEnter(lt,Pe.prev)},Pe.runIfEnterNext=function(lt){Pe.runIfEnter(lt,Pe.next)},Pe.runIfEnterJumpPrev=function(lt){Pe.runIfEnter(lt,Pe.jumpPrev)},Pe.runIfEnterJumpNext=function(lt){Pe.runIfEnter(lt,Pe.jumpNext)},Pe.handleGoTO=function(lt){(lt.keyCode===te.ENTER||lt.type==="click")&&Pe.handleChange(Pe.state.currentInputValue)},Pe.renderPrev=function(lt){var yt=Pe.props,ot=yt.prevIcon,Zt=yt.itemRender,Rt=Zt(lt,"prev",Pe.getItemIcon(ot,"prev page")),Nt=!Pe.hasPrev();return(0,ce.isValidElement)(Rt)?(0,ce.cloneElement)(Rt,{disabled:Nt}):Rt},Pe.renderNext=function(lt){var yt=Pe.props,ot=yt.nextIcon,Zt=yt.itemRender,Rt=Zt(lt,"next",Pe.getItemIcon(ot,"next page")),Nt=!Pe.hasNext();return(0,ce.isValidElement)(Rt)?(0,ce.cloneElement)(Rt,{disabled:Nt}):Rt};var ke=Ne.onChange!==Ee,Lt="current"in Ne;Lt&&!ke&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var mt=Ne.defaultCurrent;"current"in Ne&&(mt=Ne.current);var xt=Ne.defaultPageSize;return"pageSize"in Ne&&(xt=Ne.pageSize),mt=Math.min(mt,it(xt,void 0,Ne)),Pe.state={current:mt,currentInputValue:mt,pageSize:xt},Pe}return(0,x.Z)(Ze,[{key:"componentDidUpdate",value:function(Pe,ke){var Lt=this.props.prefixCls;if(ke.current!==this.state.current&&this.paginationNode.current){var mt=this.paginationNode.current.querySelector(".".concat(Lt,"-item-").concat(ke.current));if(mt&&document.activeElement===mt){var xt;mt==null||(xt=mt.blur)===null||xt===void 0||xt.call(mt)}}}},{key:"getValidValue",value:function(Pe){var ke=Pe.target.value,Lt=it(void 0,this.state,this.props),mt=this.state.currentInputValue,xt;return ke===""?xt=ke:Number.isNaN(Number(ke))?xt=mt:ke>=Lt?xt=Lt:xt=Number(ke),xt}},{key:"getShowSizeChanger",value:function(){var Pe=this.props,ke=Pe.showSizeChanger,Lt=Pe.total,mt=Pe.totalBoundaryShowSizeChanger;return typeof ke!="undefined"?ke:Lt>mt}},{key:"render",value:function(){var Pe=this.props,ke=Pe.prefixCls,Lt=Pe.className,mt=Pe.style,xt=Pe.disabled,lt=Pe.hideOnSinglePage,yt=Pe.total,ot=Pe.locale,Zt=Pe.showQuickJumper,Rt=Pe.showLessItems,Nt=Pe.showTitle,Jt=Pe.showTotal,Yt=Pe.simple,yn=Pe.itemRender,on=Pe.showPrevNextJumpers,Nn=Pe.jumpPrevIcon,Gn=Pe.jumpNextIcon,Hn=Pe.selectComponentClass,ht=Pe.selectPrefixCls,ut=Pe.pageSizeOptions,dt=this.state,Ct=dt.current,pn=dt.pageSize,Bn=dt.currentInputValue;if(lt===!0&&yt<=pn)return null;var vn=it(void 0,this.state,this.props),wn=[],Ln=null,kn=null,ca=null,da=null,jn=null,Jn=Zt&&Zt.goButton,ha=Rt?1:2,ao=Ct-1>0?Ct-1:0,Ge=Ct+1<vn?Ct+1:vn,Xe=(0,z.Z)(this.props,{aria:!0,data:!0}),_e=Jt&&ce.createElement("li",{className:"".concat(ke,"-total-text")},Jt(yt,[yt===0?0:(Ct-1)*pn+1,Ct*pn>yt?yt:Ct*pn]));if(Yt){Jn&&(typeof Jn=="boolean"?jn=ce.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ot.jump_to_confirm):jn=ce.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Jn),jn=ce.createElement("li",{title:Nt?"".concat(ot.jump_to).concat(Ct,"/").concat(vn):null,className:"".concat(ke,"-simple-pager")},jn));var zt=this.renderPrev(ao);return ce.createElement("ul",(0,ie.Z)({className:Ke()(ke,"".concat(ke,"-simple"),(0,oe.Z)({},"".concat(ke,"-disabled"),xt),Lt),style:mt,ref:this.paginationNode},Xe),_e,zt?ce.createElement("li",{title:Nt?ot.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Ke()("".concat(ke,"-prev"),(0,oe.Z)({},"".concat(ke,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},zt):null,ce.createElement("li",{title:Nt?"".concat(Ct,"/").concat(vn):null,className:"".concat(ke,"-simple-pager")},ce.createElement("input",{type:"text",value:Bn,disabled:xt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ce.createElement("span",{className:"".concat(ke,"-slash")},"/"),vn),ce.createElement("li",{title:Nt?ot.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Ke()("".concat(ke,"-next"),(0,oe.Z)({},"".concat(ke,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Ge)),jn)}if(vn<=3+ha*2){var un={locale:ot,rootPrefixCls:ke,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Nt,itemRender:yn};vn||wn.push(ce.createElement(Se,(0,ie.Z)({},un,{key:"noPager",page:1,className:"".concat(ke,"-item-disabled")})));for(var tn=1;tn<=vn;tn+=1){var Vn=Ct===tn;wn.push(ce.createElement(Se,(0,ie.Z)({},un,{key:tn,page:tn,active:Vn})))}}else{var gn=Rt?ot.prev_3:ot.prev_5,zn=Rt?ot.next_3:ot.next_5,Qn=yn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Nn,"prev page")),Ba=yn(this.getJumpNextPage(),"jump-next",this.getItemIcon(Gn,"next page"));on&&(Ln=Qn?ce.createElement("li",{title:Nt?gn:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Ke()("".concat(ke,"-jump-prev"),(0,oe.Z)({},"".concat(ke,"-jump-prev-custom-icon"),!!Nn))},Qn):null,kn=Ba?ce.createElement("li",{title:Nt?zn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Ke()("".concat(ke,"-jump-next"),(0,oe.Z)({},"".concat(ke,"-jump-next-custom-icon"),!!Gn))},Ba):null),da=ce.createElement(Se,{locale:ot,last:!0,rootPrefixCls:ke,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:vn,page:vn,active:!1,showTitle:Nt,itemRender:yn}),ca=ce.createElement(Se,{locale:ot,rootPrefixCls:ke,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Nt,itemRender:yn});var Bt=Math.max(1,Ct-ha),Kn=Math.min(Ct+ha,vn);Ct-1<=ha&&(Kn=1+ha*2),vn-Ct<=ha&&(Bt=vn-ha*2);for(var Ca=Bt;Ca<=Kn;Ca+=1){var ta=Ct===Ca;wn.push(ce.createElement(Se,{locale:ot,rootPrefixCls:ke,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Ca,page:Ca,active:ta,showTitle:Nt,itemRender:yn}))}Ct-1>=ha*2&&Ct!==3&&(wn[0]=(0,ce.cloneElement)(wn[0],{className:"".concat(ke,"-item-after-jump-prev")}),wn.unshift(Ln)),vn-Ct>=ha*2&&Ct!==vn-2&&(wn[wn.length-1]=(0,ce.cloneElement)(wn[wn.length-1],{className:"".concat(ke,"-item-before-jump-next")}),wn.push(kn)),Bt!==1&&wn.unshift(ca),Kn!==vn&&wn.push(da)}var la=!this.hasPrev()||!vn,na=!this.hasNext()||!vn,Aa=this.renderPrev(ao),Da=this.renderNext(Ge);return ce.createElement("ul",(0,ie.Z)({className:Ke()(ke,Lt,(0,oe.Z)({},"".concat(ke,"-disabled"),xt)),style:mt,ref:this.paginationNode},Xe),_e,Aa?ce.createElement("li",{title:Nt?ot.prev_page:null,onClick:this.prev,tabIndex:la?null:0,onKeyPress:this.runIfEnterPrev,className:Ke()("".concat(ke,"-prev"),(0,oe.Z)({},"".concat(ke,"-disabled"),la)),"aria-disabled":la},Aa):null,wn,Da?ce.createElement("li",{title:Nt?ot.next_page:null,onClick:this.next,tabIndex:na?null:0,onKeyPress:this.runIfEnterNext,className:Ke()("".concat(ke,"-next"),(0,oe.Z)({},"".concat(ke,"-disabled"),na)),"aria-disabled":na},Da):null,ce.createElement(se,{disabled:xt,locale:ot,rootPrefixCls:ke,selectComponentClass:Hn,selectPrefixCls:ht,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ct,pageSize:pn,pageSizeOptions:ut,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Jn}))}}],[{key:"getDerivedStateFromProps",value:function(Pe,ke){var Lt={};if("current"in Pe&&(Lt.current=Pe.current,Pe.current!==ke.current&&(Lt.currentInputValue=Lt.current)),"pageSize"in Pe&&Pe.pageSize!==ke.pageSize){var mt=ke.current,xt=it(Pe.pageSize,ke,Pe);mt=mt>xt?xt:mt,"current"in Pe||(Lt.current=mt,Lt.currentInputValue=mt),Lt.pageSize=Pe.pageSize}return Lt}}]),Ze}(ce.Component);_t.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Ee,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Ee,locale:ge.Z,style:{},itemRender:ft,totalBoundaryShowSizeChanger:50};var Ce=_t,Ae=ne(22075),tt=ne(36355),at=ne(19716),st=ne(8628),St=ne(9763),wt=ne(57809);const Ft=pe=>ce.createElement(wt.default,Object.assign({},pe,{showSearch:!0,size:"small"})),Tt=pe=>ce.createElement(wt.default,Object.assign({},pe,{showSearch:!0,size:"middle"}));Ft.Option=wt.default.Option,Tt.Option=wt.default.Option;var Oe=ne(9937),je=ne(17313),ct=ne(83116),Gt=ne(37613);const nt=pe=>{const{componentCls:ue}=pe;return{[`${ue}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${ue}-item-link`]:{color:pe.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${ue}-item-link`]:{color:pe.colorTextDisabled,cursor:"not-allowed"}}},[`&${ue}-disabled`]:{cursor:"not-allowed",[`${ue}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:pe.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:pe.colorBorder,backgroundColor:pe.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:pe.itemActiveBgDisabled},a:{color:pe.itemActiveColorDisabled}}},[`${ue}-item-link`]:{color:pe.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${ue}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${ue}-simple-pager`]:{color:pe.colorTextDisabled},[`${ue}-jump-prev, ${ue}-jump-next`]:{[`${ue}-item-link-icon`]:{opacity:0},[`${ue}-item-ellipsis`]:{opacity:1}}},[`&${ue}-simple`]:{[`${ue}-prev, ${ue}-next`]:{[`&${ue}-disabled ${ue}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},$t=pe=>{const{componentCls:ue}=pe;return{[`&${ue}-mini ${ue}-total-text, &${ue}-mini ${ue}-simple-pager`]:{height:pe.itemSizeSM,lineHeight:`${pe.itemSizeSM}px`},[`&${ue}-mini ${ue}-item`]:{minWidth:pe.itemSizeSM,height:pe.itemSizeSM,margin:0,lineHeight:`${pe.itemSizeSM-2}px`},[`&${ue}-mini:not(${ue}-disabled) ${ue}-item:not(${ue}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:pe.colorBgTextHover},"&:active":{backgroundColor:pe.colorBgTextActive}},[`&${ue}-mini ${ue}-prev, &${ue}-mini ${ue}-next`]:{minWidth:pe.itemSizeSM,height:pe.itemSizeSM,margin:0,lineHeight:`${pe.itemSizeSM}px`},[`&${ue}-mini:not(${ue}-disabled)`]:{[`${ue}-prev, ${ue}-next`]:{[`&:hover ${ue}-item-link`]:{backgroundColor:pe.colorBgTextHover},[`&:active ${ue}-item-link`]:{backgroundColor:pe.colorBgTextActive},[`&${ue}-disabled:hover ${ue}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
&${ue}-mini ${ue}-prev ${ue}-item-link,
|
|
&${ue}-mini ${ue}-next ${ue}-item-link
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:pe.itemSizeSM,lineHeight:`${pe.itemSizeSM}px`}},[`&${ue}-mini ${ue}-jump-prev, &${ue}-mini ${ue}-jump-next`]:{height:pe.itemSizeSM,marginInlineEnd:0,lineHeight:`${pe.itemSizeSM}px`},[`&${ue}-mini ${ue}-options`]:{marginInlineStart:pe.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:pe.miniOptionsSizeChangerTop},"&-quick-jumper":{height:pe.itemSizeSM,lineHeight:`${pe.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Oe.x0)(pe)),{width:pe.paginationMiniQuickJumperInputWidth,height:pe.controlHeightSM})}}}},ye=pe=>{const{componentCls:ue}=pe;return{[`
|
|
&${ue}-simple ${ue}-prev,
|
|
&${ue}-simple ${ue}-next
|
|
`]:{height:pe.itemSizeSM,lineHeight:`${pe.itemSizeSM}px`,verticalAlign:"top",[`${ue}-item-link`]:{height:pe.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:pe.colorBgTextHover},"&:active":{backgroundColor:pe.colorBgTextActive},"&::after":{height:pe.itemSizeSM,lineHeight:`${pe.itemSizeSM}px`}}},[`&${ue}-simple ${ue}-simple-pager`]:{display:"inline-block",height:pe.itemSizeSM,marginInlineEnd:pe.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:pe.marginXS,padding:`0 ${pe.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:pe.itemInputBg,border:`${pe.lineWidth}px ${pe.lineType} ${pe.colorBorder}`,borderRadius:pe.borderRadius,outline:"none",transition:`border-color ${pe.motionDurationMid}`,color:"inherit","&:hover":{borderColor:pe.colorPrimary},"&:focus":{borderColor:pe.colorPrimaryHover,boxShadow:`${pe.inputOutlineOffset}px 0 ${pe.controlOutlineWidth}px ${pe.controlOutline}`},"&[disabled]":{color:pe.colorTextDisabled,backgroundColor:pe.colorBgContainerDisabled,borderColor:pe.colorBorder,cursor:"not-allowed"}}}}},Et=pe=>{const{componentCls:ue}=pe;return{[`${ue}-jump-prev, ${ue}-jump-next`]:{outline:0,[`${ue}-item-container`]:{position:"relative",[`${ue}-item-link-icon`]:{color:pe.colorPrimary,fontSize:pe.fontSizeSM,opacity:0,transition:`all ${pe.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${ue}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:pe.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:pe.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:pe.paginationEllipsisTextIndent,opacity:1,transition:`all ${pe.motionDurationMid}`}},"&:hover":{[`${ue}-item-link-icon`]:{opacity:1},[`${ue}-item-ellipsis`]:{opacity:0}}},[`
|
|
${ue}-prev,
|
|
${ue}-jump-prev,
|
|
${ue}-jump-next
|
|
`]:{marginInlineEnd:pe.marginXS},[`
|
|
${ue}-prev,
|
|
${ue}-next,
|
|
${ue}-jump-prev,
|
|
${ue}-jump-next
|
|
`]:{display:"inline-block",minWidth:pe.itemSize,height:pe.itemSize,color:pe.colorText,fontFamily:pe.fontFamily,lineHeight:`${pe.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:pe.borderRadius,cursor:"pointer",transition:`all ${pe.motionDurationMid}`},[`${ue}-prev, ${ue}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:pe.colorText,cursor:"pointer",userSelect:"none"},[`${ue}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:pe.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${pe.lineWidth}px ${pe.lineType} transparent`,borderRadius:pe.borderRadius,outline:"none",transition:`all ${pe.motionDurationMid}`},[`&:hover ${ue}-item-link`]:{backgroundColor:pe.colorBgTextHover},[`&:active ${ue}-item-link`]:{backgroundColor:pe.colorBgTextActive},[`&${ue}-disabled:hover`]:{[`${ue}-item-link`]:{backgroundColor:"transparent"}}},[`${ue}-slash`]:{marginInlineEnd:pe.paginationSlashMarginInlineEnd,marginInlineStart:pe.paginationSlashMarginInlineStart},[`${ue}-options`]:{display:"inline-block",marginInlineStart:pe.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:pe.controlHeight,marginInlineStart:pe.marginXS,lineHeight:`${pe.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Oe.ik)(pe)),{width:pe.controlHeightLG*1.25,height:pe.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:pe.marginXS,marginInlineEnd:pe.marginXS})}}}},Ht=pe=>{const{componentCls:ue}=pe;return{[`${ue}-item`]:{display:"inline-block",minWidth:pe.itemSize,height:pe.itemSize,marginInlineEnd:pe.marginXS,fontFamily:pe.fontFamily,lineHeight:`${pe.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${pe.lineWidth}px ${pe.lineType} transparent`,borderRadius:pe.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${pe.paginationItemPaddingInline}px`,color:pe.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${ue}-item-active)`]:{"&:hover":{transition:`all ${pe.motionDurationMid}`,backgroundColor:pe.colorBgTextHover},"&:active":{backgroundColor:pe.colorBgTextActive}},"&-active":{fontWeight:pe.fontWeightStrong,backgroundColor:pe.itemActiveBg,borderColor:pe.colorPrimary,a:{color:pe.colorPrimary},"&:hover":{borderColor:pe.colorPrimaryHover},"&:hover a":{color:pe.colorPrimaryHover}}}}},cn=pe=>{const{componentCls:ue}=pe;return{[ue]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,je.Wf)(pe)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${ue}-total-text`]:{display:"inline-block",height:pe.itemSize,marginInlineEnd:pe.marginXS,lineHeight:`${pe.itemSize-2}px`,verticalAlign:"middle"}}),Ht(pe)),Et(pe)),ye(pe)),$t(pe)),nt(pe)),{[`@media only screen and (max-width: ${pe.screenLG}px)`]:{[`${ue}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${pe.screenSM}px)`]:{[`${ue}-options`]:{display:"none"}}}),[`&${pe.componentCls}-rtl`]:{direction:"rtl"}}},Xt=pe=>{const{componentCls:ue}=pe;return{[`${ue}${ue}-disabled:not(${ue}-mini)`]:{"&, &:hover":{[`${ue}-item-link`]:{borderColor:pe.colorBorder}},"&:focus-visible":{[`${ue}-item-link`]:{borderColor:pe.colorBorder}},[`${ue}-item, ${ue}-item-link`]:{backgroundColor:pe.colorBgContainerDisabled,borderColor:pe.colorBorder,[`&:hover:not(${ue}-item-active)`]:{backgroundColor:pe.colorBgContainerDisabled,borderColor:pe.colorBorder,a:{color:pe.colorTextDisabled}},[`&${ue}-item-active`]:{backgroundColor:pe.itemActiveBgDisabled}},[`${ue}-prev, ${ue}-next`]:{"&:hover button":{backgroundColor:pe.colorBgContainerDisabled,borderColor:pe.colorBorder,color:pe.colorTextDisabled},[`${ue}-item-link`]:{backgroundColor:pe.colorBgContainerDisabled,borderColor:pe.colorBorder}}},[`${ue}:not(${ue}-mini)`]:{[`${ue}-prev, ${ue}-next`]:{"&:hover button":{borderColor:pe.colorPrimaryHover,backgroundColor:pe.itemBg},[`${ue}-item-link`]:{backgroundColor:pe.itemLinkBg,borderColor:pe.colorBorder},[`&:hover ${ue}-item-link`]:{borderColor:pe.colorPrimary,backgroundColor:pe.itemBg,color:pe.colorPrimary},[`&${ue}-disabled`]:{[`${ue}-item-link`]:{borderColor:pe.colorBorder,color:pe.colorTextDisabled}}},[`${ue}-item`]:{backgroundColor:pe.itemBg,border:`${pe.lineWidth}px ${pe.lineType} ${pe.colorBorder}`,[`&:hover:not(${ue}-item-active)`]:{borderColor:pe.colorPrimary,backgroundColor:pe.itemBg,a:{color:pe.colorPrimary}},"&-active":{borderColor:pe.colorPrimary}}}}},Te=pe=>{const{componentCls:ue}=pe;return{[`${ue}:not(${ue}-disabled)`]:{[`${ue}-item`]:Object.assign({},(0,je.Qy)(pe)),[`${ue}-jump-prev, ${ue}-jump-next`]:{"&:focus-visible":Object.assign({[`${ue}-item-link-icon`]:{opacity:1},[`${ue}-item-ellipsis`]:{opacity:0}},(0,je.oN)(pe))},[`${ue}-prev, ${ue}-next`]:{[`&:focus-visible ${ue}-item-link`]:Object.assign({},(0,je.oN)(pe))}}}};var $e=(0,ct.Z)("Pagination",pe=>{const ue=(0,Gt.TS)(pe,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:pe.marginXXS/2,paginationMiniQuickJumperInputWidth:pe.controlHeightLG*1.1,paginationItemPaddingInline:pe.marginXXS*1.5,paginationEllipsisLetterSpacing:pe.marginXXS/2,paginationSlashMarginInlineStart:pe.marginXXS,paginationSlashMarginInlineEnd:pe.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Oe.e5)(pe),(0,Oe.TM)(pe));return[cn(ue),Te(ue),pe.wireframe&&Xt(ue)]},pe=>({itemBg:pe.colorBgContainer,itemSize:pe.controlHeight,itemSizeSM:pe.controlHeightSM,itemActiveBg:pe.colorBgContainer,itemLinkBg:pe.colorBgContainer,itemActiveColorDisabled:pe.colorTextDisabled,itemActiveBgDisabled:pe.controlItemBgActiveDisabled,itemInputBg:pe.colorBgContainer,miniOptionsSizeChangerTop:0})),Fe=function(pe,ue){var Ze={};for(var Ne in pe)Object.prototype.hasOwnProperty.call(pe,Ne)&&ue.indexOf(Ne)<0&&(Ze[Ne]=pe[Ne]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Ne=Object.getOwnPropertySymbols(pe);Pe<Ne.length;Pe++)ue.indexOf(Ne[Pe])<0&&Object.prototype.propertyIsEnumerable.call(pe,Ne[Pe])&&(Ze[Ne[Pe]]=pe[Ne[Pe]]);return Ze},Ue=pe=>{const{prefixCls:ue,selectPrefixCls:Ze,className:Ne,rootClassName:Pe,style:ke,size:Lt,locale:mt,selectComponentClass:xt,responsive:lt,showSizeChanger:yt}=pe,ot=Fe(pe,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Zt}=(0,st.Z)(lt),{getPrefixCls:Rt,direction:Nt,pagination:Jt={}}=ce.useContext(tt.E_),Yt=Rt("pagination",ue),[yn,on]=$e(Yt),Nn=yt!=null?yt:Jt.showSizeChanger,Gn=ce.useMemo(()=>{const vn=ce.createElement("span",{className:`${Yt}-item-ellipsis`},"\u2022\u2022\u2022"),wn=ce.createElement("button",{className:`${Yt}-item-link`,type:"button",tabIndex:-1},Nt==="rtl"?ce.createElement(Re.Z,null):ce.createElement(He.Z,null)),Ln=ce.createElement("button",{className:`${Yt}-item-link`,type:"button",tabIndex:-1},Nt==="rtl"?ce.createElement(He.Z,null):ce.createElement(Re.Z,null)),kn=ce.createElement("a",{className:`${Yt}-item-link`},ce.createElement("div",{className:`${Yt}-item-container`},Nt==="rtl"?ce.createElement(Ve.Z,{className:`${Yt}-item-link-icon`}):ce.createElement(Je,{className:`${Yt}-item-link-icon`}),vn)),ca=ce.createElement("a",{className:`${Yt}-item-link`},ce.createElement("div",{className:`${Yt}-item-container`},Nt==="rtl"?ce.createElement(Je,{className:`${Yt}-item-link-icon`}):ce.createElement(Ve.Z,{className:`${Yt}-item-link-icon`}),vn));return{prevIcon:wn,nextIcon:Ln,jumpPrevIcon:kn,jumpNextIcon:ca}},[Nt,Yt]),[Hn]=(0,St.Z)("Pagination",Ae.Z),ht=Object.assign(Object.assign({},Hn),mt),ut=(0,at.Z)(Lt),dt=ut==="small"||!!(Zt&&!ut&<),Ct=Rt("select",Ze),pn=Ke()({[`${Yt}-mini`]:dt,[`${Yt}-rtl`]:Nt==="rtl"},Jt==null?void 0:Jt.className,Ne,Pe,on),Bn=Object.assign(Object.assign({},Jt==null?void 0:Jt.style),ke);return yn(ce.createElement(Ce,Object.assign({},Gn,ot,{style:Bn,prefixCls:Yt,selectPrefixCls:Ct,className:pn,selectComponentClass:xt||(dt?Ft:Tt),locale:ht,showSizeChanger:Nn})))},vt=Ue},15969:function(qe,gt,ne){"use strict";ne.d(gt,{N:function(){return ie}});const ie=ce=>({color:ce.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${ce.motionDurationSlow}`,"&:focus, &:hover":{color:ce.colorLinkHover},"&:active":{color:ce.colorLinkActive}})},1710:function(qe,gt,ne){"use strict";ne.d(gt,{default:function(){return El}});var ie={},ce="rc-table-internal-hook",De=ne(42978),We=ne(6089),we=ne(34280),Be=ne(13697),ae=ne(59301),Je=ne(4676);function Ve(re){var le=ae.createContext(void 0),fe=function(xe){var Le=xe.value,Me=xe.children,ze=ae.useRef(Le);ze.current=Le;var Ie=ae.useState(function(){return{getValue:function(){return ze.current},listeners:new Set}}),Ye=(0,De.Z)(Ie,1),rt=Ye[0];return(0,we.Z)(function(){(0,Je.unstable_batchedUpdates)(function(){rt.listeners.forEach(function(Qe){Qe(Le)})})},[Le]),ae.createElement(le.Provider,{value:rt},Me)};return{Context:le,Provider:fe,defaultValue:re}}function He(re,le){var fe=(0,We.Z)(typeof le=="function"?le:function(Qe){if(le===void 0)return Qe;if(!Array.isArray(le))return Qe[le];var bt={};return le.forEach(function(pt){bt[pt]=Qe[pt]}),bt}),ve=ae.useContext(re==null?void 0:re.Context),xe=ve||{},Le=xe.listeners,Me=xe.getValue,ze=ae.useRef();ze.current=fe(ve?Me():re==null?void 0:re.defaultValue);var Ie=ae.useState({}),Ye=(0,De.Z)(Ie,2),rt=Ye[1];return(0,we.Z)(function(){if(!ve)return;function Qe(bt){var pt=fe(bt);(0,Be.Z)(ze.current,pt,!0)||rt({})}return Le.add(Qe),function(){Le.delete(Qe)}},[ve]),ze.current}var Re=ne(54476),et=ne(8654);function Ke(){var re=ae.createContext(null);function le(){return ae.useContext(re)}function fe(xe,Le){var Me=(0,et.Yr)(xe),ze=function(Ye,rt){var Qe=Me?{ref:rt}:{},bt=ae.useRef(0),pt=ae.useRef(Ye),Pt=le();return Pt!==null?ae.createElement(xe,(0,Re.Z)({},Ye,Qe)):((!Le||Le(pt.current,Ye))&&(bt.current+=1),pt.current=Ye,ae.createElement(re.Provider,{value:bt.current},ae.createElement(xe,(0,Re.Z)({},Ye,Qe))))};return Me?ae.forwardRef(ze):ze}function ve(xe,Le){var Me=(0,et.Yr)(xe),ze=function(Ye,rt){var Qe=Me?{ref:rt}:{};return le(),ae.createElement(xe,(0,Re.Z)({},Ye,Qe))};return Me?ae.memo(ae.forwardRef(ze),Le):ae.memo(ze,Le)}return{makeImmutable:fe,responseImmutable:ve,useImmutableMark:le}}var oe=Ke(),y=oe.makeImmutable,a=oe.responseImmutable,x=oe.useImmutableMark,b=Ke(),E=b.makeImmutable,z=b.responseImmutable,ee=b.useImmutableMark,te=Ve(),ge=te;function de(re,le){var fe=ae.useRef(0);fe.current+=1;var ve=ae.useRef(re),xe=[];Object.keys(re||{}).map(function(Me){var ze;(re==null?void 0:re[Me])!==((ze=ve.current)===null||ze===void 0?void 0:ze[Me])&&xe.push(Me)}),ve.current=re;var Le=ae.useRef([]);return xe.length&&(Le.current=xe),ae.useDebugValue(fe.current),ae.useDebugValue(Le.current.join(", ")),le&&console.log("".concat(le,":"),fe.current,Le.current),fe.current}var se=null,be=ae.memo(function(){var re=de();return ae.createElement("h1",null,"Render Times: ",re)});be.displayName="RenderBlock";var Se=ne(76190),Ee=ne(33885),he=ne(20068),ft=ne(92310),it=ne.n(ft),_t=ne(80547),Ce=ne(97938),Ae=ne(48736),tt=ae.createContext({renderWithProps:!1}),at=tt,st="RC_TABLE_KEY";function St(re){return re==null?[]:Array.isArray(re)?re:[re]}function wt(re){var le=[],fe={};return re.forEach(function(ve){for(var xe=ve||{},Le=xe.key,Me=xe.dataIndex,ze=Le||St(Me).join("-")||st;fe[ze];)ze="".concat(ze,"_next");fe[ze]=!0,le.push(ze)}),le}function Ft(re){return re!=null}function Tt(re){return re&&(0,Se.Z)(re)==="object"&&!Array.isArray(re)&&!ae.isValidElement(re)}function Oe(re,le,fe,ve,xe,Le){var Me=ae.useContext(at),ze=ee(),Ie=(0,_t.Z)(function(){if(Ft(ve))return[ve];var Ye=le==null||le===""?[]:Array.isArray(le)?le:[le],rt=(0,Ce.Z)(re,Ye),Qe=rt,bt=void 0;if(xe){var pt=xe(rt,re,fe);Tt(pt)?(Qe=pt.children,bt=pt.props,Me.renderWithProps=!0):Qe=pt}return[Qe,bt]},[ze,re,ve,le,xe,fe],function(Ye,rt){if(Le){var Qe=(0,De.Z)(Ye,2),bt=Qe[1],pt=(0,De.Z)(rt,2),Pt=pt[1];return Le(Pt,bt)}return Me.renderWithProps?!0:!(0,Be.Z)(Ye,rt,!0)});return Ie}function je(re,le,fe,ve){var xe=re+le-1;return re<=ve&&xe>=fe}function ct(re,le){return He(ge,function(fe){var ve=je(re,le||1,fe.hoverStartRow,fe.hoverEndRow);return[ve,fe.onHover]})}var Gt=function(le){var fe=le.ellipsis,ve=le.rowType,xe=le.children,Le,Me=fe===!0?{showTitle:!0}:fe;return Me&&(Me.showTitle||ve==="header")&&(typeof xe=="string"||typeof xe=="number"?Le=xe.toString():ae.isValidElement(xe)&&typeof xe.props.children=="string"&&(Le=xe.props.children)),Le};function nt(re){var le,fe,ve,xe,Le,Me,ze,Ie,Ye=re.component,rt=re.children,Qe=re.ellipsis,bt=re.scope,pt=re.prefixCls,Pt=re.className,At=re.align,Ot=re.record,kt=re.render,It=re.dataIndex,jt=re.renderIndex,dn=re.shouldCellUpdate,sn=re.index,qt=re.rowType,Cn=re.colSpan,$n=re.rowSpan,Wt=re.fixLeft,en=re.fixRight,Ut=re.firstFixLeft,Kt=re.lastFixLeft,Qt=re.firstFixRight,bn=re.lastFixRight,Dn=re.appendNode,Fn=re.additionalProps,fn=Fn===void 0?{}:Fn,Mn=re.isSticky,Rn="".concat(pt,"-cell"),ga=He(ge,["supportSticky","allColumnsFixedLeft"]),Un=ga.supportSticky,ya=ga.allColumnsFixedLeft,ba=Oe(Ot,It,jt,rt,kt,dn),On=(0,De.Z)(ba,2),La=On[0],Xn=On[1],ma={},ua=typeof Wt=="number"&&Un,Ya=typeof en=="number"&&Un;ua&&(ma.position="sticky",ma.left=Wt),Ya&&(ma.position="sticky",ma.right=en);var Pn=(le=(fe=(ve=Xn==null?void 0:Xn.colSpan)!==null&&ve!==void 0?ve:fn.colSpan)!==null&&fe!==void 0?fe:Cn)!==null&&le!==void 0?le:1,Sn=(xe=(Le=(Me=Xn==null?void 0:Xn.rowSpan)!==null&&Me!==void 0?Me:fn.rowSpan)!==null&&Le!==void 0?Le:$n)!==null&&xe!==void 0?xe:1,hn=ct(sn,Sn),rn=(0,De.Z)(hn,2),Yn=rn[0],ln=rn[1],En=function(Ea){var Ja;Ot&&ln(sn,sn+Sn-1),fn==null||(Ja=fn.onMouseEnter)===null||Ja===void 0||Ja.call(fn,Ea)},_n=function(Ea){var Ja;Ot&&ln(-1,-1),fn==null||(Ja=fn.onMouseLeave)===null||Ja===void 0||Ja.call(fn,Ea)};if(Pn===0||Sn===0)return null;var Zn=(ze=fn.title)!==null&&ze!==void 0?ze:Gt({rowType:qt,ellipsis:Qe,children:La}),Za=it()(Rn,Pt,(Ie={},(0,he.Z)(Ie,"".concat(Rn,"-fix-left"),ua&&Un),(0,he.Z)(Ie,"".concat(Rn,"-fix-left-first"),Ut&&Un),(0,he.Z)(Ie,"".concat(Rn,"-fix-left-last"),Kt&&Un),(0,he.Z)(Ie,"".concat(Rn,"-fix-left-all"),Kt&&ya&&Un),(0,he.Z)(Ie,"".concat(Rn,"-fix-right"),Ya&&Un),(0,he.Z)(Ie,"".concat(Rn,"-fix-right-first"),Qt&&Un),(0,he.Z)(Ie,"".concat(Rn,"-fix-right-last"),bn&&Un),(0,he.Z)(Ie,"".concat(Rn,"-ellipsis"),Qe),(0,he.Z)(Ie,"".concat(Rn,"-with-append"),Dn),(0,he.Z)(Ie,"".concat(Rn,"-fix-sticky"),(ua||Ya)&&Mn&&Un),(0,he.Z)(Ie,"".concat(Rn,"-row-hover"),!Xn&&Yn),Ie),fn.className,Xn==null?void 0:Xn.className),Ra={};At&&(Ra.textAlign=At);var ho=(0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({},ma),fn.style),Ra),Xn==null?void 0:Xn.style),wa=La;return(0,Se.Z)(wa)==="object"&&!Array.isArray(wa)&&!ae.isValidElement(wa)&&(wa=null),Qe&&(Kt||Qt)&&(wa=ae.createElement("span",{className:"".concat(Rn,"-content")},wa)),ae.createElement(Ye,(0,Re.Z)({},Xn,fn,{className:Za,style:ho,title:Zn,scope:bt,onMouseEnter:En,onMouseLeave:_n,colSpan:Pn!==1?Pn:null,rowSpan:Sn!==1?Sn:null}),Dn,wa)}var $t=ae.memo(nt);function ye(re,le,fe,ve,xe,Le){var Me=fe[re]||{},ze=fe[le]||{},Ie,Ye;Me.fixed==="left"?Ie=ve.left[xe==="rtl"?le:re]:ze.fixed==="right"&&(Ye=ve.right[xe==="rtl"?re:le]);var rt=!1,Qe=!1,bt=!1,pt=!1,Pt=fe[le+1],At=fe[re-1],Ot=!(Le!=null&&Le.children);if(xe==="rtl"){if(Ie!==void 0){var kt=At&&At.fixed==="left";pt=!kt&&Ot}else if(Ye!==void 0){var It=Pt&&Pt.fixed==="right";bt=!It&&Ot}}else if(Ie!==void 0){var jt=Pt&&Pt.fixed==="left";rt=!jt&&Ot}else if(Ye!==void 0){var dn=At&&At.fixed==="right";Qe=!dn&&Ot}return{fixLeft:Ie,fixRight:Ye,lastFixLeft:rt,firstFixRight:Qe,lastFixRight:bt,firstFixLeft:pt,isSticky:ve.isSticky}}var Et=ae.createContext({}),Ht=Et;function cn(re){var le=re.className,fe=re.index,ve=re.children,xe=re.colSpan,Le=xe===void 0?1:xe,Me=re.rowSpan,ze=re.align,Ie=He(ge,["prefixCls","direction"]),Ye=Ie.prefixCls,rt=Ie.direction,Qe=ae.useContext(Ht),bt=Qe.scrollColumnIndex,pt=Qe.stickyOffsets,Pt=Qe.flattenColumns,At=Qe.columns,Ot=fe+Le-1,kt=Ot+1===bt?Le+1:Le,It=ye(fe,fe+kt-1,Pt,pt,rt,At==null?void 0:At[fe]);return ae.createElement($t,(0,Re.Z)({className:le,index:fe,component:"td",prefixCls:Ye,record:null,dataIndex:null,align:ze,colSpan:kt,rowSpan:Me,render:function(){return ve}},It))}var Xt=ne(75931),Te=["children"];function $e(re){var le=re.children,fe=(0,Xt.Z)(re,Te);return ae.createElement("tr",fe,le)}function Fe(re){var le=re.children;return le}Fe.Row=$e,Fe.Cell=cn;var me=Fe;function Ue(re){var le=re.children,fe=re.stickyOffsets,ve=re.flattenColumns,xe=re.columns,Le=He(ge,"prefixCls"),Me=ve.length-1,ze=ve[Me],Ie=ae.useMemo(function(){return{stickyOffsets:fe,flattenColumns:ve,scrollColumnIndex:ze!=null&&ze.scrollbar?Me:null,columns:xe}},[ze,ve,Me,fe,xe]);return ae.createElement(Ht.Provider,{value:Ie},ae.createElement("tfoot",{className:"".concat(Le,"-summary")},le))}var vt=z(Ue),pe=me,ue=ne(70425),Ze=ne(29301),Ne=ne(29194),Pe=ne(3465),ke=ne(75152),Lt=ne(26112);function mt(re,le,fe,ve,xe,Le,Me){re.push({record:le,indent:fe,index:Me});var ze=Le(le),Ie=xe==null?void 0:xe.has(ze);if(le&&Array.isArray(le[ve])&&Ie)for(var Ye=0;Ye<le[ve].length;Ye+=1)mt(re,le[ve][Ye],fe+1,ve,xe,Le,Ye)}function xt(re,le,fe,ve){var xe=ae.useMemo(function(){if(fe!=null&&fe.size){for(var Le=[],Me=0;Me<(re==null?void 0:re.length);Me+=1){var ze=re[Me];mt(Le,ze,0,le,fe,ve,Me)}return Le}return re==null?void 0:re.map(function(Ie,Ye){return{record:Ie,indent:0,index:Ye}})},[re,le,fe,ve]);return xe}function lt(re){var le=re.prefixCls,fe=re.children,ve=re.component,xe=re.cellComponent,Le=re.className,Me=re.expanded,ze=re.colSpan,Ie=re.isEmpty,Ye=He(ge,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),rt=Ye.scrollbarSize,Qe=Ye.fixHeader,bt=Ye.fixColumn,pt=Ye.componentWidth,Pt=Ye.horizonScroll,At=fe;return(Ie?Pt&&pt:bt)&&(At=ae.createElement("div",{style:{width:pt-(Qe?rt:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(le,"-expanded-row-fixed")},At)),ae.createElement(ve,{className:Le,style:{display:Me?null:"none"}},ae.createElement($t,{component:xe,prefixCls:le,colSpan:ze},At))}var yt=lt;function ot(re,le,fe,ve){var xe=He(ge,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Le=xe.flattenColumns,Me=xe.expandableType,ze=xe.expandedKeys,Ie=xe.childrenColumnName,Ye=xe.onTriggerExpand,rt=xe.rowExpandable,Qe=xe.onRow,bt=xe.expandRowByClick,pt=xe.rowClassName,Pt=Me==="nest",At=Me==="row"&&(!rt||rt(re)),Ot=At||Pt,kt=ze&&ze.has(le),It=Ie&&re&&re[Ie],jt=(0,ue.useEvent)(Ye),dn=Qe==null?void 0:Qe(re,fe),sn=dn==null?void 0:dn.onClick,qt=function(en){bt&&Ot&&Ye(re,en);for(var Ut=arguments.length,Kt=new Array(Ut>1?Ut-1:0),Qt=1;Qt<Ut;Qt++)Kt[Qt-1]=arguments[Qt];sn==null||sn.apply(void 0,[en].concat(Kt))},Cn;typeof pt=="string"?Cn=pt:typeof pt=="function"&&(Cn=pt(re,fe,ve));var $n=wt(Le);return(0,Ee.Z)((0,Ee.Z)({},xe),{},{columnsKey:$n,nestExpandable:Pt,expanded:kt,hasNestChildren:It,record:re,onTriggerExpand:jt,rowSupportExpand:At,expandable:Ot,rowProps:(0,Ee.Z)((0,Ee.Z)({},dn),{},{className:it()(Cn,dn==null?void 0:dn.className),onClick:qt})})}function Zt(re,le,fe,ve,xe){var Le=re.record,Me=re.prefixCls,ze=re.columnsKey,Ie=re.fixedInfoList,Ye=re.expandIconColumnIndex,rt=re.nestExpandable,Qe=re.indentSize,bt=re.expandIcon,pt=re.expanded,Pt=re.hasNestChildren,At=re.onTriggerExpand,Ot=ze[fe],kt=Ie[fe],It;fe===(Ye||0)&&rt&&(It=ae.createElement(ae.Fragment,null,ae.createElement("span",{style:{paddingLeft:"".concat(Qe*ve,"px")},className:"".concat(Me,"-row-indent indent-level-").concat(ve)}),bt({prefixCls:Me,expanded:pt,expandable:Pt,record:Le,onExpand:At})));var jt;return le.onCell&&(jt=le.onCell(Le,xe)),{key:Ot,fixedInfo:kt,appendCellNode:It,additionalCellProps:jt||{}}}function Rt(re){var le=re.className,fe=re.style,ve=re.record,xe=re.index,Le=re.renderIndex,Me=re.rowKey,ze=re.indent,Ie=ze===void 0?0:ze,Ye=re.rowComponent,rt=re.cellComponent,Qe=re.scopeCellComponent,bt=ot(ve,Me,xe,Ie),pt=bt.prefixCls,Pt=bt.flattenColumns,At=bt.expandedRowClassName,Ot=bt.expandedRowRender,kt=bt.rowProps,It=bt.expanded,jt=bt.rowSupportExpand,dn=ae.useState(!1),sn=(0,De.Z)(dn,2),qt=sn[0],Cn=sn[1];ae.useEffect(function(){It&&Cn(!0)},[It]);var $n=ae.createElement(Ye,(0,Re.Z)({},kt,{"data-row-key":Me,className:it()(le,"".concat(pt,"-row"),"".concat(pt,"-row-level-").concat(Ie),kt==null?void 0:kt.className),style:(0,Ee.Z)((0,Ee.Z)({},fe),kt==null?void 0:kt.style)}),Pt.map(function(Kt,Qt){var bn=Kt.render,Dn=Kt.dataIndex,Fn=Kt.className,fn=Zt(bt,Kt,Qt,Ie,xe),Mn=fn.key,Rn=fn.fixedInfo,ga=fn.appendCellNode,Un=fn.additionalCellProps;return ae.createElement($t,(0,Re.Z)({className:Fn,ellipsis:Kt.ellipsis,align:Kt.align,scope:Kt.rowScope,component:Kt.rowScope?Qe:rt,prefixCls:pt,key:Mn,record:ve,index:xe,renderIndex:Le,dataIndex:Dn,render:bn,shouldCellUpdate:Kt.shouldCellUpdate},Rn,{appendNode:ga,additionalProps:Un}))})),Wt;if(jt&&(qt||It)){var en=Ot(ve,xe,Ie+1,It),Ut=At&&At(ve,xe,Ie);Wt=ae.createElement(yt,{expanded:It,className:it()("".concat(pt,"-expanded-row"),"".concat(pt,"-expanded-row-level-").concat(Ie+1),Ut),prefixCls:pt,component:Ye,cellComponent:rt,colSpan:Pt.length,isEmpty:!1},en)}return ae.createElement(ae.Fragment,null,$n,Wt)}Rt.displayName="BodyRow";var Nt=z(Rt);function Jt(re){var le=re.columnKey,fe=re.onColumnResize,ve=ae.useRef();return ae.useEffect(function(){ve.current&&fe(le,ve.current.offsetWidth)},[]),ae.createElement(Ze.Z,{data:le},ae.createElement("td",{ref:ve,style:{padding:0,border:0,height:0}},ae.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Yt(re){var le=re.prefixCls,fe=re.columnsKey,ve=re.onColumnResize;return ae.createElement("tr",{"aria-hidden":"true",className:"".concat(le,"-measure-row"),style:{height:0,fontSize:0}},ae.createElement(Ze.Z.Collection,{onBatchResize:function(Le){Le.forEach(function(Me){var ze=Me.data,Ie=Me.size;ve(ze,Ie.offsetWidth)})}},fe.map(function(xe){return ae.createElement(Jt,{key:xe,columnKey:xe,onColumnResize:ve})})))}function yn(re){var le=re.data,fe=re.measureColumnWidth,ve=He(ge,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),xe=ve.prefixCls,Le=ve.getComponent,Me=ve.onColumnResize,ze=ve.flattenColumns,Ie=ve.getRowKey,Ye=ve.expandedKeys,rt=ve.childrenColumnName,Qe=ve.emptyNode,bt=xt(le,rt,Ye,Ie),pt=ae.useRef({renderWithProps:!1}),Pt=Le(["body","wrapper"],"tbody"),At=Le(["body","row"],"tr"),Ot=Le(["body","cell"],"td"),kt=Le(["body","cell"],"th"),It;le.length?It=bt.map(function(dn,sn){var qt=dn.record,Cn=dn.indent,$n=dn.index,Wt=Ie(qt,sn);return ae.createElement(Nt,{key:Wt,rowKey:Wt,record:qt,index:sn,renderIndex:$n,rowComponent:At,cellComponent:Ot,scopeCellComponent:kt,getRowKey:Ie,indent:Cn})}):It=ae.createElement(yt,{expanded:!0,className:"".concat(xe,"-placeholder"),prefixCls:xe,component:At,cellComponent:Ot,colSpan:ze.length,isEmpty:!0},Qe);var jt=wt(ze);return ae.createElement(at.Provider,{value:pt.current},ae.createElement(Pt,{className:"".concat(xe,"-tbody")},fe&&ae.createElement(Yt,{prefixCls:xe,columnsKey:jt,onColumnResize:Me}),It))}yn.displayName="Body";var on=z(yn),Nn=["expandable"],Gn="RC_TABLE_INTERNAL_COL_DEFINE";function Hn(re){var le=re.expandable,fe=(0,Xt.Z)(re,Nn),ve;return"expandable"in re?ve=(0,Ee.Z)((0,Ee.Z)({},fe),le):ve=fe,ve.showExpandColumn===!1&&(ve.expandIconColumnIndex=-1),ve}var ht=["columnType"];function ut(re){for(var le=re.colWidths,fe=re.columns,ve=re.columCount,xe=[],Le=ve||fe.length,Me=!1,ze=Le-1;ze>=0;ze-=1){var Ie=le[ze],Ye=fe&&fe[ze],rt=Ye&&Ye[Gn];if(Ie||rt||Me){var Qe=rt||{},bt=Qe.columnType,pt=(0,Xt.Z)(Qe,ht);xe.unshift(ae.createElement("col",(0,Re.Z)({key:ze,style:{width:Ie}},pt))),Me=!0}}return ae.createElement("colgroup",null,xe)}var dt=ut,Ct=ne(94480),pn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Bn(re,le){return(0,ae.useMemo)(function(){for(var fe=[],ve=0;ve<le;ve+=1){var xe=re[ve];if(xe!==void 0)fe[ve]=xe;else return null}return fe},[re.join("_"),le])}var vn=ae.forwardRef(function(re,le){var fe=re.className,ve=re.noData,xe=re.columns,Le=re.flattenColumns,Me=re.colWidths,ze=re.columCount,Ie=re.stickyOffsets,Ye=re.direction,rt=re.fixHeader,Qe=re.stickyTopOffset,bt=re.stickyBottomOffset,pt=re.stickyClassName,Pt=re.onScroll,At=re.maxContentScroll,Ot=re.children,kt=(0,Xt.Z)(re,pn),It=He(ge,["prefixCls","scrollbarSize","isSticky"]),jt=It.prefixCls,dn=It.scrollbarSize,sn=It.isSticky,qt=sn&&!rt?0:dn,Cn=ae.useRef(null),$n=ae.useCallback(function(Fn){(0,et.mH)(le,Fn),(0,et.mH)(Cn,Fn)},[]);ae.useEffect(function(){var Fn;function fn(Mn){var Rn=Mn,ga=Rn.currentTarget,Un=Rn.deltaX;Un&&(Pt({currentTarget:ga,scrollLeft:ga.scrollLeft+Un}),Mn.preventDefault())}return(Fn=Cn.current)===null||Fn===void 0||Fn.addEventListener("wheel",fn),function(){var Mn;(Mn=Cn.current)===null||Mn===void 0||Mn.removeEventListener("wheel",fn)}},[]);var Wt=ae.useMemo(function(){return Le.every(function(Fn){return Fn.width})},[Le]),en=Le[Le.length-1],Ut={fixed:en?en.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(jt,"-cell-scrollbar")}}},Kt=(0,ae.useMemo)(function(){return qt?[].concat((0,Ct.Z)(xe),[Ut]):xe},[qt,xe]),Qt=(0,ae.useMemo)(function(){return qt?[].concat((0,Ct.Z)(Le),[Ut]):Le},[qt,Le]),bn=(0,ae.useMemo)(function(){var Fn=Ie.right,fn=Ie.left;return(0,Ee.Z)((0,Ee.Z)({},Ie),{},{left:Ye==="rtl"?[].concat((0,Ct.Z)(fn.map(function(Mn){return Mn+qt})),[0]):fn,right:Ye==="rtl"?Fn:[].concat((0,Ct.Z)(Fn.map(function(Mn){return Mn+qt})),[0]),isSticky:sn})},[qt,Ie,sn]),Dn=Bn(Me,ze);return ae.createElement("div",{style:(0,Ee.Z)({overflow:"hidden"},sn?{top:Qe,bottom:bt}:{}),ref:$n,className:it()(fe,(0,he.Z)({},pt,!!pt))},ae.createElement("table",{style:{tableLayout:"fixed",visibility:ve||Dn?null:"hidden"}},(!ve||!At||Wt)&&ae.createElement(dt,{colWidths:Dn?[].concat((0,Ct.Z)(Dn),[qt]):[],columCount:ze+1,columns:Qt}),Ot((0,Ee.Z)((0,Ee.Z)({},kt),{},{stickyOffsets:bn,columns:Kt,flattenColumns:Qt}))))});vn.displayName="FixedHolder";var wn=ae.memo(vn);function Ln(re){var le=re.cells,fe=re.stickyOffsets,ve=re.flattenColumns,xe=re.rowComponent,Le=re.cellComponent,Me=re.tdCellComponent,ze=re.onHeaderRow,Ie=re.index,Ye=He(ge,["prefixCls","direction"]),rt=Ye.prefixCls,Qe=Ye.direction,bt;ze&&(bt=ze(le.map(function(Pt){return Pt.column}),Ie));var pt=wt(le.map(function(Pt){return Pt.column}));return ae.createElement(xe,bt,le.map(function(Pt,At){var Ot=Pt.column,kt=ye(Pt.colStart,Pt.colEnd,ve,fe,Qe,Ot),It;return Ot&&Ot.onHeaderCell&&(It=Pt.column.onHeaderCell(Ot)),ae.createElement($t,(0,Re.Z)({},Pt,{scope:Ot.title?Pt.colSpan>1?"colgroup":"col":null,ellipsis:Ot.ellipsis,align:Ot.align,component:Ot.title?Le:Me,prefixCls:rt,key:pt[At]},kt,{additionalProps:It,rowType:"header"}))}))}Ln.displayName="HeaderRow";var kn=Ln;function ca(re){var le=[];function fe(Me,ze){var Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;le[Ie]=le[Ie]||[];var Ye=ze,rt=Me.filter(Boolean).map(function(Qe){var bt={key:Qe.key,className:Qe.className||"",children:Qe.title,column:Qe,colStart:Ye},pt=1,Pt=Qe.children;return Pt&&Pt.length>0&&(pt=fe(Pt,Ye,Ie+1).reduce(function(At,Ot){return At+Ot},0),bt.hasSubColumns=!0),"colSpan"in Qe&&(pt=Qe.colSpan),"rowSpan"in Qe&&(bt.rowSpan=Qe.rowSpan),bt.colSpan=pt,bt.colEnd=bt.colStart+pt-1,le[Ie].push(bt),Ye+=pt,pt});return rt}fe(re,0);for(var ve=le.length,xe=function(ze){le[ze].forEach(function(Ie){!("rowSpan"in Ie)&&!Ie.hasSubColumns&&(Ie.rowSpan=ve-ze)})},Le=0;Le<ve;Le+=1)xe(Le);return le}function da(re){var le=re.stickyOffsets,fe=re.columns,ve=re.flattenColumns,xe=re.onHeaderRow,Le=He(ge,["prefixCls","getComponent"]),Me=Le.prefixCls,ze=Le.getComponent,Ie=ae.useMemo(function(){return ca(fe)},[fe]),Ye=ze(["header","wrapper"],"thead"),rt=ze(["header","row"],"tr"),Qe=ze(["header","cell"],"th"),bt=ze(["header","cell"],"td");return ae.createElement(Ye,{className:"".concat(Me,"-thead")},Ie.map(function(pt,Pt){var At=ae.createElement(kn,{key:Pt,flattenColumns:ve,cells:pt,stickyOffsets:le,rowComponent:rt,cellComponent:Qe,tdCellComponent:bt,onHeaderRow:xe,index:Pt});return At}))}var jn=z(da),Jn=ne(11592);function ha(re){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof le=="number"?le:le.endsWith("%")?re*parseFloat(le)/100:null}function ao(re,le){return ae.useMemo(function(){if(le&&le>0){var fe=0,ve=0;re.forEach(function(Ye){var rt=ha(le,Ye.width);rt?fe+=rt:ve+=1});var xe=le-fe,Le=ve,Me=xe/ve,ze=0,Ie=re.map(function(Ye){var rt=(0,Ee.Z)({},Ye),Qe=ha(le,rt.width);if(Qe)rt.width=Qe;else{var bt=Math.floor(Me);rt.width=Le===1?xe:bt,xe-=bt,Le-=1}return ze+=rt.width,rt});return[Ie,ze]}return[re,le]},[re,le])}var Ge=["children"],Xe=["fixed"];function _e(re){return(0,Jn.Z)(re).filter(function(le){return ae.isValidElement(le)}).map(function(le){var fe=le.key,ve=le.props,xe=ve.children,Le=(0,Xt.Z)(ve,Ge),Me=(0,Ee.Z)({key:fe},Le);return xe&&(Me.children=_e(xe)),Me})}function zt(re){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return re.filter(function(fe){return fe&&(0,Se.Z)(fe)==="object"}).reduce(function(fe,ve,xe){var Le=ve.fixed,Me=Le===!0?"left":Le,ze="".concat(le,"-").concat(xe),Ie=ve.children;return Ie&&Ie.length>0?[].concat((0,Ct.Z)(fe),(0,Ct.Z)(zt(Ie,ze).map(function(Ye){return(0,Ee.Z)({fixed:Me},Ye)}))):[].concat((0,Ct.Z)(fe),[(0,Ee.Z)((0,Ee.Z)({key:ze},ve),{},{fixed:Me})])},[])}function un(re){for(var le=!0,fe=0;fe<re.length;fe+=1){var ve=re[fe];if(le&&ve.fixed!=="left")le=!1;else if(!le&&ve.fixed==="left"){warning(!1,"Index ".concat(fe-1," of `columns` missing `fixed='left'` prop."));break}}for(var xe=!0,Le=re.length-1;Le>=0;Le-=1){var Me=re[Le];if(xe&&Me.fixed!=="right")xe=!1;else if(!xe&&Me.fixed==="right"){warning(!1,"Index ".concat(Le+1," of `columns` missing `fixed='right'` prop."));break}}}function tn(re){return re.map(function(le){var fe=le.fixed,ve=(0,Xt.Z)(le,Xe),xe=fe;return fe==="left"?xe="right":fe==="right"&&(xe="left"),(0,Ee.Z)({fixed:xe},ve)})}function Vn(re,le){var fe=re.prefixCls,ve=re.columns,xe=re.children,Le=re.expandable,Me=re.expandedKeys,ze=re.columnTitle,Ie=re.getRowKey,Ye=re.onTriggerExpand,rt=re.expandIcon,Qe=re.rowExpandable,bt=re.expandIconColumnIndex,pt=re.direction,Pt=re.expandRowByClick,At=re.columnWidth,Ot=re.fixed,kt=re.scrollWidth,It=ae.useMemo(function(){return ve||_e(xe)},[ve,xe]),jt=ae.useMemo(function(){if(Le){var en,Ut=It.slice();if(!Ut.includes(ie)){var Kt=bt||0;Kt>=0&&Ut.splice(Kt,0,ie)}var Qt=Ut.indexOf(ie);Ut=Ut.filter(function(fn,Mn){return fn!==ie||Mn===Qt});var bn=It[Qt],Dn;(Ot==="left"||Ot)&&!bt?Dn="left":(Ot==="right"||Ot)&&bt===It.length?Dn="right":Dn=bn?bn.fixed:null;var Fn=(en={},(0,he.Z)(en,Gn,{className:"".concat(fe,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,he.Z)(en,"title",ze),(0,he.Z)(en,"fixed",Dn),(0,he.Z)(en,"className","".concat(fe,"-row-expand-icon-cell")),(0,he.Z)(en,"width",At),(0,he.Z)(en,"render",function(Mn,Rn,ga){var Un=Ie(Rn,ga),ya=Me.has(Un),ba=Qe?Qe(Rn):!0,On=rt({prefixCls:fe,expanded:ya,expandable:ba,record:Rn,onExpand:Ye});return Pt?ae.createElement("span",{onClick:function(Xn){return Xn.stopPropagation()}},On):On}),en);return Ut.map(function(fn){return fn===ie?Fn:fn})}return It.filter(function(fn){return fn!==ie})},[Le,It,Ie,Me,rt,pt]),dn=ae.useMemo(function(){var en=jt;return le&&(en=le(en)),en.length||(en=[{render:function(){return null}}]),en},[le,jt,pt]),sn=ae.useMemo(function(){return pt==="rtl"?tn(zt(dn)):zt(dn)},[dn,pt,kt]),qt=ao(sn,kt),Cn=(0,De.Z)(qt,2),$n=Cn[0],Wt=Cn[1];return[dn,$n,Wt]}var gn=Vn;function zn(re){var le,fe=re.prefixCls,ve=re.record,xe=re.onExpand,Le=re.expanded,Me=re.expandable,ze="".concat(fe,"-row-expand-icon");if(!Me)return ae.createElement("span",{className:it()(ze,"".concat(fe,"-row-spaced"))});var Ie=function(rt){xe(ve,rt),rt.stopPropagation()};return ae.createElement("span",{className:it()(ze,(le={},(0,he.Z)(le,"".concat(fe,"-row-expanded"),Le),(0,he.Z)(le,"".concat(fe,"-row-collapsed"),!Le),le)),onClick:Ie})}function Qn(re,le,fe){var ve=[];function xe(Le){(Le||[]).forEach(function(Me,ze){ve.push(le(Me,ze)),xe(Me[fe])})}return xe(re),ve}function Ba(re,le,fe){var ve=Hn(re),xe=ve.expandIcon,Le=ve.expandedRowKeys,Me=ve.defaultExpandedRowKeys,ze=ve.defaultExpandAllRows,Ie=ve.expandedRowRender,Ye=ve.onExpand,rt=ve.onExpandedRowsChange,Qe=ve.childrenColumnName,bt=xe||zn,pt=Qe||"children",Pt=ae.useMemo(function(){return Ie?"row":re.expandable&&re.internalHooks===ce&&re.expandable.__PARENT_RENDER_ICON__||le.some(function(sn){return sn&&(0,Se.Z)(sn)==="object"&&sn[pt]})?"nest":!1},[!!Ie,le]),At=ae.useState(function(){return Me||(ze?Qn(le,fe,pt):[])}),Ot=(0,De.Z)(At,2),kt=Ot[0],It=Ot[1],jt=ae.useMemo(function(){return new Set(Le||kt||[])},[Le,kt]),dn=ae.useCallback(function(sn){var qt=fe(sn,le.indexOf(sn)),Cn,$n=jt.has(qt);$n?(jt.delete(qt),Cn=(0,Ct.Z)(jt)):Cn=[].concat((0,Ct.Z)(jt),[qt]),It(Cn),Ye&&Ye(!$n,sn),rt&&rt(Cn)},[fe,jt,le,Ye,rt]);return[ve,Pt,jt,bt,pt,dn]}function Bt(re,le,fe,ve){var xe=re.map(function(Le,Me){return ye(Me,Me,re,le,fe,ve==null?void 0:ve[Me])});return(0,_t.Z)(function(){return xe},[xe],function(Le,Me){return!(0,Be.Z)(Le,Me)})}function Kn(re){var le=(0,ae.useRef)(re),fe=(0,ae.useState)({}),ve=(0,De.Z)(fe,2),xe=ve[1],Le=(0,ae.useRef)(null),Me=(0,ae.useRef)([]);function ze(Ie){Me.current.push(Ie);var Ye=Promise.resolve();Le.current=Ye,Ye.then(function(){if(Le.current===Ye){var rt=Me.current,Qe=le.current;Me.current=[],rt.forEach(function(bt){le.current=bt(le.current)}),Le.current=null,Qe!==le.current&&xe({})}})}return(0,ae.useEffect)(function(){return function(){Le.current=null}},[]),[le.current,ze]}function Ca(re){var le=(0,ae.useRef)(re||null),fe=(0,ae.useRef)();function ve(){window.clearTimeout(fe.current)}function xe(Me){le.current=Me,ve(),fe.current=window.setTimeout(function(){le.current=null,fe.current=void 0},100)}function Le(){return le.current}return(0,ae.useEffect)(function(){return ve},[]),[xe,Le]}function ta(){var re=ae.useState(-1),le=(0,De.Z)(re,2),fe=le[0],ve=le[1],xe=ae.useState(-1),Le=(0,De.Z)(xe,2),Me=Le[0],ze=Le[1],Ie=ae.useCallback(function(Ye,rt){ve(Ye),ze(rt)},[]);return[fe,Me,Ie]}var la=ne(47273),na=(0,la.Z)()?window:null;function Aa(re,le){var fe=(0,Se.Z)(re)==="object"?re:{},ve=fe.offsetHeader,xe=ve===void 0?0:ve,Le=fe.offsetSummary,Me=Le===void 0?0:Le,ze=fe.offsetScroll,Ie=ze===void 0?0:ze,Ye=fe.getContainer,rt=Ye===void 0?function(){return na}:Ye,Qe=rt()||na;return ae.useMemo(function(){var bt=!!re;return{isSticky:bt,stickyClassName:bt?"".concat(le,"-sticky-holder"):"",offsetHeader:xe,offsetSummary:Me,offsetScroll:Ie,container:Qe}},[Ie,xe,Me,le,Qe])}function Da(re,le,fe){var ve=(0,ae.useMemo)(function(){for(var xe=[],Le=[],Me=0,ze=0,Ie=0;Ie<le;Ie+=1)if(fe==="rtl"){Le[Ie]=ze,ze+=re[Ie]||0;var Ye=le-Ie-1;xe[Ye]=Me,Me+=re[Ye]||0}else{xe[Ie]=Me,Me+=re[Ie]||0;var rt=le-Ie-1;Le[rt]=ze,ze+=re[rt]||0}return{left:xe,right:Le}},[re,le,fe]);return ve}var _a=Da;function ro(re){var le=re.className,fe=re.children;return ae.createElement("div",{className:le},fe)}var Xa=ro,xa=ne(8224),bo=ne(55468),xo=function(le,fe){var ve,xe,Le=le.scrollBodyRef,Me=le.onScroll,ze=le.offsetScroll,Ie=le.container,Ye=He(ge,"prefixCls"),rt=((ve=Le.current)===null||ve===void 0?void 0:ve.scrollWidth)||0,Qe=((xe=Le.current)===null||xe===void 0?void 0:xe.clientWidth)||0,bt=rt&&Qe*(Qe/rt),pt=ae.useRef(),Pt=Kn({scrollLeft:0,isHiddenScrollBar:!1}),At=(0,De.Z)(Pt,2),Ot=At[0],kt=At[1],It=ae.useRef({delta:0,x:0}),jt=ae.useState(!1),dn=(0,De.Z)(jt,2),sn=dn[0],qt=dn[1],Cn=function(){qt(!1)},$n=function(Qt){Qt.persist(),It.current.delta=Qt.pageX-Ot.scrollLeft,It.current.x=0,qt(!0),Qt.preventDefault()},Wt=function(Qt){var bn,Dn=Qt||((bn=window)===null||bn===void 0?void 0:bn.event),Fn=Dn.buttons;if(!sn||Fn===0){sn&&qt(!1);return}var fn=It.current.x+Qt.pageX-It.current.x-It.current.delta;fn<=0&&(fn=0),fn+bt>=Qe&&(fn=Qe-bt),Me({scrollLeft:fn/Qe*(rt+2)}),It.current.x=Qt.pageX},en=function(){if(Le.current){var Qt=(0,bo.os)(Le.current).top,bn=Qt+Le.current.offsetHeight,Dn=Ie===window?document.documentElement.scrollTop+window.innerHeight:(0,bo.os)(Ie).top+Ie.clientHeight;bn-(0,ke.Z)()<=Dn||Qt>=Dn-ze?kt(function(Fn){return(0,Ee.Z)((0,Ee.Z)({},Fn),{},{isHiddenScrollBar:!0})}):kt(function(Fn){return(0,Ee.Z)((0,Ee.Z)({},Fn),{},{isHiddenScrollBar:!1})})}},Ut=function(Qt){kt(function(bn){return(0,Ee.Z)((0,Ee.Z)({},bn),{},{scrollLeft:Qt/rt*Qe||0})})};return ae.useImperativeHandle(fe,function(){return{setScrollLeft:Ut}}),ae.useEffect(function(){var Kt=(0,xa.Z)(document.body,"mouseup",Cn,!1),Qt=(0,xa.Z)(document.body,"mousemove",Wt,!1);return en(),function(){Kt.remove(),Qt.remove()}},[bt,sn]),ae.useEffect(function(){var Kt=(0,xa.Z)(Ie,"scroll",en,!1),Qt=(0,xa.Z)(window,"resize",en,!1);return function(){Kt.remove(),Qt.remove()}},[Ie]),ae.useEffect(function(){Ot.isHiddenScrollBar||kt(function(Kt){var Qt=Le.current;return Qt?(0,Ee.Z)((0,Ee.Z)({},Kt),{},{scrollLeft:Qt.scrollLeft/Qt.scrollWidth*Qt.clientWidth}):Kt})},[Ot.isHiddenScrollBar]),rt<=Qe||!bt||Ot.isHiddenScrollBar?null:ae.createElement("div",{style:{height:(0,ke.Z)(),width:Qe,bottom:ze},className:"".concat(Ye,"-sticky-scroll")},ae.createElement("div",{onMouseDown:$n,ref:pt,className:it()("".concat(Ye,"-sticky-scroll-bar"),(0,he.Z)({},"".concat(Ye,"-sticky-scroll-bar-active"),sn)),style:{width:"".concat(bt,"px"),transform:"translate3d(".concat(Ot.scrollLeft,"px, 0, 0)")}}))},zo=ae.forwardRef(xo);function oo(re){return null}var Dt=oo;function _o(re){return null}var Io=_o,Co="rc-table",Mt=[],xn={};function In(){return"No Data"}function Tn(re){var le,fe=(0,Ee.Z)({rowKey:"key",prefixCls:Co,emptyText:In},re),ve=fe.prefixCls,xe=fe.className,Le=fe.rowClassName,Me=fe.style,ze=fe.data,Ie=fe.rowKey,Ye=fe.scroll,rt=fe.tableLayout,Qe=fe.direction,bt=fe.title,pt=fe.footer,Pt=fe.summary,At=fe.caption,Ot=fe.id,kt=fe.showHeader,It=fe.components,jt=fe.emptyText,dn=fe.onRow,sn=fe.onHeaderRow,qt=fe.internalHooks,Cn=fe.transformColumns,$n=fe.internalRefs,Wt=fe.tailor,en=fe.sticky,Ut=ze||Mt,Kt=!!Ut.length,Qt=qt===ce,bn=ae.useCallback(function(oa,fa){return(0,Ce.Z)(It,oa)||fa},[It]),Dn=ae.useMemo(function(){return typeof Ie=="function"?Ie:function(oa){var fa=oa&&oa[Ie];return fa}},[Ie]),Fn=bn(["body"]),fn=ta(),Mn=(0,De.Z)(fn,3),Rn=Mn[0],ga=Mn[1],Un=Mn[2],ya=Ba(fe,Ut,Dn),ba=(0,De.Z)(ya,6),On=ba[0],La=ba[1],Xn=ba[2],ma=ba[3],ua=ba[4],Ya=ba[5],Pn=Ye==null?void 0:Ye.x,Sn=ae.useState(0),hn=(0,De.Z)(Sn,2),rn=hn[0],Yn=hn[1],ln=gn((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({},fe),On),{},{expandable:!!On.expandedRowRender,columnTitle:On.columnTitle,expandedKeys:Xn,getRowKey:Dn,onTriggerExpand:Ya,expandIcon:ma,expandIconColumnIndex:On.expandIconColumnIndex,direction:Qe,scrollWidth:Qt&&Wt&&typeof Pn=="number"?Pn:null}),Qt?Cn:null),En=(0,De.Z)(ln,3),_n=En[0],Zn=En[1],Za=En[2],Ra=Za!=null?Za:Pn,ho=ae.useMemo(function(){return{columns:_n,flattenColumns:Zn}},[_n,Zn]),wa=ae.useRef(),lo=ae.useRef(),Ea=ae.useRef(),Ja=ae.useRef(),Do=ae.useRef(),ea=ae.useState(!1),aa=(0,De.Z)(ea,2),pa=aa[0],Na=aa[1],$a=ae.useState(!1),An=(0,De.Z)($a,2),Ua=An[0],Ha=An[1],no=Kn(new Map),vo=(0,De.Z)(no,2),So=vo[0],tr=vo[1],Eo=wt(Zn),so=Eo.map(function(oa){return So.get(oa)}),Qa=ae.useMemo(function(){return so},[so.join("_")]),Va=_a(Qa,Zn.length,Qe),Oa=Ye&&Ft(Ye.y),va=Ye&&Ft(Ra)||!!On.fixed,Po=va&&Zn.some(function(oa){var fa=oa.fixed;return fa}),Mo=ae.useRef(),No=Aa(en,ve),yo=No.isSticky,fr=No.offsetHeader,Ar=No.offsetSummary,Wn=No.offsetScroll,sa=No.stickyClassName,Ga=No.container,Pa=ae.useMemo(function(){return Pt==null?void 0:Pt(Ut)},[Pt,Ut]),ja=(Oa||yo)&&ae.isValidElement(Pa)&&Pa.type===me&&Pa.props.fixed,qa,eo,Bo;Oa&&(eo={overflowY:"scroll",maxHeight:Ye.y}),va&&(qa={overflowX:"auto"},Oa||(eo={overflowY:"hidden"}),Bo={width:Ra===!0?"auto":Ra,minWidth:"100%"});var mi=ae.useCallback(function(oa,fa){(0,Ne.Z)(wa.current)&&tr(function(co){if(co.get(oa)!==fa){var $o=new Map(co);return $o.set(oa,fa),$o}return co})},[]),Bl=Ca(null),fi=(0,De.Z)(Bl,2),Fl=fi[0],hi=fi[1];function hr(oa,fa){fa&&(typeof fa=="function"?fa(oa):fa.scrollLeft!==oa&&(fa.scrollLeft=oa,fa.scrollLeft!==oa&&setTimeout(function(){fa.scrollLeft=oa},0)))}var jo=(0,We.Z)(function(oa){var fa=oa.currentTarget,co=oa.scrollLeft,$o=Qe==="rtl",Oo=typeof co=="number"?co:fa.scrollLeft,$i=fa||xn;if(!hi()||hi()===$i){var Hr;Fl($i),hr(Oo,lo.current),hr(Oo,Ea.current),hr(Oo,Do.current),hr(Oo,(Hr=Mo.current)===null||Hr===void 0?void 0:Hr.setScrollLeft)}var jr=fa||lo.current;if(jr){var _r=jr.scrollWidth,Wr=jr.clientWidth;if(_r===Wr){Na(!1),Ha(!1);return}$o?(Na(-Oo<_r-Wr),Ha(-Oo>0)):(Na(Oo>0),Ha(Oo<_r-Wr))}}),Si=function(){va&&Ea.current?jo({currentTarget:Ea.current}):(Na(!1),Ha(!1))},Nl=function(fa){var co=fa.width;co!==rn&&(Si(),Yn(wa.current?wa.current.offsetWidth:co))},pi=ae.useRef(!1);ae.useEffect(function(){pi.current&&Si()},[va,ze,_n.length]),ae.useEffect(function(){pi.current=!0},[]);var $l=ae.useState(0),vi=(0,De.Z)($l,2),Sr=vi[0],Pi=vi[1],Ol=ae.useState(!0),yi=(0,De.Z)(Ol,2),bi=yi[0],Il=yi[1];ae.useEffect(function(){(!Wt||!Qt)&&(Ea.current instanceof Element?Pi((0,ke.o)(Ea.current).width):Pi((0,ke.o)(Ja.current).width)),Il((0,Pe.G)("position","sticky"))},[]),ae.useEffect(function(){Qt&&$n&&($n.body.current=Ea.current)});var Tl=ae.useCallback(function(oa){return ae.createElement(ae.Fragment,null,ae.createElement(jn,oa),ja==="top"&&ae.createElement(vt,oa,Pa))},[ja,Pa]),Dl=ae.useCallback(function(oa){return ae.createElement(vt,oa,Pa)},[Pa]),xi=bn(["table"],"table"),pr=ae.useMemo(function(){return rt||(Po?Ra==="max-content"?"auto":"fixed":Oa||yo||Zn.some(function(oa){var fa=oa.ellipsis;return fa})?"fixed":"auto")},[Oa,Po,Zn,rt,yo]),kr,Gr={colWidths:Qa,columCount:Zn.length,stickyOffsets:Va,onHeaderRow:sn,fixHeader:Oa,scroll:Ye},Ci=ae.useMemo(function(){return Kt?null:typeof jt=="function"?jt():jt},[Kt,jt]),Li=ae.createElement(on,{data:Ut,measureColumnWidth:Oa||va||yo}),wi=ae.createElement(dt,{colWidths:Zn.map(function(oa){var fa=oa.width;return fa}),columns:Zn}),Ei=At!=null?ae.createElement("caption",{className:"".concat(ve,"-caption")},At):void 0,Ml=(0,Lt.Z)(fe,{data:!0}),Bi=(0,Lt.Z)(fe,{aria:!0});if(Oa||yo){var Kr;typeof Fn=="function"?(Kr=Fn(Ut,{scrollbarSize:Sr,ref:Ea,onScroll:jo}),Gr.colWidths=Zn.map(function(oa,fa){var co=oa.width,$o=fa===Zn.length-1?co-Sr:co;return typeof $o=="number"&&!Number.isNaN($o)?$o:0})):Kr=ae.createElement("div",{style:(0,Ee.Z)((0,Ee.Z)({},qa),eo),onScroll:jo,ref:Ea,className:it()("".concat(ve,"-body"))},ae.createElement(xi,(0,Re.Z)({style:(0,Ee.Z)((0,Ee.Z)({},Bo),{},{tableLayout:pr})},Bi),Ei,wi,Li,!ja&&Pa&&ae.createElement(vt,{stickyOffsets:Va,flattenColumns:Zn,columns:_n},Pa)));var Fi=(0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({noData:!Ut.length,maxContentScroll:va&&Ra==="max-content"},Gr),ho),{},{direction:Qe,stickyClassName:sa,onScroll:jo});kr=ae.createElement(ae.Fragment,null,kt!==!1&&ae.createElement(wn,(0,Re.Z)({},Fi,{stickyTopOffset:fr,className:"".concat(ve,"-header"),ref:lo}),Tl),Kr,ja&&ja!=="top"&&ae.createElement(wn,(0,Re.Z)({},Fi,{stickyBottomOffset:Ar,className:"".concat(ve,"-summary"),ref:Do}),Dl),yo&&ae.createElement(zo,{ref:Mo,offsetScroll:Wn,scrollBodyRef:Ea,onScroll:jo,container:Ga}))}else kr=ae.createElement("div",{style:(0,Ee.Z)((0,Ee.Z)({},qa),eo),className:it()("".concat(ve,"-content")),onScroll:jo,ref:Ea},ae.createElement(xi,(0,Re.Z)({style:(0,Ee.Z)((0,Ee.Z)({},Bo),{},{tableLayout:pr})},Bi),Ei,wi,kt!==!1&&ae.createElement(jn,(0,Re.Z)({},Gr,ho)),Li,Pa&&ae.createElement(vt,{stickyOffsets:Va,flattenColumns:Zn,columns:_n},Pa)));var Zr=ae.createElement("div",(0,Re.Z)({className:it()(ve,xe,(le={},(0,he.Z)(le,"".concat(ve,"-rtl"),Qe==="rtl"),(0,he.Z)(le,"".concat(ve,"-ping-left"),pa),(0,he.Z)(le,"".concat(ve,"-ping-right"),Ua),(0,he.Z)(le,"".concat(ve,"-layout-fixed"),rt==="fixed"),(0,he.Z)(le,"".concat(ve,"-fixed-header"),Oa),(0,he.Z)(le,"".concat(ve,"-fixed-column"),Po),(0,he.Z)(le,"".concat(ve,"-scroll-horizontal"),va),(0,he.Z)(le,"".concat(ve,"-has-fix-left"),Zn[0]&&Zn[0].fixed),(0,he.Z)(le,"".concat(ve,"-has-fix-right"),Zn[Zn.length-1]&&Zn[Zn.length-1].fixed==="right"),le)),style:Me,id:Ot,ref:wa},Ml),bt&&ae.createElement(Xa,{className:"".concat(ve,"-title")},bt(Ut)),ae.createElement("div",{ref:Ja,className:"".concat(ve,"-container")},kr),pt&&ae.createElement(Xa,{className:"".concat(ve,"-footer")},pt(Ut)));va&&(Zr=ae.createElement(Ze.Z,{onResize:Nl},Zr));var Ni=Bt(Zn,Va,Qe,_n),zl=ae.useMemo(function(){return{scrollX:Ra,prefixCls:ve,getComponent:bn,scrollbarSize:Sr,direction:Qe,fixedInfoList:Ni,isSticky:yo,supportSticky:bi,componentWidth:rn,fixHeader:Oa,fixColumn:Po,horizonScroll:va,tableLayout:pr,rowClassName:Le,expandedRowClassName:On.expandedRowClassName,expandIcon:ma,expandableType:La,expandRowByClick:On.expandRowByClick,expandedRowRender:On.expandedRowRender,onTriggerExpand:Ya,expandIconColumnIndex:On.expandIconColumnIndex,indentSize:On.indentSize,allColumnsFixedLeft:Zn.every(function(oa){return oa.fixed==="left"}),emptyNode:Ci,columns:_n,flattenColumns:Zn,onColumnResize:mi,hoverStartRow:Rn,hoverEndRow:ga,onHover:Un,rowExpandable:On.rowExpandable,onRow:dn,getRowKey:Dn,expandedKeys:Xn,childrenColumnName:ua}},[Ra,ve,bn,Sr,Qe,Ni,yo,bi,rn,Oa,Po,va,pr,Le,On.expandedRowClassName,ma,La,On.expandRowByClick,On.expandedRowRender,Ya,On.expandIconColumnIndex,On.indentSize,Ci,_n,Zn,mi,Rn,ga,Un,On.rowExpandable,dn,Dn,Xn,ua]);return ae.createElement(ge.Provider,{value:zl},Zr)}function ra(re){return E(Tn,re)}var ia=ra();ia.EXPAND_COLUMN=ie,ia.INTERNAL_HOOKS=ce,ia.Column=Dt,ia.ColumnGroup=Io,ia.Summary=pe;var Ta=ia,Ka=ne(48911),to=Ve(null),To=Ve(null);function Wo(re,le,fe){var ve=le||1;return fe[re+ve]-(fe[re]||0)}function Uo(re){var le=re.rowInfo,fe=re.column,ve=re.colIndex,xe=re.indent,Le=re.index,Me=re.renderIndex,ze=re.record,Ie=re.style,Ye=re.className,rt=re.inverse,Qe=re.getHeight,bt=fe.render,pt=fe.dataIndex,Pt=fe.className,At=fe.width,Ot=He(To,["columnsOffset"]),kt=Ot.columnsOffset,It=Zt(le,fe,ve,xe,Le),jt=It.key,dn=It.fixedInfo,sn=It.appendCellNode,qt=It.additionalCellProps,Cn=qt.style,$n=qt.colSpan,Wt=$n===void 0?1:$n,en=qt.rowSpan,Ut=en===void 0?1:en,Kt=ve-1,Qt=Wo(Kt,Wt,kt),bn=Wt>1?At-Qt:0,Dn=(0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({},Cn),Ie),{},{flex:"0 0 ".concat(Qt,"px"),width:"".concat(Qt,"px"),marginRight:bn,pointerEvents:"auto"}),Fn=ae.useMemo(function(){return rt?Ut<=1:Wt===0||Ut===0||Ut>1},[Ut,Wt,rt]);Fn?Dn.visibility="hidden":rt&&(Dn.height=Qe==null?void 0:Qe(Ut));var fn=Fn?function(){return null}:bt,Mn={};return(Ut===0||Wt===0)&&(Mn.rowSpan=1,Mn.colSpan=1),ae.createElement($t,(0,Re.Z)({className:it()(Pt,Ye),ellipsis:fe.ellipsis,align:fe.align,scope:fe.rowScope,component:"div",prefixCls:le.prefixCls,key:jt,record:ze,index:Le,renderIndex:Me,dataIndex:pt,render:fn,shouldCellUpdate:fe.shouldCellUpdate},dn,{appendNode:sn,additionalProps:(0,Ee.Z)((0,Ee.Z)({},qt),{},{style:Dn},Mn)}))}var vr=Uo,Pr=["data","index","className","rowKey","style","extra","getHeight"],nr=ae.forwardRef(function(re,le){var fe=re.data,ve=re.index,xe=re.className,Le=re.rowKey,Me=re.style,ze=re.extra,Ie=re.getHeight,Ye=(0,Xt.Z)(re,Pr),rt=fe.record,Qe=fe.indent,bt=fe.index,pt=He(ge,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Pt=pt.scrollX,At=pt.flattenColumns,Ot=pt.prefixCls,kt=pt.fixColumn,It=pt.componentWidth,jt=ot(rt,Le,ve,Qe),dn=jt.rowSupportExpand,sn=jt.expanded,qt=jt.rowProps,Cn=jt.expandedRowRender,$n=jt.expandedRowClassName,Wt;if(dn&&sn){var en=Cn(rt,ve,Qe+1,sn),Ut=$n==null?void 0:$n(rt,ve,Qe),Kt={};kt&&(Kt={style:(0,he.Z)({},"--virtual-width","".concat(It,"px"))});var Qt="".concat(Ot,"-expanded-row-cell");Wt=ae.createElement("div",{className:it()("".concat(Ot,"-expanded-row"),"".concat(Ot,"-expanded-row-level-").concat(Qe+1),Ut)},ae.createElement($t,{component:"div",prefixCls:Ot,className:it()(Qt,(0,he.Z)({},"".concat(Qt,"-fixed"),kt)),additionalProps:Kt},en))}var bn=(0,Ee.Z)((0,Ee.Z)({},Me),{},{width:Pt});ze&&(bn.position="absolute",bn.pointerEvents="none");var Dn=ae.createElement("div",(0,Re.Z)({},qt,Ye,{ref:dn?null:le,className:it()(xe,"".concat(Ot,"-row"),qt==null?void 0:qt.className,(0,he.Z)({},"".concat(Ot,"-row-extra"),ze)),style:(0,Ee.Z)((0,Ee.Z)({},bn),qt==null?void 0:qt.style)}),At.map(function(Fn,fn){return ae.createElement(vr,{key:fn,rowInfo:jt,column:Fn,colIndex:fn,indent:Qe,index:ve,renderIndex:bt,record:rt,inverse:ze,getHeight:Ie})}));return dn?ae.createElement("div",{ref:le},Dn,Wt):Dn}),ar=z(nr),Vo=ar,or=ae.forwardRef(function(re,le){var fe=re.data,ve=re.onScroll,xe=He(ge,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Le=xe.flattenColumns,Me=xe.onColumnResize,ze=xe.getRowKey,Ie=xe.expandedKeys,Ye=xe.prefixCls,rt=xe.childrenColumnName,Qe=xe.emptyNode,bt=xe.scrollX,pt=He(to),Pt=pt.scrollY,At=pt.listItemHeight,Ot=ae.useRef(),kt=xt(fe,rt,Ie,ze),It=ae.useMemo(function(){var Wt=0;return Le.map(function(en){var Ut=en.width,Kt=en.key;return Wt+=Ut,[Kt,Ut,Wt]})},[Le]),jt=ae.useMemo(function(){return It.map(function(Wt){return Wt[2]})},[It]);ae.useEffect(function(){It.forEach(function(Wt){var en=(0,De.Z)(Wt,2),Ut=en[0],Kt=en[1];Me(Ut,Kt)})},[It]),ae.useImperativeHandle(le,function(){var Wt={};return Object.defineProperty(Wt,"scrollLeft",{get:function(){var Ut;return((Ut=Ot.current)===null||Ut===void 0?void 0:Ut.getScrollInfo().x)||0},set:function(Ut){var Kt;(Kt=Ot.current)===null||Kt===void 0||Kt.scrollTo({left:Ut})}}),Wt});var dn=function(en,Ut){var Kt,Qt=(Kt=kt[Ut])===null||Kt===void 0?void 0:Kt.record,bn=en.onCell;if(bn){var Dn,Fn=bn(Qt,Ut);return(Dn=Fn==null?void 0:Fn.rowSpan)!==null&&Dn!==void 0?Dn:1}return 1},sn=function(en){var Ut=en.start,Kt=en.end,Qt=en.getSize,bn=en.offsetY;if(Kt<0)return null;for(var Dn=Le.filter(function(Pn){return dn(Pn,Ut)===0}),Fn=Ut,fn=function(Sn){if(Dn=Dn.filter(function(hn){return dn(hn,Sn)===0}),!Dn.length)return Fn=Sn,"break"},Mn=Ut;Mn>=0;Mn-=1){var Rn=fn(Mn);if(Rn==="break")break}for(var ga=Le.filter(function(Pn){return dn(Pn,Kt)!==1}),Un=Kt,ya=function(Sn){if(ga=ga.filter(function(hn){return dn(hn,Sn)!==1}),!ga.length)return Un=Math.max(Sn-1,Kt),"break"},ba=Kt;ba<kt.length;ba+=1){var On=ya(ba);if(On==="break")break}for(var La=[],Xn=function(Sn){var hn=kt[Sn];if(!hn)return"continue";Le.some(function(rn){return dn(rn,Sn)>1})&&La.push(Sn)},ma=Fn;ma<=Un;ma+=1)var ua=Xn(ma);var Ya=La.map(function(Pn){var Sn=kt[Pn],hn=ze(Sn.record,Pn),rn=function(En){var _n=Pn+En-1,Zn=ze(kt[_n].record,_n),Za=Qt(hn,Zn);return Za.bottom-Za.top},Yn=Qt(hn);return ae.createElement(Vo,{key:Pn,data:Sn,rowKey:hn,index:Pn,style:{top:-bn+Yn.top},extra:!0,getHeight:rn})});return Ya},qt=ae.useMemo(function(){return{columnsOffset:jt}},[jt]),Cn="".concat(Ye,"-tbody"),$n;return kt.length?$n=ae.createElement(Ka.Z,{fullHeight:!1,ref:Ot,className:it()(Cn,"".concat(Cn,"-virtual")),height:Pt,itemHeight:At||24,data:kt,itemKey:function(en){return ze(en.record)},scrollWidth:bt,onVirtualScroll:function(en){var Ut=en.x;ve({scrollLeft:Ut})},extraRender:sn},function(Wt,en,Ut){var Kt=ze(Wt.record,en);return ae.createElement(Vo,(0,Re.Z)({data:Wt,rowKey:Kt,index:en},Ut))}):$n=ae.createElement("div",{className:it()("".concat(Ye,"-placeholder"))},ae.createElement($t,{component:"div",prefixCls:Ye},Qe)),ae.createElement(To.Provider,{value:qt},$n)}),rr=z(or),Lo=rr,Ro=function(le,fe){var ve=fe.ref,xe=fe.onScroll;return ae.createElement(Lo,{ref:ve,data:le,onScroll:xe})},Ao=100;function ko(re){var le=re.columns,fe=re.scroll,ve=re.prefixCls,xe=ve===void 0?Co:ve,Le=re.className,Me=re.listItemHeight,ze=fe||{},Ie=ze.x,Ye=ze.y;typeof Ie!="number"&&(Ie=((le||[]).length+1)*Ao),typeof Ye!="number"&&(Ye=500);var rt=ae.useMemo(function(){return{scrollY:Ye,listItemHeight:Me}},[Ye,Me]);return ae.createElement(to.Provider,{value:rt},ae.createElement(Ta,(0,Re.Z)({},re,{className:it()(Le,"".concat(xe,"-virtual")),scroll:(0,Ee.Z)((0,Ee.Z)({},fe),{},{x:Ie}),components:{body:Ro},columns:le,internalHooks:ce,tailor:!0})))}function ir(re){return E(ko,re)}var yr=ir(),Ur=null;function lr(re){return null}var uo=lr;function br(re){return null}var po=br,xr=ne(2738),Cr=ne(68031),gr=ne(36355),Vr=ne(93891),Lr=ne(19716),Xr=ne(8628),Yr=ne(31724),wr=ne(58421),Er=ne(71418),mn=ne(88088);function Vt(re){return function(fe){let{prefixCls:ve,onExpand:xe,record:Le,expanded:Me,expandable:ze}=fe;const Ie=`${ve}-row-expand-icon`;return ae.createElement("button",{type:"button",onClick:Ye=>{xe(Le,Ye),Ye.stopPropagation()},className:it()(Ie,{[`${Ie}-spaced`]:!ze,[`${Ie}-expanded`]:ze&&Me,[`${Ie}-collapsed`]:ze&&!Me}),"aria-label":Me?re.collapse:re.expand,"aria-expanded":Me})}}var nn=Vt;function an(re,le){return"key"in re&&re.key!==void 0&&re.key!==null?re.key:re.dataIndex?Array.isArray(re.dataIndex)?re.dataIndex.join("."):re.dataIndex:le}function qn(re,le){return le?`${le}-${re}`:`${re}`}function Sa(re,le){return typeof re=="function"?re(le):re}function ka(re,le){const fe=Sa(re,le);return Object.prototype.toString.call(fe)==="[object Object]"?"":fe}var Ia={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},Ma=Ia,za=ne(7657),mo=function(le,fe){return ae.createElement(za.Z,(0,Re.Z)({},le,{ref:fe,icon:Ma}))},Wa=ae.forwardRef(mo),Go=Wa,Ko=ne(56762);function Zo(re){const le=ae.useRef(re),fe=(0,Ko.Z)();return[()=>le.current,ve=>{le.current=ve,fe()}]}var dr=ne(3113),fo=ne(24905),Xo=ne(38854),Fa=ne(64165),Br=ne(20834),Fr=ne(40875),Yo=ne(5112),Nr=ne(17574),Jo=ne(47472),io=ne(92832);function sr(re){let{value:le,onChange:fe,filterSearch:ve,tablePrefixCls:xe,locale:Le}=re;return ve?ae.createElement("div",{className:`${xe}-filter-dropdown-search`},ae.createElement(io.default,{prefix:ae.createElement(Jo.Z,null),placeholder:Le.filterSearchPlaceholder,onChange:fe,value:le,htmlSize:1,className:`${xe}-filter-dropdown-search-input`})):null}var Qo=sr,qo=ne(10228);const Oi=re=>{const{keyCode:le}=re;le===qo.Z.ENTER&&re.stopPropagation()};var Ii=ae.forwardRef((re,le)=>ae.createElement("div",{className:re.className,onClick:fe=>fe.stopPropagation(),onKeyDown:Oi,ref:le},re.children));function Ho(re){let le=[];return(re||[]).forEach(fe=>{let{value:ve,children:xe}=fe;le.push(ve),xe&&(le=[].concat((0,Ct.Z)(le),(0,Ct.Z)(Ho(xe))))}),le}function Ti(re){return re.some(le=>{let{children:fe}=le;return fe})}function Jr(re,le){return typeof le=="string"||typeof le=="number"?le==null?void 0:le.toString().toLowerCase().includes(re.trim().toLowerCase()):!1}function Qr(re){let{filters:le,prefixCls:fe,filteredKeys:ve,filterMultiple:xe,searchValue:Le,filterSearch:Me}=re;return le.map((ze,Ie)=>{const Ye=String(ze.value);if(ze.children)return{key:Ye||Ie,label:ze.text,popupClassName:`${fe}-dropdown-submenu`,children:Qr({filters:ze.children,prefixCls:fe,filteredKeys:ve,filterMultiple:xe,searchValue:Le,filterSearch:Me})};const rt=xe?fo.default:Yo.ZP,Qe={key:ze.value!==void 0?Ye:Ie,label:ae.createElement(ae.Fragment,null,ae.createElement(rt,{checked:ve.includes(Ye)}),ae.createElement("span",null,ze.text))};return Le.trim()?typeof Me=="function"?Me(Le,ze)?Qe:null:Jr(Le,ze.text)?Qe:null:Qe})}function Di(re){var le,fe;const{tablePrefixCls:ve,prefixCls:xe,column:Le,dropdownPrefixCls:Me,columnKey:ze,filterMultiple:Ie,filterMode:Ye="menu",filterSearch:rt=!1,filterState:Qe,triggerFilter:bt,locale:pt,children:Pt,getPopupContainer:At}=re,{filterDropdownOpen:Ot,onFilterDropdownOpenChange:kt,filterResetToDefaultFilteredValue:It,defaultFilteredValue:jt,filterDropdownVisible:dn,onFilterDropdownVisibleChange:sn}=Le,[qt,Cn]=ae.useState(!1),$n=!!(Qe&&(!((le=Qe.filteredKeys)===null||le===void 0)&&le.length||Qe.forceFiltered)),Wt=ln=>{Cn(ln),kt==null||kt(ln),sn==null||sn(ln)},en=(fe=Ot!=null?Ot:dn)!==null&&fe!==void 0?fe:qt,Ut=Qe==null?void 0:Qe.filteredKeys,[Kt,Qt]=Zo(Ut||[]),bn=ln=>{let{selectedKeys:En}=ln;Qt(En)},Dn=(ln,En)=>{let{node:_n,checked:Zn}=En;bn(Ie?{selectedKeys:ln}:{selectedKeys:Zn&&_n.key?[_n.key]:[]})};ae.useEffect(()=>{qt&&bn({selectedKeys:Ut||[]})},[Ut]);const[Fn,fn]=ae.useState([]),Mn=ln=>{fn(ln)},[Rn,ga]=ae.useState(""),Un=ln=>{const{value:En}=ln.target;ga(En)};ae.useEffect(()=>{qt||ga("")},[qt]);const ya=ln=>{const En=ln&&ln.length?ln:null;if(En===null&&(!Qe||!Qe.filteredKeys)||(0,Be.Z)(En,Qe==null?void 0:Qe.filteredKeys,!0))return null;bt({column:Le,key:ze,filteredKeys:En})},ba=()=>{Wt(!1),ya(Kt())},On=function(){let{confirm:ln,closeDropdown:En}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};ln&&ya([]),En&&Wt(!1),ga(""),Qt(It?(jt||[]).map(_n=>String(_n)):[])},La=function(){let{closeDropdown:ln}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};ln&&Wt(!1),ya(Kt())},Xn=ln=>{ln&&Ut!==void 0&&Qt(Ut||[]),Wt(ln),!ln&&!Le.filterDropdown&&ba()},ma=it()({[`${Me}-menu-without-submenu`]:!Ti(Le.filters||[])}),ua=ln=>{if(ln.target.checked){const En=Ho(Le==null?void 0:Le.filters).map(_n=>String(_n));Qt(En)}else Qt([])},Ya=ln=>{let{filters:En}=ln;return(En||[]).map((_n,Zn)=>{const Za=String(_n.value),Ra={title:_n.text,key:_n.value!==void 0?Za:Zn};return _n.children&&(Ra.children=Ya({filters:_n.children})),Ra})},Pn=ln=>{var En;return Object.assign(Object.assign({},ln),{text:ln.title,value:ln.key,children:((En=ln.children)===null||En===void 0?void 0:En.map(_n=>Pn(_n)))||[]})};let Sn;if(typeof Le.filterDropdown=="function")Sn=Le.filterDropdown({prefixCls:`${Me}-custom`,setSelectedKeys:ln=>bn({selectedKeys:ln}),selectedKeys:Kt(),confirm:La,clearFilters:On,filters:Le.filters,visible:en,close:()=>{Wt(!1)}});else if(Le.filterDropdown)Sn=Le.filterDropdown;else{const ln=Kt()||[],En=()=>(Le.filters||[]).length===0?ae.createElement(Fa.Z,{image:Fa.Z.PRESENTED_IMAGE_SIMPLE,description:pt.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Ye==="tree"?ae.createElement(ae.Fragment,null,ae.createElement(Qo,{filterSearch:rt,value:Rn,onChange:Un,tablePrefixCls:ve,locale:pt}),ae.createElement("div",{className:`${ve}-filter-dropdown-tree`},Ie?ae.createElement(fo.default,{checked:ln.length===Ho(Le.filters).length,indeterminate:ln.length>0&&ln.length<Ho(Le.filters).length,className:`${ve}-filter-dropdown-checkall`,onChange:ua},pt.filterCheckall):null,ae.createElement(Nr.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Ie,checkStrictly:!Ie,className:`${Me}-menu`,onCheck:Dn,checkedKeys:ln,selectedKeys:ln,showIcon:!1,treeData:Ya({filters:Le.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Rn.trim()?Zn=>typeof rt=="function"?rt(Rn,Pn(Zn)):Jr(Rn,Zn.title):void 0}))):ae.createElement(ae.Fragment,null,ae.createElement(Qo,{filterSearch:rt,value:Rn,onChange:Un,tablePrefixCls:ve,locale:pt}),ae.createElement(Br.default,{selectable:!0,multiple:Ie,prefixCls:`${Me}-menu`,className:ma,onSelect:bn,onDeselect:bn,selectedKeys:ln,getPopupContainer:At,openKeys:Fn,onOpenChange:Mn,items:Qr({filters:Le.filters||[],filterSearch:rt,prefixCls:xe,filteredKeys:Kt(),filterMultiple:Ie,searchValue:Rn})})),_n=()=>It?(0,Be.Z)((jt||[]).map(Zn=>String(Zn)),ln,!0):ln.length===0;Sn=ae.createElement(ae.Fragment,null,En(),ae.createElement("div",{className:`${xe}-dropdown-btns`},ae.createElement(dr.ZP,{type:"link",size:"small",disabled:_n(),onClick:()=>On()},pt.filterReset),ae.createElement(dr.ZP,{type:"primary",size:"small",onClick:ba},pt.filterConfirm)))}Le.filterDropdown&&(Sn=ae.createElement(Fr.J,{selectable:void 0},Sn));const hn=()=>ae.createElement(Ii,{className:`${xe}-dropdown`},Sn);let rn;typeof Le.filterIcon=="function"?rn=Le.filterIcon($n):Le.filterIcon?rn=Le.filterIcon:rn=ae.createElement(Go,null);const{direction:Yn}=ae.useContext(gr.E_);return ae.createElement("div",{className:`${xe}-column`},ae.createElement("span",{className:`${ve}-column-title`},Pt),ae.createElement(Xo.Z,{dropdownRender:hn,trigger:["click"],open:en,onOpenChange:Xn,getPopupContainer:At,placement:Yn==="rtl"?"bottomLeft":"bottomRight"},ae.createElement("span",{role:"button",tabIndex:-1,className:it()(`${xe}-trigger`,{active:$n}),onClick:ln=>{ln.stopPropagation()}},rn)))}var Mi=Di;function $r(re,le,fe){let ve=[];return(re||[]).forEach((xe,Le)=>{var Me;const ze=qn(Le,fe);if(xe.filters||"filterDropdown"in xe||"onFilter"in xe)if("filteredValue"in xe){let Ie=xe.filteredValue;"filterDropdown"in xe||(Ie=(Me=Ie==null?void 0:Ie.map(String))!==null&&Me!==void 0?Me:Ie),ve.push({column:xe,key:an(xe,ze),filteredKeys:Ie,forceFiltered:xe.filtered})}else ve.push({column:xe,key:an(xe,ze),filteredKeys:le&&xe.defaultFilteredValue?xe.defaultFilteredValue:void 0,forceFiltered:xe.filtered});"children"in xe&&(ve=[].concat((0,Ct.Z)(ve),(0,Ct.Z)($r(xe.children,le,ze))))}),ve}function qr(re,le,fe,ve,xe,Le,Me,ze){return fe.map((Ie,Ye)=>{const rt=qn(Ye,ze),{filterMultiple:Qe=!0,filterMode:bt,filterSearch:pt}=Ie;let Pt=Ie;if(Pt.filters||Pt.filterDropdown){const At=an(Pt,rt),Ot=ve.find(kt=>{let{key:It}=kt;return At===It});Pt=Object.assign(Object.assign({},Pt),{title:kt=>ae.createElement(Mi,{tablePrefixCls:re,prefixCls:`${re}-filter`,dropdownPrefixCls:le,column:Pt,columnKey:At,filterState:Ot,filterMultiple:Qe,filterMode:bt,filterSearch:pt,triggerFilter:Le,locale:xe,getPopupContainer:Me},Sa(Ie.title,kt))})}return"children"in Pt&&(Pt=Object.assign(Object.assign({},Pt),{children:qr(re,le,Pt.children,ve,xe,Le,Me,rt)})),Pt})}function ei(re){const le={};return re.forEach(fe=>{let{key:ve,filteredKeys:xe,column:Le}=fe;const{filters:Me,filterDropdown:ze}=Le;if(ze)le[ve]=xe||null;else if(Array.isArray(xe)){const Ie=Ho(Me);le[ve]=Ie.filter(Ye=>xe.includes(String(Ye)))}else le[ve]=null}),le}function ti(re,le){return le.reduce((fe,ve)=>{const{column:{onFilter:xe,filters:Le},filteredKeys:Me}=ve;return xe&&Me&&Me.length?fe.filter(ze=>Me.some(Ie=>{const Ye=Ho(Le),rt=Ye.findIndex(bt=>String(bt)===String(Ie)),Qe=rt!==-1?Ye[rt]:Ie;return xe(Qe,ze)})):fe},re)}const ni=re=>re.flatMap(le=>"children"in le?[le].concat((0,Ct.Z)(ni(le.children||[]))):[le]);function zi(re){let{prefixCls:le,dropdownPrefixCls:fe,mergedColumns:ve,onFilterChange:xe,getPopupContainer:Le,locale:Me}=re;const ze=ae.useMemo(()=>ni(ve||[]),[ve]),[Ie,Ye]=ae.useState(()=>$r(ze,!0)),rt=ae.useMemo(()=>{const Pt=$r(ze,!1);if(Pt.length===0)return Pt;let At=!0,Ot=!0;if(Pt.forEach(kt=>{let{filteredKeys:It}=kt;It!==void 0?At=!1:Ot=!1}),At){const kt=(ze||[]).map((It,jt)=>an(It,qn(jt)));return Ie.filter(It=>{let{key:jt}=It;return kt.includes(jt)}).map(It=>{const jt=ze[kt.findIndex(dn=>dn===It.key)];return Object.assign(Object.assign({},It),{column:Object.assign(Object.assign({},It.column),jt),forceFiltered:jt.filtered})})}return Pt},[ze,Ie]),Qe=ae.useMemo(()=>ei(rt),[rt]),bt=Pt=>{const At=rt.filter(Ot=>{let{key:kt}=Ot;return kt!==Pt.key});At.push(Pt),Ye(At),xe(ei(At),At)};return[Pt=>qr(le,fe,Pt,rt,Me,bt,Le),rt,Qe]}var Ri=zi;function Ai(re,le,fe){const ve=ae.useRef({});function xe(Le){if(!ve.current||ve.current.data!==re||ve.current.childrenColumnName!==le||ve.current.getRowKey!==fe){let ze=function(Ie){Ie.forEach((Ye,rt)=>{const Qe=fe(Ye,rt);Me.set(Qe,Ye),Ye&&typeof Ye=="object"&&le in Ye&&ze(Ye[le]||[])})};const Me=new Map;ze(re),ve.current={data:re,childrenColumnName:le,kvMap:Me,getRowKey:fe}}return ve.current.kvMap.get(Le)}return[xe]}var ki=ne(50371),Gi=function(re,le){var fe={};for(var ve in re)Object.prototype.hasOwnProperty.call(re,ve)&&le.indexOf(ve)<0&&(fe[ve]=re[ve]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,ve=Object.getOwnPropertySymbols(re);xe<ve.length;xe++)le.indexOf(ve[xe])<0&&Object.prototype.propertyIsEnumerable.call(re,ve[xe])&&(fe[ve[xe]]=re[ve[xe]]);return fe};const ai=10;function Ki(re,le){const fe={current:re.current,pageSize:re.pageSize};return Object.keys(le&&typeof le=="object"?le:{}).forEach(xe=>{const Le=re[xe];typeof Le!="function"&&(fe[xe]=Le)}),fe}function Zi(re,le,fe){const ve=fe&&typeof fe=="object"?fe:{},{total:xe=0}=ve,Le=Gi(ve,["total"]),[Me,ze]=(0,ae.useState)(()=>({current:"defaultCurrent"in Le?Le.defaultCurrent:1,pageSize:"defaultPageSize"in Le?Le.defaultPageSize:ai})),Ie=(0,ki.Z)(Me,Le,{total:xe>0?xe:re}),Ye=Math.ceil((xe||re)/Ie.pageSize);Ie.current>Ye&&(Ie.current=Ye||1);const rt=(bt,pt)=>{ze({current:bt!=null?bt:1,pageSize:pt||Ie.pageSize})},Qe=(bt,pt)=>{var Pt;fe&&((Pt=fe.onChange)===null||Pt===void 0||Pt.call(fe,bt,pt)),rt(bt,pt),le(bt,pt||(Ie==null?void 0:Ie.pageSize))};return fe===!1?[{},()=>{}]:[Object.assign(Object.assign({},Ie),{onChange:Qe}),rt]}var Hi=Zi,ji=ne(84105),oi=ne(35654),Or=ne(90782),_i=ne(71430),Wi=ne(18929);const Fo={},Ir="SELECT_ALL",Tr="SELECT_INVERT",Dr="SELECT_NONE",ri=[],ii=(re,le)=>{let fe=[];return(le||[]).forEach(ve=>{fe.push(ve),ve&&typeof ve=="object"&&re in ve&&(fe=[].concat((0,Ct.Z)(fe),(0,Ct.Z)(ii(re,ve[re]))))}),fe};var Ui=(re,le)=>{const{preserveSelectedRowKeys:fe,selectedRowKeys:ve,defaultSelectedRowKeys:xe,getCheckboxProps:Le,onChange:Me,onSelect:ze,onSelectAll:Ie,onSelectInvert:Ye,onSelectNone:rt,onSelectMultiple:Qe,columnWidth:bt,type:pt,selections:Pt,fixed:At,renderCell:Ot,hideSelectAll:kt,checkStrictly:It=!0}=le||{},{prefixCls:jt,data:dn,pageData:sn,getRecordByKey:qt,getRowKey:Cn,expandType:$n,childrenColumnName:Wt,locale:en,getPopupContainer:Ut}=re,[Kt,Qt]=(0,Wi.Z)(ve||xe||ri,{value:ve}),bn=ae.useRef(new Map),Dn=(0,ae.useCallback)(Pn=>{if(fe){const Sn=new Map;Pn.forEach(hn=>{let rn=qt(hn);!rn&&bn.current.has(hn)&&(rn=bn.current.get(hn)),Sn.set(hn,rn)}),bn.current=Sn}},[qt,fe]);ae.useEffect(()=>{Dn(Kt)},[Kt]);const{keyEntities:Fn}=(0,ae.useMemo)(()=>{if(It)return{keyEntities:null};let Pn=dn;if(fe){const Sn=new Set(dn.map((rn,Yn)=>Cn(rn,Yn))),hn=Array.from(bn.current).reduce((rn,Yn)=>{let[ln,En]=Yn;return Sn.has(ln)?rn:rn.concat(En)},[]);Pn=[].concat((0,Ct.Z)(Pn),(0,Ct.Z)(hn))}return(0,_i.I8)(Pn,{externalGetKey:Cn,childrenPropName:Wt})},[dn,Cn,It,Wt,fe]),fn=(0,ae.useMemo)(()=>ii(Wt,sn),[Wt,sn]),Mn=(0,ae.useMemo)(()=>{const Pn=new Map;return fn.forEach((Sn,hn)=>{const rn=Cn(Sn,hn),Yn=(Le?Le(Sn):null)||{};Pn.set(rn,Yn)}),Pn},[fn,Cn,Le]),Rn=(0,ae.useCallback)(Pn=>{var Sn;return!!(!((Sn=Mn.get(Cn(Pn)))===null||Sn===void 0)&&Sn.disabled)},[Mn,Cn]),[ga,Un]=(0,ae.useMemo)(()=>{if(It)return[Kt||[],[]];const{checkedKeys:Pn,halfCheckedKeys:Sn}=(0,Or.S)(Kt,!0,Fn,Rn);return[Pn||[],Sn]},[Kt,It,Fn,Rn]),ya=(0,ae.useMemo)(()=>{const Pn=pt==="radio"?ga.slice(0,1):ga;return new Set(Pn)},[ga,pt]),ba=(0,ae.useMemo)(()=>pt==="radio"?new Set:new Set(Un),[Un,pt]),[On,La]=(0,ae.useState)(null);ae.useEffect(()=>{le||Qt(ri)},[!!le]);const Xn=(0,ae.useCallback)((Pn,Sn)=>{let hn,rn;Dn(Pn),fe?(hn=Pn,rn=Pn.map(Yn=>bn.current.get(Yn))):(hn=[],rn=[],Pn.forEach(Yn=>{const ln=qt(Yn);ln!==void 0&&(hn.push(Yn),rn.push(ln))})),Qt(hn),Me==null||Me(hn,rn,{type:Sn})},[Qt,qt,Me,fe]),ma=(0,ae.useCallback)((Pn,Sn,hn,rn)=>{if(ze){const Yn=hn.map(ln=>qt(ln));ze(qt(Pn),Sn,Yn,rn)}Xn(hn,"single")},[ze,qt,Xn]),ua=(0,ae.useMemo)(()=>!Pt||kt?null:(Pt===!0?[Ir,Tr,Dr]:Pt).map(Sn=>Sn===Ir?{key:"all",text:en.selectionAll,onSelect(){Xn(dn.map((hn,rn)=>Cn(hn,rn)).filter(hn=>{const rn=Mn.get(hn);return!(rn!=null&&rn.disabled)||ya.has(hn)}),"all")}}:Sn===Tr?{key:"invert",text:en.selectInvert,onSelect(){const hn=new Set(ya);sn.forEach((Yn,ln)=>{const En=Cn(Yn,ln),_n=Mn.get(En);_n!=null&&_n.disabled||(hn.has(En)?hn.delete(En):hn.add(En))});const rn=Array.from(hn);Ye&&Ye(rn),Xn(rn,"invert")}}:Sn===Dr?{key:"none",text:en.selectNone,onSelect(){rt==null||rt(),Xn(Array.from(ya).filter(hn=>{const rn=Mn.get(hn);return rn==null?void 0:rn.disabled}),"none")}}:Sn).map(Sn=>Object.assign(Object.assign({},Sn),{onSelect:function(){for(var hn,rn,Yn=arguments.length,ln=new Array(Yn),En=0;En<Yn;En++)ln[En]=arguments[En];(rn=Sn.onSelect)===null||rn===void 0||(hn=rn).call.apply(hn,[Sn].concat(ln)),La(null)}})),[Pt,ya,sn,Cn,Ye,Xn]);return[(0,ae.useCallback)(Pn=>{var Sn;if(!le)return Pn.filter(ea=>ea!==Fo);let hn=(0,Ct.Z)(Pn);const rn=new Set(ya),Yn=fn.map(Cn).filter(ea=>!Mn.get(ea).disabled),ln=Yn.every(ea=>rn.has(ea)),En=Yn.some(ea=>rn.has(ea)),_n=()=>{const ea=[];ln?Yn.forEach(pa=>{rn.delete(pa),ea.push(pa)}):Yn.forEach(pa=>{rn.has(pa)||(rn.add(pa),ea.push(pa))});const aa=Array.from(rn);Ie==null||Ie(!ln,aa.map(pa=>qt(pa)),ea.map(pa=>qt(pa))),Xn(aa,"all"),La(null)};let Zn;if(pt!=="radio"){let ea;if(ua){const An={getPopupContainer:Ut,items:ua.map((Ua,Ha)=>{const{key:no,text:vo,onSelect:So}=Ua;return{key:no!=null?no:Ha,onClick:()=>{So==null||So(Yn)},label:vo}})};ea=ae.createElement("div",{className:`${jt}-selection-extra`},ae.createElement(Xo.Z,{menu:An,getPopupContainer:Ut},ae.createElement("span",null,ae.createElement(ji.Z,null))))}const aa=fn.map((An,Ua)=>{const Ha=Cn(An,Ua),no=Mn.get(Ha)||{};return Object.assign({checked:rn.has(Ha)},no)}).filter(An=>{let{disabled:Ua}=An;return Ua}),pa=!!aa.length&&aa.length===fn.length,Na=pa&&aa.every(An=>{let{checked:Ua}=An;return Ua}),$a=pa&&aa.some(An=>{let{checked:Ua}=An;return Ua});Zn=!kt&&ae.createElement("div",{className:`${jt}-selection`},ae.createElement(fo.default,{checked:pa?Na:!!fn.length&&ln,indeterminate:pa?!Na&&$a:!ln&&En,onChange:_n,disabled:fn.length===0||pa,"aria-label":ea?"Custom selection":"Select all",skipGroup:!0}),ea)}let Za;pt==="radio"?Za=(ea,aa,pa)=>{const Na=Cn(aa,pa),$a=rn.has(Na);return{node:ae.createElement(Yo.ZP,Object.assign({},Mn.get(Na),{checked:$a,onClick:An=>An.stopPropagation(),onChange:An=>{rn.has(Na)||ma(Na,!0,[Na],An.nativeEvent)}})),checked:$a}}:Za=(ea,aa,pa)=>{var Na;const $a=Cn(aa,pa),An=rn.has($a),Ua=ba.has($a),Ha=Mn.get($a);let no;return $n==="nest"?no=Ua:no=(Na=Ha==null?void 0:Ha.indeterminate)!==null&&Na!==void 0?Na:Ua,{node:ae.createElement(fo.default,Object.assign({},Ha,{indeterminate:no,checked:An,skipGroup:!0,onClick:vo=>vo.stopPropagation(),onChange:vo=>{let{nativeEvent:So}=vo;const{shiftKey:tr}=So;let Eo=-1,so=-1;if(tr&&It){const Qa=new Set([On,$a]);Yn.some((Va,Oa)=>{if(Qa.has(Va))if(Eo===-1)Eo=Oa;else return so=Oa,!0;return!1})}if(so!==-1&&Eo!==so&&It){const Qa=Yn.slice(Eo,so+1),Va=[];An?Qa.forEach(va=>{rn.has(va)&&(Va.push(va),rn.delete(va))}):Qa.forEach(va=>{rn.has(va)||(Va.push(va),rn.add(va))});const Oa=Array.from(rn);Qe==null||Qe(!An,Oa.map(va=>qt(va)),Va.map(va=>qt(va))),Xn(Oa,"multiple")}else{const Qa=ga;if(It){const Va=An?(0,oi._5)(Qa,$a):(0,oi.L0)(Qa,$a);ma($a,!An,Va,So)}else{const Va=(0,Or.S)([].concat((0,Ct.Z)(Qa),[$a]),!0,Fn,Rn),{checkedKeys:Oa,halfCheckedKeys:va}=Va;let Po=Oa;if(An){const Mo=new Set(Oa);Mo.delete($a),Po=(0,Or.S)(Array.from(Mo),{checked:!1,halfCheckedKeys:va},Fn,Rn).checkedKeys}ma($a,!An,Po,So)}}La(An?null:$a)}})),checked:An}};const Ra=(ea,aa,pa)=>{const{node:Na,checked:$a}=Za(ea,aa,pa);return Ot?Ot($a,aa,pa,Na):Na};if(!hn.includes(Fo))if(hn.findIndex(ea=>{var aa;return((aa=ea[Gn])===null||aa===void 0?void 0:aa.columnType)==="EXPAND_COLUMN"})===0){const[ea,...aa]=hn;hn=[ea,Fo].concat((0,Ct.Z)(aa))}else hn=[Fo].concat((0,Ct.Z)(hn));const ho=hn.indexOf(Fo);hn=hn.filter((ea,aa)=>ea!==Fo||aa===ho);const wa=hn[ho-1],lo=hn[ho+1];let Ea=At;Ea===void 0&&((lo==null?void 0:lo.fixed)!==void 0?Ea=lo.fixed:(wa==null?void 0:wa.fixed)!==void 0&&(Ea=wa.fixed)),Ea&&wa&&((Sn=wa[Gn])===null||Sn===void 0?void 0:Sn.columnType)==="EXPAND_COLUMN"&&wa.fixed===void 0&&(wa.fixed=Ea);const Ja=it()(`${jt}-selection-col`,{[`${jt}-selection-col-with-dropdown`]:Pt&&pt==="checkbox"}),Do={fixed:Ea,width:bt,className:`${jt}-selection-column`,title:le.columnTitle||Zn,render:Ra,onCell:le.onCell,[Gn]:{className:Ja}};return hn.map(ea=>ea===Fo?Do:ea)},[Cn,fn,le,ga,ya,ba,bt,ua,$n,On,Mn,Qe,ma,Rn]),ya]},Vi=ne(89489),Xi=ne(59477),Yi=ne(6848);const cr="ascend",Mr="descend";function ur(re){return typeof re.sorter=="object"&&typeof re.sorter.multiple=="number"?re.sorter.multiple:!1}function li(re){return typeof re=="function"?re:re&&typeof re=="object"&&re.compare?re.compare:!1}function Ji(re,le){return le?re[re.indexOf(le)+1]:re[0]}function zr(re,le,fe){let ve=[];function xe(Le,Me){ve.push({column:Le,key:an(Le,Me),multiplePriority:ur(Le),sortOrder:Le.sortOrder})}return(re||[]).forEach((Le,Me)=>{const ze=qn(Me,fe);Le.children?("sortOrder"in Le&&xe(Le,ze),ve=[].concat((0,Ct.Z)(ve),(0,Ct.Z)(zr(Le.children,le,ze)))):Le.sorter&&("sortOrder"in Le?xe(Le,ze):le&&Le.defaultSortOrder&&ve.push({column:Le,key:an(Le,ze),multiplePriority:ur(Le),sortOrder:Le.defaultSortOrder}))}),ve}function gi(re,le,fe,ve,xe,Le,Me,ze){return(le||[]).map((Ie,Ye)=>{const rt=qn(Ye,ze);let Qe=Ie;if(Qe.sorter){const bt=Qe.sortDirections||xe,pt=Qe.showSorterTooltip===void 0?Me:Qe.showSorterTooltip,Pt=an(Qe,rt),At=fe.find($n=>{let{key:Wt}=$n;return Wt===Pt}),Ot=At?At.sortOrder:null,kt=Ji(bt,Ot);let It;if(Ie.sortIcon)It=Ie.sortIcon({sortOrder:Ot});else{const $n=bt.includes(cr)&&ae.createElement(Xi.Z,{className:it()(`${re}-column-sorter-up`,{active:Ot===cr})}),Wt=bt.includes(Mr)&&ae.createElement(Vi.Z,{className:it()(`${re}-column-sorter-down`,{active:Ot===Mr})});It=ae.createElement("span",{className:it()(`${re}-column-sorter`,{[`${re}-column-sorter-full`]:!!($n&&Wt)})},ae.createElement("span",{className:`${re}-column-sorter-inner`,"aria-hidden":"true"},$n,Wt))}const{cancelSort:jt,triggerAsc:dn,triggerDesc:sn}=Le||{};let qt=jt;kt===Mr?qt=sn:kt===cr&&(qt=dn);const Cn=typeof pt=="object"?pt:{title:qt};Qe=Object.assign(Object.assign({},Qe),{className:it()(Qe.className,{[`${re}-column-sort`]:Ot}),title:$n=>{const Wt=ae.createElement("div",{className:`${re}-column-sorters`},ae.createElement("span",{className:`${re}-column-title`},Sa(Ie.title,$n)),It);return pt?ae.createElement(Yi.Z,Object.assign({},Cn),Wt):Wt},onHeaderCell:$n=>{const Wt=Ie.onHeaderCell&&Ie.onHeaderCell($n)||{},en=Wt.onClick,Ut=Wt.onKeyDown;Wt.onClick=bn=>{ve({column:Ie,key:Pt,sortOrder:kt,multiplePriority:ur(Ie)}),en==null||en(bn)},Wt.onKeyDown=bn=>{bn.keyCode===qo.Z.ENTER&&(ve({column:Ie,key:Pt,sortOrder:kt,multiplePriority:ur(Ie)}),Ut==null||Ut(bn))};const Kt=ka(Ie.title,{}),Qt=Kt==null?void 0:Kt.toString();return Ot?Wt["aria-sort"]=Ot==="ascend"?"ascending":"descending":Wt["aria-label"]=Qt||"",Wt.className=it()(Wt.className,`${re}-column-has-sorters`),Wt.tabIndex=0,Ie.ellipsis&&(Wt.title=(Kt!=null?Kt:"").toString()),Wt}})}return"children"in Qe&&(Qe=Object.assign(Object.assign({},Qe),{children:gi(re,Qe.children,fe,ve,xe,Le,Me,rt)})),Qe})}function di(re){const{column:le,sortOrder:fe}=re;return{column:le,order:fe,field:le.dataIndex,columnKey:le.key}}function si(re){const le=re.filter(fe=>{let{sortOrder:ve}=fe;return ve}).map(di);return le.length===0&&re.length?Object.assign(Object.assign({},di(re[re.length-1])),{column:void 0}):le.length<=1?le[0]||{}:le}function Rr(re,le,fe){const ve=le.slice().sort((Me,ze)=>ze.multiplePriority-Me.multiplePriority),xe=re.slice(),Le=ve.filter(Me=>{let{column:{sorter:ze},sortOrder:Ie}=Me;return li(ze)&&Ie});return Le.length?xe.sort((Me,ze)=>{for(let Ie=0;Ie<Le.length;Ie+=1){const Ye=Le[Ie],{column:{sorter:rt},sortOrder:Qe}=Ye,bt=li(rt);if(bt&&Qe){const pt=bt(Me,ze,Qe);if(pt!==0)return Qe===cr?pt:-pt}}return 0}).map(Me=>{const ze=Me[fe];return ze?Object.assign(Object.assign({},Me),{[fe]:Rr(ze,le,fe)}):Me}):xe}function Qi(re){let{prefixCls:le,mergedColumns:fe,onSorterChange:ve,sortDirections:xe,tableLocale:Le,showSorterTooltip:Me}=re;const[ze,Ie]=ae.useState(zr(fe,!0)),Ye=ae.useMemo(()=>{let Pt=!0;const At=zr(fe,!1);if(!At.length)return ze;const Ot=[];function kt(jt){Pt?Ot.push(jt):Ot.push(Object.assign(Object.assign({},jt),{sortOrder:null}))}let It=null;return At.forEach(jt=>{It===null?(kt(jt),jt.sortOrder&&(jt.multiplePriority===!1?Pt=!1:It=!0)):(It&&jt.multiplePriority!==!1||(Pt=!1),kt(jt))}),Ot},[fe,ze]),rt=ae.useMemo(()=>{const Pt=Ye.map(At=>{let{column:Ot,sortOrder:kt}=At;return{column:Ot,order:kt}});return{sortColumns:Pt,sortColumn:Pt[0]&&Pt[0].column,sortOrder:Pt[0]&&Pt[0].order}},[Ye]);function Qe(Pt){let At;Pt.multiplePriority===!1||!Ye.length||Ye[0].multiplePriority===!1?At=[Pt]:At=[].concat((0,Ct.Z)(Ye.filter(Ot=>{let{key:kt}=Ot;return kt!==Pt.key})),[Pt]),Ie(At),ve(si(At),At)}return[Pt=>gi(le,Pt,Ye,Qe,xe,Le,Me),Ye,rt,()=>si(Ye)]}function ci(re,le){return re.map(fe=>{const ve=Object.assign({},fe);return ve.title=Sa(fe.title,le),"children"in ve&&(ve.children=ci(ve.children,le)),ve})}function qi(re){return[ae.useCallback(fe=>ci(fe,re),[re])]}var el=ra((re,le)=>{const{_renderTimes:fe}=re,{_renderTimes:ve}=le;return fe!==ve}),tl=ir((re,le)=>{const{_renderTimes:fe}=re,{_renderTimes:ve}=le;return fe!==ve}),er=ne(64993),mr=ne(17313),nl=ne(83116),al=ne(37613),ol=re=>{const{componentCls:le}=re,fe=`${re.lineWidth}px ${re.lineType} ${re.tableBorderColor}`,ve=(xe,Le,Me)=>({[`&${le}-${xe}`]:{[`> ${le}-container`]:{[`> ${le}-content, > ${le}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${le}-expanded-row-fixed`]:{margin:`-${Le}px -${Me+re.lineWidth}px`}}}}}});return{[`${le}-wrapper`]:{[`${le}${le}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${le}-title`]:{border:fe,borderBottom:0},[`> ${le}-container`]:{borderInlineStart:fe,borderTop:fe,[`
|
|
> ${le}-content,
|
|
> ${le}-header,
|
|
> ${le}-body,
|
|
> ${le}-summary
|
|
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:fe},"> thead":{"> tr:not(:last-child) > th":{borderBottom:fe},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${le}-cell-fix-right-first::after`]:{borderInlineEnd:fe}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${le}-expanded-row-fixed`]:{margin:`-${re.tablePaddingVertical}px -${re.tablePaddingHorizontal+re.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:re.lineWidth,bottom:0,borderInlineEnd:fe,content:'""'}}}}}},[`&${le}-scroll-horizontal`]:{[`> ${le}-container > ${le}-body`]:{"> table > tbody":{[`
|
|
> tr${le}-expanded-row,
|
|
> tr${le}-placeholder
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},ve("middle",re.tablePaddingVerticalMiddle,re.tablePaddingHorizontalMiddle)),ve("small",re.tablePaddingVerticalSmall,re.tablePaddingHorizontalSmall)),{[`> ${le}-footer`]:{border:fe,borderTop:0}}),[`${le}-cell`]:{[`${le}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${re.lineWidth}px 0 ${re.lineWidth}px ${re.tableHeaderBg}`}},[`${le}-bordered ${le}-cell-scrollbar`]:{borderInlineEnd:fe}}}},rl=re=>{const{componentCls:le}=re;return{[`${le}-wrapper`]:{[`${le}-cell-ellipsis`]:Object.assign(Object.assign({},mr.vS),{wordBreak:"keep-all",[`
|
|
&${le}-cell-fix-left-last,
|
|
&${le}-cell-fix-right-first
|
|
`]:{overflow:"visible",[`${le}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${le}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},il=re=>{const{componentCls:le}=re;return{[`${le}-wrapper`]:{[`${le}-tbody > tr${le}-placeholder`]:{textAlign:"center",color:re.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:re.colorBgContainer}}}}},ll=ne(15969),gl=re=>{const{componentCls:le,antCls:fe,controlInteractiveSize:ve,motionDurationSlow:xe,lineWidth:Le,paddingXS:Me,lineType:ze,tableBorderColor:Ie,tableExpandIconBg:Ye,tableExpandColumnWidth:rt,borderRadius:Qe,fontSize:bt,fontSizeSM:pt,lineHeight:Pt,tablePaddingVertical:At,tablePaddingHorizontal:Ot,tableExpandedRowBg:kt,paddingXXS:It}=re,jt=ve/2-Le,dn=jt*2+Le*3,sn=`${Le}px ${ze} ${Ie}`,qt=It-Le;return{[`${le}-wrapper`]:{[`${le}-expand-icon-col`]:{width:rt},[`${le}-row-expand-icon-cell`]:{textAlign:"center",[`${le}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${le}-row-indent`]:{height:1,float:"left"},[`${le}-row-expand-icon`]:Object.assign(Object.assign({},(0,ll.N)(re)),{position:"relative",float:"left",boxSizing:"border-box",width:dn,height:dn,padding:0,color:"inherit",lineHeight:`${dn}px`,background:Ye,border:sn,borderRadius:Qe,transform:`scale(${ve/dn})`,transition:`all ${xe}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${xe} ease-out`,content:'""'},"&::before":{top:jt,insetInlineEnd:qt,insetInlineStart:qt,height:Le},"&::after":{top:qt,bottom:qt,insetInlineStart:jt,width:Le,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${le}-row-indent + ${le}-row-expand-icon`]:{marginTop:(bt*Pt-Le*3)/2-Math.ceil((pt*1.4-Le*3)/2),marginInlineEnd:Me},[`tr${le}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:kt}},[`${fe}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${le}-expanded-row-fixed`]:{position:"relative",margin:`-${At}px -${Ot}px`,padding:`${At}px ${Ot}px`}}}},dl=re=>{const{componentCls:le,antCls:fe,iconCls:ve,tableFilterDropdownWidth:xe,tableFilterDropdownSearchWidth:Le,paddingXXS:Me,paddingXS:ze,colorText:Ie,lineWidth:Ye,lineType:rt,tableBorderColor:Qe,tableHeaderIconColor:bt,fontSizeSM:pt,tablePaddingHorizontal:Pt,borderRadius:At,motionDurationSlow:Ot,colorTextDescription:kt,colorPrimary:It,tableHeaderFilterActiveBg:jt,colorTextDisabled:dn,tableFilterDropdownBg:sn,tableFilterDropdownHeight:qt,controlItemBgHover:Cn,controlItemBgActive:$n,boxShadowSecondary:Wt,filterDropdownMenuBg:en}=re,Ut=`${fe}-dropdown`,Kt=`${le}-filter-dropdown`,Qt=`${fe}-tree`,bn=`${Ye}px ${rt} ${Qe}`;return[{[`${le}-wrapper`]:{[`${le}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${le}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Me,marginInline:`${Me}px ${-Pt/2}px`,padding:`0 ${Me}px`,color:bt,fontSize:pt,borderRadius:At,cursor:"pointer",transition:`all ${Ot}`,"&:hover":{color:kt,background:jt},"&.active":{color:It}}}},{[`${fe}-dropdown`]:{[Kt]:Object.assign(Object.assign({},(0,mr.Wf)(re)),{minWidth:xe,backgroundColor:sn,borderRadius:At,boxShadow:Wt,overflow:"hidden",[`${Ut}-menu`]:{maxHeight:qt,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:en,"&:empty::after":{display:"block",padding:`${ze}px 0`,color:dn,fontSize:pt,textAlign:"center",content:'"Not Found"'}},[`${Kt}-tree`]:{paddingBlock:`${ze}px 0`,paddingInline:ze,[Qt]:{padding:0},[`${Qt}-treenode ${Qt}-node-content-wrapper:hover`]:{backgroundColor:Cn},[`${Qt}-treenode-checkbox-checked ${Qt}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:$n}}},[`${Kt}-search`]:{padding:ze,borderBottom:bn,"&-input":{input:{minWidth:Le},[ve]:{color:dn}}},[`${Kt}-checkall`]:{width:"100%",marginBottom:Me,marginInlineStart:Me},[`${Kt}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${ze-Ye}px ${ze}px`,overflow:"hidden",borderTop:bn}})}},{[`${fe}-dropdown ${Kt}, ${Kt}-submenu`]:{[`${fe}-checkbox-wrapper + span`]:{paddingInlineStart:ze,color:Ie},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},sl=re=>{const{componentCls:le,lineWidth:fe,colorSplit:ve,motionDurationSlow:xe,zIndexTableFixed:Le,tableBg:Me,zIndexTableSticky:ze}=re,Ie=ve;return{[`${le}-wrapper`]:{[`
|
|
${le}-cell-fix-left,
|
|
${le}-cell-fix-right
|
|
`]:{position:"sticky !important",zIndex:Le,background:Me},[`
|
|
${le}-cell-fix-left-first::after,
|
|
${le}-cell-fix-left-last::after
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-fe,width:30,transform:"translateX(100%)",transition:`box-shadow ${xe}`,content:'""',pointerEvents:"none"},[`${le}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
${le}-cell-fix-right-first::after,
|
|
${le}-cell-fix-right-last::after
|
|
`]:{position:"absolute",top:0,bottom:-fe,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${xe}`,content:'""',pointerEvents:"none"},[`${le}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:ze+1,width:30,transition:`box-shadow ${xe}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${le}-ping-left`]:{[`&:not(${le}-has-fix-left) ${le}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Ie}`}},[`
|
|
${le}-cell-fix-left-first::after,
|
|
${le}-cell-fix-left-last::after
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${Ie}`},[`${le}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${le}-ping-right`]:{[`&:not(${le}-has-fix-right) ${le}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Ie}`}},[`
|
|
${le}-cell-fix-right-first::after,
|
|
${le}-cell-fix-right-last::after
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${Ie}`}}}}},cl=re=>{const{componentCls:le,antCls:fe}=re;return{[`${le}-wrapper`]:{[`${le}-pagination${fe}-pagination`]:{margin:`${re.margin}px 0`},[`${le}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:re.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},ul=re=>{const{componentCls:le,tableRadius:fe}=re;return{[`${le}-wrapper`]:{[le]:{[`${le}-title, ${le}-header`]:{borderRadius:`${fe}px ${fe}px 0 0`},[`${le}-title + ${le}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${le}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:fe,borderStartEndRadius:fe,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:fe},"> *:last-child":{borderStartEndRadius:fe}}},"&-footer":{borderRadius:`0 0 ${fe}px ${fe}px`}}}}},ml=re=>{const{componentCls:le}=re;return{[`${le}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${le}-pagination-left`]:{justifyContent:"flex-end"},[`${le}-pagination-right`]:{justifyContent:"flex-start"},[`${le}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${le}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${le}-row-indent`]:{float:"right"}}}}},fl=re=>{const{componentCls:le,antCls:fe,iconCls:ve,fontSizeIcon:xe,padding:Le,paddingXS:Me,tableHeaderIconColor:ze,tableHeaderIconColorHover:Ie,tableSelectionColumnWidth:Ye}=re;return{[`${le}-wrapper`]:{[`${le}-selection-col`]:{width:Ye,[`&${le}-selection-col-with-dropdown`]:{width:Ye+xe+Le/4}},[`${le}-bordered ${le}-selection-col`]:{width:Ye+Me*2,[`&${le}-selection-col-with-dropdown`]:{width:Ye+xe+Le/4+Me*2}},[`
|
|
table tr th${le}-selection-column,
|
|
table tr td${le}-selection-column
|
|
`]:{paddingInlineEnd:re.paddingXS,paddingInlineStart:re.paddingXS,textAlign:"center",[`${fe}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${le}-selection-column${le}-cell-fix-left`]:{zIndex:re.zIndexTableFixed+1},[`table tr th${le}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${le}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${le}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${re.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${re.tablePaddingHorizontal/4}px`,[ve]:{color:ze,fontSize:xe,verticalAlign:"baseline","&:hover":{color:Ie}}}}}},hl=re=>{const{componentCls:le}=re,fe=(ve,xe,Le,Me)=>({[`${le}${le}-${ve}`]:{fontSize:Me,[`
|
|
${le}-title,
|
|
${le}-footer,
|
|
${le}-cell,
|
|
${le}-thead > tr > th,
|
|
${le}-tbody > tr > th,
|
|
${le}-tbody > tr > td,
|
|
tfoot > tr > th,
|
|
tfoot > tr > td
|
|
`]:{padding:`${xe}px ${Le}px`},[`${le}-filter-trigger`]:{marginInlineEnd:`-${Le/2}px`},[`${le}-expanded-row-fixed`]:{margin:`-${xe}px -${Le}px`},[`${le}-tbody`]:{[`${le}-wrapper:only-child ${le}`]:{marginBlock:`-${xe}px`,marginInline:`${re.tableExpandColumnWidth-Le}px -${Le}px`}},[`${le}-selection-column`]:{paddingInlineStart:`${Le/4}px`}}});return{[`${le}-wrapper`]:Object.assign(Object.assign({},fe("middle",re.tablePaddingVerticalMiddle,re.tablePaddingHorizontalMiddle,re.tableFontSizeMiddle)),fe("small",re.tablePaddingVerticalSmall,re.tablePaddingHorizontalSmall,re.tableFontSizeSmall))}},Sl=re=>{const{componentCls:le,marginXXS:fe,fontSizeIcon:ve,tableHeaderIconColor:xe,tableHeaderIconColorHover:Le}=re;return{[`${le}-wrapper`]:{[`${le}-thead th${le}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${re.motionDurationSlow}`,"&:hover":{background:re.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:re.colorPrimary},[`
|
|
&${le}-cell-fix-left:hover,
|
|
&${le}-cell-fix-right:hover
|
|
`]:{background:re.tableFixedHeaderSortActiveBg}},[`${le}-thead th${le}-column-sort`]:{background:re.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${le}-column-sort`]:{background:re.tableBodySortBg},[`${le}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${le}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${le}-column-sorter`]:{marginInlineStart:fe,color:xe,fontSize:0,transition:`color ${re.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:ve,"&.active":{color:re.colorPrimary}},[`${le}-column-sorter-up + ${le}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${le}-column-sorters:hover ${le}-column-sorter`]:{color:Le}}}},pl=re=>{const{componentCls:le,opacityLoading:fe,tableScrollThumbBg:ve,tableScrollThumbBgHover:xe,tableScrollThumbSize:Le,tableScrollBg:Me,zIndexTableSticky:ze,stickyScrollBarBorderRadius:Ie}=re,Ye=`${re.lineWidth}px ${re.lineType} ${re.tableBorderColor}`;return{[`${le}-wrapper`]:{[`${le}-sticky`]:{"&-holder":{position:"sticky",zIndex:ze,background:re.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Le}px !important`,zIndex:ze,display:"flex",alignItems:"center",background:Me,borderTop:Ye,opacity:fe,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Le,backgroundColor:ve,borderRadius:Ie,transition:`all ${re.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:xe}}}}}}},ui=re=>{const{componentCls:le,lineWidth:fe,tableBorderColor:ve}=re,xe=`${fe}px ${re.lineType} ${ve}`;return{[`${le}-wrapper`]:{[`${le}-summary`]:{position:"relative",zIndex:re.zIndexTableFixed,background:re.tableBg,"> tr":{"> th, > td":{borderBottom:xe}}},[`div${le}-summary`]:{boxShadow:`0 -${fe}px 0 ${ve}`}}}},vl=re=>{const{componentCls:le}=re,fe=`${re.lineWidth}px ${re.lineType} ${re.tableBorderColor}`,ve=`${le}-expanded-row-cell`;return{[`${le}-wrapper`]:{[`${le}-tbody-virtual`]:{[`${le}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${le}-cell`]:{borderBottom:fe},[`${le}-expanded-row`]:{[`${ve}${ve}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${re.lineWidth}px)`,borderInlineEnd:"none"}}},[`${le}-bordered`]:{[`${le}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:fe,position:"absolute"},[`${le}-cell`]:{borderInlineEnd:fe,[`&${le}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-re.lineWidth,borderInlineStart:fe}}}}}}};const Pl=re=>{const{componentCls:le,fontWeightStrong:fe,tablePaddingVertical:ve,tablePaddingHorizontal:xe,lineWidth:Le,lineType:Me,tableBorderColor:ze,tableFontSize:Ie,tableBg:Ye,tableRadius:rt,tableHeaderTextColor:Qe,motionDurationMid:bt,tableHeaderBg:pt,tableHeaderCellSplitColor:Pt,tableRowHoverBg:At,tableSelectedRowBg:Ot,tableSelectedRowHoverBg:kt,tableFooterTextColor:It,tableFooterBg:jt,paddingContentVerticalLG:dn}=re,sn=`${Le}px ${Me} ${ze}`;return{[`${le}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,mr.dF)()),{[le]:Object.assign(Object.assign({},(0,mr.Wf)(re)),{fontSize:Ie,background:Ye,borderRadius:`${rt}px ${rt}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${rt}px ${rt}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
${le}-cell,
|
|
${le}-thead > tr > th,
|
|
${le}-tbody > tr > th,
|
|
${le}-tbody > tr > td,
|
|
tfoot > tr > th,
|
|
tfoot > tr > td
|
|
`]:{position:"relative",padding:`${dn}px ${xe}px`,overflowWrap:"break-word"},[`${le}-title`]:{padding:`${ve}px ${xe}px`},[`${le}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Qe,fontWeight:fe,textAlign:"start",background:pt,borderBottom:sn,transition:`background ${bt} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${le}-selection-column):not(${le}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Pt,transform:"translateY(-50%)",transition:`background-color ${bt}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${le}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${bt}, border-color ${bt}`,borderBottom:sn,[`
|
|
> ${le}-wrapper:only-child,
|
|
> ${le}-expanded-row-fixed > ${le}-wrapper:only-child
|
|
`]:{[le]:{marginBlock:`-${ve}px`,marginInline:`${re.tableExpandColumnWidth-xe}px -${xe}px`,[`${le}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Qe,fontWeight:fe,textAlign:"start",background:pt,borderBottom:sn,transition:`background ${bt} ease`},[`
|
|
&${le}-row:hover > th,
|
|
&${le}-row:hover > td,
|
|
> th${le}-cell-row-hover,
|
|
> td${le}-cell-row-hover
|
|
`]:{background:At},[`&${le}-row-selected`]:{"> th, > td":{background:Ot},"&:hover > th, &:hover > td":{background:kt}}}},[`${le}-footer`]:{padding:`${ve}px ${xe}px`,color:It,background:jt}})}};var yl=(0,nl.Z)("Table",re=>{const{colorTextHeading:le,colorSplit:fe,colorIcon:ve,colorIconHover:xe,opacityLoading:Le,colorBgContainer:Me,controlInteractiveSize:ze,headerBg:Ie,headerColor:Ye,headerSortActiveBg:rt,headerSortHoverBg:Qe,bodySortBg:bt,rowHoverBg:pt,rowSelectedBg:Pt,rowSelectedHoverBg:At,rowExpandedBg:Ot,cellPaddingBlock:kt,cellPaddingInline:It,cellPaddingBlockMD:jt,cellPaddingInlineMD:dn,cellPaddingBlockSM:sn,cellPaddingInlineSM:qt,borderColor:Cn,footerBg:$n,footerColor:Wt,headerBorderRadius:en,cellFontSize:Ut,cellFontSizeMD:Kt,cellFontSizeSM:Qt,headerSplitColor:bn,fixedHeaderSortActiveBg:Dn,headerFilterHoverBg:Fn,filterDropdownBg:fn,expandIconBg:Mn,selectionColumnWidth:Rn,stickyScrollBarBg:ga}=re,Un=new er.C(ve),ya=new er.C(xe),ba=2,On=(0,al.TS)(re,{tableFontSize:Ut,tableBg:Me,tableRadius:en,tablePaddingVertical:kt,tablePaddingHorizontal:It,tablePaddingVerticalMiddle:jt,tablePaddingHorizontalMiddle:dn,tablePaddingVerticalSmall:sn,tablePaddingHorizontalSmall:qt,tableBorderColor:Cn,tableHeaderTextColor:Ye,tableHeaderBg:Ie,tableFooterTextColor:Wt,tableFooterBg:$n,tableHeaderCellSplitColor:bn,tableHeaderSortBg:rt,tableHeaderSortHoverBg:Qe,tableHeaderIconColor:Un.clone().setAlpha(Un.getAlpha()*Le).toRgbString(),tableHeaderIconColorHover:ya.clone().setAlpha(ya.getAlpha()*Le).toRgbString(),tableBodySortBg:bt,tableFixedHeaderSortActiveBg:Dn,tableHeaderFilterActiveBg:Fn,tableFilterDropdownBg:fn,tableRowHoverBg:pt,tableSelectedRowBg:Pt,tableSelectedRowHoverBg:At,zIndexTableFixed:ba,zIndexTableSticky:ba+1,tableFontSizeMiddle:Kt,tableFontSizeSmall:Qt,tableSelectionColumnWidth:Rn,tableExpandIconBg:Mn,tableExpandColumnWidth:ze+2*re.padding,tableExpandedRowBg:Ot,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:ga,tableScrollThumbBgHover:le,tableScrollBg:fe});return[Pl(On),cl(On),ui(On),Sl(On),dl(On),ol(On),ul(On),gl(On),ui(On),il(On),fl(On),sl(On),pl(On),rl(On),hl(On),ml(On),vl(On)]},re=>{const{colorFillAlter:le,colorBgContainer:fe,colorTextHeading:ve,colorFillSecondary:xe,colorFillContent:Le,controlItemBgActive:Me,controlItemBgActiveHover:ze,padding:Ie,paddingSM:Ye,paddingXS:rt,colorBorderSecondary:Qe,borderRadiusLG:bt,fontSize:pt,controlHeight:Pt,colorTextPlaceholder:At}=re,Ot=new er.C(xe).onBackground(fe).toHexShortString(),kt=new er.C(Le).onBackground(fe).toHexShortString(),It=new er.C(le).onBackground(fe).toHexShortString();return{headerBg:It,headerColor:ve,headerSortActiveBg:Ot,headerSortHoverBg:kt,bodySortBg:It,rowHoverBg:It,rowSelectedBg:Me,rowSelectedHoverBg:ze,rowExpandedBg:le,cellPaddingBlock:Ie,cellPaddingInline:Ie,cellPaddingBlockMD:Ye,cellPaddingInlineMD:rt,cellPaddingBlockSM:rt,cellPaddingInlineSM:rt,borderColor:Qe,headerBorderRadius:bt,footerBg:It,footerColor:ve,cellFontSize:pt,cellFontSizeMD:pt,cellFontSizeSM:pt,headerSplitColor:Qe,fixedHeaderSortActiveBg:Ot,headerFilterHoverBg:Le,filterDropdownMenuBg:fe,filterDropdownBg:fe,expandIconBg:fe,selectionColumnWidth:Pt,stickyScrollBarBg:At,stickyScrollBarBorderRadius:100}});const bl=[],xl=(re,le)=>{const{prefixCls:fe,className:ve,rootClassName:xe,style:Le,size:Me,bordered:ze,dropdownPrefixCls:Ie,dataSource:Ye,pagination:rt,rowSelection:Qe,rowKey:bt="key",rowClassName:pt,columns:Pt,children:At,childrenColumnName:Ot,onChange:kt,getPopupContainer:It,loading:jt,expandIcon:dn,expandable:sn,expandedRowRender:qt,expandIconColumnIndex:Cn,indentSize:$n,scroll:Wt,sortDirections:en,locale:Ut,showSorterTooltip:Kt=!0,virtual:Qt}=re,bn=ae.useMemo(()=>Pt||_e(At),[Pt,At]),Dn=ae.useMemo(()=>bn.some(Wn=>Wn.responsive),[bn]),Fn=(0,Xr.Z)(Dn),fn=ae.useMemo(()=>{const Wn=new Set(Object.keys(Fn).filter(sa=>Fn[sa]));return bn.filter(sa=>!sa.responsive||sa.responsive.some(Ga=>Wn.has(Ga)))},[bn,Fn]),Mn=(0,xr.Z)(re,["className","style","columns"]),{locale:Rn=Yr.Z,direction:ga,table:Un,renderEmpty:ya,getPrefixCls:ba,getPopupContainer:On}=ae.useContext(gr.E_),La=(0,Lr.Z)(Me),Xn=Object.assign(Object.assign({},Rn.Table),Ut),ma=Ye||bl,ua=ba("table",fe),Ya=ba("dropdown",Ie),Pn=Object.assign({childrenColumnName:Ot,expandIconColumnIndex:Cn},sn),{childrenColumnName:Sn="children"}=Pn,hn=ae.useMemo(()=>ma.some(Wn=>Wn==null?void 0:Wn[Sn])?"nest":qt||sn&&sn.expandedRowRender?"row":null,[ma]),rn={body:ae.useRef()},Yn=ae.useMemo(()=>typeof bt=="function"?bt:Wn=>Wn==null?void 0:Wn[bt],[bt]),[ln]=Ai(ma,Sn,Yn),En={},_n=function(Wn,sa){let Ga=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Pa,ja,qa;const eo=Object.assign(Object.assign({},En),Wn);Ga&&((Pa=En.resetPagination)===null||Pa===void 0||Pa.call(En),!((ja=eo.pagination)===null||ja===void 0)&&ja.current&&(eo.pagination.current=1),rt&&rt.onChange&&rt.onChange(1,(qa=eo.pagination)===null||qa===void 0?void 0:qa.pageSize)),Wt&&Wt.scrollToFirstRowOnChange!==!1&&rn.body.current&&(0,Cr.Z)(0,{getContainer:()=>rn.body.current}),kt==null||kt(eo.pagination,eo.filters,eo.sorter,{currentDataSource:ti(Rr(ma,eo.sorterStates,Sn),eo.filterStates),action:sa})},Zn=(Wn,sa)=>{_n({sorter:Wn,sorterStates:sa},"sort",!1)},[Za,Ra,ho,wa]=Qi({prefixCls:ua,mergedColumns:fn,onSorterChange:Zn,sortDirections:en||["ascend","descend"],tableLocale:Xn,showSorterTooltip:Kt}),lo=ae.useMemo(()=>Rr(ma,Ra,Sn),[ma,Ra]);En.sorter=wa(),En.sorterStates=Ra;const Ea=(Wn,sa)=>{_n({filters:Wn,filterStates:sa},"filter",!0)},[Ja,Do,ea]=Ri({prefixCls:ua,locale:Xn,dropdownPrefixCls:Ya,mergedColumns:fn,onFilterChange:Ea,getPopupContainer:It||On}),aa=ti(lo,Do);En.filters=ea,En.filterStates=Do;const pa=ae.useMemo(()=>{const Wn={};return Object.keys(ea).forEach(sa=>{ea[sa]!==null&&(Wn[sa]=ea[sa])}),Object.assign(Object.assign({},ho),{filters:Wn})},[ho,ea]),[Na]=qi(pa),$a=(Wn,sa)=>{_n({pagination:Object.assign(Object.assign({},En.pagination),{current:Wn,pageSize:sa})},"paginate")},[An,Ua]=Hi(aa.length,$a,rt);En.pagination=rt===!1?{}:Ki(An,rt),En.resetPagination=Ua;const Ha=ae.useMemo(()=>{if(rt===!1||!An.pageSize)return aa;const{current:Wn=1,total:sa,pageSize:Ga=ai}=An;return aa.length<sa?aa.length>Ga?aa.slice((Wn-1)*Ga,Wn*Ga):aa:aa.slice((Wn-1)*Ga,Wn*Ga)},[!!rt,aa,An&&An.current,An&&An.pageSize,An&&An.total]),[no,vo]=Ui({prefixCls:ua,data:aa,pageData:Ha,getRowKey:Yn,getRecordByKey:ln,expandType:hn,childrenColumnName:Sn,locale:Xn,getPopupContainer:It||On},Qe),So=(Wn,sa,Ga)=>{let Pa;return typeof pt=="function"?Pa=it()(pt(Wn,sa,Ga)):Pa=it()(pt),it()({[`${ua}-row-selected`]:vo.has(Yn(Wn,sa))},Pa)};Pn.__PARENT_RENDER_ICON__=Pn.expandIcon,Pn.expandIcon=Pn.expandIcon||dn||nn(Xn),hn==="nest"&&Pn.expandIconColumnIndex===void 0?Pn.expandIconColumnIndex=Qe?1:0:Pn.expandIconColumnIndex>0&&Qe&&(Pn.expandIconColumnIndex-=1),typeof Pn.indentSize!="number"&&(Pn.indentSize=typeof $n=="number"?$n:15);const tr=ae.useCallback(Wn=>Na(no(Ja(Za(Wn)))),[Za,Ja,no]);let Eo,so;if(rt!==!1&&(An!=null&&An.total)){let Wn;An.size?Wn=An.size:Wn=La==="small"||La==="middle"?"small":void 0;const sa=ja=>ae.createElement(wr.Z,Object.assign({},An,{className:it()(`${ua}-pagination ${ua}-pagination-${ja}`,An.className),size:Wn})),Ga=ga==="rtl"?"left":"right",{position:Pa}=An;if(Pa!==null&&Array.isArray(Pa)){const ja=Pa.find(Bo=>Bo.includes("top")),qa=Pa.find(Bo=>Bo.includes("bottom")),eo=Pa.every(Bo=>`${Bo}`=="none");!ja&&!qa&&!eo&&(so=sa(Ga)),ja&&(Eo=sa(ja.toLowerCase().replace("top",""))),qa&&(so=sa(qa.toLowerCase().replace("bottom","")))}else so=sa(Ga)}let Qa;typeof jt=="boolean"?Qa={spinning:jt}:typeof jt=="object"&&(Qa=Object.assign({spinning:!0},jt));const[Va,Oa]=yl(ua),[,va]=(0,mn.Z)(),Po=it()(`${ua}-wrapper`,Un==null?void 0:Un.className,{[`${ua}-wrapper-rtl`]:ga==="rtl"},ve,xe,Oa),Mo=Object.assign(Object.assign({},Un==null?void 0:Un.style),Le),No=Ut&&Ut.emptyText||(ya==null?void 0:ya("Table"))||ae.createElement(Vr.Z,{componentName:"Table"}),yo=Qt?tl:el,fr={},Ar=ae.useMemo(()=>{const{fontSize:Wn,lineHeight:sa,padding:Ga,paddingXS:Pa,paddingSM:ja}=va,qa=Math.floor(Wn*sa);switch(La){case"large":return Ga*2+qa;case"small":return Pa*2+qa;default:return ja*2+qa}},[va,La]);return Qt&&(fr.listItemHeight=Ar),Va(ae.createElement("div",{ref:le,className:Po,style:Mo},ae.createElement(Er.Z,Object.assign({spinning:!1},Qa),Eo,ae.createElement(yo,Object.assign({},fr,Mn,{columns:fn,direction:ga,expandable:Pn,prefixCls:ua,className:it()({[`${ua}-middle`]:La==="middle",[`${ua}-small`]:La==="small",[`${ua}-bordered`]:ze,[`${ua}-empty`]:ma.length===0}),data:Ha,rowKey:Yn,rowClassName:So,emptyText:No,internalHooks:ce,internalRefs:rn,transformColumns:tr})),so)))};var Cl=ae.forwardRef(xl);const Ll=(re,le)=>{const fe=ae.useRef(0);return fe.current+=1,ae.createElement(Cl,Object.assign({},re,{ref:le,_renderTimes:fe.current}))},wo=ae.forwardRef(Ll);wo.SELECTION_COLUMN=Fo,wo.EXPAND_COLUMN=ie,wo.SELECTION_ALL=Ir,wo.SELECTION_INVERT=Tr,wo.SELECTION_NONE=Dr,wo.Column=uo,wo.ColumnGroup=po,wo.Summary=pe;var wl=wo,El=wl},17574:function(qe,gt,ne){"use strict";ne.d(gt,{default:function(){return st}});var ie=ne(60091),ce=ne(94480),De=ne(52671),We=ne(8657),we=ne(54476),Be=ne(59301),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Je=ae,Ve=ne(7657),He=function(wt,Ft){return Be.createElement(Ve.Z,(0,we.Z)({},wt,{ref:Ft,icon:Je}))},Re=Be.forwardRef(He),et=Re,Ke=ne(92310),oe=ne.n(Ke),y=ne(35654),a=ne(71430),x=ne(36355),b=ne(56082),E=ne(62892),z=ne(20648);const ee=4;function te(St){const{dropPosition:wt,dropLevelOffset:Ft,prefixCls:Tt,indent:Oe,direction:je="ltr"}=St,ct=je==="ltr"?"left":"right",Gt=je==="ltr"?"right":"left",nt={[ct]:-Ft*Oe+ee,[Gt]:0};switch(wt){case-1:nt.top=-3;break;case 1:nt.bottom=-3;break;default:nt.bottom=-3,nt[ct]=Oe+ee;break}return Be.createElement("div",{style:nt,className:`${Tt}-drop-indicator`})}var ge=ne(71997),se=Be.forwardRef((St,wt)=>{const{getPrefixCls:Ft,direction:Tt,virtual:Oe,tree:je}=Be.useContext(x.E_),{prefixCls:ct,className:Gt,showIcon:nt=!1,showLine:$t,switcherIcon:ye,blockNode:Et=!1,children:Ht,checkable:cn=!1,selectable:Xt=!0,draggable:Te,motion:$e,style:Fe}=St,me=Ft("tree",ct),Ue=Ft(),vt=$e!=null?$e:Object.assign(Object.assign({},(0,E.Z)(Ue)),{motionAppear:!1}),pe=Object.assign(Object.assign({},St),{checkable:cn,selectable:Xt,showIcon:nt,motion:vt,blockNode:Et,showLine:!!$t,dropIndicatorRender:te}),[ue,Ze]=(0,z.ZP)(me),Ne=Be.useMemo(()=>{if(!Te)return!1;let ke={};switch(typeof Te){case"function":ke.nodeDraggable=Te;break;case"object":ke=Object.assign({},Te);break;default:break}return ke.icon!==!1&&(ke.icon=ke.icon||Be.createElement(b.Z,null)),ke},[Te]),Pe=ke=>Be.createElement(ge.Z,{prefixCls:me,switcherIcon:ye,treeNodeProps:ke,showLine:$t});return ue(Be.createElement(ie.Z,Object.assign({itemHeight:20,ref:wt,virtual:Oe},pe,{style:Object.assign(Object.assign({},je==null?void 0:je.style),Fe),prefixCls:me,className:oe()({[`${me}-icon-hide`]:!nt,[`${me}-block-node`]:Et,[`${me}-unselectable`]:!Xt,[`${me}-rtl`]:Tt==="rtl"},je==null?void 0:je.className,Gt,Ze),direction:Tt,checkable:cn&&Be.createElement("span",{className:`${me}-checkbox-inner`}),selectable:Xt,switcherIcon:Pe,draggable:Ne}),Ht))}),be;(function(St){St[St.None=0]="None",St[St.Start=1]="Start",St[St.End=2]="End"})(be||(be={}));function Se(St,wt){function Ft(Tt){const{key:Oe,children:je}=Tt;wt(Oe,Tt)!==!1&&Se(je||[],wt)}St.forEach(Ft)}function Ee(St){let{treeData:wt,expandedKeys:Ft,startKey:Tt,endKey:Oe}=St;const je=[];let ct=be.None;if(Tt&&Tt===Oe)return[Tt];if(!Tt||!Oe)return[];function Gt(nt){return nt===Tt||nt===Oe}return Se(wt,nt=>{if(ct===be.End)return!1;if(Gt(nt)){if(je.push(nt),ct===be.None)ct=be.Start;else if(ct===be.Start)return ct=be.End,!1}else ct===be.Start&&je.push(nt);return Ft.includes(nt)}),je}function he(St,wt){const Ft=(0,ce.Z)(wt),Tt=[];return Se(St,(Oe,je)=>{const ct=Ft.indexOf(Oe);return ct!==-1&&(Tt.push(je),Ft.splice(ct,1)),!!Ft.length}),Tt}var ft=function(St,wt){var Ft={};for(var Tt in St)Object.prototype.hasOwnProperty.call(St,Tt)&&wt.indexOf(Tt)<0&&(Ft[Tt]=St[Tt]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Tt=Object.getOwnPropertySymbols(St);Oe<Tt.length;Oe++)wt.indexOf(Tt[Oe])<0&&Object.prototype.propertyIsEnumerable.call(St,Tt[Oe])&&(Ft[Tt[Oe]]=St[Tt[Oe]]);return Ft};function it(St){const{isLeaf:wt,expanded:Ft}=St;return wt?Be.createElement(De.Z,null):Ft?Be.createElement(We.Z,null):Be.createElement(et,null)}function _t(St){let{treeData:wt,children:Ft}=St;return wt||(0,a.zn)(Ft)}const Ce=(St,wt)=>{var{defaultExpandAll:Ft,defaultExpandParent:Tt,defaultExpandedKeys:Oe}=St,je=ft(St,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const ct=Be.useRef(),Gt=Be.useRef(),nt=()=>{const{keyEntities:Ne}=(0,a.I8)(_t(je));let Pe;return Ft?Pe=Object.keys(Ne):Tt?Pe=(0,y.r7)(je.expandedKeys||Oe||[],Ne):Pe=je.expandedKeys||Oe,Pe},[$t,ye]=Be.useState(je.selectedKeys||je.defaultSelectedKeys||[]),[Et,Ht]=Be.useState(()=>nt());Be.useEffect(()=>{"selectedKeys"in je&&ye(je.selectedKeys)},[je.selectedKeys]),Be.useEffect(()=>{"expandedKeys"in je&&Ht(je.expandedKeys)},[je.expandedKeys]);const cn=(Ne,Pe)=>{var ke;return"expandedKeys"in je||Ht(Ne),(ke=je.onExpand)===null||ke===void 0?void 0:ke.call(je,Ne,Pe)},Xt=(Ne,Pe)=>{var ke;const{multiple:Lt}=je,{node:mt,nativeEvent:xt}=Pe,{key:lt=""}=mt,yt=_t(je),ot=Object.assign(Object.assign({},Pe),{selected:!0}),Zt=(xt==null?void 0:xt.ctrlKey)||(xt==null?void 0:xt.metaKey),Rt=xt==null?void 0:xt.shiftKey;let Nt;Lt&&Zt?(Nt=Ne,ct.current=lt,Gt.current=Nt,ot.selectedNodes=he(yt,Nt)):Lt&&Rt?(Nt=Array.from(new Set([].concat((0,ce.Z)(Gt.current||[]),(0,ce.Z)(Ee({treeData:yt,expandedKeys:Et,startKey:lt,endKey:ct.current}))))),ot.selectedNodes=he(yt,Nt)):(Nt=[lt],ct.current=lt,Gt.current=Nt,ot.selectedNodes=he(yt,Nt)),(ke=je.onSelect)===null||ke===void 0||ke.call(je,Nt,ot),"selectedKeys"in je||ye(Nt)},{getPrefixCls:Te,direction:$e}=Be.useContext(x.E_),{prefixCls:Fe,className:me,showIcon:Ue=!0,expandAction:vt="click"}=je,pe=ft(je,["prefixCls","className","showIcon","expandAction"]),ue=Te("tree",Fe),Ze=oe()(`${ue}-directory`,{[`${ue}-directory-rtl`]:$e==="rtl"},me);return Be.createElement(se,Object.assign({icon:it,ref:wt,blockNode:!0},pe,{showIcon:Ue,expandAction:vt,prefixCls:ue,className:Ze,expandedKeys:Et,selectedKeys:$t,onSelect:Xt,onExpand:cn}))};var tt=Be.forwardRef(Ce);const at=se;at.DirectoryTree=tt,at.TreeNode=ie.O;var st=at},20648:function(qe,gt,ne){"use strict";ne.d(gt,{TM:function(){return Ke},Yk:function(){return et}});var ie=ne(36237),ce=ne(98447),De=ne(17313),We=ne(8378),we=ne(37613),Be=ne(83116);const ae=new ie.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Je=(oe,y)=>({[`.${oe}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${y.motionDurationSlow}`}}}),Ve=(oe,y)=>({[`.${oe}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:y.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${y.lineWidthBold}px solid ${y.colorPrimary}`,borderRadius:"50%",content:'""'}}}),He=(oe,y)=>{const{treeCls:a,treeNodeCls:x,treeNodePadding:b,titleHeight:E,nodeSelectedBg:z,nodeHoverBg:ee}=y,te=y.paddingXS;return{[a]:Object.assign(Object.assign({},(0,De.Wf)(y)),{background:y.colorBgContainer,borderRadius:y.borderRadius,transition:`background-color ${y.motionDurationSlow}`,[`&${a}-rtl`]:{[`${a}-switcher`]:{"&_close":{[`${a}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${a}-active-focused)`]:Object.assign({},(0,De.oN)(y)),[`${a}-list-holder-inner`]:{alignItems:"flex-start"},[`&${a}-block-node`]:{[`${a}-list-holder-inner`]:{alignItems:"stretch",[`${a}-node-content-wrapper`]:{flex:"auto"},[`${x}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:b,insetInlineStart:0,border:`1px solid ${y.colorPrimary}`,opacity:0,animationName:ae,animationDuration:y.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${x}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${b}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${a}-node-content-wrapper`]:{color:y.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${a}-node-content-wrapper`]:Object.assign({},(0,De.oN)(y)),[`&:not(${x}-disabled).filter-node ${a}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${a}-draggable-icon`]:{flexShrink:0,width:E,lineHeight:`${E}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${y.motionDurationSlow}`,[`${x}:hover &`]:{opacity:.45}},[`&${x}-disabled`]:{[`${a}-draggable-icon`]:{visibility:"hidden"}}}},[`${a}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:E}},[`${a}-draggable-icon`]:{visibility:"hidden"},[`${a}-switcher`]:Object.assign(Object.assign({},Je(oe,y)),{position:"relative",flex:"none",alignSelf:"stretch",width:E,margin:0,lineHeight:`${E}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${a}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:y.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:E/2,bottom:-b,marginInlineStart:-1,borderInlineEnd:`1px solid ${y.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:E/2*.8,height:E/2,borderBottom:`1px solid ${y.colorBorder}`,content:'""'}}}),[`${a}-checkbox`]:{top:"initial",marginInlineEnd:te},[`${a}-node-content-wrapper, ${a}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:E,margin:0,padding:`0 ${y.paddingXS/2}px`,color:"inherit",lineHeight:`${E}px`,background:"transparent",borderRadius:y.borderRadius,cursor:"pointer",transition:`all ${y.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:ee},[`&${a}-node-selected`]:{backgroundColor:z},[`${a}-iconEle`]:{display:"inline-block",width:E,height:E,lineHeight:`${E}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${a}-unselectable ${a}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${a}-node-content-wrapper`]:Object.assign({lineHeight:`${E}px`,userSelect:"none"},Ve(oe,y)),[`${x}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${y.colorPrimary}`}},"&-show-line":{[`${a}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:E/2,bottom:-b,borderInlineEnd:`1px solid ${y.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${a}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${x}-leaf-last`]:{[`${a}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${E/2}px !important`}}}}})}},Re=oe=>{const{treeCls:y,treeNodeCls:a,treeNodePadding:x,directoryNodeSelectedBg:b,directoryNodeSelectedColor:E}=oe;return{[`${y}${y}-directory`]:{[a]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:x,insetInlineStart:0,transition:`background-color ${oe.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:oe.controlItemBgHover}},"> *":{zIndex:1},[`${y}-switcher`]:{transition:`color ${oe.motionDurationMid}`},[`${y}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${y}-node-selected`]:{color:E,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:b},[`${y}-switcher`]:{color:E},[`${y}-node-content-wrapper`]:{color:E,background:"transparent"}}}}}},et=(oe,y)=>{const a=`.${oe}`,x=`${a}-treenode`,b=y.paddingXS/2,E=(0,we.TS)(y,{treeCls:a,treeNodeCls:x,treeNodePadding:b});return[He(oe,E),Re(E)]},Ke=oe=>{const{controlHeightSM:y}=oe;return{titleHeight:y,nodeHoverBg:oe.controlItemBgHover,nodeSelectedBg:oe.controlItemBgActive}};gt.ZP=(0,Be.Z)("Tree",(oe,y)=>{let{prefixCls:a}=y;return[{[oe.componentCls]:(0,ce.C2)(`${a}-checkbox`,oe)},et(a,oe),(0,We.Z)(oe)]},oe=>{const{colorTextLightSolid:y,colorPrimary:a}=oe;return Object.assign(Object.assign({},Ke(oe)),{directoryNodeSelectedColor:y,directoryNodeSelectedBg:a})})},71997:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return x}});var ie=ne(54476),ce=ne(59301),De={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},We=De,we=ne(7657),Be=function(E,z){return ce.createElement(we.Z,(0,ie.Z)({},E,{ref:z,icon:We}))},ae=ce.forwardRef(Be),Je=ae,Ve=ne(52671),He=ne(58617),Re=ne(15075),et=ne(43531),Ke=ne(92310),oe=ne.n(Ke),y=ne(92343),x=b=>{const{prefixCls:E,switcherIcon:z,treeNodeProps:ee,showLine:te}=b,{isLeaf:ge,expanded:de,loading:se}=ee;if(se)return ce.createElement(He.Z,{className:`${E}-switcher-loading-icon`});let be;if(te&&typeof te=="object"&&(be=te.showLeafIcon),ge){if(!te)return null;if(typeof be!="boolean"&&be){const he=typeof be=="function"?be(ee):be,ft=`${E}-switcher-line-custom-icon`;return(0,y.l$)(he)?(0,y.Tm)(he,{className:oe()(he.props.className||"",ft)}):he}return be?ce.createElement(Ve.Z,{className:`${E}-switcher-line-icon`}):ce.createElement("span",{className:`${E}-switcher-leaf-line`})}const Se=`${E}-switcher-icon`,Ee=typeof z=="function"?z(ee):z;return(0,y.l$)(Ee)?(0,y.Tm)(Ee,{className:oe()(Ee.props.className||"",Se)}):Ee!==void 0?Ee:te?de?ce.createElement(Re.Z,{className:`${E}-switcher-line-icon`}):ce.createElement(et.Z,{className:`${E}-switcher-line-icon`}):ce.createElement(Je,{className:Se})}},91735:function(qe,gt){"use strict";gt.Z={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"}},39417:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return se}});var ie=ne(54476),ce=ne(20068),De=ne(75931),We=ne(33885),we=ne(67732),Be=ne(83652),ae=ne(31226),Je=ne(42403),Ve=ne(158),He=ne(92310),Re=ne.n(He),et=ne(26112),Ke=ne(59301),oe=ne(39378),y=function(Se){for(var Ee=Se.prefixCls,he=Se.level,ft=Se.isStart,it=Se.isEnd,_t="".concat(Ee,"-indent-unit"),Ce=[],Ae=0;Ae<he;Ae+=1){var tt;Ce.push(Ke.createElement("span",{key:Ae,className:Re()(_t,(tt={},(0,ce.Z)(tt,"".concat(_t,"-start"),ft[Ae]),(0,ce.Z)(tt,"".concat(_t,"-end"),it[Ae]),tt))}))}return Ke.createElement("span",{"aria-hidden":"true",className:"".concat(Ee,"-indent")},Ce)},a=Ke.memo(y),x=ne(67841),b=ne(71430),E=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],z="open",ee="close",te="---",ge=function(be){(0,Je.Z)(Ee,be);var Se=(0,Ve.Z)(Ee);function Ee(){var he;(0,we.Z)(this,Ee);for(var ft=arguments.length,it=new Array(ft),_t=0;_t<ft;_t++)it[_t]=arguments[_t];return he=Se.call.apply(Se,[this].concat(it)),he.state={dragNodeHighlight:!1},he.selectHandle=void 0,he.cacheIndent=void 0,he.onSelectorClick=function(Ce){var Ae=he.props.context.onNodeClick;Ae(Ce,(0,b.F)(he.props)),he.isSelectable()?he.onSelect(Ce):he.onCheck(Ce)},he.onSelectorDoubleClick=function(Ce){var Ae=he.props.context.onNodeDoubleClick;Ae(Ce,(0,b.F)(he.props))},he.onSelect=function(Ce){if(!he.isDisabled()){var Ae=he.props.context.onNodeSelect;Ae(Ce,(0,b.F)(he.props))}},he.onCheck=function(Ce){if(!he.isDisabled()){var Ae=he.props,tt=Ae.disableCheckbox,at=Ae.checked,st=he.props.context.onNodeCheck;if(!(!he.isCheckable()||tt)){var St=!at;st(Ce,(0,b.F)(he.props),St)}}},he.onMouseEnter=function(Ce){var Ae=he.props.context.onNodeMouseEnter;Ae(Ce,(0,b.F)(he.props))},he.onMouseLeave=function(Ce){var Ae=he.props.context.onNodeMouseLeave;Ae(Ce,(0,b.F)(he.props))},he.onContextMenu=function(Ce){var Ae=he.props.context.onNodeContextMenu;Ae(Ce,(0,b.F)(he.props))},he.onDragStart=function(Ce){var Ae=he.props.context.onNodeDragStart;Ce.stopPropagation(),he.setState({dragNodeHighlight:!0}),Ae(Ce,(0,ae.Z)(he));try{Ce.dataTransfer.setData("text/plain","")}catch(tt){}},he.onDragEnter=function(Ce){var Ae=he.props.context.onNodeDragEnter;Ce.preventDefault(),Ce.stopPropagation(),Ae(Ce,(0,ae.Z)(he))},he.onDragOver=function(Ce){var Ae=he.props.context.onNodeDragOver;Ce.preventDefault(),Ce.stopPropagation(),Ae(Ce,(0,ae.Z)(he))},he.onDragLeave=function(Ce){var Ae=he.props.context.onNodeDragLeave;Ce.stopPropagation(),Ae(Ce,(0,ae.Z)(he))},he.onDragEnd=function(Ce){var Ae=he.props.context.onNodeDragEnd;Ce.stopPropagation(),he.setState({dragNodeHighlight:!1}),Ae(Ce,(0,ae.Z)(he))},he.onDrop=function(Ce){var Ae=he.props.context.onNodeDrop;Ce.preventDefault(),Ce.stopPropagation(),he.setState({dragNodeHighlight:!1}),Ae(Ce,(0,ae.Z)(he))},he.onExpand=function(Ce){var Ae=he.props,tt=Ae.loading,at=Ae.context.onNodeExpand;tt||at(Ce,(0,b.F)(he.props))},he.setSelectHandle=function(Ce){he.selectHandle=Ce},he.getNodeState=function(){var Ce=he.props.expanded;return he.isLeaf()?null:Ce?z:ee},he.hasChildren=function(){var Ce=he.props.eventKey,Ae=he.props.context.keyEntities,tt=(0,x.Z)(Ae,Ce)||{},at=tt.children;return!!(at||[]).length},he.isLeaf=function(){var Ce=he.props,Ae=Ce.isLeaf,tt=Ce.loaded,at=he.props.context.loadData,st=he.hasChildren();return Ae===!1?!1:Ae||!at&&!st||at&&tt&&!st},he.isDisabled=function(){var Ce=he.props.disabled,Ae=he.props.context.disabled;return!!(Ae||Ce)},he.isCheckable=function(){var Ce=he.props.checkable,Ae=he.props.context.checkable;return!Ae||Ce===!1?!1:Ae},he.syncLoadData=function(Ce){var Ae=Ce.expanded,tt=Ce.loading,at=Ce.loaded,st=he.props.context,St=st.loadData,wt=st.onNodeLoad;tt||St&&Ae&&!he.isLeaf()&&!he.hasChildren()&&!at&&wt((0,b.F)(he.props))},he.isDraggable=function(){var Ce=he.props,Ae=Ce.data,tt=Ce.context.draggable;return!!(tt&&(!tt.nodeDraggable||tt.nodeDraggable(Ae)))},he.renderDragHandler=function(){var Ce=he.props.context,Ae=Ce.draggable,tt=Ce.prefixCls;return Ae!=null&&Ae.icon?Ke.createElement("span",{className:"".concat(tt,"-draggable-icon")},Ae.icon):null},he.renderSwitcherIconDom=function(Ce){var Ae=he.props.switcherIcon,tt=he.props.context.switcherIcon,at=Ae||tt;return typeof at=="function"?at((0,We.Z)((0,We.Z)({},he.props),{},{isLeaf:Ce})):at},he.renderSwitcher=function(){var Ce=he.props.expanded,Ae=he.props.context.prefixCls;if(he.isLeaf()){var tt=he.renderSwitcherIconDom(!0);return tt!==!1?Ke.createElement("span",{className:Re()("".concat(Ae,"-switcher"),"".concat(Ae,"-switcher-noop"))},tt):null}var at=Re()("".concat(Ae,"-switcher"),"".concat(Ae,"-switcher_").concat(Ce?z:ee)),st=he.renderSwitcherIconDom(!1);return st!==!1?Ke.createElement("span",{onClick:he.onExpand,className:at},st):null},he.renderCheckbox=function(){var Ce=he.props,Ae=Ce.checked,tt=Ce.halfChecked,at=Ce.disableCheckbox,st=he.props.context.prefixCls,St=he.isDisabled(),wt=he.isCheckable();if(!wt)return null;var Ft=typeof wt!="boolean"?wt:null;return Ke.createElement("span",{className:Re()("".concat(st,"-checkbox"),Ae&&"".concat(st,"-checkbox-checked"),!Ae&&tt&&"".concat(st,"-checkbox-indeterminate"),(St||at)&&"".concat(st,"-checkbox-disabled")),onClick:he.onCheck},Ft)},he.renderIcon=function(){var Ce=he.props.loading,Ae=he.props.context.prefixCls;return Ke.createElement("span",{className:Re()("".concat(Ae,"-iconEle"),"".concat(Ae,"-icon__").concat(he.getNodeState()||"docu"),Ce&&"".concat(Ae,"-icon_loading"))})},he.renderSelector=function(){var Ce=he.state.dragNodeHighlight,Ae=he.props,tt=Ae.title,at=tt===void 0?te:tt,st=Ae.selected,St=Ae.icon,wt=Ae.loading,Ft=Ae.data,Tt=he.props.context,Oe=Tt.prefixCls,je=Tt.showIcon,ct=Tt.icon,Gt=Tt.loadData,nt=Tt.titleRender,$t=he.isDisabled(),ye="".concat(Oe,"-node-content-wrapper"),Et;if(je){var Ht=St||ct;Et=Ht?Ke.createElement("span",{className:Re()("".concat(Oe,"-iconEle"),"".concat(Oe,"-icon__customize"))},typeof Ht=="function"?Ht(he.props):Ht):he.renderIcon()}else Gt&&wt&&(Et=he.renderIcon());var cn;typeof at=="function"?cn=at(Ft):nt?cn=nt(Ft):cn=at;var Xt=Ke.createElement("span",{className:"".concat(Oe,"-title")},cn);return Ke.createElement("span",{ref:he.setSelectHandle,title:typeof at=="string"?at:"",className:Re()("".concat(ye),"".concat(ye,"-").concat(he.getNodeState()||"normal"),!$t&&(st||Ce)&&"".concat(Oe,"-node-selected")),onMouseEnter:he.onMouseEnter,onMouseLeave:he.onMouseLeave,onContextMenu:he.onContextMenu,onClick:he.onSelectorClick,onDoubleClick:he.onSelectorDoubleClick},Et,Xt,he.renderDropIndicator())},he.renderDropIndicator=function(){var Ce=he.props,Ae=Ce.disabled,tt=Ce.eventKey,at=he.props.context,st=at.draggable,St=at.dropLevelOffset,wt=at.dropPosition,Ft=at.prefixCls,Tt=at.indent,Oe=at.dropIndicatorRender,je=at.dragOverNodeKey,ct=at.direction,Gt=!!st,nt=!Ae&&Gt&&je===tt,$t=Tt!=null?Tt:he.cacheIndent;return he.cacheIndent=Tt,nt?Oe({dropPosition:wt,dropLevelOffset:St,indent:$t,prefixCls:Ft,direction:ct}):null},he}return(0,Be.Z)(Ee,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var ft=this.props.selectable,it=this.props.context.selectable;return typeof ft=="boolean"?ft:it}},{key:"render",value:function(){var ft,it=this.props,_t=it.eventKey,Ce=it.className,Ae=it.style,tt=it.dragOver,at=it.dragOverGapTop,st=it.dragOverGapBottom,St=it.isLeaf,wt=it.isStart,Ft=it.isEnd,Tt=it.expanded,Oe=it.selected,je=it.checked,ct=it.halfChecked,Gt=it.loading,nt=it.domRef,$t=it.active,ye=it.data,Et=it.onMouseMove,Ht=it.selectable,cn=(0,De.Z)(it,E),Xt=this.props.context,Te=Xt.prefixCls,$e=Xt.filterTreeNode,Fe=Xt.keyEntities,me=Xt.dropContainerKey,Ue=Xt.dropTargetKey,vt=Xt.draggingNodeKey,pe=this.isDisabled(),ue=(0,et.Z)(cn,{aria:!0,data:!0}),Ze=(0,x.Z)(Fe,_t)||{},Ne=Ze.level,Pe=Ft[Ft.length-1],ke=this.isDraggable(),Lt=!pe&&ke,mt=vt===_t,xt=Ht!==void 0?{"aria-selected":!!Ht}:void 0;return Ke.createElement("div",(0,ie.Z)({ref:nt,className:Re()(Ce,"".concat(Te,"-treenode"),(ft={},(0,ce.Z)(ft,"".concat(Te,"-treenode-disabled"),pe),(0,ce.Z)(ft,"".concat(Te,"-treenode-switcher-").concat(Tt?"open":"close"),!St),(0,ce.Z)(ft,"".concat(Te,"-treenode-checkbox-checked"),je),(0,ce.Z)(ft,"".concat(Te,"-treenode-checkbox-indeterminate"),ct),(0,ce.Z)(ft,"".concat(Te,"-treenode-selected"),Oe),(0,ce.Z)(ft,"".concat(Te,"-treenode-loading"),Gt),(0,ce.Z)(ft,"".concat(Te,"-treenode-active"),$t),(0,ce.Z)(ft,"".concat(Te,"-treenode-leaf-last"),Pe),(0,ce.Z)(ft,"".concat(Te,"-treenode-draggable"),ke),(0,ce.Z)(ft,"dragging",mt),(0,ce.Z)(ft,"drop-target",Ue===_t),(0,ce.Z)(ft,"drop-container",me===_t),(0,ce.Z)(ft,"drag-over",!pe&&tt),(0,ce.Z)(ft,"drag-over-gap-top",!pe&&at),(0,ce.Z)(ft,"drag-over-gap-bottom",!pe&&st),(0,ce.Z)(ft,"filter-node",$e&&$e((0,b.F)(this.props))),ft)),style:Ae,draggable:Lt,"aria-grabbed":mt,onDragStart:Lt?this.onDragStart:void 0,onDragEnter:ke?this.onDragEnter:void 0,onDragOver:ke?this.onDragOver:void 0,onDragLeave:ke?this.onDragLeave:void 0,onDrop:ke?this.onDrop:void 0,onDragEnd:ke?this.onDragEnd:void 0,onMouseMove:Et},xt,ue),Ke.createElement(a,{prefixCls:Te,level:Ne,isStart:wt,isEnd:Ft}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Ee}(Ke.Component),de=function(Se){return Ke.createElement(oe.k.Consumer,null,function(Ee){return Ke.createElement(ge,(0,ie.Z)({},Se,{context:Ee}))})};de.displayName="TreeNode",de.isTreeNode=1;var se=de},39378:function(qe,gt,ne){"use strict";ne.d(gt,{k:function(){return ce}});var ie=ne(59301),ce=ie.createContext(null)},60091:function(qe,gt,ne){"use strict";ne.d(gt,{O:function(){return se.Z},Z:function(){return Xt}});var ie=ne(54476),ce=ne(20068),De=ne(76190),We=ne(33885),we=ne(94480),Be=ne(67732),ae=ne(83652),Je=ne(31226),Ve=ne(42403),He=ne(158),Re=ne(92310),et=ne.n(Re),Ke=ne(10228),oe=ne(26112),y=ne(48736),a=ne(59301),x=ne(39378);function b(Te){var $e=Te.dropPosition,Fe=Te.dropLevelOffset,me=Te.indent,Ue={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch($e){case-1:Ue.top=0,Ue.left=-Fe*me;break;case 1:Ue.bottom=0,Ue.left=-Fe*me;break;case 0:Ue.bottom=0,Ue.left=me;break}return a.createElement("div",{style:Ue})}function E(Te){if(Te==null)throw new TypeError("Cannot destructure "+Te)}var z=ne(42978),ee=ne(75931),te=ne(34280),ge=ne(48911),de=ne(77900),se=ne(39417);function be(Te,$e){var Fe=a.useState(!1),me=(0,z.Z)(Fe,2),Ue=me[0],vt=me[1];a.useLayoutEffect(function(){if(Ue)return Te(),function(){$e()}},[Ue]),a.useLayoutEffect(function(){return vt(!0),function(){vt(!1)}},[])}var Se=ne(71430),Ee=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],he=function($e,Fe){var me=$e.className,Ue=$e.style,vt=$e.motion,pe=$e.motionNodes,ue=$e.motionType,Ze=$e.onMotionStart,Ne=$e.onMotionEnd,Pe=$e.active,ke=$e.treeNodeRequiredProps,Lt=(0,ee.Z)($e,Ee),mt=a.useState(!0),xt=(0,z.Z)(mt,2),lt=xt[0],yt=xt[1],ot=a.useContext(x.k),Zt=ot.prefixCls,Rt=pe&&ue!=="hide";(0,te.Z)(function(){pe&&Rt!==lt&&yt(Rt)},[pe]);var Nt=function(){pe&&Ze()},Jt=a.useRef(!1),Yt=function(){pe&&!Jt.current&&(Jt.current=!0,Ne())};be(Nt,Yt);var yn=function(Nn){Rt===Nn&&Yt()};return pe?a.createElement(de.default,(0,ie.Z)({ref:Fe,visible:lt},vt,{motionAppear:ue==="show",onVisibleChanged:yn}),function(on,Nn){var Gn=on.className,Hn=on.style;return a.createElement("div",{ref:Nn,className:et()("".concat(Zt,"-treenode-motion"),Gn),style:Hn},pe.map(function(ht){var ut=(0,ie.Z)({},(E(ht.data),ht.data)),dt=ht.title,Ct=ht.key,pn=ht.isStart,Bn=ht.isEnd;delete ut.children;var vn=(0,Se.H8)(Ct,ke);return a.createElement(se.Z,(0,ie.Z)({},ut,vn,{title:dt,active:Pe,data:ht.data,key:Ct,isStart:pn,isEnd:Bn}))}))}):a.createElement(se.Z,(0,ie.Z)({domRef:Fe,className:me,style:Ue},Lt,{active:Pe}))};he.displayName="MotionTreeNode";var ft=a.forwardRef(he),it=ft;function _t(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Fe=Te.length,me=$e.length;if(Math.abs(Fe-me)!==1)return{add:!1,key:null};function Ue(vt,pe){var ue=new Map;vt.forEach(function(Ne){ue.set(Ne,!0)});var Ze=pe.filter(function(Ne){return!ue.has(Ne)});return Ze.length===1?Ze[0]:null}return Fe<me?{add:!0,key:Ue(Te,$e)}:{add:!1,key:Ue($e,Te)}}function Ce(Te,$e,Fe){var me=Te.findIndex(function(ue){return ue.key===Fe}),Ue=Te[me+1],vt=$e.findIndex(function(ue){return ue.key===Fe});if(Ue){var pe=$e.findIndex(function(ue){return ue.key===Ue.key});return $e.slice(vt+1,pe)}return $e.slice(vt+1)}var Ae=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],tt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},at=function(){},st="RC_TREE_MOTION_".concat(Math.random()),St={key:st},wt={key:st,level:0,index:0,pos:"0",node:St,nodes:[St]},Ft={parent:null,children:[],pos:wt.pos,data:St,title:null,key:st,isStart:[],isEnd:[]};function Tt(Te,$e,Fe,me){return $e===!1||!Fe?Te:Te.slice(0,Math.ceil(Fe/me)+1)}function Oe(Te){var $e=Te.key,Fe=Te.pos;return(0,Se.km)($e,Fe)}function je(Te){for(var $e=String(Te.data.key),Fe=Te;Fe.parent;)Fe=Fe.parent,$e="".concat(Fe.data.key," > ").concat($e);return $e}var ct=a.forwardRef(function(Te,$e){var Fe=Te.prefixCls,me=Te.data,Ue=Te.selectable,vt=Te.checkable,pe=Te.expandedKeys,ue=Te.selectedKeys,Ze=Te.checkedKeys,Ne=Te.loadedKeys,Pe=Te.loadingKeys,ke=Te.halfCheckedKeys,Lt=Te.keyEntities,mt=Te.disabled,xt=Te.dragging,lt=Te.dragOverNodeKey,yt=Te.dropPosition,ot=Te.motion,Zt=Te.height,Rt=Te.itemHeight,Nt=Te.virtual,Jt=Te.focusable,Yt=Te.activeItem,yn=Te.focused,on=Te.tabIndex,Nn=Te.onKeyDown,Gn=Te.onFocus,Hn=Te.onBlur,ht=Te.onActiveChange,ut=Te.onListChangeStart,dt=Te.onListChangeEnd,Ct=(0,ee.Z)(Te,Ae),pn=a.useRef(null),Bn=a.useRef(null);a.useImperativeHandle($e,function(){return{scrollTo:function(la){pn.current.scrollTo(la)},getIndentWidth:function(){return Bn.current.offsetWidth}}});var vn=a.useState(pe),wn=(0,z.Z)(vn,2),Ln=wn[0],kn=wn[1],ca=a.useState(me),da=(0,z.Z)(ca,2),jn=da[0],Jn=da[1],ha=a.useState(me),ao=(0,z.Z)(ha,2),Ge=ao[0],Xe=ao[1],_e=a.useState([]),zt=(0,z.Z)(_e,2),un=zt[0],tn=zt[1],Vn=a.useState(null),gn=(0,z.Z)(Vn,2),zn=gn[0],Qn=gn[1],Ba=a.useRef(me);Ba.current=me;function Bt(){var ta=Ba.current;Jn(ta),Xe(ta),tn([]),Qn(null),dt()}(0,te.Z)(function(){kn(pe);var ta=_t(Ln,pe);if(ta.key!==null)if(ta.add){var la=jn.findIndex(function(Xa){var xa=Xa.key;return xa===ta.key}),na=Tt(Ce(jn,me,ta.key),Nt,Zt,Rt),Aa=jn.slice();Aa.splice(la+1,0,Ft),Xe(Aa),tn(na),Qn("show")}else{var Da=me.findIndex(function(Xa){var xa=Xa.key;return xa===ta.key}),_a=Tt(Ce(me,jn,ta.key),Nt,Zt,Rt),ro=me.slice();ro.splice(Da+1,0,Ft),Xe(ro),tn(_a),Qn("hide")}else jn!==me&&(Jn(me),Xe(me))},[pe,me]),a.useEffect(function(){xt||Bt()},[xt]);var Kn=ot?Ge:me,Ca={expandedKeys:pe,selectedKeys:ue,loadedKeys:Ne,loadingKeys:Pe,checkedKeys:Ze,halfCheckedKeys:ke,dragOverNodeKey:lt,dropPosition:yt,keyEntities:Lt};return a.createElement(a.Fragment,null,yn&&Yt&&a.createElement("span",{style:tt,"aria-live":"assertive"},je(Yt)),a.createElement("div",null,a.createElement("input",{style:tt,disabled:Jt===!1||mt,tabIndex:Jt!==!1?on:null,onKeyDown:Nn,onFocus:Gn,onBlur:Hn,value:"",onChange:at,"aria-label":"for screen reader"})),a.createElement("div",{className:"".concat(Fe,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},a.createElement("div",{className:"".concat(Fe,"-indent")},a.createElement("div",{ref:Bn,className:"".concat(Fe,"-indent-unit")}))),a.createElement(ge.Z,(0,ie.Z)({},Ct,{data:Kn,itemKey:Oe,height:Zt,fullHeight:!1,virtual:Nt,itemHeight:Rt,prefixCls:"".concat(Fe,"-list"),ref:pn,onVisibleChange:function(la,na){var Aa=new Set(la),Da=na.filter(function(_a){return!Aa.has(_a)});Da.some(function(_a){return Oe(_a)===st})&&Bt()}}),function(ta){var la=ta.pos,na=(0,ie.Z)({},(E(ta.data),ta.data)),Aa=ta.title,Da=ta.key,_a=ta.isStart,ro=ta.isEnd,Xa=(0,Se.km)(Da,la);delete na.key,delete na.children;var xa=(0,Se.H8)(Xa,Ca);return a.createElement(it,(0,ie.Z)({},na,xa,{title:Aa,active:!!Yt&&Da===Yt.key,pos:la,data:ta.data,isStart:_a,isEnd:ro,motion:ot,motionNodes:Da===st?un:null,motionType:zn,onMotionStart:ut,onMotionEnd:Bt,treeNodeRequiredProps:Ca,onMouseMove:function(){ht(null)}}))}))});ct.displayName="NodeList";var Gt=ct,nt=ne(35654),$t=ne(90782),ye=ne(67841),Et=10,Ht=function(Te){(0,Ve.Z)(Fe,Te);var $e=(0,He.Z)(Fe);function Fe(){var me;(0,Be.Z)(this,Fe);for(var Ue=arguments.length,vt=new Array(Ue),pe=0;pe<Ue;pe++)vt[pe]=arguments[pe];return me=$e.call.apply($e,[this].concat(vt)),me.destroyed=!1,me.delayedDragEnterLogic=void 0,me.loadingRetryTimes={},me.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,Se.w$)()},me.dragStartMousePosition=null,me.dragNode=void 0,me.currentMouseOverDroppableNodeKey=null,me.listRef=a.createRef(),me.onNodeDragStart=function(ue,Ze){var Ne=me.state,Pe=Ne.expandedKeys,ke=Ne.keyEntities,Lt=me.props.onDragStart,mt=Ze.props.eventKey;me.dragNode=Ze,me.dragStartMousePosition={x:ue.clientX,y:ue.clientY};var xt=(0,nt._5)(Pe,mt);me.setState({draggingNodeKey:mt,dragChildrenKeys:(0,nt.wA)(mt,ke),indent:me.listRef.current.getIndentWidth()}),me.setExpandedKeys(xt),window.addEventListener("dragend",me.onWindowDragEnd),Lt==null||Lt({event:ue,node:(0,Se.F)(Ze.props)})},me.onNodeDragEnter=function(ue,Ze){var Ne=me.state,Pe=Ne.expandedKeys,ke=Ne.keyEntities,Lt=Ne.dragChildrenKeys,mt=Ne.flattenNodes,xt=Ne.indent,lt=me.props,yt=lt.onDragEnter,ot=lt.onExpand,Zt=lt.allowDrop,Rt=lt.direction,Nt=Ze.props,Jt=Nt.pos,Yt=Nt.eventKey,yn=(0,Je.Z)(me),on=yn.dragNode;if(me.currentMouseOverDroppableNodeKey!==Yt&&(me.currentMouseOverDroppableNodeKey=Yt),!on){me.resetDragState();return}var Nn=(0,nt.OM)(ue,on,Ze,xt,me.dragStartMousePosition,Zt,mt,ke,Pe,Rt),Gn=Nn.dropPosition,Hn=Nn.dropLevelOffset,ht=Nn.dropTargetKey,ut=Nn.dropContainerKey,dt=Nn.dropTargetPos,Ct=Nn.dropAllowed,pn=Nn.dragOverNodeKey;if(Lt.indexOf(ht)!==-1||!Ct){me.resetDragState();return}if(me.delayedDragEnterLogic||(me.delayedDragEnterLogic={}),Object.keys(me.delayedDragEnterLogic).forEach(function(Bn){clearTimeout(me.delayedDragEnterLogic[Bn])}),on.props.eventKey!==Ze.props.eventKey&&(ue.persist(),me.delayedDragEnterLogic[Jt]=window.setTimeout(function(){if(me.state.draggingNodeKey!==null){var Bn=(0,we.Z)(Pe),vn=(0,ye.Z)(ke,Ze.props.eventKey);vn&&(vn.children||[]).length&&(Bn=(0,nt.L0)(Pe,Ze.props.eventKey)),"expandedKeys"in me.props||me.setExpandedKeys(Bn),ot==null||ot(Bn,{node:(0,Se.F)(Ze.props),expanded:!0,nativeEvent:ue.nativeEvent})}},800)),on.props.eventKey===ht&&Hn===0){me.resetDragState();return}me.setState({dragOverNodeKey:pn,dropPosition:Gn,dropLevelOffset:Hn,dropTargetKey:ht,dropContainerKey:ut,dropTargetPos:dt,dropAllowed:Ct}),yt==null||yt({event:ue,node:(0,Se.F)(Ze.props),expandedKeys:Pe})},me.onNodeDragOver=function(ue,Ze){var Ne=me.state,Pe=Ne.dragChildrenKeys,ke=Ne.flattenNodes,Lt=Ne.keyEntities,mt=Ne.expandedKeys,xt=Ne.indent,lt=me.props,yt=lt.onDragOver,ot=lt.allowDrop,Zt=lt.direction,Rt=(0,Je.Z)(me),Nt=Rt.dragNode;if(Nt){var Jt=(0,nt.OM)(ue,Nt,Ze,xt,me.dragStartMousePosition,ot,ke,Lt,mt,Zt),Yt=Jt.dropPosition,yn=Jt.dropLevelOffset,on=Jt.dropTargetKey,Nn=Jt.dropContainerKey,Gn=Jt.dropAllowed,Hn=Jt.dropTargetPos,ht=Jt.dragOverNodeKey;Pe.indexOf(on)!==-1||!Gn||(Nt.props.eventKey===on&&yn===0?me.state.dropPosition===null&&me.state.dropLevelOffset===null&&me.state.dropTargetKey===null&&me.state.dropContainerKey===null&&me.state.dropTargetPos===null&&me.state.dropAllowed===!1&&me.state.dragOverNodeKey===null||me.resetDragState():Yt===me.state.dropPosition&&yn===me.state.dropLevelOffset&&on===me.state.dropTargetKey&&Nn===me.state.dropContainerKey&&Hn===me.state.dropTargetPos&&Gn===me.state.dropAllowed&&ht===me.state.dragOverNodeKey||me.setState({dropPosition:Yt,dropLevelOffset:yn,dropTargetKey:on,dropContainerKey:Nn,dropTargetPos:Hn,dropAllowed:Gn,dragOverNodeKey:ht}),yt==null||yt({event:ue,node:(0,Se.F)(Ze.props)}))}},me.onNodeDragLeave=function(ue,Ze){me.currentMouseOverDroppableNodeKey===Ze.props.eventKey&&!ue.currentTarget.contains(ue.relatedTarget)&&(me.resetDragState(),me.currentMouseOverDroppableNodeKey=null);var Ne=me.props.onDragLeave;Ne==null||Ne({event:ue,node:(0,Se.F)(Ze.props)})},me.onWindowDragEnd=function(ue){me.onNodeDragEnd(ue,null,!0),window.removeEventListener("dragend",me.onWindowDragEnd)},me.onNodeDragEnd=function(ue,Ze){var Ne=me.props.onDragEnd;me.setState({dragOverNodeKey:null}),me.cleanDragState(),Ne==null||Ne({event:ue,node:(0,Se.F)(Ze.props)}),me.dragNode=null,window.removeEventListener("dragend",me.onWindowDragEnd)},me.onNodeDrop=function(ue,Ze){var Ne,Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ke=me.state,Lt=ke.dragChildrenKeys,mt=ke.dropPosition,xt=ke.dropTargetKey,lt=ke.dropTargetPos,yt=ke.dropAllowed;if(yt){var ot=me.props.onDrop;if(me.setState({dragOverNodeKey:null}),me.cleanDragState(),xt!==null){var Zt=(0,We.Z)((0,We.Z)({},(0,Se.H8)(xt,me.getTreeNodeRequiredProps())),{},{active:((Ne=me.getActiveItem())===null||Ne===void 0?void 0:Ne.key)===xt,data:(0,ye.Z)(me.state.keyEntities,xt).node}),Rt=Lt.indexOf(xt)!==-1;(0,y.ZP)(!Rt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Nt=(0,nt.yx)(lt),Jt={event:ue,node:(0,Se.F)(Zt),dragNode:me.dragNode?(0,Se.F)(me.dragNode.props):null,dragNodesKeys:[me.dragNode.props.eventKey].concat(Lt),dropToGap:mt!==0,dropPosition:mt+Number(Nt[Nt.length-1])};Pe||ot==null||ot(Jt),me.dragNode=null}}},me.cleanDragState=function(){var ue=me.state.draggingNodeKey;ue!==null&&me.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),me.dragStartMousePosition=null,me.currentMouseOverDroppableNodeKey=null},me.triggerExpandActionExpand=function(ue,Ze){var Ne=me.state,Pe=Ne.expandedKeys,ke=Ne.flattenNodes,Lt=Ze.expanded,mt=Ze.key,xt=Ze.isLeaf;if(!(xt||ue.shiftKey||ue.metaKey||ue.ctrlKey)){var lt=ke.filter(function(ot){return ot.key===mt})[0],yt=(0,Se.F)((0,We.Z)((0,We.Z)({},(0,Se.H8)(mt,me.getTreeNodeRequiredProps())),{},{data:lt.data}));me.setExpandedKeys(Lt?(0,nt._5)(Pe,mt):(0,nt.L0)(Pe,mt)),me.onNodeExpand(ue,yt)}},me.onNodeClick=function(ue,Ze){var Ne=me.props,Pe=Ne.onClick,ke=Ne.expandAction;ke==="click"&&me.triggerExpandActionExpand(ue,Ze),Pe==null||Pe(ue,Ze)},me.onNodeDoubleClick=function(ue,Ze){var Ne=me.props,Pe=Ne.onDoubleClick,ke=Ne.expandAction;ke==="doubleClick"&&me.triggerExpandActionExpand(ue,Ze),Pe==null||Pe(ue,Ze)},me.onNodeSelect=function(ue,Ze){var Ne=me.state.selectedKeys,Pe=me.state,ke=Pe.keyEntities,Lt=Pe.fieldNames,mt=me.props,xt=mt.onSelect,lt=mt.multiple,yt=Ze.selected,ot=Ze[Lt.key],Zt=!yt;Zt?lt?Ne=(0,nt.L0)(Ne,ot):Ne=[ot]:Ne=(0,nt._5)(Ne,ot);var Rt=Ne.map(function(Nt){var Jt=(0,ye.Z)(ke,Nt);return Jt?Jt.node:null}).filter(function(Nt){return Nt});me.setUncontrolledState({selectedKeys:Ne}),xt==null||xt(Ne,{event:"select",selected:Zt,node:Ze,selectedNodes:Rt,nativeEvent:ue.nativeEvent})},me.onNodeCheck=function(ue,Ze,Ne){var Pe=me.state,ke=Pe.keyEntities,Lt=Pe.checkedKeys,mt=Pe.halfCheckedKeys,xt=me.props,lt=xt.checkStrictly,yt=xt.onCheck,ot=Ze.key,Zt,Rt={event:"check",node:Ze,checked:Ne,nativeEvent:ue.nativeEvent};if(lt){var Nt=Ne?(0,nt.L0)(Lt,ot):(0,nt._5)(Lt,ot),Jt=(0,nt._5)(mt,ot);Zt={checked:Nt,halfChecked:Jt},Rt.checkedNodes=Nt.map(function(Hn){return(0,ye.Z)(ke,Hn)}).filter(function(Hn){return Hn}).map(function(Hn){return Hn.node}),me.setUncontrolledState({checkedKeys:Nt})}else{var Yt=(0,$t.S)([].concat((0,we.Z)(Lt),[ot]),!0,ke),yn=Yt.checkedKeys,on=Yt.halfCheckedKeys;if(!Ne){var Nn=new Set(yn);Nn.delete(ot);var Gn=(0,$t.S)(Array.from(Nn),{checked:!1,halfCheckedKeys:on},ke);yn=Gn.checkedKeys,on=Gn.halfCheckedKeys}Zt=yn,Rt.checkedNodes=[],Rt.checkedNodesPositions=[],Rt.halfCheckedKeys=on,yn.forEach(function(Hn){var ht=(0,ye.Z)(ke,Hn);if(ht){var ut=ht.node,dt=ht.pos;Rt.checkedNodes.push(ut),Rt.checkedNodesPositions.push({node:ut,pos:dt})}}),me.setUncontrolledState({checkedKeys:yn},!1,{halfCheckedKeys:on})}yt==null||yt(Zt,Rt)},me.onNodeLoad=function(ue){var Ze=ue.key,Ne=new Promise(function(Pe,ke){me.setState(function(Lt){var mt=Lt.loadedKeys,xt=mt===void 0?[]:mt,lt=Lt.loadingKeys,yt=lt===void 0?[]:lt,ot=me.props,Zt=ot.loadData,Rt=ot.onLoad;if(!Zt||xt.indexOf(Ze)!==-1||yt.indexOf(Ze)!==-1)return null;var Nt=Zt(ue);return Nt.then(function(){var Jt=me.state.loadedKeys,Yt=(0,nt.L0)(Jt,Ze);Rt==null||Rt(Yt,{event:"load",node:ue}),me.setUncontrolledState({loadedKeys:Yt}),me.setState(function(yn){return{loadingKeys:(0,nt._5)(yn.loadingKeys,Ze)}}),Pe()}).catch(function(Jt){if(me.setState(function(yn){return{loadingKeys:(0,nt._5)(yn.loadingKeys,Ze)}}),me.loadingRetryTimes[Ze]=(me.loadingRetryTimes[Ze]||0)+1,me.loadingRetryTimes[Ze]>=Et){var Yt=me.state.loadedKeys;(0,y.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),me.setUncontrolledState({loadedKeys:(0,nt.L0)(Yt,Ze)}),Pe()}ke(Jt)}),{loadingKeys:(0,nt.L0)(yt,Ze)}})});return Ne.catch(function(){}),Ne},me.onNodeMouseEnter=function(ue,Ze){var Ne=me.props.onMouseEnter;Ne==null||Ne({event:ue,node:Ze})},me.onNodeMouseLeave=function(ue,Ze){var Ne=me.props.onMouseLeave;Ne==null||Ne({event:ue,node:Ze})},me.onNodeContextMenu=function(ue,Ze){var Ne=me.props.onRightClick;Ne&&(ue.preventDefault(),Ne({event:ue,node:Ze}))},me.onFocus=function(){var ue=me.props.onFocus;me.setState({focused:!0});for(var Ze=arguments.length,Ne=new Array(Ze),Pe=0;Pe<Ze;Pe++)Ne[Pe]=arguments[Pe];ue==null||ue.apply(void 0,Ne)},me.onBlur=function(){var ue=me.props.onBlur;me.setState({focused:!1}),me.onActiveChange(null);for(var Ze=arguments.length,Ne=new Array(Ze),Pe=0;Pe<Ze;Pe++)Ne[Pe]=arguments[Pe];ue==null||ue.apply(void 0,Ne)},me.getTreeNodeRequiredProps=function(){var ue=me.state,Ze=ue.expandedKeys,Ne=ue.selectedKeys,Pe=ue.loadedKeys,ke=ue.loadingKeys,Lt=ue.checkedKeys,mt=ue.halfCheckedKeys,xt=ue.dragOverNodeKey,lt=ue.dropPosition,yt=ue.keyEntities;return{expandedKeys:Ze||[],selectedKeys:Ne||[],loadedKeys:Pe||[],loadingKeys:ke||[],checkedKeys:Lt||[],halfCheckedKeys:mt||[],dragOverNodeKey:xt,dropPosition:lt,keyEntities:yt}},me.setExpandedKeys=function(ue){var Ze=me.state,Ne=Ze.treeData,Pe=Ze.fieldNames,ke=(0,Se.oH)(Ne,ue,Pe);me.setUncontrolledState({expandedKeys:ue,flattenNodes:ke},!0)},me.onNodeExpand=function(ue,Ze){var Ne=me.state.expandedKeys,Pe=me.state,ke=Pe.listChanging,Lt=Pe.fieldNames,mt=me.props,xt=mt.onExpand,lt=mt.loadData,yt=Ze.expanded,ot=Ze[Lt.key];if(!ke){var Zt=Ne.indexOf(ot),Rt=!yt;if((0,y.ZP)(yt&&Zt!==-1||!yt&&Zt===-1,"Expand state not sync with index check"),Rt?Ne=(0,nt.L0)(Ne,ot):Ne=(0,nt._5)(Ne,ot),me.setExpandedKeys(Ne),xt==null||xt(Ne,{node:Ze,expanded:Rt,nativeEvent:ue.nativeEvent}),Rt&<){var Nt=me.onNodeLoad(Ze);Nt&&Nt.then(function(){var Jt=(0,Se.oH)(me.state.treeData,Ne,Lt);me.setUncontrolledState({flattenNodes:Jt})}).catch(function(){var Jt=me.state.expandedKeys,Yt=(0,nt._5)(Jt,ot);me.setExpandedKeys(Yt)})}}},me.onListChangeStart=function(){me.setUncontrolledState({listChanging:!0})},me.onListChangeEnd=function(){setTimeout(function(){me.setUncontrolledState({listChanging:!1})})},me.onActiveChange=function(ue){var Ze=me.state.activeKey,Ne=me.props.onActiveChange;Ze!==ue&&(me.setState({activeKey:ue}),ue!==null&&me.scrollTo({key:ue}),Ne==null||Ne(ue))},me.getActiveItem=function(){var ue=me.state,Ze=ue.activeKey,Ne=ue.flattenNodes;return Ze===null?null:Ne.find(function(Pe){var ke=Pe.key;return ke===Ze})||null},me.offsetActiveKey=function(ue){var Ze=me.state,Ne=Ze.flattenNodes,Pe=Ze.activeKey,ke=Ne.findIndex(function(xt){var lt=xt.key;return lt===Pe});ke===-1&&ue<0&&(ke=Ne.length),ke=(ke+ue+Ne.length)%Ne.length;var Lt=Ne[ke];if(Lt){var mt=Lt.key;me.onActiveChange(mt)}else me.onActiveChange(null)},me.onKeyDown=function(ue){var Ze=me.state,Ne=Ze.activeKey,Pe=Ze.expandedKeys,ke=Ze.checkedKeys,Lt=Ze.fieldNames,mt=me.props,xt=mt.onKeyDown,lt=mt.checkable,yt=mt.selectable;switch(ue.which){case Ke.Z.UP:{me.offsetActiveKey(-1),ue.preventDefault();break}case Ke.Z.DOWN:{me.offsetActiveKey(1),ue.preventDefault();break}}var ot=me.getActiveItem();if(ot&&ot.data){var Zt=me.getTreeNodeRequiredProps(),Rt=ot.data.isLeaf===!1||!!(ot.data[Lt.children]||[]).length,Nt=(0,Se.F)((0,We.Z)((0,We.Z)({},(0,Se.H8)(Ne,Zt)),{},{data:ot.data,active:!0}));switch(ue.which){case Ke.Z.LEFT:{Rt&&Pe.includes(Ne)?me.onNodeExpand({},Nt):ot.parent&&me.onActiveChange(ot.parent.key),ue.preventDefault();break}case Ke.Z.RIGHT:{Rt&&!Pe.includes(Ne)?me.onNodeExpand({},Nt):ot.children&&ot.children.length&&me.onActiveChange(ot.children[0].key),ue.preventDefault();break}case Ke.Z.ENTER:case Ke.Z.SPACE:{lt&&!Nt.disabled&&Nt.checkable!==!1&&!Nt.disableCheckbox?me.onNodeCheck({},Nt,!ke.includes(Ne)):!lt&&yt&&!Nt.disabled&&Nt.selectable!==!1&&me.onNodeSelect({},Nt);break}}}xt==null||xt(ue)},me.setUncontrolledState=function(ue){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!me.destroyed){var Pe=!1,ke=!0,Lt={};Object.keys(ue).forEach(function(mt){if(mt in me.props){ke=!1;return}Pe=!0,Lt[mt]=ue[mt]}),Pe&&(!Ze||ke)&&me.setState((0,We.Z)((0,We.Z)({},Lt),Ne))}},me.scrollTo=function(ue){me.listRef.current.scrollTo(ue)},me}return(0,ae.Z)(Fe,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Ue=this.props.activeKey;Ue!==void 0&&Ue!==this.state.activeKey&&(this.setState({activeKey:Ue}),Ue!==null&&this.scrollTo({key:Ue}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var Ue,vt=this.state,pe=vt.focused,ue=vt.flattenNodes,Ze=vt.keyEntities,Ne=vt.draggingNodeKey,Pe=vt.activeKey,ke=vt.dropLevelOffset,Lt=vt.dropContainerKey,mt=vt.dropTargetKey,xt=vt.dropPosition,lt=vt.dragOverNodeKey,yt=vt.indent,ot=this.props,Zt=ot.prefixCls,Rt=ot.className,Nt=ot.style,Jt=ot.showLine,Yt=ot.focusable,yn=ot.tabIndex,on=yn===void 0?0:yn,Nn=ot.selectable,Gn=ot.showIcon,Hn=ot.icon,ht=ot.switcherIcon,ut=ot.draggable,dt=ot.checkable,Ct=ot.checkStrictly,pn=ot.disabled,Bn=ot.motion,vn=ot.loadData,wn=ot.filterTreeNode,Ln=ot.height,kn=ot.itemHeight,ca=ot.virtual,da=ot.titleRender,jn=ot.dropIndicatorRender,Jn=ot.onContextMenu,ha=ot.onScroll,ao=ot.direction,Ge=ot.rootClassName,Xe=ot.rootStyle,_e=(0,oe.Z)(this.props,{aria:!0,data:!0}),zt;return ut&&((0,De.Z)(ut)==="object"?zt=ut:typeof ut=="function"?zt={nodeDraggable:ut}:zt={}),a.createElement(x.k.Provider,{value:{prefixCls:Zt,selectable:Nn,showIcon:Gn,icon:Hn,switcherIcon:ht,draggable:zt,draggingNodeKey:Ne,checkable:dt,checkStrictly:Ct,disabled:pn,keyEntities:Ze,dropLevelOffset:ke,dropContainerKey:Lt,dropTargetKey:mt,dropPosition:xt,dragOverNodeKey:lt,indent:yt,direction:ao,dropIndicatorRender:jn,loadData:vn,filterTreeNode:wn,titleRender:da,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},a.createElement("div",{role:"tree",className:et()(Zt,Rt,Ge,(Ue={},(0,ce.Z)(Ue,"".concat(Zt,"-show-line"),Jt),(0,ce.Z)(Ue,"".concat(Zt,"-focused"),pe),(0,ce.Z)(Ue,"".concat(Zt,"-active-focused"),Pe!==null),Ue)),style:Xe},a.createElement(Gt,(0,ie.Z)({ref:this.listRef,prefixCls:Zt,style:Nt,data:ue,disabled:pn,selectable:Nn,checkable:!!dt,motion:Bn,dragging:Ne!==null,height:Ln,itemHeight:kn,virtual:ca,focusable:Yt,focused:pe,tabIndex:on,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Jn,onScroll:ha},this.getTreeNodeRequiredProps(),_e))))}}],[{key:"getDerivedStateFromProps",value:function(Ue,vt){var pe=vt.prevProps,ue={prevProps:Ue};function Ze(Yt){return!pe&&Yt in Ue||pe&&pe[Yt]!==Ue[Yt]}var Ne,Pe=vt.fieldNames;if(Ze("fieldNames")&&(Pe=(0,Se.w$)(Ue.fieldNames),ue.fieldNames=Pe),Ze("treeData")?Ne=Ue.treeData:Ze("children")&&((0,y.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Ne=(0,Se.zn)(Ue.children)),Ne){ue.treeData=Ne;var ke=(0,Se.I8)(Ne,{fieldNames:Pe});ue.keyEntities=(0,We.Z)((0,ce.Z)({},st,wt),ke.keyEntities)}var Lt=ue.keyEntities||vt.keyEntities;if(Ze("expandedKeys")||pe&&Ze("autoExpandParent"))ue.expandedKeys=Ue.autoExpandParent||!pe&&Ue.defaultExpandParent?(0,nt.r7)(Ue.expandedKeys,Lt):Ue.expandedKeys;else if(!pe&&Ue.defaultExpandAll){var mt=(0,We.Z)({},Lt);delete mt[st],ue.expandedKeys=Object.keys(mt).map(function(Yt){return mt[Yt].key})}else!pe&&Ue.defaultExpandedKeys&&(ue.expandedKeys=Ue.autoExpandParent||Ue.defaultExpandParent?(0,nt.r7)(Ue.defaultExpandedKeys,Lt):Ue.defaultExpandedKeys);if(ue.expandedKeys||delete ue.expandedKeys,Ne||ue.expandedKeys){var xt=(0,Se.oH)(Ne||vt.treeData,ue.expandedKeys||vt.expandedKeys,Pe);ue.flattenNodes=xt}if(Ue.selectable&&(Ze("selectedKeys")?ue.selectedKeys=(0,nt.BT)(Ue.selectedKeys,Ue):!pe&&Ue.defaultSelectedKeys&&(ue.selectedKeys=(0,nt.BT)(Ue.defaultSelectedKeys,Ue))),Ue.checkable){var lt;if(Ze("checkedKeys")?lt=(0,nt.E6)(Ue.checkedKeys)||{}:!pe&&Ue.defaultCheckedKeys?lt=(0,nt.E6)(Ue.defaultCheckedKeys)||{}:Ne&&(lt=(0,nt.E6)(Ue.checkedKeys)||{checkedKeys:vt.checkedKeys,halfCheckedKeys:vt.halfCheckedKeys}),lt){var yt=lt,ot=yt.checkedKeys,Zt=ot===void 0?[]:ot,Rt=yt.halfCheckedKeys,Nt=Rt===void 0?[]:Rt;if(!Ue.checkStrictly){var Jt=(0,$t.S)(Zt,!0,Lt);Zt=Jt.checkedKeys,Nt=Jt.halfCheckedKeys}ue.checkedKeys=Zt,ue.halfCheckedKeys=Nt}}return Ze("loadedKeys")&&(ue.loadedKeys=Ue.loadedKeys),ue}}]),Fe}(a.Component);Ht.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:b,allowDrop:function(){return!0},expandAction:!1},Ht.TreeNode=se.Z;var cn=Ht,Xt=cn},35654:function(qe,gt,ne){"use strict";ne.d(gt,{BT:function(){return a},E6:function(){return E},L0:function(){return He},OM:function(){return y},_5:function(){return Ve},r7:function(){return z},wA:function(){return et},yx:function(){return Re}});var ie=ne(94480),ce=ne(76190),De=ne(48736),We=ne(59301),we=ne(39417),Be=ne(67841),ae=ne(71430),Je=null;function Ve(ee,te){if(!ee)return[];var ge=ee.slice(),de=ge.indexOf(te);return de>=0&&ge.splice(de,1),ge}function He(ee,te){var ge=(ee||[]).slice();return ge.indexOf(te)===-1&&ge.push(te),ge}function Re(ee){return ee.split("-")}function et(ee,te){var ge=[],de=(0,Be.Z)(te,ee);function se(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];be.forEach(function(Se){var Ee=Se.key,he=Se.children;ge.push(Ee),se(he)})}return se(de.children),ge}function Ke(ee){if(ee.parent){var te=Re(ee.pos);return Number(te[te.length-1])===ee.parent.children.length-1}return!1}function oe(ee){var te=Re(ee.pos);return Number(te[te.length-1])===0}function y(ee,te,ge,de,se,be,Se,Ee,he,ft){var it,_t=ee.clientX,Ce=ee.clientY,Ae=ee.target.getBoundingClientRect(),tt=Ae.top,at=Ae.height,st=(ft==="rtl"?-1:1)*(((se==null?void 0:se.x)||0)-_t),St=(st-12)/de,wt=(0,Be.Z)(Ee,ge.props.eventKey);if(Ce<tt+at/2){var Ft=Se.findIndex(function(Xt){return Xt.key===wt.key}),Tt=Ft<=0?0:Ft-1,Oe=Se[Tt].key;wt=(0,Be.Z)(Ee,Oe)}var je=wt.key,ct=wt,Gt=wt.key,nt=0,$t=0;if(!he.includes(je))for(var ye=0;ye<St&&Ke(wt);ye+=1)wt=wt.parent,$t+=1;var Et=te.props.data,Ht=wt.node,cn=!0;return oe(wt)&&wt.level===0&&Ce<tt+at/2&&be({dragNode:Et,dropNode:Ht,dropPosition:-1})&&wt.key===ge.props.eventKey?nt=-1:(ct.children||[]).length&&he.includes(Gt)?be({dragNode:Et,dropNode:Ht,dropPosition:0})?nt=0:cn=!1:$t===0?St>-1.5?be({dragNode:Et,dropNode:Ht,dropPosition:1})?nt=1:cn=!1:be({dragNode:Et,dropNode:Ht,dropPosition:0})?nt=0:be({dragNode:Et,dropNode:Ht,dropPosition:1})?nt=1:cn=!1:be({dragNode:Et,dropNode:Ht,dropPosition:1})?nt=1:cn=!1,{dropPosition:nt,dropLevelOffset:$t,dropTargetKey:wt.key,dropTargetPos:wt.pos,dragOverNodeKey:Gt,dropContainerKey:nt===0?null:((it=wt.parent)===null||it===void 0?void 0:it.key)||null,dropAllowed:cn}}function a(ee,te){if(ee){var ge=te.multiple;return ge?ee.slice():ee.length?[ee[0]]:ee}}var x=function(te){return te};function b(ee,te){if(!ee)return[];var ge=te||{},de=ge.processProps,se=de===void 0?x:de,be=Array.isArray(ee)?ee:[ee];return be.map(function(Se){var Ee=Se.children,he=_objectWithoutProperties(Se,Je),ft=b(Ee,te);return React.createElement(TreeNode,_extends({key:he.key},se(he)),ft)})}function E(ee){if(!ee)return null;var te;if(Array.isArray(ee))te={checkedKeys:ee,halfCheckedKeys:void 0};else if((0,ce.Z)(ee)==="object")te={checkedKeys:ee.checked||void 0,halfCheckedKeys:ee.halfChecked||void 0};else return(0,De.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return te}function z(ee,te){var ge=new Set;function de(se){if(!ge.has(se)){var be=(0,Be.Z)(te,se);if(be){ge.add(se);var Se=be.parent,Ee=be.node;Ee.disabled||Se&&de(Se.key)}}}return(ee||[]).forEach(function(se){de(se)}),(0,ie.Z)(ge)}},90782:function(qe,gt,ne){"use strict";ne.d(gt,{S:function(){return ae}});var ie=ne(48736),ce=ne(67841);function De(Je,Ve){var He=new Set;return Je.forEach(function(Re){Ve.has(Re)||He.add(Re)}),He}function We(Je){var Ve=Je||{},He=Ve.disabled,Re=Ve.disableCheckbox,et=Ve.checkable;return!!(He||Re)||et===!1}function we(Je,Ve,He,Re){for(var et=new Set(Je),Ke=new Set,oe=0;oe<=He;oe+=1){var y=Ve.get(oe)||new Set;y.forEach(function(E){var z=E.key,ee=E.node,te=E.children,ge=te===void 0?[]:te;et.has(z)&&!Re(ee)&&ge.filter(function(de){return!Re(de.node)}).forEach(function(de){et.add(de.key)})})}for(var a=new Set,x=He;x>=0;x-=1){var b=Ve.get(x)||new Set;b.forEach(function(E){var z=E.parent,ee=E.node;if(!(Re(ee)||!E.parent||a.has(E.parent.key))){if(Re(E.parent.node)){a.add(z.key);return}var te=!0,ge=!1;(z.children||[]).filter(function(de){return!Re(de.node)}).forEach(function(de){var se=de.key,be=et.has(se);te&&!be&&(te=!1),!ge&&(be||Ke.has(se))&&(ge=!0)}),te&&et.add(z.key),ge&&Ke.add(z.key),a.add(z.key)}})}return{checkedKeys:Array.from(et),halfCheckedKeys:Array.from(De(Ke,et))}}function Be(Je,Ve,He,Re,et){for(var Ke=new Set(Je),oe=new Set(Ve),y=0;y<=Re;y+=1){var a=He.get(y)||new Set;a.forEach(function(z){var ee=z.key,te=z.node,ge=z.children,de=ge===void 0?[]:ge;!Ke.has(ee)&&!oe.has(ee)&&!et(te)&&de.filter(function(se){return!et(se.node)}).forEach(function(se){Ke.delete(se.key)})})}oe=new Set;for(var x=new Set,b=Re;b>=0;b-=1){var E=He.get(b)||new Set;E.forEach(function(z){var ee=z.parent,te=z.node;if(!(et(te)||!z.parent||x.has(z.parent.key))){if(et(z.parent.node)){x.add(ee.key);return}var ge=!0,de=!1;(ee.children||[]).filter(function(se){return!et(se.node)}).forEach(function(se){var be=se.key,Se=Ke.has(be);ge&&!Se&&(ge=!1),!de&&(Se||oe.has(be))&&(de=!0)}),ge||Ke.delete(ee.key),de&&oe.add(ee.key),x.add(ee.key)}})}return{checkedKeys:Array.from(Ke),halfCheckedKeys:Array.from(De(oe,Ke))}}function ae(Je,Ve,He,Re){var et=[],Ke;Re?Ke=Re:Ke=We;var oe=new Set(Je.filter(function(b){var E=!!(0,ce.Z)(He,b);return E||et.push(b),E})),y=new Map,a=0;Object.keys(He).forEach(function(b){var E=He[b],z=E.level,ee=y.get(z);ee||(ee=new Set,y.set(z,ee)),ee.add(E),a=Math.max(a,z)}),(0,ie.ZP)(!et.length,"Tree missing follow keys: ".concat(et.slice(0,100).map(function(b){return"'".concat(b,"'")}).join(", ")));var x;return Ve===!0?x=we(oe,y,a,Ke):x=Be(oe,Ve.halfCheckedKeys,y,a,Ke),x}},67841:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return ie}});function ie(ce,De){return ce[De]}},71430:function(qe,gt,ne){"use strict";ne.d(gt,{F:function(){return z},H8:function(){return E},I8:function(){return b},km:function(){return et},oH:function(){return a},w$:function(){return Ke},zn:function(){return y}});var ie=ne(76190),ce=ne(94480),De=ne(33885),We=ne(75931),we=ne(11592),Be=ne(2738),ae=ne(48736),Je=ne(67841),Ve=["children"];function He(ee,te){return"".concat(ee,"-").concat(te)}function Re(ee){return ee&&ee.type&&ee.type.isTreeNode}function et(ee,te){return ee!=null?ee:te}function Ke(ee){var te=ee||{},ge=te.title,de=te._title,se=te.key,be=te.children,Se=ge||"title";return{title:Se,_title:de||[Se],key:se||"key",children:be||"children"}}function oe(ee,te){var ge=new Map;function de(se){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(se||[]).forEach(function(Se){var Ee=Se[te.key],he=Se[te.children];warning(Ee!=null,"Tree node must have a certain key: [".concat(be).concat(Ee,"]"));var ft=String(Ee);warning(!ge.has(ft)||Ee===null||Ee===void 0,"Same 'key' exist in the Tree: ".concat(ft)),ge.set(ft,!0),de(he,"".concat(be).concat(ft," > "))})}de(ee)}function y(ee){function te(ge){var de=(0,we.Z)(ge);return de.map(function(se){if(!Re(se))return(0,ae.ZP)(!se,"Tree/TreeNode can only accept TreeNode as children."),null;var be=se.key,Se=se.props,Ee=Se.children,he=(0,We.Z)(Se,Ve),ft=(0,De.Z)({key:be},he),it=te(Ee);return it.length&&(ft.children=it),ft}).filter(function(se){return se})}return te(ee)}function a(ee,te,ge){var de=Ke(ge),se=de._title,be=de.key,Se=de.children,Ee=new Set(te===!0?[]:te),he=[];function ft(it){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return it.map(function(Ce,Ae){for(var tt=He(_t?_t.pos:"0",Ae),at=et(Ce[be],tt),st,St=0;St<se.length;St+=1){var wt=se[St];if(Ce[wt]!==void 0){st=Ce[wt];break}}var Ft=(0,De.Z)((0,De.Z)({},(0,Be.Z)(Ce,[].concat((0,ce.Z)(se),[be,Se]))),{},{title:st,key:at,parent:_t,pos:tt,children:null,data:Ce,isStart:[].concat((0,ce.Z)(_t?_t.isStart:[]),[Ae===0]),isEnd:[].concat((0,ce.Z)(_t?_t.isEnd:[]),[Ae===it.length-1])});return he.push(Ft),te===!0||Ee.has(at)?Ft.children=ft(Ce[Se]||[],Ft):Ft.children=[],Ft})}return ft(ee),he}function x(ee,te,ge){var de={};(0,ie.Z)(ge)==="object"?de=ge:de={externalGetKey:ge},de=de||{};var se=de,be=se.childrenPropName,Se=se.externalGetKey,Ee=se.fieldNames,he=Ke(Ee),ft=he.key,it=he.children,_t=be||it,Ce;Se?typeof Se=="string"?Ce=function(at){return at[Se]}:typeof Se=="function"&&(Ce=function(at){return Se(at)}):Ce=function(at,st){return et(at[ft],st)};function Ae(tt,at,st,St){var wt=tt?tt[_t]:ee,Ft=tt?He(st.pos,at):"0",Tt=tt?[].concat((0,ce.Z)(St),[tt]):[];if(tt){var Oe=Ce(tt,Ft),je={node:tt,index:at,pos:Ft,key:Oe,parentPos:st.node?st.pos:null,level:st.level+1,nodes:Tt};te(je)}wt&&wt.forEach(function(ct,Gt){Ae(ct,Gt,{node:tt,pos:Ft,level:st?st.level+1:-1},Tt)})}Ae(null)}function b(ee){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ge=te.initWrapper,de=te.processEntity,se=te.onProcessFinished,be=te.externalGetKey,Se=te.childrenPropName,Ee=te.fieldNames,he=arguments.length>2?arguments[2]:void 0,ft=be||he,it={},_t={},Ce={posEntities:it,keyEntities:_t};return ge&&(Ce=ge(Ce)||Ce),x(ee,function(Ae){var tt=Ae.node,at=Ae.index,st=Ae.pos,St=Ae.key,wt=Ae.parentPos,Ft=Ae.level,Tt=Ae.nodes,Oe={node:tt,nodes:Tt,index:at,key:St,pos:st,level:Ft},je=et(St,st);it[st]=Oe,_t[je]=Oe,Oe.parent=it[wt],Oe.parent&&(Oe.parent.children=Oe.parent.children||[],Oe.parent.children.push(Oe)),de&&de(Oe,Ce)},{externalGetKey:ft,childrenPropName:Se,fieldNames:Ee}),se&&se(Ce),Ce}function E(ee,te){var ge=te.expandedKeys,de=te.selectedKeys,se=te.loadedKeys,be=te.loadingKeys,Se=te.checkedKeys,Ee=te.halfCheckedKeys,he=te.dragOverNodeKey,ft=te.dropPosition,it=te.keyEntities,_t=(0,Je.Z)(it,ee),Ce={eventKey:ee,expanded:ge.indexOf(ee)!==-1,selected:de.indexOf(ee)!==-1,loaded:se.indexOf(ee)!==-1,loading:be.indexOf(ee)!==-1,checked:Se.indexOf(ee)!==-1,halfChecked:Ee.indexOf(ee)!==-1,pos:String(_t?_t.pos:""),dragOver:he===ee&&ft===0,dragOverGapTop:he===ee&&ft===-1,dragOverGapBottom:he===ee&&ft===1};return Ce}function z(ee){var te=ee.data,ge=ee.expanded,de=ee.selected,se=ee.checked,be=ee.loaded,Se=ee.loading,Ee=ee.halfChecked,he=ee.dragOver,ft=ee.dragOverGapTop,it=ee.dragOverGapBottom,_t=ee.pos,Ce=ee.active,Ae=ee.eventKey,tt=(0,De.Z)((0,De.Z)({},te),{},{expanded:ge,selected:de,checked:se,loaded:be,loading:Se,halfChecked:Ee,dragOver:he,dragOverGapTop:ft,dragOverGapBottom:it,pos:_t,active:Ce,key:Ae});return"props"in tt||Object.defineProperty(tt,"props",{get:function(){return(0,ae.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),ee}}),tt}},8224:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return ce}});var ie=ne(4676);function ce(De,We,we,Be){var ae=ie.unstable_batchedUpdates?function(Ve){ie.unstable_batchedUpdates(we,Ve)}:we;return De!=null&&De.addEventListener&&De.addEventListener(We,ae,Be),{remove:function(){De!=null&&De.removeEventListener&&De.removeEventListener(We,ae,Be)}}}},55468:function(qe,gt,ne){"use strict";ne.d(gt,{g1:function(){return Re},os:function(){return Ke}});var ie=/margin|padding|width|height|max|min|offset/,ce={left:!0,top:!0},De={cssFloat:1,styleFloat:1,float:1};function We(oe){return oe.nodeType===1?oe.ownerDocument.defaultView.getComputedStyle(oe,null):{}}function we(oe,y,a){if(y=y.toLowerCase(),a==="auto"){if(y==="height")return oe.offsetHeight;if(y==="width")return oe.offsetWidth}return y in ce||(ce[y]=ie.test(y)),ce[y]?parseFloat(a)||0:a}function Be(oe,y){var a=arguments.length,x=We(oe);return y=De[y]?"cssFloat"in oe.style?"cssFloat":"styleFloat":y,a===1?x:we(oe,y,x[y]||oe.style[y])}function ae(oe,y,a){var x=arguments.length;if(y=De[y]?"cssFloat"in oe.style?"cssFloat":"styleFloat":y,x===3)return typeof a=="number"&&ie.test(y)&&(a="".concat(a,"px")),oe.style[y]=a,a;for(var b in y)y.hasOwnProperty(b)&&ae(oe,b,y[b]);return We(oe)}function Je(oe){return oe===document.body?document.documentElement.clientWidth:oe.offsetWidth}function Ve(oe){return oe===document.body?window.innerHeight||document.documentElement.clientHeight:oe.offsetHeight}function He(){var oe=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),y=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:oe,height:y}}function Re(){var oe=document.documentElement.clientWidth,y=window.innerHeight||document.documentElement.clientHeight;return{width:oe,height:y}}function et(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Ke(oe){var y=oe.getBoundingClientRect(),a=document.documentElement;return{left:y.left+(window.pageXOffset||a.scrollLeft)-(a.clientLeft||document.body.clientLeft||0),top:y.top+(window.pageYOffset||a.scrollTop)-(a.clientTop||document.body.clientTop||0)}}},3465:function(qe,gt,ne){"use strict";ne.d(gt,{G:function(){return We}});var ie=ne(47273),ce=function(Be){if((0,ie.Z)()&&window.document.documentElement){var ae=Array.isArray(Be)?Be:[Be],Je=window.document.documentElement;return ae.some(function(Ve){return Ve in Je.style})}return!1},De=function(Be,ae){if(!ce(Be))return!1;var Je=document.createElement("div"),Ve=Je.style[Be];return Je.style[Be]=ae,Je.style[Be]!==Ve};function We(we,Be){return!Array.isArray(we)&&Be!==void 0?De(we,Be):ce(we)}}}]);
|