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
549 KiB
207 lines
549 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[8882],{27812:function(qe,st,ne){"use strict";ne.d(st,{Z:function(){return Je}});var ie=ne(32855),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"},Ue=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae},89489:function(qe,st,ne){"use strict";ne.d(st,{Z:function(){return Je}});var ie=ne(32855),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"},Ue=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae},59477:function(qe,st,ne){"use strict";ne.d(st,{Z:function(){return Je}});var ie=ne(32855),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"},Ue=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae},26227:function(qe,st,ne){"use strict";ne.d(st,{Z:function(){return Je}});var ie=ne(32855),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"},Ue=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae},49198:function(qe,st,ne){"use strict";ne.d(st,{Z:function(){return Je}});var ie=ne(32855),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"},Ue=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae},52671:function(qe,st,ne){"use strict";ne.d(st,{Z:function(){return Je}});var ie=ne(32855),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"},Ue=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae},8657:function(qe,st,ne){"use strict";ne.d(st,{Z:function(){return Je}});var ie=ne(32855),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"},Ue=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae},56082:function(qe,st,ne){"use strict";ne.d(st,{Z:function(){return Je}});var ie=ne(32855),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"},Ue=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae},33853:function(qe,st,ne){"use strict";ne.d(st,{Z:function(){return Je}});var ie=ne(32855),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"},Ue=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae},63524:function(qe,st,ne){"use strict";ne.d(st,{Z:function(){return Je}});var ie=ne(32855),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"},Ue=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae},15075:function(qe,st,ne){"use strict";ne.d(st,{Z:function(){return Je}});var ie=ne(32855),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"},Ue=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae},43531:function(qe,st,ne){"use strict";ne.d(st,{Z:function(){return Je}});var ie=ne(32855),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"},Ue=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae},38819:function(qe,st,ne){"use strict";ne.d(st,{Z:function(){return Je}});var ie=ne(32855),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"},Ue=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae},21697:function(qe,st){"use strict";st.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},20397: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 st=[];function ne(oe,y){var a=st.pop();return a===void 0?new go.Point(oe,y):(a.x=oe,a.y=y,a)}function ie(){var oe=st.pop();return oe===void 0?new go.Point:oe}function ce(oe){st.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 Ue(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,dt=it*Ee+Ce*he,St=_t*Ee+Ae*he,wt=Ce*Ee+tt*he,Ft=at*Ee+St*he,Dt=dt*Ee+wt*he;ge.x=ft,ge.y=it,de.x=at,de.y=dt,se.x=Ft,se.y=Dt,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 Xe(){var oe=Je.pop();return oe===void 0?[]:oe}function He(oe){oe.length=0,Je.push(oe)}function Re(oe){for(var y=Xe(),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=Xe();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=Xe(),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();Ue(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();Ue(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();Ue(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 Ue(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)),Ue(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);Ue(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();Ue(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)),Ue(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,Ue(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)),Ue(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")},11081: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={},st="5.0",ne={},ie=null,ce=!1,De=!1,Ue=null,we=!1,Be=null,ae=null,Je=0;Je<arguments.length;Je++){var Xe=arguments[Je];if(Xe!==null)switch(typeof Xe){case"number":st=Xe.toFixed(1);break;case"string":Xe.match(new RegExp("^[0-9]\\.[0-9]+$"))?st=Xe:Ue=Xe;break;case"object":typeof Xe.is3D!="undefined"?ie=Xe:ne=Xe;break;case"boolean":ce=Xe,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)),Ue!==null&&ne.id===void 0&&(ne.id=Ue);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,_e){ae=Oe,wt(Oe,_e)},qe.setJavaCodebase=qe.setJavaCodebaseVersion=qe.isCompiledInstalled=qe.setPreCompiledScriptPath=qe.setPreCompiledResourcePath=function(){},qe.setHTML5CodebaseVersion=function(Oe,_e){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,_e)},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 _e="auto",ct=ne.id,kt,nt=!1,Ot=0;Ot<arguments.length;Ot++){var ye=arguments[Ot];typeof ye=="string"?(ye=ye.toLowerCase(),ye.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?_e=ye:ct=arguments[Ot]):typeof ye=="boolean"?nt=ye:ye instanceof HTMLElement&&(kt=ye)}Et();function Et(){if(!we){setTimeout(Et,200);return}_e=at(_e);var Ht=kt||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)&&_e==="html5"&&(delete ne.width,delete ne.height),Ke=_e,_e==="screenshot")it(Ht,ne);else{var un=!1;ne.hasOwnProperty("playButton")&&ne.playButton||ne.hasOwnProperty("clickToLoad")&&ne.clickToLoad?un=!0:ne.hasOwnProperty("playButtonAutoDecide")&&ne.playButtonAutoDecide&&(un=(!ge()||Oe())&&de()),un?(Ke="screenshot",Ce(Ht,ne,nt,_e)):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 _e=function(Ot){var ye=JSON.parse(Ot),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 un="https://www.geogebra.org/images/";qe.setPreviewImage(x||Ht.previewUrl,un+"GeoGebra_loading.png",un+"applet_play.png"),Oe()},ct=function(){ne.onError&&ne.onError(),Ft("Error: Fetching material (id "+ne.material_id+") failed.",ne)},kt=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://"+kt+"/api/proxy.php?path="+encodeURIComponent(nt),_e,ct)};function be(Oe){var _e=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(ct){Oe[ct]=!!Oe[ct]}),_e.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,_e,ct){var kt=new XMLHttpRequest;kt.open("GET",Oe),kt.onload=function(){_e(kt.responseText)},kt.onerror=ct,kt.send()}qe.isHTML5Installed=function(){return!0},qe.getLoadedAppletType=function(){return Ke},qe.setPreviewImage=function(Oe,_e,ct){x=Oe,b=_e,E=ct},qe.removeExistingApplet=function(Oe,_e){var ct;typeof Oe=="string"&&(Oe=document.getElementById(Oe)),Ke=null;var kt=null;for(ct=0;ct<Oe.childNodes.length;ct++){var nt=Oe.childNodes[ct],Ot=nt.className;Ot==="applet_screenshot"?_e?(nt.style.display="block",Ke="screenshot"):nt.style.display="none":Ot!=="applet_scaler prerender"&&(Oe.removeChild(nt),kt=Ot&&Ot.indexOf("appletParameters")!=-1?nt.id:null,ct--)}var ye=ne.id!==void 0?ne.id:kt,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,_e,ct){var kt=document.createElement("param");kt.setAttribute("name",_e),kt.setAttribute("value",ct),Oe.appendChild(kt)},he=function(Oe){return Oe&&Oe!=="false"},ft=function(Oe,_e,ct){te(oe)<=4.2&&(ct=!0);var kt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==oe||ggbHTML5LoadedCodebaseIsWebSimple&&!a)&&(kt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var nt=document.createElement("div");nt.classList.add("appletParameters","notranslate");var Ot=_e.width,ye=_e.height;if(_e.disableAutoScale=_e.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():_e.disableAutoScale,_e.width!==void 0)if(te(oe)<=4.4)he(_e.showToolBar)&&(_e.height-=7),he(_e.showAlgebraInput)&&(_e.height-=37),_e.width<605&&he(_e.showToolBar)&&(_e.width=605,Ot=605);else{var Et=100;(he(_e.showToolBar)||he(_e.showMenuBar))&&(_e.hasOwnProperty("customToolBar")&&(_e.customToolbar=_e.customToolBar),Et=he(_e.showMenuBar)?245:155),Ot<Et&&(_e.width=Et,Ot=Et)}nt.style.border="none",nt.style.display="inline-block";for(var Ht in _e)_e.hasOwnProperty(Ht)&&Ht!=="appletOnLoad"&&nt.setAttribute("data-param-"+Ht,_e[Ht]);z&&nt.setAttribute("data-param-fontscssurl",z),qe.resize=function(){GGBAppletUtils.responsiveResize(Oe,_e)},window.addEventListener("resize",function(Pe){qe.resize()});var un=typeof _e.appletOnLoad=="function"?_e.appletOnLoad:function(){};if(!ct&&_e.width!==void 0){_e.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(Ot,ye,_e.borderColor,!1);Xt=document.createElement("div"),Xt.className="applet_scaler",Xt.style.position="relative",Xt.style.display="block",Xt.style.width=Ot+"px",Xt.style.height=ye+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Xt,"66%"),te(oe)>=5?(_e.appletOnLoad=function(Pe){var Ge=Oe.querySelector(".ggb_preview");Ge&&Ge.parentNode.removeChild(Ge),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Xt),window.GGBT_wsf_view&&$(window).trigger("resize"),un(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),_e.appletOnLoad=function(Pe){qe.resize(),un(Pe)}}function me(Pe,Ge){Ge&&typeof Ge.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Pe,Ge.appletOnLoad):renderGGBElement(Pe),Ft("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ge)}function Ve(Pe,Ge){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Pe,params:Ge}),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,Ge)}if(kt){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(){Ve(nt,_e)};Ze.src=Re+y,ggbHTML5LoadedCodebaseIsWebSimple=a,ggbHTML5LoadedCodebaseVersion=oe,ggbHTML5LoadedScript=Ze.src,Ft("GeoGebra HTML5 codebase loaded: '"+Re+"'.",_e),!ae&&(!Be||Be=="5.0")?(a?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ne()):Re.requirejs?__webpack_require__.e(981).then(function(){var Pe=[__webpack_require__(60981)];Ne.apply(null,Pe)}.bind(this)).catch(__webpack_require__.oe):(Ze.onload=Ne,Oe.appendChild(Ze))}else Ve(nt,_e);_e.height=ye,_e.width=Ot},it=function(Oe,_e,ct){var kt=tt(_e.width,_e.height,_e.borderColor,ct),nt=document.createElement("div");nt.style.position="relative",nt.style.display="block",nt.style.width=_e.width+"px",nt.style.height=_e.height+"px",nt.className="applet_screenshot applet_scaler"+(ct?" applet_screenshot_play":""),nt.appendChild(kt);var Ot=GGBAppletUtils.getScale(_e,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),Ot!==1&&!isNaN(Ot)&&(GGBAppletUtils.scaleElement(nt,Ot),nt.style.width=_e.width+"px",nt.style.height=_e.height+"px",nt.parentNode.style.width=_e.width*Ot+"px",nt.parentNode.style.height=_e.height*Ot+"px"),qe.resize=function(){_t(Oe,kt,nt,ct)},window.addEventListener("resize",function(ye){qe.resize()}),qe.resize()};function _t(Oe,_e,ct,kt){if(Oe.contains(_e)){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,kt);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,_e){_e.appendChild(Oe)};var Ce=function(Oe,_e,ct,kt){it(Oe,_e,!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,_e.id),un=document.getElementById("fullscreencontainer"),Xt=jQuery(Oe).find(".fullscreencontent");Xt.length>0?(Ht.remove(),Xt.attr("id","fullscreencontent").show(),jQuery(un).append(Xt),window.dispatchEvent(new Event("resize"))):ft(Ht,_e,!1),window.GGBT_wsf_view.launchFullScreen(un)}else Ke=kt,ft(Oe,_e,!1);if(!window.GGBT_wsf_view)for(ye=0;ye<Et.length;ye++)Oe.removeChild(Et[ye])},Ot=Oe.getElementsByClassName("ggb_preview_play"),ye=0;ye<Ot.length;ye++)Ot[ye].addEventListener("click",nt,!1),Ot[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 _e='.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=_e:ct.appendChild(document.createTextNode(_e)),document.getElementsByTagName("head")[0].appendChild(ct)}return Oe},tt=function(Oe,_e,ct,kt){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=_e-2+"px",nt.style.top="0px",nt.style.left="0px",nt.style.overflow="hidden",nt.style.backgroundColor="white";var Ot="lightgrey";ct!==void 0&&(ct==="none"?Ot="transparent":Ot=ct),nt.style.border="1px solid "+Ot;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,un;if(!kt){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),un=Ht/5.8,Et.setAttribute("src",b),Et.setAttribute("width",Ht),Et.setAttribute("height",un);var Xt=(Oe-Ht)/2,Te=(_e-un)/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"},dt=["web","webSimple","web3d","tablet","tablet3d","phone"],St=function(Oe,_e){if(oe=Oe,_e){wt(oe,!0);return}var ct=!ce;if(ct){var kt=te(oe);!isNaN(kt)&&kt<4.4&&(ct=!1)}var nt,Ot;window.location.protocol.substr(0,4)==="http"?nt=window.location.protocol:nt="http:";var ye=oe.indexOf("//");ye>0?Ot=oe:ye===0?Ot=nt+oe:Ot="https://www.geogebra.org/apps/5.2.814.0/";for(var Et in dt)if(oe.slice(dt[Et].length*-1)===dt[Et]||oe.slice((dt[Et].length+1)*-1)===dt[Et]+"/"){wt(Ot,!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")?Ot+="webSimple/":Ot+="web3d/",wt(Ot,!1)},wt=function(Oe,_e){if(Oe.requirejs){Re=Oe;return}Oe.slice(-1)!=="/"&&(Oe+="/"),Re=Oe,_e===null&&(_e=Oe.indexOf("http")===-1),et=_e,y="web.nocache.js",a=!1;var ct=Re.split("/");ct.length>1&&(!_e&&ct[ct.length-2]==="webSimple"?(y="webSimple.nocache.js",a=!0):dt.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 kt=parseFloat(oe);kt!==NaN&&kt<5&&Oe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+kt+" is deprecated. Using version latest instead."),St("5.0",_e))},Ft=function(Oe,_e){window.console&&window.console.log&&(!_e||typeof _e.showLogging=="undefined"||_e.showLogging&&_e.showLogging!=="false")&&console.log(Oe)};ne.material_id!==void 0?se(Dt):Dt();function Dt(){var Oe=st;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 st(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,Xe,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&&(Xe===void 0||!Xe)&&(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,Xe){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,Xe),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,Xe,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))Xe=ie(we,Be,He,ae,we.scaleContainerClass);else return Je;return He&&(!we.hasOwnProperty("scale")||Je===1)?Xe:Math.min(Je,Xe)}function De(we){var Be=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),Je=we.getBoundingClientRect(),Xe=(Be-Je.width)/2,He=(ae-Je.height)/2;He<0&&(He=0),we.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Xe<40?we.style.left="40px":we.style.left=Xe+"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=Xe+"px")}function Ue(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 Xe=null,He=0;He<we.childNodes.length;He++)if(we.childNodes[He].className!==void 0&&we.childNodes[He].className.match(/^applet_scaler/)){Xe=we.childNodes[He];break}if(Xe!==null&&Xe.querySelector(".noscale")!==null)return;var Re=Be.id!==void 0?Be.id:"ggbApplet",et=window[Re];(et==null||!et.recalculateEnvironments)&&Xe!==null&&!Xe.className.match(/fullscreen/)&&(Xe.parentNode.style.transform="",!isNaN(Je)&&Je!==1?(Xe.parentNode.style.width=Be.width*Je+"px",Xe.parentNode.style.height=Be.height*Je+"px",st(Xe,Je)):(st(Xe,1),Xe.parentNode.style.width=Be.width+"px",Xe.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:Ue,isFlexibleWorksheetEditor:qe,positionCenter:De,getScale:ce,scaleElement:st}}();__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,st){}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 st=s[L].bindings;s[L].bindings=function(){for(var ne=st?st():{},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 st=document.compatMode==U?V:W;t.write(st+X),t.close()}}}function w(qe){function st(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 Ue(){if(!De){if(!ce())return;De=!0,ie(),o.removeEventListener&&o.removeEventListener(Z,Ue,!1),we&&clearInterval(we)}}o.addEventListener&&o.addEventListener(Z,Ue,!1);var we=setInterval(function(){Ue()},$)}function ne(ie){var ce=u(),De=ce.body,Ue=ce.createElement(_);Ue.language=ab,Ue.crossOrigin=W,Ue.src=ie,webModule.__errFn&&(Ue.onerror=function(){webModule.__errFn(L,new Error(bb+ie))}),De.appendChild(Ue)}st(function(){ne(qe)})}webModule.__startLoadingFragment=function(qe){return C(qe)},webModule.__installRunAsyncCode=function(qe){var st=u(),ne=st.body,ie=st.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 st=c[qe];return st==null?null:st},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 st(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 Ue=ne();return Ue==W&&(Ue=ie()),Ue==W&&(Ue=ce()),Ue==W&&De()&&(Ue=qe(o.location.href)),Ue=st(Ue),Ue}function C(qe){return qe.match(/^\//)||qe.match(/^[a-zA-Z]+:\/\//)?qe:webModule.__moduleBase+qe}function D(){var qe=[],st=O,ne=[],ie=[];function ce(we){var Be=ie[we](),ae=ne[we];if(Be in ae)return Be;var Je=[];for(var Xe in ae)Je[ae[Xe]]=Xe;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 Ue=De.indexOf(Db);Ue!=-1&&(st=parseInt(De.substring(Ue+P),$),De=De.substring(O,Ue))}catch(we){}return webModule.__softPermutationId=st,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})()},67303:function(qe,st,ne){"use strict";ne.d(st,{Ax:function(){return Ue},Ds:function(){return we},KI:function(){return ae},SI:function(){return De},f1:function(){return ce}});var ie=ne(90524);function ce(Je){let Xe=!0;if(Je.length>0){for(let He=0;He<Je.length;He++)if(Je[He].compile_success==0||!Je[He].compile_success){Xe=!1;break}}else Xe=!1;return Xe}function De(Je,Xe=""){let He=[];for(let Re=0;Re<Je.length;Re++){let et=Je[Re],Ke=Xe?`${Xe}/${et.name}`:`${et.name}`;He.push({title:et.name,type:et.type,isLeaf:et.type!=="tree",key:Ke})}return He}function Ue(Je,Xe,He){for(let Re=0;Re<Je.length;Re++){let et=Je[Re];if(et.key===Xe){et.children=He;break}et.children&&Ue(et.children,Xe,He)}return Je}function we(Je,Xe,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,Xe),y&&Je.apply(et,Ke)}}const Be=!0,ae=ie.Z.API_SERVER},6077:function(qe,st,ne){"use strict";ne.d(st,{Z:function(){return Re}});var ie=ne(59301),ce={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},De=ne(92310),Ue=ne.n(De),we=ne(71418),Be=ne(2859),ae=ne(82093),Je=ne(49661),Xe=(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=()=>Xe(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=>Xe(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:Ue()(ce.imageDimensions,Ke,oe?ce.fullWidth:""),style:y},ie.createElement("img",{className:ce.img,ref:z}))))}},88615:function(qe,st,ne){"use strict";var ie=ne(59301),ce=ne(95237),De=ne(43604),Ue=ne(99313),we=ne(3113),Be=ne(7664),ae=ne(21697),Je=ne(48136),Xe=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:Xe.createElement(ce.Z,{className:ae.Z.lists,gutter:[10,10]},a.map((ee,te)=>Xe.createElement(De.Z,{flex:"110px",className:ae.Z.item},Xe.createElement("div",null,Xe.createElement(Be.Z,{value:`$$${ee.value}$$`}),ee.name),Xe.createElement("div",{className:ae.Z.children},ee.children.map((ge,de)=>Xe.createElement("div",{key:de},Xe.createElement("h1",null,ge.name),Xe.createElement(ce.Z,{gutter:[10,10]},ge.data.map((se,be)=>Xe.createElement(De.Z,{key:be,onClick:()=>b(se),className:ae.Z.diamond},Xe.createElement(Be.Z,{value:"`$$"+se.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Xe.createElement(ce.Z,{className:ae.Z.lists,gutter:[10,10]},x.map((ee,te)=>Xe.createElement(De.Z,{flex:"110px",className:ae.Z.item},Xe.createElement("div",null,Xe.createElement(Be.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Xe.createElement("div",{className:ae.Z.children},ee.children.map((ge,de)=>Xe.createElement("div",{key:de},ge.name&&Xe.createElement("h1",null,ge.name),Xe.createElement(ce.Z,{gutter:[10,10]},ge.data.map((se,be)=>Xe.createElement(De.Z,{key:be,onClick:()=>b(se),className:ae.Z.diamond},Xe.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})),Xe.createElement("div",{className:ae.Z.mathWrap},Xe.createElement(Ue.default,{defaultActiveKey:"1",items:E}),Xe.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&&Xe.createElement("div",{className:ae.Z.button},Xe.createElement(we.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});st.Z=He},44905:function(qe,st,ne){"use strict";ne.d(st,{h:function(){return ee}});var ie=ne(59301),ce=ne(57809),De=ne(78241),Ue=ne(3113),we=ne(89780),Be=ne.n(we),ae=ne(66543),Je=ne(59598),Xe=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?Xe(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"]};st.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(Ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ie.createElement(Ue.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}))}},89389:function(qe,st,ne){"use strict";ne.d(st,{Z:function(){return ja}});var ie=ne(59301),ce=ne(89780),De=ne.n(ce),Ue=ne(76374),we=ne(66543),Be=ne(6313),ae=ne(25717),Je=ne(99498),Xe=ne(25419),He=ne(67549),Re=ne(7664),et=({value:ke="",className:We,showTextOnly:je,showLines:zt,style:mn={}})=>{const an=(0,ie.useMemo)(()=>"",[ke]);return ie.createElement(ie.Fragment,null,ie.createElement("div",{dangerouslySetInnerHTML:{__html:an}}))},Ke=ne(59301),oe=Object.defineProperty,y=Object.defineProperties,a=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(ke,We,je)=>We in ke?oe(ke,We,{enumerable:!0,configurable:!0,writable:!0,value:je}):ke[We]=je,ee=(ke,We)=>{for(var je in We||(We={}))b.call(We,je)&&z(ke,je,We[je]);if(x)for(var je of x(We))E.call(We,je)&&z(ke,je,We[je]);return ke},te=(ke,We)=>y(ke,a(We));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:ke,title:We,icon:je,actionName:zt,className:mn="",children:an}){function Yn(){ke(zt)}return Ke.createElement("a",{title:We,className:mn,onClick:Yn},Ke.createElement("i",{className:`${je}`}),an)}var se=({watch:ke,showNullButton:We,showNullProgramButton:je,onActionCallback:zt,fullScreen:mn,insertTemp:an,hidetoolBar:Yn,extraUse:In})=>{const sn=[...ge,{title:`${ke?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ke?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ke.createElement("ul",{className:"markdown-toolbar-container"},!Yn&&sn.map((_n,Ba)=>Ke.createElement("li",{key:Ba},_n.actionName?Ke.createElement(de,te(ee({},_n),{onActionCallback:zt})):Ke.createElement("span",{className:"v-line"}))),We?Ke.createElement("li",null,Ke.createElement(de,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:zt},Ke.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,je?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,an&&Ke.createElement("li",null,Ke.createElement(de,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${an}`,onActionCallback:zt},Ke.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),In&&Ke.createElement("li",null,In),Ke.createElement("li",{className:"btn-full-screen"},Ke.createElement(de,{icon:`${mn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:mn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:zt})))},be=ne(75790),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=(ke,We,je)=>We in ke?ft(ke,We,{enumerable:!0,configurable:!0,writable:!0,value:je}):ke[We]=je,dt=(ke,We)=>{for(var je in We||(We={}))Ae.call(We,je)&&at(ke,je,We[je]);if(Ce)for(var je of Ce(We))tt.call(We,je)&&at(ke,je,We[je]);return ke},St=(ke,We)=>it(ke,_t(We));const wt={labelCol:{span:4},wrapperCol:{span:20}};var Ft=({callback:ke,onCancel:We})=>{function je(zt){ke(zt)}return ie.createElement(Se.default,St(dt({},wt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:je,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:We},"\u53D6\u6D88")))},Dt=ne(44905),Oe=ne(45596),_e=ne(43418),ct=ne(95237),kt=ne(6077),nt=ne(59301),Ot=({callback:ke,onCancel:We})=>{const je=document.createElement("canvas"),zt=je.getContext("2d");je.width=1e3,je.height=800,zt.fillStyle="#ffffff",zt.fillRect(0,0,je.width,je.height);const mn=je.toDataURL("image/png");return nt.createElement(_e.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(kt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:mn,visible:!0,title:String(Date.now())},onOk:an=>{ke({src:an.url})},onClose:We})))},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 ke=this.diagram;return!(ke===null||ke.isReadOnly||ke.isModelReadOnly||ke.selection.count<2)},Et.prototype.alignLeft=function(){var ke=this.diagram;ke.startTransaction("aligning left");var We=1/0;ke.selection.each(function(je){je instanceof go.Link||(We=Math.min(je.position.x,We))}),ke.selection.each(function(je){je instanceof go.Link||je.move(new go.Point(We,je.position.y))}),ke.commitTransaction("aligning left")},Et.prototype.alignRight=function(){var ke=this.diagram;ke.startTransaction("aligning right");var We=-1/0;ke.selection.each(function(je){if(!(je instanceof go.Link)){var zt=je.actualBounds.x+je.actualBounds.width;We=Math.max(zt,We)}}),ke.selection.each(function(je){je instanceof go.Link||je.move(new go.Point(We-je.actualBounds.width,je.position.y))}),ke.commitTransaction("aligning right")},Et.prototype.alignTop=function(){var ke=this.diagram;ke.startTransaction("alignTop");var We=1/0;ke.selection.each(function(je){je instanceof go.Link||(We=Math.min(je.position.y,We))}),ke.selection.each(function(je){je instanceof go.Link||je.move(new go.Point(je.position.x,We))}),ke.commitTransaction("alignTop")},Et.prototype.alignBottom=function(){var ke=this.diagram;ke.startTransaction("aligning bottom");var We=-1/0;ke.selection.each(function(je){if(!(je instanceof go.Link)){var zt=je.actualBounds.y+je.actualBounds.height;We=Math.max(zt,We)}}),ke.selection.each(function(je){je instanceof go.Link||je.move(new go.Point(je.actualBounds.x,We-je.actualBounds.height))}),ke.commitTransaction("aligning bottom")},Et.prototype.alignCenterX=function(){var ke=this.diagram,We=ke.selection.first();if(We){ke.startTransaction("aligning Center X");var je=We.actualBounds.x+We.actualBounds.width/2;ke.selection.each(function(zt){zt instanceof go.Link||zt.move(new go.Point(je-zt.actualBounds.width/2,zt.actualBounds.y))}),ke.commitTransaction("aligning Center X")}},Et.prototype.alignCenterY=function(){var ke=this.diagram,We=ke.selection.first();if(We){ke.startTransaction("aligning Center Y");var je=We.actualBounds.y+We.actualBounds.height/2;ke.selection.each(function(zt){zt instanceof go.Link||zt.move(new go.Point(zt.actualBounds.x,je-zt.actualBounds.height/2))}),ke.commitTransaction("aligning Center Y")}},Et.prototype.alignColumn=function(ke){var We=this.diagram;We.startTransaction("align Column"),ke===void 0&&(ke=0),ke=parseFloat(ke);var je=new Array;We.selection.each(function(In){In instanceof go.Link||je.push(In)});for(var zt=0;zt<je.length-1;zt++){var mn=je[zt],an=mn.actualBounds.y+mn.actualBounds.height+ke,Yn=je[zt+1];Yn.move(new go.Point(mn.actualBounds.x,an))}We.commitTransaction("align Column")},Et.prototype.alignRow=function(ke){ke===void 0&&(ke=0),ke=parseFloat(ke);var We=this.diagram;We.startTransaction("align Row");var je=new Array;We.selection.each(function(In){In instanceof go.Link||je.push(In)});for(var zt=0;zt<je.length-1;zt++){var mn=je[zt],an=mn.actualBounds.x+mn.actualBounds.width+ke,Yn=je[zt+1];Yn.move(new go.Point(an,mn.actualBounds.y))}We.commitTransaction("align Row")},Et.prototype.canRotate=function(ke){var We=this.diagram;return!(We===null||We.isReadOnly||We.isModelReadOnly||We.selection.count<1)},Et.prototype.rotate=function(ke){ke===void 0&&(ke=90);var We=this.diagram;We.startTransaction("rotate "+ke.toString());var We=this.diagram;We.selection.each(function(je){je instanceof go.Link||je instanceof go.Group||(je.angle+=ke)}),We.commitTransaction("rotate "+ke.toString())},Et.prototype.pullToFront=function(){var ke=this.diagram;ke.startTransaction("pullToFront");var We=new go.Map;ke.selection.each(function(je){We.set(je.layer,0)}),We.iteratorKeys.each(function(je){var zt=0;je.parts.each(function(mn){if(!mn.isSelected){var an=mn.zOrder;isNaN(an)?mn.zOrder=0:zt=Math.max(zt,an)}}),We.set(je,zt)}),ke.selection.each(function(je){Et._assignZOrder(je,We.get(je.layer)+1)}),ke.commitTransaction("pullToFront")},Et.prototype.pushToBack=function(){var ke=this.diagram;ke.startTransaction("pushToBack");var We=new go.Map;ke.selection.each(function(je){We.set(je.layer,0)}),We.iteratorKeys.each(function(je){var zt=0;je.parts.each(function(mn){if(!mn.isSelected){var an=mn.zOrder;isNaN(an)?mn.zOrder=0:zt=Math.min(zt,an)}}),We.set(je,zt)}),ke.selection.each(function(je){Et._assignZOrder(je,We.get(je.layer)-1-Et._findGroupDepth(je))}),ke.commitTransaction("pushToBack")},Et._assignZOrder=function(ke,We,je){je===void 0&&(je=ke),ke.layer===je.layer&&(ke.zOrder=We),ke instanceof go.Group&&ke.memberParts.each(function(zt){Et._assignZOrder(zt,We+1,je)})},Et._findGroupDepth=function(ke){if(ke instanceof go.Group){var We=0;return ke.memberParts.each(function(je){We=Math.max(We,Et._findGroupDepth(je))}),We+1}else return 0},Et.prototype.doKeyDown=function(){var ke=this.diagram;if(ke!==null){var We=ke.lastInput;if(We.key==="Up"||We.key==="Down"||We.key==="Left"||We.key==="Right"){var je=this.arrowKeyBehavior;if(je==="none")return;if(je==="select"){this._arrowKeySelect();return}else if(je==="move"){this._arrowKeyMove();return}else if(je==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Et.prototype._getAllParts=function(){var ke=new Array;return this.diagram.nodes.each(function(We){ke.push(We)}),this.diagram.parts.each(function(We){ke.push(We)}),ke},Et.prototype._arrowKeyMove=function(){var ke=this.diagram,We=ke.lastInput,je=0,zt=0;if(We.control||We.meta)je=1,zt=1;else if(ke.grid!==null){var mn=ke.grid.gridCellSize;zt=mn.width,je=mn.height}ke.startTransaction("arrowKeyMove"),ke.selection.each(function(an){We.key==="Up"?an.move(new go.Point(an.actualBounds.x,an.actualBounds.y-je)):We.key==="Down"?an.move(new go.Point(an.actualBounds.x,an.actualBounds.y+je)):We.key==="Left"?an.move(new go.Point(an.actualBounds.x-zt,an.actualBounds.y)):We.key==="Right"&&an.move(new go.Point(an.actualBounds.x+zt,an.actualBounds.y))}),ke.commitTransaction("arrowKeyMove")},Et.prototype._arrowKeySelect=function(){var ke=this.diagram,We=ke.lastInput,je=null;We.key==="Up"?je=this._findNearestPartTowards(270):We.key==="Down"?je=this._findNearestPartTowards(90):We.key==="Left"?je=this._findNearestPartTowards(180):We.key==="Right"&&(je=this._findNearestPartTowards(0)),je!==null&&(We.shift?je.isSelected=!0:We.control||We.meta?je.isSelected=!je.isSelected:ke.select(je))},Et.prototype._findNearestPartTowards=function(ke){var We=this.diagram.selection.first();if(We===null)return null;for(var je=We.actualBounds.center,zt=this._getAllParts(),mn=1/0,an=We,Yn=0;Yn<zt.length;Yn++){var In=zt[Yn];if(In!==We&&In.canSelect()){var sn=In.actualBounds.center,_n=je.directionPoint(sn),Ba=this._angleCloseness(_n,ke);if(Ba<=45){var Nt=je.distanceSquaredPoint(sn);Nt*=1+Math.sin(Ba*Math.PI/180),Nt<mn&&(mn=Nt,an=In)}}}return an},Et.prototype._angleCloseness=function(ke,We){return Math.min(Math.abs(We-ke),Math.min(Math.abs(We+360-ke),Math.abs(We-360-ke)))},Et.prototype._arrowKeyTree=function(){var ke=this.diagram,We=ke.selection.first();if(We instanceof go.Node){var je=ke.lastInput;if(je.key==="Right"){if(!We.isTreeLeaf)if(!We.isTreeExpanded)ke.commandHandler.canExpandTree(We)&&ke.commandHandler.expandTree(We);else{var zt=this._sortTreeChildrenByY(We).first();zt!==null&&ke.select(zt)}}else if(je.key==="Left")if(!We.isTreeLeaf&&We.isTreeExpanded)ke.commandHandler.canCollapseTree(We)&&ke.commandHandler.collapseTree(We);else{var mn=We.findTreeParentNode();mn!==null&&ke.select(mn)}else if(je.key==="Up"){var mn=We.findTreeParentNode();if(mn!==null){var an=this._sortTreeChildrenByY(mn),Yn=an.indexOf(We);if(Yn>0){for(var In=an.elt(Yn-1);In!==null&&In.isTreeExpanded&&!In.isTreeLeaf;){var sn=this._sortTreeChildrenByY(In);In=sn.last()}In!==null&&ke.select(In)}else ke.select(mn)}}else if(je.key==="Down")if(We.isTreeExpanded&&!We.isTreeLeaf){var zt=this._sortTreeChildrenByY(We).first();zt!==null&&ke.select(zt)}else for(;We!==null;){var mn=We.findTreeParentNode();if(mn===null)break;var an=this._sortTreeChildrenByY(mn),Yn=an.indexOf(We);if(Yn<an.length-1){ke.select(an.elt(Yn+1));break}else We=mn}var _n=ke.selection.first();_n!==null&&ke.scrollToRect(_n.actualBounds)}},Et.prototype._sortTreeChildrenByY=function(ke){var We=new go.List().addAll(ke.findTreeChildrenNodes());return We.sort(function(je,zt){var mn=je.location,an=zt.location;return mn.y<an.y?-1:mn.y>an.y?1:mn.x<an.x?-1:mn.x>an.x?1:0}),We},Et.prototype.copyToClipboard=function(ke){go.CommandHandler.prototype.copyToClipboard.call(this,ke),this._lastPasteOffset.set(this.pasteOffset)},Et.prototype.pasteFromClipboard=function(){var ke=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ke,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ke},Object.defineProperty(Et.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ke){if(ke!=="move"&&ke!=="select"&&ke!=="scroll"&&ke!=="tree"&&ke!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ke);this._arrowKeyBehavior=ke}}),Object.defineProperty(Et.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ke){if(!(ke instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ke);this._pasteOffset.set(ke)}});var Ht=Et,un=ne(20397),Xt=ne(43604),Te=ne(82093),$e={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Fe=ne(59301),me=(ke,We,je)=>new Promise((zt,mn)=>{var an=sn=>{try{In(je.next(sn))}catch(_n){mn(_n)}},Yn=sn=>{try{In(je.throw(sn))}catch(_n){mn(_n)}},In=sn=>sn.done?zt(sn.value):Promise.resolve(sn.value).then(an,Yn);In((je=je.apply(ke,We)).next())});function Ve({onCancel:ke,callback:We}){let je=(0,ie.useRef)(),zt=(0,ie.useRef)(),mn=(0,ie.useRef)(),an=(0,ie.useRef)(!1);const Yn=(0,ie.useRef)(!1),[In,sn]=(0,ie.useState)(0);function _n(){const Nt=ye.bx.make,Tn={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"};je.current=new ye.S0(zt.current,{padding:20,grid:Nt(ye.s_,"Grid",Nt(ye.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Nt(ye.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Gt=>{var pn=Gt.diagram.commandHandler.addTopLevelParts(Gt.diagram.selection,!0);pn||Gt.diagram.currentTool.doCancel()},commandHandler:Nt(Ht),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Gt=>{var pn=Gt.subject;pn.location=pn.location.copy().snapToGridPoint(Gt.diagram.grid.gridOrigin,Gt.diagram.grid.gridCellSize),setTimeout(()=>{Gt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Gt=>{var pn=Gt.subject;setTimeout(()=>{Gt.diagram.commandHandler.editTextBlock()})},LinkRelinked:Gt=>{var pn=Gt.parameter.part;pn.invalidateConnectedLinks();var Rn=Gt.subject;Gt.diagram.toolManager.linkingTool.isForwards?Rn.toNode.invalidateConnectedLinks():Rn.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),je.current.nodeTemplate=Nt(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),Nt(ye.bn,{name:"SHAPE",fill:Tn.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")),Nt(ye.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Nt(ye.al,{margin:1,textAlign:"center",overflow:ye.al.OverflowEllipsis,editable:!0},new ye.KX("text").makeTwoWay(),new ye.KX("stroke","color"))),je.current.nodeTemplate.toolTip=Nt("ToolTip",Nt(ye.s_,"Vertical",{maxSize:new ye.$u(200,NaN)},Nt(ye.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ye.KX("text")),Nt(ye.al,{font:"10pt sans-serif",textAlign:"center"},new ye.KX("text","details"))));function va(Gt,pn){var Rn=(vn,da)=>{vn.handled=!0,vn.diagram.model.commit(sa=>{var ka=da.part.adornedPart,Wa=new ye.E9().setRectSpot(ka.actualBounds,Gt);Wa.subtract(ka.location),Wa.scale(2,2),Wa.x+=Math.sign(Wa.x)*130,Wa.y+=Math.sign(Wa.y)*130,Wa.add(ka.location),Wa.snapToGridPoint(vn.diagram.grid.gridOrigin,vn.diagram.grid.gridCellSize);var no=sa.copyNodeData(ka.data);sa.setGroupKeyForNodeData(no,sa.getGroupKeyForNodeData(ka.data)),sa.addNodeData(no);var Wo={from:ka.key,to:sa.getKeyForNodeData(no)};sa.addLinkData(Wo);var Fo=vn.diagram.findNodeForData(no);Fo.location=Wa,vn.diagram.select(Fo),setTimeout(()=>{vn.diagram.commandHandler.editTextBlock()},20)})};return Nt(ye.bn,{figure:pn,alignment:Gt,alignmentFocus:Gt.opposite(),width:Gt.equals(ye.z6.Top)||Gt.equals(ye.z6.Bottom)?25:18,height:Gt.equals(ye.z6.Top)||Gt.equals(ye.z6.Bottom)?18:25,fill:"orange",stroke:Tn.white,strokeWidth:4,mouseEnter:(vn,da)=>da.fill="dodgerblue",mouseLeave:(vn,da)=>da.fill="orange",isActionable:!0,click:Rn,contextClick:Rn})}function ea(Gt){return Nt(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:(pn,Rn)=>Rn.fill="dodgerblue",mouseLeave:(pn,Rn)=>Rn.fill="orange",click:(pn,Rn)=>{pn.diagram.commandHandler.showContextMenu(Rn.part.adornedPart)}},Gt||{})}je.current.nodeTemplate.selectionAdornmentTemplate=Nt(ye.uz,"Spot",Nt(ye.Vm,{padding:10}),va(ye.z6.Top,"TriangleUp"),va(ye.z6.Left,"TriangleLeft"),va(ye.z6.Right,"TriangleRight"),va(ye.z6.Bottom,"TriangleDown"),ea({alignment:new ye.z6(.75,0)}));function oa(Gt,pn){return(Rn,vn)=>{Rn.handled=!0,Rn.diagram.model.commit(da=>{da.set(vn.part.adornedPart.data,Gt,pn)})}}function ta(Gt,pn){return pn||(pn="color"),Nt(ye.bn,{width:16,height:16,stroke:"lightgray",fill:Gt,margin:1,background:"transparent",mouseEnter:(Rn,vn)=>vn.stroke="dodgerblue",mouseLeave:(Rn,vn)=>vn.stroke="lightgray",click:oa(pn,Gt),contextClick:oa(pn,Gt)})}function Aa(){return[Nt("ContextMenuButton",Nt(ye.s_,"Horizontal",ta(Tn.white,"fill"),ta(Tn.beige,"fill"),ta(Tn.extralightblue,"fill"),ta(Tn.extralightred,"fill"))),Nt("ContextMenuButton",Nt(ye.s_,"Horizontal",ta(Tn.lightgray,"fill"),ta(Tn.lightgreen,"fill"),ta(Tn.lightblue,"fill"),ta(Tn.lightred,"fill")))]}function Da(){return[Nt("ContextMenuButton",Nt(ye.s_,"Horizontal",ta(Tn.black),ta(Tn.green),ta(Tn.blue),ta(Tn.red))),Nt("ContextMenuButton",Nt(ye.s_,"Horizontal",ta(Tn.white),ta(Tn.magenta),ta(Tn.purple),ta(Tn.orange)))]}function _a(Gt,pn){return pn||(pn="thickness"),Nt(ye.bn,"LineH",{width:16,height:16,strokeWidth:Gt,margin:1,background:"transparent",mouseEnter:(Rn,vn)=>vn.background="dodgerblue",mouseLeave:(Rn,vn)=>vn.background="transparent",click:oa(pn,Gt),contextClick:oa(pn,Gt)})}function oo(Gt,pn){return pn||(pn="dash"),Nt(ye.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Gt,margin:1,background:"transparent",mouseEnter:(Rn,vn)=>vn.background="dodgerblue",mouseLeave:(Rn,vn)=>vn.background="transparent",click:oa(pn,Gt),contextClick:oa(pn,Gt)})}function Ya(){return[Nt("ContextMenuButton",Nt(ye.s_,"Horizontal",_a(1),_a(2),_a(3),_a(4))),Nt("ContextMenuButton",Nt(ye.s_,"Horizontal",oo(null),oo([2,4]),oo([4,4])))]}function Ca(Gt,pn){return pn||(pn="figure"),Nt(ye.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Gt,margin:1,background:"transparent",mouseEnter:(Rn,vn)=>vn.fill="dodgerblue",mouseLeave:(Rn,vn)=>vn.fill="lightgray",click:oa(pn,Gt),contextClick:oa(pn,Gt)})}je.current.nodeTemplate.contextMenu=Nt("ContextMenu",Nt("ContextMenuButton",Nt(ye.s_,"Horizontal",Ca("Rectangle"),Ca("RoundedRectangle"),Ca("Ellipse"),Ca("Diamond"))),Nt("ContextMenuButton",Nt(ye.s_,"Horizontal",Ca("Parallelogram2"),Ca("ManualOperation"),Ca("Procedure"),Ca("Cylinder1"))),Nt("ContextMenuButton",Nt(ye.s_,"Horizontal",Ca("Terminator"),Ca("CreateRequest"),Ca("Document"),Ca("TriangleDown"))),Aa(),Da(),Ya()),je.current.groupTemplate=Nt(ye.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ye.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Gt,pn)=>{var Rn=pn.addMembers(pn.diagram.selection,!0);Rn||pn.diagram.currentTool.doCancel()},avoidable:!1},new ye.KX("location","loc",ye.E9.parse).makeTwoWay(ye.E9.stringify),Nt(ye.s_,"Auto",{name:"BODY"},Nt(ye.bn,{parameter1:10,fill:Tn.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")),Nt(ye.Vm,{background:"transparent",margin:20})),Nt(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"))),je.current.groupTemplate.selectionAdornmentTemplate=Nt(ye.uz,"Spot",Nt(ye.s_,"Auto",Nt(ye.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Nt(ye.Vm,{margin:1.5})),ea({alignment:ye.z6.TopRight,alignmentFocus:ye.z6.BottomRight})),je.current.groupTemplate.contextMenu=Nt("ContextMenu",Aa(),Da(),Ya()),je.current.linkTemplate=Nt(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",Gt=>Gt>=1?10:0),new ye.KX("toShortLength","dir",Gt=>Gt>=1?10:0),new ye.KX("points").makeTwoWay(),Nt(ye.bn,{strokeWidth:2},new ye.KX("stroke","color"),new ye.KX("strokeWidth","thickness"),new ye.KX("strokeDashArray","dash")),Nt(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",Gt=>Gt===1)),Nt(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",Gt=>Gt>=1),new ye.KX("width","thickness",Gt=>7+3*Gt),new ye.KX("height","thickness",Gt=>7+3*Gt),new ye.KX("segmentOffset","thickness",Gt=>new ye.E9(-15,4+1.5*Gt))),Nt(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",Gt=>Gt===2),new ye.KX("width","thickness",Gt=>7+3*Gt),new ye.KX("height","thickness",Gt=>7+3*Gt),new ye.KX("segmentOffset","thickness",Gt=>new ye.E9(-15,4+1.5*Gt))),Nt(ye.al,{alignmentFocus:new ye.z6(0,1,-4,0),editable:!0},new ye.KX("text").makeTwoWay(),new ye.KX("stroke","color"))),je.current.linkTemplate.selectionAdornmentTemplate=Nt(ye.uz,Nt(ye.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:yo(2)},new ye.KX("pathPattern","thickness",yo)),ea({alignmentFocus:new ye.z6(0,0,-6,-4)}));function yo(Gt){return Nt(ye.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Gt+4).toString()+" H3"})}function bo(Gt){var pn="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Gt===0?pn="M0 0 M16 16 M0 8 L16 8":Gt===2&&(pn="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Nt(ye.bn,{geometryString:pn,margin:2,background:"transparent",mouseEnter:(Rn,vn)=>vn.background="dodgerblue",mouseLeave:(Rn,vn)=>vn.background="transparent",click:oa("dir",Gt),contextClick:oa("dir",Gt)})}function Ro(Gt){var pn=(Rn,vn)=>{Rn.handled=!0,Rn.diagram.model.commit(da=>{var sa=vn.part.adornedPart;da.set(sa.data,Gt?"toSpot":"fromSpot",ye.z6.stringify(ye.z6.AllSides)),(Gt?sa.toNode:sa.fromNode).invalidateConnectedLinks()})};return Nt(ye.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Rn,vn)=>vn.background="dodgerblue",mouseLeave:(Rn,vn)=>vn.background="transparent",click:pn,contextClick:pn})}function Bt(Gt,pn){var Rn=0,vn=ye.z6.RightSide;Gt.equals(ye.z6.Top)?(Rn=270,vn=ye.z6.TopSide):Gt.equals(ye.z6.Left)?(Rn=180,vn=ye.z6.LeftSide):Gt.equals(ye.z6.Bottom)&&(Rn=90,vn=ye.z6.BottomSide),pn||(Rn-=180);var da=(sa,ka)=>{sa.handled=!0,sa.diagram.model.commit(Wa=>{var no=ka.part.adornedPart;Wa.set(no.data,pn?"toSpot":"fromSpot",ye.z6.stringify(vn)),(pn?no.toNode:no.fromNode).invalidateConnectedLinks()})};return Nt(ye.bn,{alignment:Gt,alignmentFocus:Gt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Rn,background:"transparent",mouseEnter:(sa,ka)=>ka.background="dodgerblue",mouseLeave:(sa,ka)=>ka.background="transparent",click:da,contextClick:da})}je.current.linkTemplate.contextMenu=Nt("ContextMenu",Da(),Ya(),Nt("ContextMenuButton",Nt(ye.s_,"Horizontal",bo(0),bo(1),bo(2))),Nt("ContextMenuButton",Nt(ye.s_,"Horizontal",Nt(ye.s_,"Spot",Ro(!1),Bt(ye.z6.Top,!1),Bt(ye.z6.Left,!1),Bt(ye.z6.Right,!1),Bt(ye.z6.Bottom,!1)),Nt(ye.s_,"Spot",{margin:new ye.Zt(0,0,0,2)},Ro(!0),Bt(ye.z6.Top,!0),Bt(ye.z6.Left,!0),Bt(ye.z6.Right,!0),Bt(ye.z6.Bottom,!0)))));const qo=`{ "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 Bo=["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 To(Gt){return console.log("shapeName:",Gt),Bo.indexOf(Gt)>=0}var ro=new ye.YI(mn.current,{maxSelectionCount:1,linkTemplate:Nt(ye.rU,{locationSpot:ye.z6.Center,selectionAdornmentTemplate:Nt(ye.uz,"Link",{locationSpot:ye.z6.Center},Nt(ye.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Nt(ye.bn,{toArrow:"Standard",stroke:null}))},{routing:ye.rU.AvoidsNodes,curve:ye.rU.JumpOver,corner:5,toShortLength:4},new ye.KX("points"),Nt(ye.bn,{isPanelMain:!0,strokeWidth:2}),Nt(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(Gt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Gt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return je.current.addDiagramListener("TextEdited",function(Gt){var pn;const Rn=Gt.subject.part;var vn=(pn=document.activeElement)==null?void 0:pn.value;typeof vn=="string"&&vn.trim()===""&&je.current.model.commit(function(da){da.set(Rn.data,"text","\u672A\u547D\u540D"),je.current.commandHandler.stopCommand()},"increment")}),ro.nodeTemplate=Nt(ye.NB,"Auto",{locationSpot:ye.z6.Center},new ye.KX("location","location",ye.E9.parse).makeTwoWay(ye.E9.stringify),Nt(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")),Nt(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(()=>{je.current.grid=Nt(ye.s_,"Grid",Nt(ye.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Nt(ye.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),je.current.grid.visible=!0,je.current.grid.gridCellStroke="darkgray",je.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=je.current,je.current}const Ba=()=>me(this,null,function*(){var Nt=je.current.makeImage();const Tn=yield(0,Te.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Nt.src}});We({src:Tn.url})});return(0,ie.useEffect)(()=>(setTimeout(()=>{_n()},500),sn(In+1),()=>{je.current=null}),[]),Fe.createElement("div",{ref:Yn,className:an.current?`${$e.maxH60} body-overflow-initial`:"body-overflow-initial"},Fe.createElement(_e.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!In,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 Nt,Tn,va=je.current.selection.first();if(an.current=!an.current,document.activeElement&&va){let ea=(Tn=(Nt=document.activeElement)==null?void 0:Nt.value)==null?void 0:Tn.trim();typeof ea=="string"&&je.current.model.commit(function(oa){oa.set(va.data,"text",ea||"\u672A\u547D\u540D"),je.current.commandHandler.stopCommand()},"increment")}sn(In+1)}},Fe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ke},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:mn})),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=Ve,pe=ne(5112),ue=ne(5871);const Ze=pe.ZP.Group,Ne={margin:"0 8px"};var Pe=({callback:ke,onCancel:We})=>{function je(zt){ke(zt)}return ie.createElement(Se.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:je},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:We},"\u53D6\u6D88")))},Ge=ne(49770),Lt=ne(11081),mt=ne.n(Lt),lt=(0,ie.forwardRef)(({use3d:ke,width:We,height:je,callback:zt,showSaveButton:mn},an)=>{const Yn=(0,ie.useRef)(),In=(0,ie.useRef)(),[sn,_n]=(0,ie.useState)(!1),Ba=(0,ie.useRef)({id:Yn,appName:"graphing",width:We||1e3,height:je||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)(()=>{In.current=new(mt())(Ba.current,!0),window.onload=function(){In.current.inject("applet_container")}},[]);const Nt=()=>{var Tn=window.ggbApplet.getPNGBase64(1,!0,72);return zt&&zt(Tn),Tn};return(0,ie.useEffect)(()=>{Ba.current.appName=sn?"3D":"graphing",In.current.inject("applet_container")},[sn]),(0,ie.useEffect)(()=>{_n(ke)},[ke]),(0,ie.useImperativeHandle)(an,()=>({getImgData:Nt})),ie.createElement(ie.Fragment,null,ie.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Yn}),ie.createElement(ct.Z,{align:"middle"},ie.createElement(Xt.Z,{flex:1},ie.createElement(Ge.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:sn,onChange:Tn=>_n(Tn)})),ie.createElement(Xt.Z,null,ie.createElement(he.ZP,{size:"large",onClick:Nt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),yt=ne(88615),ot=ne(1012),Zt=ne(8591);const Mt="link",$t="upload-image",Jt="add-flowchart",Yt="draw-image",xn="add-flowchart",on="code-block",Bn="add-table",Kn="------------",jn={default:Kn,left:`:${Kn}`,center:`:${Kn}:`,right:`${Kn}:`};var ht=ne(17904),ut=(ke,We,je)=>new Promise((zt,mn)=>{var an=sn=>{try{In(je.next(sn))}catch(_n){mn(_n)}},Yn=sn=>{try{In(je.throw(sn))}catch(_n){mn(_n)}},In=sn=>sn.done?zt(sn.value):Promise.resolve(sn.value).then(an,Yn);In((je=je.apply(ke,We)).next())});function gt(){}let Ct=0;const yn=1e4,Mn="\u2581",nn="@\u2581\u2581@",Fn="@\u2581@",wn=`
|
|
**\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`,Gn=["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 la(ke){return/^\d+$/.test(ke)?`${ke}px`:ke}const Zn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",ba={[Zn+"-B"]:"bold",[Zn+"-I"]:"italic"},xa={[Mt]:"\u6DFB\u52A0\u94FE\u63A5",[on]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[$t]:"\u6DFB\u52A0\u56FE\u7247",[Yt]:"\u6DFB\u52A0\u753B\u56FE",[Jt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Bn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var ja=({defaultValue:ke="",onChange:We,width:je="100%",height:zt=400,miniToolbar:mn=!1,isFocus:an=!1,watch:Yn,insertTemp:In,mode:sn="markdown",id:_n="markdown-editor-id",showResizeBar:Ba=!1,noStorage:Nt=!1,showNullButton:Tn=!1,showNullProgramButton:va=!1,hidetoolBar:ea=!1,fullScreen:oa=!1,onBlur:ta,onCMBeforeChange:Aa,onFullScreen:Da,className:_a="",disablePaste:oo=!1,disabled:Ya=!1,disabledFill:Ca=!1,placeholder:yo="",values:bo="",extraUse:Ro})=>{const[Bt,qo]=(0,ie.useState)(null),[Bo,To]=(0,ie.useState)(ke),[ro,Gt]=(0,ie.useState)(Yn),[pn,Rn]=(0,ie.useState)(oa),[vn,da]=(0,ie.useState)(""),[sa,ka]=(0,ie.useState)(0),[Wa,no]=(0,ie.useState)(zt),[Wo,Fo]=(0,ie.useState)(!1),Sr=(0,ie.useRef)((0,ot.Z)()),pr=(0,ie.useRef)(!1),er=(0,ie.useRef)(),[tr,nr]=(0,ie.useState)(0),[Uo,ar]=(0,ie.useState)(0),xo=(0,ie.useRef)(),Ao=(0,ie.useRef)(),ko=(0,ie.useRef)(),Go=(0,ie.useRef)(),vr=()=>ut(void 0,null,function*(){var fn;const Wt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Sr.current}});(fn=Wt==null?void 0:Wt.attachments)!=null&&fn.length&&(console.log("cm:",Bt,xo),Wt.attachments.map(en=>{en.content_type.indexOf("image")>-1?Bt.replaceSelection(``):en.content_type.indexOf("video")>-1?Bt.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):en.content_type.indexOf("pdf")>-1?Bt.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${en.id}?type=${en.content_type}&disposition=inline" target="_blank">${en.name}</a>`):Bt.replaceSelection(`[${en.name}](${ENV.API_SERVER}/api/attachments/${en.id}?type=${en.content_type})`)}))});(0,ie.useEffect)(()=>{const fn=window.scrollY||window.pageYOffset;To(bo),Bt==null||Bt.setValue(bo),window.scrollTo(0,fn)},[bo]),(0,ie.useEffect)(()=>{Da==null||Da(pn)},[pn]),(0,ie.useEffect)(()=>{if(xo.current){let fn=function(en,dn){var Vn;if(oo){dn.preventDefault();return}const ca=dn.clipboardData;if(ca){const Ia=ca.types.toString(),Ta=ca.items;if(Ia==="Files"||ca.types.indexOf("Files")>-1){if(dn.preventDefault(),sn=="stex")return;try{let za=Ta[1];((Vn=Ta[0])==null?void 0:Vn.kind)==="file"&&(za=Ta[0]);const Ma=za.getAsFile(),mo=Ma.name.split(".").pop();(0,Oe.I)(Ma,Ua=>{var Ko,Zo,Ho;Ua.id?((Ko=Ma==null?void 0:Ma.type)==null?void 0:Ko.indexOf("image"))>-1?Wt.replaceSelection(`<img width="100%" src="/api/attachments/${Ua.id}?type=${Ua.content_type})" alt="" />`):((Zo=Ma==null?void 0:Ma.type)==null?void 0:Zo.indexOf("video"))>-1?Wt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Ua.id}"></video>`):((Ho=Ma==null?void 0:Ma.type)==null?void 0:Ho.indexOf("pdf"))>-1?Wt.replaceSelection(`<a href="/api/attachments/${Ua.id}?type=${Ma.type}&disposition=inline" target="_blank">${Ma.name}</a>`):Gn.includes(mo)?Wt.replaceSelection(`<a href="/api/attachments/${Ua.id}?type=office&disposition=inline" target="_blank">${Ma.name}</a>`):Wt.replaceSelection(`[${Ma.name}](/api/attachments/${Ua.id}?type=${Ua.content_type})`):(Ua==null?void 0:Ua.status)===401&&(Zt.ZP.warning((Ua==null?void 0:Ua.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(za){Zt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Wt=De().fromTextArea(xo.current,{mode:sn,lineNumbers:!mn,lineWrapping:!0,value:ke,autoCloseTags:!va,autoCloseBrackets:!0});return Wt.on("keyup",function(en,dn){dn.keyCode===8&&(en.getValue()==""?Wt.setOption("placeholder",yo):Wt.setOption("placeholder",null))}),Wt.on("keydown",function(en,dn){if(dn.keyCode===8){var Vn=Ur(en);Vn&&dn.preventDefault()}}),an&&Wt.focus(),Wt.on("paste",fn),Wt.on("dragleave",function(en,dn){Ao.current.classList.remove("mouse-hover-md")}),Ya&&Wt.on("beforeChange",function(en,dn){(dn.origin==="paste"||dn.origin==="+input")&&dn.cancel()}),qo(Wt),()=>{Wt.off("paste",fn)}}},[]);const Vo=(0,ie.useCallback)(()=>{if(Ao.current)try{}catch(fn){console.log(fn,"---- to set md editor body height")}},[Wa,Ao,pn]);(0,ie.useEffect)(()=>{function fn(){let Wt=new Ue.Z(en=>{for(let dn of en)(dn.target.offsetHeight>0||dn.target.offsetWidth>0)&&(Vo(),Bt.setSize("100%","100%"),Bt.refresh())});return Wt.observe(xo.current.parentElement),Wt}if(Bt){const Wt=fn();return()=>{var en,dn;(en=xo.current)!=null&&en.parentElement&&Wt.unobserve((dn=xo.current)==null?void 0:dn.parentElement)}}},[Bt,Vo]),(0,ie.useEffect)(()=>{if(Bt){let fn=[];for(const[Wt,en]of Object.entries(ba)){let dn={[Wt]:()=>{Pr(en)}};fn.push(dn),Bt.addKeyMap(dn)}return er.current=setInterval(()=>{pr.current&&vr()},4e3),()=>{clearInterval(er.current);for(let Wt of fn)Bt.removeKeyMap(Wt)}}},[Bt]),(0,ie.useEffect)(()=>{oa!==pn&&Rn(oa)},[oa]),(0,ht.Z)(()=>{if(!Nt&&sa>0){let fn=new Date().getTime(),Wt=window.sessionStorage.getItem(_n);fn>=sa+yn&&(!Wt||Wt!==Bo)&&(window.sessionStorage.setItem(_n,Bo),Fo(!0))}},yn),(0,ie.useEffect)(()=>{Gt(Yn)},[Bt,Yn]),(0,ie.useEffect)(()=>{Bt&&an&&Bt.focus()},[Bt,an]),(0,ie.useEffect)(()=>{if(ro&&Bt){let fn=function(en){let dn=en.target;if(Go.current){let Vn=dn.scrollTop/dn.scrollHeight;Go.current.scrollTop=Go.current.scrollHeight*Vn}};const Wt=Bt.getScrollerElement();return Wt.addEventListener("scroll",fn),()=>{Wt.removeEventListener("scroll",fn)}}},[Bt,ro]),(0,ie.useEffect)(()=>{if(Bt&&Aa){let fn=function(Wt,en){Aa(Wt,en)};return Bt.on("beforeChange",fn),()=>{Bt.off("beforeChange",fn)}}},[Bt,Aa]),(0,ie.useEffect)(()=>{if(Bt&&ta){let fn=function(){ta(Bt.getValue())};return Bt.on("blur",fn),()=>{Bt.off("blur",fn)}}},[Bt,ta]);function Ur(fn,Wt){var en=fn.getDoc(),dn=en.getCursor(),Vn=en.getLine(dn.line),ca=Vn.charAt(dn.ch-1),Ia=Vn.lastIndexOf("@\u2581@",dn.ch),Ta=Vn.lastIndexOf("@\u2581\u2581@",dn.ch),za=Ia>Ta?Ia:Ta,Ma=Ia>Ta?3:4;if(nn.indexOf(ca)===-1)return null;if(console.log("change1:",Wt,fn,Vn,dn,za,Ia,Ta,ca),za>=0&&dn.ch-za<5){var mo=za+Ma;return en.replaceRange("",{line:dn.line,ch:za},{line:dn.line,ch:mo}),{line:dn.line,ch:mo}}return null}(0,ie.useEffect)(()=>{if(Bt){let fn=function(Wt,en){const dn=Wt.getValue();To(dn),ka(new Date().getTime()),Wt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),We&&(va?We(dn,wr(dn)):We(dn))};return Bt.on("change",fn),()=>{Bt.off("change",fn)}}},[Bt,We]),(0,ie.useEffect)(()=>{if(Bt)if(ke==null)Bt.setValue(""),To("");else{const fn=window.scrollY||window.pageYOffset;ke!==Bt.getValue()&&(Bt.setValue(ke),To(ke),Bt.setCursor(Ya?1:Bt.lineCount(),0),window.scrollTo(0,fn))}},[Bt,ke]);const Pr=(0,ie.useCallback)(fn=>{const Wt=Bt.getCursor(),en=Bt.getSelection();let dn=en.split(`
|
|
`);switch(fn){case"bold":return Bt.replaceSelection("**"+en+"**"),en===""&&Bt.setCursor(Wt.line,Wt.ch+2),Bt.focus();case"italic":return Bt.replaceSelection("*"+en+"*"),en===""&&Bt.setCursor(Wt.line,Wt.ch+1),Bt.focus();case"code":return Bt.replaceSelection("`"+en+"`"),en===""&&Bt.setCursor(Wt.line,Wt.ch+1),Bt.focus();case"inline-latex":return da("inline-latex"),Bt.focus();case"latex":return Bt.replaceSelection("```latex\n"+en+"\n```"),Bt.setCursor(Wt.line+1,en.length+1),Bt.focus();case"line-break":return Bt.replaceSelection(`<br/>
|
|
`),Bt.focus();case"list-ul":return en===""?Bt.replaceSelection("- "+en):Bt.replaceSelection(dn.map(Vn=>Vn===""?"":`- ${Vn}`).join(`
|
|
`)),Bt.focus();case"list-ol":return en===""?Bt.replaceSelection("1. "+en):Bt.replaceSelection(dn.map((Vn,ca)=>Vn===""?"":`${ca+1}. ${Vn}`).join(`
|
|
`)),Bt.focus();case"add-null-ch":return en===""&&Bt.setCursor(Wt.line,Wt.ch),Bt.replaceSelection(Mn),Bt.focus();case"add-signal":return en===""&&Bt.setCursor(Wt.line,Wt.ch),Bt.replaceSelection(Fn),Bt.focus();case"add-multiple":return en===""&&Bt.setCursor(Wt.line,Wt.ch),Bt.replaceSelection(nn),Bt.focus();case"inster-template-1":return en===""&&Bt.setCursor(Wt.line,Wt.ch),Bt.replaceSelection(wn),Bt.focus();case"eraser":return Bt.setValue(""),Bt.focus();case"trigger-watch":return Gt(!ro),Bt.focus();case"trigger-full-screen":return Rn(!pn),Bt.focus();case Mt:da(Mt);return;case on:da(on);return;case $t:da($t);return;case Yt:da(Yt);return;case"maths-latex":da("maths-latex");return;case Jt:da(Jt);return;case Bn:da(Bn);return;default:throw new Error}},[Bt,ro,pn]),uo=(0,ie.useCallback)((fn,Wt)=>{var en,dn,Vn,ca,Ia,Ta;switch(da(""),vn){case Mt:const{title:Ko,link:Zo}=fn;return Bt.replaceSelection(`[${Ko}](${Zo})`),Bt.focus();case on:const{language:Ho,content:Fr}=fn;return Bt.replaceSelection(["```"+Ho,Fr,"```"].join(`
|
|
`)),Bt.focus();case"maths-latex":for(var za=atob(fn),Ma=new Uint8Array(za.length),mo=0;mo<za.length;mo++)Ma[mo]=za.charCodeAt(mo);var Ua=new Blob([Ma],{type:"image/png"});(0,Oe.I)(Ua,io=>{io.id?Bt.replaceSelection(``):(io==null?void 0:io.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Bt.replaceSelection("`$$"+fn+"$$`");break;case $t:case Yt:case xn:const{src:Co,alt:Do}=fn,Fa=Wt,or=(Vn=(dn=(en=Fa==null?void 0:Fa.name)==null?void 0:en.split("."))==null?void 0:dn.pop)==null?void 0:Vn.call(dn);return((ca=Fa==null?void 0:Fa.type)==null?void 0:ca.indexOf("image"))>-1||!(Fa!=null&&Fa.type)?Fa.align||Fa.width?Bt.replaceSelection(`<p style="text-align:${Fa.align||"initial"}"><img width="${Fa.width?Fa.width+"%":"initial"}" src="${Co}" alt="${Do||""}" /></p>`):Bt.replaceSelection(`<img width="100%" src="${Co}" alt="${Do||""}" />`):((Ia=Fa==null?void 0:Fa.type)==null?void 0:Ia.indexOf("video"))>-1?Bt.replaceSelection(`<video width="100%" controls src="${Co}"></video>`):((Ta=Fa==null?void 0:Fa.type)==null?void 0:Ta.indexOf("pdf"))>-1?Bt.replaceSelection(`<a href="${Co}?type=${Fa.type}&disposition=inline" target="_blank">${Fa.name}</a>`):Gn.includes(or)?Bt.replaceSelection(`<a href="${Co}?type=office&disposition=inline" target="_blank">${Fa.name}</a>`):Bt.replaceSelection(`[${Fa.name}](${Co})`),Bt.focus();case Bn:const{row:Nr,col:rr,align:ir}=fn;let Xo=`
|
|
`;for(let io=0;io<Nr;io++){let lr=[],gr=[];for(let Yo=0;Yo<rr;Yo++)io===1&&gr.push(jn[ir]),lr.push(" ");io===1&&(Xo+=`| ${gr.join(" | ")} |
|
|
`),Xo+=`| ${lr.join(rr===1?"":" | ")} |
|
|
`}return Bt.replaceSelection(Xo+`
|
|
`),Bt.focus();default:throw new Error}},[Bt,vn]),yr=(0,ie.useMemo)(()=>{switch(vn){case Mt:return ie.createElement(Ft,{callback:uo,onCancel:So});case on:return ie.createElement(Dt.Z,{callback:uo,onCancel:So});case $t:return ie.createElement(Oe.Z,{callback:uo,onCancel:So});case Jt:return ie.createElement(vt,{callback:uo,onCancel:So});case Bn:return ie.createElement(Pe,{callback:uo,onCancel:So});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}},[vn]);function So(){da("")}(0,ie.useEffect)(()=>{if(ko.current){let fn=function(Ia){Vn=!0,ca=Ia.pageY},Wt=function(){Vn=!1},en=function(Ia){if(Vn){let Ta=Ia.pageY-ca;Ta<0&&(Ta=0),Ta>300&&(Ta=300);let za=zt+Ta+"px";no(za)}},dn=ko.current,Vn=!1,ca=0;return dn.addEventListener("mousedown",fn),document.addEventListener("mousemove",en),document.addEventListener("mouseup",Wt),()=>{dn.removeEventListener("mousedown",fn),document.removeEventListener("mousemove",en),document.removeEventListener("mouseup",Wt)}}},[Bt,ko]),(0,ie.useEffect)(()=>{no(zt)},[zt]);const br=la(je),xr=la(Wa),Cr={width:br,height:xr},Lr=(0,ie.useMemo)(()=>{if(sa){let fn=new Date(sa),Wt=fn.getHours(),en=fn.getMinutes(),dn=fn.getSeconds();return Wt=Wt<10?"0"+Wt:Wt,en=en<10?"0"+en:en,dn=dn<10?"0"+dn:dn,`${Wt}:${en}:${dn}`}return 0},[sa]),wr=fn=>{const Wt=[];if(va){let en=-1;fn=fn.replace(/(@▁▁@|@▁@)/g,function(dn,Vn,ca){Wt.push({multiLine:dn!==Fn})})}return Wt};function Vr(){window.sessionStorage.removeItem(_n),Fo(!1),ka(0)}function Xr(){Fo(!1),ka(0),Bt.setValue(window.sessionStorage.getItem(_n))}(0,ie.useEffect)(()=>{xa[vn]&&vn!==Yt&&vn!==Jt&&setTimeout(()=>{const fn=document.getElementsByClassName("markdown-popup-form")[0],Wt=window.innerWidth/2-fn.offsetWidth/2,en=window.innerHeight/2-fn.offsetHeight/2;nr(Wt),ar(en)},0)},[vn]);const Er=fn=>{fn.preventDefault();const Wt=fn.clientX-tr,en=fn.clientY-Uo;document.body.onmousemove=dn=>{let Vn=dn.clientX-Wt,ca=dn.clientY-en;const Ia=document.getElementsByClassName("markdown-popup-form")[0],Ta=window.innerWidth-Ia.offsetWidth,za=window.innerHeight-Ia.offsetHeight;Vn=Math.max(0,Math.min(Vn,Ta)),ca=Math.max(0,Math.min(ca,za)),Br(dn.clientX,dn.clientY,Wt,en)&&(nr(Vn),ar(ca))},document.body.onmouseup=function(){document.body.onmousemove=null}},Br=(fn,Wt,en,dn)=>{const Vn=document.body.clientHeight,ca=document.body.clientWidth;return fn<20&&en>fn||fn>ca-20&&en<fn||Wt<20&&dn>Wt||Wt>Vn-20&&dn<Wt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ie.createElement(ie.Fragment,null,ie.createElement("div",{className:"markdown-editor-wrapper",ref:Ao},ie.createElement("div",{className:`markdown-editor-container ${_a} ${ro?"on-preview":""} ${mn?"mini":""} ${pn?"full-screen":""}`,style:Cr},ie.createElement(se,{insertTemp:In,watch:ro,fullScreen:pn,showNullButton:Tn,showNullProgramButton:va,onActionCallback:Pr,hidetoolBar:ea,extraUse:Ro}),ie.createElement("div",{className:"markdown-editor-body"},ie.createElement("div",{className:"codemirror-container"},ie.createElement("textarea",{ref:xo,placeholder:yo})),ro?ie.createElement("div",{ref:Go,className:"preview-container"},sn==="stex"&&ie.createElement(et,{value:Bo}),sn!=="stex"&&ie.createElement(Re.Z,{disabledFill:Ca,showProgramFill:va,value:Bo})):null))),Ba?ie.createElement("a",{ref:ko,className:"editor-resize"}):null,vn===Yt&&ie.createElement(Ot,{callback:uo,onCancel:So}),vn===Jt&&ie.createElement(vt,{callback:uo,onCancel:So}),ie.createElement(be.Z,null,xa[vn]&&vn!==Yt&&vn!==Jt?ie.createElement(_e.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:tr,top:Uo},title:ie.createElement("div",{style:{cursor:"move"},onMouseDown:Er},xa[vn]),open:!0,onCancel:So,footer:null,destroyOnClose:!0,width:vn===Jt?"1200px":null,height:vn===Jt?"80vh":null,className:"markdown-popup-form"},yr):null))}},45596:function(qe,st,ne){"use strict";ne.d(st,{Z:function(){return de},I:function(){return be}});var ie=ne(78241),ce=ne(8591),De=ne(92832),Ue=ne(81327),we=ne(5871),Be=ne(5112),ae=ne(3113),Je=ne(67303),Xe=ne(59301),He=ne(34055),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,Xe.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(Ue.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)}},75790:function(qe,st,ne){"use strict";ne.d(st,{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)}}},17904:function(qe,st,ne){"use strict";ne.d(st,{Z:function(){return ce}});var ie=ne(59301);function ce(De,Ue){const we=(0,ie.useRef)();(0,ie.useEffect)(()=>{we.current=De}),(0,ie.useEffect)(()=>{function Be(){we.current()}if(Ue!==null){let ae=setInterval(Be,Ue);return()=>clearInterval(ae)}},[Ue])}},25585:function(qe,st,ne){"use strict";ne.r(st),ne.d(st,{default:function(){return jn}});var ie=ne(59301),ce=ne(76560),De=ne(66104),Ue=ne(99313),we=ne(27812),Be=ne(49661),ae=ne(89389),Je=ne(90524),Xe=ne(7664),He=ne(43418),Re=ne(8591),et=Object.defineProperty,Ke=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,a=(ht,ut,gt)=>ut in ht?et(ht,ut,{enumerable:!0,configurable:!0,writable:!0,value:gt}):ht[ut]=gt,x=(ht,ut)=>{for(var gt in ut||(ut={}))oe.call(ut,gt)&&a(ht,gt,ut[gt]);if(Ke)for(var gt of Ke(ut))y.call(ut,gt)&&a(ht,gt,ut[gt]);return ht},b=(ht,ut,gt)=>new Promise((Ct,yn)=>{var Mn=wn=>{try{Fn(gt.next(wn))}catch(Gn){yn(Gn)}},nn=wn=>{try{Fn(gt.throw(wn))}catch(Gn){yn(Gn)}},Fn=wn=>wn.done?Ct(wn.value):Promise.resolve(wn.value).then(Mn,nn);Fn((gt=gt.apply(ht,ut)).next())});const E=({shixunHomeworks:ht,dispatch:ut})=>{const gt=(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(61186),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___XZOIk",flex_space_between:"flex_space_between___Yg4Dl",flex_box_vertical_center:"flex_box_vertical_center___uGbSz",flex_box_center_end:"flex_box_center_end___y3xze",flex_box_column:"flex_box_column___uiCa0",listItem:"listItem___ZZCkK",description:"description___WfCjN",liked:"liked___mHx4H",likedActive:"likedActive___zTpzg",reply:"reply___H7MjG",replyList:"replyList___Aweik",comment:"comment___ej0Vc"},_t=Object.defineProperty,Ce=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,at=(ht,ut,gt)=>ut in ht?_t(ht,ut,{enumerable:!0,configurable:!0,writable:!0,value:gt}):ht[ut]=gt,dt=(ht,ut)=>{for(var gt in ut||(ut={}))Ae.call(ut,gt)&&at(ht,gt,ut[gt]);if(Ce)for(var gt of Ce(ut))tt.call(ut,gt)&&at(ht,gt,ut[gt]);return ht},St=(ht,ut,gt)=>new Promise((Ct,yn)=>{var Mn=wn=>{try{Fn(gt.next(wn))}catch(Gn){yn(Gn)}},nn=wn=>{try{Fn(gt.throw(wn))}catch(Gn){yn(Gn)}},Fn=wn=>wn.done?Ct(wn.value):Promise.resolve(wn.value).then(Mn,nn);Fn((gt=gt.apply(ht,ut)).next())});te().locale("ZH-cn");const wt=({graduation:ht,classroomList:ut,globalSetting:gt,loading:Ct,dispatch:yn})=>{var Mn;const[nn,Fn]=(0,ie.useState)(dt({},(0,ce.useParams)())),[wn,Gn]=(0,ie.useState)(!1),[la,pa]=(0,ie.useState)(-1),[Zn,ba]=(0,ie.useState)(""),{detailLeftMenus:xa}=ut,{graduationDetail:ja,replyList:ke,detail:We,tasksDetail:je}=ht,zt={1:"\u8BBE\u8BA1",2:"\u8BBA\u6587",3:"\u521B\u4F5C"},mn={1:"\u751F\u4EA7/\u793E\u4F1A\u5B9E\u9645",2:"\u7ED3\u5408\u79D1\u7814",3:"\u5176\u5B83"},an={1:"\u771F\u9898",2:"\u6A21\u62DF\u9898"},Yn={1:"\u7EB5\u5411\u8BFE\u9898",2:"\u6A2A\u5411\u8BFE\u9898",3:"\u81EA\u9009"},In={1:"\u65B0\u9898",2:"\u5F80\u5C4A\u9898\uFF0C\u6709\u65B0\u8981\u6C42",3:"\u5F80\u5C4A\u9898\uFF0C\u65E0\u65B0\u8981\u6C42"};return nn.page_size=10,(0,ie.useEffect)(()=>{yn({type:"graduation/getReplyList",payload:dt({},nn)}),yn({type:"graduation/getTopisDetail",payload:dt({},nn)})},[nn.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},We.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,zt[We==null?void 0:We.topic_type]||"--")),ie.createElement("li",null,ie.createElement("span",{className:"c-light-black"},"\u8BFE\u9898\u6765\u6E90\uFF1A"),ie.createElement("span",null,mn[We==null?void 0:We.topic_source]||"--")),ie.createElement("li",null,ie.createElement("span",{className:"c-light-black"},"\u8BFE\u9898\u6027\u8D281\uFF1A"),ie.createElement("span",null,an[We==null?void 0:We.topic_property_first]||"--")),ie.createElement("li",null,ie.createElement("span",{className:"c-light-black"},"\u8BFE\u9898\u6027\u8D282\uFF1A"),ie.createElement("span",null,Yn[We==null?void 0:We.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,In[We==null?void 0:We.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,We.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,We.source_unit||"--")))),ie.createElement("div",{className:"pl30"},(Mn=je==null?void 0:je.attachments)==null?void 0:Mn.map((sn,_n)=>ie.createElement("div",null,ie.createElement("a",{href:`${Je.Z.API_SERVER}${sn.url}`},ie.createElement("span",{className:"iconfont icon-fujian c-green font14"}),ie.createElement("span",{className:"ml10 c-black"},sn.title),ie.createElement("span",{className:"c-light-black ml20 font12"},sn.filesize)))))),ie.createElement("aside",{className:[it.reply,"bg-white","mt20"].join(" ")},wn&&ie.createElement(ae.Z,{onChange:sn=>{ba(sn)},height:200,isFocus:!0,watch:!0}),ie.createElement(ge.Z,{onClick:()=>{Gn(!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*(){Zn===""?Re.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):(yield yn({type:"graduation/createReply",payload:{journals_for_message:{jour_id:nn.categoryId,jour_type:"HomeworkCommon",reply_id:1,notes:Zn}}})).status===0&&(Re.ZP.success("\u53D1\u5E03\u6210\u529F"),yn({type:"graduation/getReplyList",payload:dt({},nn)}),Gn(!1))})},"\u53D1\u8868")))),(ke==null?void 0:ke.comments)&&ke.comments!=""&&ie.createElement("aside",{className:[it.replyList,"bg-white"].join(" ")},ke==null?void 0:ke.comments.map(function(sn,_n){var Ba,Nt;return ie.createElement(ge.Z,{gutter:[12,12],key:_n},ie.createElement(de.Z,{flex:"40px"},ie.createElement("img",{width:"40",src:`${Je.Z.IMG_SERVER}/images/${(Ba=sn==null?void 0:sn.author)==null?void 0:Ba.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"},(Nt=sn==null?void 0:sn.author)==null?void 0:Nt.name),ie.createElement("span",{className:"c-light-black ml10"},te()(sn==null?void 0:sn.created_on).fromNow()," \u53D1\u5E03")),ie.createElement(de.Z,{span:24},ie.createElement(Xe.Z,{value:sn.content})),sn.children&&ie.createElement("aside",{className:it.comment},sn.children.map(function(Tn,va){return ie.createElement(ge.Z,{key:va},ie.createElement(de.Z,{span:24},ie.createElement(ge.Z,null,ie.createElement(de.Z,{flex:"1"},Tn.author.name,ie.createElement("span",{className:"c-light-black ml10"},te()(Tn==null?void 0:Tn.created_on).fromNow())),ie.createElement(de.Z,null,ie.createElement(Se.Z,{title:"\u5220\u9664"},ie.createElement(he.Z,{className:"current",onClick:()=>{yn({type:"graduation/setActionTabs",payload:{key:"\u5220\u9664",params:nn,selectArr:sn}})}}))))),ie.createElement(de.Z,null,ie.createElement("strong",null,ie.createElement(Xe.Z,{value:Tn.content}))))})),ie.createElement(de.Z,{span:24,className:"mt5 c-light-black"},la===_n&&ie.createElement("aside",null,ie.createElement(ae.Z,{onChange:Tn=>{ba(Tn)},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*(){Zn===""?Re.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):(yield yn({type:"graduation/createReply",payload:{journals_for_message:{jour_id:nn.categoryId,jour_type:"HomeworkCommon",m_parent_id:sn.id,reply_id:1,notes:Zn}}}),yn({type:"graduation/getReplyList",payload:dt({},nn)}),Re.ZP.success("\u53D1\u5E03\u6210\u529F"),pa(-1))})},"\u53D1\u8868")))),la!==_n&&ie.createElement("div",{className:"tr"},ie.createElement("span",{className:"iconfont icon-huifu1 mr5 ml30",onClick:()=>pa(_n)}),sn.liked&&ie.createElement("span",{className:"c-orange"},ie.createElement(ft.Z,{className:"mr5 ml30",onClick:()=>St(this,null,function*(){yield yn({type:"graduation/replyUnLike",payload:{object_id:sn.id,object_type:"message"}}),yn({type:"graduation/getReplyList",payload:dt({},nn)})})}),sn.praises_count),!sn.liked&&ie.createElement("span",null,ie.createElement(ft.Z,{className:"mr5 ml30",onClick:()=>St(this,null,function*(){yield yn({type:"graduation/replyLike",payload:{object_id:sn.id,object_type:"message"}}),yn({type:"graduation/getReplyList",payload:dt({},nn)})})}),sn.praises_count))))))}))),ie.createElement("aside",{className:"tc mt30 pb30"},ie.createElement(Ee.Z,{defaultCurrent:1,total:ke==null?void 0:ke.total_count,hideOnSinglePage:!0,current:nn.page||1,onChange:sn=>{nn.page=sn,yn({type:"graduation/getReplyList",payload:dt({},nn)})}})),ie.createElement(z,null))};var Ft=(0,ce.connect)(({graduation:ht,classroomList:ut,loading:gt,globalSetting:Ct})=>({graduation:ht,globalSetting:Ct,classroomList:ut,loading:gt.effects}))(wt),Dt=ne(78241),Oe=ne(1710),_e=Object.defineProperty,ct=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,Ot=(ht,ut,gt)=>ut in ht?_e(ht,ut,{enumerable:!0,configurable:!0,writable:!0,value:gt}):ht[ut]=gt,ye=(ht,ut)=>{for(var gt in ut||(ut={}))kt.call(ut,gt)&&Ot(ht,gt,ut[gt]);if(ct)for(var gt of ct(ut))nt.call(ut,gt)&&Ot(ht,gt,ut[gt]);return ht},Et=(ht,ut)=>{var gt={};for(var Ct in ht)kt.call(ht,Ct)&&ut.indexOf(Ct)<0&&(gt[Ct]=ht[Ct]);if(ht!=null&&ct)for(var Ct of ct(ht))ut.indexOf(Ct)<0&&nt.call(ht,Ct)&&(gt[Ct]=ht[Ct]);return gt},Ht=(ht,ut,gt)=>new Promise((Ct,yn)=>{var Mn=wn=>{try{Fn(gt.next(wn))}catch(Gn){yn(Gn)}},nn=wn=>{try{Fn(gt.throw(wn))}catch(Gn){yn(Gn)}},Fn=wn=>wn.done?Ct(wn.value):Promise.resolve(wn.value).then(Mn,nn);Fn((gt=gt.apply(ht,ut)).next())});const un=ht=>{var ut=ht,{graduation:gt,dispatch:Ct}=ut,yn=Et(ut,["graduation","dispatch"]);const Mn=(0,ce.useParams)();return ie.createElement(He.default,{centered:!0,title:"\u63D0\u793A",open:gt.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:gt.actionTabs.selectArrs.id},Mn)})).status===0&&(Re.ZP.success("\u62D2\u7EDD\u6210\u529F"),Ct({type:"graduation/setActionTabs",payload:{}}),Ct({type:"graduation/getTopisDetailList",payload:ye({},gt.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}))(un),Te=ne(57809),$e=Object.defineProperty,Fe=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,vt=(ht,ut,gt)=>ut in ht?$e(ht,ut,{enumerable:!0,configurable:!0,writable:!0,value:gt}):ht[ut]=gt,pe=(ht,ut)=>{for(var gt in ut||(ut={}))me.call(ut,gt)&&vt(ht,gt,ut[gt]);if(Fe)for(var gt of Fe(ut))Ve.call(ut,gt)&&vt(ht,gt,ut[gt]);return ht},ue=(ht,ut)=>{var gt={};for(var Ct in ht)me.call(ht,Ct)&&ut.indexOf(Ct)<0&&(gt[Ct]=ht[Ct]);if(ht!=null&&Fe)for(var Ct of Fe(ht))ut.indexOf(Ct)<0&&Ve.call(ht,Ct)&&(gt[Ct]=ht[Ct]);return gt},Ze=(ht,ut,gt)=>new Promise((Ct,yn)=>{var Mn=wn=>{try{Fn(gt.next(wn))}catch(Gn){yn(Gn)}},nn=wn=>{try{Fn(gt.throw(wn))}catch(Gn){yn(Gn)}},Fn=wn=>wn.done?Ct(wn.value):Promise.resolve(wn.value).then(Mn,nn);Fn((gt=gt.apply(ht,ut)).next())});const Ne=ht=>{var ut=ht,{graduation:gt,dispatch:Ct}=ut,yn=ue(ut,["graduation","dispatch"]),Mn;const nn=(0,ce.useParams)(),{detailList:Fn}=gt,[wn]=Dt.default.useForm();return ie.createElement(He.default,{centered:!0,title:"\u540C\u610F\u9009\u9898",open:gt.actionTabs.key==="\u540C\u610F",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Ze(void 0,null,function*(){var Gn;yield wn.validateFields();const la=wn.getFieldsValue();(yield Ct({type:"graduation/agreeTopic",payload:pe({group_id:la.group_id,course_group_name:(Gn=Fn==null?void 0:Fn.group_list)==null?void 0:Gn.filter(Zn=>Zn.group_id==la.group_id)[0].group_name,student_graduation_topic:gt.actionTabs.selectArrs.id},nn)})).status===0&&(Re.ZP.success("\u540C\u610F\u6210\u529F"),Ct({type:"graduation/setActionTabs",payload:{}}),Ct({type:"graduation/getTopisDetailList",payload:pe({},gt.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(Dt.default,{form:wn},ie.createElement(Dt.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"},(Mn=Fn==null?void 0:Fn.group_list)==null?void 0:Mn.map(function(Gn,la){return ie.createElement(Te.default.Option,{value:Gn.group_id},Gn.group_name)})))))};var Pe=(0,ce.connect)(({graduation:ht})=>({graduation:ht}))(Ne),Ge=Object.defineProperty,Lt=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,lt=(ht,ut,gt)=>ut in ht?Ge(ht,ut,{enumerable:!0,configurable:!0,writable:!0,value:gt}):ht[ut]=gt,yt=(ht,ut)=>{for(var gt in ut||(ut={}))mt.call(ut,gt)&<(ht,gt,ut[gt]);if(Lt)for(var gt of Lt(ut))xt.call(ut,gt)&<(ht,gt,ut[gt]);return ht};const ot=({graduation:ht,loading:ut,dispatch:gt})=>{const[Ct,yn]=(0,ie.useState)(yt({},(0,ce.useParams)())),Mn=(0,ce.useLocation)(),{detailList:nn}=ht,[Fn,wn]=(0,ie.useState)({}),[Gn]=Dt.default.useForm(),la=(Zn,ba)=>{Ct.page=Zn,Ct.limit=20,gt({type:"graduation/getTopisDetailList",payload:yt({},Ct)})},pa=[{title:"\u5E8F\u53F7",dataIndex:"name",width:200,align:"center",render:(Zn,ba,xa)=>xa+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:Zn=>Zn==="\u5DF2\u62D2\u7EDD"?ie.createElement("span",{className:"c-orange"},"\u5DF2\u62D2\u7EDD"):Zn},{title:"\u64CD\u4F5C",dataInex:"action",render:(Zn,ba)=>ie.createElement("div",null,(ba.result==="\u5F85\u786E\u8BA4"||ba.result==="\u5DF2\u540C\u610F")&&ie.createElement("span",{className:"current",onClick:()=>{gt({type:"graduation/setActionTabs",payload:{key:"\u62D2\u7EDD",selectArrs:ba,params:Ct}})}},"\u62D2\u7EDD"),ba.result==="\u5F85\u786E\u8BA4"&&ie.createElement("span",{className:"current ml20 c-blue",onClick:()=>{gt({type:"graduation/setActionTabs",payload:{key:"\u540C\u610F",selectArrs:ba,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:nn.users_list,columns:pa}),ie.createElement(Xt,null),ie.createElement(Pe,null)),ie.createElement("aside",{className:"tc mb50 mt30"},ie.createElement(Ee.Z,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:la,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),Mt={flex_box_center:"flex_box_center___ZPOJ5",flex_space_between:"flex_space_between___GmCrk",flex_box_vertical_center:"flex_box_vertical_center___XpcAN",flex_box_center_end:"flex_box_center_end___krRXE",flex_box_column:"flex_box_column___DLzSN",title:"title___KDcLT",menuTabs:"menuTabs___nxQqE",rightMenu:"rightMenu___MVID9",shixunDetail:"shixunDetail___NvT9l"},$t=Object.defineProperty,Jt=Object.getOwnPropertySymbols,Yt=Object.prototype.hasOwnProperty,xn=Object.prototype.propertyIsEnumerable,on=(ht,ut,gt)=>ut in ht?$t(ht,ut,{enumerable:!0,configurable:!0,writable:!0,value:gt}):ht[ut]=gt,Bn=(ht,ut)=>{for(var gt in ut||(ut={}))Yt.call(ut,gt)&&on(ht,gt,ut[gt]);if(Jt)for(var gt of Jt(ut))xn.call(ut,gt)&&on(ht,gt,ut[gt]);return ht};const Kn=({graduation:ht,globalSetting:ut,loading:gt,dispatch:Ct})=>{const yn=(0,ce.useParams)(),[Mn]=(0,ce.useSearchParams)(),nn=(0,ce.useLocation)(),[Fn,wn]=(0,ie.useState)([]),[Gn,la]=(0,ie.useState)(Mn.get("tabs")||0),{detailTaskList:pa,tasksDetail:Zn}=ht;let ba;yn.category=Mn.get("category_id"),(0,ie.useEffect)(()=>{Ct({type:"graduation/getTasksDetail",payload:Bn({},yn)}),Ct({type:"graduation/getTasksListDetail",payload:Bn({},yn)})},[yn.coursesId]);const xa=[{name:"\u4EFB\u52A1\u5217\u8868",id:0,compontent:ie.createElement(Zt,null)},{name:"\u4EFB\u52A1\u63CF\u8FF0",id:1,compontent:ie.createElement(Ft,null)}];return ie.createElement("section",null,ie.createElement("div",{className:"edu-container"},pa.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/${pa.course_id}/shixun_homework`},pa.course_name)),ie.createElement(De.Z.Item,null,ie.createElement(ce.Link,{to:`/classrooms/${pa.course_id}/graduation_tasks`},"\u6BD5\u8BBE\u4EFB\u52A1")),ie.createElement(De.Z.Item,null,"\u4EFB\u52A1\u8BE6\u60C5"))),ie.createElement("aside",{className:[Mt.title,"mt20"].join(" ")},ie.createElement(ce.Link,{to:`/classrooms/${pa.course_id}/graduation_tasks`},ie.createElement(we.Z,{className:"font16 c-black"})),ie.createElement("strong",{className:"font20 ml5"},pa.task_name),ie.createElement(Be.VV,{status:[pa.status_name]}))),ie.createElement("aside",{className:"mt30 relative"},ie.createElement("aside",{className:Mt.rightMenu},ie.createElement(ce.Link,{className:Mt.shixunDetail,to:`/classrooms/${yn.coursesId}/graduation_tasks/${yn.categoryId}/edit`},ie.createElement("span",{className:"iconfont icon-shixunxiangqing"}),"\u7F16\u8F91\u4EFB\u52A1")),ie.createElement(Ue.default,{defaultActiveKey:Gn,className:Mt.menuTabs},xa.map((ja,ke)=>ie.createElement(Ue.default.TabPane,{tab:ja.name,key:ja.id},ja.compontent))))))};var jn=(0,ce.connect)(({graduation:ht,loading:ut,globalSetting:gt})=>({graduation:ht,globalSetting:gt,loading:ut.effects}))(Kn)},50371:function(qe,st){"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(Ue=>{const we=De[Ue];we!==void 0&&(ie[Ue]=we)})}return ie}st.Z=ne},13845:function(qe,st,ne){"use strict";ne.d(st,{F:function(){return ie},Z:function(){return ce}});function ie(De){return De!=null&&De===De.window}function ce(De,Ue){var we,Be;if(typeof window=="undefined")return 0;const ae=Ue?"scrollTop":"scrollLeft";let Je=0;return ie(De)?Je=De[Ue?"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,st,ne){"use strict";ne.d(st,{Z:function(){return ce}});var ie=ne(59301);function ce(){const[,De]=ie.useReducer(Ue=>Ue+1,0);return De}},68031:function(qe,st,ne){"use strict";ne.d(st,{Z:function(){return Ue}});var ie=ne(16089);function ce(we,Be,ae,Je){const Xe=ae-Be;return we/=Je/2,we<1?Xe/2*we*we*we+Be:Xe/2*((we-=2)*we*we+2)+Be}var De=ne(13845);function Ue(we){let Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ae=()=>window,callback:Je,duration:Xe=450}=Be,He=ae(),Re=(0,De.Z)(He,!0),et=Date.now(),Ke=()=>{const y=Date.now()-et,a=ce(y>Xe?Xe:y,Re,we,Xe);(0,De.F)(He)?He.scrollTo(window.pageXOffset,a):He instanceof Document||He.constructor.name==="HTMLDocument"?He.documentElement.scrollTop=a:He.scrollTop=a,y<Xe?(0,ie.Z)(Ke):typeof Je=="function"&&Je()};(0,ie.Z)(Ke)}},66104:function(qe,st,ne){"use strict";ne.d(st,{Z:function(){return _t}});var ie=ne(92310),ce=ne.n(ie),De=ne(11592),Ue=ne(26112),we=ne(59301),Be=ne(92343),ae=ne(36355),Je=ne(84105),Xe=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 dt=0,at=Object.getOwnPropertySymbols(Ce);dt<at.length;dt++)Ae.indexOf(at[dt])<0&&Object.prototype.propertyIsEnumerable.call(Ce,at[dt])&&(tt[at[dt]]=Ce[at[dt]]);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,dt)=>Ae[dt]||at)}function oe(Ce,Ae,tt,at){if(tt==null)return null;const{className:dt,onClick:St}=Ae,wt=et(Ae,["className","onClick"]),Ft=Object.assign(Object.assign({},(0,Ue.Z)(wt,{data:!0,aria:!0})),{onClick:St});return at!==void 0?we.createElement("a",Object.assign({},Ft,{className:ce()(`${Ce}-link`,dt),href:at}),tt):we.createElement("span",Object.assign({},Ft,{className:ce()(`${Ce}-link`,dt)}),tt)}function y(Ce,Ae){return(at,dt,St,wt,Ft)=>{if(Ae)return Ae(at,dt,St,wt);const Dt=Ke(at,dt);return oe(Ce,at,Dt,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 dt=0,at=Object.getOwnPropertySymbols(Ce);dt<at.length;dt++)Ae.indexOf(at[dt])<0&&Object.prototype.propertyIsEnumerable.call(Ce,at[dt])&&(tt[at[dt]]=Ce[at[dt]]);return tt};const x=Ce=>{const{prefixCls:Ae,separator:tt="/",children:at,menu:dt,overlay:St,dropdownProps:wt,href:Ft}=Ce,Oe=(_e=>{if(dt||St){const ct=Object.assign({},wt);if(dt){const kt=dt||{},{items:nt}=kt,Ot=a(kt,["items"]);ct.menu=Object.assign(Object.assign({},Ot),{items:nt==null?void 0:nt.map((ye,Et)=>{var{key:Ht,title:un,label:Xt,path:Te}=ye,$e=a(ye,["key","title","label","path"]);let Fe=Xt!=null?Xt:un;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(Xe.Z,Object.assign({placement:"bottom"},ct),we.createElement("span",{className:`${Ae}-overlay-link`},_e,we.createElement(Je.Z,null)))}return _e})(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,dt=a(Ce,["prefixCls","children","href"]),{getPrefixCls:St}=we.useContext(ae.E_),wt=St("breadcrumb",Ae);return we.createElement(x,Object.assign({},dt,{prefixCls:wt}),oe(wt,dt,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 dt=0,at=Object.getOwnPropertySymbols(Ce);dt<at.length;dt++)Ae.indexOf(at[dt])<0&&Object.prototype.propertyIsEnumerable.call(Ce,at[dt])&&(tt[at[dt]]=Ce[at[dt]]);return tt};function be(Ce){const{breadcrumbName:Ae,children:tt}=Ce,at=se(Ce,["breadcrumbName","children"]),dt=Object.assign({title:Ae},at);return tt&&(dt.menu={items:tt.map(St=>{var{breadcrumbName:wt}=St,Ft=se(St,["breadcrumbName"]);return Object.assign(Object.assign({},Ft),{title:wt})})}),dt}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 dt=0,at=Object.getOwnPropertySymbols(Ce);dt<at.length;dt++)Ae.indexOf(at[dt])<0&&Object.prototype.propertyIsEnumerable.call(Ce,at[dt])&&(tt[at[dt]]=Ce[at[dt]]);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:dt,rootClassName:St,routes:wt,items:Ft,children:Dt,itemRender:Oe,params:_e={}}=Ce,ct=Ee(Ce,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:kt,direction:nt,breadcrumb:Ot}=we.useContext(ae.E_);let ye;const Et=kt("breadcrumb",Ae),[Ht,un]=de(Et),Xt=Se(Ft,wt),Te=y(Et,Oe);if(Xt&&Xt.length>0){const me=[],Ve=Ft||wt;ye=Xt.map((vt,pe)=>{const{path:ue,key:Ze,type:Ne,menu:Pe,overlay:Ge,onClick:Lt,className:mt,separator:xt,dropdownProps:lt}=vt,yt=he(_e,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={},Mt=pe===Xt.length-1;Pe?Zt.menu=Pe:Ge&&(Zt.overlay=Ge);let{href:$t}=vt;return me.length&&yt!==void 0&&($t=`#/${me.join("/")}`),we.createElement(x,Object.assign({key:ot},Zt,(0,Ue.Z)(vt,{data:!0,aria:!0}),{className:mt,dropdownProps:lt,href:$t,separator:Mt?"":tt,onClick:Lt,prefixCls:Et}),Te(vt,_e,Ve,me,$t))})}else if(Dt){const me=(0,De.Z)(Dt).length;ye=(0,De.Z)(Dt).map((Ve,vt)=>{if(!Ve)return Ve;const pe=vt===me-1;return(0,Be.Tm)(Ve,{separator:pe?"":tt,key:vt})})}const $e=ce()(Et,Ot==null?void 0:Ot.className,{[`${Et}-rtl`]:nt==="rtl"},dt,St,un),Fe=Object.assign(Object.assign({},Ot==null?void 0:Ot.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,st,ne){"use strict";ne.d(st,{default:function(){return de}});var ie=ne(92310),ce=ne.n(ie),De=ne(5630),Ue=ne(59301),we=ne(36355),Be=ne(1684),ae=ne(32441),Xe=Ue.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:dt}=se,St=Ke(se,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:wt,direction:Ft,checkbox:Dt}=Ue.useContext(we.E_),Oe=Ue.useContext(Xe),{isFormItemInput:_e}=Ue.useContext(ae.aM),ct=Ue.useContext(Be.Z),kt=(Se=(Oe==null?void 0:Oe.disabled)||dt)!==null&&Se!==void 0?Se:ct,nt=Ue.useRef(St.value);Ue.useEffect(()=>{Oe==null||Oe.registerValue(St.value)},[]),Ue.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 Ot=wt("checkbox",Ee),[ye,Et]=(0,He.ZP)(Ot),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 un=ce()(`${Ot}-wrapper`,{[`${Ot}-rtl`]:Ft==="rtl",[`${Ot}-wrapper-checked`]:Ht.checked,[`${Ot}-wrapper-disabled`]:kt,[`${Ot}-wrapper-in-form-item`]:_e},Dt==null?void 0:Dt.className,he,ft,Et),Xt=ce()({[`${Ot}-indeterminate`]:_t},et.A,Et),Te=_t?"mixed":void 0;return ye(Ue.createElement(Re.Z,{component:"Checkbox",disabled:kt},Ue.createElement("label",{className:un,style:Object.assign(Object.assign({},Dt==null?void 0:Dt.style),Ce),onMouseEnter:Ae,onMouseLeave:tt},Ue.createElement(De.Z,Object.assign({"aria-checked":Te},Ht,{prefixCls:Ot,className:Xt,disabled:kt,ref:be})),it!==void 0&&Ue.createElement("span",null,it))))};var a=Ue.forwardRef(oe),x=ne(3300),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:dt}=Ue.useContext(we.E_),[St,wt]=Ue.useState(tt.value||Se||[]),[Ft,Dt]=Ue.useState([]);Ue.useEffect(()=>{"value"in tt&&wt(tt.value||[])},[tt.value]);const Oe=Ue.useMemo(()=>he.map($e=>typeof $e=="string"||typeof $e=="number"?{label:$e,value:$e}:$e),[he]),_e=$e=>{Dt(Fe=>Fe.filter(me=>me!==$e))},ct=$e=>{Dt(Fe=>[].concat((0,x.Z)(Fe),[$e]))},kt=$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(Ve=>Ft.includes(Ve)).sort((Ve,vt)=>{const pe=Oe.findIndex(Ze=>Ze.value===Ve),ue=Oe.findIndex(Ze=>Ze.value===vt);return pe-ue}))},nt=at("checkbox",ft),Ot=`${nt}-group`,[ye,Et]=(0,He.ZP)(nt),Ht=(0,b.Z)(tt,["value","disabled"]),un=he.length?Oe.map($e=>Ue.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:`${Ot}-item`,style:$e.style,title:$e.title},$e.label)):Ee,Xt={toggleOption:kt,value:St,disabled:tt.disabled,name:tt.name,registerValue:ct,cancelValue:_e},Te=ce()(Ot,{[`${Ot}-rtl`]:dt==="rtl"},it,_t,Et);return ye(Ue.createElement("div",Object.assign({className:Te,style:Ce},Ht,{ref:be}),Ue.createElement(Xe.Provider,{value:Xt},un)))},ee=Ue.forwardRef(z);var te=Ue.memo(ee);const ge=a;ge.Group=te,ge.__ANT_CHECKBOX=!0;var de=ge},98447:function(qe,st,ne){"use strict";ne.d(st,{C2:function(){return we}});var ie=ne(17313),ce=ne(37613),De=ne(83116);const Ue=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[Ue(Je)]}st.ZP=(0,De.Z)("Checkbox",(Be,ae)=>{let{prefixCls:Je}=ae;return[we(Je,Be)]})},91857:function(qe,st,ne){"use strict";var ie=ne(59301),ce=ne(38819),De=ne(92310),Ue=ne.n(De),we=ne(31561),Be=ne(70425),ae=ne(18929),Je=ne(2738),Xe=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:dt=.15,mouseLeaveDelay:St=.1,autoAdjustOverflow:wt=!0,placement:Ft="",overlay:Dt,transitionName:Oe}=te,{getPopupContainer:_e,getPrefixCls:ct,direction:kt}=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]),Ot=ie.useMemo(()=>Ft?Ft.includes("Center")?Ft.slice(0,Ft.indexOf("Center")):Ft:kt==="rtl"?"bottomRight":"bottomLeft",[Ft,kt]),ye=ct("dropdown",se),[Et,Ht]=(0,a.Z)(ye),[,un]=(0,y.Z)(),Xt=ie.Children.only(be),Te=(0,Re.Tm)(Xt,{className:Ue()(`${ye}-trigger`,{[`${ye}-rtl`]:kt==="rtl"},Xt.props.className),disabled:Ee}),$e=Ee?[]:Se;let Fe;$e&&$e.includes("contextMenu")&&(Fe=!0);const[me,Ve]=(0,ae.Z)(!1,{value:Ce!=null?Ce:tt}),vt=(0,Be.useEvent)(Pe=>{Ae==null||Ae(Pe),at==null||at(Pe),Ve(Pe)}),pe=Ue()(it,_t,Ht,{[`${ye}-rtl`]:kt==="rtl"}),ue=(0,Xe.Z)({arrowPointAtCenter:typeof de=="object"&&de.pointAtCenter,autoAdjustOverflow:wt,offset:un.marginXXS,arrowWidth:de?un.sizePopupArrow:0,borderRadius:un.borderRadius}),Ze=ie.useCallback(()=>{Ve(!1)},[]),Ne=()=>{let Pe;return ge!=null&&ge.items?Pe=ie.createElement(Ke.default,Object.assign({},ge)):typeof Dt=="function"?Pe=Dt():Pe=Dt,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:Ge=>{let{mode:Lt}=Ge}},Pe)};return Et(ie.createElement(we.Z,Object.assign({alignPoint:Fe},(0,Je.Z)(te,["rootClassName"]),{mouseEnterDelay:dt,mouseLeaveDelay:St,visible:me,builtinPlacements:ue,arrow:!!de,overlayClassName:pe,prefixCls:ye,getPopupContainer:ft||_e,transitionName:nt,trigger:$e,overlay:Ne,placement:Ot,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,st.Z=b},38854:function(qe,st,ne){"use strict";ne.d(st,{Z:function(){return y}});var ie=ne(91857),ce=ne(92310),De=ne.n(ce),Ue=ne(59301),we=ne(18785),Be=ne(3113),ae=ne(36355),Je=ne(81327),Xe=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}=Ue.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:dt,getPopupContainer:St,href:wt,icon:Ft=Ue.createElement(we.Z,null),title:Dt,buttonsRender:Oe=Ne=>Ne,mouseEnterDelay:_e,mouseLeaveDelay:ct,overlayClassName:kt,overlayStyle:nt,destroyPopupOnHide:Ot,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),un=`${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:_e,mouseLeaveDelay:ct,overlayClassName:kt,overlayStyle:nt,destroyPopupOnHide:Ot,dropdownRender:ye},{compactSize:Fe,compactItemClassnames:me}=(0,Xe.ri)(Ht,E),Ve=De()(un,me,Ee,Te);"overlay"in a&&($e.overlay=_t),"open"in a&&($e.open=tt),"placement"in a?$e.placement=dt:$e.placement=E==="rtl"?"bottomLeft":"bottomRight";const vt=Ue.createElement(Be.ZP,{type:ee,danger:te,disabled:ge,loading:de,onClick:se,htmlType:be,href:wt,title:Dt},Se),pe=Ue.createElement(Be.ZP,{type:ee,danger:te,icon:Ft}),[ue,Ze]=Oe([vt,pe]);return Xt(Ue.createElement(Je.Z.Compact,Object.assign({className:Ve,size:Fe,block:!0},Et),ue,Ue.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,st,ne){"use strict";ne.d(st,{Z:function(){return Re}});var ie=ne(17313),ce=ne(13826),De=ne(92899),Ue=ne(29878),we=ne(19447),Be=ne(83116),ae=ne(37613),Xe=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,Ue._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),Xe(se)]},et=>({zIndexPopup:et.zIndexPopupBase+50}))},8628:function(qe,st,ne){"use strict";var ie=ne(59301),ce=ne(34280),De=ne(56762),Ue=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)(),Xe=(0,Ue.ZP)();return(0,ce.Z)(()=>{const He=Xe.subscribe(Re=>{ae.current=Re,Be&&Je()});return()=>Xe.unsubscribe(He)},[]),ae.current}st.Z=we},45818:function(qe,st,ne){"use strict";ne.d(st,{D:function(){return z},Z:function(){return ge}});var ie=ne(32855),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"},Ue=De,we=ne(7657),Be=function(se,be){return ce.createElement(we.Z,(0,ie.Z)({},se,{ref:be,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae,Xe=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:dt,breakpoint:St,onCollapse:wt,onBreakpoint:Ft}=de,Dt=b(de,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Oe}=(0,ce.useContext)(x.Gs),[_e,ct]=(0,ce.useState)("collapsed"in de?de.collapsed:ft),[kt,nt]=(0,ce.useState)(!1);(0,ce.useEffect)(()=>{"collapsed"in de&&ct(de.collapsed)},[de.collapsed]);const Ot=(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),_e!==Te.matches&&Ot(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=()=>{Ot(!_e,"clickTrigger")},{getPrefixCls:Ht}=(0,ce.useContext)(a.E_),un=()=>{const Te=Ht("layout-sider",be),$e=(0,Ke.Z)(Dt,["collapsed"]),Fe=_e?at:tt,me=y(Fe)?`${Fe}px`:String(Fe),Ve=parseFloat(String(at||0))===0?ce.createElement("span",{onClick:Et,className:et()(`${Te}-zero-width-trigger`,`${Te}-zero-width-trigger-${Ae?"right":"left"}`),style:dt},Ee||ce.createElement(Je,null)):null,ue={expanded:Ae?ce.createElement(He.Z,null):ce.createElement(Xe.Z,null),collapsed:Ae?ce.createElement(Xe.Z,null):ce.createElement(He.Z,null)}[_e?"collapsed":"expanded"],Ze=Ee!==null?Ve||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`]:!!_e,[`${Te}-has-trigger`]:Ce&&Ee!==null&&!Ve,[`${Te}-below`]:!!kt,[`${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||kt&&Ve?Ze:null)},Xt=ce.useMemo(()=>({siderCollapsed:_e}),[_e]);return ce.createElement(z.Provider,{value:Xt},un())})},84966:function(qe,st,ne){"use strict";ne.d(st,{VY:function(){return z},$_:function(){return E},h4:function(){return b},Gs:function(){return Ke},ZP:function(){return ee}});var ie=ne(3300),ce=ne(92310),De=ne.n(ce),Ue=ne(2738),we=ne(59301),Be=ne(36355),ae=ne(83116),Xe=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:dt,fontSize:St,borderRadius:wt,bodyBg:Ft,headerBg:Dt,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 ${dt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${dt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-tt,borderStartStartRadius:wt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:wt}}}}},Xe(te)),{"&-rtl":{direction:"rtl"}}),[`${de}-header`]:{height:he,padding:ft,color:it,lineHeight:`${he}px`,background:Dt,[`${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,Ue.Z)(Ae,["suffixCls"]),{getPrefixCls:at,layout:dt}=we.useContext(Be.E_),St=at("layout",Se),[wt,Ft]=Re(St),Dt=De()(St,{[`${St}-has-sider`]:typeof it=="boolean"?it:se.length>0,[`${St}-rtl`]:de==="rtl"},dt==null?void 0:dt.className,Ee,he,Ft),Oe=we.useMemo(()=>({siderHook:{addSider:_e=>{be(ct=>[].concat((0,ie.Z)(ct),[_e]))},removeSider:_e=>{be(ct=>ct.filter(kt=>kt!==_e))}}}),[]);return wt(we.createElement(Ke.Provider,{value:Oe},we.createElement(_t,Object.assign({ref:ge,className:Dt,style:Object.assign(Object.assign({},dt==null?void 0:dt.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,st,ne){"use strict";ne.d(st,{J:function(){return Be}});var ie=ne(59301),ce=ne(33234),De=ne(70425),Ue=function(ae,Je){var Xe={};for(var He in ae)Object.prototype.hasOwnProperty.call(ae,He)&&Je.indexOf(He)<0&&(Xe[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])&&(Xe[He[Re]]=ae[He[Re]]);return Xe};const we=ie.createContext(null),Be=ie.forwardRef((ae,Je)=>{const{children:Xe}=ae,He=Ue(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)(Xe)?ie.cloneElement(Xe,{ref:Je}):Xe))});st.Z=we},20834:function(qe,st,ne){"use strict";ne.d(st,{default:function(){return Xt}});var ie=ne(15285),ce=ne(59301),De=ne(45818),Ue=ne(92310),we=ne.n(Ue),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 Ve=0,me=Object.getOwnPropertySymbols(Te);Ve<me.length;Ve++)$e.indexOf(me[Ve])<0&&Object.prototype.propertyIsEnumerable.call(Te,me[Ve])&&(Fe[me[Ve]]=Te[me[Ve]]);return Fe},Xe=Te=>{const{prefixCls:$e,className:Fe,dashed:me}=Te,Ve=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},Ve))},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:Ve,title:vt,danger:pe}=Te,{prefixCls:ue,firstLevel:Ze,direction:Ne,disableMenuItemTitleTooltip:Pe,inlineCollapsed:Ge}=ce.useContext(y),Lt=Zt=>{const Mt=ce.createElement("span",{className:`${ue}-title-content`},me);return(!Ve||(0,Ke.l$)(me)&&me.type==="span")&&me&&Zt&&Ze&&typeof me=="string"?ce.createElement("div",{className:`${ue}-inline-collapsed-noicon`},me.charAt(0)):Mt},{siderCollapsed:mt}=ce.useContext(De.D);let xt=vt;typeof vt=="undefined"?xt=Ze?me:"":vt===!1&&(xt="");const lt={title:xt};!mt&&!Ge&&(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`]:(Ve?yt+1:yt)===1},Fe),title:typeof vt=="string"?vt:void 0}),(0,Ke.Tm)(Ve,{className:we()((0,Ke.l$)(Ve)?($e=Ve.props)===null||$e===void 0?void 0:$e.className:"",`${ue}-item-icon`)}),Lt(Ge));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:Ve,theme:vt}=Te,pe=ce.useContext(y),{prefixCls:ue,inlineCollapsed:Ze,theme:Ne}=pe,Pe=(0,ie.Xl)();let Ge;if(!me)Ge=Ze&&!Pe.length&&Ve&&typeof Ve=="string"?ce.createElement("div",{className:`${ue}-inline-collapsed-noicon`},Ve.charAt(0)):ce.createElement("span",{className:`${ue}-title-content`},Ve);else{const mt=(0,Ke.l$)(Ve)&&Ve.type==="span";Ge=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?Ve:ce.createElement("span",{className:`${ue}-title-content`},Ve))}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:Ge,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 Ve=0,me=Object.getOwnPropertySymbols(Te);Ve<me.length;Ve++)$e.indexOf(me[Ve])<0&&Object.prototype.propertyIsEnumerable.call(Te,me[Ve])&&(Fe[me[Ve]]=Te[me[Ve]]);return Fe};function se(Te){return(Te||[]).map(($e,Fe)=>{if($e&&typeof $e=="object"){const me=$e,{label:Ve,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:Ve}),se(vt)):ce.createElement(E,Object.assign({key:Ne},Ze,{title:Ve}),se(vt)):ue==="divider"?ce.createElement(Xe,Object.assign({key:Ne},Ze)):ce.createElement(x,Object.assign({key:Ne},Ze),Ve)}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:Ve,lineWidth:vt,lineType:pe,itemPaddingInline:ue}=Te;return{[`${$e}-horizontal`]:{lineHeight:me,border:0,borderBottom:`${vt}px ${pe} ${Ve}`,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"}}}},dt=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:Ve,groupTitleColor:vt,itemBg:pe,subMenuItemBg:ue,itemSelectedBg:Ze,activeBarHeight:Ne,activeBarWidth:Pe,activeBarBorderWidth:Ge,motionDurationSlow:Lt,motionEaseInOut:mt,motionEaseOut:xt,itemPaddingInline:lt,motionDurationMid:yt,itemHoverColor:ot,lineType:Zt,colorSplit:Mt,itemDisabledColor:$t,dangerItemColor:Jt,dangerItemHoverColor:Yt,dangerItemSelectedColor:xn,dangerItemActiveBg:on,dangerItemSelectedBg:Bn,itemHoverBg:Kn,itemActiveBg:jn,menuSubMenuBg:ht,horizontalItemSelectedColor:ut,horizontalItemSelectedBg:gt,horizontalItemBorderRadius:Ct,horizontalItemHoverBg:yn,popupBg:Mn}=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:Ve}},[`${Fe}-item-disabled, ${Fe}-submenu-disabled`]:{color:`${$t} !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:Kn},"&:active":{backgroundColor:jn}},[`${Fe}-submenu-title`]:{"&:hover":{backgroundColor:Kn},"&:active":{backgroundColor:jn}}},[`${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:Ve,[`&${Fe}-item-danger`]:{color:xn},"a, a:hover":{color:"inherit"}},[`& ${Fe}-item-selected`]:{backgroundColor:Ze,[`&${Fe}-item-danger`]:{backgroundColor:Bn}},[`${Fe}-item, ${Fe}-submenu-title`]:{[`&:not(${Fe}-item-disabled):focus-visible`]:Object.assign({},St(Te))},[`&${Fe}-submenu > ${Fe}`]:{backgroundColor:ht},[`&${Fe}-popup > ${Fe}`]:{backgroundColor:Mn},[`&${Fe}-horizontal`]:Object.assign(Object.assign({},$e==="dark"?{borderBottom:0}:{}),{[`> ${Fe}-item, > ${Fe}-submenu`]:{top:Ge,marginTop:-Ge,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:yn,"&::after":{borderBottomWidth:Ne,borderBottomColor:ut}},"&-selected":{color:ut,backgroundColor:gt,"&:hover":{backgroundColor:gt},"&::after":{borderBottomWidth:Ne,borderBottomColor:ut}}}}),[`&${Fe}-root`]:{[`&${Fe}-inline, &${Fe}-vertical`]:{borderInlineEnd:`${Ge}px ${Zt} ${Mt}`}},[`&${Fe}-inline`]:{[`${Fe}-sub${Fe}-inline`]:{background:ue},[`${Fe}-item, ${Fe}-submenu-title`]:Ge&&Pe?{width:`calc(100% + ${Ge}px)`}:{},[`${Fe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Pe}px solid ${Ve}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${yt} ${xt}`,`opacity ${yt} ${xt}`].join(","),content:'""'},[`&${Fe}-item-danger`]:{"&::after":{borderInlineEndColor:xn}}},[`${Fe}-selected, ${Fe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${yt} ${mt}`,`opacity ${yt} ${mt}`].join(",")}}}}}};const Dt=Te=>{const{componentCls:$e,itemHeight:Fe,itemMarginInline:me,padding:Ve,menuArrowSize:vt,marginXS:pe,itemMarginBlock:ue}=Te,Ze=Ve+vt+pe;return{[`${$e}-item`]:{position:"relative",overflow:"hidden"},[`${$e}-item, ${$e}-submenu-title`]:{height:Fe,lineHeight:`${Fe}px`,paddingInline:Ve,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 _e=Te=>{const{componentCls:$e,iconCls:Fe,itemHeight:me,colorTextLightSolid:Ve,dropdownWidth:vt,controlHeightLG:pe,motionDurationMid:ue,motionEaseOut:Ze,paddingXL:Ne,itemMarginInline:Pe,fontSizeLG:Ge,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"}},Dt(Te))},[`${$e}-submenu-popup`]:{[`${$e}-vertical`]:Object.assign(Object.assign({},Dt(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:Ge,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% - ${Ge/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:Ve}},[`${$e}-item-group-title`]:Object.assign(Object.assign({},Ee.vS),{paddingInline:mt})}}]};const ct=Te=>{const{componentCls:$e,motionDurationSlow:Fe,motionDurationMid:me,motionEaseInOut:Ve,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} ${Ve}`].join(","),[`${$e}-item-icon, ${pe}`]:{minWidth:ue,fontSize:ue,transition:[`font-size ${me} ${vt}`,`margin ${Fe} ${Ve}`,`color ${Fe}`].join(","),"+ span":{marginInlineStart:Ze,opacity:1,transition:[`opacity ${Fe} ${Ve}`,`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"}}}},kt=Te=>{const{componentCls:$e,motionDurationSlow:Fe,motionEaseInOut:me,borderRadius:Ve,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:Ve,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:Ve,motionDurationMid:vt,motionEaseInOut:pe,paddingXS:ue,padding:Ze,colorSplit:Ne,lineWidth:Pe,zIndexPopup:Ge,borderRadiusLG:Lt,subMenuItemBorderRadius:mt,menuArrowSize:xt,menuArrowOffset:lt,lineType:yt,menuPanelMaskInset:ot,groupTitleLineHeight:Zt,groupTitleFontSize:Mt}=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 ${Ve} 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:Mt,lineHeight:Zt,transition:`all ${Ve}`},[`&-horizontal ${Fe}-submenu`]:{transition:[`border-color ${Ve} ${pe}`,`background ${Ve} ${pe}`].join(",")},[`${Fe}-submenu, ${Fe}-submenu-inline`]:{transition:[`border-color ${Ve} ${pe}`,`background ${Ve} ${pe}`,`padding ${vt} ${pe}`].join(",")},[`${Fe}-submenu ${Fe}-sub`]:{cursor:"initial",transition:[`background ${Ve} ${pe}`,`padding ${Ve} ${pe}`].join(",")},[`${Fe}-title-content`]:{transition:`color ${Ve}`},[`${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:Ge,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)),kt(Te)),{[`${Fe}-item, ${Fe}-submenu > ${Fe}-submenu-title`]:{borderRadius:mt},[`${Fe}-submenu-title::after`]:{transition:`transform ${Ve} ${pe}`}})}}),kt(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 Ot=(Te,$e)=>(0,_t.Z)("Menu",me=>{if($e===!1)return[];const{colorBgElevated:Ve,colorPrimary:vt,colorTextLightSolid:pe,controlHeightLG:ue,fontSize:Ze,darkItemColor:Ne,darkDangerItemColor:Pe,darkItemBg:Ge,darkSubMenuItemBg:Lt,darkItemSelectedColor:mt,darkItemSelectedBg:xt,darkDangerItemSelectedBg:lt,darkItemHoverBg:yt,darkGroupTitleColor:ot,darkItemHoverColor:Zt,darkItemDisabledColor:Mt,darkDangerItemHoverColor:$t,darkDangerItemSelectedColor:Jt,darkDangerItemActiveBg:Yt}=me,xn=Ze/7*5,on=(0,Ce.TS)(me,{menuArrowSize:xn,menuHorizontalHeight:ue*1.15,menuArrowOffset:`${xn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ve}),Bn=(0,Ce.TS)(on,{itemColor:Ne,itemHoverColor:Zt,groupTitleColor:ot,itemSelectedColor:mt,itemBg:Ge,popupBg:Ge,subMenuItemBg:Lt,itemActiveBg:"transparent",itemSelectedBg:xt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:yt,itemDisabledColor:Mt,dangerItemColor:Pe,dangerItemHoverColor:$t,dangerItemSelectedColor:Jt,dangerItemActiveBg:Yt,dangerItemSelectedBg:lt,menuSubMenuBg:Lt,horizontalItemSelectedColor:pe,horizontalItemSelectedBg:vt});return[nt(on),tt(on),_e(on),Ft(on,"light"),Ft(Bn,"dark"),dt(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:Ve,colorError:vt,colorTextDisabled:pe,colorErrorBg:ue,colorText:Ze,colorTextDescription:Ne,colorBgContainer:Pe,colorFillAlter:Ge,colorFillContent:Lt,lineWidth:mt,lineWidthBold:xt,controlItemBgActive:lt,colorBgTextHover:yt,controlHeightLG:ot,lineHeight:Zt,colorBgElevated:Mt,marginXXS:$t,padding:Jt,fontSize:Yt,controlHeightSM:xn,fontSizeLG:on,colorTextLightSolid:Bn,colorErrorHover:Kn}=me,jn=new Se.C(Bn).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:Ve,horizontalItemHoverColor:Ve,colorGroupTitle:Ne,groupTitleColor:Ne,colorItemTextSelected:Ve,itemSelectedColor:Ve,colorItemTextSelectedHorizontal:Ve,horizontalItemSelectedColor:Ve,colorItemBg:Pe,itemBg:Pe,colorItemBgHover:yt,itemHoverBg:yt,colorItemBgActive:Lt,itemActiveBg:lt,colorSubItemBg:Ge,subMenuItemBg:Ge,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:Mt,itemMarginBlock:$t,itemPaddingInline:Jt,horizontalLineHeight:`${ot*1.15}px`,iconSize:Yt,iconMarginInlineEnd:xn-Yt,collapsedIconSize:on,groupTitleFontSize:Yt,darkItemDisabledColor:new Se.C(Bn).setAlpha(.25).toRgbString(),darkItemColor:jn,darkDangerItemColor:vt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Bn,darkItemSelectedBg:Ve,darkDangerItemSelectedBg:vt,darkItemHoverBg:"transparent",darkGroupTitleColor:jn,darkItemHoverColor:Bn,darkDangerItemHoverColor:Kn,darkDangerItemSelectedColor:Bn,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 Ve=0,me=Object.getOwnPropertySymbols(Te);Ve<me.length;Ve++)$e.indexOf(me[Ve])<0&&Object.prototype.propertyIsEnumerable.call(Te,me[Ve])&&(Fe[me[Ve]]=Te[me[Ve]]);return Fe},Ht=(0,ce.forwardRef)((Te,$e)=>{var Fe,me;const Ve=ce.useContext(ge.Z),vt=Ve||{},{getPrefixCls:pe,getPopupContainer:ue,direction:Ze,menu:Ne}=ce.useContext(Be.E_),Pe=pe(),{prefixCls:Ge,className:Lt,style:mt,theme:xt="light",expandIcon:lt,_internalDisableMenuItemTitleTooltip:yt,inlineCollapsed:ot,siderCollapsed:Zt,items:Mt,children:$t,rootClassName:Jt,mode:Yt,selectable:xn,onClick:on,overflowedIndicatorPopupClassName:Bn}=Te,Kn=ye(Te,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),jn=(0,Re.Z)(Kn,["collapsedWidth"]),ht=be(Mt)||$t;(Fe=vt.validator)===null||Fe===void 0||Fe.call(vt,{mode:Yt});const ut=(0,ee.useEvent)(function(){var Zn;on==null||on.apply(void 0,arguments),(Zn=vt.onClick)===null||Zn===void 0||Zn.call(vt)}),gt=vt.mode||Yt,Ct=xn!=null?xn:vt.selectable,yn=ce.useMemo(()=>Zt!==void 0?Zt:ot,[ot,Zt]),Mn={horizontal:{motionName:`${Pe}-slide-up`},inline:(0,te.Z)(Pe),other:{motionName:`${Pe}-zoom-big`}},nn=pe("menu",Ge||vt.prefixCls),[Fn,wn]=Ot(nn,!Ve),Gn=we()(`${nn}-${xt}`,Ne==null?void 0:Ne.className,Lt);let la;if(typeof lt=="function")la=lt;else if(lt===null||lt===!1)la=null;else if(vt.expandIcon===null||vt.expandIcon===!1)la=null;else{const Zn=lt!=null?lt:vt.expandIcon;la=(0,Ke.Tm)(Zn,{className:we()(`${nn}-submenu-expand-icon`,(0,Ke.l$)(Zn)?(me=Zn.props)===null||me===void 0?void 0:me.className:"")})}const pa=ce.useMemo(()=>({prefixCls:nn,inlineCollapsed:yn||!1,direction:Ze,firstLevel:!0,theme:xt,mode:gt,disableMenuItemTitleTooltip:yt}),[nn,yn,Ze,yt,xt]);return Fn(ce.createElement(ge.Z.Provider,{value:null},ce.createElement(y.Provider,{value:pa},ce.createElement(ie.ZP,Object.assign({getPopupContainer:ue,overflowedIndicator:ce.createElement(z.Z,null),overflowedIndicatorPopupClassName:we()(nn,`${nn}-${xt}`,Bn),mode:gt,selectable:Ct,onClick:ut},jn,{inlineCollapsed:yn,style:Object.assign(Object.assign({},Ne==null?void 0:Ne.style),mt),className:Gn,prefixCls:nn,direction:Ze,defaultMotions:Mn,expandIcon:la,ref:$e,rootClassName:we()(Jt,wn)}),ht))))});const un=(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:Ve=>{var vt;(vt=Fe.current)===null||vt===void 0||vt.focus(Ve)}})),ce.createElement(Ht,Object.assign({ref:Fe},Te,me))});un.Item=x,un.SubMenu=E,un.Divider=Xe,un.ItemGroup=ie.BW;var Xt=un},58421:function(qe,st,ne){"use strict";ne.d(st,{Z:function(){return vt}});var ie=ne(32855),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"},Ue=De,we=ne(7657),Be=function(ue,Ze){return ce.createElement(we.Z,(0,ie.Z)({},ue,{ref:Ze,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae,Xe=ne(49198),He=ne(33853),Re=ne(38819),et=ne(92310),Ke=ne.n(et),oe=ne(74430),y=ne(27247),a=ne(33377),x=ne(93912),b=ne(18881),E=ne(85461),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,Ge=new Array(Pe),Lt=0;Lt<Pe;Lt++)Ge[Lt]=arguments[Lt];return Ne=ue.call.apply(ue,[this].concat(Ge)),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,Ge=Pe.pageSize,Lt=Pe.pageSizeOptions;return Lt.some(function(mt){return mt.toString()===Ge.toString()})?Lt:Lt.concat([Ge.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,Ge=this.props,Lt=Ge.pageSize,mt=Ge.locale,xt=Ge.rootPrefixCls,lt=Ge.changeSize,yt=Ge.quickGo,ot=Ge.goButton,Zt=Ge.selectComponentClass,Mt=Ge.buildOptionText,$t=Ge.selectPrefixCls,Jt=Ge.disabled,Yt=this.state.goInputText,xn="".concat(xt,"-options"),on=Zt,Bn=null,Kn=null,jn=null;if(!lt&&!yt)return null;var ht=this.getPageSizeOptions();if(lt&&on){var ut=ht.map(function(gt,Ct){return ce.createElement(on.Option,{key:Ct,value:gt.toString()},(Mt||Pe.buildOptionText)(gt))});Bn=ce.createElement(on,{disabled:Jt,prefixCls:$t,showSearch:!1,className:"".concat(xn,"-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&&(jn=typeof ot=="boolean"?ce.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Jt,className:"".concat(xn,"-quick-jumper-button")},mt.jump_to_confirm):ce.createElement("span",{onClick:this.go,onKeyUp:this.go},ot)),Kn=ce.createElement("div",{className:"".concat(xn,"-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,jn)),ce.createElement("li",{className:"".concat(xn)},Bn,Kn)}}]),Ze}(ce.Component);de.defaultProps={pageSizeOptions:["10","20","50","100"]};var se=de,be=function(ue){var Ze,Ne=ue.rootPrefixCls,Pe=ue.page,Ge=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"),Ge),(0,oe.Z)(Ze,"".concat(ot,"-disabled"),!Pe),(0,oe.Z)(Ze,ue.className,Lt),Ze)),Mt=function(){xt(Pe)},$t=function(xn){lt(xn,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:Mt,onKeyPress:$t,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,Mt=Pe.state,$t=Mt.pageSize,Jt=Mt.current,Yt=Mt.currentInputValue;if(Pe.isValid(lt)&&!ot){var xn=it(void 0,Pe.state,Pe.props),on=lt;return lt>xn?on=xn:lt<1&&(on=1),"current"in Pe.props||Pe.setState({current:on}),on!==Yt&&Pe.setState({currentInputValue:on}),Zt(on,$t),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),Mt=2;Mt<ot;Mt++)Zt[Mt-2]=arguments[Mt];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,Mt=Zt(lt,"prev",Pe.getItemIcon(ot,"prev page")),$t=!Pe.hasPrev();return(0,ce.isValidElement)(Mt)?(0,ce.cloneElement)(Mt,{disabled:$t}):Mt},Pe.renderNext=function(lt){var yt=Pe.props,ot=yt.nextIcon,Zt=yt.itemRender,Mt=Zt(lt,"next",Pe.getItemIcon(ot,"next page")),$t=!Pe.hasNext();return(0,ce.isValidElement)(Mt)?(0,ce.cloneElement)(Mt,{disabled:$t}):Mt};var Ge=Ne.onChange!==Ee,Lt="current"in Ne;Lt&&!Ge&&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,Ge){var Lt=this.props.prefixCls;if(Ge.current!==this.state.current&&this.paginationNode.current){var mt=this.paginationNode.current.querySelector(".".concat(Lt,"-item-").concat(Ge.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 Ge=Pe.target.value,Lt=it(void 0,this.state,this.props),mt=this.state.currentInputValue,xt;return Ge===""?xt=Ge:Number.isNaN(Number(Ge))?xt=mt:Ge>=Lt?xt=Lt:xt=Number(Ge),xt}},{key:"getShowSizeChanger",value:function(){var Pe=this.props,Ge=Pe.showSizeChanger,Lt=Pe.total,mt=Pe.totalBoundaryShowSizeChanger;return typeof Ge!="undefined"?Ge:Lt>mt}},{key:"render",value:function(){var Pe=this.props,Ge=Pe.prefixCls,Lt=Pe.className,mt=Pe.style,xt=Pe.disabled,lt=Pe.hideOnSinglePage,yt=Pe.total,ot=Pe.locale,Zt=Pe.showQuickJumper,Mt=Pe.showLessItems,$t=Pe.showTitle,Jt=Pe.showTotal,Yt=Pe.simple,xn=Pe.itemRender,on=Pe.showPrevNextJumpers,Bn=Pe.jumpPrevIcon,Kn=Pe.jumpNextIcon,jn=Pe.selectComponentClass,ht=Pe.selectPrefixCls,ut=Pe.pageSizeOptions,gt=this.state,Ct=gt.current,yn=gt.pageSize,Mn=gt.currentInputValue;if(lt===!0&&yt<=yn)return null;var nn=it(void 0,this.state,this.props),Fn=[],wn=null,Gn=null,la=null,pa=null,Zn=null,ba=Zt&&Zt.goButton,xa=Mt?1:2,ja=Ct-1>0?Ct-1:0,ke=Ct+1<nn?Ct+1:nn,We=(0,z.Z)(this.props,{aria:!0,data:!0}),je=Jt&&ce.createElement("li",{className:"".concat(Ge,"-total-text")},Jt(yt,[yt===0?0:(Ct-1)*yn+1,Ct*yn>yt?yt:Ct*yn]));if(Yt){ba&&(typeof ba=="boolean"?Zn=ce.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ot.jump_to_confirm):Zn=ce.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ba),Zn=ce.createElement("li",{title:$t?"".concat(ot.jump_to).concat(Ct,"/").concat(nn):null,className:"".concat(Ge,"-simple-pager")},Zn));var zt=this.renderPrev(ja);return ce.createElement("ul",(0,ie.Z)({className:Ke()(Ge,"".concat(Ge,"-simple"),(0,oe.Z)({},"".concat(Ge,"-disabled"),xt),Lt),style:mt,ref:this.paginationNode},We),je,zt?ce.createElement("li",{title:$t?ot.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Ke()("".concat(Ge,"-prev"),(0,oe.Z)({},"".concat(Ge,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},zt):null,ce.createElement("li",{title:$t?"".concat(Ct,"/").concat(nn):null,className:"".concat(Ge,"-simple-pager")},ce.createElement("input",{type:"text",value:Mn,disabled:xt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ce.createElement("span",{className:"".concat(Ge,"-slash")},"/"),nn),ce.createElement("li",{title:$t?ot.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Ke()("".concat(Ge,"-next"),(0,oe.Z)({},"".concat(Ge,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(ke)),Zn)}if(nn<=3+xa*2){var mn={locale:ot,rootPrefixCls:Ge,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:$t,itemRender:xn};nn||Fn.push(ce.createElement(Se,(0,ie.Z)({},mn,{key:"noPager",page:1,className:"".concat(Ge,"-item-disabled")})));for(var an=1;an<=nn;an+=1){var Yn=Ct===an;Fn.push(ce.createElement(Se,(0,ie.Z)({},mn,{key:an,page:an,active:Yn})))}}else{var In=Mt?ot.prev_3:ot.prev_5,sn=Mt?ot.next_3:ot.next_5,_n=xn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Bn,"prev page")),Ba=xn(this.getJumpNextPage(),"jump-next",this.getItemIcon(Kn,"next page"));on&&(wn=_n?ce.createElement("li",{title:$t?In:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Ke()("".concat(Ge,"-jump-prev"),(0,oe.Z)({},"".concat(Ge,"-jump-prev-custom-icon"),!!Bn))},_n):null,Gn=Ba?ce.createElement("li",{title:$t?sn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Ke()("".concat(Ge,"-jump-next"),(0,oe.Z)({},"".concat(Ge,"-jump-next-custom-icon"),!!Kn))},Ba):null),pa=ce.createElement(Se,{locale:ot,last:!0,rootPrefixCls:Ge,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:nn,page:nn,active:!1,showTitle:$t,itemRender:xn}),la=ce.createElement(Se,{locale:ot,rootPrefixCls:Ge,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:$t,itemRender:xn});var Nt=Math.max(1,Ct-xa),Tn=Math.min(Ct+xa,nn);Ct-1<=xa&&(Tn=1+xa*2),nn-Ct<=xa&&(Nt=nn-xa*2);for(var va=Nt;va<=Tn;va+=1){var ea=Ct===va;Fn.push(ce.createElement(Se,{locale:ot,rootPrefixCls:Ge,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:va,page:va,active:ea,showTitle:$t,itemRender:xn}))}Ct-1>=xa*2&&Ct!==3&&(Fn[0]=(0,ce.cloneElement)(Fn[0],{className:"".concat(Ge,"-item-after-jump-prev")}),Fn.unshift(wn)),nn-Ct>=xa*2&&Ct!==nn-2&&(Fn[Fn.length-1]=(0,ce.cloneElement)(Fn[Fn.length-1],{className:"".concat(Ge,"-item-before-jump-next")}),Fn.push(Gn)),Nt!==1&&Fn.unshift(la),Tn!==nn&&Fn.push(pa)}var oa=!this.hasPrev()||!nn,ta=!this.hasNext()||!nn,Aa=this.renderPrev(ja),Da=this.renderNext(ke);return ce.createElement("ul",(0,ie.Z)({className:Ke()(Ge,Lt,(0,oe.Z)({},"".concat(Ge,"-disabled"),xt)),style:mt,ref:this.paginationNode},We),je,Aa?ce.createElement("li",{title:$t?ot.prev_page:null,onClick:this.prev,tabIndex:oa?null:0,onKeyPress:this.runIfEnterPrev,className:Ke()("".concat(Ge,"-prev"),(0,oe.Z)({},"".concat(Ge,"-disabled"),oa)),"aria-disabled":oa},Aa):null,Fn,Da?ce.createElement("li",{title:$t?ot.next_page:null,onClick:this.next,tabIndex:ta?null:0,onKeyPress:this.runIfEnterNext,className:Ke()("".concat(Ge,"-next"),(0,oe.Z)({},"".concat(Ge,"-disabled"),ta)),"aria-disabled":ta},Da):null,ce.createElement(se,{disabled:xt,locale:ot,rootPrefixCls:Ge,selectComponentClass:jn,selectPrefixCls:ht,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ct,pageSize:yn,pageSizeOptions:ut,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ba}))}}],[{key:"getDerivedStateFromProps",value:function(Pe,Ge){var Lt={};if("current"in Pe&&(Lt.current=Pe.current,Pe.current!==Ge.current&&(Lt.currentInputValue=Lt.current)),"pageSize"in Pe&&Pe.pageSize!==Ge.pageSize){var mt=Ge.current,xt=it(Pe.pageSize,Ge,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),dt=ne(8628),St=ne(9763),wt=ne(57809);const Ft=pe=>ce.createElement(wt.default,Object.assign({},pe,{showSearch:!0,size:"small"})),Dt=pe=>ce.createElement(wt.default,Object.assign({},pe,{showSearch:!0,size:"middle"}));Ft.Option=wt.default.Option,Dt.Option=wt.default.Option;var Oe=ne(9937),_e=ne(17313),ct=ne(83116),kt=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"}}}}}},Ot=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}}}}},un=pe=>{const{componentCls:ue}=pe;return{[ue]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,_e.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)),Ot(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,_e.Qy)(pe)),[`${ue}-jump-prev, ${ue}-jump-next`]:{"&:focus-visible":Object.assign({[`${ue}-item-link-icon`]:{opacity:1},[`${ue}-item-ellipsis`]:{opacity:0}},(0,_e.oN)(pe))},[`${ue}-prev, ${ue}-next`]:{[`&:focus-visible ${ue}-item-link`]:Object.assign({},(0,_e.oN)(pe))}}}};var $e=(0,ct.Z)("Pagination",pe=>{const ue=(0,kt.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[un(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},Ve=pe=>{const{prefixCls:ue,selectPrefixCls:Ze,className:Ne,rootClassName:Pe,style:Ge,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,dt.Z)(lt),{getPrefixCls:Mt,direction:$t,pagination:Jt={}}=ce.useContext(tt.E_),Yt=Mt("pagination",ue),[xn,on]=$e(Yt),Bn=yt!=null?yt:Jt.showSizeChanger,Kn=ce.useMemo(()=>{const nn=ce.createElement("span",{className:`${Yt}-item-ellipsis`},"\u2022\u2022\u2022"),Fn=ce.createElement("button",{className:`${Yt}-item-link`,type:"button",tabIndex:-1},$t==="rtl"?ce.createElement(Re.Z,null):ce.createElement(He.Z,null)),wn=ce.createElement("button",{className:`${Yt}-item-link`,type:"button",tabIndex:-1},$t==="rtl"?ce.createElement(He.Z,null):ce.createElement(Re.Z,null)),Gn=ce.createElement("a",{className:`${Yt}-item-link`},ce.createElement("div",{className:`${Yt}-item-container`},$t==="rtl"?ce.createElement(Xe.Z,{className:`${Yt}-item-link-icon`}):ce.createElement(Je,{className:`${Yt}-item-link-icon`}),nn)),la=ce.createElement("a",{className:`${Yt}-item-link`},ce.createElement("div",{className:`${Yt}-item-container`},$t==="rtl"?ce.createElement(Je,{className:`${Yt}-item-link-icon`}):ce.createElement(Xe.Z,{className:`${Yt}-item-link-icon`}),nn));return{prevIcon:Fn,nextIcon:wn,jumpPrevIcon:Gn,jumpNextIcon:la}},[$t,Yt]),[jn]=(0,St.Z)("Pagination",Ae.Z),ht=Object.assign(Object.assign({},jn),mt),ut=(0,at.Z)(Lt),gt=ut==="small"||!!(Zt&&!ut&<),Ct=Mt("select",Ze),yn=Ke()({[`${Yt}-mini`]:gt,[`${Yt}-rtl`]:$t==="rtl"},Jt==null?void 0:Jt.className,Ne,Pe,on),Mn=Object.assign(Object.assign({},Jt==null?void 0:Jt.style),Ge);return xn(ce.createElement(Ce,Object.assign({},Kn,ot,{style:Mn,prefixCls:Yt,selectPrefixCls:Ct,className:yn,selectComponentClass:xt||(gt?Ft:Dt),locale:ht,showSizeChanger:Bn})))},vt=Ve},15969:function(qe,st,ne){"use strict";ne.d(st,{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,st,ne){"use strict";ne.d(st,{default:function(){return El}});var ie={},ce="rc-table-internal-hook",De=ne(11913),Ue=ne(6089),we=ne(34280),Be=ne(13697),ae=ne(59301),Je=ne(4676);function Xe(re){var le=ae.createContext(void 0),fe=function(xe){var Le=xe.value,ze=xe.children,Me=ae.useRef(Le);Me.current=Le;var Ie=ae.useState(function(){return{getValue:function(){return Me.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},ze)};return{Context:le,Provider:fe,defaultValue:re}}function He(re,le){var fe=(0,Ue.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,ze=xe.getValue,Me=ae.useRef();Me.current=fe(ve?ze():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)(Me.current,pt,!0)||rt({})}return Le.add(Qe),function(){Le.delete(Qe)}},[ve]),Me.current}var Re=ne(32855),et=ne(8654);function Ke(){var re=ae.createContext(null);function le(){return ae.useContext(re)}function fe(xe,Le){var ze=(0,et.Yr)(xe),Me=function(Ye,rt){var Qe=ze?{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 ze?ae.forwardRef(Me):Me}function ve(xe,Le){var ze=(0,et.Yr)(xe),Me=function(Ye,rt){var Qe=ze?{ref:rt}:{};return le(),ae.createElement(xe,(0,Re.Z)({},Ye,Qe))};return ze?ae.memo(ae.forwardRef(Me),Le):ae.memo(Me,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=Xe(),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(ze){var Me;(re==null?void 0:re[ze])!==((Me=ve.current)===null||Me===void 0?void 0:Me[ze])&&xe.push(ze)}),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(34666),Ee=ne(27247),he=ne(74430),ft=ne(92310),it=ne.n(ft),_t=ne(80547),Ce=ne(97938),Ae=ne(48736),tt=ae.createContext({renderWithProps:!1}),at=tt,dt="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,ze=xe.dataIndex,Me=Le||St(ze).join("-")||dt;fe[Me];)Me="".concat(Me,"_next");fe[Me]=!0,le.push(Me)}),le}function Ft(re){return re!=null}function Dt(re){return re&&(0,Se.Z)(re)==="object"&&!Array.isArray(re)&&!ae.isValidElement(re)}function Oe(re,le,fe,ve,xe,Le){var ze=ae.useContext(at),Me=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);Dt(pt)?(Qe=pt.children,bt=pt.props,ze.renderWithProps=!0):Qe=pt}return[Qe,bt]},[Me,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 ze.renderWithProps?!0:!(0,Be.Z)(Ye,rt,!0)});return Ie}function _e(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=_e(re,le||1,fe.hoverStartRow,fe.hoverEndRow);return[ve,fe.onHover]})}var kt=function(le){var fe=le.ellipsis,ve=le.rowType,xe=le.children,Le,ze=fe===!0?{showTitle:!0}:fe;return ze&&(ze.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,ze,Me,Ie,Ye=re.component,rt=re.children,Qe=re.ellipsis,bt=re.scope,pt=re.prefixCls,Pt=re.className,Rt=re.align,It=re.record,At=re.render,Tt=re.dataIndex,jt=re.renderIndex,gn=re.shouldCellUpdate,cn=re.index,qt=re.rowType,Ln=re.colSpan,$n=re.rowSpan,Ut=re.fixLeft,tn=re.fixRight,Vt=re.firstFixLeft,Kt=re.lastFixLeft,Qt=re.firstFixRight,Cn=re.lastFixRight,Dn=re.appendNode,Nn=re.additionalProps,hn=Nn===void 0?{}:Nn,zn=re.isSticky,An="".concat(pt,"-cell"),ra=He(ge,["supportSticky","allColumnsFixedLeft"]),Xn=ra.supportSticky,Pa=ra.allColumnsFixedLeft,ya=Oe(It,Tt,jt,rt,At,gn),On=(0,De.Z)(ya,2),La=On[0],Jn=On[1],ua={},ga=typeof Ut=="number"&&Xn,Ja=typeof tn=="number"&&Xn;ga&&(ua.position="sticky",ua.left=Ut),Ja&&(ua.position="sticky",ua.right=tn);var bn=(le=(fe=(ve=Jn==null?void 0:Jn.colSpan)!==null&&ve!==void 0?ve:hn.colSpan)!==null&&fe!==void 0?fe:Ln)!==null&&le!==void 0?le:1,Pn=(xe=(Le=(ze=Jn==null?void 0:Jn.rowSpan)!==null&&ze!==void 0?ze:hn.rowSpan)!==null&&Le!==void 0?Le:$n)!==null&&xe!==void 0?xe:1,Sn=ct(cn,Pn),rn=(0,De.Z)(Sn,2),Qn=rn[0],ln=rn[1],En=function(Ea){var Qa;It&&ln(cn,cn+Pn-1),hn==null||(Qa=hn.onMouseEnter)===null||Qa===void 0||Qa.call(hn,Ea)},Wn=function(Ea){var Qa;It&&ln(-1,-1),hn==null||(Qa=hn.onMouseLeave)===null||Qa===void 0||Qa.call(hn,Ea)};if(bn===0||Pn===0)return null;var Hn=(Me=hn.title)!==null&&Me!==void 0?Me:kt({rowType:qt,ellipsis:Qe,children:La}),Ka=it()(An,Pt,(Ie={},(0,he.Z)(Ie,"".concat(An,"-fix-left"),ga&&Xn),(0,he.Z)(Ie,"".concat(An,"-fix-left-first"),Vt&&Xn),(0,he.Z)(Ie,"".concat(An,"-fix-left-last"),Kt&&Xn),(0,he.Z)(Ie,"".concat(An,"-fix-left-all"),Kt&&Pa&&Xn),(0,he.Z)(Ie,"".concat(An,"-fix-right"),Ja&&Xn),(0,he.Z)(Ie,"".concat(An,"-fix-right-first"),Qt&&Xn),(0,he.Z)(Ie,"".concat(An,"-fix-right-last"),Cn&&Xn),(0,he.Z)(Ie,"".concat(An,"-ellipsis"),Qe),(0,he.Z)(Ie,"".concat(An,"-with-append"),Dn),(0,he.Z)(Ie,"".concat(An,"-fix-sticky"),(ga||Ja)&&zn&&Xn),(0,he.Z)(Ie,"".concat(An,"-row-hover"),!Jn&&Qn),Ie),hn.className,Jn==null?void 0:Jn.className),Ra={};Rt&&(Ra.textAlign=Rt);var fo=(0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({},ua),hn.style),Ra),Jn==null?void 0:Jn.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(An,"-content")},wa)),ae.createElement(Ye,(0,Re.Z)({},Jn,hn,{className:Ka,style:fo,title:Hn,scope:bt,onMouseEnter:En,onMouseLeave:Wn,colSpan:bn!==1?bn:null,rowSpan:Pn!==1?Pn:null}),Dn,wa)}var Ot=ae.memo(nt);function ye(re,le,fe,ve,xe,Le){var ze=fe[re]||{},Me=fe[le]||{},Ie,Ye;ze.fixed==="left"?Ie=ve.left[xe==="rtl"?le:re]:Me.fixed==="right"&&(Ye=ve.right[xe==="rtl"?re:le]);var rt=!1,Qe=!1,bt=!1,pt=!1,Pt=fe[le+1],Rt=fe[re-1],It=!(Le!=null&&Le.children);if(xe==="rtl"){if(Ie!==void 0){var At=Rt&&Rt.fixed==="left";pt=!At&&It}else if(Ye!==void 0){var Tt=Pt&&Pt.fixed==="right";bt=!Tt&&It}}else if(Ie!==void 0){var jt=Pt&&Pt.fixed==="left";rt=!jt&&It}else if(Ye!==void 0){var gn=Rt&&Rt.fixed==="right";Qe=!gn&&It}return{fixLeft:Ie,fixRight:Ye,lastFixLeft:rt,firstFixRight:Qe,lastFixRight:bt,firstFixLeft:pt,isSticky:ve.isSticky}}var Et=ae.createContext({}),Ht=Et;function un(re){var le=re.className,fe=re.index,ve=re.children,xe=re.colSpan,Le=xe===void 0?1:xe,ze=re.rowSpan,Me=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,Rt=Qe.columns,It=fe+Le-1,At=It+1===bt?Le+1:Le,Tt=ye(fe,fe+At-1,Pt,pt,rt,Rt==null?void 0:Rt[fe]);return ae.createElement(Ot,(0,Re.Z)({className:le,index:fe,component:"td",prefixCls:Ye,record:null,dataIndex:null,align:Me,colSpan:At,rowSpan:ze,render:function(){return ve}},Tt))}var Xt=ne(43079),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=un;var me=Fe;function Ve(re){var le=re.children,fe=re.stickyOffsets,ve=re.flattenColumns,xe=re.columns,Le=He(ge,"prefixCls"),ze=ve.length-1,Me=ve[ze],Ie=ae.useMemo(function(){return{stickyOffsets:fe,flattenColumns:ve,scrollColumnIndex:Me!=null&&Me.scrollbar?ze:null,columns:xe}},[Me,ve,ze,fe,xe]);return ae.createElement(Ht.Provider,{value:Ie},ae.createElement("tfoot",{className:"".concat(Le,"-summary")},le))}var vt=z(Ve),pe=me,ue=ne(70425),Ze=ne(29301),Ne=ne(29194),Pe=ne(24514),Ge=ne(75152),Lt=ne(26112);function mt(re,le,fe,ve,xe,Le,ze){re.push({record:le,indent:fe,index:ze});var Me=Le(le),Ie=xe==null?void 0:xe.has(Me);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=[],ze=0;ze<(re==null?void 0:re.length);ze+=1){var Me=re[ze];mt(Le,Me,0,le,fe,ve,ze)}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,ze=re.expanded,Me=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,Rt=fe;return(Ie?Pt&&pt:bt)&&(Rt=ae.createElement("div",{style:{width:pt-(Qe?rt:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(le,"-expanded-row-fixed")},Rt)),ae.createElement(ve,{className:Le,style:{display:ze?null:"none"}},ae.createElement(Ot,{component:xe,prefixCls:le,colSpan:Me},Rt))}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,ze=xe.expandableType,Me=xe.expandedKeys,Ie=xe.childrenColumnName,Ye=xe.onTriggerExpand,rt=xe.rowExpandable,Qe=xe.onRow,bt=xe.expandRowByClick,pt=xe.rowClassName,Pt=ze==="nest",Rt=ze==="row"&&(!rt||rt(re)),It=Rt||Pt,At=Me&&Me.has(le),Tt=Ie&&re&&re[Ie],jt=(0,ue.useEvent)(Ye),gn=Qe==null?void 0:Qe(re,fe),cn=gn==null?void 0:gn.onClick,qt=function(tn){bt&&It&&Ye(re,tn);for(var Vt=arguments.length,Kt=new Array(Vt>1?Vt-1:0),Qt=1;Qt<Vt;Qt++)Kt[Qt-1]=arguments[Qt];cn==null||cn.apply(void 0,[tn].concat(Kt))},Ln;typeof pt=="string"?Ln=pt:typeof pt=="function"&&(Ln=pt(re,fe,ve));var $n=wt(Le);return(0,Ee.Z)((0,Ee.Z)({},xe),{},{columnsKey:$n,nestExpandable:Pt,expanded:At,hasNestChildren:Tt,record:re,onTriggerExpand:jt,rowSupportExpand:Rt,expandable:It,rowProps:(0,Ee.Z)((0,Ee.Z)({},gn),{},{className:it()(Ln,gn==null?void 0:gn.className),onClick:qt})})}function Zt(re,le,fe,ve,xe){var Le=re.record,ze=re.prefixCls,Me=re.columnsKey,Ie=re.fixedInfoList,Ye=re.expandIconColumnIndex,rt=re.nestExpandable,Qe=re.indentSize,bt=re.expandIcon,pt=re.expanded,Pt=re.hasNestChildren,Rt=re.onTriggerExpand,It=Me[fe],At=Ie[fe],Tt;fe===(Ye||0)&&rt&&(Tt=ae.createElement(ae.Fragment,null,ae.createElement("span",{style:{paddingLeft:"".concat(Qe*ve,"px")},className:"".concat(ze,"-row-indent indent-level-").concat(ve)}),bt({prefixCls:ze,expanded:pt,expandable:Pt,record:Le,onExpand:Rt})));var jt;return le.onCell&&(jt=le.onCell(Le,xe)),{key:It,fixedInfo:At,appendCellNode:Tt,additionalCellProps:jt||{}}}function Mt(re){var le=re.className,fe=re.style,ve=re.record,xe=re.index,Le=re.renderIndex,ze=re.rowKey,Me=re.indent,Ie=Me===void 0?0:Me,Ye=re.rowComponent,rt=re.cellComponent,Qe=re.scopeCellComponent,bt=ot(ve,ze,xe,Ie),pt=bt.prefixCls,Pt=bt.flattenColumns,Rt=bt.expandedRowClassName,It=bt.expandedRowRender,At=bt.rowProps,Tt=bt.expanded,jt=bt.rowSupportExpand,gn=ae.useState(!1),cn=(0,De.Z)(gn,2),qt=cn[0],Ln=cn[1];ae.useEffect(function(){Tt&&Ln(!0)},[Tt]);var $n=ae.createElement(Ye,(0,Re.Z)({},At,{"data-row-key":ze,className:it()(le,"".concat(pt,"-row"),"".concat(pt,"-row-level-").concat(Ie),At==null?void 0:At.className),style:(0,Ee.Z)((0,Ee.Z)({},fe),At==null?void 0:At.style)}),Pt.map(function(Kt,Qt){var Cn=Kt.render,Dn=Kt.dataIndex,Nn=Kt.className,hn=Zt(bt,Kt,Qt,Ie,xe),zn=hn.key,An=hn.fixedInfo,ra=hn.appendCellNode,Xn=hn.additionalCellProps;return ae.createElement(Ot,(0,Re.Z)({className:Nn,ellipsis:Kt.ellipsis,align:Kt.align,scope:Kt.rowScope,component:Kt.rowScope?Qe:rt,prefixCls:pt,key:zn,record:ve,index:xe,renderIndex:Le,dataIndex:Dn,render:Cn,shouldCellUpdate:Kt.shouldCellUpdate},An,{appendNode:ra,additionalProps:Xn}))})),Ut;if(jt&&(qt||Tt)){var tn=It(ve,xe,Ie+1,Tt),Vt=Rt&&Rt(ve,xe,Ie);Ut=ae.createElement(yt,{expanded:Tt,className:it()("".concat(pt,"-expanded-row"),"".concat(pt,"-expanded-row-level-").concat(Ie+1),Vt),prefixCls:pt,component:Ye,cellComponent:rt,colSpan:Pt.length,isEmpty:!1},tn)}return ae.createElement(ae.Fragment,null,$n,Ut)}Mt.displayName="BodyRow";var $t=z(Mt);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(ze){var Me=ze.data,Ie=ze.size;ve(Me,Ie.offsetWidth)})}},fe.map(function(xe){return ae.createElement(Jt,{key:xe,columnKey:xe,onColumnResize:ve})})))}function xn(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,ze=ve.onColumnResize,Me=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"),Rt=Le(["body","row"],"tr"),It=Le(["body","cell"],"td"),At=Le(["body","cell"],"th"),Tt;le.length?Tt=bt.map(function(gn,cn){var qt=gn.record,Ln=gn.indent,$n=gn.index,Ut=Ie(qt,cn);return ae.createElement($t,{key:Ut,rowKey:Ut,record:qt,index:cn,renderIndex:$n,rowComponent:Rt,cellComponent:It,scopeCellComponent:At,getRowKey:Ie,indent:Ln})}):Tt=ae.createElement(yt,{expanded:!0,className:"".concat(xe,"-placeholder"),prefixCls:xe,component:Rt,cellComponent:It,colSpan:Me.length,isEmpty:!0},Qe);var jt=wt(Me);return ae.createElement(at.Provider,{value:pt.current},ae.createElement(Pt,{className:"".concat(xe,"-tbody")},fe&&ae.createElement(Yt,{prefixCls:xe,columnsKey:jt,onColumnResize:ze}),Tt))}xn.displayName="Body";var on=z(xn),Bn=["expandable"],Kn="RC_TABLE_INTERNAL_COL_DEFINE";function jn(re){var le=re.expandable,fe=(0,Xt.Z)(re,Bn),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,ze=!1,Me=Le-1;Me>=0;Me-=1){var Ie=le[Me],Ye=fe&&fe[Me],rt=Ye&&Ye[Kn];if(Ie||rt||ze){var Qe=rt||{},bt=Qe.columnType,pt=(0,Xt.Z)(Qe,ht);xe.unshift(ae.createElement("col",(0,Re.Z)({key:Me,style:{width:Ie}},pt))),ze=!0}}return ae.createElement("colgroup",null,xe)}var gt=ut,Ct=ne(3300),yn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Mn(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 nn=ae.forwardRef(function(re,le){var fe=re.className,ve=re.noData,xe=re.columns,Le=re.flattenColumns,ze=re.colWidths,Me=re.columCount,Ie=re.stickyOffsets,Ye=re.direction,rt=re.fixHeader,Qe=re.stickyTopOffset,bt=re.stickyBottomOffset,pt=re.stickyClassName,Pt=re.onScroll,Rt=re.maxContentScroll,It=re.children,At=(0,Xt.Z)(re,yn),Tt=He(ge,["prefixCls","scrollbarSize","isSticky"]),jt=Tt.prefixCls,gn=Tt.scrollbarSize,cn=Tt.isSticky,qt=cn&&!rt?0:gn,Ln=ae.useRef(null),$n=ae.useCallback(function(Nn){(0,et.mH)(le,Nn),(0,et.mH)(Ln,Nn)},[]);ae.useEffect(function(){var Nn;function hn(zn){var An=zn,ra=An.currentTarget,Xn=An.deltaX;Xn&&(Pt({currentTarget:ra,scrollLeft:ra.scrollLeft+Xn}),zn.preventDefault())}return(Nn=Ln.current)===null||Nn===void 0||Nn.addEventListener("wheel",hn),function(){var zn;(zn=Ln.current)===null||zn===void 0||zn.removeEventListener("wheel",hn)}},[]);var Ut=ae.useMemo(function(){return Le.every(function(Nn){return Nn.width})},[Le]),tn=Le[Le.length-1],Vt={fixed:tn?tn.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(jt,"-cell-scrollbar")}}},Kt=(0,ae.useMemo)(function(){return qt?[].concat((0,Ct.Z)(xe),[Vt]):xe},[qt,xe]),Qt=(0,ae.useMemo)(function(){return qt?[].concat((0,Ct.Z)(Le),[Vt]):Le},[qt,Le]),Cn=(0,ae.useMemo)(function(){var Nn=Ie.right,hn=Ie.left;return(0,Ee.Z)((0,Ee.Z)({},Ie),{},{left:Ye==="rtl"?[].concat((0,Ct.Z)(hn.map(function(zn){return zn+qt})),[0]):hn,right:Ye==="rtl"?Nn:[].concat((0,Ct.Z)(Nn.map(function(zn){return zn+qt})),[0]),isSticky:cn})},[qt,Ie,cn]),Dn=Mn(ze,Me);return ae.createElement("div",{style:(0,Ee.Z)({overflow:"hidden"},cn?{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||!Rt||Ut)&&ae.createElement(gt,{colWidths:Dn?[].concat((0,Ct.Z)(Dn),[qt]):[],columCount:Me+1,columns:Qt}),It((0,Ee.Z)((0,Ee.Z)({},At),{},{stickyOffsets:Cn,columns:Kt,flattenColumns:Qt}))))});nn.displayName="FixedHolder";var Fn=ae.memo(nn);function wn(re){var le=re.cells,fe=re.stickyOffsets,ve=re.flattenColumns,xe=re.rowComponent,Le=re.cellComponent,ze=re.tdCellComponent,Me=re.onHeaderRow,Ie=re.index,Ye=He(ge,["prefixCls","direction"]),rt=Ye.prefixCls,Qe=Ye.direction,bt;Me&&(bt=Me(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,Rt){var It=Pt.column,At=ye(Pt.colStart,Pt.colEnd,ve,fe,Qe,It),Tt;return It&&It.onHeaderCell&&(Tt=Pt.column.onHeaderCell(It)),ae.createElement(Ot,(0,Re.Z)({},Pt,{scope:It.title?Pt.colSpan>1?"colgroup":"col":null,ellipsis:It.ellipsis,align:It.align,component:It.title?Le:ze,prefixCls:rt,key:pt[Rt]},At,{additionalProps:Tt,rowType:"header"}))}))}wn.displayName="HeaderRow";var Gn=wn;function la(re){var le=[];function fe(ze,Me){var Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;le[Ie]=le[Ie]||[];var Ye=Me,rt=ze.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(Rt,It){return Rt+It},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(Me){le[Me].forEach(function(Ie){!("rowSpan"in Ie)&&!Ie.hasSubColumns&&(Ie.rowSpan=ve-Me)})},Le=0;Le<ve;Le+=1)xe(Le);return le}function pa(re){var le=re.stickyOffsets,fe=re.columns,ve=re.flattenColumns,xe=re.onHeaderRow,Le=He(ge,["prefixCls","getComponent"]),ze=Le.prefixCls,Me=Le.getComponent,Ie=ae.useMemo(function(){return la(fe)},[fe]),Ye=Me(["header","wrapper"],"thead"),rt=Me(["header","row"],"tr"),Qe=Me(["header","cell"],"th"),bt=Me(["header","cell"],"td");return ae.createElement(Ye,{className:"".concat(ze,"-thead")},Ie.map(function(pt,Pt){var Rt=ae.createElement(Gn,{key:Pt,flattenColumns:ve,cells:pt,stickyOffsets:le,rowComponent:rt,cellComponent:Qe,tdCellComponent:bt,onHeaderRow:xe,index:Pt});return Rt}))}var Zn=z(pa),ba=ne(11592);function xa(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 ja(re,le){return ae.useMemo(function(){if(le&&le>0){var fe=0,ve=0;re.forEach(function(Ye){var rt=xa(le,Ye.width);rt?fe+=rt:ve+=1});var xe=le-fe,Le=ve,ze=xe/ve,Me=0,Ie=re.map(function(Ye){var rt=(0,Ee.Z)({},Ye),Qe=xa(le,rt.width);if(Qe)rt.width=Qe;else{var bt=Math.floor(ze);rt.width=Le===1?xe:bt,xe-=bt,Le-=1}return Me+=rt.width,rt});return[Ie,Me]}return[re,le]},[re,le])}var ke=["children"],We=["fixed"];function je(re){return(0,ba.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,ke),ze=(0,Ee.Z)({key:fe},Le);return xe&&(ze.children=je(xe)),ze})}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,ze=Le===!0?"left":Le,Me="".concat(le,"-").concat(xe),Ie=ve.children;return Ie&&Ie.length>0?[].concat((0,Ct.Z)(fe),(0,Ct.Z)(zt(Ie,Me).map(function(Ye){return(0,Ee.Z)({fixed:ze},Ye)}))):[].concat((0,Ct.Z)(fe),[(0,Ee.Z)((0,Ee.Z)({key:Me},ve),{},{fixed:ze})])},[])}function mn(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 ze=re[Le];if(xe&&ze.fixed!=="right")xe=!1;else if(!xe&&ze.fixed==="right"){warning(!1,"Index ".concat(Le+1," of `columns` missing `fixed='right'` prop."));break}}}function an(re){return re.map(function(le){var fe=le.fixed,ve=(0,Xt.Z)(le,We),xe=fe;return fe==="left"?xe="right":fe==="right"&&(xe="left"),(0,Ee.Z)({fixed:xe},ve)})}function Yn(re,le){var fe=re.prefixCls,ve=re.columns,xe=re.children,Le=re.expandable,ze=re.expandedKeys,Me=re.columnTitle,Ie=re.getRowKey,Ye=re.onTriggerExpand,rt=re.expandIcon,Qe=re.rowExpandable,bt=re.expandIconColumnIndex,pt=re.direction,Pt=re.expandRowByClick,Rt=re.columnWidth,It=re.fixed,At=re.scrollWidth,Tt=ae.useMemo(function(){return ve||je(xe)},[ve,xe]),jt=ae.useMemo(function(){if(Le){var tn,Vt=Tt.slice();if(!Vt.includes(ie)){var Kt=bt||0;Kt>=0&&Vt.splice(Kt,0,ie)}var Qt=Vt.indexOf(ie);Vt=Vt.filter(function(hn,zn){return hn!==ie||zn===Qt});var Cn=Tt[Qt],Dn;(It==="left"||It)&&!bt?Dn="left":(It==="right"||It)&&bt===Tt.length?Dn="right":Dn=Cn?Cn.fixed:null;var Nn=(tn={},(0,he.Z)(tn,Kn,{className:"".concat(fe,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,he.Z)(tn,"title",Me),(0,he.Z)(tn,"fixed",Dn),(0,he.Z)(tn,"className","".concat(fe,"-row-expand-icon-cell")),(0,he.Z)(tn,"width",Rt),(0,he.Z)(tn,"render",function(zn,An,ra){var Xn=Ie(An,ra),Pa=ze.has(Xn),ya=Qe?Qe(An):!0,On=rt({prefixCls:fe,expanded:Pa,expandable:ya,record:An,onExpand:Ye});return Pt?ae.createElement("span",{onClick:function(Jn){return Jn.stopPropagation()}},On):On}),tn);return Vt.map(function(hn){return hn===ie?Nn:hn})}return Tt.filter(function(hn){return hn!==ie})},[Le,Tt,Ie,ze,rt,pt]),gn=ae.useMemo(function(){var tn=jt;return le&&(tn=le(tn)),tn.length||(tn=[{render:function(){return null}}]),tn},[le,jt,pt]),cn=ae.useMemo(function(){return pt==="rtl"?an(zt(gn)):zt(gn)},[gn,pt,At]),qt=ja(cn,At),Ln=(0,De.Z)(qt,2),$n=Ln[0],Ut=Ln[1];return[gn,$n,Ut]}var In=Yn;function sn(re){var le,fe=re.prefixCls,ve=re.record,xe=re.onExpand,Le=re.expanded,ze=re.expandable,Me="".concat(fe,"-row-expand-icon");if(!ze)return ae.createElement("span",{className:it()(Me,"".concat(fe,"-row-spaced"))});var Ie=function(rt){xe(ve,rt),rt.stopPropagation()};return ae.createElement("span",{className:it()(Me,(le={},(0,he.Z)(le,"".concat(fe,"-row-expanded"),Le),(0,he.Z)(le,"".concat(fe,"-row-collapsed"),!Le),le)),onClick:Ie})}function _n(re,le,fe){var ve=[];function xe(Le){(Le||[]).forEach(function(ze,Me){ve.push(le(ze,Me)),xe(ze[fe])})}return xe(re),ve}function Ba(re,le,fe){var ve=jn(re),xe=ve.expandIcon,Le=ve.expandedRowKeys,ze=ve.defaultExpandedRowKeys,Me=ve.defaultExpandAllRows,Ie=ve.expandedRowRender,Ye=ve.onExpand,rt=ve.onExpandedRowsChange,Qe=ve.childrenColumnName,bt=xe||sn,pt=Qe||"children",Pt=ae.useMemo(function(){return Ie?"row":re.expandable&&re.internalHooks===ce&&re.expandable.__PARENT_RENDER_ICON__||le.some(function(cn){return cn&&(0,Se.Z)(cn)==="object"&&cn[pt]})?"nest":!1},[!!Ie,le]),Rt=ae.useState(function(){return ze||(Me?_n(le,fe,pt):[])}),It=(0,De.Z)(Rt,2),At=It[0],Tt=It[1],jt=ae.useMemo(function(){return new Set(Le||At||[])},[Le,At]),gn=ae.useCallback(function(cn){var qt=fe(cn,le.indexOf(cn)),Ln,$n=jt.has(qt);$n?(jt.delete(qt),Ln=(0,Ct.Z)(jt)):Ln=[].concat((0,Ct.Z)(jt),[qt]),Tt(Ln),Ye&&Ye(!$n,cn),rt&&rt(Ln)},[fe,jt,le,Ye,rt]);return[ve,Pt,jt,bt,pt,gn]}function Nt(re,le,fe,ve){var xe=re.map(function(Le,ze){return ye(ze,ze,re,le,fe,ve==null?void 0:ve[ze])});return(0,_t.Z)(function(){return xe},[xe],function(Le,ze){return!(0,Be.Z)(Le,ze)})}function Tn(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),ze=(0,ae.useRef)([]);function Me(Ie){ze.current.push(Ie);var Ye=Promise.resolve();Le.current=Ye,Ye.then(function(){if(Le.current===Ye){var rt=ze.current,Qe=le.current;ze.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,Me]}function va(re){var le=(0,ae.useRef)(re||null),fe=(0,ae.useRef)();function ve(){window.clearTimeout(fe.current)}function xe(ze){le.current=ze,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 ea(){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),ze=Le[0],Me=Le[1],Ie=ae.useCallback(function(Ye,rt){ve(Ye),Me(rt)},[]);return[fe,ze,Ie]}var oa=ne(47273),ta=(0,oa.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,ze=Le===void 0?0:Le,Me=fe.offsetScroll,Ie=Me===void 0?0:Me,Ye=fe.getContainer,rt=Ye===void 0?function(){return ta}:Ye,Qe=rt()||ta;return ae.useMemo(function(){var bt=!!re;return{isSticky:bt,stickyClassName:bt?"".concat(le,"-sticky-holder"):"",offsetHeader:xe,offsetSummary:ze,offsetScroll:Ie,container:Qe}},[Ie,xe,ze,le,Qe])}function Da(re,le,fe){var ve=(0,ae.useMemo)(function(){for(var xe=[],Le=[],ze=0,Me=0,Ie=0;Ie<le;Ie+=1)if(fe==="rtl"){Le[Ie]=Me,Me+=re[Ie]||0;var Ye=le-Ie-1;xe[Ye]=ze,ze+=re[Ye]||0}else{xe[Ie]=ze,ze+=re[Ie]||0;var rt=le-Ie-1;Le[rt]=Me,Me+=re[rt]||0}return{left:xe,right:Le}},[re,le,fe]);return ve}var _a=Da;function oo(re){var le=re.className,fe=re.children;return ae.createElement("div",{className:le},fe)}var Ya=oo,Ca=ne(8224),yo=ne(55468),bo=function(le,fe){var ve,xe,Le=le.scrollBodyRef,ze=le.onScroll,Me=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=Tn({scrollLeft:0,isHiddenScrollBar:!1}),Rt=(0,De.Z)(Pt,2),It=Rt[0],At=Rt[1],Tt=ae.useRef({delta:0,x:0}),jt=ae.useState(!1),gn=(0,De.Z)(jt,2),cn=gn[0],qt=gn[1],Ln=function(){qt(!1)},$n=function(Qt){Qt.persist(),Tt.current.delta=Qt.pageX-It.scrollLeft,Tt.current.x=0,qt(!0),Qt.preventDefault()},Ut=function(Qt){var Cn,Dn=Qt||((Cn=window)===null||Cn===void 0?void 0:Cn.event),Nn=Dn.buttons;if(!cn||Nn===0){cn&&qt(!1);return}var hn=Tt.current.x+Qt.pageX-Tt.current.x-Tt.current.delta;hn<=0&&(hn=0),hn+bt>=Qe&&(hn=Qe-bt),ze({scrollLeft:hn/Qe*(rt+2)}),Tt.current.x=Qt.pageX},tn=function(){if(Le.current){var Qt=(0,yo.os)(Le.current).top,Cn=Qt+Le.current.offsetHeight,Dn=Ie===window?document.documentElement.scrollTop+window.innerHeight:(0,yo.os)(Ie).top+Ie.clientHeight;Cn-(0,Ge.Z)()<=Dn||Qt>=Dn-Me?At(function(Nn){return(0,Ee.Z)((0,Ee.Z)({},Nn),{},{isHiddenScrollBar:!0})}):At(function(Nn){return(0,Ee.Z)((0,Ee.Z)({},Nn),{},{isHiddenScrollBar:!1})})}},Vt=function(Qt){At(function(Cn){return(0,Ee.Z)((0,Ee.Z)({},Cn),{},{scrollLeft:Qt/rt*Qe||0})})};return ae.useImperativeHandle(fe,function(){return{setScrollLeft:Vt}}),ae.useEffect(function(){var Kt=(0,Ca.Z)(document.body,"mouseup",Ln,!1),Qt=(0,Ca.Z)(document.body,"mousemove",Ut,!1);return tn(),function(){Kt.remove(),Qt.remove()}},[bt,cn]),ae.useEffect(function(){var Kt=(0,Ca.Z)(Ie,"scroll",tn,!1),Qt=(0,Ca.Z)(window,"resize",tn,!1);return function(){Kt.remove(),Qt.remove()}},[Ie]),ae.useEffect(function(){It.isHiddenScrollBar||At(function(Kt){var Qt=Le.current;return Qt?(0,Ee.Z)((0,Ee.Z)({},Kt),{},{scrollLeft:Qt.scrollLeft/Qt.scrollWidth*Qt.clientWidth}):Kt})},[It.isHiddenScrollBar]),rt<=Qe||!bt||It.isHiddenScrollBar?null:ae.createElement("div",{style:{height:(0,Ge.Z)(),width:Qe,bottom:Me},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"),cn)),style:{width:"".concat(bt,"px"),transform:"translate3d(".concat(It.scrollLeft,"px, 0, 0)")}}))},Ro=ae.forwardRef(bo);function Bt(re){return null}var qo=Bt;function Bo(re){return null}var To=Bo,ro="rc-table",Gt=[],pn={};function Rn(){return"No Data"}function vn(re){var le,fe=(0,Ee.Z)({rowKey:"key",prefixCls:ro,emptyText:Rn},re),ve=fe.prefixCls,xe=fe.className,Le=fe.rowClassName,ze=fe.style,Me=fe.data,Ie=fe.rowKey,Ye=fe.scroll,rt=fe.tableLayout,Qe=fe.direction,bt=fe.title,pt=fe.footer,Pt=fe.summary,Rt=fe.caption,It=fe.id,At=fe.showHeader,Tt=fe.components,jt=fe.emptyText,gn=fe.onRow,cn=fe.onHeaderRow,qt=fe.internalHooks,Ln=fe.transformColumns,$n=fe.internalRefs,Ut=fe.tailor,tn=fe.sticky,Vt=Me||Gt,Kt=!!Vt.length,Qt=qt===ce,Cn=ae.useCallback(function(aa,ma){return(0,Ce.Z)(Tt,aa)||ma},[Tt]),Dn=ae.useMemo(function(){return typeof Ie=="function"?Ie:function(aa){var ma=aa&&aa[Ie];return ma}},[Ie]),Nn=Cn(["body"]),hn=ea(),zn=(0,De.Z)(hn,3),An=zn[0],ra=zn[1],Xn=zn[2],Pa=Ba(fe,Vt,Dn),ya=(0,De.Z)(Pa,6),On=ya[0],La=ya[1],Jn=ya[2],ua=ya[3],ga=ya[4],Ja=ya[5],bn=Ye==null?void 0:Ye.x,Pn=ae.useState(0),Sn=(0,De.Z)(Pn,2),rn=Sn[0],Qn=Sn[1],ln=In((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({},fe),On),{},{expandable:!!On.expandedRowRender,columnTitle:On.columnTitle,expandedKeys:Jn,getRowKey:Dn,onTriggerExpand:Ja,expandIcon:ua,expandIconColumnIndex:On.expandIconColumnIndex,direction:Qe,scrollWidth:Qt&&Ut&&typeof bn=="number"?bn:null}),Qt?Ln:null),En=(0,De.Z)(ln,3),Wn=En[0],Hn=En[1],Ka=En[2],Ra=Ka!=null?Ka:bn,fo=ae.useMemo(function(){return{columns:Wn,flattenColumns:Hn}},[Wn,Hn]),wa=ae.useRef(),lo=ae.useRef(),Ea=ae.useRef(),Qa=ae.useRef(),zo=ae.useRef(),qn=ae.useState(!1),na=(0,De.Z)(qn,2),fa=na[0],Na=na[1],$a=ae.useState(!1),kn=(0,De.Z)($a,2),Va=kn[0],Za=kn[1],ao=Tn(new Map),po=(0,De.Z)(ao,2),ho=po[0],Qo=po[1],wo=wt(Hn),so=wo.map(function(aa){return ho.get(aa)}),qa=ae.useMemo(function(){return so},[so.join("_")]),Xa=_a(qa,Hn.length,Qe),Oa=Ye&&Ft(Ye.y),ha=Ye&&Ft(Ra)||!!On.fixed,vo=ha&&Hn.some(function(aa){var ma=aa.fixed;return ma}),Mo=ae.useRef(),$o=Aa(tn,ve),Po=$o.isSticky,ur=$o.offsetHeader,Ar=$o.offsetSummary,Un=$o.offsetScroll,ia=$o.stickyClassName,Ga=$o.container,Sa=ae.useMemo(function(){return Pt==null?void 0:Pt(Vt)},[Pt,Vt]),Ha=(Oa||Po)&&ae.isValidElement(Sa)&&Sa.type===me&&Sa.props.fixed,eo,to,Eo;Oa&&(to={overflowY:"scroll",maxHeight:Ye.y}),ha&&(eo={overflowX:"auto"},Oa||(to={overflowY:"hidden"}),Eo={width:Ra===!0?"auto":Ra,minWidth:"100%"});var mi=ae.useCallback(function(aa,ma){(0,Ne.Z)(wa.current)&&Qo(function(co){if(co.get(aa)!==ma){var Oo=new Map(co);return Oo.set(aa,ma),Oo}return co})},[]),Bl=va(null),fi=(0,De.Z)(Bl,2),Fl=fi[0],hi=fi[1];function mr(aa,ma){ma&&(typeof ma=="function"?ma(aa):ma.scrollLeft!==aa&&(ma.scrollLeft=aa,ma.scrollLeft!==aa&&setTimeout(function(){ma.scrollLeft=aa},0)))}var _o=(0,Ue.Z)(function(aa){var ma=aa.currentTarget,co=aa.scrollLeft,Oo=Qe==="rtl",Io=typeof co=="number"?co:ma.scrollLeft,$i=ma||pn;if(!hi()||hi()===$i){var Hr;Fl($i),mr(Io,lo.current),mr(Io,Ea.current),mr(Io,zo.current),mr(Io,(Hr=Mo.current)===null||Hr===void 0?void 0:Hr.setScrollLeft)}var jr=ma||lo.current;if(jr){var _r=jr.scrollWidth,Wr=jr.clientWidth;if(_r===Wr){Na(!1),Za(!1);return}Oo?(Na(-Io<_r-Wr),Za(-Io>0)):(Na(Io>0),Za(Io<_r-Wr))}}),Si=function(){ha&&Ea.current?_o({currentTarget:Ea.current}):(Na(!1),Za(!1))},Nl=function(ma){var co=ma.width;co!==rn&&(Si(),Qn(wa.current?wa.current.offsetWidth:co))},pi=ae.useRef(!1);ae.useEffect(function(){pi.current&&Si()},[ha,Me,Wn.length]),ae.useEffect(function(){pi.current=!0},[]);var $l=ae.useState(0),vi=(0,De.Z)($l,2),fr=vi[0],Pi=vi[1],Ol=ae.useState(!0),yi=(0,De.Z)(Ol,2),bi=yi[0],Il=yi[1];ae.useEffect(function(){(!Ut||!Qt)&&(Ea.current instanceof Element?Pi((0,Ge.o)(Ea.current).width):Pi((0,Ge.o)(Qa.current).width)),Il((0,Pe.G)("position","sticky"))},[]),ae.useEffect(function(){Qt&&$n&&($n.body.current=Ea.current)});var Tl=ae.useCallback(function(aa){return ae.createElement(ae.Fragment,null,ae.createElement(Zn,aa),Ha==="top"&&ae.createElement(vt,aa,Sa))},[Ha,Sa]),Dl=ae.useCallback(function(aa){return ae.createElement(vt,aa,Sa)},[Sa]),xi=Cn(["table"],"table"),hr=ae.useMemo(function(){return rt||(vo?Ra==="max-content"?"auto":"fixed":Oa||Po||Hn.some(function(aa){var ma=aa.ellipsis;return ma})?"fixed":"auto")},[Oa,vo,Hn,rt,Po]),kr,Gr={colWidths:qa,columCount:Hn.length,stickyOffsets:Xa,onHeaderRow:cn,fixHeader:Oa,scroll:Ye},Ci=ae.useMemo(function(){return Kt?null:typeof jt=="function"?jt():jt},[Kt,jt]),Li=ae.createElement(on,{data:Vt,measureColumnWidth:Oa||ha||Po}),wi=ae.createElement(gt,{colWidths:Hn.map(function(aa){var ma=aa.width;return ma}),columns:Hn}),Ei=Rt!=null?ae.createElement("caption",{className:"".concat(ve,"-caption")},Rt):void 0,zl=(0,Lt.Z)(fe,{data:!0}),Bi=(0,Lt.Z)(fe,{aria:!0});if(Oa||Po){var Kr;typeof Nn=="function"?(Kr=Nn(Vt,{scrollbarSize:fr,ref:Ea,onScroll:_o}),Gr.colWidths=Hn.map(function(aa,ma){var co=aa.width,Oo=ma===Hn.length-1?co-fr:co;return typeof Oo=="number"&&!Number.isNaN(Oo)?Oo:0})):Kr=ae.createElement("div",{style:(0,Ee.Z)((0,Ee.Z)({},eo),to),onScroll:_o,ref:Ea,className:it()("".concat(ve,"-body"))},ae.createElement(xi,(0,Re.Z)({style:(0,Ee.Z)((0,Ee.Z)({},Eo),{},{tableLayout:hr})},Bi),Ei,wi,Li,!Ha&&Sa&&ae.createElement(vt,{stickyOffsets:Xa,flattenColumns:Hn,columns:Wn},Sa)));var Fi=(0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({noData:!Vt.length,maxContentScroll:ha&&Ra==="max-content"},Gr),fo),{},{direction:Qe,stickyClassName:ia,onScroll:_o});kr=ae.createElement(ae.Fragment,null,At!==!1&&ae.createElement(Fn,(0,Re.Z)({},Fi,{stickyTopOffset:ur,className:"".concat(ve,"-header"),ref:lo}),Tl),Kr,Ha&&Ha!=="top"&&ae.createElement(Fn,(0,Re.Z)({},Fi,{stickyBottomOffset:Ar,className:"".concat(ve,"-summary"),ref:zo}),Dl),Po&&ae.createElement(Ro,{ref:Mo,offsetScroll:Un,scrollBodyRef:Ea,onScroll:_o,container:Ga}))}else kr=ae.createElement("div",{style:(0,Ee.Z)((0,Ee.Z)({},eo),to),className:it()("".concat(ve,"-content")),onScroll:_o,ref:Ea},ae.createElement(xi,(0,Re.Z)({style:(0,Ee.Z)((0,Ee.Z)({},Eo),{},{tableLayout:hr})},Bi),Ei,wi,At!==!1&&ae.createElement(Zn,(0,Re.Z)({},Gr,fo)),Li,Sa&&ae.createElement(vt,{stickyOffsets:Xa,flattenColumns:Hn,columns:Wn},Sa)));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"),fa),(0,he.Z)(le,"".concat(ve,"-ping-right"),Va),(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"),vo),(0,he.Z)(le,"".concat(ve,"-scroll-horizontal"),ha),(0,he.Z)(le,"".concat(ve,"-has-fix-left"),Hn[0]&&Hn[0].fixed),(0,he.Z)(le,"".concat(ve,"-has-fix-right"),Hn[Hn.length-1]&&Hn[Hn.length-1].fixed==="right"),le)),style:ze,id:It,ref:wa},zl),bt&&ae.createElement(Ya,{className:"".concat(ve,"-title")},bt(Vt)),ae.createElement("div",{ref:Qa,className:"".concat(ve,"-container")},kr),pt&&ae.createElement(Ya,{className:"".concat(ve,"-footer")},pt(Vt)));ha&&(Zr=ae.createElement(Ze.Z,{onResize:Nl},Zr));var Ni=Nt(Hn,Xa,Qe,Wn),Ml=ae.useMemo(function(){return{scrollX:Ra,prefixCls:ve,getComponent:Cn,scrollbarSize:fr,direction:Qe,fixedInfoList:Ni,isSticky:Po,supportSticky:bi,componentWidth:rn,fixHeader:Oa,fixColumn:vo,horizonScroll:ha,tableLayout:hr,rowClassName:Le,expandedRowClassName:On.expandedRowClassName,expandIcon:ua,expandableType:La,expandRowByClick:On.expandRowByClick,expandedRowRender:On.expandedRowRender,onTriggerExpand:Ja,expandIconColumnIndex:On.expandIconColumnIndex,indentSize:On.indentSize,allColumnsFixedLeft:Hn.every(function(aa){return aa.fixed==="left"}),emptyNode:Ci,columns:Wn,flattenColumns:Hn,onColumnResize:mi,hoverStartRow:An,hoverEndRow:ra,onHover:Xn,rowExpandable:On.rowExpandable,onRow:gn,getRowKey:Dn,expandedKeys:Jn,childrenColumnName:ga}},[Ra,ve,Cn,fr,Qe,Ni,Po,bi,rn,Oa,vo,ha,hr,Le,On.expandedRowClassName,ua,La,On.expandRowByClick,On.expandedRowRender,Ja,On.expandIconColumnIndex,On.indentSize,Ci,Wn,Hn,mi,An,ra,Xn,On.rowExpandable,gn,Dn,Jn,ga]);return ae.createElement(ge.Provider,{value:Ml},Zr)}function da(re){return E(vn,re)}var sa=da();sa.EXPAND_COLUMN=ie,sa.INTERNAL_HOOKS=ce,sa.Column=qo,sa.ColumnGroup=To,sa.Summary=pe;var ka=sa,Wa=ne(6790),no=Xe(null),Wo=Xe(null);function Fo(re,le,fe){var ve=le||1;return fe[re+ve]-(fe[re]||0)}function Sr(re){var le=re.rowInfo,fe=re.column,ve=re.colIndex,xe=re.indent,Le=re.index,ze=re.renderIndex,Me=re.record,Ie=re.style,Ye=re.className,rt=re.inverse,Qe=re.getHeight,bt=fe.render,pt=fe.dataIndex,Pt=fe.className,Rt=fe.width,It=He(Wo,["columnsOffset"]),At=It.columnsOffset,Tt=Zt(le,fe,ve,xe,Le),jt=Tt.key,gn=Tt.fixedInfo,cn=Tt.appendCellNode,qt=Tt.additionalCellProps,Ln=qt.style,$n=qt.colSpan,Ut=$n===void 0?1:$n,tn=qt.rowSpan,Vt=tn===void 0?1:tn,Kt=ve-1,Qt=Fo(Kt,Ut,At),Cn=Ut>1?Rt-Qt:0,Dn=(0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({},Ln),Ie),{},{flex:"0 0 ".concat(Qt,"px"),width:"".concat(Qt,"px"),marginRight:Cn,pointerEvents:"auto"}),Nn=ae.useMemo(function(){return rt?Vt<=1:Ut===0||Vt===0||Vt>1},[Vt,Ut,rt]);Nn?Dn.visibility="hidden":rt&&(Dn.height=Qe==null?void 0:Qe(Vt));var hn=Nn?function(){return null}:bt,zn={};return(Vt===0||Ut===0)&&(zn.rowSpan=1,zn.colSpan=1),ae.createElement(Ot,(0,Re.Z)({className:it()(Pt,Ye),ellipsis:fe.ellipsis,align:fe.align,scope:fe.rowScope,component:"div",prefixCls:le.prefixCls,key:jt,record:Me,index:Le,renderIndex:ze,dataIndex:pt,render:hn,shouldCellUpdate:fe.shouldCellUpdate},gn,{appendNode:cn,additionalProps:(0,Ee.Z)((0,Ee.Z)({},qt),{},{style:Dn},zn)}))}var pr=Sr,er=["data","index","className","rowKey","style","extra","getHeight"],tr=ae.forwardRef(function(re,le){var fe=re.data,ve=re.index,xe=re.className,Le=re.rowKey,ze=re.style,Me=re.extra,Ie=re.getHeight,Ye=(0,Xt.Z)(re,er),rt=fe.record,Qe=fe.indent,bt=fe.index,pt=He(ge,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Pt=pt.scrollX,Rt=pt.flattenColumns,It=pt.prefixCls,At=pt.fixColumn,Tt=pt.componentWidth,jt=ot(rt,Le,ve,Qe),gn=jt.rowSupportExpand,cn=jt.expanded,qt=jt.rowProps,Ln=jt.expandedRowRender,$n=jt.expandedRowClassName,Ut;if(gn&&cn){var tn=Ln(rt,ve,Qe+1,cn),Vt=$n==null?void 0:$n(rt,ve,Qe),Kt={};At&&(Kt={style:(0,he.Z)({},"--virtual-width","".concat(Tt,"px"))});var Qt="".concat(It,"-expanded-row-cell");Ut=ae.createElement("div",{className:it()("".concat(It,"-expanded-row"),"".concat(It,"-expanded-row-level-").concat(Qe+1),Vt)},ae.createElement(Ot,{component:"div",prefixCls:It,className:it()(Qt,(0,he.Z)({},"".concat(Qt,"-fixed"),At)),additionalProps:Kt},tn))}var Cn=(0,Ee.Z)((0,Ee.Z)({},ze),{},{width:Pt});Me&&(Cn.position="absolute",Cn.pointerEvents="none");var Dn=ae.createElement("div",(0,Re.Z)({},qt,Ye,{ref:gn?null:le,className:it()(xe,"".concat(It,"-row"),qt==null?void 0:qt.className,(0,he.Z)({},"".concat(It,"-row-extra"),Me)),style:(0,Ee.Z)((0,Ee.Z)({},Cn),qt==null?void 0:qt.style)}),Rt.map(function(Nn,hn){return ae.createElement(pr,{key:hn,rowInfo:jt,column:Nn,colIndex:hn,indent:Qe,index:ve,renderIndex:bt,record:rt,inverse:Me,getHeight:Ie})}));return gn?ae.createElement("div",{ref:le},Dn,Ut):Dn}),nr=z(tr),Uo=nr,ar=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,ze=xe.onColumnResize,Me=xe.getRowKey,Ie=xe.expandedKeys,Ye=xe.prefixCls,rt=xe.childrenColumnName,Qe=xe.emptyNode,bt=xe.scrollX,pt=He(no),Pt=pt.scrollY,Rt=pt.listItemHeight,It=ae.useRef(),At=xt(fe,rt,Ie,Me),Tt=ae.useMemo(function(){var Ut=0;return Le.map(function(tn){var Vt=tn.width,Kt=tn.key;return Ut+=Vt,[Kt,Vt,Ut]})},[Le]),jt=ae.useMemo(function(){return Tt.map(function(Ut){return Ut[2]})},[Tt]);ae.useEffect(function(){Tt.forEach(function(Ut){var tn=(0,De.Z)(Ut,2),Vt=tn[0],Kt=tn[1];ze(Vt,Kt)})},[Tt]),ae.useImperativeHandle(le,function(){var Ut={};return Object.defineProperty(Ut,"scrollLeft",{get:function(){var Vt;return((Vt=It.current)===null||Vt===void 0?void 0:Vt.getScrollInfo().x)||0},set:function(Vt){var Kt;(Kt=It.current)===null||Kt===void 0||Kt.scrollTo({left:Vt})}}),Ut});var gn=function(tn,Vt){var Kt,Qt=(Kt=At[Vt])===null||Kt===void 0?void 0:Kt.record,Cn=tn.onCell;if(Cn){var Dn,Nn=Cn(Qt,Vt);return(Dn=Nn==null?void 0:Nn.rowSpan)!==null&&Dn!==void 0?Dn:1}return 1},cn=function(tn){var Vt=tn.start,Kt=tn.end,Qt=tn.getSize,Cn=tn.offsetY;if(Kt<0)return null;for(var Dn=Le.filter(function(bn){return gn(bn,Vt)===0}),Nn=Vt,hn=function(Pn){if(Dn=Dn.filter(function(Sn){return gn(Sn,Pn)===0}),!Dn.length)return Nn=Pn,"break"},zn=Vt;zn>=0;zn-=1){var An=hn(zn);if(An==="break")break}for(var ra=Le.filter(function(bn){return gn(bn,Kt)!==1}),Xn=Kt,Pa=function(Pn){if(ra=ra.filter(function(Sn){return gn(Sn,Pn)!==1}),!ra.length)return Xn=Math.max(Pn-1,Kt),"break"},ya=Kt;ya<At.length;ya+=1){var On=Pa(ya);if(On==="break")break}for(var La=[],Jn=function(Pn){var Sn=At[Pn];if(!Sn)return"continue";Le.some(function(rn){return gn(rn,Pn)>1})&&La.push(Pn)},ua=Nn;ua<=Xn;ua+=1)var ga=Jn(ua);var Ja=La.map(function(bn){var Pn=At[bn],Sn=Me(Pn.record,bn),rn=function(En){var Wn=bn+En-1,Hn=Me(At[Wn].record,Wn),Ka=Qt(Sn,Hn);return Ka.bottom-Ka.top},Qn=Qt(Sn);return ae.createElement(Uo,{key:bn,data:Pn,rowKey:Sn,index:bn,style:{top:-Cn+Qn.top},extra:!0,getHeight:rn})});return Ja},qt=ae.useMemo(function(){return{columnsOffset:jt}},[jt]),Ln="".concat(Ye,"-tbody"),$n;return At.length?$n=ae.createElement(Wa.Z,{fullHeight:!1,ref:It,className:it()(Ln,"".concat(Ln,"-virtual")),height:Pt,itemHeight:Rt||24,data:At,itemKey:function(tn){return Me(tn.record)},scrollWidth:bt,onVirtualScroll:function(tn){var Vt=tn.x;ve({scrollLeft:Vt})},extraRender:cn},function(Ut,tn,Vt){var Kt=Me(Ut.record,tn);return ae.createElement(Uo,(0,Re.Z)({data:Ut,rowKey:Kt,index:tn},Vt))}):$n=ae.createElement("div",{className:it()("".concat(Ye,"-placeholder"))},ae.createElement(Ot,{component:"div",prefixCls:Ye},Qe)),ae.createElement(Wo.Provider,{value:qt},$n)}),xo=z(ar),Ao=xo,ko=function(le,fe){var ve=fe.ref,xe=fe.onScroll;return ae.createElement(Ao,{ref:ve,data:le,onScroll:xe})},Go=100;function vr(re){var le=re.columns,fe=re.scroll,ve=re.prefixCls,xe=ve===void 0?ro:ve,Le=re.className,ze=re.listItemHeight,Me=fe||{},Ie=Me.x,Ye=Me.y;typeof Ie!="number"&&(Ie=((le||[]).length+1)*Go),typeof Ye!="number"&&(Ye=500);var rt=ae.useMemo(function(){return{scrollY:Ye,listItemHeight:ze}},[Ye,ze]);return ae.createElement(no.Provider,{value:rt},ae.createElement(ka,(0,Re.Z)({},re,{className:it()(Le,"".concat(xe,"-virtual")),scroll:(0,Ee.Z)((0,Ee.Z)({},fe),{},{x:Ie}),components:{body:ko},columns:le,internalHooks:ce,tailor:!0})))}function Vo(re){return E(vr,re)}var Ur=Vo(),Pr=null;function uo(re){return null}var yr=uo;function So(re){return null}var br=So,xr=ne(2738),Cr=ne(68031),Lr=ne(36355),wr=ne(93891),Vr=ne(19716),Xr=ne(8628),Er=ne(31724),Br=ne(58421),fn=ne(71418),Wt=ne(88088);function en(re){return function(fe){let{prefixCls:ve,onExpand:xe,record:Le,expanded:ze,expandable:Me}=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`]:!Me,[`${Ie}-expanded`]:Me&&ze,[`${Ie}-collapsed`]:Me&&!ze}),"aria-label":ze?re.collapse:re.expand,"aria-expanded":ze})}}var dn=en;function Vn(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 ca(re,le){return le?`${le}-${re}`:`${re}`}function Ia(re,le){return typeof re=="function"?re(le):re}function Ta(re,le){const fe=Ia(re,le);return Object.prototype.toString.call(fe)==="[object Object]"?"":fe}var za={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=za,mo=ne(7657),Ua=function(le,fe){return ae.createElement(mo.Z,(0,Re.Z)({},le,{ref:fe,icon:Ma}))},Ko=ae.forwardRef(Ua),Zo=Ko,Ho=ne(56762);function Fr(re){const le=ae.useRef(re),fe=(0,Ho.Z)();return[()=>le.current,ve=>{le.current=ve,fe()}]}var Co=ne(3113),Do=ne(24905),Fa=ne(38854),or=ne(64165),Nr=ne(20834),rr=ne(40875),ir=ne(5112),Xo=ne(17574),io=ne(47472),lr=ne(92832);function gr(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(lr.default,{prefix:ae.createElement(io.Z,null),placeholder:Le.filterSearchPlaceholder,onChange:fe,value:le,htmlSize:1,className:`${xe}-filter-dropdown-search-input`})):null}var Yo=gr,Yr=ne(10228);const Oi=re=>{const{keyCode:le}=re;le===Yr.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 jo(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)(jo(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:ze}=re;return le.map((Me,Ie)=>{const Ye=String(Me.value);if(Me.children)return{key:Ye||Ie,label:Me.text,popupClassName:`${fe}-dropdown-submenu`,children:Qr({filters:Me.children,prefixCls:fe,filteredKeys:ve,filterMultiple:xe,searchValue:Le,filterSearch:ze})};const rt=xe?Do.default:ir.ZP,Qe={key:Me.value!==void 0?Ye:Ie,label:ae.createElement(ae.Fragment,null,ae.createElement(rt,{checked:ve.includes(Ye)}),ae.createElement("span",null,Me.text))};return Le.trim()?typeof ze=="function"?ze(Le,Me)?Qe:null:Jr(Le,Me.text)?Qe:null:Qe})}function Di(re){var le,fe;const{tablePrefixCls:ve,prefixCls:xe,column:Le,dropdownPrefixCls:ze,columnKey:Me,filterMultiple:Ie,filterMode:Ye="menu",filterSearch:rt=!1,filterState:Qe,triggerFilter:bt,locale:pt,children:Pt,getPopupContainer:Rt}=re,{filterDropdownOpen:It,onFilterDropdownOpenChange:At,filterResetToDefaultFilteredValue:Tt,defaultFilteredValue:jt,filterDropdownVisible:gn,onFilterDropdownVisibleChange:cn}=Le,[qt,Ln]=ae.useState(!1),$n=!!(Qe&&(!((le=Qe.filteredKeys)===null||le===void 0)&&le.length||Qe.forceFiltered)),Ut=ln=>{Ln(ln),At==null||At(ln),cn==null||cn(ln)},tn=(fe=It!=null?It:gn)!==null&&fe!==void 0?fe:qt,Vt=Qe==null?void 0:Qe.filteredKeys,[Kt,Qt]=Fr(Vt||[]),Cn=ln=>{let{selectedKeys:En}=ln;Qt(En)},Dn=(ln,En)=>{let{node:Wn,checked:Hn}=En;Cn(Ie?{selectedKeys:ln}:{selectedKeys:Hn&&Wn.key?[Wn.key]:[]})};ae.useEffect(()=>{qt&&Cn({selectedKeys:Vt||[]})},[Vt]);const[Nn,hn]=ae.useState([]),zn=ln=>{hn(ln)},[An,ra]=ae.useState(""),Xn=ln=>{const{value:En}=ln.target;ra(En)};ae.useEffect(()=>{qt||ra("")},[qt]);const Pa=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:Me,filteredKeys:En})},ya=()=>{Ut(!1),Pa(Kt())},On=function(){let{confirm:ln,closeDropdown:En}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};ln&&Pa([]),En&&Ut(!1),ra(""),Qt(Tt?(jt||[]).map(Wn=>String(Wn)):[])},La=function(){let{closeDropdown:ln}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};ln&&Ut(!1),Pa(Kt())},Jn=ln=>{ln&&Vt!==void 0&&Qt(Vt||[]),Ut(ln),!ln&&!Le.filterDropdown&&ya()},ua=it()({[`${ze}-menu-without-submenu`]:!Ti(Le.filters||[])}),ga=ln=>{if(ln.target.checked){const En=jo(Le==null?void 0:Le.filters).map(Wn=>String(Wn));Qt(En)}else Qt([])},Ja=ln=>{let{filters:En}=ln;return(En||[]).map((Wn,Hn)=>{const Ka=String(Wn.value),Ra={title:Wn.text,key:Wn.value!==void 0?Ka:Hn};return Wn.children&&(Ra.children=Ja({filters:Wn.children})),Ra})},bn=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(Wn=>bn(Wn)))||[]})};let Pn;if(typeof Le.filterDropdown=="function")Pn=Le.filterDropdown({prefixCls:`${ze}-custom`,setSelectedKeys:ln=>Cn({selectedKeys:ln}),selectedKeys:Kt(),confirm:La,clearFilters:On,filters:Le.filters,visible:tn,close:()=>{Ut(!1)}});else if(Le.filterDropdown)Pn=Le.filterDropdown;else{const ln=Kt()||[],En=()=>(Le.filters||[]).length===0?ae.createElement(or.Z,{image:or.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(Yo,{filterSearch:rt,value:An,onChange:Xn,tablePrefixCls:ve,locale:pt}),ae.createElement("div",{className:`${ve}-filter-dropdown-tree`},Ie?ae.createElement(Do.default,{checked:ln.length===jo(Le.filters).length,indeterminate:ln.length>0&&ln.length<jo(Le.filters).length,className:`${ve}-filter-dropdown-checkall`,onChange:ga},pt.filterCheckall):null,ae.createElement(Xo.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Ie,checkStrictly:!Ie,className:`${ze}-menu`,onCheck:Dn,checkedKeys:ln,selectedKeys:ln,showIcon:!1,treeData:Ja({filters:Le.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:An.trim()?Hn=>typeof rt=="function"?rt(An,bn(Hn)):Jr(An,Hn.title):void 0}))):ae.createElement(ae.Fragment,null,ae.createElement(Yo,{filterSearch:rt,value:An,onChange:Xn,tablePrefixCls:ve,locale:pt}),ae.createElement(Nr.default,{selectable:!0,multiple:Ie,prefixCls:`${ze}-menu`,className:ua,onSelect:Cn,onDeselect:Cn,selectedKeys:ln,getPopupContainer:Rt,openKeys:Nn,onOpenChange:zn,items:Qr({filters:Le.filters||[],filterSearch:rt,prefixCls:xe,filteredKeys:Kt(),filterMultiple:Ie,searchValue:An})})),Wn=()=>Tt?(0,Be.Z)((jt||[]).map(Hn=>String(Hn)),ln,!0):ln.length===0;Pn=ae.createElement(ae.Fragment,null,En(),ae.createElement("div",{className:`${xe}-dropdown-btns`},ae.createElement(Co.ZP,{type:"link",size:"small",disabled:Wn(),onClick:()=>On()},pt.filterReset),ae.createElement(Co.ZP,{type:"primary",size:"small",onClick:ya},pt.filterConfirm)))}Le.filterDropdown&&(Pn=ae.createElement(rr.J,{selectable:void 0},Pn));const Sn=()=>ae.createElement(Ii,{className:`${xe}-dropdown`},Pn);let rn;typeof Le.filterIcon=="function"?rn=Le.filterIcon($n):Le.filterIcon?rn=Le.filterIcon:rn=ae.createElement(Zo,null);const{direction:Qn}=ae.useContext(Lr.E_);return ae.createElement("div",{className:`${xe}-column`},ae.createElement("span",{className:`${ve}-column-title`},Pt),ae.createElement(Fa.Z,{dropdownRender:Sn,trigger:["click"],open:tn,onOpenChange:Jn,getPopupContainer:Rt,placement:Qn==="rtl"?"bottomLeft":"bottomRight"},ae.createElement("span",{role:"button",tabIndex:-1,className:it()(`${xe}-trigger`,{active:$n}),onClick:ln=>{ln.stopPropagation()}},rn)))}var zi=Di;function $r(re,le,fe){let ve=[];return(re||[]).forEach((xe,Le)=>{var ze;const Me=ca(Le,fe);if(xe.filters||"filterDropdown"in xe||"onFilter"in xe)if("filteredValue"in xe){let Ie=xe.filteredValue;"filterDropdown"in xe||(Ie=(ze=Ie==null?void 0:Ie.map(String))!==null&&ze!==void 0?ze:Ie),ve.push({column:xe,key:Vn(xe,Me),filteredKeys:Ie,forceFiltered:xe.filtered})}else ve.push({column:xe,key:Vn(xe,Me),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,Me))))}),ve}function qr(re,le,fe,ve,xe,Le,ze,Me){return fe.map((Ie,Ye)=>{const rt=ca(Ye,Me),{filterMultiple:Qe=!0,filterMode:bt,filterSearch:pt}=Ie;let Pt=Ie;if(Pt.filters||Pt.filterDropdown){const Rt=Vn(Pt,rt),It=ve.find(At=>{let{key:Tt}=At;return Rt===Tt});Pt=Object.assign(Object.assign({},Pt),{title:At=>ae.createElement(zi,{tablePrefixCls:re,prefixCls:`${re}-filter`,dropdownPrefixCls:le,column:Pt,columnKey:Rt,filterState:It,filterMultiple:Qe,filterMode:bt,filterSearch:pt,triggerFilter:Le,locale:xe,getPopupContainer:ze},Ia(Ie.title,At))})}return"children"in Pt&&(Pt=Object.assign(Object.assign({},Pt),{children:qr(re,le,Pt.children,ve,xe,Le,ze,rt)})),Pt})}function ei(re){const le={};return re.forEach(fe=>{let{key:ve,filteredKeys:xe,column:Le}=fe;const{filters:ze,filterDropdown:Me}=Le;if(Me)le[ve]=xe||null;else if(Array.isArray(xe)){const Ie=jo(ze);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:ze}=ve;return xe&&ze&&ze.length?fe.filter(Me=>ze.some(Ie=>{const Ye=jo(Le),rt=Ye.findIndex(bt=>String(bt)===String(Ie)),Qe=rt!==-1?Ye[rt]:Ie;return xe(Qe,Me)})):fe},re)}const ni=re=>re.flatMap(le=>"children"in le?[le].concat((0,Ct.Z)(ni(le.children||[]))):[le]);function Mi(re){let{prefixCls:le,dropdownPrefixCls:fe,mergedColumns:ve,onFilterChange:xe,getPopupContainer:Le,locale:ze}=re;const Me=ae.useMemo(()=>ni(ve||[]),[ve]),[Ie,Ye]=ae.useState(()=>$r(Me,!0)),rt=ae.useMemo(()=>{const Pt=$r(Me,!1);if(Pt.length===0)return Pt;let Rt=!0,It=!0;if(Pt.forEach(At=>{let{filteredKeys:Tt}=At;Tt!==void 0?Rt=!1:It=!1}),Rt){const At=(Me||[]).map((Tt,jt)=>Vn(Tt,ca(jt)));return Ie.filter(Tt=>{let{key:jt}=Tt;return At.includes(jt)}).map(Tt=>{const jt=Me[At.findIndex(gn=>gn===Tt.key)];return Object.assign(Object.assign({},Tt),{column:Object.assign(Object.assign({},Tt.column),jt),forceFiltered:jt.filtered})})}return Pt},[Me,Ie]),Qe=ae.useMemo(()=>ei(rt),[rt]),bt=Pt=>{const Rt=rt.filter(It=>{let{key:At}=It;return At!==Pt.key});Rt.push(Pt),Ye(Rt),xe(ei(Rt),Rt)};return[Pt=>qr(le,fe,Pt,rt,ze,bt,Le),rt,Qe]}var Ri=Mi;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 Me=function(Ie){Ie.forEach((Ye,rt)=>{const Qe=fe(Ye,rt);ze.set(Qe,Ye),Ye&&typeof Ye=="object"&&le in Ye&&Me(Ye[le]||[])})};const ze=new Map;Me(re),ve.current={data:re,childrenColumnName:le,kvMap:ze,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"]),[ze,Me]=(0,ae.useState)(()=>({current:"defaultCurrent"in Le?Le.defaultCurrent:1,pageSize:"defaultPageSize"in Le?Le.defaultPageSize:ai})),Ie=(0,ki.Z)(ze,Le,{total:xe>0?xe:re}),Ye=Math.ceil((xe||re)/Ie.pageSize);Ie.current>Ye&&(Ie.current=Ye||1);const rt=(bt,pt)=>{Me({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 No={},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:ze,onSelect:Me,onSelectAll:Ie,onSelectInvert:Ye,onSelectNone:rt,onSelectMultiple:Qe,columnWidth:bt,type:pt,selections:Pt,fixed:Rt,renderCell:It,hideSelectAll:At,checkStrictly:Tt=!0}=le||{},{prefixCls:jt,data:gn,pageData:cn,getRecordByKey:qt,getRowKey:Ln,expandType:$n,childrenColumnName:Ut,locale:tn,getPopupContainer:Vt}=re,[Kt,Qt]=(0,Wi.Z)(ve||xe||ri,{value:ve}),Cn=ae.useRef(new Map),Dn=(0,ae.useCallback)(bn=>{if(fe){const Pn=new Map;bn.forEach(Sn=>{let rn=qt(Sn);!rn&&Cn.current.has(Sn)&&(rn=Cn.current.get(Sn)),Pn.set(Sn,rn)}),Cn.current=Pn}},[qt,fe]);ae.useEffect(()=>{Dn(Kt)},[Kt]);const{keyEntities:Nn}=(0,ae.useMemo)(()=>{if(Tt)return{keyEntities:null};let bn=gn;if(fe){const Pn=new Set(gn.map((rn,Qn)=>Ln(rn,Qn))),Sn=Array.from(Cn.current).reduce((rn,Qn)=>{let[ln,En]=Qn;return Pn.has(ln)?rn:rn.concat(En)},[]);bn=[].concat((0,Ct.Z)(bn),(0,Ct.Z)(Sn))}return(0,_i.I8)(bn,{externalGetKey:Ln,childrenPropName:Ut})},[gn,Ln,Tt,Ut,fe]),hn=(0,ae.useMemo)(()=>ii(Ut,cn),[Ut,cn]),zn=(0,ae.useMemo)(()=>{const bn=new Map;return hn.forEach((Pn,Sn)=>{const rn=Ln(Pn,Sn),Qn=(Le?Le(Pn):null)||{};bn.set(rn,Qn)}),bn},[hn,Ln,Le]),An=(0,ae.useCallback)(bn=>{var Pn;return!!(!((Pn=zn.get(Ln(bn)))===null||Pn===void 0)&&Pn.disabled)},[zn,Ln]),[ra,Xn]=(0,ae.useMemo)(()=>{if(Tt)return[Kt||[],[]];const{checkedKeys:bn,halfCheckedKeys:Pn}=(0,Or.S)(Kt,!0,Nn,An);return[bn||[],Pn]},[Kt,Tt,Nn,An]),Pa=(0,ae.useMemo)(()=>{const bn=pt==="radio"?ra.slice(0,1):ra;return new Set(bn)},[ra,pt]),ya=(0,ae.useMemo)(()=>pt==="radio"?new Set:new Set(Xn),[Xn,pt]),[On,La]=(0,ae.useState)(null);ae.useEffect(()=>{le||Qt(ri)},[!!le]);const Jn=(0,ae.useCallback)((bn,Pn)=>{let Sn,rn;Dn(bn),fe?(Sn=bn,rn=bn.map(Qn=>Cn.current.get(Qn))):(Sn=[],rn=[],bn.forEach(Qn=>{const ln=qt(Qn);ln!==void 0&&(Sn.push(Qn),rn.push(ln))})),Qt(Sn),ze==null||ze(Sn,rn,{type:Pn})},[Qt,qt,ze,fe]),ua=(0,ae.useCallback)((bn,Pn,Sn,rn)=>{if(Me){const Qn=Sn.map(ln=>qt(ln));Me(qt(bn),Pn,Qn,rn)}Jn(Sn,"single")},[Me,qt,Jn]),ga=(0,ae.useMemo)(()=>!Pt||At?null:(Pt===!0?[Ir,Tr,Dr]:Pt).map(Pn=>Pn===Ir?{key:"all",text:tn.selectionAll,onSelect(){Jn(gn.map((Sn,rn)=>Ln(Sn,rn)).filter(Sn=>{const rn=zn.get(Sn);return!(rn!=null&&rn.disabled)||Pa.has(Sn)}),"all")}}:Pn===Tr?{key:"invert",text:tn.selectInvert,onSelect(){const Sn=new Set(Pa);cn.forEach((Qn,ln)=>{const En=Ln(Qn,ln),Wn=zn.get(En);Wn!=null&&Wn.disabled||(Sn.has(En)?Sn.delete(En):Sn.add(En))});const rn=Array.from(Sn);Ye&&Ye(rn),Jn(rn,"invert")}}:Pn===Dr?{key:"none",text:tn.selectNone,onSelect(){rt==null||rt(),Jn(Array.from(Pa).filter(Sn=>{const rn=zn.get(Sn);return rn==null?void 0:rn.disabled}),"none")}}:Pn).map(Pn=>Object.assign(Object.assign({},Pn),{onSelect:function(){for(var Sn,rn,Qn=arguments.length,ln=new Array(Qn),En=0;En<Qn;En++)ln[En]=arguments[En];(rn=Pn.onSelect)===null||rn===void 0||(Sn=rn).call.apply(Sn,[Pn].concat(ln)),La(null)}})),[Pt,Pa,cn,Ln,Ye,Jn]);return[(0,ae.useCallback)(bn=>{var Pn;if(!le)return bn.filter(qn=>qn!==No);let Sn=(0,Ct.Z)(bn);const rn=new Set(Pa),Qn=hn.map(Ln).filter(qn=>!zn.get(qn).disabled),ln=Qn.every(qn=>rn.has(qn)),En=Qn.some(qn=>rn.has(qn)),Wn=()=>{const qn=[];ln?Qn.forEach(fa=>{rn.delete(fa),qn.push(fa)}):Qn.forEach(fa=>{rn.has(fa)||(rn.add(fa),qn.push(fa))});const na=Array.from(rn);Ie==null||Ie(!ln,na.map(fa=>qt(fa)),qn.map(fa=>qt(fa))),Jn(na,"all"),La(null)};let Hn;if(pt!=="radio"){let qn;if(ga){const kn={getPopupContainer:Vt,items:ga.map((Va,Za)=>{const{key:ao,text:po,onSelect:ho}=Va;return{key:ao!=null?ao:Za,onClick:()=>{ho==null||ho(Qn)},label:po}})};qn=ae.createElement("div",{className:`${jt}-selection-extra`},ae.createElement(Fa.Z,{menu:kn,getPopupContainer:Vt},ae.createElement("span",null,ae.createElement(ji.Z,null))))}const na=hn.map((kn,Va)=>{const Za=Ln(kn,Va),ao=zn.get(Za)||{};return Object.assign({checked:rn.has(Za)},ao)}).filter(kn=>{let{disabled:Va}=kn;return Va}),fa=!!na.length&&na.length===hn.length,Na=fa&&na.every(kn=>{let{checked:Va}=kn;return Va}),$a=fa&&na.some(kn=>{let{checked:Va}=kn;return Va});Hn=!At&&ae.createElement("div",{className:`${jt}-selection`},ae.createElement(Do.default,{checked:fa?Na:!!hn.length&&ln,indeterminate:fa?!Na&&$a:!ln&&En,onChange:Wn,disabled:hn.length===0||fa,"aria-label":qn?"Custom selection":"Select all",skipGroup:!0}),qn)}let Ka;pt==="radio"?Ka=(qn,na,fa)=>{const Na=Ln(na,fa),$a=rn.has(Na);return{node:ae.createElement(ir.ZP,Object.assign({},zn.get(Na),{checked:$a,onClick:kn=>kn.stopPropagation(),onChange:kn=>{rn.has(Na)||ua(Na,!0,[Na],kn.nativeEvent)}})),checked:$a}}:Ka=(qn,na,fa)=>{var Na;const $a=Ln(na,fa),kn=rn.has($a),Va=ya.has($a),Za=zn.get($a);let ao;return $n==="nest"?ao=Va:ao=(Na=Za==null?void 0:Za.indeterminate)!==null&&Na!==void 0?Na:Va,{node:ae.createElement(Do.default,Object.assign({},Za,{indeterminate:ao,checked:kn,skipGroup:!0,onClick:po=>po.stopPropagation(),onChange:po=>{let{nativeEvent:ho}=po;const{shiftKey:Qo}=ho;let wo=-1,so=-1;if(Qo&&Tt){const qa=new Set([On,$a]);Qn.some((Xa,Oa)=>{if(qa.has(Xa))if(wo===-1)wo=Oa;else return so=Oa,!0;return!1})}if(so!==-1&&wo!==so&&Tt){const qa=Qn.slice(wo,so+1),Xa=[];kn?qa.forEach(ha=>{rn.has(ha)&&(Xa.push(ha),rn.delete(ha))}):qa.forEach(ha=>{rn.has(ha)||(Xa.push(ha),rn.add(ha))});const Oa=Array.from(rn);Qe==null||Qe(!kn,Oa.map(ha=>qt(ha)),Xa.map(ha=>qt(ha))),Jn(Oa,"multiple")}else{const qa=ra;if(Tt){const Xa=kn?(0,oi._5)(qa,$a):(0,oi.L0)(qa,$a);ua($a,!kn,Xa,ho)}else{const Xa=(0,Or.S)([].concat((0,Ct.Z)(qa),[$a]),!0,Nn,An),{checkedKeys:Oa,halfCheckedKeys:ha}=Xa;let vo=Oa;if(kn){const Mo=new Set(Oa);Mo.delete($a),vo=(0,Or.S)(Array.from(Mo),{checked:!1,halfCheckedKeys:ha},Nn,An).checkedKeys}ua($a,!kn,vo,ho)}}La(kn?null:$a)}})),checked:kn}};const Ra=(qn,na,fa)=>{const{node:Na,checked:$a}=Ka(qn,na,fa);return It?It($a,na,fa,Na):Na};if(!Sn.includes(No))if(Sn.findIndex(qn=>{var na;return((na=qn[Kn])===null||na===void 0?void 0:na.columnType)==="EXPAND_COLUMN"})===0){const[qn,...na]=Sn;Sn=[qn,No].concat((0,Ct.Z)(na))}else Sn=[No].concat((0,Ct.Z)(Sn));const fo=Sn.indexOf(No);Sn=Sn.filter((qn,na)=>qn!==No||na===fo);const wa=Sn[fo-1],lo=Sn[fo+1];let Ea=Rt;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&&((Pn=wa[Kn])===null||Pn===void 0?void 0:Pn.columnType)==="EXPAND_COLUMN"&&wa.fixed===void 0&&(wa.fixed=Ea);const Qa=it()(`${jt}-selection-col`,{[`${jt}-selection-col-with-dropdown`]:Pt&&pt==="checkbox"}),zo={fixed:Ea,width:bt,className:`${jt}-selection-column`,title:le.columnTitle||Hn,render:Ra,onCell:le.onCell,[Kn]:{className:Qa}};return Sn.map(qn=>qn===No?zo:qn)},[Ln,hn,le,ra,Pa,ya,bt,ga,$n,On,zn,Qe,ua,An]),Pa]},Vi=ne(89489),Xi=ne(59477),Yi=ne(6848);const dr="ascend",zr="descend";function sr(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 Mr(re,le,fe){let ve=[];function xe(Le,ze){ve.push({column:Le,key:Vn(Le,ze),multiplePriority:sr(Le),sortOrder:Le.sortOrder})}return(re||[]).forEach((Le,ze)=>{const Me=ca(ze,fe);Le.children?("sortOrder"in Le&&xe(Le,Me),ve=[].concat((0,Ct.Z)(ve),(0,Ct.Z)(Mr(Le.children,le,Me)))):Le.sorter&&("sortOrder"in Le?xe(Le,Me):le&&Le.defaultSortOrder&&ve.push({column:Le,key:Vn(Le,Me),multiplePriority:sr(Le),sortOrder:Le.defaultSortOrder}))}),ve}function gi(re,le,fe,ve,xe,Le,ze,Me){return(le||[]).map((Ie,Ye)=>{const rt=ca(Ye,Me);let Qe=Ie;if(Qe.sorter){const bt=Qe.sortDirections||xe,pt=Qe.showSorterTooltip===void 0?ze:Qe.showSorterTooltip,Pt=Vn(Qe,rt),Rt=fe.find($n=>{let{key:Ut}=$n;return Ut===Pt}),It=Rt?Rt.sortOrder:null,At=Ji(bt,It);let Tt;if(Ie.sortIcon)Tt=Ie.sortIcon({sortOrder:It});else{const $n=bt.includes(dr)&&ae.createElement(Xi.Z,{className:it()(`${re}-column-sorter-up`,{active:It===dr})}),Ut=bt.includes(zr)&&ae.createElement(Vi.Z,{className:it()(`${re}-column-sorter-down`,{active:It===zr})});Tt=ae.createElement("span",{className:it()(`${re}-column-sorter`,{[`${re}-column-sorter-full`]:!!($n&&Ut)})},ae.createElement("span",{className:`${re}-column-sorter-inner`,"aria-hidden":"true"},$n,Ut))}const{cancelSort:jt,triggerAsc:gn,triggerDesc:cn}=Le||{};let qt=jt;At===zr?qt=cn:At===dr&&(qt=gn);const Ln=typeof pt=="object"?pt:{title:qt};Qe=Object.assign(Object.assign({},Qe),{className:it()(Qe.className,{[`${re}-column-sort`]:It}),title:$n=>{const Ut=ae.createElement("div",{className:`${re}-column-sorters`},ae.createElement("span",{className:`${re}-column-title`},Ia(Ie.title,$n)),Tt);return pt?ae.createElement(Yi.Z,Object.assign({},Ln),Ut):Ut},onHeaderCell:$n=>{const Ut=Ie.onHeaderCell&&Ie.onHeaderCell($n)||{},tn=Ut.onClick,Vt=Ut.onKeyDown;Ut.onClick=Cn=>{ve({column:Ie,key:Pt,sortOrder:At,multiplePriority:sr(Ie)}),tn==null||tn(Cn)},Ut.onKeyDown=Cn=>{Cn.keyCode===Yr.Z.ENTER&&(ve({column:Ie,key:Pt,sortOrder:At,multiplePriority:sr(Ie)}),Vt==null||Vt(Cn))};const Kt=Ta(Ie.title,{}),Qt=Kt==null?void 0:Kt.toString();return It?Ut["aria-sort"]=It==="ascend"?"ascending":"descending":Ut["aria-label"]=Qt||"",Ut.className=it()(Ut.className,`${re}-column-has-sorters`),Ut.tabIndex=0,Ie.ellipsis&&(Ut.title=(Kt!=null?Kt:"").toString()),Ut}})}return"children"in Qe&&(Qe=Object.assign(Object.assign({},Qe),{children:gi(re,Qe.children,fe,ve,xe,Le,ze,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((ze,Me)=>Me.multiplePriority-ze.multiplePriority),xe=re.slice(),Le=ve.filter(ze=>{let{column:{sorter:Me},sortOrder:Ie}=ze;return li(Me)&&Ie});return Le.length?xe.sort((ze,Me)=>{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(ze,Me,Qe);if(pt!==0)return Qe===dr?pt:-pt}}return 0}).map(ze=>{const Me=ze[fe];return Me?Object.assign(Object.assign({},ze),{[fe]:Rr(Me,le,fe)}):ze}):xe}function Qi(re){let{prefixCls:le,mergedColumns:fe,onSorterChange:ve,sortDirections:xe,tableLocale:Le,showSorterTooltip:ze}=re;const[Me,Ie]=ae.useState(Mr(fe,!0)),Ye=ae.useMemo(()=>{let Pt=!0;const Rt=Mr(fe,!1);if(!Rt.length)return Me;const It=[];function At(jt){Pt?It.push(jt):It.push(Object.assign(Object.assign({},jt),{sortOrder:null}))}let Tt=null;return Rt.forEach(jt=>{Tt===null?(At(jt),jt.sortOrder&&(jt.multiplePriority===!1?Pt=!1:Tt=!0)):(Tt&&jt.multiplePriority!==!1||(Pt=!1),At(jt))}),It},[fe,Me]),rt=ae.useMemo(()=>{const Pt=Ye.map(Rt=>{let{column:It,sortOrder:At}=Rt;return{column:It,order:At}});return{sortColumns:Pt,sortColumn:Pt[0]&&Pt[0].column,sortOrder:Pt[0]&&Pt[0].order}},[Ye]);function Qe(Pt){let Rt;Pt.multiplePriority===!1||!Ye.length||Ye[0].multiplePriority===!1?Rt=[Pt]:Rt=[].concat((0,Ct.Z)(Ye.filter(It=>{let{key:At}=It;return At!==Pt.key})),[Pt]),Ie(Rt),ve(si(Rt),Rt)}return[Pt=>gi(le,Pt,Ye,Qe,xe,Le,ze),Ye,rt,()=>si(Ye)]}function ci(re,le){return re.map(fe=>{const ve=Object.assign({},fe);return ve.title=Ia(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=da((re,le)=>{const{_renderTimes:fe}=re,{_renderTimes:ve}=le;return fe!==ve}),tl=Vo((re,le)=>{const{_renderTimes:fe}=re,{_renderTimes:ve}=le;return fe!==ve}),Jo=ne(64993),cr=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,ze)=>({[`&${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 -${ze+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({},cr.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:ze,lineType:Me,tableBorderColor:Ie,tableExpandIconBg:Ye,tableExpandColumnWidth:rt,borderRadius:Qe,fontSize:bt,fontSizeSM:pt,lineHeight:Pt,tablePaddingVertical:Rt,tablePaddingHorizontal:It,tableExpandedRowBg:At,paddingXXS:Tt}=re,jt=ve/2-Le,gn=jt*2+Le*3,cn=`${Le}px ${Me} ${Ie}`,qt=Tt-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:gn,height:gn,padding:0,color:"inherit",lineHeight:`${gn}px`,background:Ye,border:cn,borderRadius:Qe,transform:`scale(${ve/gn})`,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:ze},[`tr${le}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:At}},[`${fe}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${le}-expanded-row-fixed`]:{position:"relative",margin:`-${Rt}px -${It}px`,padding:`${Rt}px ${It}px`}}}},dl=re=>{const{componentCls:le,antCls:fe,iconCls:ve,tableFilterDropdownWidth:xe,tableFilterDropdownSearchWidth:Le,paddingXXS:ze,paddingXS:Me,colorText:Ie,lineWidth:Ye,lineType:rt,tableBorderColor:Qe,tableHeaderIconColor:bt,fontSizeSM:pt,tablePaddingHorizontal:Pt,borderRadius:Rt,motionDurationSlow:It,colorTextDescription:At,colorPrimary:Tt,tableHeaderFilterActiveBg:jt,colorTextDisabled:gn,tableFilterDropdownBg:cn,tableFilterDropdownHeight:qt,controlItemBgHover:Ln,controlItemBgActive:$n,boxShadowSecondary:Ut,filterDropdownMenuBg:tn}=re,Vt=`${fe}-dropdown`,Kt=`${le}-filter-dropdown`,Qt=`${fe}-tree`,Cn=`${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:-ze,marginInline:`${ze}px ${-Pt/2}px`,padding:`0 ${ze}px`,color:bt,fontSize:pt,borderRadius:Rt,cursor:"pointer",transition:`all ${It}`,"&:hover":{color:At,background:jt},"&.active":{color:Tt}}}},{[`${fe}-dropdown`]:{[Kt]:Object.assign(Object.assign({},(0,cr.Wf)(re)),{minWidth:xe,backgroundColor:cn,borderRadius:Rt,boxShadow:Ut,overflow:"hidden",[`${Vt}-menu`]:{maxHeight:qt,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:tn,"&:empty::after":{display:"block",padding:`${Me}px 0`,color:gn,fontSize:pt,textAlign:"center",content:'"Not Found"'}},[`${Kt}-tree`]:{paddingBlock:`${Me}px 0`,paddingInline:Me,[Qt]:{padding:0},[`${Qt}-treenode ${Qt}-node-content-wrapper:hover`]:{backgroundColor:Ln},[`${Qt}-treenode-checkbox-checked ${Qt}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:$n}}},[`${Kt}-search`]:{padding:Me,borderBottom:Cn,"&-input":{input:{minWidth:Le},[ve]:{color:gn}}},[`${Kt}-checkall`]:{width:"100%",marginBottom:ze,marginInlineStart:ze},[`${Kt}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Me-Ye}px ${Me}px`,overflow:"hidden",borderTop:Cn}})}},{[`${fe}-dropdown ${Kt}, ${Kt}-submenu`]:{[`${fe}-checkbox-wrapper + span`]:{paddingInlineStart:Me,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:ze,zIndexTableSticky:Me}=re,Ie=ve;return{[`${le}-wrapper`]:{[`
|
|
${le}-cell-fix-left,
|
|
${le}-cell-fix-right
|
|
`]:{position:"sticky !important",zIndex:Le,background:ze},[`
|
|
${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:Me+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:ze,tableHeaderIconColor:Me,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+ze*2,[`&${le}-selection-col-with-dropdown`]:{width:Ye+xe+Le/4+ze*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:Me,fontSize:xe,verticalAlign:"baseline","&:hover":{color:Ie}}}}}},hl=re=>{const{componentCls:le}=re,fe=(ve,xe,Le,ze)=>({[`${le}${le}-${ve}`]:{fontSize:ze,[`
|
|
${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:ze,zIndexTableSticky:Me,stickyScrollBarBorderRadius:Ie}=re,Ye=`${re.lineWidth}px ${re.lineType} ${re.tableBorderColor}`;return{[`${le}-wrapper`]:{[`${le}-sticky`]:{"&-holder":{position:"sticky",zIndex:Me,background:re.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Le}px !important`,zIndex:Me,display:"flex",alignItems:"center",background:ze,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:ze,tableBorderColor:Me,tableFontSize:Ie,tableBg:Ye,tableRadius:rt,tableHeaderTextColor:Qe,motionDurationMid:bt,tableHeaderBg:pt,tableHeaderCellSplitColor:Pt,tableRowHoverBg:Rt,tableSelectedRowBg:It,tableSelectedRowHoverBg:At,tableFooterTextColor:Tt,tableFooterBg:jt,paddingContentVerticalLG:gn}=re,cn=`${Le}px ${ze} ${Me}`;return{[`${le}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,cr.dF)()),{[le]:Object.assign(Object.assign({},(0,cr.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:`${gn}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:cn,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:cn,[`
|
|
> ${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:cn,transition:`background ${bt} ease`},[`
|
|
&${le}-row:hover > th,
|
|
&${le}-row:hover > td,
|
|
> th${le}-cell-row-hover,
|
|
> td${le}-cell-row-hover
|
|
`]:{background:Rt},[`&${le}-row-selected`]:{"> th, > td":{background:It},"&:hover > th, &:hover > td":{background:At}}}},[`${le}-footer`]:{padding:`${ve}px ${xe}px`,color:Tt,background:jt}})}};var yl=(0,nl.Z)("Table",re=>{const{colorTextHeading:le,colorSplit:fe,colorIcon:ve,colorIconHover:xe,opacityLoading:Le,colorBgContainer:ze,controlInteractiveSize:Me,headerBg:Ie,headerColor:Ye,headerSortActiveBg:rt,headerSortHoverBg:Qe,bodySortBg:bt,rowHoverBg:pt,rowSelectedBg:Pt,rowSelectedHoverBg:Rt,rowExpandedBg:It,cellPaddingBlock:At,cellPaddingInline:Tt,cellPaddingBlockMD:jt,cellPaddingInlineMD:gn,cellPaddingBlockSM:cn,cellPaddingInlineSM:qt,borderColor:Ln,footerBg:$n,footerColor:Ut,headerBorderRadius:tn,cellFontSize:Vt,cellFontSizeMD:Kt,cellFontSizeSM:Qt,headerSplitColor:Cn,fixedHeaderSortActiveBg:Dn,headerFilterHoverBg:Nn,filterDropdownBg:hn,expandIconBg:zn,selectionColumnWidth:An,stickyScrollBarBg:ra}=re,Xn=new Jo.C(ve),Pa=new Jo.C(xe),ya=2,On=(0,al.TS)(re,{tableFontSize:Vt,tableBg:ze,tableRadius:tn,tablePaddingVertical:At,tablePaddingHorizontal:Tt,tablePaddingVerticalMiddle:jt,tablePaddingHorizontalMiddle:gn,tablePaddingVerticalSmall:cn,tablePaddingHorizontalSmall:qt,tableBorderColor:Ln,tableHeaderTextColor:Ye,tableHeaderBg:Ie,tableFooterTextColor:Ut,tableFooterBg:$n,tableHeaderCellSplitColor:Cn,tableHeaderSortBg:rt,tableHeaderSortHoverBg:Qe,tableHeaderIconColor:Xn.clone().setAlpha(Xn.getAlpha()*Le).toRgbString(),tableHeaderIconColorHover:Pa.clone().setAlpha(Pa.getAlpha()*Le).toRgbString(),tableBodySortBg:bt,tableFixedHeaderSortActiveBg:Dn,tableHeaderFilterActiveBg:Nn,tableFilterDropdownBg:hn,tableRowHoverBg:pt,tableSelectedRowBg:Pt,tableSelectedRowHoverBg:Rt,zIndexTableFixed:ya,zIndexTableSticky:ya+1,tableFontSizeMiddle:Kt,tableFontSizeSmall:Qt,tableSelectionColumnWidth:An,tableExpandIconBg:zn,tableExpandColumnWidth:Me+2*re.padding,tableExpandedRowBg:It,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:ra,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:ze,controlItemBgActiveHover:Me,padding:Ie,paddingSM:Ye,paddingXS:rt,colorBorderSecondary:Qe,borderRadiusLG:bt,fontSize:pt,controlHeight:Pt,colorTextPlaceholder:Rt}=re,It=new Jo.C(xe).onBackground(fe).toHexShortString(),At=new Jo.C(Le).onBackground(fe).toHexShortString(),Tt=new Jo.C(le).onBackground(fe).toHexShortString();return{headerBg:Tt,headerColor:ve,headerSortActiveBg:It,headerSortHoverBg:At,bodySortBg:Tt,rowHoverBg:Tt,rowSelectedBg:ze,rowSelectedHoverBg:Me,rowExpandedBg:le,cellPaddingBlock:Ie,cellPaddingInline:Ie,cellPaddingBlockMD:Ye,cellPaddingInlineMD:rt,cellPaddingBlockSM:rt,cellPaddingInlineSM:rt,borderColor:Qe,headerBorderRadius:bt,footerBg:Tt,footerColor:ve,cellFontSize:pt,cellFontSizeMD:pt,cellFontSizeSM:pt,headerSplitColor:Qe,fixedHeaderSortActiveBg:It,headerFilterHoverBg:Le,filterDropdownMenuBg:fe,filterDropdownBg:fe,expandIconBg:fe,selectionColumnWidth:Pt,stickyScrollBarBg:Rt,stickyScrollBarBorderRadius:100}});const bl=[],xl=(re,le)=>{const{prefixCls:fe,className:ve,rootClassName:xe,style:Le,size:ze,bordered:Me,dropdownPrefixCls:Ie,dataSource:Ye,pagination:rt,rowSelection:Qe,rowKey:bt="key",rowClassName:pt,columns:Pt,children:Rt,childrenColumnName:It,onChange:At,getPopupContainer:Tt,loading:jt,expandIcon:gn,expandable:cn,expandedRowRender:qt,expandIconColumnIndex:Ln,indentSize:$n,scroll:Ut,sortDirections:tn,locale:Vt,showSorterTooltip:Kt=!0,virtual:Qt}=re,Cn=ae.useMemo(()=>Pt||je(Rt),[Pt,Rt]),Dn=ae.useMemo(()=>Cn.some(Un=>Un.responsive),[Cn]),Nn=(0,Xr.Z)(Dn),hn=ae.useMemo(()=>{const Un=new Set(Object.keys(Nn).filter(ia=>Nn[ia]));return Cn.filter(ia=>!ia.responsive||ia.responsive.some(Ga=>Un.has(Ga)))},[Cn,Nn]),zn=(0,xr.Z)(re,["className","style","columns"]),{locale:An=Er.Z,direction:ra,table:Xn,renderEmpty:Pa,getPrefixCls:ya,getPopupContainer:On}=ae.useContext(Lr.E_),La=(0,Vr.Z)(ze),Jn=Object.assign(Object.assign({},An.Table),Vt),ua=Ye||bl,ga=ya("table",fe),Ja=ya("dropdown",Ie),bn=Object.assign({childrenColumnName:It,expandIconColumnIndex:Ln},cn),{childrenColumnName:Pn="children"}=bn,Sn=ae.useMemo(()=>ua.some(Un=>Un==null?void 0:Un[Pn])?"nest":qt||cn&&cn.expandedRowRender?"row":null,[ua]),rn={body:ae.useRef()},Qn=ae.useMemo(()=>typeof bt=="function"?bt:Un=>Un==null?void 0:Un[bt],[bt]),[ln]=Ai(ua,Pn,Qn),En={},Wn=function(Un,ia){let Ga=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Sa,Ha,eo;const to=Object.assign(Object.assign({},En),Un);Ga&&((Sa=En.resetPagination)===null||Sa===void 0||Sa.call(En),!((Ha=to.pagination)===null||Ha===void 0)&&Ha.current&&(to.pagination.current=1),rt&&rt.onChange&&rt.onChange(1,(eo=to.pagination)===null||eo===void 0?void 0:eo.pageSize)),Ut&&Ut.scrollToFirstRowOnChange!==!1&&rn.body.current&&(0,Cr.Z)(0,{getContainer:()=>rn.body.current}),At==null||At(to.pagination,to.filters,to.sorter,{currentDataSource:ti(Rr(ua,to.sorterStates,Pn),to.filterStates),action:ia})},Hn=(Un,ia)=>{Wn({sorter:Un,sorterStates:ia},"sort",!1)},[Ka,Ra,fo,wa]=Qi({prefixCls:ga,mergedColumns:hn,onSorterChange:Hn,sortDirections:tn||["ascend","descend"],tableLocale:Jn,showSorterTooltip:Kt}),lo=ae.useMemo(()=>Rr(ua,Ra,Pn),[ua,Ra]);En.sorter=wa(),En.sorterStates=Ra;const Ea=(Un,ia)=>{Wn({filters:Un,filterStates:ia},"filter",!0)},[Qa,zo,qn]=Ri({prefixCls:ga,locale:Jn,dropdownPrefixCls:Ja,mergedColumns:hn,onFilterChange:Ea,getPopupContainer:Tt||On}),na=ti(lo,zo);En.filters=qn,En.filterStates=zo;const fa=ae.useMemo(()=>{const Un={};return Object.keys(qn).forEach(ia=>{qn[ia]!==null&&(Un[ia]=qn[ia])}),Object.assign(Object.assign({},fo),{filters:Un})},[fo,qn]),[Na]=qi(fa),$a=(Un,ia)=>{Wn({pagination:Object.assign(Object.assign({},En.pagination),{current:Un,pageSize:ia})},"paginate")},[kn,Va]=Hi(na.length,$a,rt);En.pagination=rt===!1?{}:Ki(kn,rt),En.resetPagination=Va;const Za=ae.useMemo(()=>{if(rt===!1||!kn.pageSize)return na;const{current:Un=1,total:ia,pageSize:Ga=ai}=kn;return na.length<ia?na.length>Ga?na.slice((Un-1)*Ga,Un*Ga):na:na.slice((Un-1)*Ga,Un*Ga)},[!!rt,na,kn&&kn.current,kn&&kn.pageSize,kn&&kn.total]),[ao,po]=Ui({prefixCls:ga,data:na,pageData:Za,getRowKey:Qn,getRecordByKey:ln,expandType:Sn,childrenColumnName:Pn,locale:Jn,getPopupContainer:Tt||On},Qe),ho=(Un,ia,Ga)=>{let Sa;return typeof pt=="function"?Sa=it()(pt(Un,ia,Ga)):Sa=it()(pt),it()({[`${ga}-row-selected`]:po.has(Qn(Un,ia))},Sa)};bn.__PARENT_RENDER_ICON__=bn.expandIcon,bn.expandIcon=bn.expandIcon||gn||dn(Jn),Sn==="nest"&&bn.expandIconColumnIndex===void 0?bn.expandIconColumnIndex=Qe?1:0:bn.expandIconColumnIndex>0&&Qe&&(bn.expandIconColumnIndex-=1),typeof bn.indentSize!="number"&&(bn.indentSize=typeof $n=="number"?$n:15);const Qo=ae.useCallback(Un=>Na(ao(Qa(Ka(Un)))),[Ka,Qa,ao]);let wo,so;if(rt!==!1&&(kn!=null&&kn.total)){let Un;kn.size?Un=kn.size:Un=La==="small"||La==="middle"?"small":void 0;const ia=Ha=>ae.createElement(Br.Z,Object.assign({},kn,{className:it()(`${ga}-pagination ${ga}-pagination-${Ha}`,kn.className),size:Un})),Ga=ra==="rtl"?"left":"right",{position:Sa}=kn;if(Sa!==null&&Array.isArray(Sa)){const Ha=Sa.find(Eo=>Eo.includes("top")),eo=Sa.find(Eo=>Eo.includes("bottom")),to=Sa.every(Eo=>`${Eo}`=="none");!Ha&&!eo&&!to&&(so=ia(Ga)),Ha&&(wo=ia(Ha.toLowerCase().replace("top",""))),eo&&(so=ia(eo.toLowerCase().replace("bottom","")))}else so=ia(Ga)}let qa;typeof jt=="boolean"?qa={spinning:jt}:typeof jt=="object"&&(qa=Object.assign({spinning:!0},jt));const[Xa,Oa]=yl(ga),[,ha]=(0,Wt.Z)(),vo=it()(`${ga}-wrapper`,Xn==null?void 0:Xn.className,{[`${ga}-wrapper-rtl`]:ra==="rtl"},ve,xe,Oa),Mo=Object.assign(Object.assign({},Xn==null?void 0:Xn.style),Le),$o=Vt&&Vt.emptyText||(Pa==null?void 0:Pa("Table"))||ae.createElement(wr.Z,{componentName:"Table"}),Po=Qt?tl:el,ur={},Ar=ae.useMemo(()=>{const{fontSize:Un,lineHeight:ia,padding:Ga,paddingXS:Sa,paddingSM:Ha}=ha,eo=Math.floor(Un*ia);switch(La){case"large":return Ga*2+eo;case"small":return Sa*2+eo;default:return Ha*2+eo}},[ha,La]);return Qt&&(ur.listItemHeight=Ar),Xa(ae.createElement("div",{ref:le,className:vo,style:Mo},ae.createElement(fn.Z,Object.assign({spinning:!1},qa),wo,ae.createElement(Po,Object.assign({},ur,zn,{columns:hn,direction:ra,expandable:bn,prefixCls:ga,className:it()({[`${ga}-middle`]:La==="middle",[`${ga}-small`]:La==="small",[`${ga}-bordered`]:Me,[`${ga}-empty`]:ua.length===0}),data:Za,rowKey:Qn,rowClassName:ho,emptyText:$o,internalHooks:ce,internalRefs:rn,transformColumns:Qo})),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}))},Lo=ae.forwardRef(Ll);Lo.SELECTION_COLUMN=No,Lo.EXPAND_COLUMN=ie,Lo.SELECTION_ALL=Ir,Lo.SELECTION_INVERT=Tr,Lo.SELECTION_NONE=Dr,Lo.Column=yr,Lo.ColumnGroup=br,Lo.Summary=pe;var wl=Lo,El=wl},17574:function(qe,st,ne){"use strict";ne.d(st,{default:function(){return dt}});var ie=ne(54030),ce=ne(3300),De=ne(52671),Ue=ne(8657),we=ne(32855),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,Xe=ne(7657),He=function(wt,Ft){return Be.createElement(Xe.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:Dt,indent:Oe,direction:_e="ltr"}=St,ct=_e==="ltr"?"left":"right",kt=_e==="ltr"?"right":"left",nt={[ct]:-Ft*Oe+ee,[kt]: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:`${Dt}-drop-indicator`})}var ge=ne(71997),se=Be.forwardRef((St,wt)=>{const{getPrefixCls:Ft,direction:Dt,virtual:Oe,tree:_e}=Be.useContext(x.E_),{prefixCls:ct,className:kt,showIcon:nt=!1,showLine:Ot,switcherIcon:ye,blockNode:Et=!1,children:Ht,checkable:un=!1,selectable:Xt=!0,draggable:Te,motion:$e,style:Fe}=St,me=Ft("tree",ct),Ve=Ft(),vt=$e!=null?$e:Object.assign(Object.assign({},(0,E.Z)(Ve)),{motionAppear:!1}),pe=Object.assign(Object.assign({},St),{checkable:un,selectable:Xt,showIcon:nt,motion:vt,blockNode:Et,showLine:!!Ot,dropIndicatorRender:te}),[ue,Ze]=(0,z.ZP)(me),Ne=Be.useMemo(()=>{if(!Te)return!1;let Ge={};switch(typeof Te){case"function":Ge.nodeDraggable=Te;break;case"object":Ge=Object.assign({},Te);break;default:break}return Ge.icon!==!1&&(Ge.icon=Ge.icon||Be.createElement(b.Z,null)),Ge},[Te]),Pe=Ge=>Be.createElement(ge.Z,{prefixCls:me,switcherIcon:ye,treeNodeProps:Ge,showLine:Ot});return ue(Be.createElement(ie.Z,Object.assign({itemHeight:20,ref:wt,virtual:Oe},pe,{style:Object.assign(Object.assign({},_e==null?void 0:_e.style),Fe),prefixCls:me,className:oe()({[`${me}-icon-hide`]:!nt,[`${me}-block-node`]:Et,[`${me}-unselectable`]:!Xt,[`${me}-rtl`]:Dt==="rtl"},_e==null?void 0:_e.className,kt,Ze),direction:Dt,checkable:un&&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(Dt){const{key:Oe,children:_e}=Dt;wt(Oe,Dt)!==!1&&Se(_e||[],wt)}St.forEach(Ft)}function Ee(St){let{treeData:wt,expandedKeys:Ft,startKey:Dt,endKey:Oe}=St;const _e=[];let ct=be.None;if(Dt&&Dt===Oe)return[Dt];if(!Dt||!Oe)return[];function kt(nt){return nt===Dt||nt===Oe}return Se(wt,nt=>{if(ct===be.End)return!1;if(kt(nt)){if(_e.push(nt),ct===be.None)ct=be.Start;else if(ct===be.Start)return ct=be.End,!1}else ct===be.Start&&_e.push(nt);return Ft.includes(nt)}),_e}function he(St,wt){const Ft=(0,ce.Z)(wt),Dt=[];return Se(St,(Oe,_e)=>{const ct=Ft.indexOf(Oe);return ct!==-1&&(Dt.push(_e),Ft.splice(ct,1)),!!Ft.length}),Dt}var ft=function(St,wt){var Ft={};for(var Dt in St)Object.prototype.hasOwnProperty.call(St,Dt)&&wt.indexOf(Dt)<0&&(Ft[Dt]=St[Dt]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Dt=Object.getOwnPropertySymbols(St);Oe<Dt.length;Oe++)wt.indexOf(Dt[Oe])<0&&Object.prototype.propertyIsEnumerable.call(St,Dt[Oe])&&(Ft[Dt[Oe]]=St[Dt[Oe]]);return Ft};function it(St){const{isLeaf:wt,expanded:Ft}=St;return wt?Be.createElement(De.Z,null):Ft?Be.createElement(Ue.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:Dt,defaultExpandedKeys:Oe}=St,_e=ft(St,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const ct=Be.useRef(),kt=Be.useRef(),nt=()=>{const{keyEntities:Ne}=(0,a.I8)(_t(_e));let Pe;return Ft?Pe=Object.keys(Ne):Dt?Pe=(0,y.r7)(_e.expandedKeys||Oe||[],Ne):Pe=_e.expandedKeys||Oe,Pe},[Ot,ye]=Be.useState(_e.selectedKeys||_e.defaultSelectedKeys||[]),[Et,Ht]=Be.useState(()=>nt());Be.useEffect(()=>{"selectedKeys"in _e&&ye(_e.selectedKeys)},[_e.selectedKeys]),Be.useEffect(()=>{"expandedKeys"in _e&&Ht(_e.expandedKeys)},[_e.expandedKeys]);const un=(Ne,Pe)=>{var Ge;return"expandedKeys"in _e||Ht(Ne),(Ge=_e.onExpand)===null||Ge===void 0?void 0:Ge.call(_e,Ne,Pe)},Xt=(Ne,Pe)=>{var Ge;const{multiple:Lt}=_e,{node:mt,nativeEvent:xt}=Pe,{key:lt=""}=mt,yt=_t(_e),ot=Object.assign(Object.assign({},Pe),{selected:!0}),Zt=(xt==null?void 0:xt.ctrlKey)||(xt==null?void 0:xt.metaKey),Mt=xt==null?void 0:xt.shiftKey;let $t;Lt&&Zt?($t=Ne,ct.current=lt,kt.current=$t,ot.selectedNodes=he(yt,$t)):Lt&&Mt?($t=Array.from(new Set([].concat((0,ce.Z)(kt.current||[]),(0,ce.Z)(Ee({treeData:yt,expandedKeys:Et,startKey:lt,endKey:ct.current}))))),ot.selectedNodes=he(yt,$t)):($t=[lt],ct.current=lt,kt.current=$t,ot.selectedNodes=he(yt,$t)),(Ge=_e.onSelect)===null||Ge===void 0||Ge.call(_e,$t,ot),"selectedKeys"in _e||ye($t)},{getPrefixCls:Te,direction:$e}=Be.useContext(x.E_),{prefixCls:Fe,className:me,showIcon:Ve=!0,expandAction:vt="click"}=_e,pe=ft(_e,["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:Ve,expandAction:vt,prefixCls:ue,className:Ze,expandedKeys:Et,selectedKeys:Ot,onSelect:Xt,onExpand:un}))};var tt=Be.forwardRef(Ce);const at=se;at.DirectoryTree=tt,at.TreeNode=ie.O;var dt=at},20648:function(qe,st,ne){"use strict";ne.d(st,{TM:function(){return Ke},Yk:function(){return et}});var ie=ne(36237),ce=ne(98447),De=ne(17313),Ue=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}`}}}),Xe=(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"},Xe(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}};st.ZP=(0,Be.Z)("Tree",(oe,y)=>{let{prefixCls:a}=y;return[{[oe.componentCls]:(0,ce.C2)(`${a}-checkbox`,oe)},et(a,oe),(0,Ue.Z)(oe)]},oe=>{const{colorTextLightSolid:y,colorPrimary:a}=oe;return Object.assign(Object.assign({},Ke(oe)),{directoryNodeSelectedColor:y,directoryNodeSelectedBg:a})})},71997:function(qe,st,ne){"use strict";ne.d(st,{Z:function(){return x}});var ie=ne(32855),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"},Ue=De,we=ne(7657),Be=function(E,z){return ce.createElement(we.Z,(0,ie.Z)({},E,{ref:z,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae,Xe=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(Xe.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})}},39417:function(qe,st,ne){"use strict";ne.d(st,{Z:function(){return se}});var ie=ne(32855),ce=ne(74430),De=ne(43079),Ue=ne(27247),we=ne(33377),Be=ne(93912),ae=ne(83383),Je=ne(18881),Xe=ne(85461),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,Xe.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,dt=he.props.context.onNodeCheck;if(!(!he.isCheckable()||tt)){var St=!at;dt(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,dt=he.hasChildren();return Ae===!1?!1:Ae||!at&&!dt||at&&tt&&!dt},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,dt=he.props.context,St=dt.loadData,wt=dt.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,Ue.Z)((0,Ue.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)),dt=he.renderSwitcherIconDom(!1);return dt!==!1?Ke.createElement("span",{onClick:he.onExpand,className:at},dt):null},he.renderCheckbox=function(){var Ce=he.props,Ae=Ce.checked,tt=Ce.halfChecked,at=Ce.disableCheckbox,dt=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(dt,"-checkbox"),Ae&&"".concat(dt,"-checkbox-checked"),!Ae&&tt&&"".concat(dt,"-checkbox-indeterminate"),(St||at)&&"".concat(dt,"-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,dt=Ae.selected,St=Ae.icon,wt=Ae.loading,Ft=Ae.data,Dt=he.props.context,Oe=Dt.prefixCls,_e=Dt.showIcon,ct=Dt.icon,kt=Dt.loadData,nt=Dt.titleRender,Ot=he.isDisabled(),ye="".concat(Oe,"-node-content-wrapper"),Et;if(_e){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 kt&&wt&&(Et=he.renderIcon());var un;typeof at=="function"?un=at(Ft):nt?un=nt(Ft):un=at;var Xt=Ke.createElement("span",{className:"".concat(Oe,"-title")},un);return Ke.createElement("span",{ref:he.setSelectHandle,title:typeof at=="string"?at:"",className:Re()("".concat(ye),"".concat(ye,"-").concat(he.getNodeState()||"normal"),!Ot&&(dt||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,dt=at.draggable,St=at.dropLevelOffset,wt=at.dropPosition,Ft=at.prefixCls,Dt=at.indent,Oe=at.dropIndicatorRender,_e=at.dragOverNodeKey,ct=at.direction,kt=!!dt,nt=!Ae&&kt&&_e===tt,Ot=Dt!=null?Dt:he.cacheIndent;return he.cacheIndent=Dt,nt?Oe({dropPosition:wt,dropLevelOffset:St,indent:Ot,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,dt=it.dragOverGapBottom,St=it.isLeaf,wt=it.isStart,Ft=it.isEnd,Dt=it.expanded,Oe=it.selected,_e=it.checked,ct=it.halfChecked,kt=it.loading,nt=it.domRef,Ot=it.active,ye=it.data,Et=it.onMouseMove,Ht=it.selectable,un=(0,De.Z)(it,E),Xt=this.props.context,Te=Xt.prefixCls,$e=Xt.filterTreeNode,Fe=Xt.keyEntities,me=Xt.dropContainerKey,Ve=Xt.dropTargetKey,vt=Xt.draggingNodeKey,pe=this.isDisabled(),ue=(0,et.Z)(un,{aria:!0,data:!0}),Ze=(0,x.Z)(Fe,_t)||{},Ne=Ze.level,Pe=Ft[Ft.length-1],Ge=this.isDraggable(),Lt=!pe&&Ge,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(Dt?"open":"close"),!St),(0,ce.Z)(ft,"".concat(Te,"-treenode-checkbox-checked"),_e),(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"),kt),(0,ce.Z)(ft,"".concat(Te,"-treenode-active"),Ot),(0,ce.Z)(ft,"".concat(Te,"-treenode-leaf-last"),Pe),(0,ce.Z)(ft,"".concat(Te,"-treenode-draggable"),Ge),(0,ce.Z)(ft,"dragging",mt),(0,ce.Z)(ft,"drop-target",Ve===_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&&dt),(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:Ge?this.onDragEnter:void 0,onDragOver:Ge?this.onDragOver:void 0,onDragLeave:Ge?this.onDragLeave:void 0,onDrop:Ge?this.onDrop:void 0,onDragEnd:Ge?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,st,ne){"use strict";ne.d(st,{k:function(){return ce}});var ie=ne(59301),ce=ie.createContext(null)},54030:function(qe,st,ne){"use strict";ne.d(st,{O:function(){return se.Z},Z:function(){return Xt}});var ie=ne(32855),ce=ne(74430),De=ne(34666),Ue=ne(27247),we=ne(3300),Be=ne(33377),ae=ne(93912),Je=ne(83383),Xe=ne(18881),He=ne(85461),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,Ve={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch($e){case-1:Ve.top=0,Ve.left=-Fe*me;break;case 1:Ve.bottom=0,Ve.left=-Fe*me;break;case 0:Ve.bottom=0,Ve.left=me;break}return a.createElement("div",{style:Ve})}function E(Te){if(Te==null)throw new TypeError("Cannot destructure "+Te)}var z=ne(11913),ee=ne(43079),te=ne(34280),ge=ne(6790),de=ne(77900),se=ne(39417);function be(Te,$e){var Fe=a.useState(!1),me=(0,z.Z)(Fe,2),Ve=me[0],vt=me[1];a.useLayoutEffect(function(){if(Ve)return Te(),function(){$e()}},[Ve]),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,Ve=$e.style,vt=$e.motion,pe=$e.motionNodes,ue=$e.motionType,Ze=$e.onMotionStart,Ne=$e.onMotionEnd,Pe=$e.active,Ge=$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,Mt=pe&&ue!=="hide";(0,te.Z)(function(){pe&&Mt!==lt&&yt(Mt)},[pe]);var $t=function(){pe&&Ze()},Jt=a.useRef(!1),Yt=function(){pe&&!Jt.current&&(Jt.current=!0,Ne())};be($t,Yt);var xn=function(Bn){Mt===Bn&&Yt()};return pe?a.createElement(de.default,(0,ie.Z)({ref:Fe,visible:lt},vt,{motionAppear:ue==="show",onVisibleChanged:xn}),function(on,Bn){var Kn=on.className,jn=on.style;return a.createElement("div",{ref:Bn,className:et()("".concat(Zt,"-treenode-motion"),Kn),style:jn},pe.map(function(ht){var ut=(0,ie.Z)({},(E(ht.data),ht.data)),gt=ht.title,Ct=ht.key,yn=ht.isStart,Mn=ht.isEnd;delete ut.children;var nn=(0,Se.H8)(Ct,Ge);return a.createElement(se.Z,(0,ie.Z)({},ut,nn,{title:gt,active:Pe,data:ht.data,key:Ct,isStart:yn,isEnd:Mn}))}))}):a.createElement(se.Z,(0,ie.Z)({domRef:Fe,className:me,style:Ve},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 Ve(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:Ve(Te,$e)}:{add:!1,key:Ve($e,Te)}}function Ce(Te,$e,Fe){var me=Te.findIndex(function(ue){return ue.key===Fe}),Ve=Te[me+1],vt=$e.findIndex(function(ue){return ue.key===Fe});if(Ve){var pe=$e.findIndex(function(ue){return ue.key===Ve.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(){},dt="RC_TREE_MOTION_".concat(Math.random()),St={key:dt},wt={key:dt,level:0,index:0,pos:"0",node:St,nodes:[St]},Ft={parent:null,children:[],pos:wt.pos,data:St,title:null,key:dt,isStart:[],isEnd:[]};function Dt(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 _e(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,Ve=Te.selectable,vt=Te.checkable,pe=Te.expandedKeys,ue=Te.selectedKeys,Ze=Te.checkedKeys,Ne=Te.loadedKeys,Pe=Te.loadingKeys,Ge=Te.halfCheckedKeys,Lt=Te.keyEntities,mt=Te.disabled,xt=Te.dragging,lt=Te.dragOverNodeKey,yt=Te.dropPosition,ot=Te.motion,Zt=Te.height,Mt=Te.itemHeight,$t=Te.virtual,Jt=Te.focusable,Yt=Te.activeItem,xn=Te.focused,on=Te.tabIndex,Bn=Te.onKeyDown,Kn=Te.onFocus,jn=Te.onBlur,ht=Te.onActiveChange,ut=Te.onListChangeStart,gt=Te.onListChangeEnd,Ct=(0,ee.Z)(Te,Ae),yn=a.useRef(null),Mn=a.useRef(null);a.useImperativeHandle($e,function(){return{scrollTo:function(oa){yn.current.scrollTo(oa)},getIndentWidth:function(){return Mn.current.offsetWidth}}});var nn=a.useState(pe),Fn=(0,z.Z)(nn,2),wn=Fn[0],Gn=Fn[1],la=a.useState(me),pa=(0,z.Z)(la,2),Zn=pa[0],ba=pa[1],xa=a.useState(me),ja=(0,z.Z)(xa,2),ke=ja[0],We=ja[1],je=a.useState([]),zt=(0,z.Z)(je,2),mn=zt[0],an=zt[1],Yn=a.useState(null),In=(0,z.Z)(Yn,2),sn=In[0],_n=In[1],Ba=a.useRef(me);Ba.current=me;function Nt(){var ea=Ba.current;ba(ea),We(ea),an([]),_n(null),gt()}(0,te.Z)(function(){Gn(pe);var ea=_t(wn,pe);if(ea.key!==null)if(ea.add){var oa=Zn.findIndex(function(Ya){var Ca=Ya.key;return Ca===ea.key}),ta=Dt(Ce(Zn,me,ea.key),$t,Zt,Mt),Aa=Zn.slice();Aa.splice(oa+1,0,Ft),We(Aa),an(ta),_n("show")}else{var Da=me.findIndex(function(Ya){var Ca=Ya.key;return Ca===ea.key}),_a=Dt(Ce(me,Zn,ea.key),$t,Zt,Mt),oo=me.slice();oo.splice(Da+1,0,Ft),We(oo),an(_a),_n("hide")}else Zn!==me&&(ba(me),We(me))},[pe,me]),a.useEffect(function(){xt||Nt()},[xt]);var Tn=ot?ke:me,va={expandedKeys:pe,selectedKeys:ue,loadedKeys:Ne,loadingKeys:Pe,checkedKeys:Ze,halfCheckedKeys:Ge,dragOverNodeKey:lt,dropPosition:yt,keyEntities:Lt};return a.createElement(a.Fragment,null,xn&&Yt&&a.createElement("span",{style:tt,"aria-live":"assertive"},_e(Yt)),a.createElement("div",null,a.createElement("input",{style:tt,disabled:Jt===!1||mt,tabIndex:Jt!==!1?on:null,onKeyDown:Bn,onFocus:Kn,onBlur:jn,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:Mn,className:"".concat(Fe,"-indent-unit")}))),a.createElement(ge.Z,(0,ie.Z)({},Ct,{data:Tn,itemKey:Oe,height:Zt,fullHeight:!1,virtual:$t,itemHeight:Mt,prefixCls:"".concat(Fe,"-list"),ref:yn,onVisibleChange:function(oa,ta){var Aa=new Set(oa),Da=ta.filter(function(_a){return!Aa.has(_a)});Da.some(function(_a){return Oe(_a)===dt})&&Nt()}}),function(ea){var oa=ea.pos,ta=(0,ie.Z)({},(E(ea.data),ea.data)),Aa=ea.title,Da=ea.key,_a=ea.isStart,oo=ea.isEnd,Ya=(0,Se.km)(Da,oa);delete ta.key,delete ta.children;var Ca=(0,Se.H8)(Ya,va);return a.createElement(it,(0,ie.Z)({},ta,Ca,{title:Aa,active:!!Yt&&Da===Yt.key,pos:oa,data:ea.data,isStart:_a,isEnd:oo,motion:ot,motionNodes:Da===dt?mn:null,motionType:sn,onMotionStart:ut,onMotionEnd:Nt,treeNodeRequiredProps:va,onMouseMove:function(){ht(null)}}))}))});ct.displayName="NodeList";var kt=ct,nt=ne(35654),Ot=ne(90782),ye=ne(67841),Et=10,Ht=function(Te){(0,Xe.Z)(Fe,Te);var $e=(0,He.Z)(Fe);function Fe(){var me;(0,Be.Z)(this,Fe);for(var Ve=arguments.length,vt=new Array(Ve),pe=0;pe<Ve;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,Ge=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,Ge),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,Ge=Ne.keyEntities,Lt=Ne.dragChildrenKeys,mt=Ne.flattenNodes,xt=Ne.indent,lt=me.props,yt=lt.onDragEnter,ot=lt.onExpand,Zt=lt.allowDrop,Mt=lt.direction,$t=Ze.props,Jt=$t.pos,Yt=$t.eventKey,xn=(0,Je.Z)(me),on=xn.dragNode;if(me.currentMouseOverDroppableNodeKey!==Yt&&(me.currentMouseOverDroppableNodeKey=Yt),!on){me.resetDragState();return}var Bn=(0,nt.OM)(ue,on,Ze,xt,me.dragStartMousePosition,Zt,mt,Ge,Pe,Mt),Kn=Bn.dropPosition,jn=Bn.dropLevelOffset,ht=Bn.dropTargetKey,ut=Bn.dropContainerKey,gt=Bn.dropTargetPos,Ct=Bn.dropAllowed,yn=Bn.dragOverNodeKey;if(Lt.indexOf(ht)!==-1||!Ct){me.resetDragState();return}if(me.delayedDragEnterLogic||(me.delayedDragEnterLogic={}),Object.keys(me.delayedDragEnterLogic).forEach(function(Mn){clearTimeout(me.delayedDragEnterLogic[Mn])}),on.props.eventKey!==Ze.props.eventKey&&(ue.persist(),me.delayedDragEnterLogic[Jt]=window.setTimeout(function(){if(me.state.draggingNodeKey!==null){var Mn=(0,we.Z)(Pe),nn=(0,ye.Z)(Ge,Ze.props.eventKey);nn&&(nn.children||[]).length&&(Mn=(0,nt.L0)(Pe,Ze.props.eventKey)),"expandedKeys"in me.props||me.setExpandedKeys(Mn),ot==null||ot(Mn,{node:(0,Se.F)(Ze.props),expanded:!0,nativeEvent:ue.nativeEvent})}},800)),on.props.eventKey===ht&&jn===0){me.resetDragState();return}me.setState({dragOverNodeKey:yn,dropPosition:Kn,dropLevelOffset:jn,dropTargetKey:ht,dropContainerKey:ut,dropTargetPos:gt,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,Ge=Ne.flattenNodes,Lt=Ne.keyEntities,mt=Ne.expandedKeys,xt=Ne.indent,lt=me.props,yt=lt.onDragOver,ot=lt.allowDrop,Zt=lt.direction,Mt=(0,Je.Z)(me),$t=Mt.dragNode;if($t){var Jt=(0,nt.OM)(ue,$t,Ze,xt,me.dragStartMousePosition,ot,Ge,Lt,mt,Zt),Yt=Jt.dropPosition,xn=Jt.dropLevelOffset,on=Jt.dropTargetKey,Bn=Jt.dropContainerKey,Kn=Jt.dropAllowed,jn=Jt.dropTargetPos,ht=Jt.dragOverNodeKey;Pe.indexOf(on)!==-1||!Kn||($t.props.eventKey===on&&xn===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&&xn===me.state.dropLevelOffset&&on===me.state.dropTargetKey&&Bn===me.state.dropContainerKey&&jn===me.state.dropTargetPos&&Kn===me.state.dropAllowed&&ht===me.state.dragOverNodeKey||me.setState({dropPosition:Yt,dropLevelOffset:xn,dropTargetKey:on,dropContainerKey:Bn,dropTargetPos:jn,dropAllowed:Kn,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,Ge=me.state,Lt=Ge.dragChildrenKeys,mt=Ge.dropPosition,xt=Ge.dropTargetKey,lt=Ge.dropTargetPos,yt=Ge.dropAllowed;if(yt){var ot=me.props.onDrop;if(me.setState({dragOverNodeKey:null}),me.cleanDragState(),xt!==null){var Zt=(0,Ue.Z)((0,Ue.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}),Mt=Lt.indexOf(xt)!==-1;(0,y.ZP)(!Mt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var $t=(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($t[$t.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,Ge=Ne.flattenNodes,Lt=Ze.expanded,mt=Ze.key,xt=Ze.isLeaf;if(!(xt||ue.shiftKey||ue.metaKey||ue.ctrlKey)){var lt=Ge.filter(function(ot){return ot.key===mt})[0],yt=(0,Se.F)((0,Ue.Z)((0,Ue.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,Ge=Ne.expandAction;Ge==="click"&&me.triggerExpandActionExpand(ue,Ze),Pe==null||Pe(ue,Ze)},me.onNodeDoubleClick=function(ue,Ze){var Ne=me.props,Pe=Ne.onDoubleClick,Ge=Ne.expandAction;Ge==="doubleClick"&&me.triggerExpandActionExpand(ue,Ze),Pe==null||Pe(ue,Ze)},me.onNodeSelect=function(ue,Ze){var Ne=me.state.selectedKeys,Pe=me.state,Ge=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 Mt=Ne.map(function($t){var Jt=(0,ye.Z)(Ge,$t);return Jt?Jt.node:null}).filter(function($t){return $t});me.setUncontrolledState({selectedKeys:Ne}),xt==null||xt(Ne,{event:"select",selected:Zt,node:Ze,selectedNodes:Mt,nativeEvent:ue.nativeEvent})},me.onNodeCheck=function(ue,Ze,Ne){var Pe=me.state,Ge=Pe.keyEntities,Lt=Pe.checkedKeys,mt=Pe.halfCheckedKeys,xt=me.props,lt=xt.checkStrictly,yt=xt.onCheck,ot=Ze.key,Zt,Mt={event:"check",node:Ze,checked:Ne,nativeEvent:ue.nativeEvent};if(lt){var $t=Ne?(0,nt.L0)(Lt,ot):(0,nt._5)(Lt,ot),Jt=(0,nt._5)(mt,ot);Zt={checked:$t,halfChecked:Jt},Mt.checkedNodes=$t.map(function(jn){return(0,ye.Z)(Ge,jn)}).filter(function(jn){return jn}).map(function(jn){return jn.node}),me.setUncontrolledState({checkedKeys:$t})}else{var Yt=(0,Ot.S)([].concat((0,we.Z)(Lt),[ot]),!0,Ge),xn=Yt.checkedKeys,on=Yt.halfCheckedKeys;if(!Ne){var Bn=new Set(xn);Bn.delete(ot);var Kn=(0,Ot.S)(Array.from(Bn),{checked:!1,halfCheckedKeys:on},Ge);xn=Kn.checkedKeys,on=Kn.halfCheckedKeys}Zt=xn,Mt.checkedNodes=[],Mt.checkedNodesPositions=[],Mt.halfCheckedKeys=on,xn.forEach(function(jn){var ht=(0,ye.Z)(Ge,jn);if(ht){var ut=ht.node,gt=ht.pos;Mt.checkedNodes.push(ut),Mt.checkedNodesPositions.push({node:ut,pos:gt})}}),me.setUncontrolledState({checkedKeys:xn},!1,{halfCheckedKeys:on})}yt==null||yt(Zt,Mt)},me.onNodeLoad=function(ue){var Ze=ue.key,Ne=new Promise(function(Pe,Ge){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,Mt=ot.onLoad;if(!Zt||xt.indexOf(Ze)!==-1||yt.indexOf(Ze)!==-1)return null;var $t=Zt(ue);return $t.then(function(){var Jt=me.state.loadedKeys,Yt=(0,nt.L0)(Jt,Ze);Mt==null||Mt(Yt,{event:"load",node:ue}),me.setUncontrolledState({loadedKeys:Yt}),me.setState(function(xn){return{loadingKeys:(0,nt._5)(xn.loadingKeys,Ze)}}),Pe()}).catch(function(Jt){if(me.setState(function(xn){return{loadingKeys:(0,nt._5)(xn.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()}Ge(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,Ge=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:Ge||[],checkedKeys:Lt||[],halfCheckedKeys:mt||[],dragOverNodeKey:xt,dropPosition:lt,keyEntities:yt}},me.setExpandedKeys=function(ue){var Ze=me.state,Ne=Ze.treeData,Pe=Ze.fieldNames,Ge=(0,Se.oH)(Ne,ue,Pe);me.setUncontrolledState({expandedKeys:ue,flattenNodes:Ge},!0)},me.onNodeExpand=function(ue,Ze){var Ne=me.state.expandedKeys,Pe=me.state,Ge=Pe.listChanging,Lt=Pe.fieldNames,mt=me.props,xt=mt.onExpand,lt=mt.loadData,yt=Ze.expanded,ot=Ze[Lt.key];if(!Ge){var Zt=Ne.indexOf(ot),Mt=!yt;if((0,y.ZP)(yt&&Zt!==-1||!yt&&Zt===-1,"Expand state not sync with index check"),Mt?Ne=(0,nt.L0)(Ne,ot):Ne=(0,nt._5)(Ne,ot),me.setExpandedKeys(Ne),xt==null||xt(Ne,{node:Ze,expanded:Mt,nativeEvent:ue.nativeEvent}),Mt&<){var $t=me.onNodeLoad(Ze);$t&&$t.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 Ge=Pe.key;return Ge===Ze})||null},me.offsetActiveKey=function(ue){var Ze=me.state,Ne=Ze.flattenNodes,Pe=Ze.activeKey,Ge=Ne.findIndex(function(xt){var lt=xt.key;return lt===Pe});Ge===-1&&ue<0&&(Ge=Ne.length),Ge=(Ge+ue+Ne.length)%Ne.length;var Lt=Ne[Ge];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,Ge=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(),Mt=ot.data.isLeaf===!1||!!(ot.data[Lt.children]||[]).length,$t=(0,Se.F)((0,Ue.Z)((0,Ue.Z)({},(0,Se.H8)(Ne,Zt)),{},{data:ot.data,active:!0}));switch(ue.which){case Ke.Z.LEFT:{Mt&&Pe.includes(Ne)?me.onNodeExpand({},$t):ot.parent&&me.onActiveChange(ot.parent.key),ue.preventDefault();break}case Ke.Z.RIGHT:{Mt&&!Pe.includes(Ne)?me.onNodeExpand({},$t):ot.children&&ot.children.length&&me.onActiveChange(ot.children[0].key),ue.preventDefault();break}case Ke.Z.ENTER:case Ke.Z.SPACE:{lt&&!$t.disabled&&$t.checkable!==!1&&!$t.disableCheckbox?me.onNodeCheck({},$t,!Ge.includes(Ne)):!lt&&yt&&!$t.disabled&&$t.selectable!==!1&&me.onNodeSelect({},$t);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,Ge=!0,Lt={};Object.keys(ue).forEach(function(mt){if(mt in me.props){Ge=!1;return}Pe=!0,Lt[mt]=ue[mt]}),Pe&&(!Ze||Ge)&&me.setState((0,Ue.Z)((0,Ue.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 Ve=this.props.activeKey;Ve!==void 0&&Ve!==this.state.activeKey&&(this.setState({activeKey:Ve}),Ve!==null&&this.scrollTo({key:Ve}))}},{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 Ve,vt=this.state,pe=vt.focused,ue=vt.flattenNodes,Ze=vt.keyEntities,Ne=vt.draggingNodeKey,Pe=vt.activeKey,Ge=vt.dropLevelOffset,Lt=vt.dropContainerKey,mt=vt.dropTargetKey,xt=vt.dropPosition,lt=vt.dragOverNodeKey,yt=vt.indent,ot=this.props,Zt=ot.prefixCls,Mt=ot.className,$t=ot.style,Jt=ot.showLine,Yt=ot.focusable,xn=ot.tabIndex,on=xn===void 0?0:xn,Bn=ot.selectable,Kn=ot.showIcon,jn=ot.icon,ht=ot.switcherIcon,ut=ot.draggable,gt=ot.checkable,Ct=ot.checkStrictly,yn=ot.disabled,Mn=ot.motion,nn=ot.loadData,Fn=ot.filterTreeNode,wn=ot.height,Gn=ot.itemHeight,la=ot.virtual,pa=ot.titleRender,Zn=ot.dropIndicatorRender,ba=ot.onContextMenu,xa=ot.onScroll,ja=ot.direction,ke=ot.rootClassName,We=ot.rootStyle,je=(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:Bn,showIcon:Kn,icon:jn,switcherIcon:ht,draggable:zt,draggingNodeKey:Ne,checkable:gt,checkStrictly:Ct,disabled:yn,keyEntities:Ze,dropLevelOffset:Ge,dropContainerKey:Lt,dropTargetKey:mt,dropPosition:xt,dragOverNodeKey:lt,indent:yt,direction:ja,dropIndicatorRender:Zn,loadData:nn,filterTreeNode:Fn,titleRender:pa,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,Mt,ke,(Ve={},(0,ce.Z)(Ve,"".concat(Zt,"-show-line"),Jt),(0,ce.Z)(Ve,"".concat(Zt,"-focused"),pe),(0,ce.Z)(Ve,"".concat(Zt,"-active-focused"),Pe!==null),Ve)),style:We},a.createElement(kt,(0,ie.Z)({ref:this.listRef,prefixCls:Zt,style:$t,data:ue,disabled:yn,selectable:Bn,checkable:!!gt,motion:Mn,dragging:Ne!==null,height:wn,itemHeight:Gn,virtual:la,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:ba,onScroll:xa},this.getTreeNodeRequiredProps(),je))))}}],[{key:"getDerivedStateFromProps",value:function(Ve,vt){var pe=vt.prevProps,ue={prevProps:Ve};function Ze(Yt){return!pe&&Yt in Ve||pe&&pe[Yt]!==Ve[Yt]}var Ne,Pe=vt.fieldNames;if(Ze("fieldNames")&&(Pe=(0,Se.w$)(Ve.fieldNames),ue.fieldNames=Pe),Ze("treeData")?Ne=Ve.treeData:Ze("children")&&((0,y.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Ne=(0,Se.zn)(Ve.children)),Ne){ue.treeData=Ne;var Ge=(0,Se.I8)(Ne,{fieldNames:Pe});ue.keyEntities=(0,Ue.Z)((0,ce.Z)({},dt,wt),Ge.keyEntities)}var Lt=ue.keyEntities||vt.keyEntities;if(Ze("expandedKeys")||pe&&Ze("autoExpandParent"))ue.expandedKeys=Ve.autoExpandParent||!pe&&Ve.defaultExpandParent?(0,nt.r7)(Ve.expandedKeys,Lt):Ve.expandedKeys;else if(!pe&&Ve.defaultExpandAll){var mt=(0,Ue.Z)({},Lt);delete mt[dt],ue.expandedKeys=Object.keys(mt).map(function(Yt){return mt[Yt].key})}else!pe&&Ve.defaultExpandedKeys&&(ue.expandedKeys=Ve.autoExpandParent||Ve.defaultExpandParent?(0,nt.r7)(Ve.defaultExpandedKeys,Lt):Ve.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(Ve.selectable&&(Ze("selectedKeys")?ue.selectedKeys=(0,nt.BT)(Ve.selectedKeys,Ve):!pe&&Ve.defaultSelectedKeys&&(ue.selectedKeys=(0,nt.BT)(Ve.defaultSelectedKeys,Ve))),Ve.checkable){var lt;if(Ze("checkedKeys")?lt=(0,nt.E6)(Ve.checkedKeys)||{}:!pe&&Ve.defaultCheckedKeys?lt=(0,nt.E6)(Ve.defaultCheckedKeys)||{}:Ne&&(lt=(0,nt.E6)(Ve.checkedKeys)||{checkedKeys:vt.checkedKeys,halfCheckedKeys:vt.halfCheckedKeys}),lt){var yt=lt,ot=yt.checkedKeys,Zt=ot===void 0?[]:ot,Mt=yt.halfCheckedKeys,$t=Mt===void 0?[]:Mt;if(!Ve.checkStrictly){var Jt=(0,Ot.S)(Zt,!0,Lt);Zt=Jt.checkedKeys,$t=Jt.halfCheckedKeys}ue.checkedKeys=Zt,ue.halfCheckedKeys=$t}}return Ze("loadedKeys")&&(ue.loadedKeys=Ve.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 un=Ht,Xt=un},35654:function(qe,st,ne){"use strict";ne.d(st,{BT:function(){return a},E6:function(){return E},L0:function(){return He},OM:function(){return y},_5:function(){return Xe},r7:function(){return z},wA:function(){return et},yx:function(){return Re}});var ie=ne(3300),ce=ne(34666),De=ne(48736),Ue=ne(59301),we=ne(39417),Be=ne(67841),ae=ne(71430),Je=null;function Xe(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,dt=(ft==="rtl"?-1:1)*(((se==null?void 0:se.x)||0)-_t),St=(dt-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}),Dt=Ft<=0?0:Ft-1,Oe=Se[Dt].key;wt=(0,Be.Z)(Ee,Oe)}var _e=wt.key,ct=wt,kt=wt.key,nt=0,Ot=0;if(!he.includes(_e))for(var ye=0;ye<St&&Ke(wt);ye+=1)wt=wt.parent,Ot+=1;var Et=te.props.data,Ht=wt.node,un=!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(kt)?be({dragNode:Et,dropNode:Ht,dropPosition:0})?nt=0:un=!1:Ot===0?St>-1.5?be({dragNode:Et,dropNode:Ht,dropPosition:1})?nt=1:un=!1:be({dragNode:Et,dropNode:Ht,dropPosition:0})?nt=0:be({dragNode:Et,dropNode:Ht,dropPosition:1})?nt=1:un=!1:be({dragNode:Et,dropNode:Ht,dropPosition:1})?nt=1:un=!1,{dropPosition:nt,dropLevelOffset:Ot,dropTargetKey:wt.key,dropTargetPos:wt.pos,dragOverNodeKey:kt,dropContainerKey:nt===0?null:((it=wt.parent)===null||it===void 0?void 0:it.key)||null,dropAllowed:un}}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,st,ne){"use strict";ne.d(st,{S:function(){return ae}});var ie=ne(48736),ce=ne(67841);function De(Je,Xe){var He=new Set;return Je.forEach(function(Re){Xe.has(Re)||He.add(Re)}),He}function Ue(Je){var Xe=Je||{},He=Xe.disabled,Re=Xe.disableCheckbox,et=Xe.checkable;return!!(He||Re)||et===!1}function we(Je,Xe,He,Re){for(var et=new Set(Je),Ke=new Set,oe=0;oe<=He;oe+=1){var y=Xe.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=Xe.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,Xe,He,Re,et){for(var Ke=new Set(Je),oe=new Set(Xe),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,Xe,He,Re){var et=[],Ke;Re?Ke=Re:Ke=Ue;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 Xe===!0?x=we(oe,y,a,Ke):x=Be(oe,Xe.halfCheckedKeys,y,a,Ke),x}},67841:function(qe,st,ne){"use strict";ne.d(st,{Z:function(){return ie}});function ie(ce,De){return ce[De]}},71430:function(qe,st,ne){"use strict";ne.d(st,{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(34666),ce=ne(3300),De=ne(27247),Ue=ne(43079),we=ne(11592),Be=ne(2738),ae=ne(48736),Je=ne(67841),Xe=["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,Ue.Z)(Se,Xe),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),dt,St=0;St<se.length;St+=1){var wt=se[St];if(Ce[wt]!==void 0){dt=Ce[wt];break}}var Ft=(0,De.Z)((0,De.Z)({},(0,Be.Z)(Ce,[].concat((0,ce.Z)(se),[be,Se]))),{},{title:dt,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,dt){return et(at[ft],dt)};function Ae(tt,at,dt,St){var wt=tt?tt[_t]:ee,Ft=tt?He(dt.pos,at):"0",Dt=tt?[].concat((0,ce.Z)(St),[tt]):[];if(tt){var Oe=Ce(tt,Ft),_e={node:tt,index:at,pos:Ft,key:Oe,parentPos:dt.node?dt.pos:null,level:dt.level+1,nodes:Dt};te(_e)}wt&&wt.forEach(function(ct,kt){Ae(ct,kt,{node:tt,pos:Ft,level:dt?dt.level+1:-1},Dt)})}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,dt=Ae.pos,St=Ae.key,wt=Ae.parentPos,Ft=Ae.level,Dt=Ae.nodes,Oe={node:tt,nodes:Dt,index:at,key:St,pos:dt,level:Ft},_e=et(St,dt);it[dt]=Oe,_t[_e]=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,st,ne){"use strict";ne.d(st,{Z:function(){return ce}});var ie=ne(4676);function ce(De,Ue,we,Be){var ae=ie.unstable_batchedUpdates?function(Xe){ie.unstable_batchedUpdates(we,Xe)}:we;return De!=null&&De.addEventListener&&De.addEventListener(Ue,ae,Be),{remove:function(){De!=null&&De.removeEventListener&&De.removeEventListener(Ue,ae,Be)}}}},55468:function(qe,st,ne){"use strict";ne.d(st,{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 Ue(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=Ue(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 Ue(oe)}function Je(oe){return oe===document.body?document.documentElement.clientWidth:oe.offsetWidth}function Xe(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)}}},24514:function(qe,st,ne){"use strict";ne.d(st,{G:function(){return Ue}});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(Xe){return Xe in Je.style})}return!1},De=function(Be,ae){if(!ce(Be))return!1;var Je=document.createElement("div"),Xe=Je.style[Be];return Je.style[Be]=ae,Je.style[Be]!==Xe};function Ue(we,Be){return!Array.isArray(we)&&Be!==void 0?De(we,Be):ce(we)}}}]);
|