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.
298 lines
1.2 MiB
298 lines
1.2 MiB
(self.webpackChunk=self.webpackChunk||[]).push([[5816],{89489:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return Ze}});var b=ae(54476),se=ae(59301),Ce={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"},Fe=Ce,Oe=ae(7657),Re=function(_e,ke){return se.createElement(Oe.Z,(0,b.Z)({},_e,{ref:ke,icon:Fe}))},ue=se.forwardRef(Re),Ze=ue},59477:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return Ze}});var b=ae(54476),se=ae(59301),Ce={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"},Fe=Ce,Oe=ae(7657),Re=function(_e,ke){return se.createElement(Oe.Z,(0,b.Z)({},_e,{ref:ke,icon:Fe}))},ue=se.forwardRef(Re),Ze=ue},49198:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return Ze}});var b=ae(54476),se=ae(59301),Ce={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"},Fe=Ce,Oe=ae(7657),Re=function(_e,ke){return se.createElement(Oe.Z,(0,b.Z)({},_e,{ref:ke,icon:Fe}))},ue=se.forwardRef(Re),Ze=ue},87169:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return Ze}});var b=ae(54476),se=ae(59301),Ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Fe=Ce,Oe=ae(7657),Re=function(_e,ke){return se.createElement(Oe.Z,(0,b.Z)({},_e,{ref:ke,icon:Fe}))},ue=se.forwardRef(Re),Ze=ue},52671:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return Ze}});var b=ae(54476),se=ae(59301),Ce={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"},Fe=Ce,Oe=ae(7657),Re=function(_e,ke){return se.createElement(Oe.Z,(0,b.Z)({},_e,{ref:ke,icon:Fe}))},ue=se.forwardRef(Re),Ze=ue},8657:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return Ze}});var b=ae(54476),se=ae(59301),Ce={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"},Fe=Ce,Oe=ae(7657),Re=function(_e,ke){return se.createElement(Oe.Z,(0,b.Z)({},_e,{ref:ke,icon:Fe}))},ue=se.forwardRef(Re),Ze=ue},56082:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return Ze}});var b=ae(54476),se=ae(59301),Ce={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"},Fe=Ce,Oe=ae(7657),Re=function(_e,ke){return se.createElement(Oe.Z,(0,b.Z)({},_e,{ref:ke,icon:Fe}))},ue=se.forwardRef(Re),Ze=ue},33853:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return Ze}});var b=ae(54476),se=ae(59301),Ce={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"},Fe=Ce,Oe=ae(7657),Re=function(_e,ke){return se.createElement(Oe.Z,(0,b.Z)({},_e,{ref:ke,icon:Fe}))},ue=se.forwardRef(Re),Ze=ue},12893:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return Ze}});var b=ae(54476),se=ae(59301),Ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},Fe=Ce,Oe=ae(7657),Re=function(_e,ke){return se.createElement(Oe.Z,(0,b.Z)({},_e,{ref:ke,icon:Fe}))},ue=se.forwardRef(Re),Ze=ue},15075:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return Ze}});var b=ae(54476),se=ae(59301),Ce={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"},Fe=Ce,Oe=ae(7657),Re=function(_e,ke){return se.createElement(Oe.Z,(0,b.Z)({},_e,{ref:ke,icon:Fe}))},ue=se.forwardRef(Re),Ze=ue},32134:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return Ze}});var b=ae(54476),se=ae(59301),Ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},Fe=Ce,Oe=ae(7657),Re=function(_e,ke){return se.createElement(Oe.Z,(0,b.Z)({},_e,{ref:ke,icon:Fe}))},ue=se.forwardRef(Re),Ze=ue},43531:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return Ze}});var b=ae(54476),se=ae(59301),Ce={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"},Fe=Ce,Oe=ae(7657),Re=function(_e,ke){return se.createElement(Oe.Z,(0,b.Z)({},_e,{ref:ke,icon:Fe}))},ue=se.forwardRef(Re),Ze=ue},38819:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return Ze}});var b=ae(54476),se=ae(59301),Ce={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"},Fe=Ce,Oe=ae(7657),Re=function(_e,ke){return se.createElement(Oe.Z,(0,b.Z)({},_e,{ref:ke,icon:Fe}))},ue=se.forwardRef(Re),Ze=ue},21697:function(Ot,Rt){"use strict";Rt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},69092:function(Ot,Rt){"use strict";Rt.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},1198:function(Ot,Rt,ae){"use strict";var b=ae(59301),se=Object.defineProperty,Ce=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,Re=(We,_e,ke)=>_e in We?se(We,_e,{enumerable:!0,configurable:!0,writable:!0,value:ke}):We[_e]=ke,ue=(We,_e)=>{for(var ke in _e||(_e={}))Fe.call(_e,ke)&&Re(We,ke,_e[ke]);if(Ce)for(var ke of Ce(_e))Oe.call(_e,ke)&&Re(We,ke,_e[ke]);return We};const Ze=We=>React.createElement("svg",ue({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},We),React.createElement("title",null,"\u7F16\u7EC4 18"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("circle",{fill:"#FCB041",cx:7,cy:7,r:7}),React.createElement("path",{d:"M7.531 9.638a.616.616 0 1 1-1.231 0v-.02a.616.616 0 1 1 1.231 0v.02Zm0-2.25a.616.616 0 1 1-1.231 0V4.117a.616.616 0 1 1 1.231 0v3.273Z",fill:"#FFF",fillRule:"nonzero"})));Rt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},20397:function(){"use strict";function Ot(le,E,a,x){a===void 0&&(a=0),x===void 0&&(x=1/0),this._name=le,this._defaultValue=E,this._minimum=a,this._maximum=x}Object.defineProperty(Ot.prototype,"name",{get:function(){return this._name},set:function(le){if(typeof le!="string"||le==="")throw new Error("Shape name must be a valid string.");this._name=le}}),Object.defineProperty(Ot.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(le){if(typeof le!="number"||isNaN(le))throw new Error("The default value must be a real number, not: "+le);this._defaultValue=le}}),Object.defineProperty(Ot.prototype,"minimum",{get:function(){return this._minimum},set:function(le){if(typeof le!="number"||isNaN(le))throw new Error("Minimum must be a real number, not: "+le);this._minimum=le}}),Object.defineProperty(Ot.prototype,"maximum",{get:function(){return this._maximum},set:function(le){if(typeof le!="number"||isNaN(le))throw new Error("Maximum must be a real number, not: "+le);this._maximum=le}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(le,E){var a=go.Shape._FigureParameters[le];return a?a[E]:null},go.Shape.setFigureParameter=function(le,E,a){if(!(a instanceof Ot))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[le];x||(x=[],go.Shape._FigureParameters[le]=x),x[E]=a};var Rt=[];function ae(le,E){var a=Rt.pop();return a===void 0?new go.Point(le,E):(a.x=le,a.y=E,a)}function b(){var le=Rt.pop();return le===void 0?new go.Point:le}function se(le){Rt.push(le)}function Ce(le,E,a,x,y,z,te,re,ie){ie||(ie=new go.Point);var ce=le-a,pe=y-te,ge=NaN,ye=NaN;if(ce===0)if(pe===0)le===a&&(ge=le,ye=E);else{var Ee=(z-re)/pe,we=z-Ee*y;ge=le,ye=Ee*ge+we}else if(pe===0){var ve=(E-x)/ce,Je=E-ve*le;ge=y,ye=ve*ge+Je}else{var ve=(E-x)/ce,Ee=(z-re)/pe,Je=E-ve*le,we=z-Ee*y;ge=(we-Je)/(ve-Ee),ye=ve*ge+Je}return ie.x=ge,ie.y=ye,ie}function Fe(le,E,a,x,y,z,te,re,ie,ce,pe,ge,ye,Ee){var we=1-ie,ve=ie,Je=le*we+a*ve,Ge=E*we+x*ve,ot=a*we+y*ve,Le=x*we+z*ve,Ue=y*we+te*ve,st=z*we+re*ve,Ke=Je*we+ot*ve,rt=Ge*we+Le*ve,Ht=ot*we+Ue*ve,it=Le*we+st*ve,jt=Ke*we+Ht*ve,Kt=rt*we+it*ve;ce.x=Je,ce.y=Ge,pe.x=Ke,pe.y=rt,ge.x=jt,ge.y=Kt,ye.x=Ht,ye.y=it,Ee.x=Ue,Ee.y=st}var Oe=new go.Spot(.156,.156),Re=new go.Spot(.844,.844),ue=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ot("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,E/3),x=Math.min(x,a/3);var y=x*ue,z=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,E-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,E,x,E-y,0,E,y)).add(new go.PathSegment(go.PathSegment.Line,E,a-x)).add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E,a-y,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,x,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,y,a,0,a-y)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,y,y,0).close()));return y>1&&(z.spot1=new go.Spot(0,0,y,y),z.spot2=new go.Spot(1,1,-y,-y)),z}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,a).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,a).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(le,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=a/2,x.endX=E,x.endY=a/2,x}),go.Shape.defineFigureGenerator("LineV",function(le,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=E/2,x.startY=0,x.endX=E/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(le,E,a){return new go.Geometry().add(new go.PathFigure(0,a/2,!1).add(new go.PathSegment(go.PathSegment.Line,E,a/2)).add(new go.PathSegment(go.PathSegment.Move,E/2,0)).add(new go.PathSegment(go.PathSegment.Line,E/2,a)))}),go.Shape.defineFigureGenerator("XLine",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)))}),go.Shape.defineFigureGenerator("LineRight",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.25*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.25*E,a)))}),go.Shape.defineFigureGenerator("LineDown",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,.25*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,.75*a)).add(new go.PathSegment(go.PathSegment.Line,E,.25*a)))}),go.Shape.defineFigureGenerator("LineLeft",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.75*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*E,a)))}),go.Shape.defineFigureGenerator("LineUp",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,.75*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,.25*a)).add(new go.PathSegment(go.PathSegment.Line,E,.75*a)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(le,E,a){var x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*E,(1-x)*a,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,x*a)).add(new go.PathSegment(go.PathSegment.Move,x*E,x*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Move,0,a/2)).add(new go.PathSegment(go.PathSegment.Line,E,a/2)).add(new go.PathSegment(go.PathSegment.Move,E/2,0)).add(new go.PathSegment(go.PathSegment.Line,E/2,a)))}),go.Shape.defineFigureGenerator("CircleLine",function(le,E,a){var x=E/2,y=new go.Geometry().add(new go.PathFigure(E,E/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return y.spot1=Oe,y.spot2=Re,y.defaultStretch=go.GraphObject.Uniform,y}),go.Shape.defineFigureGenerator("Line1",function(le,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=E,x.endY=a,x}),go.Shape.defineFigureGenerator("Line2",function(le,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=E,x.startY=0,x.endX=0,x.endY=a,x}),go.Shape.defineFigureGenerator("Curve1",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,E,a,ue*E,0,E,(1-ue)*a)))}),go.Shape.defineFigureGenerator("Curve2",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,E,a,0,ue*a,(1-ue)*E,a)))}),go.Shape.defineFigureGenerator("Curve3",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,E,ue*a,ue*E,a)))}),go.Shape.defineFigureGenerator("Curve4",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,(1-ue)*E,0,0,(1-ue)*a)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Ot("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var y=Math.abs(x)*E;if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),y<E/2&&z.setSpots(y/E,0,(E-y)/E,1),z}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Ot("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)?x=10:x<-E?x=-E:x>E&&(x=E);var y=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),y<E/2&&z.setSpots(y/E,0,(E-y)/E,1),z}}),go.Shape.setFigureParameter("Trapezoid1",0,new Ot("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)?x=.2:x<.5?x=-.5:x>.5&&(x=.5);var y=Math.abs(x)*E;if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),y<E/2&&z.setSpots(y/E,0,(E-y)/E,1),z}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Ot("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)?x=20:x<-E?x=-E/2:x>E&&(x=E/2);var y=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),y<E/2&&z.setSpots(y/E,0,(E-y)/E,1),z}}),go.Shape.setFigureParameter("ManualOperation",0,new Ot("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)?x=10:x<-E?x=-E/2:x>E&&(x=E/2);var y=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())):z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())),y<E/2&&z.setSpots(y/E,0,(E-y)/E,1),z}});var Ze=[];function We(){var le=Ze.pop();return le===void 0?[]:le}function _e(le){le.length=0,Ze.push(le)}function ke(le){for(var E=We(),a=.5,x=.5,y=Math.PI*1.5,z=0,te=0;te<le;te++)z=2*Math.PI/le*te+y,E[te]=new go.Point(x+a*Math.cos(z),x+a*Math.sin(z));return E.push(E[0]),E}function je(le){var E=Ie(le),a=We();a[0]=E[0];for(var x=1,y=1;x<E.length;x+=2,y+=3)a[y]=E[x],a[y+1]=E[x],a[y+2]=E[x+1];return _e(E),a}function Ie(le){for(var E=ke(le),a=We(),x=Math.floor(E.length/2),y=E.length-1,z=le%2===0?2:1,te=0;te<y;te++){var re=E[te],ie=E[te+1],ce=E[(x+te-1)%y],pe=E[(x+te+z)%y];a[te*2]=re,a[te*2+1]=Ce(re.x,re.y,ce.x,ce.y,ie.x,ie.y,pe.x,pe.y,new go.Point)}return a[a.length]=a[0],_e(E),a}go.Shape.defineFigureGenerator("Pentagon",function(le,E,a){var x=ke(5),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<5;te++)z.add(new go.PathSegment(go.PathSegment.Line,x[te].x*E,x[te].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),_e(x),y.spot1=new go.Spot(.2,.22),y.spot2=new go.Spot(.8,.9),y}),go.Shape.defineFigureGenerator("Hexagon",function(le,E,a){var x=ke(6),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<6;te++)z.add(new go.PathSegment(go.PathSegment.Line,x[te].x*E,x[te].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),_e(x),y.spot1=new go.Spot(.07,.25),y.spot2=new go.Spot(.93,.75),y}),go.Shape.defineFigureGenerator("Heptagon",function(le,E,a){var x=ke(7),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<7;te++)z.add(new go.PathSegment(go.PathSegment.Line,x[te].x*E,x[te].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),_e(x),y.spot1=new go.Spot(.2,.15),y.spot2=new go.Spot(.8,.85),y}),go.Shape.defineFigureGenerator("Octagon",function(le,E,a){var x=ke(8),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<8;te++)z.add(new go.PathSegment(go.PathSegment.Line,x[te].x*E,x[te].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),_e(x),y.spot1=new go.Spot(.15,.15),y.spot2=new go.Spot(.85,.85),y}),go.Shape.defineFigureGenerator("Nonagon",function(le,E,a){var x=ke(9),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<9;te++)z.add(new go.PathSegment(go.PathSegment.Line,x[te].x*E,x[te].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),_e(x),y.spot1=new go.Spot(.17,.13),y.spot2=new go.Spot(.82,.82),y}),go.Shape.defineFigureGenerator("Decagon",function(le,E,a){var x=ke(10),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<10;te++)z.add(new go.PathSegment(go.PathSegment.Line,x[te].x*E,x[te].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),_e(x),y.spot1=new go.Spot(.16,.16),y.spot2=new go.Spot(.84,.84),y}),go.Shape.defineFigureGenerator("Dodecagon",function(le,E,a){var x=ke(12),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<12;te++)z.add(new go.PathSegment(go.PathSegment.Line,x[te].x*E,x[te].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),_e(x),y.spot1=new go.Spot(.16,.16),y.spot2=new go.Spot(.84,.84),y}),go.Shape.defineFigureGenerator("FivePointedStar",function(le,E,a){var x=Ie(5),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<10;te++)z.add(new go.PathSegment(go.PathSegment.Line,x[te].x*E,x[te].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),_e(x),y.spot1=new go.Spot(.266,.333),y.spot2=new go.Spot(.733,.733),y}),go.Shape.defineFigureGenerator("SixPointedStar",function(le,E,a){var x=Ie(6),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<12;te++)z.add(new go.PathSegment(go.PathSegment.Line,x[te].x*E,x[te].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),_e(x),y.spot1=new go.Spot(.17,.25),y.spot2=new go.Spot(.83,.75),y}),go.Shape.defineFigureGenerator("SevenPointedStar",function(le,E,a){var x=Ie(7),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<14;te++)z.add(new go.PathSegment(go.PathSegment.Line,x[te].x*E,x[te].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),_e(x),y.spot1=new go.Spot(.222,.277),y.spot2=new go.Spot(.777,.666),y}),go.Shape.defineFigureGenerator("EightPointedStar",function(le,E,a){var x=Ie(8),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<16;te++)z.add(new go.PathSegment(go.PathSegment.Line,x[te].x*E,x[te].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),_e(x),y.spot1=new go.Spot(.25,.25),y.spot2=new go.Spot(.75,.75),y}),go.Shape.defineFigureGenerator("NinePointedStar",function(le,E,a){var x=Ie(9),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<18;te++)z.add(new go.PathSegment(go.PathSegment.Line,x[te].x*E,x[te].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),_e(x),y.spot1=new go.Spot(.222,.277),y.spot2=new go.Spot(.777,.666),y}),go.Shape.defineFigureGenerator("TenPointedStar",function(le,E,a){var x=Ie(10),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<20;te++)z.add(new go.PathSegment(go.PathSegment.Line,x[te].x*E,x[te].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),_e(x),y.spot1=new go.Spot(.281,.261),y.spot2=new go.Spot(.723,.748),y}),go.Shape.defineFigureGenerator("FivePointedBurst",function(le,E,a){var x=je(5),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<x.length;te+=3)z.add(new go.PathSegment(go.PathSegment.Bezier,x[te+2].x*E,x[te+2].y*a,x[te].x*E,x[te].y*a,x[te+1].x*E,x[te+1].y*a));return z.segments.last().close(),_e(x),y.spot1=new go.Spot(.222,.277),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("SixPointedBurst",function(le,E,a){var x=je(6),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<x.length;te+=3)z.add(new go.PathSegment(go.PathSegment.Bezier,x[te+2].x*E,x[te+2].y*a,x[te].x*E,x[te].y*a,x[te+1].x*E,x[te+1].y*a));return z.segments.last().close(),_e(x),y.spot1=new go.Spot(.17,.222),y.spot2=new go.Spot(.833,.777),y}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(le,E,a){var x=je(7),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<x.length;te+=3)z.add(new go.PathSegment(go.PathSegment.Bezier,x[te+2].x*E,x[te+2].y*a,x[te].x*E,x[te].y*a,x[te+1].x*E,x[te+1].y*a));return z.segments.last().close(),_e(x),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("EightPointedBurst",function(le,E,a){var x=je(8),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<x.length;te+=3)z.add(new go.PathSegment(go.PathSegment.Bezier,x[te+2].x*E,x[te+2].y*a,x[te].x*E,x[te].y*a,x[te+1].x*E,x[te+1].y*a));return z.segments.last().close(),_e(x),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("NinePointedBurst",function(le,E,a){var x=je(9),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<x.length;te+=3)z.add(new go.PathSegment(go.PathSegment.Bezier,x[te+2].x*E,x[te+2].y*a,x[te].x*E,x[te].y*a,x[te+1].x*E,x[te+1].y*a));return z.segments.last().close(),_e(x),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("TenPointedBurst",function(le,E,a){var x=je(10),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<x.length;te+=3)z.add(new go.PathSegment(go.PathSegment.Bezier,x[te+2].x*E,x[te+2].y*a,x[te].x*E,x[te].y*a,x[te+1].x*E,x[te+1].y*a));return z.segments.last().close(),_e(x),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.setFigureParameter("FramedRectangle",0,new Ot("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ot("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(le,E,a){var x=le?le.parameter1:NaN,y=le?le.parameter2:NaN;isNaN(x)&&(x=8),isNaN(y)&&(y=8);var z=new go.Geometry,te=new go.PathFigure(0,0,!0);return z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,0)),te.add(new go.PathSegment(go.PathSegment.Line,E,a)),te.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x<E/2&&y<a/2&&(te.add(new go.PathSegment(go.PathSegment.Move,x,y)),te.add(new go.PathSegment(go.PathSegment.Line,x,a-y)),te.add(new go.PathSegment(go.PathSegment.Line,E-x,a-y)),te.add(new go.PathSegment(go.PathSegment.Line,E-x,y).close())),z.setSpots(0,0,1,1,x,y,-x,-y),z}),go.Shape.setFigureParameter("Ring",0,new Ot("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=8);var y=E/2,z=new go.Geometry,te=new go.PathFigure(E,E/2,!0);z.add(te),te.add(new go.PathSegment(go.PathSegment.Arc,0,360,y,y,y,y).close());var re=Math.max(y-x,0);return re>0&&(te.add(new go.PathSegment(go.PathSegment.Move,E/2+re,E/2)),te.add(new go.PathSegment(go.PathSegment.Arc,0,-360,y,y,re,re).close())),z.spot1=Oe,z.spot2=Re,z.defaultStretch=go.GraphObject.Uniform,z}),go.Shape.defineFigureGenerator("Cloud",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.08034461*E,.1944299*a,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*E,.05349299*a,-.09239631*E,.07836421*a,.1406031*E,-.0542823*a)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*E,.074219*a,.2450511*E,-.00697547*a,.3776197*E,-.01112067*a)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*E,.07004196*a,.4539471*E,0,.6066018*E,-.02526587*a)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*E,.08370865*a,.6914277*E,-.01904177*a,.8921095*E,-.01220843*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*E,.3194596*a,1.036446*E,.04105738*a,1.020377*E,.3022052*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*E,.562044*a,1.04448*E,.360238*a,.992256*E,.5219009*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*E,.8217117*a,1.032337*E,.5771781*a,1.018411*E,.8120651*a)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*E,.9156953*a,1.028411*E,.9571472*a,.8556702*E,1.052487*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*E,.9310455*a,.7431877*E,1.009325*a,.5624123*E,1.021761*a)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*E,.9344623*a,.4820677*E,1.031761*a,.3030112*E,1.002796*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*E,.870098*a,.2329994*E,1.01518*a,.03213784*E,1.01518*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*E,.6545475*a,-.02812061*E,.9032597*a,-.01205169*E,.6835638*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*E,.4265613*a,-.01812061*E,.6089503*a,-.00606892*E,.4555777*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*E,.1944299*a,-.01606892*E,.3892545*a,-.01205169*E,.1944299*a))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(le,E,a){var x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*E,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,x*a)).add(new go.PathSegment(go.PathSegment.Line,E,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)).add(new go.PathSegment(go.PathSegment.Line,x*E,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 Ot("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ot("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(le,E,a){var x=le?le.parameter1:NaN,y=le?le.parameter2:NaN;isNaN(x)&&(x=0),isNaN(y)&&(y=315);var z=x%360;z<0&&(z+=360);var te=y%360,re=Math.min(E,a)/2;return new go.Geometry().add(new go.PathFigure(re,re).add(new go.PathSegment(go.PathSegment.Arc,z,te,re,re,re,re).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(le,E,a){var x=ue/Math.SQRT2*.5,y=Math.SQRT2/2,z=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(E,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,y*E,z*a,E,(1-x)*a,(y+x)*E,(z+x)*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Ot("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var y=Math.min(x,E)/2,z=E/2,te=a/2;return new go.Geometry().add(new go.PathFigure(z-y,0,!0).add(new go.PathSegment(go.PathSegment.Line,z+y,0)).add(new go.PathSegment(go.PathSegment.Line,z+y,te-y)).add(new go.PathSegment(go.PathSegment.Line,E,te-y)).add(new go.PathSegment(go.PathSegment.Line,E,te+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,te+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,te+y)).add(new go.PathSegment(go.PathSegment.Line,0,te+y)).add(new go.PathSegment(go.PathSegment.Line,0,te-y)).add(new go.PathSegment(go.PathSegment.Line,z-y,te-y).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Ot("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var y=Math.min(x,E)/2,z=E/2,te=a/2;return new go.Geometry().add(new go.PathFigure(z-y,0,!0).add(new go.PathSegment(go.PathSegment.Line,z+y,0)).add(new go.PathSegment(go.PathSegment.Line,z+y,te-y)).add(new go.PathSegment(go.PathSegment.Line,E,te-y)).add(new go.PathSegment(go.PathSegment.Line,E,te+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,te+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,te+y)).add(new go.PathSegment(go.PathSegment.Line,0,te+y)).add(new go.PathSegment(go.PathSegment.Line,0,te-y)).add(new go.PathSegment(go.PathSegment.Line,z-y,te-y).close()))}),go.Shape.setFigureParameter("ThickX",0,new Ot("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(le,E,a){var x=le?le.parameter1:NaN;if((isNaN(x)||x<0)&&(x=30),E===0||a===0){var y=new go.Geometry(go.Geometry.Rectangle);return y.startX=0,y.startY=0,y.endX=E,y.endY=a,y}else{var z=E/2,te=a/2,re=Math.atan2(a,E),ie=x-Math.min(Math.cos(re)*x/2,z),ce=x-Math.min(Math.sin(re)*x/2,te),y=new go.Geometry,pe=new go.PathFigure(ie,0,!0);return y.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z,.2*a)),pe.add(new go.PathSegment(go.PathSegment.Line,E-ie,0)),pe.add(new go.PathSegment(go.PathSegment.Line,E,ce)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*E,te)),pe.add(new go.PathSegment(go.PathSegment.Line,E,a-ce)),pe.add(new go.PathSegment(go.PathSegment.Line,E-ie,a)),pe.add(new go.PathSegment(go.PathSegment.Line,z,.8*a)),pe.add(new go.PathSegment(go.PathSegment.Line,ie,a)),pe.add(new go.PathSegment(go.PathSegment.Line,0,a-ce)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*E,te)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ce).close()),y}}),go.Shape.setFigureParameter("ThinX",0,new Ot("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var y=new go.Geometry,z=new go.PathFigure(.1*E,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a).close()),y}),go.Shape.setFigureParameter("SquareIBeam",0,new Ot("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.2);var y=new go.Geometry,z=new go.PathFigure(0,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*E,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*E,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*E,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*E,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,x*a).close()),y}),go.Shape.setFigureParameter("RoundedIBeam",0,new Ot("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.5);var y=new go.Geometry,z=new go.PathFigure(0,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,a,Math.abs(1-x)*E,.25*a,Math.abs(1-x)*E,.75*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*E,.75*a,x*E,.25*a).close()),y}),go.Shape.defineFigureGenerator("HalfEllipse",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,ue*E,0,E,(.5-ue/2)*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a,E,(.5+ue/2)*a,ue*E,a).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,a,E,0,E,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*E,.75*a,.5*E,.25*a).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,.1*E,.8*a,0,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*a,0,0,.45*E,0)).add(new go.PathSegment(go.PathSegment.Bezier,E,.3*a,.55*E,0,E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,.5*a,.9*E,.8*a).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*E,.01*a)).add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.6*E,.2*a,E,.25*a)).add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.7*a,E,.8*a,.6*E,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.75*E,a,.5*E,.75*a,.55*E,.95*a)).add(new go.PathSegment(go.PathSegment.Line,.25*E,a)).add(new go.PathSegment(go.PathSegment.Bezier,.45*E,.7*a,.45*E,.95*a,.5*E,.75*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.4*E,.8*a,0,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.49*E,.01*a,0,.25*a,.4*E,.2*a).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.4*E,.6*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.15*E,a,.5*E,.75*a,.45*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*E,.6*a,.55*E,.95*a,.5*E,.75*a));var z=.2,te=.3,re=0,ie=z*ue;return y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*E,(.5+z+re)*a,(.5-z+te)*E,(.5+ie+re)*a,(.5-ie+te)*E,(.5+z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+z+te)*E,(.5+re)*a,(.5+ie+te)*E,(.5+z+re)*a,(.5+z+te)*E,(.5+ie+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*E,(.5-z+re)*a,(1-.5+z+te)*E,(.5-ie+re)*a,(.5+ie+te)*E,(.5-z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.65*E,.36771243*a,(.5-ie+te)*E,(.5-z+re)*a,(.5-z+te+.05)*E,(.5-ie+re-.02)*a)),z=.2,te=0,re=-.3,ie=z*ue,y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+z+te)*E,(.5+re)*a,(.5+ie+te)*E,(.5+z+re)*a,(.5+z+te)*E,(.5+ie+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*E,(.5-z+re)*a,(1-.5+z+te)*E,(.5-ie+re)*a,(.5+ie+te)*E,(.5-z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-z+te)*E,(.5+re)*a,(.5-ie+te)*E,(.5-z+re)*a,(.5-z+te)*E,(.5-ie+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ie+te)*E,(.5+z+re)*a,(.5-z+te)*E,(.5+ie+re)*a,(.5-ie+te)*E,(.5+z+re)*a)),z=.2,te=-.3,re=0,ie=z*ue,y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*E,(.5-z+re)*a,(1-.5+z+te-.05)*E,(.5-ie+re-.02)*a,(.5+ie+te)*E,(.5-z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-z+te)*E,(.5+re)*a,(.5-ie+te)*E,(.5-z+re)*a,(.5-z+te)*E,(.5-ie+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*E,(.5+z+re)*a,(.5-z+te)*E,(.5+ie+re)*a,(.5-ie+te)*E,(.5+z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,.6*a,(.5+ie+te)*E,(.5+z+re)*a,(.5+z+te)*E,(.5+ie+re)*a).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.5,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,E*.5,E*.5,E*.5,E*.5)),y.add(new go.PathSegment(go.PathSegment.Arc,90,-180,E*.5,E*.75,E*.25,E*.25)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,E*.5,E*.25,E*.25,E*.25));var z=.1,te=.5,re=.25;return y.add(new go.PathSegment(go.PathSegment.Move,(te+z)*E,re*a)),y.add(new go.PathSegment(go.PathSegment.Arc,0,-360,E*te,a*re,z*E,z*E).close()),y=new go.PathFigure(E*.5,0,!1),x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,-180,E*.5,E*.5,E*.5,E*.5)),re=.75,y=new go.PathFigure((te+z)*E,re*a,!0),x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,0,360,E*te,a*re,z*E,z*E).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(le,E,a){var x=.8535533905932737,y=.5*E,z=.5*a;return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,y,z,y,z)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Move,y,z)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,x*a)).add(new go.PathSegment(go.PathSegment.Move,y,z)).add(new go.PathSegment(go.PathSegment.Line,x*E,x*a)))}),go.Shape.defineFigureGenerator("NotAllowed",function(le,E,a){var x=new go.Geometry,y=ue*.5,z=.5,te=.5,re=.5,ie=new go.PathFigure(te*E,(re-z)*a);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,re*a,(te-y)*E,(re-z)*a,(te-z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+z)*a,(te-z)*E,(re+y)*a,(te-y)*E,(re+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,re*a,(te+y)*E,(re+z)*a,(te+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-z)*a,(te+z)*E,(re-y)*a,(te+y)*E,(re-z)*a)),z=.4,y=ue*.4;var ce=b(),pe=b(),ge=b(),ye=b();Fe(te,re-z,te+y,re-z,te+z,re-y,te+z,re,.42,ce,pe,ge,ye,ye);var Ee=b(),we=b(),ve=b();Fe(te,re-z,te+y,re-z,te+z,re-y,te+z,re,.58,ye,ye,ve,Ee,we);var Je=b(),Ge=b(),ot=b();Fe(te,re+z,te-y,re+z,te-z,re+y,te-z,re,.42,Je,Ge,ot,ye,ye);var Le=b(),Ue=b(),st=b();return Fe(te,re+z,te-y,re+z,te-z,re+y,te-z,re,.58,ye,ye,st,Le,Ue),ie.add(new go.PathSegment(go.PathSegment.Move,st.x*E,st.y*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,re*a,Le.x*E,Le.y*a,Ue.x*E,Ue.y*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-z)*a,(te-z)*E,(re-y)*a,(te-y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*E,ge.y*a,ce.x*E,ce.y*a,pe.x*E,pe.y*a)),ie.add(new go.PathSegment(go.PathSegment.Line,st.x*E,st.y*a).close()),ie.add(new go.PathSegment(go.PathSegment.Move,ot.x*E,ot.y*a)),ie.add(new go.PathSegment(go.PathSegment.Line,ve.x*E,ve.y*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,re*a,Ee.x*E,Ee.y*a,we.x*E,we.y*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+z)*a,(te+z)*E,(re+y)*a,(te+y)*E,(re+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ot.x*E,ot.y*a,Je.x*E,Je.y*a,Ge.x*E,Ge.y*a).close()),se(ce),se(pe),se(ge),se(ye),se(Ee),se(we),se(ve),se(Je),se(Ge),se(ot),se(Le),se(Ue),se(st),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*E,0)).add(new go.PathSegment(go.PathSegment.Line,.2*E,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.29*E,.33*a)).add(new go.PathSegment(go.PathSegment.Line,.35*E,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.4*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.5*a,E,.25*a,.75*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.55*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*E,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.5*a,0,.25*a).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Ot("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>E&&(x=E);var y=(E-x)/2,z=y+x;return new go.Geometry().add(new go.PathFigure(z,.5*a).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,E,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,.55*a).add(new go.PathSegment(go.PathSegment.Line,.6*E,0)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.45*a)).add(new go.PathSegment(go.PathSegment.Line,E,.45*a)).add(new go.PathSegment(go.PathSegment.Line,.4*E,a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.55*a).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(le,E,a){var x=new go.Geometry,y=ue*.4,z=.4,te=.5,re=.5,ie=b(),ce=b(),pe=b(),ge=b(),ye=new go.PathFigure((te-z)*E,re*a,!1);x.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-z)*a,(te-z)*E,(re-y)*a,(te-y)*E,(re-z)*a)),Fe(te,re-z,te+y,re-z,te+z,re-y,te+z,re,.44,pe,ge,ce,ie,ie),ye.add(new go.PathSegment(go.PathSegment.Bezier,ce.x*E,ce.y*a,pe.x*E,pe.y*a,ge.x*E,ge.y*a));var Ee=ae(ce.x,ce.y);Fe(te,re-z,te+y,re-z,te+z,re-y,te+z,re,.56,ie,ie,ce,pe,ge);var we=ae(ce.x,ce.y);ye.add(new go.PathSegment(go.PathSegment.Line,(Ee.x*.1+.95*.9)*E,Ee.y*.1*a)),ye.add(new go.PathSegment(go.PathSegment.Line,.85*E,Ee.y*.1*a)),ye.add(new go.PathSegment(go.PathSegment.Line,.85*E,0)),ye.add(new go.PathSegment(go.PathSegment.Line,E,0)),ye.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),ye.add(new go.PathSegment(go.PathSegment.Line,(we.x*.1+.9)*E,.15*a)),ye.add(new go.PathSegment(go.PathSegment.Line,(we.x*.1+.9)*E,(we.y*.1+.05*.9)*a)),ye.add(new go.PathSegment(go.PathSegment.Line,we.x*E,we.y*a)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,re*a,pe.x*E,pe.y*a,ge.x*E,ge.y*a)),ye.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+z)*a,(te+z)*E,(re+y)*a,(te+y)*E,(re+z)*a)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,re*a,(te-y)*E,(re+z)*a,(te-z)*E,(re+y)*a)),z=.35,y=ue*.35;var ve=new go.PathFigure(te*E,(re-z)*a,!1);x.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,re*a,(te-y)*E,(re-z)*a,(te-z)*E,(re-y)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+z)*a,(te-z)*E,(re+y)*a,(te-y)*E,(re+z)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,re*a,(te+y)*E,(re+z)*a,(te+z)*E,(re+y)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-z)*a,(te+z)*E,(re-y)*a,(te+y)*E,(re-z)*a));var Je=new go.PathFigure((te-z)*E,re*a,!1);return x.add(Je),se(ie),se(ce),se(pe),se(ge),se(Ee),se(we),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(le,E,a){var x=new go.Geometry,y=.375,z=0,te=-.125,re=y*ue,ie=new go.PathFigure((.525+z)*E,(.5+y+te)*a,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+z)*E,(.5+te)*a,(.5+re+z)*E,(.5+y+te)*a,(.5+y+z)*E,(.5+re+te)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5-y+te)*a,(1-.5+y+z)*E,(.5-re+te)*a,(.5+re+z)*E,(.5-y+te)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+z)*E,(.5+te)*a,(.5-re+z)*E,(.5-y+te)*a,(.5-y+z)*E,(.5-re+te)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.475+z)*E,(.5+y+te)*a,(.5-y+z)*E,(.5+re+te)*a,(.5-re+z)*E,(.5+y+te)*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.475*E,.85*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.425*E,.85*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.425*E,.9*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.475*E,.9*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.475*E,a)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*E,a)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*E,.9*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.575*E,.9*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.575*E,.85*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*E,.85*a).close()),y=.325,z=0,te=-.125,re=y*ue;var ie=new go.PathFigure((1-.5+y+z)*E,(.5+te)*a,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5+y+te)*a,(.5+y+z)*E,(.5+re+te)*a,(.5+re+z)*E,(.5+y+te)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+z)*E,(.5+te)*a,(.5-re+z)*E,(.5+y+te)*a,(.5-y+z)*E,(.5+re+te)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5-y+te)*a,(.5-y+z)*E,(.5-re+te)*a,(.5-re+z)*E,(.5-y+te)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+z)*E,(.5+te)*a,(.5+re+z)*E,(.5-y+te)*a,(1-.5+y+z)*E,(.5-re+te)*a));var ie=new go.PathFigure((.525+z)*E,(.5+y+te)*a,!1);return x.add(ie),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(le,E,a){var x=le?le.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(le,E,a){var x=le?le.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Move,x*E,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,x*E,a))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)))}),go.Shape.defineFigureGenerator("LogicAnd",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(le,E,a){var x=new go.Geometry().add(new go.PathFigure(.5*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*E,.5*a,.5*E,.5*a)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,.5*E,0)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Move,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Move,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)))}),go.Shape.defineFigureGenerator("LogicForAll",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,.25*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Move,0,a)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(le,E,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*E,x*a,x*E,x*a)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(le,E,a){var x=.5;return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,x*a)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*E,x*a,x*E,x*a)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Ot("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ot("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.3);var y=le?le.parameter2:NaN;isNaN(y)&&(y=.3);var z=(1-x)*E,te=(.5-y/2)*a,re=(.5+y/2)*a,ie=new go.Geometry,ce=new go.PathFigure(0,te,!0);ie.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,z,te)),ce.add(new go.PathSegment(go.PathSegment.Line,z,0)),ce.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),ce.add(new go.PathSegment(go.PathSegment.Line,z,a)),ce.add(new go.PathSegment(go.PathSegment.Line,z,re)),ce.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),ie.spot1=new go.Spot(0,te/a);var pe=Ce(0,re/a,1,re/a,z/E,1,1,.5,b());return ie.spot2=new go.Spot(pe.x,pe.y),se(pe),ie}),go.Shape.setFigureParameter("Arrow2",0,new Ot("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ot("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=30),x>E&&(x=E);var y=le?le.parameter2:NaN;isNaN(y)&&(y=30),y=Math.min(y,a/2);var z=E-x,te=(a-y)/2,re=te+y,ie=new go.Geometry,ce=new go.PathFigure(0,te,!0);ie.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,z,te)),ce.add(new go.PathSegment(go.PathSegment.Line,z,0)),ce.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),ce.add(new go.PathSegment(go.PathSegment.Line,z,a)),ce.add(new go.PathSegment(go.PathSegment.Line,z,re)),ce.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),ie.spot1=new go.Spot(0,te/a);var pe=Ce(0,re/a,1,re/a,z/E,1,1,.5,b());return ie.spot2=new go.Spot(pe.x,pe.y),se(pe),ie}),go.Shape.defineFigureGenerator("Chevron",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a).close()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.214*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,1*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.786*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,1*a).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Ot("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.3);var y=(.5-x/2)*a,z=(.5+x/2)*a,te=new go.Geometry,re=new go.PathFigure(E,.5*a,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),re.add(new go.PathSegment(go.PathSegment.Line,.3*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close());var ie=Ce(0,.5,.3,0,0,y/a,.1,y/a,b());return te.spot1=new go.Spot(ie.x,ie.y),ie=Ce(.7,1,1,.5,0,z/a,1,z/a,ie),te.spot2=new go.Spot(ie.x,ie.y),se(ie),te}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ot("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ot("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=40);var y=le?le.parameter2:NaN;isNaN(y)&&(y=100);var z=(a-x)/2,te=z+x,re=(a-y)/2,ie=re+y;(x>a||y>a)&&(y>x?(x=x*a/y,z=(a-x)/2,te=z+x,re=0,ie=a):(z=0,te=a,re=0,ie=a));var ce=new go.Geometry,pe=new go.PathFigure(E,.5*a,!0);ce.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,ie)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,te)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*E,te)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*E,ie)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*E,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*E,z)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,re).close());var ge=Ce(0,.5,.3,re/a,0,z/a,1,z/a,b());return ce.spot1=new go.Spot(ge.x,ge.y),ge=Ce(.7,ie/a,1,.5,0,te/a,1,te/a,ge),ce.spot2=new go.Spot(ge.x,ge.y),se(ge),ce}),go.Shape.setFigureParameter("IBeamArrow",0,new Ot("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.3);var y=(.5-x/2)*a,z=(.5+x/2)*a,te=new go.Geometry,re=new go.PathFigure(E,.5*a,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,0,a)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,0)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),te.spot1=new go.Spot(0,y/a);var ie=Ce(.7,1,1,.5,0,z/a,1,z/a,b());return te.spot2=new go.Spot(ie.x,ie.y),se(ie),te}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ot("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ot("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=40);var y=le?le.parameter2:NaN;isNaN(y)&&(y=100);var z=(a-x)/2,te=z+x,re=(a-y)/2,ie=re+y;(x>a||y>a)&&(y>x?(x=x*a/y,z=(a-x)/2,te=z+x,re=0,ie=a):(z=0,te=a,re=0,ie=a));var ce=new go.Geometry,pe=new go.PathFigure(E,.5*a,!0);ce.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,ie)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,te)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*E,te)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*E,ie)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ie)),pe.add(new go.PathSegment(go.PathSegment.Line,0,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*E,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,re).close()),ce.spot1=new go.Spot(0,z/a);var ge=Ce(.7,ie/a,1,.5,0,te/a,1,te/a,b());return ce.spot2=new go.Spot(ge.x,ge.y),se(ge),ce}),go.Shape.setFigureParameter("Pointer",0,new Ot("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.1);var y=new go.Geometry,z=new go.PathFigure(E,.5*a,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,x*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),y.spot1=new go.Spot(x,.35);var te=Ce(.2,.65,1,.65,0,1,1,.5,b());return y.spot2=new go.Spot(te.x,te.y),se(te),y}),go.Shape.setFigureParameter("RoundedPointer",0,new Ot("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.3);var y=new go.Geometry,z=new go.PathFigure(E,.5*a,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*E,.75*a,x*E,.25*a).close()),y.spot1=new go.Spot(x,.35);var te=Ce(0,.65,1,.65,0,1,1,.5,b());return y.spot2=new go.Spot(te.x,te.y),se(te),y}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ot("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.4);var y=(.5-x/2)*a,z=(.5+x/2)*a,te=new go.Geometry,re=new go.PathFigure(E,.5*a,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),te.spot1=new go.Spot(.2,.3);var ie=Ce(.7,1,1,.5,0,z/a,1,z/a,b());return te.spot2=new go.Spot(ie.x,ie.y),se(ie),te}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ot("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=50);var y=(a-x)/2,z=y+x;x>a&&(y=0,z=a);var te=new go.Geometry,re=new go.PathFigure(E,.5*a,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),te.spot1=new go.Spot(.2,y/a);var ie=Ce(.7,1,1,.5,0,z/a,1,z/a,b());return te.spot2=new go.Spot(ie.x,ie.y),se(ie),te}),go.Shape.setFigureParameter("SquareArrow",0,new Ot("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.7);var y=new go.Geometry,z=new go.PathFigure(E,.5*a,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,x*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,0)),z.add(new go.PathSegment(go.PathSegment.Line,x*E,0).close()),y.spot1=go.Spot.TopLeft,y.spot2=new go.Spot(x,1),y}),go.Shape.defineFigureGenerator("Cone1",function(le,E,a){var x=new go.Geometry,y=ue*.5,z=ue*.1,te=new go.PathFigure(0,.9*a,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),te.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.9+z)*a,(.5+y)*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-y)*E,a,0,(.9+z)*a).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.9*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.9*a,(1-.85/.9)*E,a,.85/.9*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.9*a).close());var z=new go.PathFigure(0,.9*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.9*a,(1-.85/.9)*E,.8*a,.85/.9*E,.8*a)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var z=new go.PathFigure(.5*E,a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),z.add(new go.PathSegment(go.PathSegment.Move,.5*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.3*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,0).close());var z=new go.PathFigure(0,.3*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Move,.7*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var y=new go.Geometry,z=ue*.5,te=new go.PathFigure(0,x,!0);y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,ue*x,(.5-z)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,1*E,x,(.5+z)*E,0,1*E,ue*x)),te.add(new go.PathSegment(go.PathSegment.Line,E,a-x)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,1*a,1*E,a-ue*x,(.5+z)*E,1*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,(.5-z)*E,1*a,0,a-ue*x)),te.add(new go.PathSegment(go.PathSegment.Line,0,x));var re=new go.PathFigure(E,x,!1);return y.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,2*x,1*E,2*x-ue*x,(.5+z)*E,2*x)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-z)*E,2*x,0,2*x-ue*x)),y.spot1=new go.Spot(0,0,0,2*x),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var y=new go.Geometry,z=ue*.5,te=new go.PathFigure(0,a-x,!0);y.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,x)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,ue*x,(.5-z)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,x,(.5+z)*E,0,E,ue*x)),te.add(new go.PathSegment(go.PathSegment.Line,E,a-x)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,a-ue*x,(.5+z)*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,(.5-z)*E,a,0,a-ue*x));var re=new go.PathFigure(0,a-x,!1);return y.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a-2*x,0,a-x-ue*x,(.5-z)*E,a-2*x)),re.add(new go.PathSegment(go.PathSegment.Bezier,E,a-x,(.5+z)*E,a-2*x,E,a-x-ue*x)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,0,-2*x),y}),go.Shape.defineFigureGenerator("Cylinder3",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,E/3);var y=new go.Geometry,z=ue*.5,te=new go.PathFigure(x,0,!0);y.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E-x,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,E-ue*x,0,E,(.5-z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E,(.5+z)*a,E-ue*x,a)),te.add(new go.PathSegment(go.PathSegment.Line,x,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,ue*x,a,0,(.5+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-z)*a,ue*x,0));var re=new go.PathFigure(x,0,!1);return y.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*a,x+ue*x,0,2*x,(.5-z)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,x,a,2*x,(.5+z)*a,x+ue*x,a)),y.spot1=new go.Spot(0,0,2*x,0),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder4",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,E/3);var y=new go.Geometry,z=ue*.5,te=new go.PathFigure(E-x,0,!0);y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,E-ue*x,0,E,(.5-z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E,(.5+z)*a,E-ue*x,a)),te.add(new go.PathSegment(go.PathSegment.Line,x,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,ue*x,a,0,(.5+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-z)*a,ue*x,0)),te.add(new go.PathSegment(go.PathSegment.Line,E-x,0));var re=new go.PathFigure(E-x,0,!1);return y.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,E-2*x,.5*a,E-x-ue*x,0,E-2*x,(.5-z)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E-2*x,(.5+z)*a,E-x-ue*x,a)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,-2*x,0),y}),go.Shape.defineFigureGenerator("Prism1",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.25*E,.25*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(.25*E,.25*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.25*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),z.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),z.add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*a)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*a).close());var z=new go.PathFigure(.5*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var z=new go.PathFigure(.5*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.7*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.85*a)),z.add(new go.PathSegment(go.PathSegment.Move,.5*E,.7*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(le,E,a){var x=new go.Geometry,y=.2,z=.1,te=ue*y,re=ue*z,ie=.5,ce=.1,pe=new go.PathFigure(ie*E,(ce+z)*a,!0);x.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-y)*E,ce*a,(ie-te)*E,(ce+z)*a,(ie-y)*E,(ce+re)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ce-z)*a,(ie-y)*E,(ce-re)*a,(ie-te)*E,(ce-z)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+y)*E,ce*a,(ie+te)*E,(ce-z)*a,(ie+y)*E,(ce-re)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ce+z)*a,(ie+y)*E,(ce+re)*a,(ie+te)*E,(ce+z)*a));var ge=.05,ye=ue*ge;ie=.05,ce=.25;var Ee=new go.PathFigure(.5*E,.2*a,!0);return x.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,.95*E,.2*a)),ie=.95,ce=.25,Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ge)*E,ce*a,(ie+ye)*E,(ce-ge)*a,(ie+ge)*E,(ce-ye)*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.85*E,.35*a)),ge=.025,ye=ue*ge,ie=.825,ce=.35,Ee.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ce-ge)*a,(ie+ge)*E,(ce-ye)*a,(ie+ye)*E,(ce-ge)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ge)*E,ce*a,(ie-ye)*E,(ce-ge)*a,(ie-ge)*E,(ce-ye)*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.55*E,a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.55*E,.7*a)),ge=.05,ye=ue*ge,ie=.5,ce=.7,Ee.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ce-ge)*a,(ie+ge)*E,(ce-ye)*a,(ie+ye)*E,(ce-ge)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ge)*E,ce*a,(ie-ye)*E,(ce-ge)*a,(ie-ge)*E,(ce-ye)*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.45*E,a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*E,.35*a)),ge=.025,ye=ue*ge,ie=.175,ce=.35,Ee.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ce-ge)*a,(ie+ge)*E,(ce-ye)*a,(ie+ye)*E,(ce-ge)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ge)*E,ce*a,(ie-ye)*E,(ce-ge)*a,(ie-ge)*E,(ce-ye)*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),ge=.05,ye=ue*ge,ie=.05,ce=.25,Ee.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ce-ge)*a,(ie-ge)*E,(ce-ye)*a,(ie-ye)*E,(ce-ge)*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.5*E,.2*a)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new Ot("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.2);var y=new go.Geometry,z=new go.PathFigure(E,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,x*E,0).close()),y.spot1=new go.Spot(0,x),y.spot2=go.Spot.BottomRight,y}),go.Shape.defineFigureGenerator("Collate",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a));var z=new go.PathFigure(.5*E,.5*a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var te=new go.PathFigure(0,y*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,y*a)),te.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*a)),te.add(new go.PathSegment(go.PathSegment.Line,E,(1-y)*a)),x}),go.Shape.defineFigureGenerator("Database",function(le,E,a){var x=new go.Geometry,y=ue*.5,z=ue*.1,te=new go.PathFigure(E,.1*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.9+z)*a,(.5+y)*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-y)*E,a,0,(.9+z)*a)),te.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,(.1-z)*a,(.5-y)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*a,(.5+y)*E,0,E,(.1-z)*a));var re=new go.PathFigure(E,.1*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,E,(.1+z)*a,(.5+y)*E,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-y)*E,.2*a,0,(.1+z)*a)),re.add(new go.PathSegment(go.PathSegment.Move,E,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*a,E,(.2+z)*a,(.5+y)*E,.3*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-y)*E,.3*a,0,(.2+z)*a)),re.add(new go.PathSegment(go.PathSegment.Move,E,.3*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.4*a,E,(.3+z)*a,(.5+y)*E,.4*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,(.5-y)*E,.4*a,0,(.3+z)*a)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,a,E,0,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.9*a,.25*E,.1*a).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(le,E,a){var x=new go.Geometry,y=ue*.5,z=ue*.1,te=new go.PathFigure(E,.1*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.9+z)*a,(.5+y)*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-y)*E,a,0,(.9+z)*a)),te.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,(.1-z)*a,(.5-y)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*a,(.5+y)*E,0,E,(.1-z)*a));var re=new go.PathFigure(E,.1*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,E,(.1+z)*a,(.5+y)*E,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-y)*E,.2*a,0,(.1+z)*a)),re.add(new go.PathSegment(go.PathSegment.Move,E,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*a,E,(.2+z)*a,(.5+y)*E,.3*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-y)*E,.3*a,0,(.2+z)*a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.25*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,a,E,0,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,a)),y.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(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)?y=.2:y<.15&&(y=.15);var z=ue*.2,te=new go.PathFigure(0,.2*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,0,(.2-z)*a,(.2-z)*E,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,.2*a,(.8+z)*E,0,E,(.2-z)*a)),te.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,a,E,(.8+z)*a,(.8+z)*E,a)),te.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*a,(.2-z)*E,a,0,(.8+z)*a)),te.add(new go.PathSegment(go.PathSegment.Line,0,.2*a));var re=new go.PathFigure(0,y*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,y*a)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;(isNaN(y)||y<.1)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var te=new go.PathFigure(0,y*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,y*a)),x}),go.Shape.defineFigureGenerator("Document",function(le,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(0,.7*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*E,.4*a,.5*E,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;(isNaN(y)||y<.2)&&(y=.2);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var te=new go.PathFigure(y*E,0,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y*a)),te.add(new go.PathSegment(go.PathSegment.Move,E,y*a)),te.add(new go.PathSegment(go.PathSegment.Line,(1-y)*E,0)),te.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*a)),te.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),te.add(new go.PathSegment(go.PathSegment.Move,(1-y)*E,a)),te.add(new go.PathSegment(go.PathSegment.Line,E,(1-y)*a)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var z=new go.PathFigure(.1*E,.4*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Move,.9*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Move,.6*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Move,.4*E,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.9*a)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(.75*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,.25*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a));var z=new go.PathFigure(E,.5*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,a));var te=new go.PathFigure(E,.5*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN,z=le?le.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(z)&&(z=.1);var te=new go.PathFigure(0,0,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,0)),te.add(new go.PathSegment(go.PathSegment.Line,E,a)),te.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var re=new go.PathFigure(y*E,0,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),re.add(new go.PathSegment(go.PathSegment.Move,0,z*a)),re.add(new go.PathSegment(go.PathSegment.Line,E,z*a)),x}),go.Shape.defineFigureGenerator("Junction",function(le,E,a){var x=new go.Geometry,y=1/Math.SQRT2,z=(1-1/Math.SQRT2)/2,te=ue*.5,re=.5,ie=new go.PathFigure(E,re*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,re*E,a,E,(re+te)*a,(re+te)*E,a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,re*a,(re-te)*E,a,0,(re+te)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,re*E,0,0,(re-te)*a,(re-te)*E,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,E,re*a,(re+te)*E,0,E,(re-te)*a));var ce=new go.PathFigure((z+y)*E,(z+y)*a,!1);return x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,z*E,z*a)),ce.add(new go.PathSegment(go.PathSegment.Move,z*E,(z+y)*a)),ce.add(new go.PathSegment(go.PathSegment.Line,(z+y)*E,z*a)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(le,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(0,.7*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*E,.4*a,.5*E,a).close());var z=new go.PathFigure(.1*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,.75*a)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(le,E,a){var x=new go.Geometry,y=ue*.5,z=.5,te=new go.PathFigure(.5*E,a,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,z*a,(z-y)*E,a,0,(z+y)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*E,0,0,(z-y)*a,(z-y)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,z*a,(z+y)*E,0,E,(z-y)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+.1)*E,.9*a,E,(z+y)*a,(z+y)*E,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,E,a)),te.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.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(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.7);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,y*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.25);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,y*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,(1-y)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.75*a)),y.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(le,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.44*a,.96*E,.47*a,.93*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.54*a,.86*E,.57*a,.83*E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.4*E,.4*a,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,0).close());var z=new go.PathFigure(.1*E,.2*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.44*a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,.1*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*a).close());var z=new go.PathFigure(.2*E,.1*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Move,.1*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.9*a)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=1-y,te=new go.PathFigure(0,0,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,0)),te.add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close());var re=new go.PathFigure(.5*y*E,y*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,(1-.5*y)*E,y*a)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,a)),y.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(le,E,a){var x=new go.Geometry,y=ue*.5,z=.5,te=new go.PathFigure(E,z*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*E,a,E,(z+y)*a,(z+y)*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,z*a,(z-y)*E,a,0,(z+y)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*E,0,0,(z-y)*a,(z-y)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,z*a,(z+y)*E,0,E,(z-y)*a));var re=new go.PathFigure(E,.5*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),re.add(new go.PathSegment(go.PathSegment.Move,.5*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(le,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(0,.7*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.3*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.3*a,.5*E,.6*a,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*E,.4*a,.5*E,a).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN,z=le?le.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(z)&&(z=.3);var te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,0)),te.add(new go.PathSegment(go.PathSegment.Line,(1-z)*E,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,E,a)),te.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN,z=le?le.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(z)&&(z=.3);var te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(1-z)*E,0)),te.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,(1-z)*E,a)),te.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var te=new go.PathFigure((1-y)*E,0,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(1-y)*E,a)),te.add(new go.PathSegment(go.PathSegment.Move,y*E,0)),te.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),x}),go.Shape.defineFigureGenerator("Process",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var te=new go.PathFigure(y*E,0,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var z=new go.PathFigure(0,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.25);var z=new go.PathFigure(y*E,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*E,.5*a,.25*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*E,.5*a,.25*E,.5*a));var te=new go.PathFigure(y*E,0,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),te.add(new go.PathSegment(go.PathSegment.Move,(1-y)*E,0)),te.add(new go.PathSegment(go.PathSegment.Line,(1-y)*E,a)),x.spot1=new go.Spot(y,0),x.spot2=new go.Spot(1-y,1),x}),go.Shape.defineFigureGenerator("Terminator",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.25*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*E,.5*a,.25*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*E,.5*a,.25*E,.5*a)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,(1-y)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,(1-y)*a).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(le,E,a){var x=new go.Geometry,y=ue*.5,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(.5+y)*E,0,E,(.5-y)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.5+y)*a,(.5+y)*E,a)),z.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(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.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(le,E,a){var x=new go.Geometry,y=ue*.5,z=.5,te=new go.PathFigure(E,z*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*E,a,E,(z+y)*a,(z+y)*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,z*a,(z-y)*E,a,0,(z+y)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*E,0,0,(z-y)*a,(z-y)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,z*a,(z+y)*E,0,E,(z-y)*a));var re=new go.PathFigure(E,z*a,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,z*a));var ie=new go.PathFigure(.8*E,.75*a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.8*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*E,.75*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*E,.75*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*E,.75*a)),x}),go.Shape.defineFigureGenerator("Ground",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Move,.3*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Move,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,a)),x}),go.Shape.defineFigureGenerator("Inverter",function(le,E,a){var x=new go.Geometry,y=ue*.1,z=.1,te=.9,re=.5,ie=new go.PathFigure(.8*E,.5*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,a)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a));var ce=new go.PathFigure((te+z)*E,re*a,!0);return x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+z)*a,(te+z)*E,(re+y)*a,(te+y)*E,(re+z)*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,re*a,(te-y)*E,(re+z)*a,(te-z)*E,(re+y)*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-z)*a,(te-z)*E,(re-y)*a,(te-y)*E,(re-z)*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,re*a,(te+y)*E,(re-z)*a,(te+z)*E,(re-y)*a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(le,E,a){var x=new go.Geometry,y=ue*.5,z=ue*.4,te=ue*.1,re=.1,ie=.9,ce=.5,pe=new go.PathFigure(.8*E,.5*a,!0);x.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,a,.8*E,(.5+z)*a,(.4+y)*E,a)),pe.add(new go.PathSegment(go.PathSegment.Line,0,a)),pe.add(new go.PathSegment(go.PathSegment.Line,0,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*a,(.4+y)*E,0,.8*E,(.5-z)*a));var ge=new go.PathFigure((ie+re)*E,ce*a,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ce+re)*a,(ie+re)*E,(ce+te)*a,(ie+te)*E,(ce+re)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re)*E,ce*a,(ie-te)*E,(ce+re)*a,(ie-re)*E,(ce+te)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ce-re)*a,(ie-re)*E,(ce-te)*a,(ie-te)*E,(ce-re)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re)*E,ce*a,(ie+te)*E,(ce-re)*a,(ie+re)*E,(ce-te)*a)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(le,E,a){var x=new go.Geometry,y=.5,z=ue*y,te=0,re=.5,ie=new go.PathFigure(.8*E,.5*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.7*E,(re+z)*a,(te+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.75*a,.25*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*a,(te+z)*E,(re-y)*a,.7*E,(re-z)*a)),y=.1,z=ue*.1,te=.9,re=.5;var ce=new go.PathFigure((te-y)*E,re*a,!0);return x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-y)*a,(te-y)*E,(re-z)*a,(te-z)*E,(re-y)*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,re*a,(te+z)*E,(re-y)*a,(te+y)*E,(re-z)*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+y)*a,(te+y)*E,(re+z)*a,(te+z)*E,(re+y)*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(te-y)*E,re*a,(te-z)*E,(re+y)*a,(te-y)*E,(re+z)*a)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(le,E,a){var x=new go.Geometry,y=.5,z=ue*y,te=0,re=.5,ie=new go.PathFigure(0,0,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(te+z+z)*E,(re-y)*a,.8*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.8*E,(re+z)*a,(te+z+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.75*a,.25*E,.25*a).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(le,E,a){var x=new go.Geometry,y=.5,z=ue*y,te=.2,re=.5,ie=new go.PathFigure(.1*E,0,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,a,.35*E,.25*a,.35*E,.75*a));var ce=new go.PathFigure(.8*E,.5*a,!0);x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,a,.7*E,(re+z)*a,(te+z)*E,(re+y)*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,.45*E,.75*a,.45*E,.25*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*a,(te+z)*E,(re-y)*a,.7*E,(re-z)*a)),y=.1,z=ue*.1,te=.9,re=.5;var pe=new go.PathFigure((te-y)*E,re*a,!0);return x.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-y)*a,(te-y)*E,(re-z)*a,(te-z)*E,(re-y)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,re*a,(te+z)*E,(re-y)*a,(te+y)*E,(re-z)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+y)*a,(te+y)*E,(re+z)*a,(te+z)*E,(re+y)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(te-y)*E,re*a,(te-z)*E,(re+y)*a,(te-y)*E,(re+z)*a)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(le,E,a){var x=new go.Geometry,y=.5,z=ue*y,te=.2,re=.5,ie=new go.PathFigure(.1*E,0,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,a,.35*E,.25*a,.35*E,.75*a));var ce=new go.PathFigure(.2*E,0,!0);return x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(te+z)*E,(re-y)*a,.9*E,(re-z)*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,a,.9*E,(re+z)*a,(te+z)*E,(re+y)*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,.45*E,.75*a,.45*E,.25*a).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("Resistor",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.5*a)),x}),go.Shape.defineFigureGenerator("Inductor",function(le,E,a){var x=new go.Geometry,y=ue*.1,z=.1,te=.1,re=.5,ie=new go.PathFigure((te-y*.5)*E,a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,0,(te-y)*E,a,(te-z)*E,0)),te=.3,ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,a,(te+z)*E,0,(te+y)*E,a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,0,(te-y)*E,a,(te-z)*E,0)),te=.5,ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,a,(te+z)*E,0,(te+y)*E,a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,0,(te-y)*E,a,(te-z)*E,0)),te=.7,ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,a,(te+z)*E,0,(te+y)*E,a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,0,(te-y)*E,a,(te-z)*E,0)),te=.9,ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+y*.5)*E,a,(te+z)*E,0,(te+y)*E,a)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(le,E,a){var x=new go.Geometry,y=ue*.5,z=.5,te=.5,re=.5,ie=new go.PathFigure((te-z)*E,re*a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-z)*a,(te-z)*E,(re-y)*a,(te-y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,re*a,(te+y)*E,(re-z)*a,(te+z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+z)*a,(te+z)*E,(re+y)*a,(te+y)*E,(re+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,re*a,(te-y)*E,(re+z)*a,(te-z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Move,(te-z+.1)*E,re*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z-.1)*E,re*a,te*E,(re-z)*a,te*E,(re+z)*a)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.75*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),y.add(new go.PathSegment(go.PathSegment.Move,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("Diode",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(le,E,a){var x=new go.Geometry,y=E,z=a;E=E*.38,a=a*.6;var te=ue*.8,re=.8,ie=0,ce=.5,pe=(y-E)/2,ge=(z-a)/2,ye=new go.PathFigure(ie*E+pe,(ce+re)*a+ge,!0);x.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re)*E+pe,ce*a+ge,(ie-te)*E+pe,(ce+re)*a+ge,(ie-re)*E+pe,(ce+te)*a+ge)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+pe,(ce-re)*a+ge,(ie-re)*E+pe,(ce-te)*a+ge,(ie-te)*E+pe,(ce-re)*a+ge)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re+te*.5)*E+pe,ce*a+ge,ie*E+pe,(ce-re)*a+ge,(ie-re+te*.5)*E+pe,(ce-te)*a+ge)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+pe,(ce+re)*a+ge,(ie-re+te*.5)*E+pe,(ce+te)*a+ge,ie*E+pe,(ce+re)*a+ge).close()),te=ue*.4,re=.4,ie=.2,ce=.5;var Ee=new go.PathFigure(ie*E+pe,(ce+re)*a+ge,!0);x.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re)*E+pe,ce*a+ge,(ie-te)*E+pe,(ce+re)*a+ge,(ie-re)*E+pe,(ce+te)*a+ge)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+pe,(ce-re)*a+ge,(ie-re)*E+pe,(ce-te)*a+ge,(ie-te)*E+pe,(ce-re)*a+ge)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re+te*.5)*E+pe,ce*a+ge,ie*E+pe,(ce-re)*a+ge,(ie-re+te*.5)*E+pe,(ce-te)*a+ge)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+pe,(ce+re)*a+ge,(ie-re+te*.5)*E+pe,(ce+te)*a+ge,ie*E+pe,(ce+re)*a+ge).close()),te=ue*.2,re=.2,ie=.5,ce=.5;var we=new go.PathFigure((ie-re)*E+pe,ce*a+ge,!0);x.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+pe,(ce-re)*a+ge,(ie-re)*E+pe,(ce-te)*a+ge,(ie-te)*E+pe,(ce-re)*a+ge)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re)*E+pe,ce*a+ge,(ie+te)*E+pe,(ce-re)*a+ge,(ie+re)*E+pe,(ce-te)*a+ge)),we.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+pe,(ce+re)*a+ge,(ie+re)*E+pe,(ce+te)*a+ge,(ie+te)*E+pe,(ce+re)*a+ge)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re)*E+pe,ce*a+ge,(ie-te)*E+pe,(ce+re)*a+ge,(ie-re)*E+pe,(ce+te)*a+ge)),te=ue*.4,re=.4,ie=.8,ce=.5;var ve=new go.PathFigure(ie*E+pe,(ce-re)*a+ge,!0);x.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re)*E+pe,ce*a+ge,(ie+te)*E+pe,(ce-re)*a+ge,(ie+re)*E+pe,(ce-te)*a+ge)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+pe,(ce+re)*a+ge,(ie+re)*E+pe,(ce+te)*a+ge,(ie+te)*E+pe,(ce+re)*a+ge)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re-te*.5)*E+pe,ce*a+ge,ie*E+pe,(ce+re)*a+ge,(ie+re-te*.5)*E+pe,(ce+te)*a+ge)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+pe,(ce-re)*a+ge,(ie+re-te*.5)*E+pe,(ce-te)*a+ge,ie*E+pe,(ce-re)*a+ge).close()),te=ue*.8,re=.8,ie=1,ce=.5;var Je=new go.PathFigure(ie*E+pe,(ce-re)*a+ge,!0);return x.add(Je),Je.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re)*E+pe,ce*a+ge,(ie+te)*E+pe,(ce-re)*a+ge,(ie+re)*E+pe,(ce-te)*a+ge)),Je.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+pe,(ce+re)*a+ge,(ie+re)*E+pe,(ce+te)*a+ge,(ie+te)*E+pe,(ce+re)*a+ge)),Je.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re-te*.5)*E+pe,ce*a+ge,ie*E+pe,(ce+re)*a+ge,(ie+re-te*.5)*E+pe,(ce+te)*a+ge)),Je.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+pe,(ce-re)*a+ge,(ie+re-te*.5)*E+pe,(ce-te)*a+ge,ie*E+pe,(ce-re)*a+ge).close()),x}),go.Shape.defineFigureGenerator("Email",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Move,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*E,.54*a)),x}),go.Shape.defineFigureGenerator("Ethernet",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.35*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,0).close());var z=new go.PathFigure(.1*E,a,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,a).close());var te=new go.PathFigure(.6*E,a,!0,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),te.add(new go.PathSegment(go.PathSegment.Line,.9*E,.6*a)),te.add(new go.PathSegment(go.PathSegment.Line,.6*E,.6*a)),te.add(new go.PathSegment(go.PathSegment.Line,.6*E,a).close());var re=new go.PathFigure(0,.5*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Move,.5*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*a)),re.add(new go.PathSegment(go.PathSegment.Move,.75*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.75*E,.6*a)),re.add(new go.PathSegment(go.PathSegment.Move,.25*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.25*E,.6*a)),x}),go.Shape.defineFigureGenerator("Power",function(le,E,a){var x=new go.Geometry,y=ue*.4,z=.4,te=.5,re=.5,ie=b(),ce=b(),pe=b(),ge=b();Fe(te,re-z,te+y,re-z,te+z,re-y,te+z,re,.5,ie,ie,ce,pe,ge);var ye=ae(ce.x,ce.y),Ee=new go.PathFigure(ce.x*E,ce.y*a,!0);x.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,re*a,pe.x*E,pe.y*a,ge.x*E,ge.y*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+z)*a,(te+z)*E,(re+y)*a,(te+y)*E,(re+z)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,re*a,(te-y)*E,(re+z)*a,(te-z)*E,(re+y)*a)),Fe(te-z,re,te-z,re-y,te-y,re-z,te,re-z,.5,pe,ge,ce,ie,ie),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ce.x*E,ce.y*a,pe.x*E,pe.y*a,ge.x*E,ge.y*a)),y=ue*.3,z=.3,Fe(te-z,re,te-z,re-y,te-y,re-z,te,re-z,.5,pe,ge,ce,ie,ie),Ee.add(new go.PathSegment(go.PathSegment.Line,ce.x*E,ce.y*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,re*a,ge.x*E,ge.y*a,pe.x*E,pe.y*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+z)*a,(te-z)*E,(re+y)*a,(te-y)*E,(re+z)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,re*a,(te+y)*E,(re+z)*a,(te+z)*E,(re+y)*a)),Fe(te,re-z,te+y,re-z,te+z,re-y,te+z,re,.5,ie,ie,ce,pe,ge),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ce.x*E,ce.y*a,ge.x*E,ge.y*a,pe.x*E,pe.y*a).close());var Ee=new go.PathFigure(.45*E,0,!0);return x.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,.45*E,.5*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.55*E,.5*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.55*E,0).close()),se(ie),se(ce),se(pe),se(ge),se(ye),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a/2,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,180,360,E/2,a/2,E/2,a/2));function z(te,re,ie){te.add(new go.PathSegment(go.PathSegment.Move,(.3+re)*E,(.8+ie)*a)),te.add(new go.PathSegment(go.PathSegment.Line,(.5+re)*E,(.5+ie)*a)),te.add(new go.PathSegment(go.PathSegment.Line,(.1+re)*E,(.5+ie)*a)),te.add(new go.PathSegment(go.PathSegment.Line,(.3+re)*E,(.8+ie)*a).close())}return z(y,0,0),z(y,.4,0),z(y,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.2*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.3*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.5*a)),y.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(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.37*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.11*a)),y.add(new go.PathSegment(go.PathSegment.Line,.77*E,.04*a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,.49*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.37*a)),y.add(new go.PathSegment(go.PathSegment.Line,.63*E,.86*a)),y.add(new go.PathSegment(go.PathSegment.Line,.77*E,.91*a)),y.add(new go.PathSegment(go.PathSegment.Line,.34*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.34*E,.78*a)),y.add(new go.PathSegment(go.PathSegment.Line,.44*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,.56*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.68*a).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.29*E,0,-.25*E,.63*a,.45*E,.44*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.51*E,.42*a,.48*E,.17*a,.54*E,.35*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.59*E,.18*a,.59*E,.29*a,.58*E,.28*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,.6*a,.8*E,.34*a,.88*E,.43*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.88*E,.31*a,.87*E,.48*a,.88*E,.43*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,a,1.17*E,.76*a,.82*E,.8*a).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(le,E,a){var x=new go.Geometry,y=.5,z=0,te=0,re=y*ue,ie=.4*Math.SQRT2/2+.5,ce=.5-.5*Math.SQRT2/2,pe=1,ge=.5,ye=.5,Ee=0,we=new go.PathFigure(ie*E,(1-ce)*a,!1);return x.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,pe*E,ge*a,pe*E,.7*a,pe*E,ge*a)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ye+z)*E,(Ee+z)*a,(.5+y+z)*E,(.5-re+z)*a,(.5+re+z)*E,(.5-y+z)*a)),we.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+z)*E,(.5+te)*a,(.5-re+z)*E,(.5-y+te)*a,(.5-y+z)*E,(.5-re+te)*a)),we.add(new go.PathSegment(go.PathSegment.Bezier,(.35+z)*E,.9*a,(.5-y+z)*E,(.5+re+te)*a,(.5-re+z)*E,.9*a)),we.add(new go.PathSegment(go.PathSegment.Move,(.25+z)*E,.8*a)),we.add(new go.PathSegment(go.PathSegment.Line,(.35+z)*E,.9*a)),we.add(new go.PathSegment(go.PathSegment.Line,(.2+z)*E,.95*a)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Move,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var z=new go.PathFigure(E,a,!1);x.add(z);var te=new go.PathFigure(0,.5*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.5*a,.2*E,.35*a,.3*E,.35*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.7*E,.65*a,.8*E,.65*a)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.2*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a).close());var y=new go.PathFigure(0,.2*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.7*E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,0,.6*E,.5*a,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,a,.4*E,.5*a,E,.5*a).close());var z=new go.PathFigure(.45*E,.73*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,.73*a)),z.add(new go.PathSegment(go.PathSegment.Move,.38*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.63*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Move,.31*E,.27*a)),z.add(new go.PathSegment(go.PathSegment.Line,.56*E,.27*a)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var z=new go.PathFigure(.335*E,(1-.555)*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.335*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.555)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.68*a,(1-.12)*E,.46*a,(1-.02)*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.68*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.335*E,(1-.555)*a,.02*E,.54*a,.12*E,.46*a)),z.add(new go.PathSegment(go.PathSegment.Line,.365*E,(1-.595)*a));var te=.5-.285,re=.5,ie=te,ce=Math.PI/4,pe=4*(1-Math.cos(ce))/(3*Math.sin(ce)),ge=pe*.5,ye=te,Ee=te,we=pe*ye,ve=pe*Ee;z.add(new go.PathSegment(go.PathSegment.Bezier,(re-ye)*E,ie*a,(re-(we+ye)/2)*E,(ie+(Ee+ve)/2)*a,(re-ye)*E,(ie+ve)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,re*E,(ie-Ee)*a,(re-ye)*E,(ie-ve)*a,(re-we)*E,(ie-Ee)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(re+ye)*E,ie*a,(re+we)*E,(ie-Ee)*a,(re+ye)*E,(ie-ve)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*E,(1-.595)*a,(re+ye)*E,(ie+ve)*a,(re+(we+ye)/2)*E,(ie+(Ee+ve)/2)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*E,(1-.595)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.555)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,.335*E,(1-.405)*a));var Je=new go.PathFigure(.2*E,a,!1);x.add(Je),Je.add(new go.PathSegment(go.PathSegment.Line,.2*E,.8*a));var Ge=new go.PathFigure(.8*E,a,!1);return x.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Line,.8*E,.8*a)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,a).close());var z=new go.PathFigure(.2*E,.2*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.8*a)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,.5*a).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var z=new go.PathFigure(E,a,!1);x.add(z);var te=new go.PathFigure(.1*E,a,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),te.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),te.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a).close()),x}),go.Shape.defineFigureGenerator("Caution",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.05*E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,.8*a,0,a,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.1*a,.5*E,0,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.95*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,a,E,a,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*E,a));var z=.05;return y.add(new go.PathSegment(go.PathSegment.Move,(.5-z)*E,.875*a)),y.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*E,.875*a,z*E,z*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.325*a,.575*E,.725*a,.625*E,.375*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.75*a,.375*E,.375*a,.425*E,.725*a)),x}),go.Shape.defineFigureGenerator("Recycle",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.45*E,.95*a,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.185*E,.85*a,.17*E,.95*a,.15*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.235*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.625*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,.275*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*E,.575*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.1875*E,.95*a,0,.675*a,0,.7*a)),y.add(new go.PathSegment(go.PathSegment.Move,.45*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.775*a)),y.add(new go.PathSegment(go.PathSegment.Line,.22*E,.775*a));var z=new go.PathFigure(.475*E,.2*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.225*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,.275*E,.175*a)),z.add(new go.PathSegment(go.PathSegment.Line,.325*E,.05*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,.05*a,.35*E,0,.375*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.575*E,.375*a)),z.add(new go.PathSegment(go.PathSegment.Line,.525*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,.475*a)),z.add(new go.PathSegment(go.PathSegment.Line,.85*E,.315*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.32*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*E,.05*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.575*E,0,.65*E,.05*a,.625*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.38*E,.0105*a));var te=new go.PathFigure(.675*E,.575*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.875*E,.525*a)),te.add(new go.PathSegment(go.PathSegment.Line,E,.775*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.85*E,.95*a,E,.8*a,E,.85*a)),te.add(new go.PathSegment(go.PathSegment.Line,.65*E,.95*a)),te.add(new go.PathSegment(go.PathSegment.Line,.65*E,a)),te.add(new go.PathSegment(go.PathSegment.Line,.55*E,.85*a)),te.add(new go.PathSegment(go.PathSegment.Line,.65*E,.725*a)),te.add(new go.PathSegment(go.PathSegment.Line,.65*E,.775*a)),te.add(new go.PathSegment(go.PathSegment.Line,.7*E,.775*a)),te.add(new go.PathSegment(go.PathSegment.Line,E,.775*a)),te.add(new go.PathSegment(go.PathSegment.Move,.675*E,.575*a)),te.add(new go.PathSegment(go.PathSegment.Line,.775*E,.775*a)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(le,E,a){var x=new go.Geometry,y=.5,z=ue*.5,te=new go.PathFigure(E,y*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,y*E,a,E,(y+z)*a,(y+z)*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y*a,(y-z)*E,a,0,(y+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,y*E,0,0,(y-z)*a,(y-z)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,y*a,(y+z)*E,0,E,(y-z)*a));var re=new go.PathFigure(y*E,0,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,y*E,.15*a)),re.add(new go.PathSegment(go.PathSegment.Move,y*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,y*E,.85*a)),re.add(new go.PathSegment(go.PathSegment.Move,0,y*a)),re.add(new go.PathSegment(go.PathSegment.Line,.15*E,y*a)),re.add(new go.PathSegment(go.PathSegment.Move,E,y*a)),re.add(new go.PathSegment(go.PathSegment.Line,.85*E,y*a)),re.add(new go.PathSegment(go.PathSegment.Move,y*E,y*a)),re.add(new go.PathSegment(go.PathSegment.Line,.58*E,.1*a)),re.add(new go.PathSegment(go.PathSegment.Move,y*E,y*a)),re.add(new go.PathSegment(go.PathSegment.Line,.78*E,.54*a)),x}),go.Shape.defineFigureGenerator("Package",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.15*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,.15*a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,0)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.65*E,.15*a).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,.2*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.2*a).close());var te=new go.PathFigure(0,.5*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,.5*a).close()),x}),go.Shape.defineFigureGenerator("Component",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a).close());var z=new go.PathFigure(0,.2*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close());var te=new go.PathFigure(0,.6*a,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.45*E,.6*a)),te.add(new go.PathSegment(go.PathSegment.Line,.45*E,.8*a)),te.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),te.add(new go.PathSegment(go.PathSegment.Line,0,.6*a).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.15*E,.6*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a));var z=new go.PathFigure(.15*E,.6*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),y.add(new go.PathSegment(go.PathSegment.Move,E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.66*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.66*a)),y.add(new go.PathSegment(go.PathSegment.Move,E,.66*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(E,.8*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.8*a).close());var te=.1,re=ue*.1,ie=.2,ce=.9,pe=new go.PathFigure((ie-te)*E,ce*a,!0);x.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ce-te)*a,(ie-te)*E,(ce-re)*a,(ie-re)*E,(ce-te)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*E,ce*a,(ie+re)*E,(ce-te)*a,(ie+te)*E,(ce-re)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ce+te)*a,(ie+te)*E,(ce+re)*a,(ie+re)*E,(ce+te)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*E,ce*a,(ie-re)*E,(ce+te)*a,(ie-te)*E,(ce+re)*a).close()),te=.1,re=ue*.1,ie=.8,ce=.9;var ge=new go.PathFigure((ie-te)*E,ce*a,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ce-te)*a,(ie-te)*E,(ce-re)*a,(ie-re)*E,(ce-te)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*E,ce*a,(ie+re)*E,(ce-te)*a,(ie+te)*E,(ce-re)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ce+te)*a,(ie+te)*E,(ce+re)*a,(ie+re)*E,(ce+te)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*E,ce*a,(ie-re)*E,(ce+te)*a,(ie-te)*E,(ce+re)*a).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.2*E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),x}),go.Shape.defineFigureGenerator("Forklift",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0));var z=new go.PathFigure(0,.5*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var te=new go.PathFigure(.5*E,.8*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.5*E,.1*a)),te.add(new go.PathSegment(go.PathSegment.Line,.55*E,.1*a)),te.add(new go.PathSegment(go.PathSegment.Line,.55*E,.8*a)),te.add(new go.PathSegment(go.PathSegment.Line,.5*E,.8*a));var re=new go.PathFigure(.5*E,.7*a,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,.7*a));var ie=.1,ce=ue*.1,pe=.1,ge=.9,ye=new go.PathFigure((pe-ie)*E,ge*a,!0);x.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,pe*E,(ge-ie)*a,(pe-ie)*E,(ge-ce)*a,(pe-ce)*E,(ge-ie)*a)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(pe+ie)*E,ge*a,(pe+ce)*E,(ge-ie)*a,(pe+ie)*E,(ge-ce)*a)),ye.add(new go.PathSegment(go.PathSegment.Bezier,pe*E,(ge+ie)*a,(pe+ie)*E,(ge+ce)*a,(pe+ce)*E,(ge+ie)*a)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(pe-ie)*E,ge*a,(pe-ce)*E,(ge+ie)*a,(pe-ie)*E,(ge+ce)*a)),ie=.1,ce=ue*.1,pe=.4,ge=.9;var Ee=new go.PathFigure((pe-ie)*E,ge*a,!0);return x.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,pe*E,(ge-ie)*a,(pe-ie)*E,(ge-ce)*a,(pe-ce)*E,(ge-ie)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(pe+ie)*E,ge*a,(pe+ce)*E,(ge-ie)*a,(pe+ie)*E,(ge-ce)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,pe*E,(ge+ie)*a,(pe+ie)*E,(ge+ce)*a,(pe+ce)*E,(ge+ie)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(pe-ie)*E,ge*a,(pe-ce)*E,(ge+ie)*a,(pe-ie)*E,(ge+ce)*a)),x}),go.Shape.defineFigureGenerator("RailShipment",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,.4*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.4*a).close());var z=new go.PathFigure(.45*E,.7*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.55*E,.7*a));var te=new go.PathFigure(.55*E,.4*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a)),te.add(new go.PathSegment(go.PathSegment.Line,.9*E,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.55*E,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.55*E,.4*a).close());var pe=.05,ge=ue*.05,ye=.175,Ee=.95,re=new go.PathFigure((ye-pe)*E,Ee*a,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,ye*E,(Ee-pe)*a,(ye-pe)*E,(Ee-ge)*a,(ye-ge)*E,(Ee-pe)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ye+pe)*E,Ee*a,(ye+ge)*E,(Ee-pe)*a,(ye+pe)*E,(Ee-ge)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,ye*E,(Ee+pe)*a,(ye+pe)*E,(Ee+ge)*a,(ye+ge)*E,(Ee+pe)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ye-pe)*E,Ee*a,(ye-ge)*E,(Ee+pe)*a,(ye-pe)*E,(Ee+ge)*a));var pe=.05,ge=ue*.05,ye=.375,Ee=.95,ie=new go.PathFigure((ye-pe)*E,Ee*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ye*E,(Ee-pe)*a,(ye-pe)*E,(Ee-ge)*a,(ye-ge)*E,(Ee-pe)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ye+pe)*E,Ee*a,(ye+ge)*E,(Ee-pe)*a,(ye+pe)*E,(Ee-ge)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ye*E,(Ee+pe)*a,(ye+pe)*E,(Ee+ge)*a,(ye+ge)*E,(Ee+pe)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ye-pe)*E,Ee*a,(ye-ge)*E,(Ee+pe)*a,(ye-pe)*E,(Ee+ge)*a));var pe=.05,ge=ue*.05,ye=.625,Ee=.95,ce=new go.PathFigure((ye-pe)*E,Ee*a,!0);x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,ye*E,(Ee-pe)*a,(ye-pe)*E,(Ee-ge)*a,(ye-ge)*E,(Ee-pe)*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ye+pe)*E,Ee*a,(ye+ge)*E,(Ee-pe)*a,(ye+pe)*E,(Ee-ge)*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ye*E,(Ee+pe)*a,(ye+pe)*E,(Ee+ge)*a,(ye+ge)*E,(Ee+pe)*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ye-pe)*E,Ee*a,(ye-ge)*E,(Ee+pe)*a,(ye-pe)*E,(Ee+ge)*a));var pe=.05,ge=ue*.05,ye=.825,Ee=.95,we=new go.PathFigure((ye-pe)*E,Ee*a,!0);x.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,ye*E,(Ee-pe)*a,(ye-pe)*E,(Ee-ge)*a,(ye-ge)*E,(Ee-pe)*a)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ye+pe)*E,Ee*a,(ye+ge)*E,(Ee-pe)*a,(ye+pe)*E,(Ee-ge)*a)),we.add(new go.PathSegment(go.PathSegment.Bezier,ye*E,(Ee+pe)*a,(ye+pe)*E,(Ee+ge)*a,(ye+ge)*E,(Ee+pe)*a)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ye-pe)*E,Ee*a,(ye-ge)*E,(Ee+pe)*a,(ye-pe)*E,(Ee+ge)*a).close());var ve=new go.PathFigure(0,a,!1);return x.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,.2*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.2*a).close());var te=new go.PathFigure(.15*E,a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.15*E,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,.4*E,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,.4*E,a)),te.add(new go.PathSegment(go.PathSegment.Line,.15*E,a).close());var re=.05,ie=ue*.05,ce=.35,pe=.775,ge=new go.PathFigure((ce-re)*E,pe*a,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ce*E,(pe-re)*a,(ce-re)*E,(pe-ie)*a,(ce-ie)*E,(pe-re)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ce+re)*E,pe*a,(ce+ie)*E,(pe-re)*a,(ce+re)*E,(pe-ie)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ce*E,(pe+re)*a,(ce+re)*E,(pe+ie)*a,(ce+ie)*E,(pe+re)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ce-re)*E,pe*a,(ce-ie)*E,(pe+re)*a,(ce-re)*E,(pe+ie)*a).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,.1*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.75*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),x}),go.Shape.defineFigureGenerator("Bookmark",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),x}),go.Shape.defineFigureGenerator("Bookmark",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),x}),go.Shape.defineFigureGenerator("Globe",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.75*E,0,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,.75*a,.75*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.25*E,a,0,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,.25*a,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,.15*E,.25*a,.15*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.85*E,.75*a,.85*E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*E,.15*a,.35*E,.3*a,.65*E,.3*a)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*E,.85*a,.35*E,.7*a,.65*E,.7*a)),x}),go.Shape.defineFigureGenerator("Wave",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.25*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.25*a,.1*E,0,.2*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,.25*a,.425*E,.5*a,.575*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.25*a,.8*E,0,.9*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.75*a,.1*E,.5*a,.2*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,.75*a,.425*E,a,.575*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.75*a,.8*E,.5*a,.9*E,.5*a)),x}),go.Shape.defineFigureGenerator("Operator",function(le,E,a){var x=new go.Geometry,y=.3,z=ue*.3,te=.5,re=.7,ie=new go.PathFigure((te-y)*E,re*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-y)*a,(te-y)*E,(re-z)*a,(te-z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,re*a,(te+z)*E,(re-y)*a,(te+y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+y)*a,(te+y)*E,(re+z)*a,(te+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-y)*E,re*a,(te-z)*E,(re+y)*a,(te-y)*E,(re+z)*a));var ce=new go.PathFigure(0,.7*a,!1);return x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,E,.7*a,0,0,E,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*a,.65*E,.3*a,.65*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.35*E,.5*a,.35*E,.3*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.65*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.3*E,.6*a,.1*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*a,.2*E,a,.35*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.65*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,a,.7*E,.6*a,.9*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*a,.8*E,a,.65*E,.95*a)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,0,.075*a,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,a,0,a,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.4*a,.8*E,a,.85*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),x}),go.Shape.defineFigureGenerator("Battery",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,.4*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.1*a));var z=new go.PathFigure(0,.6*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,0,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),x}),go.Shape.defineFigureGenerator("Delete",function(le,E,a){var x=new go.Geometry,y=.5,z=ue*.5,te=.5,re=.5,ie=new go.PathFigure((te-y)*E,re*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-y)*a,(te-y)*E,(re-z)*a,(te-z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,re*a,(te+z)*E,(re-y)*a,(te+y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+y)*a,(te+y)*E,(re+z)*a,(te+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-y)*E,re*a,(te-z)*E,(re+y)*a,(te-y)*E,(re+z)*a));var ce=new go.PathFigure(.15*E,.5*a,!1);return x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.85*E,.5*a)),x}),go.Shape.defineFigureGenerator("Flag",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.1*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,0,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.1*a,.15*E,0,.35*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*a,.65*E,.2*a,.85*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.5*a,.85*E,.6*a,.65*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.35*E,.4*a,.15*E,.4*a).close()),x}),go.Shape.defineFigureGenerator("Help",function(le,E,a){var x=new go.Geometry,y=.5,z=ue*.5,te=.5,re=.5,ie=new go.PathFigure((te-y)*E,re*a,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-y)*a,(te-y)*E,(re-z)*a,(te-z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,re*a,(te+z)*E,(re-y)*a,(te+y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+y)*a,(te+y)*E,(re+z)*a,(te+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-y)*E,re*a,(te-z)*E,(re+y)*a,(te-y)*E,(re+z)*a).close()),y=.05,z=ue*.05,te=.5,re=.8;var ce=new go.PathFigure((te-y)*E,re*a,!1);return x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-y)*a,(te-y)*E,(re-z)*a,(te-z)*E,(re-y)*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,re*a,(te+z)*E,(re-y)*a,(te+y)*E,(re-z)*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+y)*a,(te+y)*E,(re+z)*a,(te+z)*E,(re+y)*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(te-y)*E,re*a,(te-z)*E,(re+y)*a,(te-y)*E,(re+z)*a).close()),ce.add(new go.PathSegment(go.PathSegment.Move,.5*E,.7*a)),ce.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,.75*E,.475*a,.75*E,.225*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.35*a,.4*E,.2*a,.3*E,.25*a)),x}),go.Shape.defineFigureGenerator("Location",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,a,!0).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.975*E,.025*a,.5*E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*E,.5*a,.5*E,0,.025*E,.025*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*E,.2*a)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*E,.3*a,.1*E,.1*a).close()))}),go.Shape.defineFigureGenerator("Lock",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.2*E,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.3*a,.25*E,0,.75*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.3*a)),x}),go.Shape.defineFigureGenerator("Unlocked",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.2*E,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.3*a,.25*E,0,.75*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.35*a)),x}),go.Shape.defineFigureGenerator("Gear",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.9375*E,.56246875*a,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*E,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.80621875*E,.4375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.763*E,.3316875*a,.79840625*E,.39915625*a,.7834375*E,.3635*a)).add(new go.PathSegment(go.PathSegment.Line,.8566875*E,.23796875*a)).add(new go.PathSegment(go.PathSegment.Line,.76825*E,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.67596875*E,.24184375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*E,.19378125*a,.64228125*E,.2188125*a,.603875*E,.2021875*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*E,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*E,.19378125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*E,.239375*a,.39759375*E,.20190625*a,.36053125*E,.2176875*a)).add(new go.PathSegment(go.PathSegment.Line,.2379375*E,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.14953125*E,.2379375*a)).add(new go.PathSegment(go.PathSegment.Line,.23934375*E,.3278125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*E,.4375*a,.21765625*E,.36059375*a,.201875*E,.397625*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*E,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*E,.5625*a)).add(new go.PathSegment(go.PathSegment.Line,.1938125*E,.5625*a)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*E,.67596875*a,.20221875*E,.603875*a,.21884375*E,.64228125*a)).add(new go.PathSegment(go.PathSegment.Line,.1495625*E,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.238*E,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.3316875*E,.76296875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*E,.80621875*a,.36353125*E,.78340625*a,.3991875*E,.79840625*a)).add(new go.PathSegment(go.PathSegment.Line,.43753125*E,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.80621875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*E,.760625*a,.602375*E,.79809375*a,.63946875*E,.78234375*a)).add(new go.PathSegment(go.PathSegment.Line,.76828125*E,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.85671875*E,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.76065625*E,.67221875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*E,.56246875*a,.78234375*E,.63940625*a,.798125*E,.602375*a)).add(new go.PathSegment(go.PathSegment.Line,.9375*E,.56246875*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*E,.6*a)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*E,.5*a,.1*E,.1*a).close()))}),go.Shape.defineFigureGenerator("Hand",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,.3*a,0,.375*a,.05*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.45*E,.075*a,.3*E,.225*a,.4*E,.175*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.525*E,.075*a,.46*E,.05*a,.525*E,.05*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.4*a,.525*E,.275*a,.475*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.55*a,E,.4*a,E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,.425*E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*E,.7*a,.675*E,.55*a,.675*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.575*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.575*E,.85*a,.65*E,.7*a,.65*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.525*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.535*E,a,.61*E,.85*a,.61*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,.435*E,a,0,a).close()),x}),go.Shape.defineFigureGenerator("Map",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.2*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),y.add(new go.PathSegment(go.PathSegment.Move,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.8*a)),x}),go.Shape.defineFigureGenerator("Eject",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.7)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.7).close());var z=new go.PathFigure(0,a*.6,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*a)).add(new go.PathSegment(go.PathSegment.Line,E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.9*E,a)).add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*a).close()))}),go.Shape.defineFigureGenerator("Building",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*1,a*1,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*E,a*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*E,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.046*E,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,a*.85)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.85).close());var z=new go.PathFigure(.126*E,.85*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.126*E,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.322*E,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.322*E,.85*a).close());var te=new go.PathFigure(.402*E,.85*a,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.402*E,.45*a)),te.add(new go.PathSegment(go.PathSegment.Line,.598*E,.45*a)),te.add(new go.PathSegment(go.PathSegment.Line,.598*E,.85*a).close());var re=new go.PathFigure(.678*E,.85*a,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.678*E,.45*a)),re.add(new go.PathSegment(go.PathSegment.Line,.874*E,.45*a)),re.add(new go.PathSegment(go.PathSegment.Line,.874*E,.85*a).close());var ie=new go.PathFigure(.5*E,.1*a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*E,.3*a)),ie.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*E,.3*a).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a*1,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*.8)),y.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.8)),y.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.6)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.6)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.4)),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*.4)),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*.2)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.2)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.15)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.15)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a*1,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.184,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.184,a*(1-.184)).close());var z=new go.PathFigure(E*.204,a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.204,a*(1-.184))),z.add(new go.PathSegment(go.PathSegment.Line,E*.388,a*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,E*.388,a*1).close());var te=new go.PathFigure(E*.408,a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*.408,a*(1-.184*2))),te.add(new go.PathSegment(go.PathSegment.Line,E*.592,a*(1-.184*3))),te.add(new go.PathSegment(go.PathSegment.Line,E*.592,a*1).close());var re=new go.PathFigure(E*.612,a,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E*.612,a*(1-.184*3))),re.add(new go.PathSegment(go.PathSegment.Line,E*.796,a*(1-.184*4))),re.add(new go.PathSegment(go.PathSegment.Line,E*.796,a*1).close());var ie=new go.PathFigure(E*.816,a,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,E*.816,a*(1-.184*4))),ie.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-.184*5))),ie.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,0).close());var z=new go.PathFigure(E*.055,.07*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.07)),z.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.055,a*.1).close());var te=new go.PathFigure(E*.055,.13*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.13)),te.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.16)),te.add(new go.PathSegment(go.PathSegment.Line,E*.055,a*.16).close());var re=new go.PathFigure(E*.055,.18*a,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.18)),re.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.21)),re.add(new go.PathSegment(go.PathSegment.Line,E*.055,a*.21).close());var ie=new go.PathFigure(E*1,0,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,E*.4,0)),ie.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.65)),ie.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.55*E,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.475*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.35*E,.525*a,0,.4*a,.225*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.475*a)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.2*a,.975*E,0,E,.08*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.55*E,a).close()),x}),go.Shape.defineFigureGenerator("Key",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*1,a*.5,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.9,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.7,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.85,.575*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.9,.6*a).close()),y.add(new go.PathSegment(go.PathSegment.Move,.17*E,.425*a)),y.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*E,.5*a,.075*E,.075*a).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,E*0,E*.3,E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.08,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.08,a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*1),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*1),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*2),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*2),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*3),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*3),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*4),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*4),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*5),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*5),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*6),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*6),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*7),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*7),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*8),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*8),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*9),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*9),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*10),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*10),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*11),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*11),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*12),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*12),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*13),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*13),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*14),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*14),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*15),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*15),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1));var z=new go.PathFigure(0,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*1,a*0)),z.add(new go.PathSegment(go.PathSegment.Arc,270,-180,E*1,E*.3,E*.055)),z.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1));var te=new go.PathFigure(E*.11,a*.1,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*0),a*.1)),te.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*0),a*.8)),te.add(new go.PathSegment(go.PathSegment.Line,E*.11,a*.8).close());var re=new go.PathFigure(E*(.11+.24133333*1+.028*1),a*.1,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*1),a*.1)),re.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*1),a*.8)),re.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*1),a*.8).close());var ie=new go.PathFigure(E*(.11+.24133333*2+.028*2),a*.1,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*3+.028*2),a*.1)),ie.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*3+.028*2),a*.8)),ie.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*2),a*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(le,E,a){var x=new go.Geometry,y=8,z=y*ue,te=new go.PathFigure(y,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*.86,0)),te.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.14)),te.add(new go.PathSegment(go.PathSegment.Line,E,a-y)),te.add(new go.PathSegment(go.PathSegment.Bezier,E-y,a,E,a-z,E-z,a)),te.add(new go.PathSegment(go.PathSegment.Line,y,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,a-y,z,a,0,a-z)),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,y,0,0,z,z,0).close());var re=new go.PathFigure(E*.83,0,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E*.83,a*.3)),re.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*.3)),re.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*0).close());var ie=new go.PathFigure(E*.83,a*1,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,E*.83,a*.5)),ie.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*.5)),ie.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*1).close());var ce=new go.PathFigure(E*.78,a*.05,!1);return x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.05)),ce.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.25)),ce.add(new go.PathSegment(go.PathSegment.Line,E*.78,a*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,E/3),x=Math.min(x,a/3);var y=x*ue,z=a*.8,te=new go.Geometry,re=new go.PathFigure(x,0,!0);return te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E-x,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,E,x,E-y,0,E,y)),re.add(new go.PathSegment(go.PathSegment.Line,E,z-x)),re.add(new go.PathSegment(go.PathSegment.Bezier,E-x,z,E,z-y,E-y,z)),re.add(new go.PathSegment(go.PathSegment.Line,E*.7,z)),re.add(new go.PathSegment(go.PathSegment.Line,E*.7,a)),re.add(new go.PathSegment(go.PathSegment.Line,E*.55,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,z-x,y,z,0,z-y)),re.add(new go.PathSegment(go.PathSegment.Line,0,x)),re.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,y,y,0).close()),y>1?(te.spot1=new go.Spot(0,0,y,y),te.spot2=new go.Spot(1,.8,-y,-y)):(te.spot1=go.Spot.TopLeft,te.spot2=new go.Spot(1,.8)),te}),go.Shape.defineFigureGenerator("Repeat",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*.45,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*.9)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.9)),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*.45).close());var z=new go.PathFigure(E*1,a*.55,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.55)),z.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*.55)),z.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()).add(new go.PathSegment(go.PathSegment.Move,.4*E,.4*a)).add(new go.PathSegment(go.PathSegment.Line,.4*E,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a).close()).add(new go.PathSegment(go.PathSegment.Move,.2*E,.1*a)).add(new go.PathSegment(go.PathSegment.Line,.2*E,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.1*a).close()).add(new go.PathSegment(go.PathSegment.Move,.1*E,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.1*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a).close()))}),go.Shape.defineFigureGenerator("Terminal",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*.1,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.9)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*.9).close());var z=new go.PathFigure(E*.1,a*.2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.1,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,E*.22,a*.285)),z.add(new go.PathSegment(go.PathSegment.Line,E*.1,a*.32)),z.add(new go.PathSegment(go.PathSegment.Line,E*.1,a*.37)),z.add(new go.PathSegment(go.PathSegment.Line,E*.275,a*.32)),z.add(new go.PathSegment(go.PathSegment.Line,E*.275,a*.25).close());var te=new go.PathFigure(E*.28,a*.37,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.37)),te.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.41)),te.add(new go.PathSegment(go.PathSegment.Line,E*.28,a*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(le,E,a){var x=new go.Geometry,y=15,z=y*ue,te=new go.PathFigure(E*.62,a*.475,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,a-y)),te.add(new go.PathSegment(go.PathSegment.Bezier,E-y,a,E,a-z,E-z,a)),te.add(new go.PathSegment(go.PathSegment.Line,y,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,a-y,z,a,0,a-z)),te.add(new go.PathSegment(go.PathSegment.Line,E*.38,a*.475)),te.add(new go.PathSegment(go.PathSegment.Line,E*.38,a*.03)),te.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*0)),te.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*0)),te.add(new go.PathSegment(go.PathSegment.Line,E*.62,a*.03).close()),z>1?(x.spot1=new go.Spot(0,0,z,z),x.spot2=new go.Spot(1,1,-z,-z)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*1,!0);x.add(y);var z=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.755,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.93,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.61,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.39,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.07,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*(1-z)).close());var te=new go.PathFigure(E*.4,a*0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.44)),te.add(new go.PathSegment(go.PathSegment.Line,E*.26,a*.44)),te.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.66)),te.add(new go.PathSegment(go.PathSegment.Line,E*(1-.26),a*.44)),te.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.44)),te.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*1,!0);x.add(y);var z=.1/.3;return y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.755,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.93,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.61,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.39,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.07,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*(1-z)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*1,!0);x.add(y);var z=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.755,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.93,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.61,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.39,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.07,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*(1-z)).close());var te=new go.PathFigure(E*.5,a*0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*.26,a*.25)),te.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.25)),te.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.63)),te.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.63)),te.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.25)),te.add(new go.PathSegment(go.PathSegment.Line,E*.74,a*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.15,a*0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.85,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.15,a*0,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.85,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*1).close());var z=new go.PathFigure(E*.235,a*.28,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.765,a*.28)),z.add(new go.PathSegment(go.PathSegment.Line,E*.655,a*.97)),z.add(new go.PathSegment(go.PathSegment.Line,E*.345,a*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.5,a*0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,a*.25)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.25)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.5)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.65)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.65)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*.5)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.25)),y.add(new go.PathSegment(go.PathSegment.Line,E*.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 Ot={},Rt="5.0",ae={},b=null,se=!1,Ce=!1,Fe=null,Oe=!1,Re=null,ue=null,Ze=0;Ze<arguments.length;Ze++){var We=arguments[Ze];if(We!==null)switch(typeof We){case"number":Rt=We.toFixed(1);break;case"string":We.match(new RegExp("^[0-9]\\.[0-9]+$"))?Rt=We:Fe=We;break;case"object":typeof We.is3D!="undefined"?b=We:ae=We;break;case"boolean":se=We,Ce=!0;break}}b===null&&(b={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ae.material_id!==void 0&&!Ce&&(se=!0)),Fe!==null&&ae.id===void 0&&(ae.id=Fe);var _e="",ke="",je=!1,Ie=null,le=null,E=null,a=!1,x=null,y=null,z=null,te=null,re=null;ae.height!==void 0&&(ae.height=Math.round(ae.height)),ae.width!==void 0&&(ae.width=Math.round(ae.width));var ie=function(Qe){return parseFloat(Qe)>4?parseFloat(Qe):5};Ot.setHTML5Codebase=function(Qe,et){ue=Qe,it(Qe,et)},Ot.setJavaCodebase=Ot.setJavaCodebaseVersion=Ot.isCompiledInstalled=Ot.setPreCompiledScriptPath=Ot.setPreCompiledResourcePath=function(){},Ot.setHTML5CodebaseVersion=function(Qe,et){var Dt=parseFloat(Qe);if(Dt!==NaN&&Dt<5){console.log("The GeoGebra HTML5 codebase version "+Dt+" is deprecated. Using version latest instead.");return}Re=Qe,Ht(Qe,et)},Ot.getHTML5CodebaseVersion=function(){return le},Ot.getParameters=function(){return ae},Ot.setFontsCSSURL=function(Qe){te=Qe},Ot.setGiacJSURL=function(Qe){},Ot.setJNLPFile=function(Qe){_e=Qe},Ot.setJNLPBaseDir=function(Qe){},Ot.inject=function(){function Qe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var et="auto",Dt=ae.id,tn,Et=!1,Vt=0;Vt<arguments.length;Vt++){var Be=arguments[Vt];typeof Be=="string"?(Be=Be.toLowerCase(),Be.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?et=Be:Dt=arguments[Vt]):typeof Be=="boolean"?Et=Be:Be instanceof HTMLElement&&(tn=Be)}Gt();function Gt(){if(!Oe){setTimeout(Gt,200);return}et=Ke(et);var bn=tn||document.getElementById(Dt);if(!bn){console.log("possibly bug on ajax loading? ");return}if(Ot.removeExistingApplet(bn,!1),ae.width===void 0&&bn.clientWidth&&(ae.width=bn.clientWidth),ae.height===void 0&&bn.clientHeight&&(ae.height=bn.clientHeight),!(ae.width&&ae.height)&&et==="html5"&&(delete ae.width,delete ae.height),Ie=et,et==="screenshot")Ge(bn,ae);else{var Bt=!1;ae.hasOwnProperty("playButton")&&ae.playButton||ae.hasOwnProperty("clickToLoad")&&ae.clickToLoad?Bt=!0:ae.hasOwnProperty("playButtonAutoDecide")&&ae.playButtonAutoDecide&&(Bt=(!ce()||Qe())&&pe()),Bt?(Ie="screenshot",Le(bn,ae,Et,et)):Je(bn,ae,Et)}}};function ce(){try{return window.self!==window.top}catch(Qe){return!0}}function pe(){return ae.hasOwnProperty("screenshotGenerator")&&ae.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ot.getViews=function(){return b},Ot.isJavaInstalled=function(){return!1};var ge=function(Qe){var et=function(Vt){var Be=JSON.parse(Vt),Gt=function(At){return At.type=="G"||At.type=="E"},bn=Be.elements?Be.elements.filter(Gt)[0]:Be;if(!bn||!bn.url){Dt();return}ae.fileName=bn.url,ye(bn.settings||{}),b.is3D=!0;var Bt="https://www.geogebra.org/images/";Ot.setPreviewImage(x||bn.previewUrl,Bt+"GeoGebra_loading.png",Bt+"applet_play.png"),Qe()},Dt=function(){ae.onError&&ae.onError(),jt("Error: Fetching material (id "+ae.material_id+") failed.",ae)},tn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Et="/materials/"+ae.material_id+"?scope=basic";Ee("https://"+tn+"/api/proxy.php?path="+encodeURIComponent(Et),et,Dt)};function ye(Qe){var et=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Dt){Qe[Dt]=!!Qe[Dt]}),et.forEach(function(Dt){ae[Dt]===void 0&&Qe[Dt]!==void 0&&(ae[Dt]=Qe[Dt])}),ae.showToolBarHelp===void 0&&(ae.showToolBarHelp=ae.showToolBar)}function Ee(Qe,et,Dt){var tn=new XMLHttpRequest;tn.open("GET",Qe),tn.onload=function(){et(tn.responseText)},tn.onerror=Dt,tn.send()}Ot.isHTML5Installed=function(){return!0},Ot.getLoadedAppletType=function(){return Ie},Ot.setPreviewImage=function(Qe,et,Dt){x=Qe,y=et,z=Dt},Ot.removeExistingApplet=function(Qe,et){var Dt;typeof Qe=="string"&&(Qe=document.getElementById(Qe)),Ie=null;var tn=null;for(Dt=0;Dt<Qe.childNodes.length;Dt++){var Et=Qe.childNodes[Dt],Vt=Et.className;Vt==="applet_screenshot"?et?(Et.style.display="block",Ie="screenshot"):Et.style.display="none":Vt!=="applet_scaler prerender"&&(Qe.removeChild(Et),tn=Vt&&Vt.indexOf("appletParameters")!=-1?Et.id:null,Dt--)}var Be=ae.id!==void 0?ae.id:tn,Gt=window[Be];Gt&&typeof Gt.getBase64=="function"&&(Gt.remove(),window[Be]=null)},Ot.refreshHitPoints=function(){if(ie(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Qe=Ot.getAppletObject();return Qe&&typeof Qe.recalculateEnvironments=="function"?(Qe.recalculateEnvironments(),!0):!1},Ot.startAnimation=function(){var Qe=Ot.getAppletObject();return Qe&&typeof Qe.startAnimation=="function"?(Qe.startAnimation(),!0):!1},Ot.stopAnimation=function(){var Qe=Ot.getAppletObject();return Qe&&typeof Qe.stopAnimation=="function"?(Qe.stopAnimation(),!0):!1},Ot.getAppletObject=function(){var Qe=ae.id!==void 0?ae.id:"ggbApplet";return window[Qe]},Ot.resize=function(){};var we=function(Qe,et,Dt){var tn=document.createElement("param");tn.setAttribute("name",et),tn.setAttribute("value",Dt),Qe.appendChild(tn)},ve=function(Qe){return Qe&&Qe!=="false"},Je=function(Qe,et,Dt){ie(le)<=4.2&&(Dt=!0);var tn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==le||ggbHTML5LoadedCodebaseIsWebSimple&&!a)&&(tn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Et=document.createElement("div");Et.classList.add("appletParameters","notranslate");var Vt=et.width,Be=et.height;if(et.disableAutoScale=et.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():et.disableAutoScale,et.width!==void 0)if(ie(le)<=4.4)ve(et.showToolBar)&&(et.height-=7),ve(et.showAlgebraInput)&&(et.height-=37),et.width<605&&ve(et.showToolBar)&&(et.width=605,Vt=605);else{var Gt=100;(ve(et.showToolBar)||ve(et.showMenuBar))&&(et.hasOwnProperty("customToolBar")&&(et.customToolbar=et.customToolBar),Gt=ve(et.showMenuBar)?245:155),Vt<Gt&&(et.width=Gt,Vt=Gt)}Et.style.border="none",Et.style.display="inline-block";for(var bn in et)et.hasOwnProperty(bn)&&bn!=="appletOnLoad"&&Et.setAttribute("data-param-"+bn,et[bn]);te&&Et.setAttribute("data-param-fontscssurl",te),Ot.resize=function(){GGBAppletUtils.responsiveResize(Qe,et)},window.addEventListener("resize",function(Te){Ot.resize()});var Bt=typeof et.appletOnLoad=="function"?et.appletOnLoad:function(){};if(!Dt&&et.width!==void 0){et.hasOwnProperty("showSplash")||Et.setAttribute("data-param-showSplash","false");var At=Qe.querySelector(".applet_scaler.prerender"),tt=At!==null;if(tt)var Ve=At.querySelector(".ggb_preview");else{var Ve=st(Vt,Be,et.borderColor,!1);At=document.createElement("div"),At.className="applet_scaler",At.style.position="relative",At.style.display="block",At.style.width=Vt+"px",At.style.height=Be+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(At,"66%"),ie(le)>=5?(et.appletOnLoad=function(Te){var St=Qe.querySelector(".ggb_preview");St&&St.parentNode.removeChild(St),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(At),window.GGBT_wsf_view&&$(window).trigger("resize"),Bt(Te)},tt||At.appendChild(Ve)):Et.appendChild(Ve),At.appendChild(Et),tt||Qe.appendChild(At),setTimeout(function(){Ot.resize()},1)}else{var De=document.createElement("div");De.className="applet_scaler",De.style.position="relative",De.style.display="block",De.appendChild(Et),Qe.appendChild(De),et.appletOnLoad=function(Te){Ot.resize(),Bt(Te)}}function he(Te,St){St&&typeof St.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Te,St.appletOnLoad):renderGGBElement(Te),jt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",St)}function nt(Te,St){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Te,params:St}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(ln){he(ln.article,ln.params)}),html5AppletsToProcess=null)},ie(le)<5&&(Te.className+=" geogebraweb")):he(Te,St)}if(tn){scriptLoadStarted=!0;for(var wt=0;wt<Et.childNodes.length;wt++){var Ae=Et.childNodes[wt].tagName;Ae==="TABLE"&&(Et.removeChild(Et.childNodes[wt]),wt--)}if(ggbHTML5LoadedScript!==null){var be=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');be!=null&&be.parentNode.removeChild(be)}var gt=document.createElement("script"),Xe=function(){nt(Et,et)};gt.src=ke+E,ggbHTML5LoadedCodebaseIsWebSimple=a,ggbHTML5LoadedCodebaseVersion=le,ggbHTML5LoadedScript=gt.src,jt("GeoGebra HTML5 codebase loaded: '"+ke+"'.",et),!ue&&(!Re||Re=="5.0")?(a?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Xe()):ke.requirejs?__webpack_require__.e(981).then(function(){var Te=[__webpack_require__(60981)];Xe.apply(null,Te)}.bind(this)).catch(__webpack_require__.oe):(gt.onload=Xe,Qe.appendChild(gt))}else nt(Et,et);et.height=Be,et.width=Vt},Ge=function(Qe,et,Dt){var tn=st(et.width,et.height,et.borderColor,Dt),Et=document.createElement("div");Et.style.position="relative",Et.style.display="block",Et.style.width=et.width+"px",Et.style.height=et.height+"px",Et.className="applet_screenshot applet_scaler"+(Dt?" applet_screenshot_play":""),Et.appendChild(tn);var Vt=GGBAppletUtils.getScale(et,Qe,Dt);Dt?(Qe.appendChild(Ue()),window.GGBT_wsf_view||(Qe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Et,"66%"),Qe.appendChild(Et),Vt!==1&&!isNaN(Vt)&&(GGBAppletUtils.scaleElement(Et,Vt),Et.style.width=et.width+"px",Et.style.height=et.height+"px",Et.parentNode.style.width=et.width*Vt+"px",Et.parentNode.style.height=et.height*Vt+"px"),Ot.resize=function(){ot(Qe,tn,Et,Dt)},window.addEventListener("resize",function(Be){Ot.resize()}),Ot.resize()};function ot(Qe,et,Dt,tn){if(Qe.contains(et)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Qe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Qe)}var Et=GGBAppletUtils.getScale(ae,Qe,tn);Dt.parentNode!==null&&(!isNaN(Et)&&Et!==1?(GGBAppletUtils.scaleElement(Dt,Et),Dt.parentNode.style.width=ae.width*Et+"px",Dt.parentNode.style.height=ae.height*Et+"px"):(GGBAppletUtils.scaleElement(Dt,1),Dt.parentNode.style.width=ae.width+"px",Dt.parentNode.style.height=ae.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Qe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ot.onExitFullscreen=function(Qe,et){et.appendChild(Qe)};var Le=function(Qe,et,Dt,tn){Ge(Qe,et,!0);for(var Et=function(){var Gt=[];for(Be=0;Be<Qe.childNodes.length;Be++)Gt.push(Qe.childNodes[Be]);if(window.GGBT_wsf_view){var bn=window.GGBT_wsf_view.renderFullScreen(Qe,et.id),Bt=document.getElementById("fullscreencontainer"),At=jQuery(Qe).find(".fullscreencontent");At.length>0?(bn.remove(),At.attr("id","fullscreencontent").show(),jQuery(Bt).append(At),window.dispatchEvent(new Event("resize"))):Je(bn,et,!1),window.GGBT_wsf_view.launchFullScreen(Bt)}else Ie=tn,Je(Qe,et,!1);if(!window.GGBT_wsf_view)for(Be=0;Be<Gt.length;Be++)Qe.removeChild(Gt[Be])},Vt=Qe.getElementsByClassName("ggb_preview_play"),Be=0;Be<Vt.length;Be++)Vt[Be].addEventListener("click",Et,!1),Vt[Be].addEventListener("ontouchstart",Et,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Qe),pe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ue=function(){var Qe=document.createElement("div");if(Qe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var et='.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");}',Dt=document.createElement("style");Dt.styleSheet?Dt.styleSheet.cssText=et:Dt.appendChild(document.createTextNode(et)),document.getElementsByTagName("head")[0].appendChild(Dt)}return Qe},st=function(Qe,et,Dt,tn){var Et=document.createElement("div");Et.className="ggb_preview",Et.style.position="absolute",Et.style.zIndex="90",Et.style.width=Qe-2+"px",Et.style.height=et-2+"px",Et.style.top="0px",Et.style.left="0px",Et.style.overflow="hidden",Et.style.backgroundColor="white";var Vt="lightgrey";Dt!==void 0&&(Dt==="none"?Vt="transparent":Vt=Dt),Et.style.border="1px solid "+Vt;var Be=document.createElement("img");if(Be.style.position="relative",Be.style.zIndex="1000",Be.style.top="-1px",Be.style.left="-1px",x!==null&&Be.setAttribute("src",x),Be.style.opacity=.7,y!==null){var Gt,bn,Bt;if(!tn){Gt=document.createElement("img"),Gt.style.position="absolute",Gt.style.zIndex="1001",Gt.style.opacity=1,Be.style.opacity=.3,bn=360,bn>Qe/4*3&&(bn=Qe/4*3),Bt=bn/5.8,Gt.setAttribute("src",y),Gt.setAttribute("width",bn),Gt.setAttribute("height",Bt);var At=(Qe-bn)/2,tt=(et-Bt)/2;Gt.style.left=At+"px",Gt.style.top=tt+"px",Et.appendChild(Gt)}}return Et.appendChild(Be),Et},Ke=function(Qe){return Qe=Qe.toLowerCase(),Qe==="html5"||Qe==="screenshot"?Qe:"html5"},rt=["web","webSimple","web3d","tablet","tablet3d","phone"],Ht=function(Qe,et){if(le=Qe,et){it(le,!0);return}var Dt=!se;if(Dt){var tn=ie(le);!isNaN(tn)&&tn<4.4&&(Dt=!1)}var Et,Vt;window.location.protocol.substr(0,4)==="http"?Et=window.location.protocol:Et="http:";var Be=le.indexOf("//");Be>0?Vt=le:Be===0?Vt=Et+le:Vt="https://www.geogebra.org/apps/5.2.814.0/";for(var Gt in rt)if(le.slice(rt[Gt].length*-1)===rt[Gt]||le.slice((rt[Gt].length+1)*-1)===rt[Gt]+"/"){it(Vt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Dt&&!b.is3D&&!b.AV&&!b.SV&&!b.CV&&!b.EV2&&!b.CP&&!b.PC&&!b.DA&&!b.FI&&!b.PV&&!ve(ae.showToolBar)&&!ve(ae.showMenuBar)&&!ve(ae.showAlgebraInput)&&!ve(ae.enableRightClick)&&(!ae.appName||ae.appName=="classic")?Vt+="webSimple/":Vt+="web3d/",it(Vt,!1)},it=function(Qe,et){if(Qe.requirejs){ke=Qe;return}Qe.slice(-1)!=="/"&&(Qe+="/"),ke=Qe,et===null&&(et=Qe.indexOf("http")===-1),je=et,E="web.nocache.js",a=!1;var Dt=ke.split("/");Dt.length>1&&(!et&&Dt[Dt.length-2]==="webSimple"?(E="webSimple.nocache.js",a=!0):rt.indexOf(Dt[Dt.length-2])>=0&&(E=Dt[Dt.length-2]+".nocache.js")),Dt=Qe.split("/"),le=Dt[Dt.length-3],le.substr(0,4)==="test"?le=le.substr(4,1)+"."+le.substr(5,1):(le.substr(0,3)==="war"||le.substr(0,4)==="beta")&&(le="5.0");var tn=parseFloat(le);tn!==NaN&&tn<5&&Qe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+tn+" is deprecated. Using version latest instead."),Ht("5.0",et))},jt=function(Qe,et){window.console&&window.console.log&&(!et||typeof et.showLogging=="undefined"||et.showLogging&&et.showLogging!=="false")&&console.log(Qe)};ae.material_id!==void 0?ge(Kt):Kt();function Kt(){var Qe=Rt;Re!==null?Qe=Re:parseFloat(Qe)<5&&(Qe="5.0"),Ht(Qe,!1),ue!==null&&it(ue,je),Oe=!0}return Ot},GGBAppletUtils=function(){"use strict";function Ot(){return window.GGBT_wsf_edit!==void 0}function Rt(Oe,Re){Re!=1?(Oe.style.transformOrigin="0% 0% 0px",Oe.style.webkitTransformOrigin="0% 0% 0px",Oe.style.transform="scale("+Re+","+Re+")",Oe.style.webkitTransform="scale("+Re+","+Re+")",Oe.style.maxWidth="initial",Oe.querySelector(".ggb_preview")!==null&&(Oe.querySelector(".ggb_preview").style.maxWidth="initial"),Oe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Oe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Oe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Oe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Oe.style.transform="none",Oe.style.webkitTransform="none")}function ae(Oe,Re,ue,Ze,We,_e){var ke=null;if(_e!=null&&_e!="")for(var je=Oe.parentNode;je!=null;)if((" "+je.className+" ").indexOf(" "+_e+" ")>-1){ke=je;break}else je=je.parentNode;var Ie=0,le=0,E=0,a=0,x=0,y=0,z=0;if(ke)Ie=ke.offsetWidth,le=Math.max(Ze?ke.offsetWidth:0,ke.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ie=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),E=Ie):(Ie=window.innerWidth,le=window.innerHeight,E=window.innerWidth),Oe){var te=Oe.getBoundingClientRect();te.left>0&&te.left<=Ie&&(We===void 0||!We)&&(document.dir==="rtl"?(x=Ie-te.width-te.left,y=E<=480?10:30):(y=te.left,x=E<=480?10:30),a=y+x)}if(Oe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var re=Oe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(a=40,z=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(a=0,z=40)}}return Oe&&((ue===void 0||!ue)&&Re>0&&Re+a<Ie?Ie=Re:Ie-=a,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ue===void 0||!ue)&&(le-=z)),{width:Ie,height:le}}function b(Oe,Re,ue,Ze,We){if(Oe.isScreenshoGenerator)return 1;var _e=Ze!==void 0&&Ze,ke=Oe.noScaleMargin!=null&&Oe.noScaleMargin,je=function(re){return re&&re!=="false"},Ie=je(Oe.autoHeight),le=ae(Re,Oe.width,ue,Ie,_e&&window.GGBT_wsf_view||ke,We),E=parseInt(le.width),a=Oe.width,x=Oe.height;if(a===void 0){var y=Re.querySelector(".appletParameters");y&&(a=y.offsetWidth,x=y.offsetHeight)}var z=E/a,te=_e?1:le.height/x;return ue!==void 0&&!ue&&(z=Math.min(1,z),te=Math.min(1,te)),Math.min(z,te)}function se(Oe,Re,ue){var Ze=1,We,_e=!1;if(Oe.hasOwnProperty("allowUpscale")&&(_e=Oe.allowUpscale),Oe.hasOwnProperty("scale")&&(Ze=parseFloat(Oe.scale),(isNaN(Ze)||Ze===null||Ze===0)&&(Ze=1),Ze>1&&(_e=!0)),Re&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(_e=!0),!(Oe.hasOwnProperty("disableAutoScale")&&Oe.disableAutoScale))We=b(Oe,Re,_e,ue,Oe.scaleContainerClass);else return Ze;return _e&&(!Oe.hasOwnProperty("scale")||Ze===1)?We:Math.min(Ze,We)}function Ce(Oe){var Re=Math.min(window.innerWidth,document.documentElement.clientWidth),ue=Math.min(window.innerHeight,document.documentElement.clientHeight),Ze=Oe.getBoundingClientRect(),We=(Re-Ze.width)/2,_e=(ue-Ze.height)/2;_e<0&&(_e=0),Oe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(We<40?Oe.style.left="40px":Oe.style.left=We+"px",Oe.style.top=_e+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(_e<40?Oe.style.top="40px":Oe.style.top=_e+"px",Oe.style.left=We+"px")}function Fe(Oe,Re){var ue=Oe.querySelector(".appletParameters");if(ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Re.id!==ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Oe)}if(ue.parentElement&&/fullscreen/.test(ue.parentElement.className))return;var Ze=se(Re,Oe);Ot()&&ue.setAttribute("data-param-scale",Ze);for(var We=null,_e=0;_e<Oe.childNodes.length;_e++)if(Oe.childNodes[_e].className!==void 0&&Oe.childNodes[_e].className.match(/^applet_scaler/)){We=Oe.childNodes[_e];break}if(We!==null&&We.querySelector(".noscale")!==null)return;var ke=Re.id!==void 0?Re.id:"ggbApplet",je=window[ke];(je==null||!je.recalculateEnvironments)&&We!==null&&!We.className.match(/fullscreen/)&&(We.parentNode.style.transform="",!isNaN(Ze)&&Ze!==1?(We.parentNode.style.width=Re.width*Ze+"px",We.parentNode.style.height=Re.height*Ze+"px",Rt(We,Ze)):(Rt(We,1),We.parentNode.style.width=Re.width+"px",We.parentNode.style.height=Re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ce(Oe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ue).parents(".content-added-content"))}}return{responsiveResize:Fe,isFlexibleWorksheetEditor:Ot,positionCenter:Ce,getScale:se,scaleElement:Rt}}();__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 Ot=n.location.search;return Ot.indexOf(J)!=-1||Ot.indexOf(K)!=-1}function q(Ot,Rt){}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(Ot){var Rt=s[L].bindings;s[L].bindings=function(){for(var ae=Rt?Rt():{},b=Ot[webModule.__softPermutationId],se=O;se<b.length;se++){var Ce=b[se];ae[Ce[O]]=Ce[P]}return ae}};var t;function u(){return v(),t}function v(){if(!t){var Ot=o.createElement(Q);if(Ot.id=L,Ot.style.cssText=R+S,Ot.tabIndex=-1,o.body.appendChild(Ot),t=Ot.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Rt=document.compatMode==U?V:W;t.write(Rt+X),t.close()}}}function w(Ot){function Rt(b){function se(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ce=se();if(Ce){b();return}function Fe(){if(!Ce){if(!se())return;Ce=!0,b(),o.removeEventListener&&o.removeEventListener(Z,Fe,!1),Oe&&clearInterval(Oe)}}o.addEventListener&&o.addEventListener(Z,Fe,!1);var Oe=setInterval(function(){Fe()},$)}function ae(b){var se=u(),Ce=se.body,Fe=se.createElement(_);Fe.language=ab,Fe.crossOrigin=W,Fe.src=b,webModule.__errFn&&(Fe.onerror=function(){webModule.__errFn(L,new Error(bb+b))}),Ce.appendChild(Fe)}Rt(function(){ae(Ot)})}webModule.__startLoadingFragment=function(Ot){return C(Ot)},webModule.__installRunAsyncCode=function(Ot){var Rt=u(),ae=Rt.body,b=Rt.createElement(_);b.language=ab,b.text=Ot,ae.appendChild(b),ae.removeChild(b)};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(Ot){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ot){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ot){var Rt=c[Ot];return Rt==null?null:Rt},r=d,webModule.__errFn=e}function B(){function Ot(Oe){var Re=Oe.lastIndexOf(rb);Re==-1&&(Re=Oe.length);var ue=Oe.indexOf(sb);ue==-1&&(ue=Oe.length);var Ze=Oe.lastIndexOf(tb,Math.min(ue,Re));return Ze>=O?Oe.substring(O,Ze+P):W}function Rt(Oe){if(!Oe.match(/^\w+:\/\//)){var Re=o.createElement(ub);Re.src=Oe+vb,Oe=Ot(Re.src)}return Oe}function ae(){var Oe=__gwt_getMetaProperty(wb);return Oe!=null?Oe:W}function b(){for(var Oe=o.getElementsByTagName(_),Re=O;Re<Oe.length;++Re)if(Oe[Re].src.indexOf(xb)!=-1)return Ot(Oe[Re].src);return W}function se(){var Oe=o.getElementsByTagName(yb);return Oe.length>O?Oe[Oe.length-P].href:W}function Ce(){var Oe=o.location;return Oe.href==Oe.protocol+zb+Oe.host+Oe.pathname+Oe.search+Oe.hash}var Fe=ae();return Fe==W&&(Fe=b()),Fe==W&&(Fe=se()),Fe==W&&Ce()&&(Fe=Ot(o.location.href)),Fe=Rt(Fe),Fe}function C(Ot){return Ot.match(/^\//)||Ot.match(/^[a-zA-Z]+:\/\//)?Ot:webModule.__moduleBase+Ot}function D(){var Ot=[],Rt=O,ae=[],b=[];function se(Oe){var Re=b[Oe](),ue=ae[Oe];if(Re in ue)return Re;var Ze=[];for(var We in ue)Ze[ue[We]]=We;throw r&&r(Oe,Ze,Re),null}if(__gwt_isKnownPropertyValue=function(Oe,Re){return Re in ae[Oe]},webModule.__getPropMap=function(){var Oe={};for(var Re in ae)ae.hasOwnProperty(Re)&&(Oe[Re]=se(Re));return Oe},webModule.__computePropValue=se,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ce;try{Ce=Cb;var Fe=Ce.indexOf(Db);Fe!=-1&&(Rt=parseInt(Ce.substring(Fe+P),$),Ce=Ce.substring(O,Fe))}catch(Oe){}return webModule.__softPermutationId=Rt,C(Ce+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(Ot,Rt,ae){"use strict";ae.d(Rt,{Ax:function(){return Fe},Ds:function(){return Oe},KI:function(){return ue},SI:function(){return Ce},f1:function(){return se}});var b=ae(90524);function se(Ze){let We=!0;if(Ze.length>0){for(let _e=0;_e<Ze.length;_e++)if(Ze[_e].compile_success==0||!Ze[_e].compile_success){We=!1;break}}else We=!1;return We}function Ce(Ze,We=""){let _e=[];for(let ke=0;ke<Ze.length;ke++){let je=Ze[ke],Ie=We?`${We}/${je.name}`:`${je.name}`;_e.push({title:je.name,type:je.type,isLeaf:je.type!=="tree",key:Ie})}return _e}function Fe(Ze,We,_e){for(let ke=0;ke<Ze.length;ke++){let je=Ze[ke];if(je.key===We){je.children=_e;break}je.children&&Fe(je.children,We,_e)}return Ze}function Oe(Ze,We,_e){let ke;return function(){let je=this,Ie=arguments,le=function(){ke=null,_e||Ze.apply(je,Ie)},E=_e&&!ke;clearTimeout(ke),ke=setTimeout(le,We),E&&Ze.apply(je,Ie)}}const Re=!0,ue=b.Z.API_SERVER},64885:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return le}});var b=ae(3113),se=ae(59301),Ce=Object.defineProperty,Fe=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,Re=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,We=(E,a,x)=>a in E?Ce(E,a,{enumerable:!0,configurable:!0,writable:!0,value:x}):E[a]=x,_e=(E,a)=>{for(var x in a||(a={}))ue.call(a,x)&&We(E,x,a[x]);if(Re)for(var x of Re(a))Ze.call(a,x)&&We(E,x,a[x]);return E},ke=(E,a)=>Fe(E,Oe(a)),je=(E,a)=>{var x={};for(var y in E)ue.call(E,y)&&a.indexOf(y)<0&&(x[y]=E[y]);if(E!=null&&Re)for(var y of Re(E))a.indexOf(y)<0&&Ze.call(E,y)&&(x[y]=E[y]);return x},Ie=(E,a,x)=>new Promise((y,z)=>{var te=ce=>{try{ie(x.next(ce))}catch(pe){z(pe)}},re=ce=>{try{ie(x.throw(ce))}catch(pe){z(pe)}},ie=ce=>ce.done?y(ce.value):Promise.resolve(ce.value).then(te,re);ie((x=x.apply(E,a)).next())});const le=E=>{var a=E,{children:x}=a,y=je(a,["children"]);const[z,te]=(0,se.useState)(!1);return se.createElement(b.ZP,ke(_e({},y),{loading:z,onClick:re=>Ie(void 0,null,function*(){try{te(!0),yield y.onClick(re),te(!1)}catch(ie){console.error(ie),te(!1)}})}),x)}},77817:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return Ie}});var b=ae(59301),se=ae(8591),Ce=ae(92832),Fe={codeBox:"codeBox___WpkVl"},Oe=ae(92310),Re=ae.n(Oe),ue=Object.defineProperty,Ze=(le,E,a)=>E in le?ue(le,E,{enumerable:!0,configurable:!0,writable:!0,value:a}):le[E]=a,We=(le,E,a)=>Ze(le,typeof E!="symbol"?E+"":E,a),_e=(le,E,a)=>new Promise((x,y)=>{var z=ie=>{try{re(a.next(ie))}catch(ce){y(ce)}},te=ie=>{try{re(a.throw(ie))}catch(ce){y(ce)}},re=ie=>ie.done?x(ie.value):Promise.resolve(ie.value).then(z,te);re((a=a.apply(le,E)).next())});class ke extends b.Component{constructor(E){super(E),We(this,"canvas"),We(this,"randomNum",(a,x)=>Math.floor(Math.random()*(x-a)+a)),We(this,"drawPic",()=>{this.randomCode()}),We(this,"reloadPic",()=>{this.drawPic()}),We(this,"changeCode",a=>{console.log(a.target.value,222),this.setState({value:a.target.value,showError:!1})}),We(this,"onVerify",()=>{let a;return this.state.value.toLowerCase()!==""&&this.state.value.toLowerCase()!==this.state.code.toLowerCase()?(a=!0,se.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801"),this.reloadPic()):this.state.value.toLowerCase()===""?(a=!0,se.ZP.error("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801")):this.state.value.toLowerCase()===this.state.code.toLowerCase()&&(a=!1),this.setState({showError:a}),a}),this.canvas=b.createRef(),this.state={value:"",code:"",codeLength:4,fontSizeMin:20,fontSizeMax:22,backgroundColorMin:240,backgroundColorMax:250,colorMin:10,colorMax:20,lineColorMin:40,lineColorMax:180,contentWidth:96,contentHeight:38,showError:!1}}componentDidMount(){this.drawPic()}randomColor(E,a){const x=this.randomNum(E,a),y=this.randomNum(E,a),z=this.randomNum(E,a);return`rgb(${x}, ${y}, ${z})`}drawText(E,a,x){E.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);const y=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);E.font=y+"px SimHei";const z=10,te=(this.state.contentWidth-40)/(this.state.code.length-1);let re=z;x>0&&(re=z+x*te);let ie=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);y>40&&(ie=40);const ce=this.randomNum(-10,10);E.translate(re,ie),E.rotate(ce*Math.PI/180),E.fillText(a,0,0),E.rotate(-ce*Math.PI/180),E.translate(-re,-ie)}drawLine(E){for(let a=0;a<1;a++)E.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),E.beginPath(),E.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),E.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),E.stroke()}drawDot(E){for(let a=0;a<100;a++)E.fillStyle=this.randomColor(0,255),E.beginPath(),E.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),E.fill()}randomCode(){let E="";const a="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890";for(let x=0;x<this.state.codeLength;x++){const y=Math.floor(Math.random()*57);E+=a[y]}this.setState({code:E},()=>{const y=this.canvas.current.getContext("2d");y.textBaseline="bottom",y.fillStyle=this.randomColor(this.state.backgroundColorMin,this.state.backgroundColorMax),y.fillRect(0,0,this.state.contentWidth,this.state.contentHeight);for(let z=0;z<this.state.code.length;z++)this.drawText(y,this.state.code[z],z);this.drawLine(y),this.drawDot(y)})}render(){const{className:E,width:a=300}=this.props;return b.createElement("div",{className:Re()(Fe.codeBox,E),style:{width:a}},b.createElement("aside",null,b.createElement(Ce.default,{value:this.state.value,onChange:this.changeCode,placeholder:"\u8BF7\u8F93\u5165\u56FE\u7247\u4E2D\u7684\u9A8C\u8BC1\u7801"})),b.createElement("div",null,b.createElement("canvas",{onClick:this.reloadPic,ref:this.canvas,width:"100",height:"30"}),b.createElement("div",{className:"current",onClick:this.reloadPic},"\u770B\u4E0D\u6E05\uFF1F\u6362\u4E00\u5F20")))}}const je=(le,E)=>{let a;Modal.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:React.createElement("div",null,React.createElement("p",null,E),React.createElement(ke,{ref:x=>a=x})),onOk:()=>_e(void 0,null,function*(){if(a.onVerify())return Promise.reject();le()})})};var Ie=ke},20927:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return We}});var b=ae(59301),se=ae(92832),Ce=ae(12563),Fe=ae(8591),Oe={flex:"flex___eLcnP",flex1:"flex1___yUTT7",color666:"color666___TiUhG",error:"error___gTTtv",deleteIcon:"deleteIcon___mnZW1",addIcon:"addIcon___JC5NS"},Re=ae(62772);const{TextArea:ue}=se.default;class Ze extends b.Component{constructor(ke){super(ke),this.state={inputVisible:!1,EditInputIndex:-1}}render(){let{index:ke,onAnswerChange:je,addChildAnswer:Ie,exerciseIsPublish:le,answers:E,activeOptionErrorIndex:a,flex:x="0 0 1000px"}=this.props;console.log("----",E);let{inputVisible:y,EditInputIndex:z}=this.state;return b.createElement("div",{className:Oe.flex},b.createElement("div",{className:`${Oe.color666} mb5 mt6`,style:{flex:"0 0 90px"}},"\u7B54\u6848(\u586B\u7A7A",ke+1,"):"),b.createElement("div",{style:{border:"1px solid #f6f6f6",flex:1,padding:10}},E==null?void 0:E.map((te,re)=>b.createElement(b.Fragment,null,z!==re?(te==null?void 0:te.length)>0?b.createElement(Ce.default,{className:"edit-tag",key:te,closable:!((E==null?void 0:E.length)===1&&re===0),onClose:ie=>{ie.preventDefault(),(E==null?void 0:E.length)===1&&re===0?this.props.deleteChildAnswermain(ke,re):this.props.deleteChildAnswer(ke,re)}},b.createElement("span",{onDoubleClick:ie=>{this.setState({EditInputIndex:re}),ie.preventDefault()}},te)):b.createElement(se.default,{defaultValue:te,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:ie=>{if(ie.target.value.replaceAll(" ","").length<=0){Fe.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}je(ke,re,ie.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}):b.createElement(se.default,{defaultValue:te,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:ie=>{if(ie.target.value.replaceAll(" ","").length<=0){Fe.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}je(ke,re,ie.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}))),!y&&b.createElement(Ce.default,{className:"site-tag-plus",onClick:()=>{Ie(ke),this.setState({inputVisible:!0})}},b.createElement(Re.Z,null)," \u65B0\u589E\u7B54\u6848")))}}var We=Ze},48106:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return le}});var b=ae(59301),se=ae(89389),Ce=Object.defineProperty,Fe=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,Re=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,We=(E,a,x)=>a in E?Ce(E,a,{enumerable:!0,configurable:!0,writable:!0,value:x}):E[a]=x,_e=(E,a)=>{for(var x in a||(a={}))ue.call(a,x)&&We(E,x,a[x]);if(Re)for(var x of Re(a))Ze.call(a,x)&&We(E,x,a[x]);return E},ke=(E,a)=>Fe(E,Oe(a)),je=(E,a,x)=>We(E,typeof a!="symbol"?a+"":a,x);const Ie="\u2581";class le extends b.Component{constructor(){super(...arguments),je(this,"getChCountBeforeCursor",(a,x)=>{const y=x.line;let z=0;for(let re=0;re<y;re++)z+=a.getLine(re).split(Ie).length-1;const te=a.getLine(y).substring(0,x.ch);return z+=te.split(Ie).length-1,z}),je(this,"onCMBeforeChange",(a,x)=>{const y=a.getRange(x.from,x.to);let z=0;if(x.text.forEach(te=>{z+=te.split(Ie).length-1}),y&&y.indexOf(Ie)!=-1){const te=y.split(Ie).length-1,re=this.getChCountBeforeCursor(a,x.from);console.log(`\u5220\u9664${te}\u4E2A\uFF0C \u4E4B\u524D\u6709${re}\u4E2A\uFF0C\u65B0\u589E${z}\u4E2A`),this.props.deleteEmptyDisabled?x.cancel():this.props.onPlaceholderChange&&this.props.onPlaceholderChange(re,te,z)}else if(z){const te=this.getChCountBeforeCursor(a,x.from);console.log(`\u65B0\u589E${z}\u4E2A\uFF0C\u4E4B\u524D\u6709${te}\u4E2A`),this.props.onPlaceholderChange&&this.props.onPlaceholderChange(te,0,z)}})}render(){return b.createElement(se.Z,ke(_e({},this.props),{onCMBeforeChange:this.onCMBeforeChange}))}}},15985:function(Ot,Rt,ae){"use strict";ae.d(Rt,{d4:function(){return Ie},VP:function(){return We}});var b=ae(59301),se={digitalLabel:"digitalLabel___hkWuZ",active:"active___jawU1",titleEditor:"titleEditor___wX1lW",title:"title___SuT2h",editIcon:"editIcon___XrTIi",paperTab:"paperTab___GUxeB",tabItem:"tabItem___or0fY",dottedLine:"dottedLine___Ln0Xr"};const Ce=({number:le,active:E,className:a})=>b.createElement("div",{className:`${se.digitalLabel} ${E?se.active:""} ${a}`},le);var Fe=ae(6848),Oe=ae(92832),Re=ae(8591),ue=ae(59301),Ze=(le,E,a)=>new Promise((x,y)=>{var z=ie=>{try{re(a.next(ie))}catch(ce){y(ce)}},te=ie=>{try{re(a.throw(ie))}catch(ce){y(ce)}},re=ie=>ie.done?x(ie.value):Promise.resolve(ie.value).then(z,te);re((a=a.apply(le,E)).next())});const We=({defaultValue:le,onFinish:E})=>{const[a,x]=(0,b.useState)(!1),[y,z]=(0,b.useState)(le);return(0,b.useEffect)(()=>{z(le)},[le]),ue.createElement("div",{className:se.titleEditor},a?ue.createElement(Oe.default,{autoFocus:!0,maxLength:60,style:{textAlign:"center",marginTop:20,marginBottom:20},value:y,onChange:te=>{z(te.target.value)},onBlur:()=>Ze(void 0,null,function*(){var te;if(((te=y==null?void 0:y.replaceAll(" ",""))==null?void 0:te.length)<=0){Re.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield E(y))&&x(!1)}),onPressEnter:()=>Ze(void 0,null,function*(){var te;if(((te=y==null?void 0:y.replaceAll(" ",""))==null?void 0:te.length)<=0){Re.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield E(y))&&x(!1)})}):ue.createElement("div",{className:se.title,onDoubleClick:()=>x(!0)},y,ue.createElement(Fe.Z,{title:"\u7F16\u8F91\u8BD5\u5377\u540D\u79F0"},ue.createElement("i",{className:`${se.editIcon} iconfont icon-bianji_Hover`,onClick:()=>x(!0)}))))};var _e=ae(95237),ke=ae(43604),je=(le,E,a)=>new Promise((x,y)=>{var z=ie=>{try{re(a.next(ie))}catch(ce){y(ce)}},te=ie=>{try{re(a.throw(ie))}catch(ce){y(ce)}},re=ie=>ie.done?x(ie.value):Promise.resolve(ie.value).then(z,te);re((a=a.apply(le,E)).next())});const Ie=({onChange:le=()=>je(void 0,null,function*(){}),tabs:E,activeKey:a,defaultActiveKey:x,className:y=""})=>{var z,te,re,ie,ce,pe,ge;const[ye,Ee]=(0,b.useState)(x===void 0?(z=E[0])==null?void 0:z.key:x);return(0,b.useEffect)(()=>{a!==void 0&&Ee(a)},[a]),b.createElement(_e.Z,{justify:"center",align:"middle",className:`${se.paperTab} ${y}`},b.createElement(ke.Z,{className:`${se.tabItem} ${ye===((te=E[0])==null?void 0:te.key)?se.active:""}`,onClick:()=>je(void 0,null,function*(){var we;yield le(E[0].key),Ee((we=E[0])==null?void 0:we.key)})},b.createElement(Ce,{number:1,active:ye===((re=E[0])==null?void 0:re.key),className:"mr10"}),b.createElement("span",null,(ie=E[0])==null?void 0:ie.label)),b.createElement(ke.Z,{flex:"188px",className:`${se.dottedLine} ml30 mr30`}),b.createElement(ke.Z,{className:`${se.tabItem} ${ye===((ce=E[1])==null?void 0:ce.key)?se.active:""}`,onClick:()=>je(void 0,null,function*(){var we,ve;yield le((we=E[1])==null?void 0:we.key),Ee((ve=E[1])==null?void 0:ve.key)})},b.createElement(Ce,{number:2,active:ye===((pe=E[1])==null?void 0:pe.key),className:"mr10"}),b.createElement("span",null,(ge=E[1])==null?void 0:ge.label)))}},84216:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return Re}});var b=ae(60324),se={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},Ce=ae(32637),Fe=ae(59301),Re=({type:ue,style:Ze})=>{const We=Fe.createElement("div",{className:se.wrap,onClick:_e=>{_e.preventDefault(),_e.stopPropagation()}},Fe.createElement("p",null,ue==="shixun"||ue==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",Fe.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",ue==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),Fe.createElement("div",{className:se.contact},Fe.createElement("div",{className:se.img},Fe.createElement("img",{src:Ce,width:"124px",height:"124px"})),Fe.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return Fe.createElement(b.Z,{content:We},Fe.createElement("span",{className:se.text,style:Ze},"\u9AD8\u6D88\u8017"))}},6077:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return ke}});var b=ae(59301),se={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ce=ae(92310),Fe=ae.n(Ce),Oe=ae(71418),Re=ae(2859),ue=ae(82093),Ze=ae(49661),We=(je,Ie,le)=>new Promise((E,a)=>{var x=te=>{try{z(le.next(te))}catch(re){a(re)}},y=te=>{try{z(le.throw(te))}catch(re){a(re)}},z=te=>te.done?E(te.value):Promise.resolve(te.value).then(x,y);z((le=le.apply(je,Ie)).next())}),ke=({data:je,className:Ie,fullWidth:le,style:E={},onClose:a,onOk:x,showFullTools:y,noAssociationId:z})=>{const te=(0,b.useRef)(null),re=(0,b.useRef)(null),ie=(0,b.useRef)(null),ce=(0,b.useRef)(null),[pe,ge]=(0,b.useState)(!1),[ye,Ee]=(0,b.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,b.useEffect)(()=>{ie.current||(ie.current=document.createElement("style"),document.head.appendChild(ie.current)),je!=null&&je.visible?(document.body.setAttribute("data-custom","y-hidden"),ie.current.innerHTML=" html { overflow-y: hidden; }",je!=null&&je.src&&we()):(document.body.removeAttribute("data-custom"),ie.current&&(document.head.removeChild(ie.current),ie.current=null))},[je==null?void 0:je.visible]);const we=()=>We(void 0,null,function*(){ge(!0),Ee("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Le=yield(0,Ze.ZJ)(je==null?void 0:je.src);te.current.src="",te.current.src=Le,te.current.onload=function(){ot()},ge(!1),Ee("")}),ve=()=>{document.body.removeAttribute("data-custom"),ie.current.innerHTML=" ",a()},Je=Le=>We(void 0,null,function*(){ge(!0),Ee("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ue=yield(0,ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:je.title,file:Le.dataUrl}});Ue!=null&&Ue.id&&!z?(yield(0,ue.ZP)(`/api/attachments/${je.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ue==null?void 0:Ue.id,settings:JSON.stringify(Le.state)}})).status===0&&x():Ue!=null&&Ue.id&&x(Ue),document.body.removeAttribute("data-custom"),ie.current.innerHTML=" ",ge(!1),Ee("")}),Ge=()=>{const Le=document.querySelector('a[href="https://markerjs.com/"]');Le&&Le.parentNode&&(Le.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(st=>{const Ke=document.querySelector(st.name);Ke&&Ke.setAttribute("title",st.title)})},ot=()=>{re.current=new Re.hP(te.current),re.current.targetRoot=ce.current,re.current.addEventListener("render",Je),re.current.addEventListener("beforeclose",ve),y&&(re.current.availableMarkerTypes=re.current.ALL_MARKER_TYPES,re.current.uiStyleSettings.redoButtonVisible=!0,re.current.uiStyleSettings.notesButtonVisible=!0,re.current.uiStyleSettings.zoomButtonVisible=!0,re.current.uiStyleSettings.zoomOutButtonVisible=!0,re.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=re.current.uiStyleSettings,re.current.show(),je!=null&&je.snapshotData&&re.current.restoreState(je.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ge()},300)};return b.createElement(b.Fragment,null,(je==null?void 0:je.visible)&&b.createElement(Oe.Z,{spinning:pe,tip:ye,style:{position:"absolute"}},b.createElement("div",{ref:ce,className:Fe()(se.imageDimensions,Ie,le?se.fullWidth:""),style:E},b.createElement("img",{className:se.img,ref:te}))))}},65986:function(Ot,Rt,ae){"use strict";var b=ae(59301),se=ae(21697),Ce=ae(48136),Fe=ae(88615),Oe=ae(43418),Re=ae(59301);const ue=(0,b.forwardRef)(({callback:Ze,width:We,onChange:_e,disabled:ke,readOnly:je,type:Ie="",value:le="",style:E={}},a)=>{const x=(0,b.useRef)(),y=(0,b.useRef)(),[z,te]=(0,b.useState)(0),[re,ie]=(0,b.useState)(0),[ce,pe]=(0,b.useState)(!1),ge=()=>{var ve=document.createElement("div");ve.innerHTML=x.current.getValue();var Je=ve.innerText;return Ze&&Ze(Je),Je};(0,b.useImperativeHandle)(a,()=>({getData:ge}));const ye=ve=>{ve.preventDefault();const Je=ve.clientX-z,Ge=ve.clientY-re;document.body.onmousemove=ot=>{let Le=ot.clientX-Je,Ue=ot.clientY-Ge;const st=document.getElementsByClassName("markdown-popup-form")[0],Ke=window.innerWidth-st.offsetWidth,rt=window.innerHeight-st.offsetHeight;Le=Math.max(0,Math.min(Le,Ke)),Ue=Math.max(0,Math.min(Ue,rt)),Ee(ot.clientX,ot.clientY,Je,Ge)&&(te(Le),ie(Ue))},document.body.onmouseup=function(){document.body.onmousemove=null}},Ee=(ve,Je,Ge,ot)=>{const Le=document.body.clientHeight,Ue=document.body.clientWidth;return ve<20&&Ge>ve||ve>Ue-20&&Ge<ve||Je<20&&ot>Je||Je>Le-20&&ot<Je?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,b.useEffect)(()=>{ce&&setTimeout(()=>{const ve=document.getElementsByClassName("markdown-popup-form")[0],Je=window.innerWidth/2-ve.offsetWidth/2,Ge=window.innerHeight/2-ve.offsetHeight/2;te(Je),ie(Ge)},0)},[ce]);const we=()=>{ke||je||pe(!0)};return Re.createElement("div",{style:E},Re.createElement("div",{style:{width:We||"100%",position:"relative"},className:`${se.Z.mathFillWrap} ${ke||je?"cursorDefault":""}`,onClick:()=>we()},Re.createElement("math-field",{disabled:ke,locale:"zh_cn",class:`${se.Z.mathField} ${Ie}`,readOnly:je,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:x,style:{width:"100%",fontSize:le?18:14},value:le||""})),Re.createElement(Oe.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:z,top:re},title:Re.createElement("div",{style:{cursor:"move"},onMouseDown:ye},"\u8F93\u5165\u516C\u5F0F"),open:ce,onOk:()=>{const ve=y.current.getData();x.current.setValue(ve),_e(ve),pe(!1)},onCancel:()=>{pe(!1)},destroyOnClose:!0,className:"markdown-popup-form"},Re.createElement(Fe.Z,{value:le,ref:y,onChange:_e,showSaveButton:!1})))});Rt.Z=ue},88615:function(Ot,Rt,ae){"use strict";var b=ae(59301),se=ae(95237),Ce=ae(43604),Fe=ae(99313),Oe=ae(3113),Re=ae(7664),ue=ae(21697),Ze=ae(48136),We=ae(59301);const _e=(0,b.forwardRef)(({callback:ke,showSaveButton:je,value:Ie=""},le)=>{const E=(0,b.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}`}]}]}],y=re=>{E.current.setValue(E.current.getValue()+" "+re.value+" ")},z=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:We.createElement(se.Z,{className:ue.Z.lists,gutter:[10,10]},a.map((re,ie)=>We.createElement(Ce.Z,{flex:"110px",className:ue.Z.item},We.createElement("div",null,We.createElement(Re.Z,{value:`$$${re.value}$$`}),re.name),We.createElement("div",{className:ue.Z.children},re.children.map((ce,pe)=>We.createElement("div",{key:pe},We.createElement("h1",null,ce.name),We.createElement(se.Z,{gutter:[10,10]},ce.data.map((ge,ye)=>We.createElement(Ce.Z,{key:ye,onClick:()=>y(ge),className:ue.Z.diamond},We.createElement(Re.Z,{value:"`$$"+ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:We.createElement(se.Z,{className:ue.Z.lists,gutter:[10,10]},x.map((re,ie)=>We.createElement(Ce.Z,{flex:"110px",className:ue.Z.item},We.createElement("div",null,We.createElement(Re.Z,{value:"`$$"+re.value+"$$`"}),re.name),We.createElement("div",{className:ue.Z.children},re.children.map((ce,pe)=>We.createElement("div",{key:pe},ce.name&&We.createElement("h1",null,ce.name),We.createElement(se.Z,{gutter:[10,10]},ce.data.map((ge,ye)=>We.createElement(Ce.Z,{key:ye,onClick:()=>y(ge),className:ue.Z.diamond},We.createElement(Re.Z,{value:"`$$"+ge.value+"$$`"}))))))))))}],te=()=>{var re=document.createElement("div");re.innerHTML=E.current.getValue();var ie=re.innerText;return ke&&ke(ie),ie};return(0,b.useImperativeHandle)(le,()=>({getData:te})),We.createElement("div",{className:ue.Z.mathWrap},We.createElement(Fe.default,{defaultActiveKey:"1",items:z}),We.createElement("math-field",{locale:"zh_cn",className:ue.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:E,style:{width:800,marginTop:30,fontSize:18}},Ie||""),je&&We.createElement("div",{className:ue.Z.button},We.createElement(Oe.ZP,{size:"large",onClick:te,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Rt.Z=_e},51110:function(Ot,Rt,ae){"use strict";ae.d(Rt,{t:function(){return tt}});var b=ae(59301),se=ae(92832),Ce=ae(78241),Fe=ae(43418),Oe=ae(95237),Re=ae(43604),ue=ae(5871),Ze=ae(57809),We=ae(5112),_e=ae(54657),ke=ae(76560),je=ae(69092),Ie=ae(8591),le=ae(3113),E=ae(71418),a=ae(24334),x={flex_box_center:"flex_box_center___kOQ8P",flex_space_between:"flex_space_between___fY6jt",flex_box_vertical_center:"flex_box_vertical_center___bDSSI",flex_box_center_end:"flex_box_center_end___mQ6mU",flex_box_column:"flex_box_column___F15G0",result:"result___UYRo8",left:"left___TRaH5",right:"right___twp9s",box:"box___vwndt",li:"li___hRe2d"},y=ae(82093),z=ae(50582),te=ae(89389),re=ae(56102),ie=ae(55956),ce=ae(59301),pe=Object.defineProperty,ge=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,Je=(Ve,De,he)=>De in Ve?pe(Ve,De,{enumerable:!0,configurable:!0,writable:!0,value:he}):Ve[De]=he,Ge=(Ve,De)=>{for(var he in De||(De={}))we.call(De,he)&&Je(Ve,he,De[he]);if(Ee)for(var he of Ee(De))ve.call(De,he)&&Je(Ve,he,De[he]);return Ve},ot=(Ve,De)=>ge(Ve,ye(De)),Le=(Ve,De,he)=>new Promise((nt,wt)=>{var Ae=Xe=>{try{gt(he.next(Xe))}catch(Te){wt(Te)}},be=Xe=>{try{gt(he.throw(Xe))}catch(Te){wt(Te)}},gt=Xe=>Xe.done?nt(Xe.value):Promise.resolve(Xe.value).then(Ae,be);gt((he=he.apply(Ve,De)).next())}),st=({buttonProps:Ve,buttonText:De,form:he,hackIdentifier:nt="",answerKey:wt,data:Ae})=>{const[be,gt]=(0,b.useState)(!1),[Xe,Te]=(0,b.useState)(!1),[St,ln]=(0,b.useState)(!1),[Lt,Jt]=(0,b.useState)({}),[Ut,qt]=(0,b.useState)(""),[bt,Yt]=(0,b.useState)(""),Fn=(0,b.useRef)(nt),kt=(0,b.useRef)(""),Ft=(0,b.useRef)(!1);(0,b.useEffect)(()=>{St&&na()},[St]),(0,b.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const In=()=>new Date().getTime(),jn=Ae==null?void 0:Ae.code,Gn=()=>{var $t,mn;let Zn=jn?Ae==null?void 0:Ae.code:($t=he.getFieldValue("hack_codes"))==null?void 0:$t.code,Cn=jn?Ae==null?void 0:Ae.answer_content:he.getFieldValue(wt),Ha=jn?Ae==null?void 0:Ae.input:(mn=he.getFieldValue("hack_sets"))==null?void 0:mn.input;Cn==null||Cn.forEach($a=>{const aa=$a.value||$a.answer_text||"";Zn=Zn.replace(/(@▁@|@▁▁@)/,aa)}),Yt(Ha),qt(Zn),Jt({}),ln(!0)},na=()=>Le(void 0,null,function*(){var $t,mn,Zn,Cn;const Ha=In(),$a=jn?Ae==null?void 0:Ae.time_limit:($t=he.getFieldsValue())==null?void 0:$t.hack.time_limit,aa=jn?(mn=Ae==null?void 0:Ae.answer_content)==null?void 0:mn.length:(Cn=(Zn=he.getFieldsValue())==null?void 0:Zn.standard_answers)==null?void 0:Cn.length;gt(!0),yield(0,z.bM)(kt.current,{test_hack_code:Ut,test_input:bt});function vn(){return Le(this,null,function*(){const{status:ka,data:vt}=yield(0,z.rX)(kt.current,"submit"),Nn=In()-Ha>($a+3)*1e3*aa;if(Ft.current){if(Nn){Ie.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),gt(!1);return}if(ka===0){gt(!1),Jt(ot(Ge({},vt),{showText:!0}));return}setTimeout(vn,1e3)}})}vn()}),La=()=>Le(void 0,null,function*(){var $t,mn,Zn,Cn,Ha,$a,aa;if(!Ae){try{yield he.validateFields()}catch(cn){(Zn=(mn=($t=cn==null?void 0:cn.errorFields)==null?void 0:$t[0])==null?void 0:mn.name)!=null&&Zn.includes("standard_answers")?Ie.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):Ie.ZP.error(cn.errorFields[0].errors[0]),he.scrollToField(cn.errorFields[0].name,{behavior:"smooth",block:"center"});return}Te(!0);let ka="";const vt=he.getFieldsValue();Fn.current?ka=yield(0,y.ZP)(`/api/problems/${Fn.current}.json`,{method:"put",body:ot(Ge({},vt),{hack:ot(Ge({},vt==null?void 0:vt.hack),{sub_discipline_id:(aa=($a=vt==null?void 0:vt.hack)==null?void 0:$a.sub_discipline_id)==null?void 0:aa[1],difficult:vt.difficulty,item_banks_group_id:vt.item_banks_group_id}),hack_codes:ot(Ge({},vt.hack_codes),{code:a.Base64.encode(vt.hack_codes.code)}),update_hack_sets:[Ge({},vt.hack_sets)],is_blank:!0})}):(ka=yield(0,y.ZP)("/api/problems.json",{method:"post",body:ot(Ge({},vt),{hack:ot(Ge({},vt==null?void 0:vt.hack),{sub_discipline_id:(Ha=(Cn=vt==null?void 0:vt.hack)==null?void 0:Cn.sub_discipline_id)==null?void 0:Ha[1],difficult:vt.difficulty,item_banks_group_id:vt.item_banks_group_id}),hack_codes:ot(Ge({},vt.hack_codes),{code:a.Base64.encode(vt.hack_codes.code)}),hack_sets:[Ge({},vt.hack_sets)],is_blank:!0})}),Fn.current=ka==null?void 0:ka.identifier,sessionStorage.projectFill=ka==null?void 0:ka.identifier)}const vn=yield(0,y.ZP)(`/api/problems/${Fn.current}/start.json`,{method:"get"});if((vn==null?void 0:vn.status)===0){kt.current=vn==null?void 0:vn.identifier,Ft.current=!0,Te(!1),Gn();return}Te(!1)}),nn=$t=>{const{status:mn,error_msg:Zn,execute_time:Cn,output:Ha,input:$a,expected_output:aa}=$t;let vn=null;switch(mn){case ie.h.OK:vn=ce.createElement(ce.Fragment,null,ce.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Cn/1e3,"\u79D2"),ce.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case ie.h.NOMATCH:vn=ce.createElement(ce.Fragment,null,ce.createElement("div",null,"\u8F93\u5165\uFF1A"),ce.createElement("pre",{style:{fontFamily:"initial"}},$a),ce.createElement("div",null,"\u8F93\u51FA\uFF1A"),ce.createElement("pre",{style:{fontFamily:"initial"}},Ha&&a.Base64.decode(Ha)),ce.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),ce.createElement("pre",{style:{fontFamily:"initial"}},aa&&a.Base64.decode(aa)));break;case ie.h.EXECUTEFAILURE:vn=ce.createElement(ce.Fragment,null,ce.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",ce.createElement("pre",null,$a)),ce.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),ce.createElement("pre",{className:"error"},a.Base64.decode(Zn)));break;case ie.h.COMPILEFAILURE:vn=ce.createElement(ce.Fragment,null,ce.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",ce.createElement("pre",null,$a)),ce.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),ce.createElement("pre",{className:"error"},a.Base64.decode(Zn)));break;case ie.h.PODFAILURE:vn=ce.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case ie.h.TIMEOUT:vn=ce.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return ce.createElement(ce.Fragment,null," ",vn," ")};return ce.createElement("div",null,ce.createElement(le.ZP,ot(Ge({loading:Xe},Ve),{onClick:La}),De),ce.createElement(Fe.default,{open:St,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:be,cancelButtonProps:{style:{display:"none"}},onOk:()=>na(),onCancel:()=>{Ft.current=!1,ln(!1)}},ce.createElement("div",{className:x.result},ce.createElement("div",{className:x.left},ce.createElement("div",{className:"mb20"},ce.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!Ae&&ce.createElement(re.CopyToClipboard,{text:Ut,onCopy:()=>Ie.ZP.success("\u590D\u5236\u6210\u529F")},ce.createElement("span",{style:{float:"right"},className:"current c-light-primary"},ce.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),ce.createElement(te.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:Ut,onChange:$t=>qt($t)})),ce.createElement("div",{className:x.right},ce.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),ce.createElement("div",{className:x.box},ce.createElement("div",{className:x.li},ce.createElement(se.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:bt,onChange:$t=>Yt($t.target.value),bordered:!1,style:{height:180}}))),ce.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),ce.createElement("div",{className:x.box},ce.createElement(E.Z,{spinning:be,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},ce.createElement("div",{className:x.li,style:{height:196,overflow:"auto",padding:10}},nn(Lt))))))))},Ke=ae(87169),rt=ae(59301),Ht=Object.defineProperty,it=Object.defineProperties,jt=Object.getOwnPropertyDescriptors,Kt=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,Dt=(Ve,De,he)=>De in Ve?Ht(Ve,De,{enumerable:!0,configurable:!0,writable:!0,value:he}):Ve[De]=he,tn=(Ve,De)=>{for(var he in De||(De={}))Qe.call(De,he)&&Dt(Ve,he,De[he]);if(Kt)for(var he of Kt(De))et.call(De,he)&&Dt(Ve,he,De[he]);return Ve},Et=(Ve,De)=>it(Ve,jt(De)),Vt=(Ve,De)=>{var he={};for(var nt in Ve)Qe.call(Ve,nt)&&De.indexOf(nt)<0&&(he[nt]=Ve[nt]);if(Ve!=null&&Kt)for(var nt of Kt(Ve))De.indexOf(nt)<0&&et.call(Ve,nt)&&(he[nt]=Ve[nt]);return he};const{TextArea:Be}=se.default,Gt=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],bn=({value:Ve,onChange:De})=>rt.createElement(Switch,{checked:Ve,onChange:he=>{De(he)}}),Bt="@\u2581@",At="@\u2581\u2581@",tt=({questionTitlePlaceholder:Ve,form:De,scoreByBlank:he=!1,hackidentifier:nt,answerKey:wt})=>{const[Ae,be]=(0,b.useState)(!1),[gt,Xe]=(0,b.useState)(!1),St=(0,ke.useParams)().type==="edit",ln=(kt,Ft)=>{const In=Ft.line;let jn=0;for(let na=0;na<In;na++)jn+=kt.getLine(na).split(Bt).length-1;for(let na=0;na<In;na++)jn+=kt.getLine(na).split(At).length-1;const Gn=kt.getLine(In).substring(0,Ft.ch);return jn+=Gn.split(Bt).length-1,jn+=Gn.split(At).length-1,jn},Lt=(kt,Ft,In,jn)=>{const Gn=kt.getRange(Ft.from,Ft.to);let na=0;if(Ft.text.forEach(La=>{na+=La.split(Bt).length-1}),Ft.text.forEach(La=>{na+=La.split(At).length-1}),Ft.origin!=="setValue"){if(Gn&&(Gn.indexOf(Bt)!==-1||Gn.indexOf(At)!==-1)){const La=Gn.split(Bt).length-1+Gn.split(At).length-1,nn=ln(kt,Ft.from);if(console.log(`\u5220\u9664${La}\u4E2A\uFF0C \u524D\u9762\u6709${nn}\u4E2A\uFF0C\u65B0\u589E${na}\u4E2A`),La>1){const $t=Array.from({length:La},(mn,Zn)=>nn+Zn);jn($t)}else jn(nn)}else if(na>0){const La=ln(kt,Ft.from);console.log(`\u65B0\u589E${na}\u4E2A\uFF0C\u4E4B\u524D\u6709${La}\u4E2A`),In(na,La)}}},Jt=()=>{const kt=De.getFieldValue(wt);De.setFieldsValue({[wt]:kt==null?void 0:kt.map((Ft,In)=>Et(tn({},Ft),{position:In+1}))})},Ut=(0,b.useRef)(),qt=(kt,Ft)=>{for(let In=0;In<kt;In++)Ut.current({position:null,answer_text:""},Ft+In);Jt()},bt=(0,b.useRef)(),Yt=kt=>{bt.current(kt),Jt()},Fn=Ce.default.useWatch(wt,De);return rt.createElement("div",{className:je.Z.wrap},rt.createElement(Ce.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},rt.createElement(_e.h,{scrollId:"name",watch:!0,height:140})),rt.createElement("div",{className:je.Z.questionTitleEditorWrap},rt.createElement(Ce.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},rt.createElement(_e.h,{scrollId:"name",watch:!0,height:400,hidetoolBar:!0,showNullProgramButton:!0,onChange:(kt,Ft)=>{const In=De.getFieldValue(wt);console.log("--preAnswerData",In,Ft),De.setFieldsValue({[wt]:In==null?void 0:In.map((jn,Gn)=>{var na;return Et(tn({},jn),{position:Gn+1,multi_line:(na=Ft==null?void 0:Ft[Gn])==null?void 0:na.multiLine})})})},placeholder:Ve,onCMBeforeChange:(kt,Ft)=>{Lt(kt,Ft,qt,Yt)}}))),rt.createElement(Ce.default.List,{name:wt,rules:[{validator(kt,Ft){if(!(Ft!=null&&Ft.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const In of Ft){const{answer_text:jn}=In||{};if((jn==null?void 0:jn.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(kt,{add:Ft,remove:In},{errors:jn})=>(Ut.current=Ft,bt.current=In,rt.createElement(rt.Fragment,null,rt.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},rt.createElement(Ce.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),rt.createElement("div",{onClick:()=>{Fe.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:rt.createElement("div",null,rt.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",rt.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),rt.createElement("div",{style:{marginTop:10}},"2.\u8BD5\u9898\u7B97\u5206\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u5C06\u7A0B\u5E8F\u91CC\u9762\u7684\u6240\u6709\u7A7A\u66FF\u6362\u6210\u5B66\u751F\u7684\u7B54\u6848\u8FDB\u884C\u8BC4\u6D4B\u3002\u8F93\u51FA\u7684\u7ED3\u679C\u4E0E\u6D4B\u8BD5\u96C6\u6BD4\u5BF9\uFF0C\u5B8C\u5168\u6B63\u786E\u5219\u5F97\u6EE1\u5206\uFF1B\u82E5\u4E0D\u5B8C\u5168\u6B63\u786E\uFF0C\u5219\u4F9D\u6B21\u5C06\u6BCF\u4E2A\u7A7A\u6362\u6210\u5B66\u751F\u63D0\u4EA4\u7684\u7B54\u6848\uFF0C\u540C\u65F6\u5C06\u5176\u4ED6\u7A7A\u66FF\u6362\u6210\u6807\u51C6\u7B54\u6848\uFF0C\u8FD0\u884C\u7A0B\u5E8F\u3002\u5982\u679C\u8FD9\u4E2A\u7A7A\u7684\u5B66\u751F\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7ED3\u5408\u80FD\u5F97\u5230\u6B63\u786E\u8F93\u51FA\uFF0C\u5219\u8FD9\u4E2A\u7A7A\u5F97\u5230\u8BE5\u7A7A\u7684\u6EE1\u5206\uFF0C\u5426\u5219\u8BE5\u7A7A\u5F970\u5206\u3002"))})},style:{minHeight:32,color:"#3061D0",cursor:"pointer"}},rt.createElement(Ke.Z,{style:{marginRight:3,color:"#3061D0"}}),rt.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),kt.map((Gn,na)=>{var La=Gn,{key:nn,name:$t}=La,mn=Vt(La,["key","name"]),Zn,Cn;return rt.createElement(Oe.Z,{className:"mb20",key:nn,align:"middle",wrap:!1},rt.createElement(Re.Z,{flex:"0 0 auto",className:`${je.Z.blankIndex}`},"\u586B\u7A7A\u9879",na+1),rt.createElement(Re.Z,{flex:1},rt.createElement(Oe.Z,{align:"top",justify:"space-between",wrap:!1},rt.createElement(Re.Z,null,rt.createElement(Ce.default.Item,Et(tn({},mn),{name:[$t,"answer_text"],noStyle:!0}),(Zn=Fn==null?void 0:Fn[$t])!=null&&Zn.multi_line||(Cn=Fn==null?void 0:Fn[$t])!=null&&Cn.multiLine?rt.createElement(Be,{spellCheck:!1,style:{marginLeft:10,width:550}}):rt.createElement(se.default,{style:{marginLeft:10,width:550},className:je.Z.blankInput,size:"large",maxLength:1e3,onBlur:Ha=>{}}))),he&&rt.createElement(Re.Z,{flex:"224px"},rt.createElement(Ce.default.Item,Et(tn({},mn),{name:[$t,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),rt.createElement(ue.Z,{size:"large",className:je.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),rt.createElement("div",{onClick:()=>be(!0)},rt.createElement(Ce.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},rt.createElement(_e.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ae}))),rt.createElement(Ce.default.Item,{label:"\u7F16\u7A0B\u8BED\u8A00",style:{marginTop:30},name:["hack_codes","language"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00"}]},rt.createElement(Ze.default,{size:"large"},Gt.map(kt=>rt.createElement(Ze.default.Option,{key:kt.title,value:kt.key}," ",kt.title)))),rt.createElement(Ce.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},rt.createElement(Ce.default.Item,{name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:3,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F3\u79D2"}],noStyle:!0},rt.createElement(ue.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),rt.createElement("span",{className:"ml10 font14"},"\u79D2")),rt.createElement(Ce.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",style:{marginTop:30},name:["hack","submit_rule"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},rt.createElement(We.ZP.Group,{style:{marginTop:-10}},rt.createElement(We.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),rt.createElement(We.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),rt.createElement(We.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),rt.createElement(Ce.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),rt.createElement("div",{style:{background:"#F6F7F9",padding:15}},rt.createElement(Ce.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},rt.createElement(Be,{rows:4})),rt.createElement(Ce.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},rt.createElement(Be,{rows:4}))),rt.createElement(st,{form:De,answerKey:wt,hackIdentifier:nt,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:rt.createElement("i",{className:"iconfont icon-ceshi"}),style:{background:"rgba(55,173,131,0.05)",borderRadius:19,border:"1px solid #37AD83",width:116,height:38,display:"inline-flex",fontSize:14,alignItems:"center",justifyContent:"center",marginTop:20,cursor:"pointer",color:"#37AD83"}}}))}},82482:function(Ot,Rt,ae){"use strict";ae.d(Rt,{u:function(){return ce}});var b=ae(59301),se=ae(95237),Ce=ae(43604),Fe=ae(6848),Oe=ae(78241),Re=ae(69092),ue=ae(32134),Ze=ae(12893),We=ae(54657),_e=ae(59301),ke=Object.defineProperty,je=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,x=(pe,ge,ye)=>ge in pe?ke(pe,ge,{enumerable:!0,configurable:!0,writable:!0,value:ye}):pe[ge]=ye,y=(pe,ge)=>{for(var ye in ge||(ge={}))E.call(ge,ye)&&x(pe,ye,ge[ye]);if(le)for(var ye of le(ge))a.call(ge,ye)&&x(pe,ye,ge[ye]);return pe},z=(pe,ge)=>je(pe,Ie(ge)),te=(pe,ge)=>{var ye={};for(var Ee in pe)E.call(pe,Ee)&&ge.indexOf(Ee)<0&&(ye[Ee]=pe[Ee]);if(pe!=null&&le)for(var Ee of le(pe))ge.indexOf(Ee)<0&&a.call(pe,Ee)&&(ye[Ee]=pe[Ee]);return ye};const re=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],ie=({value:pe,onChange:ge,choiceTextKey:ye,answerKey:Ee,index:we,isEdit:ve,setInputActive:Je,form:Ge,choiceOptionsPath:ot,allowChangeMode:Le,showAddIcon:Ue,addItem:st,deleteItem:Ke})=>{console.log(pe,"value");const rt=(pe==null?void 0:pe[Ee])===1,Ht=()=>{const jt=Ge.getFieldValue(ot);Ge.setFieldValue(ot,jt.map(Kt=>z(y({},Kt),{[Ee]:0})))},it=()=>{rt?ge(z(y({},pe),{[Ee]:0})):(Le||Ht(),ge(z(y({},pe),{[Ee]:1})))};return _e.createElement(se.Z,{className:Re.Z.choiceWrap,align:"middle",wrap:!1},_e.createElement(Ce.Z,{onClick:it,className:`${Re.Z.choiceIndex} ${rt?Re.Z.activeAnswer:""}`},re[we]),_e.createElement(Ce.Z,{flex:1,className:`${Re.Z.editorWrap} ml15`,onClick:Je},_e.createElement(We.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:ve,value:pe==null?void 0:pe[ye],onChange:jt=>{ge(z(y({},pe),{[ye]:jt}))}})),_e.createElement(Ce.Z,{flex:"0 0 auto",className:"ml15"},_e.createElement("div",{onClick:it,className:`${Re.Z.setAnswerBtn} ${rt?Re.Z.activeAnswer:""}`},rt?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),_e.createElement(Ce.Z,{className:Re.Z.actionWrapper},_e.createElement(Fe.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},_e.createElement(ue.Z,{className:Re.Z.addIcon,onClick:st,style:{visibility:Ue?"visible":"hidden"}})),_e.createElement(Fe.Z,{title:"\u5220\u9664"},_e.createElement(Ze.Z,{className:Re.Z.deleteIcon,onClick:Ke,style:{visibility:we>1?"visible":"hidden"}}))))},ce=({questionTitlePlaceholder:pe,titleKey:ge,choiceKey:ye,analysisKey:Ee,choiceTextKey:we,answerKey:ve,choiceOptionsPath:Je,allowChangeMode:Ge=!0,form:ot,showAnalysis:Le=!0})=>{const[Ue,st]=(0,b.useState)(),[Ke,rt]=(0,b.useState)(!1);return _e.createElement("div",{className:Re.Z.wrap},_e.createElement("div",{className:Re.Z.questionTitleEditorWrap},_e.createElement(Oe.default.Item,{label:"\u9898\u5E72",name:ge,labelCol:{span:24},rules:[{required:!0}]},_e.createElement(We.h,{scrollId:Array.isArray(ge)?ge.join("_"):`${ge}`,watch:!0,height:140,placeholder:pe}))),_e.createElement(Oe.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),_e.createElement(Oe.default.List,{name:ye,rules:[{validator(Ht,it){const jt=it.some(Qe=>Qe[ve]===1),Kt=it.findIndex(Qe=>{var et;return((et=Qe[we])==null?void 0:et.length)<=0});return Kt!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${re[Kt]}\u9009\u9879\u7684\u5185\u5BB9`)):jt?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(Ht,{add:it,remove:jt})=>_e.createElement("div",{id:Array.isArray(Je)?Je.join("_"):`${Je}`},Ht.map((Kt,Qe)=>{var et=Kt,{key:Dt,name:tn}=et,Et=te(et,["key","name"]);const Vt=Ue===Dt,Be=()=>{st(Dt)},Gt=Qe<7&&Qe===Ht.length-1,bn=()=>it({[we]:"",[ve]:0}),Bt=()=>jt(tn);return _e.createElement(Oe.default.Item,z(y({},Et),{key:Dt,name:tn,className:Re.Z.choiceListWrap,rules:[{validator(At,tt){return tt!=null&&tt.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${re[Qe]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),_e.createElement(ie,{choiceTextKey:we,answerKey:ve,index:Qe,isEdit:Vt,setInputActive:Be,form:ot,choiceOptionsPath:Je,allowChangeMode:Ge,showAddIcon:Gt,addItem:bn,deleteItem:Bt}))}),Ht.length<8&&_e.createElement("div",{className:`${Re.Z.addBtn} mb30`,onClick:()=>it({[we]:"",[ve]:0})},"\u6DFB\u52A0\u9009\u9879"))),Le&&_e.createElement("div",{onClick:()=>rt(!0)},_e.createElement(Oe.default.Item,{name:Ee,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},_e.createElement(We.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ke}))))}},15460:function(Ot,Rt,ae){"use strict";ae.d(Rt,{u:function(){return Ge}});var b=ae(59301),se=ae(43418),Ce=ae(95237),Fe=ae(43604),Oe=ae(92832),Re=ae(6848),ue=ae(49770),Ze=ae(78241),We=ae(5112),_e=ae(5871),ke=ae(54657),je=ae(12893),Ie=ae(61485),le=ae(69092),E=ae(65986),a=ae(59301),x=Object.defineProperty,y=Object.defineProperties,z=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,ce=(ot,Le,Ue)=>Le in ot?x(ot,Le,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):ot[Le]=Ue,pe=(ot,Le)=>{for(var Ue in Le||(Le={}))re.call(Le,Ue)&&ce(ot,Ue,Le[Ue]);if(te)for(var Ue of te(Le))ie.call(Le,Ue)&&ce(ot,Ue,Le[Ue]);return ot},ge=(ot,Le)=>y(ot,z(Le)),ye=(ot,Le)=>{var Ue={};for(var st in ot)re.call(ot,st)&&Le.indexOf(st)<0&&(Ue[st]=ot[st]);if(ot!=null&&te)for(var st of te(ot))Le.indexOf(st)<0&&ie.call(ot,st)&&(Ue[st]=ot[st]);return Ue};const Ee=({value:ot,onChange:Le})=>{const Ue=Ke=>{se.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:le.Z.modal,onOk:()=>{const rt=[...ot];rt.splice(Ke,1),Le(rt)}})},st=()=>{const Ke=[...ot];Ke.push(""),Le(Ke)};return a.createElement(Ce.Z,{className:"ml20"},a.createElement(Fe.Z,{flex:1},ot==null?void 0:ot.map((Ke,rt)=>a.createElement(Ce.Z,{key:`${Ke}_${rt}`,className:"mb20"},a.createElement(Oe.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Ke,autoSize:{maxRows:3},maxLength:1e3,onBlur:Ht=>{const it=[...ot],jt=Ht.target.value.trim();it[rt]=jt,Le(it)}}),a.createElement(Re.Z,{title:"\u5220\u9664"},a.createElement(je.Z,{className:le.Z.deleteIcon,style:{marginLeft:15,visibility:rt>0?"visible":"hidden"},onClick:()=>Ue(rt)}))))),a.createElement(Fe.Z,null,a.createElement("div",{className:`${le.Z.addBtn}`,onClick:()=>{st()}},"\u65B0\u589E\u7B54\u6848")))},we=({value:ot,onChange:Le})=>{const Ue=Ke=>{se.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:le.Z.modal,onOk:()=>{const rt=[...ot];rt.splice(Ke,1),Le(rt)}})},st=()=>{const Ke=[...ot];Ke.push(""),Le(Ke)};return a.createElement(Ce.Z,{className:"ml20"},a.createElement(Fe.Z,{flex:1},ot==null?void 0:ot.map((Ke,rt)=>a.createElement(Ce.Z,{key:`${Ke}_${rt}`,align:"middle",className:"mb20"},a.createElement(E.Z,{value:Ke,style:{flex:1},onChange:Ht=>{const it=[...ot];it[rt]=Ht,Le(it)}}),a.createElement(Re.Z,{title:"\u5220\u9664"},a.createElement(je.Z,{className:le.Z.deleteIcon,style:{marginLeft:15,visibility:rt>0?"visible":"hidden"},onClick:()=>Ue(rt)}))))),a.createElement(Fe.Z,null,a.createElement("div",{className:`${le.Z.addBtn}`,onClick:()=>{st()}},"\u65B0\u589E\u7B54\u6848")))},ve=({value:ot=!0,onChange:Le})=>a.createElement(ue.Z,{checked:!ot,onChange:Ue=>{Le(!Ue)}}),Je="\u2581",Ge=({questionTitlePlaceholder:ot,form:Le,scoreByBlank:Ue=!1,answerKey:st})=>{const[Ke,rt]=(0,b.useState)(!1),Ht=(Et,Vt)=>{const Be=Vt.line;let Gt=0;for(let Bt=0;Bt<Be;Bt++)Gt+=Et.getLine(Bt).split(Je).length-1;const bn=Et.getLine(Be).substring(0,Vt.ch);return Gt+=bn.split(Je).length-1,Gt},it=(Et,Vt,Be,Gt)=>{const bn=Et.getRange(Vt.from,Vt.to);let Bt=0;if(Vt.text.forEach(At=>{Bt+=At.split(Je).length-1}),Vt.origin!=="setValue"){if(bn&&bn.indexOf(Je)!==-1){const At=bn.split(Je).length-1,tt=Ht(Et,Vt.from);if(console.log(`\u5220\u9664${At}\u4E2A\uFF0C \u524D\u9762\u6709${tt}\u4E2A\uFF0C\u65B0\u589E${Bt}\u4E2A`),At>1){const Ve=Array.from({length:At},(De,he)=>tt+he);Gt(Ve)}else Gt(tt)}else if(Bt>0){const At=Ht(Et,Vt.from);console.log(`\u65B0\u589E${Bt}\u4E2A\uFF0C\u4E4B\u524D\u6709${At}\u4E2A`),Be(Bt,At)}}},jt=()=>{const Et=Le.getFieldValue(st);Le.setFieldsValue({[st]:Et.map((Vt,Be)=>ge(pe({},Vt),{position:Be+1}))})},Kt=(0,b.useRef)(),Qe=(Et,Vt)=>{for(let Be=0;Be<Et;Be++)Kt.current({position:null,answer_text:[""],model:1},Vt+Be);jt()},et=(0,b.useRef)(),Dt=Et=>{et.current(Et),jt()},tn=Ze.default.useWatch(st,Le);return a.createElement("div",{className:le.Z.wrap},a.createElement("div",{className:le.Z.questionTitleEditorWrap},a.createElement(Ze.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},a.createElement(ke.h,{scrollId:"name",watch:!0,height:140,placeholder:ot,showNullButton:!0,onCMBeforeChange:(Et,Vt)=>{it(Et,Vt,Qe,Dt)}}))),a.createElement(Ze.default.List,{name:st,rules:[{validator(Et,Vt){if(!(Vt!=null&&Vt.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Be of Vt){const{answer_text:Gt}=Be||{};if(Gt!=null&&Gt.some(bn=>(bn==null?void 0:bn.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Et,{add:Vt,remove:Be},{errors:Gt})=>(Kt.current=Vt,et.current=Be,a.createElement(a.Fragment,null,a.createElement(Ze.default.Item,{label:a.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(Et!=null&&Et.length)&&a.createElement("span",{style:{color:"#E99237"}},"\uFF08\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879\uFF09")),required:!0,labelCol:{span:24}}),Et.map((bn,Bt)=>{var At=bn,{key:tt,name:Ve}=At,De=ye(At,["key","name"]),he,nt;return a.createElement("div",{style:{marginBottom:10},key:tt},a.createElement(Ce.Z,{className:"mb20",align:"middle",wrap:!1},a.createElement(Fe.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${le.Z.blankIndex}`},"\u586B\u7A7A\u9879",Bt+1),a.createElement(Ze.default.Item,ge(pe({},De),{name:[Ve,"model"],noStyle:!0}),a.createElement(We.ZP.Group,{onChange:()=>{const wt=Le.getFieldValue(st);Le.setFieldsValue({[st]:wt.map((Ae,be)=>ge(pe({},Ae),{answer_text:Ve===be?[""]:Ae.answer_text}))})}},a.createElement(We.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",a.createElement(Re.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6587\u672C\u7B54\u6848"},a.createElement(Ie.Z,null))),a.createElement(We.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",a.createElement(Re.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u7F16\u5199\u6570\u5B66\u516C\u5F0F\u4F5C\u4E3A\u7B54\u6848"},a.createElement(Ie.Z,null)))))),a.createElement(Ce.Z,{style:{marginLeft:20},align:"middle",wrap:!1},a.createElement(Fe.Z,{flex:1},a.createElement(Ce.Z,{align:"top",justify:"space-between",wrap:!1},a.createElement(Fe.Z,{flex:1},a.createElement(Ze.default.Item,ge(pe({},De),{name:[Ve,"answer_text"],noStyle:!0}),((nt=(he=Le.getFieldValue(st))==null?void 0:he[Ve])==null?void 0:nt.model)===1?a.createElement(Ee,null):a.createElement(we,null))),Ue&&a.createElement(Fe.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"}},a.createElement(Ze.default.Item,ge(pe({},De),{name:[Ve,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:le.Z.blankInputNumberWrapper}),a.createElement(_e.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),a.createElement(Ze.default.Item,ge(pe({},De),{name:[Ve,"position"],noStyle:!0}),a.createElement(Oe.default,{type:"hidden"})))))})))),a.createElement(Ce.Z,{align:"middle"},a.createElement(Ze.default.Item,{name:"downcase",valuePropName:"checked"},a.createElement(ue.Z,null)),a.createElement(Fe.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),a.createElement(Ce.Z,{align:"middle"},a.createElement(Ze.default.Item,{name:"no_space",valuePropName:"checked"},a.createElement(ue.Z,null)),a.createElement(Fe.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(tn==null?void 0:tn.length)>1&&a.createElement(Ce.Z,{align:"middle",className:(tn==null?void 0:tn.length)>1?"mb30":`${le.Z.hide}`},a.createElement(Ze.default.Item,{name:"is_ordered"},a.createElement(ve,null)),a.createElement(Fe.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),a.createElement("div",{onClick:()=>rt(!0)},a.createElement(Ze.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},a.createElement(ke.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ke}))))}},98815:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return te}});var b=ae(59301),se=ae(95237),Ce=ae(43604),Fe=ae(78241),Oe=ae(69092),Re=ae(54657),ue=ae(59301),Ze=Object.defineProperty,We=Object.defineProperties,_e=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,le=(re,ie,ce)=>ie in re?Ze(re,ie,{enumerable:!0,configurable:!0,writable:!0,value:ce}):re[ie]=ce,E=(re,ie)=>{for(var ce in ie||(ie={}))je.call(ie,ce)&&le(re,ce,ie[ce]);if(ke)for(var ce of ke(ie))Ie.call(ie,ce)&&le(re,ce,ie[ce]);return re},a=(re,ie)=>We(re,_e(ie)),x=(re,ie)=>{var ce={};for(var pe in re)je.call(re,pe)&&ie.indexOf(pe)<0&&(ce[pe]=re[pe]);if(re!=null&&ke)for(var pe of ke(re))ie.indexOf(pe)<0&&Ie.call(re,pe)&&(ce[pe]=re[pe]);return ce};const y={\u6B63\u786E:"T",\u9519\u8BEF:"F"},z=({value:re,onChange:ie,form:ce})=>{const pe=(re==null?void 0:re.is_answer)===1,ge=re==null?void 0:re.choice_text,ye=()=>{const Ee=ce.getFieldsValue().choices.map(we=>({choice_text:we.choice_text,is_answer:0}));ce.setFieldsValue({choices:Ee}),ie(a(E({},re),{is_answer:1}))};return ue.createElement(se.Z,{className:Oe.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},ue.createElement(Ce.Z,{onClick:ye,className:`${Oe.Z.choiceIndex} ${Oe.Z.judgementIndex} ${pe?Oe.Z.activeAnswer:""}`},y[ge]),ue.createElement(Ce.Z,{flex:1,className:`${Oe.Z.editorWrap} ml15`},ue.createElement("div",{className:`${Oe.Z.inputBorder} ${Oe.Z.placeholder} ${pe?Oe.Z.activeJudgementAnswer:""}`},ge)),ue.createElement(Ce.Z,{flex:"0 0 auto",className:"ml15"},ue.createElement("div",{onClick:ye,className:`${Oe.Z.setAnswerBtn} ${pe?Oe.Z.activeAnswer:""}`},pe?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},te=({questionTitlePlaceholder:re,choiceKey:ie,form:ce})=>{const[pe,ge]=(0,b.useState)(!1);return ue.createElement("div",{className:Oe.Z.wrap},ue.createElement("div",{className:Oe.Z.questionTitleEditorWrap},ue.createElement(Fe.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},ue.createElement(Re.h,{scrollId:"name",watch:!0,height:140,placeholder:re}))),ue.createElement(Fe.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},ue.createElement(Fe.default.List,{name:"choices",rules:[{validator(ye,Ee){return Ee.some(ve=>(ve==null?void 0:ve.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},ye=>ue.createElement("div",{id:"choices"},ye.map(Ee=>{var we=Ee,{key:ve,name:Je}=we,Ge=x(we,["key","name"]);return ue.createElement(Fe.default.Item,a(E({},Ge),{key:ve,name:Je,noStyle:!0}),ue.createElement(z,{form:ce}))})))),ue.createElement("div",{onClick:()=>ge(!0)},ue.createElement(Fe.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ue.createElement(Re.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:pe}))))}},54657:function(Ot,Rt,ae){"use strict";ae.d(Rt,{h:function(){return E},x:function(){return a}});var b=ae(89389),se=ae(69092),Ce=ae(7664),Fe=ae(59301),Oe=Object.defineProperty,Re=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,ke=(x,y,z)=>y in x?Oe(x,y,{enumerable:!0,configurable:!0,writable:!0,value:z}):x[y]=z,je=(x,y)=>{for(var z in y||(y={}))We.call(y,z)&&ke(x,z,y[z]);if(Ze)for(var z of Ze(y))_e.call(y,z)&&ke(x,z,y[z]);return x},Ie=(x,y)=>Re(x,ue(y)),le=(x,y)=>{var z={};for(var te in x)We.call(x,te)&&y.indexOf(te)<0&&(z[te]=x[te]);if(x!=null&&Ze)for(var te of Ze(x))y.indexOf(te)<0&&_e.call(x,te)&&(z[te]=x[te]);return z};const E=x=>{var y=x,{value:z,onChange:te,scrollId:re}=y,ie=le(y,["value","onChange","scrollId"]);return Fe.createElement("div",{id:re||""},Fe.createElement(b.Z,Ie(je({},ie),{defaultValue:z,onChange:(ce,pe)=>{pe!=null&&pe.length?te(ce,pe):te(ce)}})))},a=({value:x,onChange:y,placeholder:z,height:te=140,isEdit:re,miniToolbar:ie,watch:ce=!0})=>re?Fe.createElement(b.Z,{watch:ce,isFocus:!0,height:te||void 0,placeholder:z,defaultValue:x,onChange:y,miniToolbar:ie}):Fe.createElement("div",{style:{cursor:"pointer"}},x?Fe.createElement(Ce.Z,{className:se.Z.inputBorder,value:x}):Fe.createElement("div",{className:`${se.Z.inputBorder} ${se.Z.placeholder} inputBorderError`},z))},84635:function(Ot,Rt,ae){"use strict";ae.d(Rt,{W:function(){return we}});var b=ae(59301),se=ae(8591),Ce=ae(12563),Fe=ae(78241),Oe=ae(49770),Re=ae(95237),ue=ae(43604),Ze=ae(6848),We=ae(92832),_e=ae(5871),ke=ae(69092),je=ae(54657),Ie=ae(89389),le=ae(61485),E=Object.defineProperty,a=Object.defineProperties,x=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,re=(ve,Je,Ge)=>Je in ve?E(ve,Je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):ve[Je]=Ge,ie=(ve,Je)=>{for(var Ge in Je||(Je={}))z.call(Je,Ge)&&re(ve,Ge,Je[Ge]);if(y)for(var Ge of y(Je))te.call(Je,Ge)&&re(ve,Ge,Je[Ge]);return ve},ce=(ve,Je)=>a(ve,x(Je)),pe=(ve,Je)=>{var Ge={};for(var ot in ve)z.call(ve,ot)&&Je.indexOf(ot)<0&&(Ge[ot]=ve[ot]);if(ve!=null&&y)for(var ot of y(ve))Je.indexOf(ot)<0&&te.call(ve,ot)&&(Ge[ot]=ve[ot]);return Ge};const ge=ve=>{var Je=ve,{value:Ge,onChange:ot}=Je,Le=pe(Je,["value","onChange"]);const Ue=st=>{ot([st])};return b.createElement(Ie.Z,ce(ie({},Le),{defaultValue:Ge==null?void 0:Ge[0],onChange:Ue}))},ye=ve=>{if(!ve)return!1;if(/^s*$/.test(ve)||ve.trim()===""){se.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let Je=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return ve==="|"?(se.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Ee=({value:ve=[],onClose:Je})=>b.createElement(Ce.default,{closable:!0,onClose:Je,className:ke.Z.keywordTag},b.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},ve.join(" \u6216 "))),we=({questionTitlePlaceholder:ve,form:Je,showKeywords:Ge,isMustKeyWords:ot=Ge})=>{const[Le,Ue]=(0,b.useState)(!1),[st,Ke]=(0,b.useState)(""),rt=Fe.default.useWatch("use_keywords",Je),Ht=Fe.default.useWatch("question_score",Je);return b.createElement("div",{className:ke.Z.wrap},b.createElement("div",{className:ke.Z.questionTitleEditorWrap},b.createElement(Fe.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},b.createElement(je.h,{scrollId:"name",watch:!0,height:140,placeholder:ve}))),b.createElement(Fe.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},b.createElement(ge,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Ge&&!ot&&b.createElement(Fe.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},b.createElement(Oe.Z,{defaultChecked:!0})),Ge&&ot&&b.createElement(Re.Z,{align:"middle",className:"mb30"},b.createElement(Fe.default.Item,{name:"use_keywords",valuePropName:"checked"},b.createElement(Oe.Z,null)),b.createElement(ue.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),b.createElement(ue.Z,null,b.createElement(Ze.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},b.createElement(le.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(rt||!ot)&&b.createElement(Fe.default.List,{name:"keywords",rules:[{validator(it,jt){return ot?jt!=null&&jt.length?(jt==null?void 0:jt.reduce((Qe,et)=>Qe+et.score,0))>parseFloat(Ht)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(it,{add:jt,remove:Kt})=>b.createElement(b.Fragment,null,b.createElement("div",{className:`${ke.Z.title} mb10`},ot?"\u5173\u952E\u8BCD":b.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),b.createElement(Re.Z,{align:"middle",className:"font14 mb30"},b.createElement(ue.Z,{flex:1},b.createElement(We.default,{value:st,onChange:Qe=>{Ke(Qe.target.value)},maxLength:50,allowClear:!0,onPressEnter:Qe=>{var et,Dt,tn,Et;const Vt=`${(et=Qe.target)==null?void 0:et.value}`,Be=(tn=(Dt=Vt==null?void 0:Vt.split("|"))==null?void 0:Dt.filter(Bt=>!!Bt))==null?void 0:tn.map(Bt=>Bt==null?void 0:Bt.trim()),Gt=Je.getFieldValue("keywords"),bn=((Et=Gt==null?void 0:Gt.map(Bt=>Bt==null?void 0:Bt.keyword))==null?void 0:Et.flat())||[];for(const Bt of Be)if(bn.includes(Bt)){se.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}ye(Vt)&&(jt({keyword:Be,score:1}),Ke(""))},className:ke.Z.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),b.createElement(ue.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),it.map(Qe=>{var et=Qe,{key:Dt,name:tn}=et,Et=pe(et,["key","name"]);return b.createElement(Re.Z,{key:Dt,className:"mb20",style:{marginRight:148}},b.createElement(ue.Z,{flex:1},b.createElement(Re.Z,{align:"middle",justify:"space-between"},b.createElement(Fe.default.Item,ce(ie({},Et),{name:[tn,"keyword"]}),b.createElement(Ee,{onClose:()=>Kt(tn)})),ot&&b.createElement(Fe.default.Item,ce(ie({},Et),{name:[tn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:ke.Z.blankInputNumberWrapper}),b.createElement(_e.Z,{className:ke.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),b.createElement("div",{onClick:()=>Ue(!0)},b.createElement(Fe.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(je.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Le}))))}},77411:function(Ot,Rt,ae){"use strict";ae.d(Rt,{tc:function(){return La.t},uh:function(){return b.u},rL:function(){return na},u8:function(){return Ce.u},ZZ:function(){return se.Z},Wk:function(){return Fe.W}});var b=ae(82482),se=ae(98815),Ce=ae(15460),Fe=ae(84635),Oe=ae(59301),Re=ae(36381),ue=ae(78241),Ze=ae(95237),We=ae(43604),_e=ae(5871),ke=ae(6848),je=ae(38854),Ie=ae(69092),le=ae(12893),E=ae(54657),a=ae(43418),x=ae(92832),y=ae(49770),z=ae(59301),te=Object.defineProperty,re=Object.defineProperties,ie=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,ye=(nn,$t,mn)=>$t in nn?te(nn,$t,{enumerable:!0,configurable:!0,writable:!0,value:mn}):nn[$t]=mn,Ee=(nn,$t)=>{for(var mn in $t||($t={}))pe.call($t,mn)&&ye(nn,mn,$t[mn]);if(ce)for(var mn of ce($t))ge.call($t,mn)&&ye(nn,mn,$t[mn]);return nn},we=(nn,$t)=>re(nn,ie($t)),ve=(nn,$t)=>{var mn={};for(var Zn in nn)pe.call(nn,Zn)&&$t.indexOf(Zn)<0&&(mn[Zn]=nn[Zn]);if(nn!=null&&ce)for(var Zn of ce(nn))$t.indexOf(Zn)<0&&ge.call(nn,Zn)&&(mn[Zn]=nn[Zn]);return mn};const Je=({value:nn,onChange:$t})=>{const mn=Cn=>{a.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Ie.Z.modal,onOk:()=>{const Ha=[...nn];Ha.splice(Cn,1),$t(Ha)}})},Zn=()=>{const Cn=[...nn];Cn.push(""),$t(Cn)};return z.createElement(Ze.Z,{className:"ml20"},z.createElement(We.Z,{flex:1},nn==null?void 0:nn.map((Cn,Ha)=>z.createElement(Ze.Z,{key:`${Cn}_${Ha}`,align:"middle",className:"mb20"},z.createElement(x.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Cn,autoSize:{maxRows:3},maxLength:1e3,onBlur:$a=>{const aa=[...nn],vn=$a.target.value.trim();aa[Ha]=vn,$t(aa)}}),z.createElement(ke.Z,{title:"\u5220\u9664"},z.createElement(le.Z,{className:Ie.Z.deleteIcon,style:{marginLeft:15,visibility:Ha>0?"visible":"hidden"},onClick:()=>mn(Ha)}))))),z.createElement(We.Z,null,z.createElement("div",{className:`${Ie.Z.addBtn}`,onClick:()=>{Zn()}},"\u65B0\u589E\u7B54\u6848")))},Ge=({value:nn=!0,onChange:$t})=>z.createElement(y.Z,{checked:!nn,onChange:mn=>{$t(!mn)}}),ot="\u2581",Le=({questionTitlePlaceholder:nn,form:$t,name:mn,scoreByBlank:Zn=!1,answerKey:Cn,titleKey:Ha="name",analysisKey:$a="analysis",isOrdered:aa="is_ordered"})=>{var vn,ka;const[vt,cn]=(0,Oe.useState)(!1),Nn=(sn,En)=>{const gn=En.line;let Qn=0;for(let Hn=0;Hn<gn;Hn++)Qn+=sn.getLine(Hn).split(ot).length-1;const _n=sn.getLine(gn).substring(0,En.ch);return Qn+=_n.split(ot).length-1,Qn},kn=(sn,En,gn,Qn)=>{const _n=sn.getRange(En.from,En.to);let Hn=0;if(En.text.forEach(Pa=>{Hn+=Pa.split(ot).length-1}),En.origin!=="setValue"){if(_n&&_n.indexOf(ot)!==-1){const Pa=_n.split(ot).length-1,Qa=Nn(sn,En.from);if(console.log(`\u5220\u9664${Pa}\u4E2A\uFF0C \u524D\u9762\u6709${Qa}\u4E2A\uFF0C\u65B0\u589E${Hn}\u4E2A`),Pa>1){const Sn=Array.from({length:Pa},(ba,nr)=>Qa+nr);Qn(Sn)}else Qn(Qa)}else if(Hn>0){const Pa=Nn(sn,En.from);console.log(`\u65B0\u589E${Hn}\u4E2A\uFF0C\u4E4B\u524D\u6709${Pa}\u4E2A`),gn(Hn,Pa)}}},xn=()=>{const sn=$t.getFieldValue(["sub_item_banks",...Cn]);$t.setFieldValue(["sub_item_banks",...Cn],sn==null?void 0:sn.map((En,gn)=>we(Ee({},En),{position:gn+1})))},zn=(0,Oe.useRef)(),Jn=(sn,En)=>{for(let gn=0;gn<sn;gn++)zn.current({position:null,answer_text:[""]},En+gn);xn()},ht=(0,Oe.useRef)(),yt=sn=>{ht.current(sn),xn()},pt=(ka=(vn=$t.getFieldValue("sub_item_banks"))==null?void 0:vn[Cn==null?void 0:Cn[0]])==null?void 0:ka[Cn==null?void 0:Cn[1]];return(0,Oe.useEffect)(()=>{console.log("========",$t.getFieldsValue())},[$t]),z.createElement("div",{className:Ie.Z.wrap},z.createElement("div",{className:Ie.Z.questionTitleEditorWrap},z.createElement(ue.default.Item,{label:"\u9898\u5E72",name:Ha,labelCol:{span:24},rules:[{required:!0}]},z.createElement(E.h,{scrollId:"name",watch:!0,height:140,placeholder:nn,showNullButton:!0,onCMBeforeChange:(sn,En)=>{kn(sn,En,Jn,yt)}}))),z.createElement(ue.default.List,{name:Cn,rules:[{validator(sn,En){if((En==null?void 0:En.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const gn of En){const{answer_text:Qn}=gn||{};if(Qn!=null&&Qn.some(_n=>(_n==null?void 0:_n.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(sn,{add:En,remove:gn},{errors:Qn})=>(zn.current=En,ht.current=gn,z.createElement(z.Fragment,null,z.createElement(ue.default.Item,{label:z.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(sn!=null&&sn.length)&&z.createElement("span",{style:{color:"#E99237"}},"\uFF08\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879\uFF09")),required:!0,labelCol:{span:24}}),sn.map((_n,Hn)=>{var Pa=_n,{key:Qa,name:Sn}=Pa,ba=ve(Pa,["key","name"]);return z.createElement(Ze.Z,{align:"top",key:Qa},z.createElement(We.Z,{className:`${Ie.Z.blankIndex} pt5`},"\u586B\u7A7A\u9879",Hn+1),z.createElement(We.Z,{flex:1},z.createElement(Ze.Z,{align:"top",justify:"space-between"},z.createElement(We.Z,{flex:1},z.createElement(ue.default.Item,we(Ee({},ba),{name:[Sn,"answer_text"],noStyle:!0}),z.createElement(Je,null))),Zn&&z.createElement(We.Z,{flex:"224px"},z.createElement(ue.default.Item,we(Ee({},ba),{name:[Sn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Ie.Z.blankInputNumberWrapper}),z.createElement(_e.Z,{className:Ie.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),z.createElement(ue.default.Item,we(Ee({},ba),{name:[Sn,"position"],noStyle:!0}),z.createElement(x.default,{type:"hidden"}))))})))),z.createElement(Ze.Z,{align:"middle"},z.createElement(ue.default.Item,{name:[mn,"downcase"],valuePropName:"checked"},z.createElement(y.Z,null)),z.createElement(We.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),z.createElement(Ze.Z,{align:"middle"},z.createElement(ue.default.Item,{name:[mn,"no_space"],valuePropName:"checked"},z.createElement(y.Z,null)),z.createElement(We.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(pt==null?void 0:pt.length)>1&&z.createElement(Ze.Z,{align:"middle",className:(pt==null?void 0:pt.length)>1?"mb30":`${Ie.Z.hide}`},z.createElement(ue.default.Item,{name:aa},z.createElement(Ge,null)),z.createElement(We.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),z.createElement("div",{className:"mt30",onClick:()=>cn(!0)},z.createElement(ue.default.Item,{name:$a,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},z.createElement(E.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:vt}))))};var Ue=ae(59301),st=Object.defineProperty,Ke=Object.defineProperties,rt=Object.getOwnPropertyDescriptors,Ht=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,Kt=(nn,$t,mn)=>$t in nn?st(nn,$t,{enumerable:!0,configurable:!0,writable:!0,value:mn}):nn[$t]=mn,Qe=(nn,$t)=>{for(var mn in $t||($t={}))it.call($t,mn)&&Kt(nn,mn,$t[mn]);if(Ht)for(var mn of Ht($t))jt.call($t,mn)&&Kt(nn,mn,$t[mn]);return nn},et=(nn,$t)=>Ke(nn,rt($t)),Dt=(nn,$t)=>{var mn={};for(var Zn in nn)it.call(nn,Zn)&&$t.indexOf(Zn)<0&&(mn[Zn]=nn[Zn]);if(nn!=null&&Ht)for(var Zn of Ht(nn))$t.indexOf(Zn)<0&&jt.call(nn,Zn)&&(mn[Zn]=nn[Zn]);return mn};const tn={\u6B63\u786E:"T",\u9519\u8BEF:"F"},Et=({value:nn,onChange:$t,form:mn,choiceKey:Zn})=>{const Cn=(nn==null?void 0:nn.is_answer)===1,Ha=nn==null?void 0:nn.choice_text,$a=()=>{var aa;const vn=(aa=mn==null?void 0:mn.getFieldValue(["sub_item_banks",...Zn]))==null?void 0:aa.map(ka=>({choice_text:ka.choice_text,is_answer:0}));mn==null||mn.setFieldValue(["sub_item_banks",...Zn],vn),$t(et(Qe({},nn),{is_answer:1}))};return Ue.createElement(Ze.Z,{className:Ie.Z.choiceWrap,align:"middle",wrap:!1},Ue.createElement(We.Z,{onClick:$a,className:`${Ie.Z.choiceIndex} ${Ie.Z.judgementIndex} ${Cn?Ie.Z.activeAnswer:""}`},tn[Ha]),Ue.createElement(We.Z,{flex:1,className:`${Ie.Z.editorWrap} ml15`},Ue.createElement("div",{className:`${Ie.Z.inputBorder} ${Ie.Z.placeholder} ${Cn?Ie.Z.activeJudgementAnswer:""}`},Ha)),Ue.createElement(We.Z,{flex:"0 0 auto",className:"ml15"},Ue.createElement("div",{onClick:$a,className:`${Ie.Z.setAnswerBtn} ${Cn?Ie.Z.activeAnswer:""}`},Cn?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},Vt=({questionTitlePlaceholder:nn,choiceKey:$t="choices",form:mn,titleKey:Zn="name",analysisKey:Cn="analysis"})=>{const[Ha,$a]=(0,Oe.useState)(!1);return Ue.createElement("div",{className:Ie.Z.wrap},Ue.createElement("div",{className:Ie.Z.questionTitleEditorWrap},Ue.createElement(ue.default.Item,{label:"\u9898\u5E72",name:Zn,labelCol:{span:24},rules:[{required:!0}]},Ue.createElement(E.h,{scrollId:"name",watch:!0,height:140,placeholder:nn}))),Ue.createElement(ue.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},Ue.createElement(ue.default.List,{name:$t,rules:[{validator(aa,vn){return vn.some(vt=>(vt==null?void 0:vt.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},aa=>Ue.createElement("div",{id:"choices",style:{display:"flex",flexDirection:"column",gap:"20px"}},aa.map(vn=>{var ka=vn,{key:vt,name:cn}=ka,Nn=Dt(ka,["key","name"]);return Ue.createElement(ue.default.Item,et(Qe({},Nn),{key:vt,name:cn,noStyle:!0}),Ue.createElement(Et,{form:mn,choiceKey:$t}))})))),Ue.createElement("div",{className:"mt30",onClick:()=>$a(!0)},Ue.createElement(ue.default.Item,{name:Cn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Ue.createElement(E.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ha}))))};var Be=ae(8591),Gt=ae(12563),bn=ae(89389),Bt=ae(61485),At=Object.defineProperty,tt=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,wt=(nn,$t,mn)=>$t in nn?At(nn,$t,{enumerable:!0,configurable:!0,writable:!0,value:mn}):nn[$t]=mn,Ae=(nn,$t)=>{for(var mn in $t||($t={}))he.call($t,mn)&&wt(nn,mn,$t[mn]);if(De)for(var mn of De($t))nt.call($t,mn)&&wt(nn,mn,$t[mn]);return nn},be=(nn,$t)=>tt(nn,Ve($t)),gt=(nn,$t)=>{var mn={};for(var Zn in nn)he.call(nn,Zn)&&$t.indexOf(Zn)<0&&(mn[Zn]=nn[Zn]);if(nn!=null&&De)for(var Zn of De(nn))$t.indexOf(Zn)<0&&nt.call(nn,Zn)&&(mn[Zn]=nn[Zn]);return mn};const Xe=nn=>{var $t=nn,{value:mn,onChange:Zn}=$t,Cn=gt($t,["value","onChange"]);const Ha=$a=>{Zn([$a])};return Oe.createElement(bn.Z,be(Ae({},Cn),{defaultValue:mn==null?void 0:mn[0],onChange:Ha}))},Te=nn=>{if(!nn)return!1;let $t=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return nn==="|"?(Be.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},St=({value:nn=[],onClose:$t})=>Oe.createElement(Gt.default,{closable:!0,onClose:$t,className:Ie.Z.keywordTag},Oe.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},nn.join(" \u6216 "))),ln=({questionTitlePlaceholder:nn,form:$t,showKeywords:mn,isMustKeyWords:Zn=mn,titleKey:Cn="name",analysisKey:Ha="analysis",answerTexts:$a="answer_texts",keywords:aa="keywords",useKeywords:vn="use_keywords",indexs:ka})=>{const[vt,cn]=(0,Oe.useState)(!1),[Nn,kn]=(0,Oe.useState)(""),[xn,zn]=(0,Oe.useState)(!1),Jn=ue.default.useWatch("question_score",$t);return Oe.createElement("div",{className:Ie.Z.wrap},Oe.createElement("div",{className:Ie.Z.questionTitleEditorWrap},Oe.createElement(ue.default.Item,{label:"\u9898\u5E72",name:Cn,labelCol:{span:24},rules:[{required:!0}]},Oe.createElement(E.h,{scrollId:"name",watch:!0,height:140,placeholder:nn}))),Oe.createElement(ue.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:$a,labelCol:{span:24}},Oe.createElement(Xe,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),mn&&!Zn&&Oe.createElement(ue.default.Item,{hidden:!0,name:vn,valuePropName:"checked"},Oe.createElement(y.Z,{defaultChecked:!0})),mn&&Zn&&Oe.createElement(Ze.Z,{align:"middle",className:"mb30"},Oe.createElement(ue.default.Item,{name:vn,valuePropName:"checked"},Oe.createElement(y.Z,{onChange:()=>{var ht,yt,pt,sn,En,gn;console.log($t.getFieldsValue()),zn((pt=(yt=(ht=$t.getFieldsValue())==null?void 0:ht.sub_item_banks)==null?void 0:yt[ka])==null?void 0:pt.use_keywords),console.log((gn=(En=(sn=$t.getFieldsValue())==null?void 0:sn.sub_item_banks)==null?void 0:En[ka])==null?void 0:gn.use_keywords),console.log(xn)}})),Oe.createElement(We.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),Oe.createElement(We.Z,null,Oe.createElement(ke.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},Oe.createElement(Bt.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(xn||!Zn)&&Oe.createElement(ue.default.List,{name:aa,rules:[{validator(ht,yt){return Zn?yt!=null&&yt.length?(yt==null?void 0:yt.reduce((sn,En)=>sn+En.score,0))>parseFloat(Jn)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(ht,{add:yt,remove:pt})=>Oe.createElement(Oe.Fragment,null,Oe.createElement("div",{className:`${Ie.Z.title} mb10`},Zn?"\u5173\u952E\u8BCD":Oe.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),Oe.createElement(Ze.Z,{align:"middle",className:"font14 mb30"},Oe.createElement(We.Z,{flex:1},Oe.createElement(x.default,{value:Nn,onChange:sn=>{kn(sn.target.value)},maxLength:50,allowClear:!0,onPressEnter:sn=>{var En,gn,Qn,_n;const Hn=`${(En=sn.target)==null?void 0:En.value}`,Pa=(Qn=(gn=Hn==null?void 0:Hn.split("|"))==null?void 0:gn.filter(ba=>!!ba))==null?void 0:Qn.map(ba=>ba==null?void 0:ba.trim()),Qa=$t.getFieldValue(["sub_item_banks",...aa]),Sn=((_n=Qa==null?void 0:Qa.map(ba=>ba==null?void 0:ba.keyword))==null?void 0:_n.flat())||[];for(const ba of Pa)if(Sn.includes(ba)){Be.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Te(Hn)&&(yt({keyword:Pa,score:1}),kn(""))},className:Ie.Z.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),Oe.createElement(We.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),ht.map(sn=>{var En=sn,{key:gn,name:Qn}=En,_n=gt(En,["key","name"]);return Oe.createElement(Ze.Z,{key:gn,className:"mb20",style:{marginRight:148}},Oe.createElement(We.Z,{flex:1},Oe.createElement(Ze.Z,{align:"middle",justify:"space-between"},Oe.createElement(ue.default.Item,be(Ae({},_n),{name:[Qn,"keyword"]}),Oe.createElement(St,{onClose:()=>pt(Qn)})),Zn&&Oe.createElement(ue.default.Item,be(Ae({},_n),{name:[Qn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Ie.Z.blankInputNumberWrapper}),Oe.createElement(_e.Z,{className:Ie.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),Oe.createElement("div",{onClick:()=>cn(!0)},Oe.createElement(ue.default.Item,{name:Ha,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Oe.createElement(E.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:vt}))))};var Lt=ae(59301),Jt=Object.defineProperty,Ut=Object.defineProperties,qt=Object.getOwnPropertyDescriptors,bt=Object.getOwnPropertySymbols,Yt=Object.prototype.hasOwnProperty,Fn=Object.prototype.propertyIsEnumerable,kt=(nn,$t,mn)=>$t in nn?Jt(nn,$t,{enumerable:!0,configurable:!0,writable:!0,value:mn}):nn[$t]=mn,Ft=(nn,$t)=>{for(var mn in $t||($t={}))Yt.call($t,mn)&&kt(nn,mn,$t[mn]);if(bt)for(var mn of bt($t))Fn.call($t,mn)&&kt(nn,mn,$t[mn]);return nn},In=(nn,$t)=>Ut(nn,qt($t)),jn=(nn,$t)=>{var mn={};for(var Zn in nn)Yt.call(nn,Zn)&&$t.indexOf(Zn)<0&&(mn[Zn]=nn[Zn]);if(nn!=null&&bt)for(var Zn of bt(nn))$t.indexOf(Zn)<0&&Fn.call(nn,Zn)&&(mn[Zn]=nn[Zn]);return mn};const{Panel:Gn}=Re.default,na=({questionTitlePlaceholder:nn,choiceKey:$t,form:mn,withScore:Zn})=>{const[Cn,Ha]=(0,Oe.useState)([]),$a=aa=>{Ha(aa)};return Lt.createElement("div",{className:Ie.Z.wrap},Lt.createElement("div",{className:Ie.Z.questionTitleEditorWrap},Lt.createElement(ue.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Lt.createElement(E.h,{scrollId:"name",watch:!0,height:140,placeholder:nn}))),Lt.createElement(ue.default.Item,{label:"\u5C0F\u9898",required:!0,labelCol:{span:24}}),Lt.createElement(ue.default.List,{name:"sub_item_banks",rules:[{validator(aa,vn){return vn?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(aa,{add:vn,remove:ka,move:vt})=>{const cn=mn.getFieldValue("sub_item_banks");return Lt.createElement(Lt.Fragment,null,Lt.createElement(Re.default,{className:aa.length>0?Ie.Z.collapseWrapper:"",bordered:!1,activeKey:Cn,onChange:$a,expandIcon:({isActive:Nn})=>Lt.createElement("i",{className:`iconfont icon-weizhankai ${Nn?Ie.Z.open:Ie.Z.close}`,style:{fontSize:14,transition:"all .2s"}})},aa.map((Nn,kn)=>{var xn=Nn,{key:zn,name:Jn}=xn,ht=jn(xn,["key","name"]),yt,pt,sn,En,gn,Qn,_n,Hn,Pa,Qa;return Lt.createElement(Gn,{className:Ie.Z.panel,forceRender:!0,header:Lt.createElement("div",{className:Ie.Z.panelHeader},"\u7B2C",kn+1,"\u5C0F\u9898",Lt.createElement("span",null,"\uFF08",((yt=cn==null?void 0:cn[Jn])==null?void 0:yt.item_type)=="SINGLE"?"\u5355\u9009\u9898":((pt=cn==null?void 0:cn[Jn])==null?void 0:pt.item_type)=="MULTIPLE"?"\u591A\u9009\u9898":((sn=cn==null?void 0:cn[Jn])==null?void 0:sn.item_type)=="COMPLETION"?"\u586B\u7A7A\u9898":((En=cn==null?void 0:cn[Jn])==null?void 0:En.item_type)=="JUDGMENT"?"\u5224\u65AD\u9898":"\u7B80\u7B54\u9898","\uFF09")),key:Jn,extra:Lt.createElement(Ze.Z,{align:"middle",onClick:Sn=>Sn.stopPropagation()},Zn&&Lt.createElement(We.Z,null,Lt.createElement(ue.default.Item,In(Ft({},ht),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[Jn,"question_score"],className:Ie.Z.blankInputNumberWrapper}),Lt.createElement(_e.Z,{className:Ie.Z.blankInput,placeholder:"\u8BF7\u8F93\u5165\u5F53\u524D\u5C0F\u9898\u5206\u6570",min:.1,precision:1,max:100,style:{width:150}}))),Lt.createElement(We.Z,null,Lt.createElement(Ze.Z,{align:"middle",className:"pl40",justify:"end"},kn!==0&&Lt.createElement("div",{onClick:()=>{var Sn;vt(kn,kn-1);const ba=(Sn=mn.getFieldValue("sub_item_banks"))==null?void 0:Sn.map((nr,gr)=>(aa.map(($n,an)=>{gr===an&&(nr.q_position=Number($n.name)+1)}),nr));mn.setFieldValue("sub_item_banks",ba)}},Lt.createElement(ke.Z,{title:"\u4E0A\u79FB"},Lt.createElement("i",{className:"iconfont icon-shangyi3 c-grey-999 primary-hover"}))),kn<aa.length-1&&Lt.createElement("div",{onClick:()=>{var Sn;vt(kn,kn+1);const ba=(Sn=mn.getFieldValue("sub_item_banks"))==null?void 0:Sn.map((nr,gr)=>(aa.map(($n,an)=>{gr===an&&(nr.q_position=Number($n.name)+1)}),nr));mn.setFieldValue("sub_item_banks",ba)},className:kn===0?"":"ml15"},Lt.createElement(ke.Z,{title:"\u4E0B\u79FB"},Lt.createElement("i",{className:"iconfont icon-xiayi3 c-grey-999 primary-hover"}))))),Lt.createElement(We.Z,null,Lt.createElement(ke.Z,{title:"\u5220\u9664"},Lt.createElement(le.Z,{className:`${Ie.Z.deleteIcon} ml15`,onClick:()=>ka(Jn)}))))},Lt.createElement(ue.default.Item,In(Ft({},ht),{name:Jn}),(((gn=cn==null?void 0:cn[Jn])==null?void 0:gn.item_type)=="SINGLE"||((Qn=cn==null?void 0:cn[Jn])==null?void 0:Qn.item_type)=="MULTIPLE")&&Lt.createElement(b.u,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((_n=cn==null?void 0:cn[Jn])==null?void 0:_n.item_type)=="MULTIPLE",form:mn,choiceKey:[Jn,"choices"],titleKey:[Jn,"name"],analysisKey:[Jn,"analysis"],choiceOptionsPath:["sub_item_banks",Jn,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((Hn=cn==null?void 0:cn[Jn])==null?void 0:Hn.item_type)=="COMPLETION"&&Lt.createElement(Le,{form:mn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:!1,name:Jn,titleKey:[Jn,"name"],analysisKey:[Jn,"analysis"],isOrdered:[Jn,"is_ordered"],answerKey:[Jn,"standard_answers"]}),((Pa=cn==null?void 0:cn[Jn])==null?void 0:Pa.item_type)=="JUDGMENT"&&Lt.createElement(Vt,{form:mn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[Jn,"name"],analysisKey:[Jn,"analysis"],choiceKey:[Jn,"choices"]}),((Qa=cn==null?void 0:cn[Jn])==null?void 0:Qa.item_type)=="SUBJECTIVE"&&Lt.createElement(ln,{showKeywords:!0,isMustKeyWords:!1,form:mn,titleKey:[Jn,"name"],analysisKey:[Jn,"analysis"],answerTexts:[Jn,"answer_texts"],useKeywords:[Jn,"use_keywords"],keywords:[Jn,"keywords"],indexs:Jn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})),aa.length<20&&Lt.createElement(je.Z,{menu:{items:[{label:Lt.createElement("div",{onClick:()=>{vn({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"SINGLE"}),Ha([aa==null?void 0:aa.length,...Cn])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:Lt.createElement("div",{onClick:()=>{vn({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"MULTIPLE"}),Ha([aa==null?void 0:aa.length,...Cn])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:Lt.createElement("div",{onClick:()=>{vn({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",item_type:"JUDGMENT"}),Ha([aa==null?void 0:aa.length,...Cn])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:Lt.createElement("div",{onClick:()=>{vn({name:"",analysis:"",is_ordered:!0,standard_answers:[],item_type:"COMPLETION",downcase:!0,no_space:!0}),Ha([aa==null?void 0:aa.length,...Cn])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:Lt.createElement("div",{onClick:()=>{vn({name:"",answer_texts:[],keywords:[],use_keywords:!0,analysis:"",item_type:"SUBJECTIVE"}),Ha([aa==null?void 0:aa.length,...Cn])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(Nn=>Nn.show).map(Nn=>({label:Nn.label,key:Nn.key}))}},Lt.createElement("div",{className:`${Ie.Z.addBtn}`},"\u6DFB\u52A0\u5C0F\u9898")))}))};var La=ae(51110)},29920:function(Ot,Rt,ae){"use strict";ae.d(Rt,{C:function(){return Le}});var b=ae(59301),se={recalculation:"recalculation____i9AE",tips:"tips___GoMu8",filter:"filter___Vx7VO",input:"input___OEMMv",operating:"operating___TS9iA",operatingItem:"operatingItem___AT84q"},Ce=ae(92310),Fe=ae.n(Ce),Oe=ae(24905),Re=ae(95237),ue=ae(8591),Ze=ae(6848),We=ae(3113),_e=ae(43418),ke=ae(1710),je=ae(5871),Ie=ae(78241),le=ae(71418),E=ae(49661),a=ae(82093),x=ae(34055),y=ae(77817),z=ae(89831),te=Object.defineProperty,re=Object.defineProperties,ie=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,ye=(Ue,st,Ke)=>st in Ue?te(Ue,st,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Ue[st]=Ke,Ee=(Ue,st)=>{for(var Ke in st||(st={}))pe.call(st,Ke)&&ye(Ue,Ke,st[Ke]);if(ce)for(var Ke of ce(st))ge.call(st,Ke)&&ye(Ue,Ke,st[Ke]);return Ue},we=(Ue,st)=>re(Ue,ie(st)),ve=(Ue,st,Ke)=>new Promise((rt,Ht)=>{var it=Qe=>{try{Kt(Ke.next(Qe))}catch(et){Ht(et)}},jt=Qe=>{try{Kt(Ke.throw(Qe))}catch(et){Ht(et)}},Kt=Qe=>Qe.done?rt(Qe.value):Promise.resolve(Qe.value).then(it,jt);Kt((Ke=Ke.apply(Ue,st)).next())});const Je=Oe.default.Group,Ge=({className:Ue,title:st,items:Ke=[],value:rt,onChange:Ht})=>{const it=(Ke==null?void 0:Ke.length)===(rt==null?void 0:rt.length),jt=(rt==null?void 0:rt.length)>0&&(rt==null?void 0:rt.length)<(Ke==null?void 0:Ke.length),Kt=Qe=>{const et=Ke.map(Dt=>Dt.id);Ht(Qe.target.checked?et:[])};return b.createElement(Re.Z,{align:"middle",className:Ue},!!st&&b.createElement("div",{className:"mr20",style:{color:"#5F6368"}},st),b.createElement(Oe.default,{indeterminate:jt,onChange:Kt,checked:it},"\u5168\u90E8"),b.createElement(Je,{value:rt,onChange:Ht},Ke.map(Qe=>b.createElement(Oe.default,{className:"ml30 c-black",key:Qe.id,value:Qe.id},Qe.name,b.createElement("span",null,`(${Qe.count})`)))))};var Le=({className:Ue,style:st,dataSource:Ke})=>{var rt,Ht,it,jt,Kt,Qe,et;const[Dt,tn]=(0,b.useState)({}),[Et,Vt]=(0,b.useState)(!0),[Be,Gt]=(0,b.useState)(!1),[bn,Bt]=(0,b.useState)(!1),[At,tt]=(0,b.useState)(null),[Ve,De]=(0,b.useState)(0),[he,nt]=(0,b.useState)({}),[wt,Ae]=(0,b.useState)(!0),[be,gt]=(0,b.useState)(0),[Xe,Te]=(0,b.useState)(0),[St,ln]=(0,b.useState)(!1),Lt=(0,b.useRef)(null),[Jt,Ut]=(0,b.useState)(!1),[qt,bt]=(0,b.useState)(!0),[Yt,Fn]=(0,b.useState)([]),kt={page:1,per_page:5,keyword:"",review:[],question_status:[],success_status:[],sort_by:null,direction:null},[Ft,In]=(0,b.useState)(Ee({},kt));(0,b.useEffect)(()=>{Ke!=null&&Ke.question_id&&tn(Ke)},[Ke==null?void 0:Ke.question_id]),(0,b.useEffect)(()=>{var vn;if(((vn=Dt==null?void 0:Dt.exercise_question_resubmit)==null?void 0:vn.status)==="running"){const ka=setInterval(()=>{na()},3e3);return()=>clearInterval(ka)}},[(rt=Dt==null?void 0:Dt.exercise_question_resubmit)==null?void 0:rt.status]),(0,b.useEffect)(()=>{var vn;bn&&(bn===1&&(Ft.question_status=La.map(ka=>ka.value),Ft.review=nn.map(ka=>ka.value)),bn===2&&(Ft.exercise_question_resubmit_id=(vn=Dt==null?void 0:Dt.exercise_question_resubmit)==null?void 0:vn.id,At===1&&(Ft.success_status=[1]),At===2&&(Ft.success_status=[0])),In(Ee({},Ft)),jn(Ft),Te(Dt!=null&&Dt.is_mirror?3:10),gt(Dt!=null&&Dt.is_mirror?1:5))},[bn]),(0,b.useEffect)(()=>{Jt&&Gn()},[Jt]);const jn=vn=>ve(void 0,null,function*(){Vt(!0);const ka=yield(0,a.ZP)(`/api/exercise_questions/${Dt==null?void 0:Dt.question_id}/resubmit_student_list.json`,{method:"get",params:vn});(ka==null?void 0:ka.status)==0&&(nt(ka||[]),De(ka==null?void 0:ka.count)),Vt(!1)}),Gn=()=>ve(void 0,null,function*(){bt(!0);const vn=yield(0,a.ZP)(`/api/exercise_questions/${Dt==null?void 0:Dt.question_id}/resubmit_history.json`,{method:"get"});(vn==null?void 0:vn.status)==0&&Fn((vn==null?void 0:vn.data)||[]),bt(!1)}),na=()=>ve(void 0,null,function*(){const vn=yield(0,a.ZP)(`/api/exercise_questions/${Dt==null?void 0:Dt.question_id}/resubmit_status.json`,{method:"get"});(vn==null?void 0:vn.status)==0&&tn(we(Ee({},Dt),{show_resubmit_history:!0,exercise_question_resubmit:(vn==null?void 0:vn.data)||{}}))}),La=[{label:"\u672A\u8BC4\u6D4B",value:2,color:"#9096A3"},{label:"\u672A\u901A\u5173",value:0,color:"#E30000"},{label:"\u5DF2\u901A\u5173",value:1,color:"#00B187"}],nn=[{label:"\u672A\u8BC4\u9605",value:0,color:"#9096A3"},{label:"\u8BC4\u9605\u4E2D",value:2,color:"#FF9D18"},{label:"\u5DF2\u8BC4\u9605",value:1,color:"#3061D0"}],$t=[{label:"\u6210\u529F",value:1,color:"#00B187"},{label:"\u5931\u8D25",value:0,color:"#E30000"}],mn=[{title:"\u5E8F\u53F7",dataIndex:"key",render:(vn,ka,vt)=>b.createElement("span",{className:"c-black"},vt+1+(Ft.page-1)*Ft.per_page)},{title:"\u59D3\u540D",dataIndex:"user_name",render:vn=>b.createElement("span",{className:"c-black"},vn)},{title:"\u5B66\u53F7",dataIndex:"student_id",sorter:!0,render:vn=>b.createElement("span",{className:"c-grey-666"},vn||"--")},{title:"\u5206\u73ED",dataIndex:"group_name",render:vn=>b.createElement("span",{className:"c-black"},vn)},{title:"\u9898\u76EE\u72B6\u6001",dataIndex:"question_status",render:vn=>{const{label:ka,color:vt}=La.find(cn=>cn.value===vn)||{};return b.createElement("span",{style:{color:vt}},ka)}},{title:"\u9898\u76EE\u5F97\u5206",dataIndex:"question_score",sorter:!0,render:vn=>b.createElement("span",{className:"c-black"},vn)},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",sorter:!0,render:vn=>b.createElement("span",{className:"c-black"},vn)},{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"review",render:vn=>{const{label:ka,color:vt}=nn.find(cn=>cn.value===vn)||{};return b.createElement("span",{style:{color:vt}},ka)}},bn===2&&{title:"\u91CD\u65B0\u8BC4\u6D4B\u7ED3\u679C",dataIndex:"success_status",render:vn=>{const{label:ka,color:vt}=$t.find(cn=>cn.value===vn)||{};return b.createElement("span",{style:{color:vt}},ka)}}].filter(Boolean),Zn=(vn,ka,vt)=>{Ft.page=vn==null?void 0:vn.current,Ft.per_page=vn==null?void 0:vn.pageSize,vt!=null&&vt.order?(Ft.sort_by=vt==null?void 0:vt.field,Ft.direction=(vt==null?void 0:vt.order)==="ascend"?"asc":"desc"):(Ft.sort_by=null,Ft.direction=null),In(Ee({},Ft)),jn(Ft)},Cn=()=>{if(!be){ue.ZP.warning("\u8BF7\u8F93\u5165\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u5E76\u53D1\u4EBA\u6570");return}ln(!0)},Ha=()=>ve(void 0,null,function*(){var vn,ka;if((vn=Lt.current)!=null&&vn.onVerify())return;Gt(!0);const vt=yield(0,a.ZP)(`/api/exercise_questions/${Dt==null?void 0:Dt.question_id}/resubmit.json`,{method:"post",body:{keyword:Ft.keyword,question_status:Ft.question_status,review:Ft.review_status,success_status:Ft.success_status,use_max_score:wt,permits:be,exercise_question_resubmit_id:bn===1?null:(ka=Dt==null?void 0:Dt.exercise_question_resubmit)==null?void 0:ka.id}});(vt==null?void 0:vt.status)==0&&(yield na(),ue.ZP.success("\u64CD\u4F5C\u6210\u529F"),ln(!1),Bt(!1)),Gt(!1)}),$a=(vn,ka)=>{Ft.page=1,Ft[ka]=vn,In(Ee({},Ft)),jn(Ft)},aa=["","\u5F53\u524D\u9898\u76EE\u7684\u5B9E\u9A8C\u8D44\u6E90\u4E3A\u4E13\u6709\u4E91\uFF0C\u4E0D\u652F\u6301\u91CD\u65B0\u8BC4\u6D4B~","\u8BE5\u529F\u80FD\u4EC5\u8BFE\u5802\u7BA1\u7406\u5458\u548C\u8003\u8BD5\u7684\u521B\u5EFA\u8005\u53EF\u4EE5\u64CD\u4F5C~"];return b.createElement(b.Fragment,null,b.createElement("div",{className:Fe()(se.recalculation,Ue),style:st},b.createElement(Ze.Z,{title:aa[(Dt==null?void 0:Dt.disable_resubmit_reason)||0]},b.createElement(We.ZP,{disabled:(Dt==null?void 0:Dt.disable_resubmit)||((Ht=Dt==null?void 0:Dt.exercise_question_resubmit)==null?void 0:Ht.status)==="running",onClick:()=>Bt(1),icon:b.createElement("i",{className:"iconfont icon-zhongxinpingce font14"}),type:"primary",ghost:!0},"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206")),(Dt==null?void 0:Dt.show_resubmit_history)&&b.createElement(b.Fragment,null,((it=Dt==null?void 0:Dt.exercise_question_resubmit)==null?void 0:it.status)==="running"?b.createElement("div",{className:"c-grey-666"},"\u91CD\u65B0\u8BC4\u6D4B\u4E2D\uFF0C\u5F53\u524D\u8FDB\u5EA6",b.createElement("span",{className:"c-light-primary ml3"},(jt=Dt==null?void 0:Dt.exercise_question_resubmit)==null?void 0:jt.rate)):b.createElement("div",{className:"c-grey-666"},"\u91CD\u65B0\u8BC4\u6D4B\u6210\u529F",b.createElement("span",{onClick:()=>{Bt(2),tt(1)},className:"current",style:{color:"#3061D0",textDecoration:"underline",margin:"0 3px"}},(Kt=Dt==null?void 0:Dt.exercise_question_resubmit)==null?void 0:Kt.success_student_count),"\u4EBA\uFF0C\u5931\u8D25",b.createElement("span",{onClick:()=>{Bt(2),tt(2)},className:"current",style:{color:"#E30000",textDecoration:"underline",margin:"0 3px"}},(Qe=Dt==null?void 0:Dt.exercise_question_resubmit)==null?void 0:Qe.fail_count),"\u4EBA"),b.createElement(Ze.Z,{title:"\u64CD\u4F5C\u8BB0\u5F55"},b.createElement("i",{onClick:()=>Ut(!0),className:"iconfont icon-chakanshenqingjilu c-light-primary current font14"})))),b.createElement(_e.default,{centered:!0,open:!!bn,title:`\u91CD\u65B0\u8BC4\u6D4B${bn===1?"\u7B97\u5206":"\u7ED3\u679C"}`,width:870,okText:"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206",onCancel:()=>Bt(!1),onOk:Cn,afterClose:()=>{Ae(!0),tt(null),In(Ee({},kt))}},b.createElement("div",{className:se.filter},bn===1&&b.createElement(b.Fragment,null,b.createElement("div",{className:se.tips},b.createElement("div",{className:"mb5",style:{color:"#FF9D18"}},b.createElement("i",{className:"iconfont icon-tishi9 mr10 font14"}),"\u6E29\u99A8\u63D0\u793A"),b.createElement("div",null,"1.\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206\u6D41\u7A0B\uFF1A \u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6\u5B66\u751F\u5728\u8003\u8BD5\u9875\u9762\u4FDD\u5B58\u7684\u6700\u65B0\u4EE3\u7801\uFF0C\u5E76\u8FDB\u884C\u91CD\u65B0\u8BC4\u6D4B\uFF0C\u4ECE\u800C\u7CBE\u51C6\u8BA1\u7B97\u51FA\u5B66\u751F\u7684\u6700\u7EC8\u5F97\u5206\uFF1B"),b.createElement("div",{style:{margin:"2px 0"}},"2.\u91CD\u65B0\u8BC4\u6D4B\u6761\u4EF6\uFF1A \u8003\u8BD5\u7ED3\u675F\u540E\uFF0C\u4EC5\u5BF9\u5DF2\u63D0\u4EA4\u8BD5\u5377\u4E14\u5DF2\u4F5C\u7B54\u8BE5\u9898\u76EE\u7684\u5B66\u751F\u8FDB\u884C\u91CD\u65B0\u8BC4\u6D4B\u4E0E\u7B97\u5206\uFF1B"),b.createElement("div",null,"3.\u91CD\u65B0\u8BC4\u6D4B\u65F6\uFF0C\u8BF7\u786E\u4FDD\u5B9E\u9A8C\u73AF\u5883\u80FD\u6B63\u5E38\u542F\u52A8\u5E76\u53EF\u8FD0\u884C\u8BC4\u6D4B\u3002")),b.createElement(Ge,{className:"mt10",title:"\u9898\u76EE\u72B6\u6001",items:(he==null?void 0:he.question_status)||[],value:Ft.question_status,onChange:vn=>$a(vn,"question_status")}),b.createElement(Ge,{className:"mt10",title:"\u8BC4\u9605\u72B6\u6001",items:(he==null?void 0:he.review_status)||[],value:Ft.review,onChange:vn=>$a(vn,"review")})),bn===2&&b.createElement(b.Fragment,null,b.createElement(Ge,{className:"mt10",title:"\u91CD\u65B0\u8BC4\u6D4B\u7ED3\u679C",items:(he==null?void 0:he.success_status)||[],value:Ft.success_status,onChange:vn=>$a(vn,"success_status")})),b.createElement(z.t7,{className:se.input,style:{bottom:bn===1?10:-5},value:Ft.keyword,onChange:vn=>$a(vn,"keyword"),placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22"})),b.createElement(ke.default,{className:"mt20",columns:mn,scroll:((et=he==null?void 0:he.data)==null?void 0:et.length)>7?{y:300}:{},dataSource:(he==null?void 0:he.data)||[],loading:Et,onChange:Zn,pagination:{total:Ve,pageSize:Ft.per_page,current:Ft.page,hideOnSinglePage:!Ve,showSizeChanger:!0,pageSizeOptions:["5","10","20","50","100"],showQuickJumper:!0,size:"default",showTotal:E.rU}}),b.createElement(Re.Z,{justify:"space-between",align:"middle",className:"mt10"},b.createElement(Oe.default,{className:"c-black",checked:wt,onChange:vn=>Ae(vn.target.checked)},"\u91CD\u65B0\u8BC4\u6D4B\u540E\u7684\u5206\u6570\u5927\u4E8E\u539F\u6765\u7684\u5206\u6570\u624D\u66F4\u65B0\u6210\u7EE9"),(0,x.Ny)()&&b.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u5E76\u53D1\u4EBA\u6570",b.createElement(je.Z,{className:"ml10 mr10",value:be,max:Xe,min:1,precision:0,onChange:vn=>gt(vn)}),"\u4EBA",b.createElement(Ze.Z,{overlayStyle:{maxWidth:450},title:"\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u7684\u6700\u5927\u5E76\u53D1\u4EBA\u6570\u4E3A20\u4EBA\uFF08\u81EA\u5B9A\u4E49\u955C\u50CF\u7684\u6700\u5927\u5E76\u53D1\u4EBA\u6570\u4E3A3\u4EBA\uFF09\u3002"},b.createElement("i",{style:{color:"#9096A3"},className:"iconfont icon-tishi5 font13 ml10"}))))),b.createElement(_e.default,{centered:!0,title:"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206",open:St,width:494,zIndex:1001,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:Be,destroyOnClose:!0,onOk:Ha,onCancel:()=>ln(!1)},b.createElement(Ie.default.Item,{className:"mb0",colon:!1,label:"\u9A8C\u8BC1\u7801",name:"code",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}]},b.createElement(y.Z,{ref:vn=>Lt.current=vn}))),b.createElement(_e.default,{centered:!0,title:"\u64CD\u4F5C\u8BB0\u5F55",open:Jt,width:710,onCancel:()=>Ut(!1),footer:null},b.createElement(le.Z,{spinning:qt},b.createElement("div",{className:se.operating},Yt.map((vn,ka)=>b.createElement("div",{key:ka,className:se.operatingItem},b.createElement("div",{style:{flex:"0 0 180px"},className:"c-grey-666"},vn==null?void 0:vn.created_at),b.createElement("div",{className:"c-black"},vn==null?void 0:vn.user_name,"\u64CD\u4F5C\u4E86\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206"),(vn==null?void 0:vn.status)==="running"?b.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u4E2D\uFF0C\u5F53\u524D\u8FDB\u5EA6",b.createElement("span",{className:"c-light-primary ml3"},vn==null?void 0:vn.rate)):b.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u6210\u529F",b.createElement("span",{style:{color:"#3061D0",margin:"0 3px"}},vn==null?void 0:vn.success_student_count),"\u4EBA\uFF0C\u5931\u8D25",b.createElement("span",{style:{color:"#E30000",margin:"0 3px"}},vn==null?void 0:vn.fail_count),"\u4EBA")))),b.createElement("div",{style:{height:20}}))))}},6681:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return Ze}});var b=ae(59301),se={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},Ce=ae(43418),Fe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",Oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",Re=(We,_e,ke)=>new Promise((je,Ie)=>{var le=x=>{try{a(ke.next(x))}catch(y){Ie(y)}},E=x=>{try{a(ke.throw(x))}catch(y){Ie(y)}},a=x=>x.done?je(x.value):Promise.resolve(x.value).then(le,E);a((ke=ke.apply(We,_e)).next())}),Ze=({type:We,resdata:_e,onok:ke,oktext:je,okloading:Ie})=>{const[le,E]=(0,b.useState)(!1),{can_copy_list:a,can_copy_num:x,challenge_type:y,course_data_list:z,no_copy_list:te,no_copy_num:re,no_use_list:ie,no_use_num:ce,repeat_shixun_num:pe,student_count:ge,total_num:ye,use_num:Ee}=_e;let we=x>0||We==="exercise";(0,b.useEffect)(()=>{(_e==null?void 0:_e.student_count)>0&&E(!0)},[_e]),console.log("---11",Ie),(0,b.useEffect)(()=>{Ie||E(!1)},[Ie]);const ve=()=>{if(We==="exercise"&&y===1)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:se.orangeColor},ge),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:se.orangeColor},Ee),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:se.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(We==="exercise"&&y===2)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:se.orangeColor},ge),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:se.orangeColor},Ee),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",b.createElement("span",{className:se.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(We==="shixun"&&y===1)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:se.orangeColor},ge),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:se.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(We==="shixun"&&y===2)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:se.orangeColor},ge),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",b.createElement("span",{className:se.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(We==="subject"&&y===1)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:se.orangeColor},ge),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:se.orangeColor},Ee),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:se.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(We==="subject"&&y===2)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",b.createElement("span",{className:se.orangeColor},ge)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",b.createElement("span",{className:se.orangeColor},Ee)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",b.createElement("span",{className:se.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(We==="exercisepush")return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:se.orangeColor},ge),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",b.createElement("span",{className:se.orangeColor},Ee),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",b.createElement("span",{className:se.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(We==="shixunpush"&&y===1)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:se.orangeColor},ge),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:se.orangeColor},Ee),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:se.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(We==="shixunpush"&&y===2)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:se.orangeColor},ge),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",b.createElement("span",{className:se.orangeColor},Ee),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",b.createElement("span",{className:se.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},Je=()=>{if(We==="exercise"||We==="subject"||We==="exercisepush"||We==="shixunpush")return b.createElement("div",{style:{marginTop:20}},re>0&&b.createElement("div",null,b.createElement("span",{className:se.flex},b.createElement("img",{src:Oe,style:{width:14}}),b.createElement("span",{className:se.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),b.createElement("div",{className:se.statusbody},We==="exercise"&&b.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:se.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(We==="subject"||We==="exercisepush")&&b.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",we&&b.createElement("span",{className:se.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),We==="shixunpush"&&b.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",we&&b.createElement("span",{className:se.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),b.createElement("div",null,te==null?void 0:te.map((Ge,ot)=>b.createElement("a",{href:`/shixuns/${Ge.identifier}/challenges`,target:"_blank"},"\u300A",Ge==null?void 0:Ge.name,"\u300B",ot+1!==re&&"\u3001"))))),x>0&&b.createElement("div",{style:{marginTop:20}},b.createElement("span",{className:se.flex},b.createElement("img",{src:Fe,style:{width:14}}),b.createElement("span",{className:se.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),b.createElement("div",{className:se.statusbody},We==="exercise"&&b.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(We==="subject"||We==="exercisepush")&&b.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),We==="shixunpush"&&b.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),b.createElement("div",null,a==null?void 0:a.map((Ge,ot)=>b.createElement("a",{href:`/shixuns/${Ge.identifier}/challenges`,target:"_blank"},"\u300A",Ge==null?void 0:Ge.name,"\u300B",ot+1!==x&&"\u3001"))))));if(We==="shixun")return b.createElement("div",{style:{marginTop:20}},x>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return b.createElement(Ce.default,{open:le,onCancel:()=>{E(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!we&&"none"}},zIndex:1003,confirmLoading:Ie,okText:we?je:"\u6211\u77E5\u9053\u4E86",onOk:()=>Re(void 0,null,function*(){we?yield ke([...a,...ie]):E(!1)})},b.createElement("div",{style:{maxHeight:600,overflow:"auto"}},ve(),Je()))}},97410:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return Re}});var b=ae(59301),se={btn:"btn___kReTL",redBtn:"redBtn___UFEL0"},Ce=ae(92310),Fe=ae.n(Ce),Re=({className:ue,style:Ze,state:We,onClick:_e})=>{var ke,je;return b.createElement("div",{onClick:_e,className:Fe()(We?(ke=se)==null?void 0:ke.redBtn:(je=se)==null?void 0:je.btn,ue),style:Ze},We?b.createElement(b.Fragment,null,b.createElement("i",{className:"iconfont icon-biaoji1"}),b.createElement("span",null,"\u53D6\u6D88\u6807\u8BB0\u9519\u9898")):b.createElement(b.Fragment,null,b.createElement("i",{className:"iconfont icon-biaojigaiti"}),b.createElement("span",null,"\u6807\u8BB0\u9519\u9898")))}},44905:function(Ot,Rt,ae){"use strict";ae.d(Rt,{h:function(){return re}});var b=ae(59301),se=ae(57809),Ce=ae(78241),Fe=ae(3113),Oe=ae(89780),Re=ae.n(Oe),ue=ae(66543),Ze=ae(59598),We=Object.defineProperty,_e=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,E=(ie,ce,pe)=>ce in ie?We(ie,ce,{enumerable:!0,configurable:!0,writable:!0,value:pe}):ie[ce]=pe,a=(ie,ce)=>{for(var pe in ce||(ce={}))Ie.call(ce,pe)&&E(ie,pe,ce[pe]);if(je)for(var pe of je(ce))le.call(ce,pe)&&E(ie,pe,ce[pe]);return ie},x=(ie,ce)=>_e(ie,ke(ce));const y=se.default.Option,z={labelCol:{span:4},wrapperCol:{span:20}},te={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"]};Rt.Z=({callback:ie,onCancel:ce})=>{const[pe,ge]=(0,b.useState)("python");function ye(we){ge(te[we][1])}function Ee(we){ie(we)}return b.createElement(Ce.default,x(a({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ee,style:{width:500}}),b.createElement(Ce.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},b.createElement(se.default,{getPopupContainer:we=>we.parentNode,onChange:ye},Object.keys(te).map(we=>b.createElement(y,{key:we,value:we},te[we][0])))),b.createElement(Ce.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},b.createElement(re,{mode:pe})),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Fe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Fe.ZP,{type:"ghost",onClick:ce},"\u53D6\u6D88")))};function re({value:ie,onChange:ce,mode:pe,options:ge={}}){const ye=(0,b.useRef)(),[Ee,we]=(0,b.useState)();return(0,b.useEffect)(()=>{if(Ee){let ve=function(Je){const Ge=Je.getValue();ce&&ce(Ge)};return Ee.on("change",ve),()=>{Ee.off("change",ve)}}},[Ee,ce]),(0,b.useEffect)(()=>{Ee&&Ee.setOption("mode",pe)},[Ee,pe]),(0,b.useEffect)(()=>{Ee&&(ie!==Ee.getValue()||ie==="")&&setTimeout(()=>{Ee.setValue(ie||"")},300)},[Ee,ie]),(0,b.useEffect)(()=>{if(ye.current&&!Ee){const ve=Re().fromTextArea(ye.current,a({mode:pe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ge));we(ve)}},[ye.current,Ee]),b.createElement("div",{className:"my-codemirror-container"},b.createElement("textarea",{ref:ye}))}},89389:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return Jn}});var b=ae(59301),se=ae(89780),Ce=ae.n(se),Fe=ae(76374),Oe=ae(66543),Re=ae(6313),ue=ae(25717),Ze=ae(99498),We=ae(25419),_e=ae(67549),ke=ae(7664),je=({value:ht="",className:yt,showTextOnly:pt,showLines:sn,style:En={}})=>{const gn=(0,b.useMemo)(()=>"",[ht]);return b.createElement(b.Fragment,null,b.createElement("div",{dangerouslySetInnerHTML:{__html:gn}}))},Ie=ae(59301),le=Object.defineProperty,E=Object.defineProperties,a=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,te=(ht,yt,pt)=>yt in ht?le(ht,yt,{enumerable:!0,configurable:!0,writable:!0,value:pt}):ht[yt]=pt,re=(ht,yt)=>{for(var pt in yt||(yt={}))y.call(yt,pt)&&te(ht,pt,yt[pt]);if(x)for(var pt of x(yt))z.call(yt,pt)&&te(ht,pt,yt[pt]);return ht},ie=(ht,yt)=>E(ht,a(yt));let ce=[{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 pe({onActionCallback:ht,title:yt,icon:pt,actionName:sn,className:En="",children:gn}){function Qn(){ht(sn)}return Ie.createElement("a",{title:yt,className:En,onClick:Qn},Ie.createElement("i",{className:`${pt}`}),gn)}var ge=({watch:ht,showNullButton:yt,showNullProgramButton:pt,onActionCallback:sn,fullScreen:En,insertTemp:gn,hidetoolBar:Qn,extraUse:_n})=>{const Hn=[...ce,{title:`${ht?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ht?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ie.createElement("ul",{className:"markdown-toolbar-container"},!Qn&&Hn.map((Pa,Qa)=>Ie.createElement("li",{key:Qa},Pa.actionName?Ie.createElement(pe,ie(re({},Pa),{onActionCallback:sn})):Ie.createElement("span",{className:"v-line"}))),yt?Ie.createElement("li",null,Ie.createElement(pe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:sn},Ie.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,pt?Ie.createElement(Ie.Fragment,null,Ie.createElement("li",null,Ie.createElement(pe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:sn},Ie.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ie.createElement("li",null,Ie.createElement(pe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:sn},Ie.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,gn&&Ie.createElement("li",null,Ie.createElement(pe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${gn}`,onActionCallback:sn},Ie.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),_n&&Ie.createElement("li",null,_n),Ie.createElement("li",{className:"btn-full-screen"},Ie.createElement(pe,{icon:`${En?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:En?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:sn})))},ye=ae(75790),Ee=ae(78241),we=ae(92832),ve=ae(3113),Je=Object.defineProperty,Ge=Object.defineProperties,ot=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,Ke=(ht,yt,pt)=>yt in ht?Je(ht,yt,{enumerable:!0,configurable:!0,writable:!0,value:pt}):ht[yt]=pt,rt=(ht,yt)=>{for(var pt in yt||(yt={}))Ue.call(yt,pt)&&Ke(ht,pt,yt[pt]);if(Le)for(var pt of Le(yt))st.call(yt,pt)&&Ke(ht,pt,yt[pt]);return ht},Ht=(ht,yt)=>Ge(ht,ot(yt));const it={labelCol:{span:4},wrapperCol:{span:20}};var jt=({callback:ht,onCancel:yt})=>{function pt(sn){ht(sn)}return b.createElement(Ee.default,Ht(rt({},it),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:pt,style:{width:500}}),b.createElement(Ee.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},b.createElement(we.default,null)),b.createElement(Ee.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},b.createElement(we.default,null)),b.createElement("div",{className:"flex-container flex-end"},b.createElement(ve.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(ve.ZP,{type:"ghost",onClick:yt},"\u53D6\u6D88")))},Kt=ae(44905),Qe=ae(45596),et=ae(43418),Dt=ae(95237),tn=ae(6077),Et=ae(59301),Vt=({callback:ht,onCancel:yt})=>{const pt=document.createElement("canvas"),sn=pt.getContext("2d");pt.width=1e3,pt.height=800,sn.fillStyle="#ffffff",sn.fillRect(0,0,pt.width,pt.height);const En=pt.toDataURL("image/png");return Et.createElement(et.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Et.createElement(Dt.Z,{style:{height:"100vh"}},Et.createElement(tn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:En,visible:!0,title:String(Date.now())},onOk:gn=>{ht({src:gn.url})},onClose:yt})))},Be=ae(12378);function Gt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Gt,go.CommandHandler),Gt.prototype.canAlignSelection=function(){var ht=this.diagram;return!(ht===null||ht.isReadOnly||ht.isModelReadOnly||ht.selection.count<2)},Gt.prototype.alignLeft=function(){var ht=this.diagram;ht.startTransaction("aligning left");var yt=1/0;ht.selection.each(function(pt){pt instanceof go.Link||(yt=Math.min(pt.position.x,yt))}),ht.selection.each(function(pt){pt instanceof go.Link||pt.move(new go.Point(yt,pt.position.y))}),ht.commitTransaction("aligning left")},Gt.prototype.alignRight=function(){var ht=this.diagram;ht.startTransaction("aligning right");var yt=-1/0;ht.selection.each(function(pt){if(!(pt instanceof go.Link)){var sn=pt.actualBounds.x+pt.actualBounds.width;yt=Math.max(sn,yt)}}),ht.selection.each(function(pt){pt instanceof go.Link||pt.move(new go.Point(yt-pt.actualBounds.width,pt.position.y))}),ht.commitTransaction("aligning right")},Gt.prototype.alignTop=function(){var ht=this.diagram;ht.startTransaction("alignTop");var yt=1/0;ht.selection.each(function(pt){pt instanceof go.Link||(yt=Math.min(pt.position.y,yt))}),ht.selection.each(function(pt){pt instanceof go.Link||pt.move(new go.Point(pt.position.x,yt))}),ht.commitTransaction("alignTop")},Gt.prototype.alignBottom=function(){var ht=this.diagram;ht.startTransaction("aligning bottom");var yt=-1/0;ht.selection.each(function(pt){if(!(pt instanceof go.Link)){var sn=pt.actualBounds.y+pt.actualBounds.height;yt=Math.max(sn,yt)}}),ht.selection.each(function(pt){pt instanceof go.Link||pt.move(new go.Point(pt.actualBounds.x,yt-pt.actualBounds.height))}),ht.commitTransaction("aligning bottom")},Gt.prototype.alignCenterX=function(){var ht=this.diagram,yt=ht.selection.first();if(yt){ht.startTransaction("aligning Center X");var pt=yt.actualBounds.x+yt.actualBounds.width/2;ht.selection.each(function(sn){sn instanceof go.Link||sn.move(new go.Point(pt-sn.actualBounds.width/2,sn.actualBounds.y))}),ht.commitTransaction("aligning Center X")}},Gt.prototype.alignCenterY=function(){var ht=this.diagram,yt=ht.selection.first();if(yt){ht.startTransaction("aligning Center Y");var pt=yt.actualBounds.y+yt.actualBounds.height/2;ht.selection.each(function(sn){sn instanceof go.Link||sn.move(new go.Point(sn.actualBounds.x,pt-sn.actualBounds.height/2))}),ht.commitTransaction("aligning Center Y")}},Gt.prototype.alignColumn=function(ht){var yt=this.diagram;yt.startTransaction("align Column"),ht===void 0&&(ht=0),ht=parseFloat(ht);var pt=new Array;yt.selection.each(function(_n){_n instanceof go.Link||pt.push(_n)});for(var sn=0;sn<pt.length-1;sn++){var En=pt[sn],gn=En.actualBounds.y+En.actualBounds.height+ht,Qn=pt[sn+1];Qn.move(new go.Point(En.actualBounds.x,gn))}yt.commitTransaction("align Column")},Gt.prototype.alignRow=function(ht){ht===void 0&&(ht=0),ht=parseFloat(ht);var yt=this.diagram;yt.startTransaction("align Row");var pt=new Array;yt.selection.each(function(_n){_n instanceof go.Link||pt.push(_n)});for(var sn=0;sn<pt.length-1;sn++){var En=pt[sn],gn=En.actualBounds.x+En.actualBounds.width+ht,Qn=pt[sn+1];Qn.move(new go.Point(gn,En.actualBounds.y))}yt.commitTransaction("align Row")},Gt.prototype.canRotate=function(ht){var yt=this.diagram;return!(yt===null||yt.isReadOnly||yt.isModelReadOnly||yt.selection.count<1)},Gt.prototype.rotate=function(ht){ht===void 0&&(ht=90);var yt=this.diagram;yt.startTransaction("rotate "+ht.toString());var yt=this.diagram;yt.selection.each(function(pt){pt instanceof go.Link||pt instanceof go.Group||(pt.angle+=ht)}),yt.commitTransaction("rotate "+ht.toString())},Gt.prototype.pullToFront=function(){var ht=this.diagram;ht.startTransaction("pullToFront");var yt=new go.Map;ht.selection.each(function(pt){yt.set(pt.layer,0)}),yt.iteratorKeys.each(function(pt){var sn=0;pt.parts.each(function(En){if(!En.isSelected){var gn=En.zOrder;isNaN(gn)?En.zOrder=0:sn=Math.max(sn,gn)}}),yt.set(pt,sn)}),ht.selection.each(function(pt){Gt._assignZOrder(pt,yt.get(pt.layer)+1)}),ht.commitTransaction("pullToFront")},Gt.prototype.pushToBack=function(){var ht=this.diagram;ht.startTransaction("pushToBack");var yt=new go.Map;ht.selection.each(function(pt){yt.set(pt.layer,0)}),yt.iteratorKeys.each(function(pt){var sn=0;pt.parts.each(function(En){if(!En.isSelected){var gn=En.zOrder;isNaN(gn)?En.zOrder=0:sn=Math.min(sn,gn)}}),yt.set(pt,sn)}),ht.selection.each(function(pt){Gt._assignZOrder(pt,yt.get(pt.layer)-1-Gt._findGroupDepth(pt))}),ht.commitTransaction("pushToBack")},Gt._assignZOrder=function(ht,yt,pt){pt===void 0&&(pt=ht),ht.layer===pt.layer&&(ht.zOrder=yt),ht instanceof go.Group&&ht.memberParts.each(function(sn){Gt._assignZOrder(sn,yt+1,pt)})},Gt._findGroupDepth=function(ht){if(ht instanceof go.Group){var yt=0;return ht.memberParts.each(function(pt){yt=Math.max(yt,Gt._findGroupDepth(pt))}),yt+1}else return 0},Gt.prototype.doKeyDown=function(){var ht=this.diagram;if(ht!==null){var yt=ht.lastInput;if(yt.key==="Up"||yt.key==="Down"||yt.key==="Left"||yt.key==="Right"){var pt=this.arrowKeyBehavior;if(pt==="none")return;if(pt==="select"){this._arrowKeySelect();return}else if(pt==="move"){this._arrowKeyMove();return}else if(pt==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Gt.prototype._getAllParts=function(){var ht=new Array;return this.diagram.nodes.each(function(yt){ht.push(yt)}),this.diagram.parts.each(function(yt){ht.push(yt)}),ht},Gt.prototype._arrowKeyMove=function(){var ht=this.diagram,yt=ht.lastInput,pt=0,sn=0;if(yt.control||yt.meta)pt=1,sn=1;else if(ht.grid!==null){var En=ht.grid.gridCellSize;sn=En.width,pt=En.height}ht.startTransaction("arrowKeyMove"),ht.selection.each(function(gn){yt.key==="Up"?gn.move(new go.Point(gn.actualBounds.x,gn.actualBounds.y-pt)):yt.key==="Down"?gn.move(new go.Point(gn.actualBounds.x,gn.actualBounds.y+pt)):yt.key==="Left"?gn.move(new go.Point(gn.actualBounds.x-sn,gn.actualBounds.y)):yt.key==="Right"&&gn.move(new go.Point(gn.actualBounds.x+sn,gn.actualBounds.y))}),ht.commitTransaction("arrowKeyMove")},Gt.prototype._arrowKeySelect=function(){var ht=this.diagram,yt=ht.lastInput,pt=null;yt.key==="Up"?pt=this._findNearestPartTowards(270):yt.key==="Down"?pt=this._findNearestPartTowards(90):yt.key==="Left"?pt=this._findNearestPartTowards(180):yt.key==="Right"&&(pt=this._findNearestPartTowards(0)),pt!==null&&(yt.shift?pt.isSelected=!0:yt.control||yt.meta?pt.isSelected=!pt.isSelected:ht.select(pt))},Gt.prototype._findNearestPartTowards=function(ht){var yt=this.diagram.selection.first();if(yt===null)return null;for(var pt=yt.actualBounds.center,sn=this._getAllParts(),En=1/0,gn=yt,Qn=0;Qn<sn.length;Qn++){var _n=sn[Qn];if(_n!==yt&&_n.canSelect()){var Hn=_n.actualBounds.center,Pa=pt.directionPoint(Hn),Qa=this._angleCloseness(Pa,ht);if(Qa<=45){var Sn=pt.distanceSquaredPoint(Hn);Sn*=1+Math.sin(Qa*Math.PI/180),Sn<En&&(En=Sn,gn=_n)}}}return gn},Gt.prototype._angleCloseness=function(ht,yt){return Math.min(Math.abs(yt-ht),Math.min(Math.abs(yt+360-ht),Math.abs(yt-360-ht)))},Gt.prototype._arrowKeyTree=function(){var ht=this.diagram,yt=ht.selection.first();if(yt instanceof go.Node){var pt=ht.lastInput;if(pt.key==="Right"){if(!yt.isTreeLeaf)if(!yt.isTreeExpanded)ht.commandHandler.canExpandTree(yt)&&ht.commandHandler.expandTree(yt);else{var sn=this._sortTreeChildrenByY(yt).first();sn!==null&&ht.select(sn)}}else if(pt.key==="Left")if(!yt.isTreeLeaf&&yt.isTreeExpanded)ht.commandHandler.canCollapseTree(yt)&&ht.commandHandler.collapseTree(yt);else{var En=yt.findTreeParentNode();En!==null&&ht.select(En)}else if(pt.key==="Up"){var En=yt.findTreeParentNode();if(En!==null){var gn=this._sortTreeChildrenByY(En),Qn=gn.indexOf(yt);if(Qn>0){for(var _n=gn.elt(Qn-1);_n!==null&&_n.isTreeExpanded&&!_n.isTreeLeaf;){var Hn=this._sortTreeChildrenByY(_n);_n=Hn.last()}_n!==null&&ht.select(_n)}else ht.select(En)}}else if(pt.key==="Down")if(yt.isTreeExpanded&&!yt.isTreeLeaf){var sn=this._sortTreeChildrenByY(yt).first();sn!==null&&ht.select(sn)}else for(;yt!==null;){var En=yt.findTreeParentNode();if(En===null)break;var gn=this._sortTreeChildrenByY(En),Qn=gn.indexOf(yt);if(Qn<gn.length-1){ht.select(gn.elt(Qn+1));break}else yt=En}var Pa=ht.selection.first();Pa!==null&&ht.scrollToRect(Pa.actualBounds)}},Gt.prototype._sortTreeChildrenByY=function(ht){var yt=new go.List().addAll(ht.findTreeChildrenNodes());return yt.sort(function(pt,sn){var En=pt.location,gn=sn.location;return En.y<gn.y?-1:En.y>gn.y?1:En.x<gn.x?-1:En.x>gn.x?1:0}),yt},Gt.prototype.copyToClipboard=function(ht){go.CommandHandler.prototype.copyToClipboard.call(this,ht),this._lastPasteOffset.set(this.pasteOffset)},Gt.prototype.pasteFromClipboard=function(){var ht=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ht,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ht},Object.defineProperty(Gt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ht){if(ht!=="move"&&ht!=="select"&&ht!=="scroll"&&ht!=="tree"&&ht!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ht);this._arrowKeyBehavior=ht}}),Object.defineProperty(Gt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ht){if(!(ht instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ht);this._pasteOffset.set(ht)}});var bn=Gt,Bt=ae(20397),At=ae(43604),tt=ae(82093),Ve={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},De=ae(59301),he=(ht,yt,pt)=>new Promise((sn,En)=>{var gn=Hn=>{try{_n(pt.next(Hn))}catch(Pa){En(Pa)}},Qn=Hn=>{try{_n(pt.throw(Hn))}catch(Pa){En(Pa)}},_n=Hn=>Hn.done?sn(Hn.value):Promise.resolve(Hn.value).then(gn,Qn);_n((pt=pt.apply(ht,yt)).next())});function nt({onCancel:ht,callback:yt}){let pt=(0,b.useRef)(),sn=(0,b.useRef)(),En=(0,b.useRef)(),gn=(0,b.useRef)(!1);const Qn=(0,b.useRef)(!1),[_n,Hn]=(0,b.useState)(0);function Pa(){const Sn=Be.bx.make,ba={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"};pt.current=new Be.S0(sn.current,{padding:20,grid:Sn(Be.s_,"Grid",Sn(Be.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Sn(Be.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Rn=>{var Wn=Rn.diagram.commandHandler.addTopLevelParts(Rn.diagram.selection,!0);Wn||Rn.diagram.currentTool.doCancel()},commandHandler:Sn(bn),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Rn=>{var Wn=Rn.subject;Wn.location=Wn.location.copy().snapToGridPoint(Rn.diagram.grid.gridOrigin,Rn.diagram.grid.gridCellSize),setTimeout(()=>{Rn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Rn=>{var Wn=Rn.subject;setTimeout(()=>{Rn.diagram.commandHandler.editTextBlock()})},LinkRelinked:Rn=>{var Wn=Rn.parameter.part;Wn.invalidateConnectedLinks();var fa=Rn.subject;Rn.diagram.toolManager.linkingTool.isForwards?fa.toNode.invalidateConnectedLinks():fa.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),pt.current.nodeTemplate=Sn(Be.NB,"Auto",{locationSpot:Be.z6.Center,locationObjectName:"SHAPE",desiredSize:new Be.$u(120,60),minSize:new Be.$u(40,40),resizable:!0,resizeCellSize:new Be.$u(10,10),rotatable:!0},new Be.KX("location","loc",Be.E9.parse).makeTwoWay(Be.E9.stringify),new Be.KX("desiredSize","size",Be.$u.parse).makeTwoWay(Be.$u.stringify),Sn(Be.bn,{name:"SHAPE",fill:ba.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Be.z6.AllSides,toSpot:Be.z6.AllSides},new Be.KX("figure"),new Be.KX("fill"),new Be.KX("stroke","borderColor"),new Be.KX("strokeWidth","thickness"),new Be.KX("strokeDashArray","dash")),Sn(Be.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Sn(Be.al,{margin:1,textAlign:"center",overflow:Be.al.OverflowEllipsis,editable:!0},new Be.KX("text").makeTwoWay(),new Be.KX("stroke","color"))),pt.current.nodeTemplate.toolTip=Sn("ToolTip",Sn(Be.s_,"Vertical",{maxSize:new Be.$u(200,NaN)},Sn(Be.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Be.KX("text")),Sn(Be.al,{font:"10pt sans-serif",textAlign:"center"},new Be.KX("text","details"))));function nr(Rn,Wn){var fa=(qn,Xa)=>{qn.handled=!0,qn.diagram.model.commit(xr=>{var mr=Xa.part.adornedPart,hr=new Be.E9().setRectSpot(mr.actualBounds,Rn);hr.subtract(mr.location),hr.scale(2,2),hr.x+=Math.sign(hr.x)*130,hr.y+=Math.sign(hr.y)*130,hr.add(mr.location),hr.snapToGridPoint(qn.diagram.grid.gridOrigin,qn.diagram.grid.gridCellSize);var Qr=xr.copyNodeData(mr.data);xr.setGroupKeyForNodeData(Qr,xr.getGroupKeyForNodeData(mr.data)),xr.addNodeData(Qr);var eo={from:mr.key,to:xr.getKeyForNodeData(Qr)};xr.addLinkData(eo);var Yo=qn.diagram.findNodeForData(Qr);Yo.location=hr,qn.diagram.select(Yo),setTimeout(()=>{qn.diagram.commandHandler.editTextBlock()},20)})};return Sn(Be.bn,{figure:Wn,alignment:Rn,alignmentFocus:Rn.opposite(),width:Rn.equals(Be.z6.Top)||Rn.equals(Be.z6.Bottom)?25:18,height:Rn.equals(Be.z6.Top)||Rn.equals(Be.z6.Bottom)?18:25,fill:"orange",stroke:ba.white,strokeWidth:4,mouseEnter:(qn,Xa)=>Xa.fill="dodgerblue",mouseLeave:(qn,Xa)=>Xa.fill="orange",isActionable:!0,click:fa,contextClick:fa})}function gr(Rn){return Sn(Be.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(Wn,fa)=>fa.fill="dodgerblue",mouseLeave:(Wn,fa)=>fa.fill="orange",click:(Wn,fa)=>{Wn.diagram.commandHandler.showContextMenu(fa.part.adornedPart)}},Rn||{})}pt.current.nodeTemplate.selectionAdornmentTemplate=Sn(Be.uz,"Spot",Sn(Be.Vm,{padding:10}),nr(Be.z6.Top,"TriangleUp"),nr(Be.z6.Left,"TriangleLeft"),nr(Be.z6.Right,"TriangleRight"),nr(Be.z6.Bottom,"TriangleDown"),gr({alignment:new Be.z6(.75,0)}));function $n(Rn,Wn){return(fa,qn)=>{fa.handled=!0,fa.diagram.model.commit(Xa=>{Xa.set(qn.part.adornedPart.data,Rn,Wn)})}}function an(Rn,Wn){return Wn||(Wn="color"),Sn(Be.bn,{width:16,height:16,stroke:"lightgray",fill:Rn,margin:1,background:"transparent",mouseEnter:(fa,qn)=>qn.stroke="dodgerblue",mouseLeave:(fa,qn)=>qn.stroke="lightgray",click:$n(Wn,Rn),contextClick:$n(Wn,Rn)})}function Rr(){return[Sn("ContextMenuButton",Sn(Be.s_,"Horizontal",an(ba.white,"fill"),an(ba.beige,"fill"),an(ba.extralightblue,"fill"),an(ba.extralightred,"fill"))),Sn("ContextMenuButton",Sn(Be.s_,"Horizontal",an(ba.lightgray,"fill"),an(ba.lightgreen,"fill"),an(ba.lightblue,"fill"),an(ba.lightred,"fill")))]}function Ja(){return[Sn("ContextMenuButton",Sn(Be.s_,"Horizontal",an(ba.black),an(ba.green),an(ba.blue),an(ba.red))),Sn("ContextMenuButton",Sn(Be.s_,"Horizontal",an(ba.white),an(ba.magenta),an(ba.purple),an(ba.orange)))]}function Fr(Rn,Wn){return Wn||(Wn="thickness"),Sn(Be.bn,"LineH",{width:16,height:16,strokeWidth:Rn,margin:1,background:"transparent",mouseEnter:(fa,qn)=>qn.background="dodgerblue",mouseLeave:(fa,qn)=>qn.background="transparent",click:$n(Wn,Rn),contextClick:$n(Wn,Rn)})}function Or(Rn,Wn){return Wn||(Wn="dash"),Sn(Be.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Rn,margin:1,background:"transparent",mouseEnter:(fa,qn)=>qn.background="dodgerblue",mouseLeave:(fa,qn)=>qn.background="transparent",click:$n(Wn,Rn),contextClick:$n(Wn,Rn)})}function Mr(){return[Sn("ContextMenuButton",Sn(Be.s_,"Horizontal",Fr(1),Fr(2),Fr(3),Fr(4))),Sn("ContextMenuButton",Sn(Be.s_,"Horizontal",Or(null),Or([2,4]),Or([4,4])))]}function Xt(Rn,Wn){return Wn||(Wn="figure"),Sn(Be.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Rn,margin:1,background:"transparent",mouseEnter:(fa,qn)=>qn.fill="dodgerblue",mouseLeave:(fa,qn)=>qn.fill="lightgray",click:$n(Wn,Rn),contextClick:$n(Wn,Rn)})}pt.current.nodeTemplate.contextMenu=Sn("ContextMenu",Sn("ContextMenuButton",Sn(Be.s_,"Horizontal",Xt("Rectangle"),Xt("RoundedRectangle"),Xt("Ellipse"),Xt("Diamond"))),Sn("ContextMenuButton",Sn(Be.s_,"Horizontal",Xt("Parallelogram2"),Xt("ManualOperation"),Xt("Procedure"),Xt("Cylinder1"))),Sn("ContextMenuButton",Sn(Be.s_,"Horizontal",Xt("Terminator"),Xt("CreateRequest"),Xt("Document"),Xt("TriangleDown"))),Rr(),Ja(),Mr()),pt.current.groupTemplate=Sn(Be.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Be.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Rn,Wn)=>{var fa=Wn.addMembers(Wn.diagram.selection,!0);fa||Wn.diagram.currentTool.doCancel()},avoidable:!1},new Be.KX("location","loc",Be.E9.parse).makeTwoWay(Be.E9.stringify),Sn(Be.s_,"Auto",{name:"BODY"},Sn(Be.bn,{parameter1:10,fill:ba.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Be.z6.AllSides,toSpot:Be.z6.AllSides},new Be.KX("fill"),new Be.KX("stroke","color"),new Be.KX("strokeWidth","thickness"),new Be.KX("strokeDashArray","dash")),Sn(Be.Vm,{background:"transparent",margin:20})),Sn(Be.al,{alignment:Be.z6.Top,alignmentFocus:Be.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Be.KX("text"),new Be.KX("stroke","color"))),pt.current.groupTemplate.selectionAdornmentTemplate=Sn(Be.uz,"Spot",Sn(Be.s_,"Auto",Sn(Be.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Sn(Be.Vm,{margin:1.5})),gr({alignment:Be.z6.TopRight,alignmentFocus:Be.z6.BottomRight})),pt.current.groupTemplate.contextMenu=Sn("ContextMenu",Rr(),Ja(),Mr()),pt.current.linkTemplate=Sn(Be.rU,{layerName:"Foreground",routing:Be.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Be.KX("fromSpot","fromSpot",Be.z6.parse),new Be.KX("toSpot","toSpot",Be.z6.parse),new Be.KX("fromShortLength","dir",Rn=>Rn>=1?10:0),new Be.KX("toShortLength","dir",Rn=>Rn>=1?10:0),new Be.KX("points").makeTwoWay(),Sn(Be.bn,{strokeWidth:2},new Be.KX("stroke","color"),new Be.KX("strokeWidth","thickness"),new Be.KX("strokeDashArray","dash")),Sn(Be.bn,{segmentIndex:0,segmentOffset:new Be.E9(15,0),segmentOrientation:Be.rU.OrientAlong,alignmentFocus:Be.z6.Right,figure:"circle",width:10,strokeWidth:0},new Be.KX("fill","color"),new Be.KX("visible","dir",Rn=>Rn===1)),Sn(Be.bn,{segmentIndex:-1,segmentOffset:new Be.E9(-10,6),segmentOrientation:Be.rU.OrientPlus90,alignmentFocus:Be.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Be.KX("fill","color"),new Be.KX("visible","dir",Rn=>Rn>=1),new Be.KX("width","thickness",Rn=>7+3*Rn),new Be.KX("height","thickness",Rn=>7+3*Rn),new Be.KX("segmentOffset","thickness",Rn=>new Be.E9(-15,4+1.5*Rn))),Sn(Be.bn,{segmentIndex:0,segmentOffset:new Be.E9(15,-6),segmentOrientation:Be.rU.OrientMinus90,alignmentFocus:Be.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Be.KX("fill","color"),new Be.KX("visible","dir",Rn=>Rn===2),new Be.KX("width","thickness",Rn=>7+3*Rn),new Be.KX("height","thickness",Rn=>7+3*Rn),new Be.KX("segmentOffset","thickness",Rn=>new Be.E9(-15,4+1.5*Rn))),Sn(Be.al,{alignmentFocus:new Be.z6(0,1,-4,0),editable:!0},new Be.KX("text").makeTwoWay(),new Be.KX("stroke","color"))),pt.current.linkTemplate.selectionAdornmentTemplate=Sn(Be.uz,Sn(Be.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:fn(2)},new Be.KX("pathPattern","thickness",fn)),gr({alignmentFocus:new Be.z6(0,0,-6,-4)}));function fn(Rn){return Sn(Be.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Rn+4).toString()+" H3"})}function Pn(Rn){var Wn="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Rn===0?Wn="M0 0 M16 16 M0 8 L16 8":Rn===2&&(Wn="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Sn(Be.bn,{geometryString:Wn,margin:2,background:"transparent",mouseEnter:(fa,qn)=>qn.background="dodgerblue",mouseLeave:(fa,qn)=>qn.background="transparent",click:$n("dir",Rn),contextClick:$n("dir",Rn)})}function pa(Rn){var Wn=(fa,qn)=>{fa.handled=!0,fa.diagram.model.commit(Xa=>{var xr=qn.part.adornedPart;Xa.set(xr.data,Rn?"toSpot":"fromSpot",Be.z6.stringify(Be.z6.AllSides)),(Rn?xr.toNode:xr.fromNode).invalidateConnectedLinks()})};return Sn(Be.bn,{width:12,height:12,fill:"transparent",mouseEnter:(fa,qn)=>qn.background="dodgerblue",mouseLeave:(fa,qn)=>qn.background="transparent",click:Wn,contextClick:Wn})}function en(Rn,Wn){var fa=0,qn=Be.z6.RightSide;Rn.equals(Be.z6.Top)?(fa=270,qn=Be.z6.TopSide):Rn.equals(Be.z6.Left)?(fa=180,qn=Be.z6.LeftSide):Rn.equals(Be.z6.Bottom)&&(fa=90,qn=Be.z6.BottomSide),Wn||(fa-=180);var Xa=(xr,mr)=>{xr.handled=!0,xr.diagram.model.commit(hr=>{var Qr=mr.part.adornedPart;hr.set(Qr.data,Wn?"toSpot":"fromSpot",Be.z6.stringify(qn)),(Wn?Qr.toNode:Qr.fromNode).invalidateConnectedLinks()})};return Sn(Be.bn,{alignment:Rn,alignmentFocus:Rn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:fa,background:"transparent",mouseEnter:(xr,mr)=>mr.background="dodgerblue",mouseLeave:(xr,mr)=>mr.background="transparent",click:Xa,contextClick:Xa})}pt.current.linkTemplate.contextMenu=Sn("ContextMenu",Ja(),Mr(),Sn("ContextMenuButton",Sn(Be.s_,"Horizontal",Pn(0),Pn(1),Pn(2))),Sn("ContextMenuButton",Sn(Be.s_,"Horizontal",Sn(Be.s_,"Spot",pa(!1),en(Be.z6.Top,!1),en(Be.z6.Left,!1),en(Be.z6.Right,!1),en(Be.z6.Bottom,!1)),Sn(Be.s_,"Spot",{margin:new Be.Zt(0,0,0,2)},pa(!0),en(Be.z6.Top,!0),en(Be.z6.Left,!0),en(Be.z6.Right,!0),en(Be.z6.Bottom,!0)))));const za=`{ "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 va=["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 ja(Rn){return console.log("shapeName:",Rn),va.indexOf(Rn)>=0}var ia=new Be.YI(En.current,{maxSelectionCount:1,linkTemplate:Sn(Be.rU,{locationSpot:Be.z6.Center,selectionAdornmentTemplate:Sn(Be.uz,"Link",{locationSpot:Be.z6.Center},Sn(Be.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Sn(Be.bn,{toArrow:"Standard",stroke:null}))},{routing:Be.rU.AvoidsNodes,curve:Be.rU.JumpOver,corner:5,toShortLength:4},new Be.KX("points"),Sn(Be.bn,{isPanelMain:!0,strokeWidth:2}),Sn(Be.bn,{toArrow:"Standard",stroke:null})),model:new Be.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Be.bn.getFigureGenerators().toArray().map(Rn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Rn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return pt.current.addDiagramListener("TextEdited",function(Rn){var Wn;const fa=Rn.subject.part;var qn=(Wn=document.activeElement)==null?void 0:Wn.value;typeof qn=="string"&&qn.trim()===""&&pt.current.model.commit(function(Xa){Xa.set(fa.data,"text","\u672A\u547D\u540D"),pt.current.commandHandler.stopCommand()},"increment")}),ia.nodeTemplate=Sn(Be.NB,"Auto",{locationSpot:Be.z6.Center},new Be.KX("location","location",Be.E9.parse).makeTwoWay(Be.E9.stringify),Sn(Be.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new Be.KX("stroke").makeTwoWay(),new Be.KX("fill").makeTwoWay(),new Be.KX("figure")),Sn(Be.al,{margin:new Be.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Be.$u(16,16),maxSize:new Be.$u(10,NaN),textAlign:"center",editable:!0},new Be.KX("key").makeTwoWay())),setTimeout(()=>{pt.current.grid=Sn(Be.s_,"Grid",Sn(Be.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Sn(Be.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),pt.current.grid.visible=!0,pt.current.grid.gridCellStroke="darkgray",pt.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=pt.current,pt.current}const Qa=()=>he(this,null,function*(){var Sn=pt.current.makeImage();const ba=yield(0,tt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Sn.src}});yt({src:ba.url})});return(0,b.useEffect)(()=>(setTimeout(()=>{Pa()},500),Hn(_n+1),()=>{pt.current=null}),[]),De.createElement("div",{ref:Qn,className:gn.current?`${Ve.maxH60} body-overflow-initial`:"body-overflow-initial"},De.createElement(et.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!_n,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:De.createElement(Dt.Z,null,De.createElement(At.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),De.createElement(At.Z,{onClick:()=>{var Sn,ba,nr=pt.current.selection.first();if(gn.current=!gn.current,document.activeElement&&nr){let gr=(ba=(Sn=document.activeElement)==null?void 0:Sn.value)==null?void 0:ba.trim();typeof gr=="string"&&pt.current.model.commit(function($n){$n.set(nr.data,"text",gr||"\u672A\u547D\u540D"),pt.current.commandHandler.stopCommand()},"increment")}Hn(_n+1)}},De.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ht},De.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ve.flowChartWrp},De.createElement("div",{style:{display:"flex",height:"100%"}},De.createElement("div",{style:{width:"300px",height:"100%"}},De.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),De.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ve.myPaletteDiv,ref:En})),De.createElement("div",{style:{flex:1,position:"relative"}},De.createElement("div",{ref:sn,style:{height:"80vh"}}))),De.createElement("div",{className:"tr"},De.createElement(ve.ZP,{size:"large",onClick:Qa,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var wt=nt,Ae=ae(5112),be=ae(5871);const gt=Ae.ZP.Group,Xe={margin:"0 8px"};var Te=({callback:ht,onCancel:yt})=>{function pt(sn){ht(sn)}return b.createElement(Ee.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:pt},b.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},b.createElement("span",{style:Xe},"\u5355\u5143\u683C\u6570\uFF1A"),b.createElement("span",{style:Xe},"\u884C\u6570"),b.createElement(Ee.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},b.createElement(be.Z,null)),b.createElement("span",{style:Xe},"\u5217\u6570"),b.createElement(Ee.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},b.createElement(be.Z,null))),b.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},b.createElement("span",{style:Xe},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),b.createElement(Ee.default.Item,{name:"align"},b.createElement(gt,null,b.createElement(Ae.ZP,{value:"default"},b.createElement("i",{className:"fa fa-align-justify"})),b.createElement(Ae.ZP,{value:"left"},b.createElement("i",{className:"fa fa-align-left"})),b.createElement(Ae.ZP,{value:"center"},b.createElement("i",{className:"fa fa-align-center"})),b.createElement(Ae.ZP,{value:"right"},b.createElement("i",{className:"fa fa-align-right"}))))),b.createElement("div",{className:"flex-container flex-end"},b.createElement(ve.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(ve.ZP,{type:"ghost",onClick:yt},"\u53D6\u6D88")))},St=ae(49770),ln=ae(11081),Lt=ae.n(ln),Ut=(0,b.forwardRef)(({use3d:ht,width:yt,height:pt,callback:sn,showSaveButton:En},gn)=>{const Qn=(0,b.useRef)(),_n=(0,b.useRef)(),[Hn,Pa]=(0,b.useState)(!1),Qa=(0,b.useRef)({id:Qn,appName:"graphing",width:yt||1e3,height:pt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,b.useEffect)(()=>{_n.current=new(Lt())(Qa.current,!0),window.onload=function(){_n.current.inject("applet_container")}},[]);const Sn=()=>{var ba=window.ggbApplet.getPNGBase64(1,!0,72);return sn&&sn(ba),ba};return(0,b.useEffect)(()=>{Qa.current.appName=Hn?"3D":"graphing",_n.current.inject("applet_container")},[Hn]),(0,b.useEffect)(()=>{Pa(ht)},[ht]),(0,b.useImperativeHandle)(gn,()=>({getImgData:Sn})),b.createElement(b.Fragment,null,b.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Qn}),b.createElement(Dt.Z,{align:"middle"},b.createElement(At.Z,{flex:1},b.createElement(St.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Hn,onChange:ba=>Pa(ba)})),b.createElement(At.Z,null,b.createElement(ve.ZP,{size:"large",onClick:Sn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),qt=ae(88615),bt=ae(1012),Yt=ae(8591);const Fn="link",kt="upload-image",Ft="add-flowchart",In="draw-image",jn="add-flowchart",Gn="code-block",na="add-table",La="------------",nn={default:La,left:`:${La}`,center:`:${La}:`,right:`${La}:`};var $t=ae(17904),mn=(ht,yt,pt)=>new Promise((sn,En)=>{var gn=Hn=>{try{_n(pt.next(Hn))}catch(Pa){En(Pa)}},Qn=Hn=>{try{_n(pt.throw(Hn))}catch(Pa){En(Pa)}},_n=Hn=>Hn.done?sn(Hn.value):Promise.resolve(Hn.value).then(gn,Qn);_n((pt=pt.apply(ht,yt)).next())});function Zn(){}let Cn=0;const Ha=1e4,$a="\u2581",aa="@\u2581\u2581@",vn="@\u2581@",ka=`
|
|
**\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`,vt=["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 cn(ht){return/^\d+$/.test(ht)?`${ht}px`:ht}const kn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",xn={[kn+"-B"]:"bold",[kn+"-I"]:"italic"},zn={[Fn]:"\u6DFB\u52A0\u94FE\u63A5",[Gn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[kt]:"\u6DFB\u52A0\u56FE\u7247",[In]:"\u6DFB\u52A0\u753B\u56FE",[Ft]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[na]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Jn=({defaultValue:ht="",onChange:yt,width:pt="100%",height:sn=400,miniToolbar:En=!1,isFocus:gn=!1,watch:Qn,insertTemp:_n,mode:Hn="markdown",id:Pa="markdown-editor-id",showResizeBar:Qa=!1,noStorage:Sn=!1,showNullButton:ba=!1,showNullProgramButton:nr=!1,hidetoolBar:gr=!1,fullScreen:$n=!1,onBlur:an,onCMBeforeChange:Rr,onFullScreen:Ja,className:Fr="",disablePaste:Or=!1,disabled:Mr=!1,disabledFill:Xt=!1,placeholder:fn="",values:Pn="",extraUse:pa})=>{const[en,za]=(0,b.useState)(null),[va,ja]=(0,b.useState)(ht),[ia,Rn]=(0,b.useState)(Qn),[Wn,fa]=(0,b.useState)($n),[qn,Xa]=(0,b.useState)(""),[xr,mr]=(0,b.useState)(0),[hr,Qr]=(0,b.useState)(sn),[eo,Yo]=(0,b.useState)(!1),Ti=(0,b.useRef)((0,bt.Z)()),Eo=(0,b.useRef)(!1),Na=(0,b.useRef)(),[oo,po]=(0,b.useState)(0),[Mo,yo]=(0,b.useState)(0),Ao=(0,b.useRef)(),oi=(0,b.useRef)(),$o=(0,b.useRef)(),Ko=(0,b.useRef)(),Ci=()=>mn(void 0,null,function*(){var Ka;const la=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Ti.current}});(Ka=la==null?void 0:la.attachments)!=null&&Ka.length&&(console.log("cm:",en,Ao),la.attachments.map(ca=>{ca.content_type.indexOf("image")>-1?en.replaceSelection(``):ca.content_type.indexOf("video")>-1?en.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):ca.content_type.indexOf("pdf")>-1?en.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${ca.id}?type=${ca.content_type}&disposition=inline" target="_blank">${ca.name}</a>`):en.replaceSelection(`[${ca.name}](${ENV.API_SERVER}/api/attachments/${ca.id}?type=${ca.content_type})`)}))});(0,b.useEffect)(()=>{const Ka=window.scrollY||window.pageYOffset;ja(Pn),en==null||en.setValue(Pn),window.scrollTo(0,Ka)},[Pn]),(0,b.useEffect)(()=>{Ja==null||Ja(Wn)},[Wn]),(0,b.useEffect)(()=>{if(Ao.current){let Ka=function(ca,Fa){var wr;if(Or){Fa.preventDefault();return}const Gr=Fa.clipboardData;if(Gr){const lo=Gr.types.toString(),vo=Gr.items;if(lo==="Files"||Gr.types.indexOf("Files")>-1){if(Fa.preventDefault(),Hn=="stex")return;try{let Io=vo[1];((wr=vo[0])==null?void 0:wr.kind)==="file"&&(Io=vo[0]);const Fo=Io.getAsFile(),Va=Fo.name.split(".").pop();(0,Qe.I)(Fo,Ho=>{var Bi,si,ki;Ho.id?((Bi=Fo==null?void 0:Fo.type)==null?void 0:Bi.indexOf("image"))>-1?la.replaceSelection(`<img width="100%" src="/api/attachments/${Ho.id}?type=${Ho.content_type})" alt="" />`):((si=Fo==null?void 0:Fo.type)==null?void 0:si.indexOf("video"))>-1?la.replaceSelection(`<video width="100%" controls src="/api/attachments/${Ho.id}"></video>`):((ki=Fo==null?void 0:Fo.type)==null?void 0:ki.indexOf("pdf"))>-1?la.replaceSelection(`<a href="/api/attachments/${Ho.id}?type=${Fo.type}&disposition=inline" target="_blank">${Fo.name}</a>`):vt.includes(Va)?la.replaceSelection(`<a href="/api/attachments/${Ho.id}?type=office&disposition=inline" target="_blank">${Fo.name}</a>`):la.replaceSelection(`[${Fo.name}](/api/attachments/${Ho.id}?type=${Ho.content_type})`):(Ho==null?void 0:Ho.status)===401&&(Yt.ZP.warning((Ho==null?void 0:Ho.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Io){Yt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const la=Ce().fromTextArea(Ao.current,{mode:Hn,lineNumbers:!En,lineWrapping:!0,value:ht,autoCloseTags:!nr,autoCloseBrackets:!0});return la.on("keyup",function(ca,Fa){Fa.keyCode===8&&(ca.getValue()==""?la.setOption("placeholder",fn):la.setOption("placeholder",null))}),la.on("keydown",function(ca,Fa){if(Fa.keyCode===8){var wr=bo(ca);wr&&Fa.preventDefault()}}),gn&&la.focus(),la.on("paste",Ka),la.on("dragleave",function(ca,Fa){oi.current.classList.remove("mouse-hover-md")}),Mr&&la.on("beforeChange",function(ca,Fa){(Fa.origin==="paste"||Fa.origin==="+input")&&Fa.cancel()}),za(la),()=>{la.off("paste",Ka)}}},[]);const Qo=(0,b.useCallback)(()=>{if(oi.current)try{}catch(Ka){console.log(Ka,"---- to set md editor body height")}},[hr,oi,Wn]);(0,b.useEffect)(()=>{function Ka(){let la=new Fe.Z(ca=>{for(let Fa of ca)(Fa.target.offsetHeight>0||Fa.target.offsetWidth>0)&&(Qo(),en.setSize("100%","100%"),en.refresh())});return la.observe(Ao.current.parentElement),la}if(en){const la=Ka();return()=>{var ca,Fa;(ca=Ao.current)!=null&&ca.parentElement&&la.unobserve((Fa=Ao.current)==null?void 0:Fa.parentElement)}}},[en,Qo]),(0,b.useEffect)(()=>{if(en){let Ka=[];for(const[la,ca]of Object.entries(xn)){let Fa={[la]:()=>{xi(ca)}};Ka.push(Fa),en.addKeyMap(Fa)}return Na.current=setInterval(()=>{Eo.current&&Ci()},4e3),()=>{clearInterval(Na.current);for(let la of Ka)en.removeKeyMap(la)}}},[en]),(0,b.useEffect)(()=>{$n!==Wn&&fa($n)},[$n]),(0,$t.Z)(()=>{if(!Sn&&xr>0){let Ka=new Date().getTime(),la=window.sessionStorage.getItem(Pa);Ka>=xr+Ha&&(!la||la!==va)&&(window.sessionStorage.setItem(Pa,va),Yo(!0))}},Ha),(0,b.useEffect)(()=>{Rn(Qn)},[en,Qn]),(0,b.useEffect)(()=>{en&&gn&&en.focus()},[en,gn]),(0,b.useEffect)(()=>{if(ia&&en){let Ka=function(ca){let Fa=ca.target;if(Ko.current){let wr=Fa.scrollTop/Fa.scrollHeight;Ko.current.scrollTop=Ko.current.scrollHeight*wr}};const la=en.getScrollerElement();return la.addEventListener("scroll",Ka),()=>{la.removeEventListener("scroll",Ka)}}},[en,ia]),(0,b.useEffect)(()=>{if(en&&Rr){let Ka=function(la,ca){Rr(la,ca)};return en.on("beforeChange",Ka),()=>{en.off("beforeChange",Ka)}}},[en,Rr]),(0,b.useEffect)(()=>{if(en&&an){let Ka=function(){an(en.getValue())};return en.on("blur",Ka),()=>{en.off("blur",Ka)}}},[en,an]);function bo(Ka,la){var ca=Ka.getDoc(),Fa=ca.getCursor(),wr=ca.getLine(Fa.line),Gr=wr.charAt(Fa.ch-1),lo=wr.lastIndexOf("@\u2581@",Fa.ch),vo=wr.lastIndexOf("@\u2581\u2581@",Fa.ch),Io=lo>vo?lo:vo,Fo=lo>vo?3:4;if(aa.indexOf(Gr)===-1)return null;if(console.log("change1:",la,Ka,wr,Fa,Io,lo,vo,Gr),Io>=0&&Fa.ch-Io<5){var Va=Io+Fo;return ca.replaceRange("",{line:Fa.line,ch:Io},{line:Fa.line,ch:Va}),{line:Fa.line,ch:Va}}return null}(0,b.useEffect)(()=>{if(en){let Ka=function(la,ca){const Fa=la.getValue();ja(Fa),mr(new Date().getTime()),la.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),yt&&(nr?yt(Fa,Ki(Fa)):yt(Fa))};return en.on("change",Ka),()=>{en.off("change",Ka)}}},[en,yt]),(0,b.useEffect)(()=>{if(en)if(ht==null)en.setValue(""),ja("");else{const Ka=window.scrollY||window.pageYOffset;ht!==en.getValue()&&(en.setValue(ht),ja(ht),en.setCursor(Mr?1:en.lineCount(),0),window.scrollTo(0,Ka))}},[en,ht]);const xi=(0,b.useCallback)(Ka=>{const la=en.getCursor(),ca=en.getSelection();let Fa=ca.split(`
|
|
`);switch(Ka){case"bold":return en.replaceSelection("**"+ca+"**"),ca===""&&en.setCursor(la.line,la.ch+2),en.focus();case"italic":return en.replaceSelection("*"+ca+"*"),ca===""&&en.setCursor(la.line,la.ch+1),en.focus();case"code":return en.replaceSelection("`"+ca+"`"),ca===""&&en.setCursor(la.line,la.ch+1),en.focus();case"inline-latex":return Xa("inline-latex"),en.focus();case"latex":return en.replaceSelection("```latex\n"+ca+"\n```"),en.setCursor(la.line+1,ca.length+1),en.focus();case"line-break":return en.replaceSelection(`<br/>
|
|
`),en.focus();case"list-ul":return ca===""?en.replaceSelection("- "+ca):en.replaceSelection(Fa.map(wr=>wr===""?"":`- ${wr}`).join(`
|
|
`)),en.focus();case"list-ol":return ca===""?en.replaceSelection("1. "+ca):en.replaceSelection(Fa.map((wr,Gr)=>wr===""?"":`${Gr+1}. ${wr}`).join(`
|
|
`)),en.focus();case"add-null-ch":return ca===""&&en.setCursor(la.line,la.ch),en.replaceSelection($a),en.focus();case"add-signal":return ca===""&&en.setCursor(la.line,la.ch),en.replaceSelection(vn),en.focus();case"add-multiple":return ca===""&&en.setCursor(la.line,la.ch),en.replaceSelection(aa),en.focus();case"inster-template-1":return ca===""&&en.setCursor(la.line,la.ch),en.replaceSelection(ka),en.focus();case"eraser":return en.setValue(""),en.focus();case"trigger-watch":return Rn(!ia),en.focus();case"trigger-full-screen":return fa(!Wn),en.focus();case Fn:Xa(Fn);return;case Gn:Xa(Gn);return;case kt:Xa(kt);return;case In:Xa(In);return;case"maths-latex":Xa("maths-latex");return;case Ft:Xa(Ft);return;case na:Xa(na);return;default:throw new Error}},[en,ia,Wn]),Co=(0,b.useCallback)((Ka,la)=>{var ca,Fa,wr,Gr,lo,vo;switch(Xa(""),qn){case Fn:const{title:Bi,link:si}=Ka;return en.replaceSelection(`[${Bi}](${si})`),en.focus();case Gn:const{language:ki,content:Zi}=Ka;return en.replaceSelection(["```"+ki,Zi,"```"].join(`
|
|
`)),en.focus();case"maths-latex":for(var Io=atob(Ka),Fo=new Uint8Array(Io.length),Va=0;Va<Io.length;Va++)Fo[Va]=Io.charCodeAt(Va);var Ho=new Blob([Fo],{type:"image/png"});(0,Qe.I)(Ho,ko=>{ko.id?en.replaceSelection(``):(ko==null?void 0:ko.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":en.replaceSelection("`$$"+Ka+"$$`");break;case kt:case In:case jn:const{src:zi,alt:Yr}=Ka,_o=la,ol=(wr=(Fa=(ca=_o==null?void 0:_o.name)==null?void 0:ca.split("."))==null?void 0:Fa.pop)==null?void 0:wr.call(Fa);return((Gr=_o==null?void 0:_o.type)==null?void 0:Gr.indexOf("image"))>-1||!(_o!=null&&_o.type)?_o.align||_o.width?en.replaceSelection(`<p style="text-align:${_o.align||"initial"}"><img width="${_o.width?_o.width+"%":"initial"}" src="${zi}" alt="${Yr||""}" /></p>`):en.replaceSelection(`<img width="100%" src="${zi}" alt="${Yr||""}" />`):((lo=_o==null?void 0:_o.type)==null?void 0:lo.indexOf("video"))>-1?en.replaceSelection(`<video width="100%" controls src="${zi}"></video>`):((vo=_o==null?void 0:_o.type)==null?void 0:vo.indexOf("pdf"))>-1?en.replaceSelection(`<a href="${zi}?type=${_o.type}&disposition=inline" target="_blank">${_o.name}</a>`):vt.includes(ol)?en.replaceSelection(`<a href="${zi}?type=office&disposition=inline" target="_blank">${_o.name}</a>`):en.replaceSelection(`[${_o.name}](${zi})`),en.focus();case na:const{row:vi,col:Vi,align:il}=Ka;let $i=`
|
|
`;for(let ko=0;ko<vi;ko++){let qi=[],el=[];for(let ll=0;ll<Vi;ll++)ko===1&&el.push(nn[il]),qi.push(" ");ko===1&&($i+=`| ${el.join(" | ")} |
|
|
`),$i+=`| ${qi.join(Vi===1?"":" | ")} |
|
|
`}return en.replaceSelection($i+`
|
|
`),en.focus();default:throw new Error}},[en,qn]),Mi=(0,b.useMemo)(()=>{switch(qn){case Fn:return b.createElement(jt,{callback:Co,onCancel:ai});case Gn:return b.createElement(Kt.Z,{callback:Co,onCancel:ai});case kt:return b.createElement(Qe.Z,{callback:Co,onCancel:ai});case Ft:return b.createElement(wt,{callback:Co,onCancel:ai});case na:return b.createElement(Te,{callback:Co,onCancel:ai});case"maths-latex":return b.createElement(Ut,{showSaveButton:!0,callback:Co});case"inline-latex":return b.createElement(qt.Z,{showSaveButton:!0,callback:Co});default:return null}},[qn]);function ai(){Xa("")}(0,b.useEffect)(()=>{if($o.current){let Ka=function(lo){wr=!0,Gr=lo.pageY},la=function(){wr=!1},ca=function(lo){if(wr){let vo=lo.pageY-Gr;vo<0&&(vo=0),vo>300&&(vo=300);let Io=sn+vo+"px";Qr(Io)}},Fa=$o.current,wr=!1,Gr=0;return Fa.addEventListener("mousedown",Ka),document.addEventListener("mousemove",ca),document.addEventListener("mouseup",la),()=>{Fa.removeEventListener("mousedown",Ka),document.removeEventListener("mousemove",ca),document.removeEventListener("mouseup",la)}}},[en,$o]),(0,b.useEffect)(()=>{Qr(sn)},[sn]);const Wi=cn(pt),Di=cn(hr),_i={width:Wi,height:Di},qo=(0,b.useMemo)(()=>{if(xr){let Ka=new Date(xr),la=Ka.getHours(),ca=Ka.getMinutes(),Fa=Ka.getSeconds();return la=la<10?"0"+la:la,ca=ca<10?"0"+ca:ca,Fa=Fa<10?"0"+Fa:Fa,`${la}:${ca}:${Fa}`}return 0},[xr]),Ki=Ka=>{const la=[];if(nr){let ca=-1;Ka=Ka.replace(/(@▁▁@|@▁@)/g,function(Fa,wr,Gr){la.push({multiLine:Fa!==vn})})}return la};function pl(){window.sessionStorage.removeItem(Pa),Yo(!1),mr(0)}function Xi(){Yo(!1),mr(0),en.setValue(window.sessionStorage.getItem(Pa))}(0,b.useEffect)(()=>{zn[qn]&&qn!==In&&qn!==Ft&&setTimeout(()=>{const Ka=document.getElementsByClassName("markdown-popup-form")[0],la=window.innerWidth/2-Ka.offsetWidth/2,ca=window.innerHeight/2-Ka.offsetHeight/2;po(la),yo(ca)},0)},[qn]);const Yi=Ka=>{Ka.preventDefault();const la=Ka.clientX-oo,ca=Ka.clientY-Mo;document.body.onmousemove=Fa=>{let wr=Fa.clientX-la,Gr=Fa.clientY-ca;const lo=document.getElementsByClassName("markdown-popup-form")[0],vo=window.innerWidth-lo.offsetWidth,Io=window.innerHeight-lo.offsetHeight;wr=Math.max(0,Math.min(wr,vo)),Gr=Math.max(0,Math.min(Gr,Io)),Xr(Fa.clientX,Fa.clientY,la,ca)&&(po(wr),yo(Gr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Xr=(Ka,la,ca,Fa)=>{const wr=document.body.clientHeight,Gr=document.body.clientWidth;return Ka<20&&ca>Ka||Ka>Gr-20&&ca<Ka||la<20&&Fa>la||la>wr-20&&Fa<la?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return b.createElement(b.Fragment,null,b.createElement("div",{className:"markdown-editor-wrapper",ref:oi},b.createElement("div",{className:`markdown-editor-container ${Fr} ${ia?"on-preview":""} ${En?"mini":""} ${Wn?"full-screen":""}`,style:_i},b.createElement(ge,{insertTemp:_n,watch:ia,fullScreen:Wn,showNullButton:ba,showNullProgramButton:nr,onActionCallback:xi,hidetoolBar:gr,extraUse:pa}),b.createElement("div",{className:"markdown-editor-body"},b.createElement("div",{className:"codemirror-container"},b.createElement("textarea",{ref:Ao,placeholder:fn})),ia?b.createElement("div",{ref:Ko,className:"preview-container"},Hn==="stex"&&b.createElement(je,{value:va}),Hn!=="stex"&&b.createElement(ke.Z,{disabledFill:Xt,showProgramFill:nr,value:va})):null))),Qa?b.createElement("a",{ref:$o,className:"editor-resize"}):null,qn===In&&b.createElement(Vt,{callback:Co,onCancel:ai}),qn===Ft&&b.createElement(wt,{callback:Co,onCancel:ai}),b.createElement(ye.Z,null,zn[qn]&&qn!==In&&qn!==Ft?b.createElement(et.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:oo,top:Mo},title:b.createElement("div",{style:{cursor:"move"},onMouseDown:Yi},zn[qn]),open:!0,onCancel:ai,footer:null,destroyOnClose:!0,width:qn===Ft?"1200px":null,height:qn===Ft?"80vh":null,className:"markdown-popup-form"},Mi):null))}},45596:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return pe},I:function(){return ye}});var b=ae(78241),se=ae(8591),Ce=ae(92832),Fe=ae(81327),Oe=ae(5871),Re=ae(5112),ue=ae(3113),Ze=ae(67303),We=ae(59301),_e=ae(34055),ke=ae(59301),je=Object.defineProperty,Ie=Object.defineProperties,le=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,y=(Ee,we,ve)=>we in Ee?je(Ee,we,{enumerable:!0,configurable:!0,writable:!0,value:ve}):Ee[we]=ve,z=(Ee,we)=>{for(var ve in we||(we={}))a.call(we,ve)&&y(Ee,ve,we[ve]);if(E)for(var ve of E(we))x.call(we,ve)&&y(Ee,ve,we[ve]);return Ee},te=(Ee,we)=>Ie(Ee,le(we));const{useForm:re}=b.default,ie={width:280,marginRight:10},ce={labelCol:{span:5},wrapperCol:{span:19}};var pe=({callback:Ee,onCancel:we})=>{const[ve]=re();let Je=(0,We.useRef)();function Ge(Ue){Je.current.width=ve.getFieldValue("width"),Je.current.align=ve.getFieldValue("align"),Ee(Ue,Je.current)}function ot(Ue,st){if(Ue.status===-1){se.ZP.error(Ue.message);return}ve.setFieldsValue({src:`/api/attachments/${Ue.id}`,type:st.type})}function Le(Ue){let st=Ue.target.files[0];Je.current=st,ye(st,ot)}return ke.createElement(b.default,te(z({form:ve},ce),{className:"upload-image-panel",onFinish:Ge,style:{width:470,overflow:"hidden"}}),ke.createElement(b.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ke.createElement("div",{className:"flex-container"},ke.createElement(b.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},ke.createElement(Ce.default,{style:ie})),ke.createElement(ge,{onFileChange:Le}))),ke.createElement(b.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ke.createElement(Ce.default,{style:{width:264}})),ke.createElement(b.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ke.createElement(Fe.Z,null,ke.createElement(b.default.Item,{name:"width",style:{margin:0}},ke.createElement(Oe.Z,{style:{width:264}})),ke.createElement("span",{className:"ml8"},"%"))),ke.createElement(b.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ke.createElement(Re.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"}]})),ke.createElement("aside",null,ke.createElement(b.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ke.createElement(ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ke.createElement(ue.ZP,{type:"default",onClick:we},"\u53D6\u6D88"))))};function ge({onFileChange:Ee}){return ke.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ke.createElement("input",{type:"file",onChange:Ee}))}function ye(Ee,we){if(!Ee)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,_e.bg)())throw se.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let ve=new FormData;ve.append("editormd-image-file",Ee),ve.append("file_param_name","editormd-image-file"),ve.append("byxhr","true");var Je=new window.XMLHttpRequest;Je.withCredentials=!0,Je.addEventListener("load",function(Ge){we(JSON.parse(Ge.target.responseText),Ee)},!1),Je.addEventListener("error",function(Ge){console.error(Ge)},!1),Je.open("POST",`${Ze.KI}/api/attachments.json`),Je.send(ve)}},75790:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return Ce}});var b=ae(59301),se=ae(4676);class Ce extends b.Component{constructor(Oe){super(Oe);const Re=window.document;this.node=Re.createElement("div"),Re.body.appendChild(this.node)}render(){const{children:Oe}=this.props;return(0,se.createPortal)(Oe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},4573:function(Ot,Rt,ae){"use strict";ae.d(Rt,{i:function(){return ie},Z:function(){return pe}});var b={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf"},se=ae(71418),Ce=ae(6848),Fe=ae(92310),Oe=ae.n(Fe),Re=ae(49661),ue=ae(57884),Ze=ae(34055),We="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAgCAYAAAD+Fz2gAAAAAXNSR0IArs4c6QAAEx5JREFUaEPFWwd4FWW6fueE9NATIEAoKkWKgIKVEkBgl2LB6159EFdRwHVd9a67SC+ryFVBEDGAUq57d0WUK6DuigYSeglFMJQIhBJSIIYUQgohObPP9/1l/pmcE7h9nvCcc+bMzJn53v/9vvcrWABQfuovrf3VeMeClWhbVrwFC5Zl0Vfi1aLP/EHu976K42wAtmXBx2cCtk9ew+ZT+bsbbT4/XUWeT1cUf4Bt61faY9v8a2I/vxXn0X7+p86l/bYftu3n7/30Sof6bdAd2351LXmMOl++0nUt/hlxnrg+vVe/6xfPbRwv7oeuJ+5RfUdPz/uMe5VP5zwfkOeDf6tlhUxqPXxOtkXgVFfVHLFgNYHlcwBRIBE+cIPEexg4+hPn0K0IPCz4A4GkrH4DkCxpEDa2fCAFqzC8AsMBifYLI6p93vdkUGUwtzEtCZC4bg0bXxnRNDrdlwBIfG8eoxZP3SCJc+sEicEUhvLBLrQsXw+r5Ognn8LGk4IoPiiQhB1vzCQ+XjHNeP2/AUkZU8JpgCRWr1yxinFy9bu+IyYZrAH8sP3ECsVOBwx1nGCPGyTN8kDg/ReYxDaFf41Vkr46F0C8MLRihmCFCyT6zNDyUYI9wu8J1+cB0+XuDPemndz/GJMcZvDyq5NJjrsz2cbuTrNPuLCgTGIXLFZ6IDa5wPeCZSwUuXoMN6h8huPOfUCeVXxklc1xQxpbAENGDwSSdHcBQFJgmbGrbpAEyHVtprvjCEKuTDyZwoJdV22myIf0xCV9nAGAMiiBJK0ury9B0oDUzSSXy6sVkxw26vgp783P7tkBnRjMhqF7pEVfdHilrYSAIEMgJhmCQbmx/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gsJq7R0tDts5doBpXt0zSZrPZDuXGsUGiDNZjoMRmnNz1cjLVawDFru3Zc+C62+QKnYsN7s14F1YyWSbRXkxS96d0XOEzd06QeKtBzZT7jRhrs3d6NUDELaXAqCrgjiVuJuljyLJyzZkkZxtE3YkdSyKAlHFkx1TMVtu1OW+QbAPzz/n5AWJ8WAzLF9A65+dzs3A2uioOjkFIeZ63u1PzFNRdFfmYPqvl5fc0d1c4k8SwiavhxzHSG4J5+cQZuyvLyzwSSBt8BZJgESwsN65snmj3gzR3xh6YujGOSVMPo8sxK8dcHWudc6Z4dWVJZIv5Bn93p40Y84KdYpJzQ/Dz6PHEvcoaIfGP2VMyv4CglP/0qgjYNKAh2oH6vANrJ4kejl6qIReYrwtzgmT/LwknSFTisazUUITWNi5vmiDaDdydqHxIGNgGycki263pBtRjDLMbY1MhICnprTPJluBONyjvj7tAPq5cMEjq+x8ZJJ5AcRDceZL3LHhhINn/lUUySVsXSIJlbgvNCx4WHv3+VWPXvL6sZt8/v/t/ZcDiwhxFgaLp8YdFs4Dx64oxwbfTrmwDrBivpR4DVDQDF/VqYsf+ef3L5SDvAGCVcy/4GKCimrho1yv3tWdR3xgzD9ssC8H6ko8BKpqBi3q1I77sXvBef9M0HX3kxwAV1cRFu95PALhFw2OAimbgol7tB5BbNDwGqKgmLtr1nhJaFw2PASqagYt6db45jhQNMf0Xi7mnon7V4+sfxQIFJqFMNES/v3D+oyz8+Jp/jgX+AT+bS/shEzsoAAAAAElFTkSuQmCC",re=ae(59301);const ie=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:We,swimg:_e},{name:"101\u8BA1\u5212",ptimg:ke,swimg:je},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:Ie,swimg:le},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:E,swimg:a},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:x,swimg:y},{name:"\u519B\u961F\u4E00\u6D41",ptimg:z,swimg:te}];var pe=({className:ge,dataSource:ye=[],col:Ee=4,right:we,bottom:ve=23,precision:Je=0,wrapWidth:Ge=1200,trackEventItems:ot,loading:Le,onRemove:Ue=()=>{},isCurrent:st=!0,showAlias:Ke=!1})=>{const rt=Math.floor((Ge-(Ee-1)*we)/Ee),Ht=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map(it=>(window.ENV==="build"&&(it.ptimg=`/react/build${it.ptimg}`,it.swimg=`/react/build${it.swimg}`),it));return re.createElement(se.Z,{spinning:Le},re.createElement("div",{className:Oe()(b.list,ge)},!!(ye!=null&&ye.length)&&(ye==null?void 0:ye.map((it,jt)=>{var Kt;const{name:Qe,id:et,identifier:Dt,featured:tn,school_name:Et,image_url:Vt,excellent:Be,is_plan:Gt}=it;return re.createElement("div",{key:et,className:b.wrap,style:{width:rt,marginRight:(1+jt)%Ee===0?0:we+Je,marginBottom:ve}},re.createElement("a",{className:b.li,onClick:bn=>{bn.preventDefault(),bn.stopPropagation(),ot&&(0,Re.L9)([ot]),(0,Re.xg)(`/paths/${Dt}`)}},re.createElement("div",{className:b.img},re.createElement("img",{className:b.cover,src:`${Vt}`}),st&&(0,Ze.bg)()&&(it==null?void 0:it.studying)&&re.createElement("div",{className:`${b.movebq} user-path-items`,onClick:bn=>{bn.stopPropagation(),Ue(it)}},re.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),re.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Kt=it==null?void 0:it.subject_tags)==null?void 0:Kt.map((bn,Bt)=>{var At,tt;if(Bt===0){const De=(At=Ht.find(he=>he.name==bn))==null?void 0:At.swimg;return re.createElement("img",{className:b.sign,src:De,style:{left:"-4px"}})}const Ve=(tt=Ht.find(De=>De.name==bn))==null?void 0:tt.ptimg;return re.createElement("img",{className:b.sign,src:Ve,style:{left:`${48+52*(Bt-1)+2*Bt}px`}})}),re.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(it==null?void 0:it.excellent)&&re.createElement("div",{className:b.bq},"\u5F00\u653E\u8BFE\u7A0B"))),re.createElement("div",{className:b.name},re.createElement(Ce.Z,{title:Ke&&(it!=null&&it.excellent_alias_name)?re.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Qe}`,re.createElement("br",null),re.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${it==null?void 0:it.excellent_alias_name}`)):Qe},re.createElement("span",{className:b.e},Ke&&(it==null?void 0:it.excellent_alias_name)||Qe))),re.createElement("div",{className:b.tags},re.createElement("div",null,re.createElement(Ce.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},re.createElement("span",null,re.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),re.createElement("span",null,it.stages_count))),re.createElement(Ce.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},re.createElement("span",null,re.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),re.createElement("span",null,it.members_count)))))))})),!ye.length&&re.createElement(ue.Z,null)))}},89831:function(Ot,Rt,ae){"use strict";ae.d(Rt,{jL:function(){return Oe},w9:function(){return tn},QD:function(){return jn},cQ:function(){return jt.Z},op:function(){return bt},O5:function(){return Jn},_b:function(){return mn},t7:function(){return pe},Gi:function(){return Bt},YG:function(){return Gt},qp:function(){return x},vr:function(){return La},qE:function(){return kt},Je:function(){return Ee},wb:function(){return it},cq:function(){return nt},tp:function(){return te},Si:function(){return pt},k8:function(){return Mr},Du:function(){return Qa}});var b=ae(59301),se={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},Ce="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA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qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Oe=({dataSource:Xt=[],img:fn,imgWidth:Pn=346,title:pa,sunTitle:en,bannerExtraContent:za})=>b.createElement("div",{className:se.banner},b.createElement("div",{className:se.content},b.createElement("aside",null,b.createElement("p",null,b.createElement("b",null,pa),b.createElement("span",null,en)),Xt.length>0&&b.createElement("div",{className:se.btns},Xt.map((va,ja)=>b.createElement("div",{key:ja,onClick:va.click},va.name,va.sign?b.createElement("img",{src:Ce,width:39}):null))),za),fn&&b.createElement("img",{style:{marginTop:33,marginRight:38},src:fn,width:Pn}))),Re={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},ue=ae(92310),Ze=ae.n(ue),We=ae(89392),_e=Object.defineProperty,ke=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,le=(Xt,fn,Pn)=>fn in Xt?_e(Xt,fn,{enumerable:!0,configurable:!0,writable:!0,value:Pn}):Xt[fn]=Pn,E=(Xt,fn)=>{for(var Pn in fn||(fn={}))je.call(fn,Pn)&&le(Xt,Pn,fn[Pn]);if(ke)for(var Pn of ke(fn))Ie.call(fn,Pn)&&le(Xt,Pn,fn[Pn]);return Xt},x=({dataSource:Xt=[],value:fn,onChange:Pn,onTitleChange:pa,className:en,title:za,titleWidth:va=41,style:ja={},fontColor:ia="#6A7283",showCount:Rn,classNameActive:Wn,styleItem:fa={}})=>{const[qn,Xa]=(0,b.useState)(0),[xr,mr]=(0,b.useState)(!1),hr=(0,b.useRef)(null),Qr=(0,b.useRef)(null);return(0,b.useEffect)(()=>{var eo;Xt.length!==0&&(((eo=hr==null?void 0:hr.current)==null?void 0:eo.clientHeight)>97?Xa(1):Xa(0)),Xt.length===0&&Xa(0),mr(!1)},[Xt]),b.createElement("div",{className:Ze()(Re.row,en),style:ja},b.createElement("div",{onClick:(0,We.throttle)(()=>pa==null?void 0:pa(),2e3),style:{width:va,marginTop:xr?12:4},className:`${Re.title} ${pa?"current":""}`},za),b.createElement("div",{className:xr?`${Re.tagsWrap} ${Re.tagsBorderWrap}`:Re.tagsWrap},b.createElement("div",{className:Re.bar,ref:Qr,style:qn>0?{height:qn===1?97:"auto",overflow:qn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},b.createElement("div",{className:Re.tag,ref:hr},Xt==null?void 0:Xt.map(eo=>b.createElement("span",{onClick:()=>Pn(eo.id),key:eo.id,style:E(E({color:ia},fa),(eo==null?void 0:eo.style)||{}),className:fn===eo.id?Ze()(Wn||Re.active,eo.classNameActive):""},b.createElement("span",{title:eo.name,className:Re.name},eo.name),!!Rn&&b.createElement("span",{className:Re.num},eo.count))))),!!qn&&b.createElement(b.Fragment,null,qn===1?b.createElement("div",{onClick:()=>{var eo;Xa(2),((eo=hr==null?void 0:hr.current)==null?void 0:eo.clientHeight)>245?mr(!0):mr(!1)},className:Re.action},"\u5C55\u5F00",b.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):b.createElement("div",{onClick:()=>{Qr.current.scrollTop=0,Xa(1),mr(!1)},className:Re.action},"\u6536\u8D77",b.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},y={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},te=({dataSource:Xt=[],value:fn,onChange:Pn,className:pa,style:en={}})=>b.createElement("div",{style:en,className:Ze()(y.tabs,pa)},Xt.map(za=>b.createElement("span",{onClick:()=>Pn(za.id),className:fn===za.id?y.active:"",key:za.id},za.name))),re={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},ie=ae(92832),pe=({dataSource:Xt=[],value:fn="",onChange:Pn,onInputChange:pa=()=>{},className:en,style:za={},placeholder:va,allowClear:ja=!1})=>{var ia;const[Rn,Wn]=(0,b.useState)(""),[fa,qn]=(0,b.useState)("");(0,b.useEffect)(()=>{var mr;let hr=fn;(mr=JSON.stringify(fn))!=null&&mr.includes("{")&&(Wn(fn.id),hr=fn.value||"");try{qn(decodeURIComponent(hr||""))}catch(Qr){qn(decodeURIComponent(hr||""))}},[fn]);const Xa=()=>{Pn(encodeURIComponent(fa),Rn||null)},xr=mr=>{mr!==Rn&&(Wn(mr),Pn(encodeURIComponent(fa),mr))};return b.createElement("div",{className:Ze()(re.input,en),style:za},!!Xt.length&&b.createElement("div",{className:re.dropdown},b.createElement("div",{className:re.text},(ia=Xt.find(mr=>mr.id===Rn))==null?void 0:ia.name,b.createElement("i",{className:"iconfont icon-zhankai4"}),b.createElement("b",{className:re.b1}),b.createElement("b",{className:re.b2})),b.createElement("div",{className:re.menu},Xt.map((mr,hr)=>b.createElement("div",{key:hr,onClick:()=>xr(mr.id)},mr.name)))),b.createElement(ie.default,{onPressEnter:Xa,value:fa,onChange:mr=>{qn(mr.target.value),pa(encodeURIComponent(mr.target.value),Rn||null)},bordered:!1,placeholder:va}),b.createElement("i",{onClick:Xa,className:"iconfont icon-sousuo9 font14 pl10 current"}))},ge={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},Ee=({value:Xt,onChange:fn,className:Pn,total:pa,pageSize:en,style:za={}})=>{const va=Xt<2,ja=Xt>=Math.ceil(pa/en);return pa<=en?b.createElement(b.Fragment,null):b.createElement("div",{className:Ze()(ge.quickPager,Pn),style:za},b.createElement("div",{onClick:()=>{va||fn(Xt-1,"prev")},className:va?ge.disabled:""},"\u4E0A\u4E00\u9875"),b.createElement("div",{onClick:()=>{ja||fn(Xt+1,"next")},className:ja?ge.disabled:""},"\u4E0B\u4E00\u9875"))},we={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},ve=ae(71418),Je=ae(6848),Ge=ae(13570),ot=ae(90524),Le=ae(49661),Ue=ae(96908),st=ae(57177),Ke=ae(81378),rt=ae(57884),it=({className:Xt,dataSource:fn=[],col:Pn=4,right:pa,bottom:en=23,precision:za=0,wrapWidth:va=1200,trackEventItems:ja,loading:ia})=>{const Rn=Math.floor((va-(Pn-1)*pa)/Pn);return b.createElement(ve.Z,{spinning:ia},b.createElement("div",{className:Ze()(we.list,Xt)},!!fn.length&&fn.map((Wn,fa)=>{const{name:qn,id:Xa,identifier:xr,power:mr,cover_image_id:hr,pic:Qr}=Wn;return b.createElement("div",{className:we.wrap,key:Xa,style:{width:Rn,marginRight:(1+fa)%Pn===0?0:pa+za,marginBottom:en}},b.createElement("a",{target:"_blank",href:`/shixuns/${xr}/challenges`,className:we.li,onClick:eo=>{eo.preventDefault(),ja&&(0,Le.L9)([ja]),mr&&(0,Le.xg)(`/shixuns/${xr}/challenges`)}},b.createElement("div",{className:we.img},b.createElement("img",{className:we.cover,src:`${Qr}`}),Wn.is_jupyter&&b.createElement("img",{className:we.sign,src:Ue}),Wn.is_jupyter_lab&&b.createElement("img",{className:we.sign,src:st}),Wn.is_unity_3d&&b.createElement("img",{className:we.sign,src:Ke})),b.createElement("div",{className:we.name},b.createElement(Je.Z,{title:qn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},b.createElement("span",{className:we.e},qn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),b.createElement("div",{className:we.tags},b.createElement(Je.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),b.createElement("span",null,Wn.challenges_count))),!!Wn.myshixuns_count&&b.createElement(Je.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),b.createElement("span",null,Wn.myshixuns_count))),b.createElement(Je.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},b.createElement("span",null,b.createElement("span",null,Wn.level))),b.createElement("div",{className:we.rate},b.createElement(Ge.Z,{allowHalf:!0,disabled:!0,defaultValue:Wn.score_info}),b.createElement("span",null,"\xA0",Wn.score_info?`${Wn.score_info}\u5206`:"5\u5206")))),!mr&&b.createElement("div",{className:we.lockWrap},b.createElement("img",{src:`${ot.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!fn.length&&b.createElement(rt.Z,null)))},jt=ae(4573),Kt={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Qe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9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EHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",et=ae(59301),tn=({className:Xt,dataSource:fn=[],col:Pn=4,right:pa,bottom:en=23,precision:za=0,wrapWidth:va=1200,trackEventItems:ja,loading:ia})=>{const Rn=Math.floor((va-(Pn-1)*pa)/Pn);return et.createElement(ve.Z,{spinning:ia},et.createElement("div",{className:Ze()(Kt.list,Xt)},!!fn.length&&fn.map((Wn,fa)=>{const{subject_identifier:qn,id:Xa,identifier:xr,power:mr}=Wn,hr=Wn.is_public!=0&&Wn.is_public;return et.createElement("div",{className:Kt.wrap,key:Xa,style:{width:Rn,marginRight:(1+fa)%Pn===0?0:pa+za,marginBottom:en}},et.createElement("a",{className:Kt.li,onClick:Qr=>{Qr.preventDefault(),ja&&(0,Le.L9)([ja]),(0,Le.xg)(Wn.first_category_url)}},et.createElement("div",{className:Kt.top},et.createElement(Je.Z,{title:Wn.name},et.createElement("div",{className:Kt.name},Wn.name)),et.createElement("img",{className:Kt.img,src:ot.Z.IMG_SERVER+"/images/"+Wn.avatar_url}),et.createElement("div",{className:Kt.text,title:Wn.creator},Wn.creator),qn&&et.createElement("div",{className:Kt.btns},et.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),et.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),hr&&et.createElement("div",{className:Kt.sign},"\u516C\u5F00")),et.createElement("div",{className:Kt.bottom},Wn.visits>0&&et.createElement(Je.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},et.createElement("span",null,et.createElement("i",{className:"iconfont icon-liulanyan"}),et.createElement("span",null,Wn.visits))),Wn.course_members_count>0&&et.createElement(Je.Z,{title:"\u6210\u5458",placement:"bottom"},et.createElement("span",null,et.createElement("i",{className:"iconfont icon-chengyuan"}),Wn.course_members_count)),Wn.tasks_count>0&&et.createElement(Je.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},et.createElement("span",null,et.createElement("i",{className:"iconfont icon-zuoye"}),Wn.tasks_count)),Wn.is_end?et.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):et.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Wn.is_accessible&&et.createElement("div",{className:Kt.lockWrap},et.createElement("img",{src:`${ot.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),et.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!fn.length&&et.createElement(rt.Z,null)))},Et={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},Vt=ae(76560),Gt=({dataSource:Xt=[],value:fn,onChange:Pn,className:pa,style:en={},tabBarExtraContent:za})=>b.createElement("div",{className:Ze()(Et.tabs,pa),style:en},b.createElement("div",{className:Et.tabsWrap},Xt.map((va,ja)=>b.createElement("aside",{className:Et.tab,onClick:()=>{Pn(va.id),va.link&&Vt.history.push(va.link)},key:ja},b.createElement("div",{className:fn===va.id?Et.active:""},va.name),(va==null?void 0:va.resetCount)==null&&(va==null?void 0:va.total)!==void 0&&b.createElement("span",null,"\uFF08",va==null?void 0:va.total,"\uFF09"),(va==null?void 0:va.resetCount)!==void 0&&(va==null?void 0:va.total)!==void 0&&b.createElement(Je.Z,{title:(va==null?void 0:va.tip)!=null?va==null?void 0:va.tip:""},b.createElement("span",{style:{color:"#9096A3"}},"\uFF08",b.createElement("span",{style:{color:"#000"}},va==null?void 0:va.resetCount),"/",b.createElement("span",null,va==null?void 0:va.total),"\uFF09"))))),b.createElement("div",{className:Et.tabBar},za)),Bt=({className:Xt,style:fn={},children:Pn})=>b.createElement("div",{className:Ze()(Xt),style:fn},Pn),At={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},tt=ae(38854),Ve=ae(20834);const De=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var nt=({sortValue:Xt,dropValue:fn,className:Pn,onSort:pa,onDrop:en,dataSource:za=De})=>{var va;return b.createElement("div",{className:Ze()(At.orderWrap,Pn)},b.createElement(tt.Z,{dropdownRender:()=>b.createElement(Ve.default,null,za.map((ja,ia)=>b.createElement(Ve.default.Item,{key:ia,onClick:()=>en(ja.id)},ja.name)))},b.createElement("span",{className:At.orderTextWrap},(va=za.find(ja=>fn===ja.id))==null?void 0:va.name)),b.createElement("span",{className:At.orderIconWrap},b.createElement("span",{className:At.orderAsc},b.createElement("i",{className:Xt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${At.cursorPointer} ${At.active}`:`iconfont icon-sanjiaoxing-up font12 ${At.cursorPointer}`,onClick:()=>pa(Xt==="asc"?"desc":"asc")})),b.createElement("span",{className:At.orderDesc},b.createElement("i",{className:Xt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${At.cursorPointer} ${At.active}`:`iconfont icon-sanjiaoxing-down font12 ${At.cursorPointer}`,onClick:()=>pa(Xt==="asc"?"desc":"asc")}))))},wt={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v",ThemeOne:"ThemeOne___iCQio"},Ae=ae(3113),be=ae(22688),gt=Object.defineProperty,Xe=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,ln=(Xt,fn,Pn)=>fn in Xt?gt(Xt,fn,{enumerable:!0,configurable:!0,writable:!0,value:Pn}):Xt[fn]=Pn,Lt=(Xt,fn)=>{for(var Pn in fn||(fn={}))Te.call(fn,Pn)&&ln(Xt,Pn,fn[Pn]);if(Xe)for(var Pn of Xe(fn))St.call(fn,Pn)&&ln(Xt,Pn,fn[Pn]);return Xt},Jt=(Xt,fn)=>{var Pn={};for(var pa in Xt)Te.call(Xt,pa)&&fn.indexOf(pa)<0&&(Pn[pa]=Xt[pa]);if(Xt!=null&&Xe)for(var pa of Xe(Xt))fn.indexOf(pa)<0&&St.call(Xt,pa)&&(Pn[pa]=Xt[pa]);return Pn},Ut=(Xt,fn,Pn)=>new Promise((pa,en)=>{var za=ia=>{try{ja(Pn.next(ia))}catch(Rn){en(Rn)}},va=ia=>{try{ja(Pn.throw(ia))}catch(Rn){en(Rn)}},ja=ia=>ia.done?pa(ia.value):Promise.resolve(ia.value).then(za,va);ja((Pn=Pn.apply(Xt,fn)).next())}),bt=Xt=>{var fn=Xt,{className:Pn,style:pa,children:en,loading:za=!1,openLoading:va,onClick:ja=()=>{},size:ia="middle",shape:Rn="round",theme:Wn}=fn,fa=Jt(fn,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[qn,Xa]=(0,b.useState)(!1),xr=(0,b.useMemo)(()=>{switch(Wn){case be.Fy.THEMEONE:return wt.ThemeOne;case be.Fy.DEFAULT:default:return wt.btn}},[Wn]);return b.createElement(Ae.ZP,Lt({onClick:(0,We.throttle)(mr=>Ut(void 0,null,function*(){va&&Xa(!0);try{yield ja(mr)}catch(hr){console.log("error",hr)}va&&Xa(!1)}),2e3,{leading:!0,trailing:!1}),className:Ze()(xr,wt[`${ia}-${Rn}`],Pn),style:pa,size:ia,shape:Rn,loading:qn||za},fa),en)},Yt={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},kt=({className:Xt,style:fn,children:Pn=null,onClick:pa,title:en})=>b.createElement("div",{className:Ze()(Yt.head,Xt),style:fn},b.createElement("span",{className:"primary-hover",onClick:pa},b.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),b.createElement("b",{title:en},en),b.createElement("div",{className:Yt.node},Pn)),Ft={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},jn=({confirmShow:Xt=!0,confirmTitle:fn,confirmClick:Pn,cancelShow:pa=!0,cancelTitle:en,cancelClick:za,className:va,style:ja,confirmLoading:ia=!1})=>b.createElement("div",{className:Ze()(Ft.btns,va),style:ja},Xt&&b.createElement(Ae.ZP,{loading:ia,onClick:Pn,type:"primary",className:Ft.confirm},fn),pa&&b.createElement(Ae.ZP,{onClick:za,className:Ft.cancel},en)),Gn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},La=({className:Xt,style:fn={},LeftContent:Pn,children:pa,RightContent:en})=>b.createElement("div",{className:Ze()(Gn.fixedBottom,Xt),style:fn},b.createElement("div",{className:Gn.wrap},b.createElement("div",{className:Gn.left},Pn),b.createElement("div",{className:Gn.center},pa),b.createElement("div",{className:Gn.right},en))),nn={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},mn=({className:Xt,style:fn={},dataSource:Pn=[]})=>b.createElement("div",{className:Ze()(nn.crumbs,Xt),style:fn},Pn.map((pa,en)=>en<Pn.length-1?b.createElement(b.Fragment,{key:en},pa.path||pa.onClick?b.createElement("span",{className:nn.hover,onClick:pa!=null&&pa.onClick?pa.onClick:()=>Vt.history.push(pa.path)},pa.name):b.createElement("span",null,pa.name),b.createElement("span",null,"\xA0",">","\xA0")):b.createElement("span",{key:en,style:{color:"#5F6368"}},pa.name))),Zn=ae(31797),Cn=Object.defineProperty,Ha=Object.defineProperties,$a=Object.getOwnPropertyDescriptors,aa=Object.getOwnPropertySymbols,vn=Object.prototype.hasOwnProperty,ka=Object.prototype.propertyIsEnumerable,vt=(Xt,fn,Pn)=>fn in Xt?Cn(Xt,fn,{enumerable:!0,configurable:!0,writable:!0,value:Pn}):Xt[fn]=Pn,cn=(Xt,fn)=>{for(var Pn in fn||(fn={}))vn.call(fn,Pn)&&vt(Xt,Pn,fn[Pn]);if(aa)for(var Pn of aa(fn))ka.call(fn,Pn)&&vt(Xt,Pn,fn[Pn]);return Xt},Nn=(Xt,fn)=>Ha(Xt,$a(fn)),kn=(Xt,fn)=>{var Pn={};for(var pa in Xt)vn.call(Xt,pa)&&fn.indexOf(pa)<0&&(Pn[pa]=Xt[pa]);if(Xt!=null&&aa)for(var pa of aa(Xt))fn.indexOf(pa)<0&&ka.call(Xt,pa)&&(Pn[pa]=Xt[pa]);return Pn};const{Countdown:xn}=Zn.default;var Jn=Xt=>{var fn=Xt,{onChange:Pn}=fn,pa=kn(fn,["onChange"]);const[en,za]=(0,b.useState)(null);(0,b.useEffect)(()=>{typeof en=="number"&&en>=0&&Pn(en)},[en]);const va=ja=>{const ia=Math.floor(ja/1e3);za(ia)};return b.createElement(xn,Nn(cn({},pa),{onChange:va}))},ht={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},pt=({DataProps:Xt,className:fn,style:Pn={}})=>{var pa;return b.createElement("div",{className:Ze()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",ht.ClassRoomItem,fn),style:Pn,onClick:()=>{(0,Le.xg)(Xt==null?void 0:Xt.first_category_url)}},b.createElement("div",{className:"flex flex-col item-center"},b.createElement("img",{src:`${(pa=ot.Z)==null?void 0:pa.IMG_SERVER}/images/${Xt==null?void 0:Xt.avatar_url}`,className:"rounded-full",style:{height:76,width:76,marginTop:"-24px"}}),(Xt==null?void 0:Xt.subject_identifier)&&b.createElement("div",{className:"mt-40px"},b.createElement("div",{className:"rounded-full",style:{background:"rgba(33,202,159,0.1)",border:"1px solid #6BFF98",color:"#0EA17B"}},"\u5F00\u653E\u8BFE\u7A0B"),b.createElement("div",{className:"rounded-full",style:{background:"rgba(255,160,0,0.1)",border:"1px solid #FFC055",color:"#C97319"}},"\u5F00\u653E\u8BFE\u5802"))),b.createElement("div",{className:"flex-1 flex flex-col justify-between gap-10px"},b.createElement("div",{className:"multi_ellipsis2",style:{height:48}},!!(Xt!=null&&Xt.is_public)&&b.createElement("div",{className:"c-white rounded-4px mr-4px h-24px w-42px item-center justify-center",style:{background:"#21CA9F",border:"1px solid #6BFF98",display:"inline-flex"}},"\u516C\u5F00"),b.createElement("span",{className:Ze()("text-16px font-medium",ht.TitleDom)},Xt==null?void 0:Xt.name)),b.createElement("div",{className:"c-grey-333 font-medium"},Xt==null?void 0:Xt.creator),b.createElement("div",{className:"c-grey-333"},"\u6210\u5458\uFF1A",Xt==null?void 0:Xt.course_members_count),b.createElement("div",{className:"c-grey-333 flex item-center justify-between"},b.createElement("div",null,"\u4F5C\u4E1A\uFF1A",Xt==null?void 0:Xt.tasks_count),Xt!=null&&Xt.is_end?b.createElement("div",{style:{color:"#5F6A95"}},"\u5DF2\u7ED3\u675F"):b.createElement("div",{style:{color:"#37AD83"}},"\u8FDB\u884C\u4E2D"))))},sn=Object.defineProperty,En=Object.getOwnPropertySymbols,gn=Object.prototype.hasOwnProperty,Qn=Object.prototype.propertyIsEnumerable,_n=(Xt,fn,Pn)=>fn in Xt?sn(Xt,fn,{enumerable:!0,configurable:!0,writable:!0,value:Pn}):Xt[fn]=Pn,Hn=(Xt,fn)=>{for(var Pn in fn||(fn={}))gn.call(fn,Pn)&&_n(Xt,Pn,fn[Pn]);if(En)for(var Pn of En(fn))Qn.call(fn,Pn)&&_n(Xt,Pn,fn[Pn]);return Xt},Qa=({DataProps:Xt=[],selectValue:fn,onChange:Pn,className:pa,style:en={},extra:za,classNameItem:va,styleItem:ja={},barHidden:ia})=>{const[Rn,Wn]=(0,b.useState)();return(0,b.useEffect)(()=>{Wn(Array.isArray(fn)?fn:[fn])},[fn]),b.createElement("div",{className:Ze()("flex px-20px py-10px gap-40px",pa),style:Hn({borderBottom:"1px solid #D3F0FF"},en)},Xt==null?void 0:Xt.map(fa=>b.createElement("div",{key:fa==null?void 0:fa.id,className:Ze()("flex item-center justify-center current c-grey-333 text-16 relative",va,fa==null?void 0:fa.className),style:Hn(Hn({color:Rn!=null&&Rn.includes(fa==null?void 0:fa.id)?"#1890FF":"",minWidth:88},ja),(fa==null?void 0:fa.style)||{}),onClick:qn=>{Pn==null||Pn({domEvent:qn,item:fa}),fa!=null&&fa.link&&Vt.history.push(fa==null?void 0:fa.link)}},fa==null?void 0:fa.name,!ia&&(Rn==null?void 0:Rn.includes(fa==null?void 0:fa.id))&&b.createElement("div",{className:"absolute w-full h-2px",style:{background:"#1890FF",bottom:"-10px",left:0}}))),b.createElement("div",{className:"ml-auto"},za))},Sn=Object.defineProperty,ba=Object.defineProperties,nr=Object.getOwnPropertyDescriptors,gr=Object.getOwnPropertySymbols,$n=Object.prototype.hasOwnProperty,an=Object.prototype.propertyIsEnumerable,Rr=(Xt,fn,Pn)=>fn in Xt?Sn(Xt,fn,{enumerable:!0,configurable:!0,writable:!0,value:Pn}):Xt[fn]=Pn,Ja=(Xt,fn)=>{for(var Pn in fn||(fn={}))$n.call(fn,Pn)&&Rr(Xt,Pn,fn[Pn]);if(gr)for(var Pn of gr(fn))an.call(fn,Pn)&&Rr(Xt,Pn,fn[Pn]);return Xt},Fr=(Xt,fn)=>ba(Xt,nr(fn)),Mr=({value:Xt,onChange:fn,onInputChange:Pn,className:pa,style:en={},InputProps:za})=>{const[va,ja]=(0,b.useState)(Xt);return b.createElement("div",{className:Ze()("flex item-center rounded-full px-10px py-2px",pa),style:Ja({background:"linear-gradient( #E4F6FF 0%, #EAF3FF 100%)",border:"1px solid #fff",boxShadow:"inset 0px 1px 3px 0px rgba(133,188,255,0.5)"},en)},b.createElement(ie.default,Fr(Ja({bordered:!1},za),{onChange:ia=>{ja(ia.target.value),Pn==null||Pn(encodeURIComponent(ia.target.value))},onPressEnter:ia=>{fn==null||fn({domEvent:ia,item:{value:va}})}})),b.createElement("img",{className:"h-22px current",src:ae(25365),height:22,onClick:ia=>{fn==null||fn({domEvent:ia,item:{value:va}})}}))}},17904:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return se}});var b=ae(59301);function se(Ce,Fe){const Oe=(0,b.useRef)();(0,b.useEffect)(()=>{Oe.current=Ce}),(0,b.useEffect)(()=>{function Re(){Oe.current()}if(Fe!==null){let ue=setInterval(Re,Fe);return()=>clearInterval(ue)}},[Fe])}},55956:function(Ot,Rt,ae){"use strict";ae.d(Rt,{h:function(){return b}});var b=(se=>(se[se.NOMATCH=-1]="NOMATCH",se[se.OK=0]="OK",se[se.TIMEOUT=2]="TIMEOUT",se[se.PODFAILURE=3]="PODFAILURE",se[se.COMPILEFAILURE=4]="COMPILEFAILURE",se[se.EXECUTEFAILURE=5]="EXECUTEFAILURE",se[se.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",se))(b||{})},50582:function(Ot,Rt,ae){"use strict";ae.d(Rt,{H7:function(){return E},MK:function(){return le},MU:function(){return _e},X6:function(){return je},bM:function(){return We},fi:function(){return a},fu:function(){return Ze},n4:function(){return x},rX:function(){return Ie},vl:function(){return y},zO:function(){return ke}});var b=ae(82093),se=Object.defineProperty,Ce=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,Re=(z,te,re)=>te in z?se(z,te,{enumerable:!0,configurable:!0,writable:!0,value:re}):z[te]=re,ue=(z,te)=>{for(var re in te||(te={}))Fe.call(te,re)&&Re(z,re,te[re]);if(Ce)for(var re of Ce(te))Oe.call(te,re)&&Re(z,re,te[re]);return z};function Ze(z,te){return(0,b.U2)(`myproblems/${z}.json`,ue({hidePopLogin:!0},te||{}))}function We(z,te){return(0,b.v_)(`myproblems/${z}/code_submit.json`,te)}function _e(z,te){return(0,b.v_)(`myproblems/${z}/code_debug.json`,te)}function ke(z,te){return te.language&&(te.language=encodeURIComponent(te.language)),(0,b.U2)(`myproblems/${z}/submit_records.json`,te)}function je(z){return(0,b.U2)("myproblems/record_detail.json",{id:z})}function Ie(z,te){return(0,b.U2)(`myproblems/${z}/result.json`,{mode:te})}function le(z,te){return(0,b.v_)(`myproblems/${z}/add_notes.json`,te)}function E(z,te){return(0,b.v_)(`myproblems/${z}/restore_initial_code.json`,te)}function a(z){return(0,b.v_)(`myproblems/${z}/sync_code.json`)}function x(z,te){return(0,b.v_)(`myproblems/${z}/update_code.json`,te)}function y(z,te){return(0,b.v_)(`discusses/${z}/plus.json`,te)}},81150:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return ji}});var b=ae(59301),se={flex_box_center:"flex_box_center___bZaL5",flex_space_between:"flex_space_between___oaJSq",flex_box_vertical_center:"flex_box_vertical_center____hsuP",flex_box_center_end:"flex_box_center_end___ZYbPQ",flex_box_column:"flex_box_column___nE_62",wrap:"wrap___ulhwR",left:"left___kyWln",title:"title___jsO1D",total:"total___GEhiU",list:"list___u9dBZ",name:"name___Wxggs",b:"b___Y15YO",r:"r___mKQoe",l:"l___uelFD",tag:"tag___Mpkbg",right:"right___mQ3dU",examName:"examName___Na1r8",t:"t___IgCWK",num:"num___CXI8j",topWarp:"topWarp___Kicpu",head:"head___jx3W8",so:"so___qYW7F",btn:"btn___EMJDz",content:"content___sHGsV",titleWrap:"titleWrap___I__GR",single:"single___K5iv9",analysis:"analysis___NoAuR",text:"text___xESW2",modalColumn:"modalColumn___I_tK_",modalRow:"modalRow___lyw_U",sup:"sup___HSz3Z",popover:"popover___kE8aI"},Ce=ae(78241),Fe=ae(6848),Oe=ae(3113),Re=ae(43418),ue=ae(5871),Ze=ae(8591),We=ae(92832),_e=ae(28103),ke=ae(24905),je=ae(95237),Ie=ae(43604),le=ae(58421),E=ae(60324),a=Object.defineProperty,x=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,te=(ze,qe,ct)=>qe in ze?a(ze,qe,{enumerable:!0,configurable:!0,writable:!0,value:ct}):ze[qe]=ct,re=(ze,qe)=>{for(var ct in qe||(qe={}))y.call(qe,ct)&&te(ze,ct,qe[ct]);if(x)for(var ct of x(qe))z.call(qe,ct)&&te(ze,ct,qe[ct]);return ze};const ie=ze=>React.createElement("svg",re({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},ze),React.createElement("title",null,"\u7F16\u7EC4 6"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"#E4E6FD",width:34,height:34,rx:10}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{d:"M13.808 11.448a.558.558 0 0 1 0 .788l-1.564 1.565a.558.558 0 1 1-.789-.79l1.564-1.563a.558.558 0 0 1 .79 0Zm9.882 2.462a.558.558 0 0 1-.789 0l-1.564-1.563a.558.558 0 1 1 .789-.789l1.564 1.564a.556.556 0 0 1 0 .788Z",fill:"#6678EB"}),React.createElement("path",{d:"M21.753 21.707a5.937 5.937 0 1 0-8.58.015l-.937.936a.558.558 0 1 0 .789.788l.995-.994a5.91 5.91 0 0 0 3.436 1.095c1.287 0 2.48-.41 3.452-1.106l.992.992a.558.558 0 1 0 .789-.789l-.936-.937Z",fill:"#6678EB"}),React.createElement("path",{d:"m20.858 18.95-3.024-1.745v-2.054a.558.558 0 1 0-1.117 0v2.351c0 .064.011.126.031.184a.551.551 0 0 0 .258.33l3.293 1.9a.557.557 0 0 0 .559-.966Z",fill:"#FFF"}))));var ce="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTRFNkZEIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0iTTEzLjgwOCAxMS40NDhhLjU1OC41NTggMCAwIDEgMCAuNzg4bC0xLjU2NCAxLjU2NWEuNTU4LjU1OCAwIDEgMS0uNzg5LS43OWwxLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDAgMSAuNzkgMFptOS44ODIgMi40NjJhLjU1OC41NTggMCAwIDEtLjc4OSAwbC0xLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDEgMSAuNzg5LS43ODlsMS41NjQgMS41NjRhLjU1Ni41NTYgMCAwIDEgMCAuNzg4WiIgZmlsbD0iIzY2NzhFQiIvPjxwYXRoIGQ9Ik0yMS43NTMgMjEuNzA3YTUuOTM3IDUuOTM3IDAgMSAwLTguNTguMDE1bC0uOTM3LjkzNmEuNTU4LjU1OCAwIDEgMCAuNzg5Ljc4OGwuOTk1LS45OTRhNS45MSA1LjkxIDAgMCAwIDMuNDM2IDEuMDk1YzEuMjg3IDAgMi40OC0uNDEgMy40NTItMS4xMDZsLjk5Mi45OTJhLjU1OC41NTggMCAxIDAgLjc4OS0uNzg5bC0uOTM2LS45MzdaIiBmaWxsPSIjNjY3OEVCIi8+PHBhdGggZD0ibTIwLjg1OCAxOC45NS0zLjAyNC0xLjc0NXYtMi4wNTRhLjU1OC41NTggMCAxIDAtMS4xMTcgMHYyLjM1MWMwIC4wNjQuMDExLjEyNi4wMzEuMTg0YS41NTEuNTUxIDAgMCAwIC4yNTguMzNsMy4yOTMgMS45YS41NTcuNTU3IDAgMCAwIC41NTktLjk2NloiIGZpbGw9IiNGRkYiLz48L2c+PC9nPjwvc3ZnPg==",pe=ae(7664),ge=ae(76560),ye=ae(49661),Ee=ae(82093),we=Object.defineProperty,ve=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,ot=(ze,qe,ct)=>qe in ze?we(ze,qe,{enumerable:!0,configurable:!0,writable:!0,value:ct}):ze[qe]=ct,Le=(ze,qe)=>{for(var ct in qe||(qe={}))Je.call(qe,ct)&&ot(ze,ct,qe[ct]);if(ve)for(var ct of ve(qe))Ge.call(qe,ct)&&ot(ze,ct,qe[ct]);return ze};const Ue=ze=>React.createElement("svg",Le({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},ze),React.createElement("title",null,"\u7F16\u7EC4 12"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{width:34,height:34,rx:10,fill:"#EAF3F4"}),React.createElement("path",{d:"M25.905 15.37a.775.775 0 0 0-.626-.529l-4.814-.7-2.152-4.362a.776.776 0 0 0-1.392 0l-2.153 4.363-4.814.699a.775.775 0 0 0-.43 1.323l3.484 3.396-.823 4.794a.777.777 0 0 0 1.126.818l4.306-2.264 4.305 2.264a.778.778 0 0 0 .817-.059.777.777 0 0 0 .31-.759l-.823-4.794 3.483-3.396a.777.777 0 0 0 .196-.795Z",fill:"#21C0A6",fillRule:"nonzero"})));var st="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIgZmlsbD0iI0VBRjNGNCIvPjxwYXRoIGQ9Ik0yNS45MDUgMTUuMzdhLjc3NS43NzUgMCAwIDAtLjYyNi0uNTI5bC00LjgxNC0uNy0yLjE1Mi00LjM2MmEuNzc2Ljc3NiAwIDAgMC0xLjM5MiAwbC0yLjE1MyA0LjM2My00LjgxNC42OTlhLjc3NS43NzUgMCAwIDAtLjQzIDEuMzIzbDMuNDg0IDMuMzk2LS44MjMgNC43OTRhLjc3Ny43NzcgMCAwIDAgMS4xMjYuODE4bDQuMzA2LTIuMjY0IDQuMzA1IDIuMjY0YS43NzguNzc4IDAgMCAwIC44MTctLjA1OS43NzcuNzc3IDAgMCAwIC4zMS0uNzU5bC0uODIzLTQuNzk0IDMuNDgzLTMuMzk2YS43NzcuNzc3IDAgMCAwIC4xOTYtLjc5NVoiIGZpbGw9IiMyMUMwQTYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvZz48L3N2Zz4=",Ke=Object.defineProperty,rt=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,jt=(ze,qe,ct)=>qe in ze?Ke(ze,qe,{enumerable:!0,configurable:!0,writable:!0,value:ct}):ze[qe]=ct,Kt=(ze,qe)=>{for(var ct in qe||(qe={}))Ht.call(qe,ct)&&jt(ze,ct,qe[ct]);if(rt)for(var ct of rt(qe))it.call(qe,ct)&&jt(ze,ct,qe[ct]);return ze};const Qe=ze=>React.createElement("svg",Kt({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},ze),React.createElement("title",null,"\u9898\u76EE"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"#E7F3FF",width:34,height:34,rx:10}),React.createElement("g",{fill:"#4C6FFF",fillRule:"nonzero"},React.createElement("path",{d:"m23.719 13.325-4.098-3.94c-.097-.13-.225-.162-.355-.162-.129 0-.258.064-.387.161l-7.55 7.753c-.065.065-.098.162-.13.227l-1.032 5.427c-.033.194.032.323.16.484.13.13.227.162.389.162h.096l4.776-1.099c.097-.032.194-.064.258-.161l7.841-8.108c.194-.162.194-.517.033-.744h-.001Zm-8.1 8.044a.534.534 0 0 1-.386.162.56.56 0 0 1-.388-.162l-3-2.81c-.226-.194-.226-.517-.033-.743.194-.227.517-.227.743-.033l3 2.811c.259.226.291.55.065.776ZM17 22.92h6.844v1.055H17z"}))));var et="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTdGM0ZGIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGw9IiM0QzZGRkYiIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0ibTIzLjcxOSAxMy4zMjUtNC4wOTgtMy45NGMtLjA5Ny0uMTMtLjIyNS0uMTYyLS4zNTUtLjE2Mi0uMTI5IDAtLjI1OC4wNjQtLjM4Ny4xNjFsLTcuNTUgNy43NTNjLS4wNjUuMDY1LS4wOTguMTYyLS4xMy4yMjdsLTEuMDMyIDUuNDI3Yy0uMDMzLjE5NC4wMzIuMzIzLjE2LjQ4NC4xMy4xMy4yMjcuMTYyLjM4OS4xNjJoLjA5Nmw0Ljc3Ni0xLjA5OWMuMDk3LS4wMzIuMTk0LS4wNjQuMjU4LS4xNjFsNy44NDEtOC4xMDhjLjE5NC0uMTYyLjE5NC0uNTE3LjAzMy0uNzQ0aC0uMDAxWm0tOC4xIDguMDQ0YS41MzQuNTM0IDAgMCAxLS4zODYuMTYyLjU2LjU2IDAgMCAxLS4zODgtLjE2MmwtMy0yLjgxYy0uMjI2LS4xOTQtLjIyNi0uNTE3LS4wMzMtLjc0My4xOTQtLjIyNy41MTctLjIyNy43NDMtLjAzM2wzIDIuODExYy4yNTkuMjI2LjI5MS41NS4wNjUuNzc2Wk0xNyAyMi45Mmg2Ljg0NHYxLjA1NUgxN3oiLz48L2c+PC9nPjwvc3ZnPg==",Dt=ae(1198),tn=ae(89389),Et=ae(48106),Vt=ae(20927),Be={wrap:"wrap___OIoOI",modal:"modal___Z3hfU",titleWrap:"titleWrap___aK3oG",required:"required___NHoO7",title:"title___uxb1R",colorGray:"colorGray___O8YPg",choiceWrap:"choiceWrap___t51sb",answer:"answer___vsBnh",activeAnswer:"activeAnswer___AJN4p",deleteIcon:"deleteIcon___WvOJZ",addIcon:"addIcon___UyeIs",editorWrap:"editorWrap___uqcFU",htmlWrap:"htmlWrap___GcBNL",radio:"radio___e8qQ5",color333:"color333___PLzVK",color999:"color999___v3EY0",fold:"fold___OfvPe",head:"head___EejYX",collapseWrapper:"collapseWrapper___sQyVD",panelHeader:"panelHeader___Ivicf",open:"open___aEOQE",close:"close___z4P5H",inputBorder:"inputBorder___ix67O",keywordTag:"keywordTag___iGx08",scoreByBlankRadio:"scoreByBlankRadio___Kwu7q"},Gt=ae(59301),bn=Object.defineProperty,Bt=Object.defineProperties,At=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,he=(ze,qe,ct)=>qe in ze?bn(ze,qe,{enumerable:!0,configurable:!0,writable:!0,value:ct}):ze[qe]=ct,nt=(ze,qe)=>{for(var ct in qe||(qe={}))Ve.call(qe,ct)&&he(ze,ct,qe[ct]);if(tt)for(var ct of tt(qe))De.call(qe,ct)&&he(ze,ct,qe[ct]);return ze},wt=(ze,qe)=>Bt(ze,At(qe)),Ae=(ze,qe)=>{var ct={};for(var Ct in ze)Ve.call(ze,Ct)&&qe.indexOf(Ct)<0&&(ct[Ct]=ze[Ct]);if(ze!=null&&tt)for(var Ct of tt(ze))qe.indexOf(Ct)<0&&De.call(ze,Ct)&&(ct[Ct]=ze[Ct]);return ct};const be=null,gt=(ze,qe)=>{var ct=ze,{globalSetting:Ct,loading:dn,dispatch:Dn,isEdit:ta,editData:Un}=ct,Mn=Ae(ct,["globalSetting","loading","dispatch","isEdit","editData"]);const[rn,Vn]=(0,b.useState)(""),[Sa,lr]=(0,b.useState)(""),[or,ea]=(0,b.useState)([]),[Yn,On]=(0,b.useState)(""),[Kn,Ra]=(0,b.useState)(),[fr,Ia]=(0,b.useState)(!1),[ua,Ca]=(0,b.useState)({}),[sa,xa]=(0,b.useState)([]);(0,b.useEffect)(()=>{!Un||!ta||(Vn(Un==null?void 0:Un.name),lr(Un==null?void 0:Un.analysis),Ra(Un==null?void 0:Un.is_ordered),Ca(Un),Ia(!0))},[Un]),(0,b.useEffect)(()=>{if(!fr)return;const jr=Un==null?void 0:Un.standard_answer.map(ho=>ho==null?void 0:ho.answer_text);ea(jr);const Bo=Un==null?void 0:Un.standard_answer.map(ho=>ho==null?void 0:ho.score);xa(Bo),Ia(!1)},[fr]),(0,b.useImperativeHandle)(qe,()=>({onSave:zr,Clear:mo}));const zr=()=>{let jr=[],Bo=!1;return rn?(or.forEach((ho,Oo)=>{jr.push({position:Oo+1,answer_text:[],score:sa[Oo]}),ho==null||ho.forEach((ui,gl)=>{jr[Oo].answer_text.push(ui),(!ui||!(0,ye.eR)(ui,1e4))&&(On(`${Oo}-${gl}`),Ze.ZP.info(ui?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),Bo=!0)})}),Bo?!1:(jr==null?void 0:jr.length)>20?(Ze.ZP.warning("\u586B\u7A7A\u9898\u6807\u51C6\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A/\u4E0D\u80FD\u8D85\u8FC720\u4E2A\uFF01"),!1):{name:rn,analysis:Sa,standard_answers:jr,is_ordered:Kn,downcase:ua==null?void 0:ua.downcase,no_space:ua==null?void 0:ua.no_space,use_blank_score:ua==null?void 0:ua.use_blank_score}):(Ze.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1)},mo=()=>{Vn(""),lr(""),ea([]),Ra(!1)},wo=(jr,Bo,ho)=>{const Oo=or.slice();if(Bo&&Oo.splice(jr,Bo),ho)for(let ui=0;ui<ho;ui++)Oo.splice(jr+ui,0,[""]);ea(Oo)},ei=(jr,Bo,ho)=>{On("");let Oo=or.slice();Oo[jr][Bo]=ho,ea(Oo)},ur=jr=>{let Bo=or.slice();Bo[jr]=[...Bo[jr],""],ea(Bo)},mi=(jr,Bo)=>{let ho=or.slice();if(!ho[jr][Bo]){ho[jr]=ho[jr].filter((Oo,ui)=>ui!==Bo),ea(ho);return}Re.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Be.modal,onOk:()=>{ho[jr]=ho[jr].filter((Oo,ui)=>ui!==Bo),ea(ho)}})},fi=jr=>{Re.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Be.modal,onOk:()=>{let Bo=or.slice();Bo=or.filter((ho,Oo)=>jr!==Oo),ea(Bo)}})};return Gt.createElement("section",{className:Be.wrap},Gt.createElement("p",{className:Be.titleWrap},Gt.createElement("span",{className:Be.required},"*"),Gt.createElement("span",{className:Be.title},"\u9898\u5E72\uFF1A")),Gt.createElement("div",null,Gt.createElement(Et.Z,{id:"completion-question-tittle",placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE",height:155,defaultValue:rn,onChange:jr=>Vn(jr),showNullButton:!0,onPlaceholderChange:wo})),Gt.createElement("div",{className:"mt20"},or.map((jr,Bo)=>Gt.createElement("div",{style:{display:"flex"}},Gt.createElement("div",{style:{flex:1}},Gt.createElement(Vt.Z,{key:Bo,answers:jr,index:Bo,flex:1,is_md:!0,activeOptionErrorIndex:Yn,onAnswerChange:ei,addChildAnswer:ur,deleteChildAnswer:mi,deleteChildAnswermain:fi})),ua.use_blank_score&&Gt.createElement("div",{style:{display:"flex",alignItems:"center",width:"165px"}},Gt.createElement("span",{style:{color:"red",margin:"auto 5px auto 10px"}},"*"),"\u5206\u503C\uFF1A",Gt.createElement(ue.Z,{style:{width:"100px"},size:"large",defaultValue:sa[Bo],onBlur:ho=>{sa[Bo]=ho.target.value,xa([...sa])}}))))),Gt.createElement("div",null,Gt.createElement(ke.default,{className:`${Be.color333} font14 mt20`,checked:ua.use_blank_score,onChange:jr=>Ca(wt(nt({},ua),{use_blank_score:jr.target.checked}))},"\u5224\u5206\u65F6\u6309\u7A7A\u7ED9\u5206"),Gt.createElement("span",{style:{color:"#999999",fontSize:"12px"}},"\uFF08\u9009\u4E2D\uFF0C\u5219\u9700\u8981\u8BBE\u7F6E\u6BCF\u7A7A\u5206\u503C\uFF0C\u5B66\u751F\u7B54\u6848\u5224\u5206\u65F6\u6309\u7A7A\u7ED9\u5206\uFF09")),Gt.createElement("div",null,Gt.createElement(ke.default,{className:`${Be.color333} font14 mt20`,checked:ua.downcase,onChange:jr=>Ca(wt(nt({},ua),{downcase:jr.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Gt.createElement("div",null,Gt.createElement(ke.default,{className:`${Be.color333} font14 mt20`,checked:ua.no_space,onChange:jr=>Ca(wt(nt({},ua),{no_space:jr.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),Gt.createElement("div",{className:"mt20"},(or==null?void 0:or.length)>1&&Gt.createElement("span",null,Gt.createElement(ke.default,{checked:Kn,onChange:jr=>Ra(jr.target.checked),className:`${Be.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),Gt.createElement("span",{className:`${Be.color999} font12`},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),Gt.createElement("p",{className:Be.titleWrap},Gt.createElement("span",{className:Be.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),Gt.createElement(tn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Sa,onChange:jr=>lr(jr)}))};var Xe=(0,ge.connect)(({loading:ze,globalSetting:qe})=>({globalSetting:qe,loading:ze.effects}),null,null,{forwardRef:!0})((0,b.forwardRef)(gt)),Te=ae(5112),St=Object.getOwnPropertySymbols,ln=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,Jt=(ze,qe)=>{var ct={};for(var Ct in ze)ln.call(ze,Ct)&&qe.indexOf(Ct)<0&&(ct[Ct]=ze[Ct]);if(ze!=null&&St)for(var Ct of St(ze))qe.indexOf(Ct)<0&&Lt.call(ze,Ct)&&(ct[Ct]=ze[Ct]);return ct};const Ut=null,qt=(ze,qe)=>{var ct=ze,{globalSetting:Ct,loading:dn,editData:Dn,dispatch:ta,onRef:Un=()=>{},isEdit:Mn}=ct,rn=Jt(ct,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[Vn,Sa]=(0,b.useState)(),[lr,or]=(0,b.useState)(""),[ea,Yn]=(0,b.useState)("");(0,b.useEffect)(()=>{if(!Dn||!Mn)return;or(Dn==null?void 0:Dn.name),Yn(Dn==null?void 0:Dn.analysis);const Ra=Dn==null?void 0:Dn.choices.find(fr=>fr.is_answer);Sa(Ra.choice_text==="\u6B63\u786E"?"0":"1")},[Dn]),(0,b.useImperativeHandle)(qe,()=>({onSave:On,Clear:Kn}));const On=()=>lr?Vn?{name:lr,choices:[{choice_text:"\u6B63\u786E",is_answer:Vn==="0"?1:0},{choice_text:"\u9519\u8BEF",is_answer:Vn==="1"?1:0}],analysis:ea}:(Ze.ZP.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),!1):(Ze.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1),Kn=()=>{or(""),Yn(""),Sa("")};return b.createElement("section",{className:Be.wrap},b.createElement("p",{className:Be.titleWrap},b.createElement("span",{className:Be.required},"*"),b.createElement("span",{className:Be.title},"\u9898\u5E72\uFF1A")),b.createElement(tn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:lr,onChange:Ra=>or(Ra)}),b.createElement("p",{className:Be.titleWrap},b.createElement("span",{className:Be.required},"*"),b.createElement("span",{className:Be.title},"\u7B54\u6848\u9009\u9879\uFF1A",b.createElement("span",{className:Be.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),b.createElement(Te.ZP.Group,{buttonStyle:"solid",value:Vn,onChange:Ra=>Sa(Ra.target.value)},b.createElement(Te.ZP.Button,{value:"0",className:`${Be.radio} mr40`},"\u6B63\u786E"),b.createElement(Te.ZP.Button,{value:"1",className:Be.radio},"\u9519\u8BEF")),b.createElement("p",{className:Be.titleWrap},b.createElement("span",{className:Be.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),b.createElement(tn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:ea,onChange:Ra=>Yn(Ra)}))};var bt=(0,ge.connect)(({loading:ze,globalSetting:qe})=>({globalSetting:qe,loading:ze.effects}),null,null,{forwardRef:!0})((0,b.forwardRef)(qt)),Yt=Object.getOwnPropertySymbols,Fn=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,Ft=(ze,qe)=>{var ct={};for(var Ct in ze)Fn.call(ze,Ct)&&qe.indexOf(Ct)<0&&(ct[Ct]=ze[Ct]);if(ze!=null&&Yt)for(var Ct of Yt(ze))qe.indexOf(Ct)<0&&kt.call(ze,Ct)&&(ct[Ct]=ze[Ct]);return ct};const In=null,jn=(ze,qe)=>{var ct=ze,{globalSetting:Ct,loading:dn,editData:Dn,dispatch:ta,onRef:Un=()=>{},isEdit:Mn}=ct,rn=Ft(ct,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[Vn,Sa]=(0,b.useState)([]);(0,b.useEffect)(()=>{var Yn;if(!Dn||!Mn)return;const On=(Yn=Dn==null?void 0:Dn.shixun)==null?void 0:Yn.challenges.map(Kn=>({id:Kn==null?void 0:Kn.id,score:Kn.score}));Sa(On)},[Dn]),(0,b.useImperativeHandle)(qe,()=>({onSave:lr,Clear:or}));const lr=()=>({challenges:[...Vn]}),or=()=>{Sa([])};console.log("editData--",Dn);const ea=Yn=>{var On,Kn;return b.createElement("div",null,(Kn=(On=Yn==null?void 0:Yn.shixun)==null?void 0:On.challenges)==null?void 0:Kn.map((Ra,fr)=>{var Ia;return b.createElement("div",{className:"c-grey-666 font14 ml25",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"15px"}},b.createElement("div",null,b.createElement("span",{className:"mr5"},"\u7B2C",fr+1,"\u5173"),b.createElement(Fe.Z,{key:fr,title:Ra==null?void 0:Ra.challenge_name},b.createElement("span",null,(0,ye.Pq)(Ra==null?void 0:Ra.challenge_name,44)))),b.createElement("p",{style:{marginBottom:0}},b.createElement("span",{className:Be.required},"*"),b.createElement("span",{className:Be.title},"\u5206\u503C\uFF1A"),b.createElement(ue.Z,{precision:1,min:1,max:100,className:Be.baseFormItem,style:{width:176},value:(Ia=Vn.find(ua=>ua.id===Ra.id))==null?void 0:Ia.score,onChange:ua=>{Vn.find(Ca=>Ca.id===Ra.id).score=ua,Sa([...Vn])}})))}),b.createElement("div",{style:{clear:"both"}}))};return b.createElement("section",{className:Be.wrap},b.createElement(pe.Z,{style:{paddingRight:10},className:Be.titleHtml,value:`${Dn==null?void 0:Dn.position}\u3001${Dn==null?void 0:Dn.name}`}),b.createElement("p",{style:{marginBottom:"10px",marginTop:"25px"}},b.createElement("span",{className:Be.required},"*"),b.createElement("span",{className:Be.title},"\u5173\u5361")),ea(Dn))};var Gn=(0,ge.connect)(({loading:ze,globalSetting:qe})=>({globalSetting:qe,loading:ze.effects}),null,null,{forwardRef:!0})((0,b.forwardRef)(jn)),na=Object.getOwnPropertySymbols,La=Object.prototype.hasOwnProperty,nn=Object.prototype.propertyIsEnumerable,$t=(ze,qe)=>{var ct={};for(var Ct in ze)La.call(ze,Ct)&&qe.indexOf(Ct)<0&&(ct[Ct]=ze[Ct]);if(ze!=null&&na)for(var Ct of na(ze))qe.indexOf(Ct)<0&&nn.call(ze,Ct)&&(ct[Ct]=ze[Ct]);return ct};const mn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Zn=(ze,qe)=>{var ct=ze,{editData:Ct,globalSetting:dn,loading:Dn,dispatch:ta,onRef:Un=()=>{},isEdit:Mn}=ct,rn=$t(ct,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[Vn,Sa]=(0,b.useState)([]),[lr,or]=(0,b.useState)(),[ea,Yn]=(0,b.useState)([]),[On,Kn]=(0,b.useState)(""),[Ra,fr]=(0,b.useState)("");(0,b.useEffect)(()=>{Sa(["","","",""])},[]),(0,b.useEffect)(()=>{if(!Ct||!Mn)return;Kn(Ct==null?void 0:Ct.name),fr(Ct==null?void 0:Ct.analysis),Sa(Ct==null?void 0:Ct.choices.map(sa=>sa.choice_text));const Ca=[];Ct==null||Ct.choices.map((sa,xa)=>{sa.is_answer&&Ca.push(xa)}),Yn(Ca)},[Ct]),(0,b.useImperativeHandle)(qe,()=>({onSave:Ia,Clear:ua}));const Ia=()=>{if(!On)return Ze.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const Ca=Vn.findIndex(xa=>!xa);if(Ca>-1)return Ze.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${mn[Ca]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!ea.length)return Ze.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if(ea.length<2)return Ze.ZP.info("\u591A\u9009\u9898\u6700\u5C0F\u6B63\u786E\u9009\u9879\u4E3A2\u4E2A"),!1;const sa=Vn.map((xa,zr)=>({choice_text:xa,is_answer:ea.includes(zr)?1:0}));return{name:On,choices:sa,analysis:Ra}},ua=()=>{Sa(["","","",""]),Kn(""),fr(""),Yn("")};return b.createElement("section",{className:Be.wrap},b.createElement("p",{className:Be.titleWrap},b.createElement("span",{className:Be.required},"*"),b.createElement("span",{className:Be.title},"\u9898\u5E72\uFF1A")),b.createElement(tn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:On,onChange:Ca=>Kn(Ca)}),b.createElement("p",{className:Be.titleWrap},b.createElement("span",{className:Be.required},"*"),b.createElement("span",{className:Be.title},"\u7B54\u6848\u9009\u9879\uFF1A",b.createElement("span",{className:Be.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Vn.map((Ca,sa)=>b.createElement("div",{className:Be.choiceWrap,key:sa},b.createElement(Fe.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},b.createElement("div",{className:`${Be.answer} ${ea.includes(sa)?Be.activeAnswer:""}`,onClick:()=>{ea.includes(sa)?Yn(ea.filter(xa=>xa!==sa)):Yn([...ea,sa])}},mn[sa])),b.createElement("div",{className:Be.editorWrap},lr===sa?b.createElement(tn.Z,{id:`single-question-option-${sa}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Ca,onChange:xa=>{Vn[sa]=xa,Sa(Vn)}}):b.createElement("div",{className:Be.htmlWrap,onClick:()=>or(sa)},b.createElement(pe.Z,{value:Ca}))),sa>1&&b.createElement(Fe.Z,{title:"\u5220\u9664"},b.createElement("i",{className:`${Be.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{Sa(Vn.filter((xa,zr)=>zr!==sa)),ea.includes(sa)?Yn(ea.filter(xa=>xa!==sa)):Yn([...ea,sa])}})),sa<7&&sa===Vn.length-1&&b.createElement(Fe.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},b.createElement("i",{className:`${Be.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>Sa([...Vn,""])})))),b.createElement("p",{className:Be.titleWrap},b.createElement("span",{className:Be.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),b.createElement(tn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Ra,onChange:Ca=>fr(Ca)}))};var Cn=(0,ge.connect)(({loading:ze,globalSetting:qe})=>({globalSetting:qe,loading:ze.effects}),null,null,{forwardRef:!0})((0,b.forwardRef)(Zn)),Ha=Object.getOwnPropertySymbols,$a=Object.prototype.hasOwnProperty,aa=Object.prototype.propertyIsEnumerable,vn=(ze,qe)=>{var ct={};for(var Ct in ze)$a.call(ze,Ct)&&qe.indexOf(Ct)<0&&(ct[Ct]=ze[Ct]);if(ze!=null&&Ha)for(var Ct of Ha(ze))qe.indexOf(Ct)<0&&aa.call(ze,Ct)&&(ct[Ct]=ze[Ct]);return ct};const ka=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],vt=(ze,qe)=>{var ct=ze,{editData:Ct,globalSetting:dn,loading:Dn,dispatch:ta,onRef:Un=()=>{},isEdit:Mn}=ct,rn=vn(ct,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[Vn,Sa]=(0,b.useState)([]),[lr,or]=(0,b.useState)(),[ea,Yn]=(0,b.useState)(),[On,Kn]=(0,b.useState)(""),[Ra,fr]=(0,b.useState)("");(0,b.useEffect)(()=>{Sa(["","","",""])},[]),(0,b.useEffect)(()=>{if(!Ct||!Mn)return;const Ca=[],sa=[];Ct==null||Ct.choices.forEach((xa,zr)=>{Ca.push(xa.choice_text),xa.is_answer&&sa.push(zr)}),Kn(Ct==null?void 0:Ct.name),fr(Ct==null?void 0:Ct.analysis),Sa(Ca),Yn(sa)},[Ct]),(0,b.useImperativeHandle)(qe,()=>({onSave:Ia,Clear:ua}));const Ia=()=>{if(!On)return Ze.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const Ca=Vn.findIndex(xa=>!xa);if(Ca>-1)return Ze.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${ka[Ca]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!Array.isArray(ea))return Ze.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;const sa=Vn.map((xa,zr)=>({choice_text:xa,is_answer:ea.includes(zr)?1:0}));return{name:On,choices:sa,analysis:Ra}},ua=()=>{Sa(["","","",""]),Kn(""),fr(""),Yn("")};return b.createElement("section",{className:Be.wrap},b.createElement("p",{className:Be.titleWrap},b.createElement("span",{className:Be.required},"*"),b.createElement("span",{className:Be.title},"\u9898\u5E72\uFF1A")),b.createElement(tn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:On,onChange:Ca=>Kn(Ca)}),b.createElement("p",{className:Be.titleWrap},b.createElement("span",{className:Be.required},"*"),b.createElement("span",{className:Be.title},"\u7B54\u6848\u9009\u9879\uFF1A",b.createElement("span",{className:Be.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Vn.map((Ca,sa)=>b.createElement("div",{className:Be.choiceWrap,key:sa},b.createElement(Fe.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},b.createElement("div",{className:`${Be.answer} ${ea!=null&&ea.includes(sa)?Be.activeAnswer:""}`,onClick:()=>Yn([sa])},ka[sa])),b.createElement("div",{className:Be.editorWrap},lr===sa?b.createElement(tn.Z,{id:`single-question-option-${sa}`,watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Ca,onChange:xa=>{Vn[sa]=xa,Sa(Vn)}}):b.createElement("div",{className:Be.htmlWrap,onClick:()=>or(sa)},b.createElement(pe.Z,{value:Ca}))),sa>1&&b.createElement(Fe.Z,{title:"\u5220\u9664"},b.createElement("i",{className:`${Be.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{Sa(Vn.filter((xa,zr)=>zr!==sa)),sa===ea&&Yn(null)}})),sa<7&&sa===Vn.length-1&&b.createElement(Fe.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},b.createElement("i",{className:`${Be.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>Sa([...Vn,""])})))),b.createElement("p",{className:Be.titleWrap},b.createElement("span",{className:Be.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),b.createElement(tn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Ra,onChange:Ca=>fr(Ca)}))};var cn=(0,ge.connect)(({loading:ze,globalSetting:qe})=>({globalSetting:qe,loading:ze.effects}),null,null,{forwardRef:!0})((0,b.forwardRef)(vt)),Nn=ae(12563),kn=ae(49770),xn=ae(61485),zn=ae(59301),Jn=Object.defineProperty,ht=Object.defineProperties,yt=Object.getOwnPropertyDescriptors,pt=Object.getOwnPropertySymbols,sn=Object.prototype.hasOwnProperty,En=Object.prototype.propertyIsEnumerable,gn=(ze,qe,ct)=>qe in ze?Jn(ze,qe,{enumerable:!0,configurable:!0,writable:!0,value:ct}):ze[qe]=ct,Qn=(ze,qe)=>{for(var ct in qe||(qe={}))sn.call(qe,ct)&&gn(ze,ct,qe[ct]);if(pt)for(var ct of pt(qe))En.call(qe,ct)&&gn(ze,ct,qe[ct]);return ze},_n=(ze,qe)=>ht(ze,yt(qe)),Hn=(ze,qe)=>{var ct={};for(var Ct in ze)sn.call(ze,Ct)&&qe.indexOf(Ct)<0&&(ct[Ct]=ze[Ct]);if(ze!=null&&pt)for(var Ct of pt(ze))qe.indexOf(Ct)<0&&En.call(ze,Ct)&&(ct[Ct]=ze[Ct]);return ct},Pa=(ze,qe,ct)=>new Promise((Ct,dn)=>{var Dn=Mn=>{try{Un(ct.next(Mn))}catch(rn){dn(rn)}},ta=Mn=>{try{Un(ct.throw(Mn))}catch(rn){dn(rn)}},Un=Mn=>Mn.done?Ct(Mn.value):Promise.resolve(Mn.value).then(Dn,ta);Un((ct=ct.apply(ze,qe)).next())});const Qa=ze=>{if(!ze)return!1;if(/^s*$/.test(ze)||ze.trim()===""){Ze.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let qe=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return ze==="|"?(Ze.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Sn=({value:ze=[],onClose:qe})=>zn.createElement(Nn.default,{closable:!0,onClose:qe,className:Be.keywordTag},zn.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},ze.join(" \u6216 "))),ba=(ze,qe)=>{var ct=ze,{editData:Ct,globalSetting:dn,loading:Dn,dispatch:ta,onRef:Un=()=>{},isEdit:Mn}=ct,rn=Hn(ct,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[Vn,Sa]=(0,b.useState)(""),[lr,or]=(0,b.useState)(""),[ea,Yn]=(0,b.useState)(""),[On,Kn]=(0,b.useState)(""),[Ra]=Ce.default.useForm(),fr=Ce.default.useWatch("use_keywords",Ra);(0,b.useEffect)(()=>{var sa;!Ct||!Mn||(Sa(Ct==null?void 0:Ct.name),or(Ct==null?void 0:Ct.analysis),Yn((sa=Ct==null?void 0:Ct.answer_texts)==null?void 0:sa[0]),Ra.setFieldsValue(Qn({},Ct)))},[Ct]),(0,b.useImperativeHandle)(qe,()=>({onSave:Ia,Clear:ua}));const Ia=()=>Pa(void 0,null,function*(){if(!Vn)return Ze.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield Ra.validateFields()}catch(xa){Ze.ZP.error(xa.errorFields[0].errors[0]);return}const sa=Ra.getFieldsValue();return console.log(sa,"values"),Qn({name:Vn,answer_texts:[ea],analysis:lr},sa)}),ua=()=>{Sa(""),or(""),Yn(""),Ra.resetFields()},Ca=Ct==null?void 0:Ct.score;return zn.createElement("section",{className:Be.wrap},zn.createElement("p",{className:Be.titleWrap},zn.createElement("span",{className:Be.required},"*"),zn.createElement("span",{className:Be.title},"\u9898\u5E72\uFF1A")),zn.createElement(tn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Vn,onChange:sa=>Sa(sa)}),zn.createElement("p",{className:Be.titleWrap},zn.createElement("span",{className:Be.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),zn.createElement(tn.Z,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:ea,onChange:sa=>Yn(sa)}),zn.createElement("p",{className:Be.titleWrap},zn.createElement("span",{className:Be.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),zn.createElement(tn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:lr,onChange:sa=>or(sa)}),zn.createElement(Ce.default,{form:Ra,size:"large",onFinishFailed:sa=>Pa(void 0,null,function*(){var xa,zr;Ze.ZP.error(sa.errorFields[0].errors[0]),Ra.scrollToField((zr=(xa=sa==null?void 0:sa.errorFields)==null?void 0:xa[0])==null?void 0:zr.name,{behavior:"smooth",block:"center"})})},zn.createElement(je.Z,{align:"middle",className:"mb30 mt20"},zn.createElement(Ce.default.Item,{noStyle:!0,name:"use_keywords",valuePropName:"checked"},zn.createElement(kn.Z,null)),zn.createElement(Ie.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),zn.createElement(Ie.Z,null,zn.createElement(Fe.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},zn.createElement(xn.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),fr&&zn.createElement(Ce.default.List,{name:"keywords",rules:[{validator(sa,xa){return xa!=null&&xa.length?(xa==null?void 0:xa.reduce((mo,wo)=>mo+wo.score,0))>parseFloat(Ca)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD"))}}]},(sa,{add:xa,remove:zr})=>zn.createElement(zn.Fragment,null,zn.createElement("div",{className:"mb10"},"\u5173\u952E\u8BCD"),zn.createElement(je.Z,{align:"middle",className:"font14 mb30"},zn.createElement(Ie.Z,{flex:1},zn.createElement(We.default,{value:On,onChange:mo=>{Kn(mo.target.value)},maxLength:50,allowClear:!0,onPressEnter:mo=>{var wo,ei,ur,mi;const fi=`${(wo=mo.target)==null?void 0:wo.value}`,jr=(ur=(ei=fi==null?void 0:fi.split("|"))==null?void 0:ei.filter(Oo=>!!Oo))==null?void 0:ur.map(Oo=>Oo==null?void 0:Oo.trim()),Bo=Ra.getFieldValue("keywords"),ho=((mi=Bo==null?void 0:Bo.map(Oo=>Oo==null?void 0:Oo.keyword))==null?void 0:mi.flat())||[];for(const Oo of jr)if(ho.includes(Oo)){Ze.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Qa(fi)&&(xa({keyword:jr,score:1}),Kn(""))},className:Be.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),zn.createElement(Ie.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),sa.map(mo=>{var wo=mo,{key:ei,name:ur}=wo,mi=Hn(wo,["key","name"]);return zn.createElement(je.Z,{key:ei,style:{marginRight:148}},zn.createElement(Ie.Z,{flex:1},zn.createElement(je.Z,{align:"middle",justify:"space-between"},zn.createElement(Ce.default.Item,_n(Qn({},mi),{name:[ur,"keyword"]}),zn.createElement(Sn,{onClose:()=>zr(ur)})),zn.createElement(Ce.default.Item,_n(Qn({},mi),{name:[ur,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),zn.createElement(ue.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))})))))};var nr=(0,ge.connect)(({loading:ze,globalSetting:qe})=>({globalSetting:qe,loading:ze.effects}),null,null,{forwardRef:!0})((0,b.forwardRef)(ba)),gr=ae(36381),$n={wrap:"wrap___Cc0gS",deleteIcon:"deleteIcon___ebwMv",keywordTag:"keywordTag___lUfL5",questionTitleEditorWrap:"questionTitleEditorWrap___u9UgK",choiceWrap:"choiceWrap___VHsr3",choiceIndex:"choiceIndex___rsj9r",judgementIndex:"judgementIndex___fMm6E",setAnswerBtn:"setAnswerBtn___krVC9",activeAnswer:"activeAnswer___WiYo2",activeJudgementAnswer:"activeJudgementAnswer___M6iww",actionWrapper:"actionWrapper___oKI8_",addIcon:"addIcon___eMbGP",inputBorder:"inputBorder___ob_6x",placeholder:"placeholder___Vkwr4",blankWrapper:"blankWrapper____MZQ5",blankInput:"blankInput___ephwY",blankInputNumberWrapper:"blankInputNumberWrapper___C1UJS",addBtn:"addBtn___qRBpJ",blankIndex:"blankIndex___QsKgf",baseInputWrapper:"baseInputWrapper___juqCB",collapseWrapper:"collapseWrapper___kAXJ0",panelHeader:"panelHeader___hLTSe",open:"open___wWDjf",close:"close___XPTJ0",hide:"hide___VytUy"},an=ae(32134),Rr=ae(12893),Ja=Object.defineProperty,Fr=Object.defineProperties,Or=Object.getOwnPropertyDescriptors,Mr=Object.getOwnPropertySymbols,Xt=Object.prototype.hasOwnProperty,fn=Object.prototype.propertyIsEnumerable,Pn=(ze,qe,ct)=>qe in ze?Ja(ze,qe,{enumerable:!0,configurable:!0,writable:!0,value:ct}):ze[qe]=ct,pa=(ze,qe)=>{for(var ct in qe||(qe={}))Xt.call(qe,ct)&&Pn(ze,ct,qe[ct]);if(Mr)for(var ct of Mr(qe))fn.call(qe,ct)&&Pn(ze,ct,qe[ct]);return ze},en=(ze,qe)=>Fr(ze,Or(qe)),za=(ze,qe)=>{var ct={};for(var Ct in ze)Xt.call(ze,Ct)&&qe.indexOf(Ct)<0&&(ct[Ct]=ze[Ct]);if(ze!=null&&Mr)for(var Ct of Mr(ze))qe.indexOf(Ct)<0&&fn.call(ze,Ct)&&(ct[Ct]=ze[Ct]);return ct};const va=ze=>{var qe=ze,{value:ct,onChange:Ct,scrollId:dn}=qe,Dn=za(qe,["value","onChange","scrollId"]);return b.createElement("div",{id:dn||""},b.createElement(tn.Z,en(pa({},Dn),{defaultValue:ct,onChange:(ta,Un)=>{Un!=null&&Un.length?Ct(ta,Un):Ct(ta)}})))},ja=({value:ze,onChange:qe,placeholder:ct,height:Ct=140,isEdit:dn})=>dn?b.createElement(tn.Z,{watch:!0,isFocus:!0,height:Ct,placeholder:ct,defaultValue:ze,onChange:qe}):b.createElement("div",{style:{cursor:"pointer"}},ze?b.createElement(pe.Z,{className:$n.inputBorder,value:ze}):b.createElement("div",{className:`${$n.inputBorder} ${$n.placeholder}`},ct));var ia=ae(59301),Rn=Object.defineProperty,Wn=Object.defineProperties,fa=Object.getOwnPropertyDescriptors,qn=Object.getOwnPropertySymbols,Xa=Object.prototype.hasOwnProperty,xr=Object.prototype.propertyIsEnumerable,mr=(ze,qe,ct)=>qe in ze?Rn(ze,qe,{enumerable:!0,configurable:!0,writable:!0,value:ct}):ze[qe]=ct,hr=(ze,qe)=>{for(var ct in qe||(qe={}))Xa.call(qe,ct)&&mr(ze,ct,qe[ct]);if(qn)for(var ct of qn(qe))xr.call(qe,ct)&&mr(ze,ct,qe[ct]);return ze},Qr=(ze,qe)=>Wn(ze,fa(qe)),eo=(ze,qe)=>{var ct={};for(var Ct in ze)Xa.call(ze,Ct)&&qe.indexOf(Ct)<0&&(ct[Ct]=ze[Ct]);if(ze!=null&&qn)for(var Ct of qn(ze))qe.indexOf(Ct)<0&&xr.call(ze,Ct)&&(ct[Ct]=ze[Ct]);return ct};const Yo=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ti=({value:ze,onChange:qe,choiceTextKey:ct,answerKey:Ct,index:dn,isEdit:Dn,setInputActive:ta,form:Un,choiceOptionsPath:Mn,allowChangeMode:rn,showAddIcon:Vn,addItem:Sa,deleteItem:lr})=>{const or=(ze==null?void 0:ze[Ct])===!0,ea=()=>{const On=Un.getFieldValue(Mn);Un.setFieldValue(Mn,On.map(Kn=>Qr(hr({},Kn),{[Ct]:!1})))},Yn=()=>{or?qe(Qr(hr({},ze),{[Ct]:!1})):(rn||ea(),qe(Qr(hr({},ze),{[Ct]:!0})))};return ia.createElement(je.Z,{className:$n.choiceWrap,align:"middle",wrap:!1},ia.createElement(Ie.Z,{onClick:Yn,className:`${$n.choiceIndex} ${or?$n.activeAnswer:""}`},Yo[dn]),ia.createElement(Ie.Z,{flex:1,className:`${$n.editorWrap} ml15`,onClick:ta},ia.createElement(ja,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Dn,value:ze==null?void 0:ze[ct],onChange:On=>{qe(Qr(hr({},ze),{[ct]:On}))}})),ia.createElement(Ie.Z,{flex:"0 0 auto",className:"ml15"},ia.createElement("div",{onClick:Yn,className:`${$n.setAnswerBtn} ${or?$n.activeAnswer:""}`},or?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),ia.createElement(Ie.Z,{className:$n.actionWrapper},ia.createElement(Fe.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},ia.createElement(an.Z,{className:$n.addIcon,onClick:Sa,style:{visibility:Vn?"visible":"hidden"}})),ia.createElement(Fe.Z,{title:"\u5220\u9664"},ia.createElement(Rr.Z,{className:$n.deleteIcon,onClick:lr,style:{visibility:dn>1?"visible":"hidden"}}))))},Eo=({questionTitlePlaceholder:ze,titleKey:qe,choiceKey:ct,analysisKey:Ct,choiceTextKey:dn,answerKey:Dn,choiceOptionsPath:ta,allowChangeMode:Un=!0,form:Mn,showAnalysis:rn=!0})=>{const[Vn,Sa]=(0,b.useState)(),[lr,or]=(0,b.useState)(!1);return ia.createElement("div",{className:$n.wrap},ia.createElement("div",{className:$n.questionTitleEditorWrap},ia.createElement(Ce.default.Item,{label:"\u9898\u5E72",name:qe,labelCol:{span:24},rules:[{required:!0}]},ia.createElement(va,{scrollId:Array.isArray(qe)?qe.join("_"):`${qe}`,watch:!0,height:140,placeholder:ze}))),ia.createElement(Ce.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),ia.createElement(Ce.default.List,{name:ct,rules:[{validator(ea,Yn){const On=Yn.some(Ra=>Ra[Dn]),Kn=Yn.findIndex(Ra=>{var fr;return((fr=Ra[dn])==null?void 0:fr.length)<=0});return Kn!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Yo[Kn]}\u9009\u9879\u7684\u5185\u5BB9`)):On?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(ea,{add:Yn,remove:On})=>ia.createElement("div",{id:Array.isArray(ta)?ta.join("_"):`${ta}`},ea.map((Kn,Ra)=>{var fr=Kn,{key:Ia,name:ua}=fr,Ca=eo(fr,["key","name"]);const sa=Vn===Ia,xa=()=>{Sa(Ia)},zr=Ra<7&&Ra===ea.length-1,mo=()=>Yn({[dn]:"",[Dn]:0}),wo=()=>On(ua);return ia.createElement(Ce.default.Item,Qr(hr({},Ca),{key:Ia,name:ua,noStyle:!0}),ia.createElement(Ti,{choiceTextKey:dn,answerKey:Dn,index:Ra,isEdit:sa,setInputActive:xa,form:Mn,choiceOptionsPath:ta,allowChangeMode:Un,showAddIcon:zr,addItem:mo,deleteItem:wo}))}),ea.length<8&&ia.createElement("div",{className:`${$n.addBtn} mb30`,onClick:()=>Yn({[dn]:"",[Dn]:0})},"\u6DFB\u52A0\u9009\u9879"))),rn&&ia.createElement("div",{onClick:()=>or(!0)},ia.createElement(Ce.default.Item,{name:Ct,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ia.createElement(ja,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:lr}))))};var Na=ae(59301),oo=Object.defineProperty,po=Object.defineProperties,Mo=Object.getOwnPropertyDescriptors,yo=Object.getOwnPropertySymbols,Ao=Object.prototype.hasOwnProperty,oi=Object.prototype.propertyIsEnumerable,$o=(ze,qe,ct)=>qe in ze?oo(ze,qe,{enumerable:!0,configurable:!0,writable:!0,value:ct}):ze[qe]=ct,Ko=(ze,qe)=>{for(var ct in qe||(qe={}))Ao.call(qe,ct)&&$o(ze,ct,qe[ct]);if(yo)for(var ct of yo(qe))oi.call(qe,ct)&&$o(ze,ct,qe[ct]);return ze},Ci=(ze,qe)=>po(ze,Mo(qe)),Qo=(ze,qe)=>{var ct={};for(var Ct in ze)Ao.call(ze,Ct)&&qe.indexOf(Ct)<0&&(ct[Ct]=ze[Ct]);if(ze!=null&&yo)for(var Ct of yo(ze))qe.indexOf(Ct)<0&&oi.call(ze,Ct)&&(ct[Ct]=ze[Ct]);return ct};const bo=({value:ze,onChange:qe})=>{const ct=dn=>{Re.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:$n.modal,onOk:()=>{const Dn=[...ze];Dn.splice(dn,1),qe(Dn)}})},Ct=()=>{const dn=[...ze];dn.push(""),qe(dn)};return Na.createElement(je.Z,{align:"middle",className:"ml20",gutter:[40,20]},ze==null?void 0:ze.map((dn,Dn)=>Na.createElement(Ie.Z,{key:`${dn}_${Dn}`,className:$n.blankWrapper},Na.createElement(We.default,{className:$n.blankInput,defaultValue:dn,maxLength:1e3,onBlur:ta=>{const Un=[...ze],Mn=ta.target.value.trim();Un[Dn]=Mn,qe(Un)}}),Na.createElement(Fe.Z,{title:"\u5220\u9664"},Na.createElement(Rr.Z,{className:$n.deleteIcon,style:{marginLeft:15,visibility:Dn>0?"visible":"hidden"},onClick:()=>ct(Dn)})))),Na.createElement(Ie.Z,null,Na.createElement("div",{className:`${$n.addBtn}`,onClick:()=>{Ct()}},"\u65B0\u589E\u7B54\u6848")))},xi=({value:ze=!0,onChange:qe})=>Na.createElement(kn.Z,{checked:!ze,onChange:ct=>{qe(!ct)}}),Co="\u2581",Mi=({questionTitlePlaceholder:ze,form:qe,name:ct,scoreByBlank:Ct="use_blank_score",answerKey:dn,titleKey:Dn="name",analysisKey:ta="analysis",isOrdered:Un="is_ordered"})=>{var Mn,rn;const[Vn,Sa]=(0,b.useState)(!1),lr=(Ia,ua)=>{const Ca=ua.line;let sa=0;for(let zr=0;zr<Ca;zr++)sa+=Ia.getLine(zr).split(Co).length-1;const xa=Ia.getLine(Ca).substring(0,ua.ch);return sa+=xa.split(Co).length-1,sa},or=(Ia,ua,Ca,sa)=>{const xa=Ia.getRange(ua.from,ua.to);let zr=0;if(ua.text.forEach(mo=>{zr+=mo.split(Co).length-1}),ua.origin!=="setValue"){if(xa&&xa.indexOf(Co)!==-1){const mo=xa.split(Co).length-1,wo=lr(Ia,ua.from);if(console.log(`\u5220\u9664${mo}\u4E2A\uFF0C \u524D\u9762\u6709${wo}\u4E2A\uFF0C\u65B0\u589E${zr}\u4E2A`),mo>1){const ei=Array.from({length:mo},(ur,mi)=>wo+mi);sa(ei)}else sa(wo)}else if(zr>0){const mo=lr(Ia,ua.from);console.log(`\u65B0\u589E${zr}\u4E2A\uFF0C\u4E4B\u524D\u6709${mo}\u4E2A`),Ca(zr,mo)}}},ea=()=>{const Ia=qe.getFieldValue(["sub_item_banks",...dn]);qe.setFieldValue(["sub_item_banks",...dn],Ia==null?void 0:Ia.map((ua,Ca)=>Ci(Ko({},ua),{position:Ca+1})))},Yn=(0,b.useRef)(),On=(Ia,ua)=>{for(let Ca=0;Ca<Ia;Ca++)Yn.current({position:null,answer_text:[""]},ua+Ca);ea()},Kn=(0,b.useRef)(),Ra=Ia=>{Kn.current(Ia),ea()},fr=(rn=(Mn=qe.getFieldValue("sub_item_banks"))==null?void 0:Mn[dn==null?void 0:dn[0]])==null?void 0:rn[dn==null?void 0:dn[1]];return Na.createElement("div",{className:$n.wrap},Na.createElement("div",{className:$n.questionTitleEditorWrap},Na.createElement(Ce.default.Item,{label:"\u9898\u5E72",name:Dn,labelCol:{span:24},rules:[{required:!0}]},Na.createElement(va,{scrollId:"name",watch:!0,height:140,placeholder:ze,showNullButton:!0,onCMBeforeChange:(Ia,ua)=>{or(Ia,ua,On,Ra)}}))),Na.createElement(Ce.default.List,{name:dn,rules:[{validator(Ia,ua){if((ua==null?void 0:ua.length)===0)return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const Ca of ua){const{answer_text:sa}=Ca||{};if(sa!=null&&sa.some(xa=>(xa==null?void 0:xa.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Ia,{add:ua,remove:Ca},{errors:sa})=>(Yn.current=ua,Kn.current=Ca,Na.createElement(Na.Fragment,null,Na.createElement(Ce.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),Ia.map((xa,zr)=>{var mo=xa,{key:wo,name:ei}=mo,ur=Qo(mo,["key","name"]);return Na.createElement(je.Z,{className:"mb20",key:wo,align:"middle",wrap:!1},Na.createElement(Ie.Z,{flex:"0 0 auto",className:`${$n.blankIndex}`},"\u586B\u7A7A\u9879",zr+1),Na.createElement(Ie.Z,{flex:1},Na.createElement(je.Z,{align:"top",justify:"space-between",wrap:!1},Na.createElement(Ie.Z,null,Na.createElement(Ce.default.Item,Ci(Ko({},ur),{name:[ei,"answer_text"],noStyle:!0}),Na.createElement(bo,null))),(qe==null?void 0:qe.getFieldValue(["sub_item_banks",...Ct]))&&Na.createElement(Ie.Z,{flex:"224px"},Na.createElement(Ce.default.Item,Ci(Ko({},ur),{name:[ei,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:$n.blankInputNumberWrapper}),Na.createElement(ue.Z,{className:$n.blankInput,min:.1,max:100,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),Na.createElement(Ce.default.Item,Ci(Ko({},ur),{name:[ei,"position"],noStyle:!0}),Na.createElement(We.default,{type:"hidden"}))))})))),Na.createElement(je.Z,{align:"middle"},Na.createElement(Ce.default.Item,{name:[ct,"downcase"],valuePropName:"checked"},Na.createElement(kn.Z,null)),Na.createElement(Ie.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Na.createElement(je.Z,{align:"middle"},Na.createElement(Ce.default.Item,{name:[ct,"no_space"],valuePropName:"checked"},Na.createElement(kn.Z,null)),Na.createElement(Ie.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(fr==null?void 0:fr.length)>1&&Na.createElement(je.Z,{align:"middle",className:(fr==null?void 0:fr.length)>1?"mb30":`${$n.hide}`},Na.createElement(Ce.default.Item,{name:Un},Na.createElement(xi,null)),Na.createElement(Ie.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),Na.createElement("div",{onClick:()=>Sa(!0)},Na.createElement(Ce.default.Item,{name:ta,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Na.createElement(ja,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Vn}))))};var ai=Object.defineProperty,Wi=Object.defineProperties,Di=Object.getOwnPropertyDescriptors,_i=Object.getOwnPropertySymbols,qo=Object.prototype.hasOwnProperty,Ki=Object.prototype.propertyIsEnumerable,pl=(ze,qe,ct)=>qe in ze?ai(ze,qe,{enumerable:!0,configurable:!0,writable:!0,value:ct}):ze[qe]=ct,Xi=(ze,qe)=>{for(var ct in qe||(qe={}))qo.call(qe,ct)&&pl(ze,ct,qe[ct]);if(_i)for(var ct of _i(qe))Ki.call(qe,ct)&&pl(ze,ct,qe[ct]);return ze},Yi=(ze,qe)=>Wi(ze,Di(qe)),Xr=(ze,qe)=>{var ct={};for(var Ct in ze)qo.call(ze,Ct)&&qe.indexOf(Ct)<0&&(ct[Ct]=ze[Ct]);if(ze!=null&&_i)for(var Ct of _i(ze))qe.indexOf(Ct)<0&&Ki.call(ze,Ct)&&(ct[Ct]=ze[Ct]);return ct};const Ka={\u6B63\u786E:"T",\u9519\u8BEF:"F"},la=({value:ze,onChange:qe,form:ct,choiceKey:Ct})=>{const dn=(ze==null?void 0:ze.is_answer)===!0,Dn=ze==null?void 0:ze.choice_text,ta=()=>{var Un;const Mn=(Un=ct==null?void 0:ct.getFieldValue(["sub_item_banks",...Ct]))==null?void 0:Un.map(rn=>({choice_text:rn==null?void 0:rn.choice_text,is_answer:!1}));ct==null||ct.setFieldValue(["sub_item_banks",...Ct],Mn),qe(Yi(Xi({},ze),{is_answer:!0}))};return b.createElement(je.Z,{className:$n.choiceWrap,align:"middle",wrap:!1},b.createElement(Ie.Z,{onClick:ta,className:`${$n.choiceIndex} ${$n.judgementIndex} ${dn?$n.activeAnswer:""}`},Ka[Dn]),b.createElement(Ie.Z,{flex:1,className:`${$n.editorWrap} ml15`},b.createElement("div",{className:`${$n.inputBorder} ${$n.placeholder} ${dn?$n.activeJudgementAnswer:""}`},Dn)),b.createElement(Ie.Z,{flex:"0 0 auto",className:"ml15"},b.createElement("div",{onClick:ta,className:`${$n.setAnswerBtn} ${dn?$n.activeAnswer:""}`},dn?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},ca=({questionTitlePlaceholder:ze,choiceKey:qe="choices",form:ct,titleKey:Ct="name",analysisKey:dn="analysis"})=>{const[Dn,ta]=(0,b.useState)(!1);return b.createElement("div",{className:$n.wrap},b.createElement("div",{className:$n.questionTitleEditorWrap},b.createElement(Ce.default.Item,{label:"\u9898\u5E72",name:Ct,labelCol:{span:24},rules:[{required:!0}]},b.createElement(va,{scrollId:"name",watch:!0,height:140,placeholder:ze}))),b.createElement(Ce.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},b.createElement(Ce.default.List,{name:qe,rules:[{validator(Un,Mn){return Mn.some(Vn=>(Vn==null?void 0:Vn.is_answer)===!0)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Un=>b.createElement("div",{id:"choices"},Un.map(Mn=>{var rn=Mn,{key:Vn,name:Sa}=rn,lr=Xr(rn,["key","name"]);return b.createElement(Ce.default.Item,Yi(Xi({},lr),{key:Vn,name:Sa,noStyle:!0}),b.createElement(la,{form:ct,choiceKey:qe}))})))),b.createElement("div",{onClick:()=>ta(!0)},b.createElement(Ce.default.Item,{name:dn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(ja,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Dn}))))};var Fa=Object.defineProperty,wr=Object.defineProperties,Gr=Object.getOwnPropertyDescriptors,lo=Object.getOwnPropertySymbols,vo=Object.prototype.hasOwnProperty,Io=Object.prototype.propertyIsEnumerable,Fo=(ze,qe,ct)=>qe in ze?Fa(ze,qe,{enumerable:!0,configurable:!0,writable:!0,value:ct}):ze[qe]=ct,Va=(ze,qe)=>{for(var ct in qe||(qe={}))vo.call(qe,ct)&&Fo(ze,ct,qe[ct]);if(lo)for(var ct of lo(qe))Io.call(qe,ct)&&Fo(ze,ct,qe[ct]);return ze},Ho=(ze,qe)=>wr(ze,Gr(qe)),Bi=(ze,qe)=>{var ct={};for(var Ct in ze)vo.call(ze,Ct)&&qe.indexOf(Ct)<0&&(ct[Ct]=ze[Ct]);if(ze!=null&&lo)for(var Ct of lo(ze))qe.indexOf(Ct)<0&&Io.call(ze,Ct)&&(ct[Ct]=ze[Ct]);return ct};const si=ze=>{var qe=ze,{value:ct,onChange:Ct}=qe,dn=Bi(qe,["value","onChange"]);const Dn=ta=>{Ct([ta])};return b.createElement(tn.Z,Ho(Va({},dn),{defaultValue:ct==null?void 0:ct[0],onChange:Dn}))},ki=ze=>{if(!ze)return!1;let qe=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return ze==="|"?(Ze.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Zi=({value:ze=[],onClose:qe})=>b.createElement(Nn.default,{closable:!0,onClose:qe,className:$n.keywordTag},ze==null?void 0:ze.join(" \u6216 ")),zi=({questionTitlePlaceholder:ze,form:qe,showKeywords:ct,isMustKeyWords:Ct=ct,titleKey:dn="name",analysisKey:Dn="analysis",answerTexts:ta="answer_texts",keywords:Un="keywords",useKeywords:Mn="use_keywords",indexs:rn})=>{const[Vn,Sa]=(0,b.useState)(!1),[lr,or]=(0,b.useState)(""),ea=Ce.default.useWatch("sub_item_banks",qe),{use_keywords:Yn,score:On}=(ea==null?void 0:ea[rn])||{};return console.log(Yn,On,"itemValues"),b.createElement("div",{className:$n.wrap},b.createElement("div",{className:$n.questionTitleEditorWrap},b.createElement(Ce.default.Item,{label:"\u9898\u5E72",name:dn,labelCol:{span:24},rules:[{required:!0}]},b.createElement(va,{scrollId:"name",watch:!0,height:140,placeholder:ze}))),b.createElement(Ce.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:ta,labelCol:{span:24}},b.createElement(si,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),ct&&!Ct&&b.createElement(Ce.default.Item,{hidden:!0,name:Mn,valuePropName:"checked"},b.createElement(kn.Z,{defaultChecked:!0})),ct&&Ct&&b.createElement(je.Z,{align:"middle",className:"mb30"},b.createElement(Ce.default.Item,{name:Mn,valuePropName:"checked"},b.createElement(kn.Z,null)),b.createElement(Ie.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),b.createElement(Ie.Z,null,b.createElement(Fe.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},b.createElement(xn.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Yn||!Ct)&&b.createElement(Ce.default.List,{name:Un,rules:[{validator(Kn,Ra){return Ct?Ra!=null&&Ra.length?(Ra==null?void 0:Ra.reduce((Ia,ua)=>Ia+ua.score,0))>parseFloat(On)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(Kn,{add:Ra,remove:fr})=>b.createElement(b.Fragment,null,b.createElement("div",{className:`${$n.title} mb10`},Ct?"\u5173\u952E\u8BCD":b.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),b.createElement(je.Z,{align:"middle",className:"font14 mb30"},b.createElement(Ie.Z,{flex:1},b.createElement(We.default,{value:lr,onChange:Ia=>{or(Ia.target.value)},maxLength:50,allowClear:!0,onPressEnter:Ia=>{var ua,Ca,sa,xa;const zr=`${(ua=Ia.target)==null?void 0:ua.value}`,mo=(sa=(Ca=zr==null?void 0:zr.split("|"))==null?void 0:Ca.filter(ur=>!!ur))==null?void 0:sa.map(ur=>ur==null?void 0:ur.trim()),wo=qe.getFieldValue(["sub_item_banks",...Un]),ei=((xa=wo==null?void 0:wo.map(ur=>ur==null?void 0:ur.keyword))==null?void 0:xa.flat())||[];for(const ur of mo)if(ei.includes(ur)){Ze.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}ki(zr)&&(Ra({keyword:mo,score:1}),or(""))},className:$n.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),b.createElement(Ie.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Kn.map(Ia=>{var ua=Ia,{key:Ca,name:sa}=ua,xa=Bi(ua,["key","name"]);return b.createElement(je.Z,{key:Ca,className:"mb20",style:{marginRight:148}},b.createElement(Ie.Z,{flex:1},b.createElement(je.Z,{align:"middle",justify:"space-between"},b.createElement(Ce.default.Item,Ho(Va({},xa),{name:[sa,"keyword"]}),b.createElement(Zi,{onClose:()=>fr(sa)})),Ct&&b.createElement(Ce.default.Item,Ho(Va({},xa),{name:[sa,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:$n.blankInputNumberWrapper}),b.createElement(ue.Z,{className:$n.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),b.createElement("div",{onClick:()=>Sa(!0)},b.createElement(Ce.default.Item,{name:Dn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(ja,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Vn}))))};var Yr=ae(59301),_o=Object.defineProperty,ol=Object.defineProperties,vi=Object.getOwnPropertyDescriptors,Vi=Object.getOwnPropertySymbols,il=Object.prototype.hasOwnProperty,$i=Object.prototype.propertyIsEnumerable,ko=(ze,qe,ct)=>qe in ze?_o(ze,qe,{enumerable:!0,configurable:!0,writable:!0,value:ct}):ze[qe]=ct,qi=(ze,qe)=>{for(var ct in qe||(qe={}))il.call(qe,ct)&&ko(ze,ct,qe[ct]);if(Vi)for(var ct of Vi(qe))$i.call(qe,ct)&&ko(ze,ct,qe[ct]);return ze},el=(ze,qe)=>ol(ze,vi(qe)),ll=(ze,qe)=>{var ct={};for(var Ct in ze)il.call(ze,Ct)&&qe.indexOf(Ct)<0&&(ct[Ct]=ze[Ct]);if(ze!=null&&Vi)for(var Ct of Vi(ze))qe.indexOf(Ct)<0&&$i.call(ze,Ct)&&(ct[Ct]=ze[Ct]);return ct},ul=(ze,qe,ct)=>new Promise((Ct,dn)=>{var Dn=Mn=>{try{Un(ct.next(Mn))}catch(rn){dn(rn)}},ta=Mn=>{try{Un(ct.throw(Mn))}catch(rn){dn(rn)}},Un=Mn=>Mn.done?Ct(Mn.value):Promise.resolve(Mn.value).then(Dn,ta);Un((ct=ct.apply(ze,qe)).next())});const{Panel:Rl}=gr.default,ql=null,Tl=(ze,qe)=>{var ct=ze,{globalSetting:Ct,loading:dn,dispatch:Dn,editData:ta,onRef:Un=()=>{},isEdit:Mn}=ct,rn=ll(ct,["globalSetting","loading","dispatch","editData","onRef","isEdit"]);const[Vn,Sa]=(0,b.useState)(""),[lr,or]=(0,b.useState)([]),[ea]=Ce.default.useForm();(0,b.useEffect)(()=>{!ta||!Mn||(Sa(ta==null?void 0:ta.name),or(ta==null?void 0:ta.sub_item_banks),ea.setFieldsValue(qi({},ta)))},[ta]),(0,b.useEffect)(()=>{or(ea.getFieldValue("sub_item_banks"))},[Ce.default.useWatch("sub_item_banks",ea)]),(0,b.useImperativeHandle)(qe,()=>({onSave:Yn,Clear:On}));const Yn=()=>ul(void 0,null,function*(){if(!Vn)return Ze.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield ea.validateFields()}catch(Ca){return console.log(Ca,"errInfo"),Ze.ZP.error(Ca.errorFields[0].errors[0]),!1}const ua=lr.map(Ca=>qi({id:Ca.id>1?Ca.id:null},Ca));return{name:Vn,sub_item_banks:ua}}),On=()=>{Sa(""),or([])},Kn={single:"\u5355\u9009\u9898",multiple:"\u591A\u9009\u9898",judgement:"\u5224\u65AD\u9898",completion:"\u586B\u7A7A\u9898",subjective:"\u7B80\u7B54\u9898",practical:"\u5B9E\u8BAD\u9898",program:"\u7F16\u7A0B\u9898",bprogram:"\u7A0B\u5E8F\u586B\u7A7A\u9898",combination:"\u7EC4\u5408\u9898"},Ra=({value:ua})=>Yr.createElement("div",{style:{textAlign:"center",color:"#DF3065",margin:"0 5px"}},ua),[fr,Ia]=(0,b.useState)();return Yr.createElement("section",{className:Be.wrap},Yr.createElement("p",{className:Be.titleWrap},Yr.createElement("span",{className:Be.required},"*"),Yr.createElement("span",{className:Be.title},"\u9898\u5E72\uFF1A")),Yr.createElement(tn.Z,{id:"combination-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Vn,onChange:ua=>Sa(ua)}),Yr.createElement(Ce.default,{form:ea,autoComplete:"off"},Yr.createElement(Ce.default.List,{name:"sub_item_banks",rules:[{validator(ua,Ca){return Ca?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(ua,{add:Ca,remove:sa})=>{const xa=ea.getFieldValue("sub_item_banks");return Yr.createElement(Yr.Fragment,null,Yr.createElement(gr.default,{className:ua.length>0?Be.collapseWrapper:"",bordered:!1,expandIcon:({isActive:zr})=>Yr.createElement("i",{className:`iconfont icon-weizhankai ${zr?Be.open:Be.close}`,style:{fontSize:14,transition:"all .2s"}})},ua.map((zr,mo)=>{var wo=zr,{key:ei,name:ur}=wo,mi=ll(wo,["key","name"]),fi,jr,Bo,ho,Oo,ui,gl,Ml,wl,Gl,_l,Wl;return Yr.createElement(Rl,{className:Be.panel,forceRender:!0,header:Yr.createElement("div",{className:Be.panelHeader},"\u7B2C",mo+1,"\u5C0F\u9898",Yr.createElement("span",null,"\uFF08",Kn[(fi=xa==null?void 0:xa[ur])==null?void 0:fi.item_type],"\uFF09")),extra:Yr.createElement(je.Z,{align:"middle",onClick:vl=>vl.stopPropagation(),style:{display:"flex",alignItems:"center"}},((jr=xa==null?void 0:xa[ur])==null?void 0:jr.item_type)=="completion"&&Yr.createElement(Ce.default.Item,el(qi({},mi),{name:[ur,"score"],className:Be.blankInputNumberWrapper,style:{marginBottom:0}}),((Bo=xa==null?void 0:xa[ur])==null?void 0:Bo.item_type)=="completion"&&Yr.createElement("div",{style:{display:"flex",alignItems:"center",color:"#191919"}},"\u5171",Yr.createElement(Ra,{value:(ho=xa==null?void 0:xa[ur])==null?void 0:ho.score}),"\u5206")),((Oo=xa==null?void 0:xa[ur])==null?void 0:Oo.item_type)=="completion"&&Yr.createElement(Yr.Fragment,null,Yr.createElement(Te.ZP.Group,{defaultValue:(ui=xa==null?void 0:xa[ur])==null?void 0:ui.use_blank_score,className:Be.scoreByBlankRadio,style:{marginRight:10},optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}],onChange:vl=>{var Dl;console.log(ea.getFieldsValue()),ea==null||ea.setFieldValue(["sub_item_banks",ur,"use_blank_score"],(Dl=vl==null?void 0:vl.target)==null?void 0:Dl.value),Ia(new Date)}}),Yr.createElement(Fe.Z,{overlayInnerStyle:{width:460},title:Yr.createElement("div",null,"\u6309\u7A7A\u7ED9\u5206\uFF1A\u9700\u8981\u5206\u522B\u8BBE\u7F6E\u6BCF\u4E2A\u586B\u7A7A\u9879\u7684\u5206\u503C\uFF0C\u586B\u7A7A\u9879\u7B54\u5BF9\u4E4B\u540E\u5219\u83B7\u5F97\u5BF9\u5E94\u7684\u5206\u503C\u3002",Yr.createElement("br",null),"\u6309\u9898\u7ED9\u5206\uFF1A\u7B54\u5BF9\u5168\u90E8\u586B\u7A7A\u9879\u4E4B\u540E\u624D\u80FD\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\u3002")},Yr.createElement("i",{className:"icon-tishixiaowenhao font18 c-3061d0"})))),key:ei},Yr.createElement(Ce.default.Item,el(qi({},mi),{name:ur}),(((gl=xa==null?void 0:xa[ur])==null?void 0:gl.item_type)=="single"||((Ml=xa==null?void 0:xa[ur])==null?void 0:Ml.item_type)=="multiple")&&Yr.createElement(Eo,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((wl=xa==null?void 0:xa[ur])==null?void 0:wl.item_type)!="single",form:ea,choiceKey:[ur,"choices"],titleKey:[ur,"name"],analysisKey:[ur,"analysis"],choiceOptionsPath:["sub_item_banks",ur,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((Gl=xa==null?void 0:xa[ur])==null?void 0:Gl.item_type)=="completion"&&Yr.createElement(Mi,{form:ea,name:ur,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:[ur,"use_blank_score"],titleKey:[ur,"name"],analysisKey:[ur,"analysis"],isOrdered:[ur,"is_ordered"],answerKey:[ur,"standard_answer"],key:fr}),((_l=xa==null?void 0:xa[ur])==null?void 0:_l.item_type)=="judgement"&&Yr.createElement(ca,{form:ea,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[ur,"name"],analysisKey:[ur,"analysis"],choiceKey:[ur,"choices"]}),((Wl=xa==null?void 0:xa[ur])==null?void 0:Wl.item_type)=="subjective"&&Yr.createElement(zi,{showKeywords:!0,form:ea,titleKey:[ur,"name"],analysisKey:[ur,"analysis"],answerTexts:[ur,"answer_texts"],useKeywords:[ur,"use_keywords"],keywords:[ur,"keywords"],indexs:ur,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})))})))};var Ri=(0,ge.connect)(({loading:ze,globalSetting:qe})=>({globalSetting:qe,loading:ze.effects}),null,null,{forwardRef:!0})((0,b.forwardRef)(Tl)),Al=ae(64885),tl=ae(19842),Fl=ae(57809),Hl=ae(1710),dt={flex_box_center:"flex_box_center___xDdtW",flex_space_between:"flex_space_between___J4mFI",flex_box_vertical_center:"flex_box_vertical_center___hDYn6",flex_box_center_end:"flex_box_center_end___H7l1j",flex_box_column:"flex_box_column___TPd2T",questionInfo:"questionInfo___ABq66",label:"label___VQOr7",content:"content____HZ6z",leftPart:"leftPart___YB0y5",rightPart:"rightPart___UVMmS",dragItem:"dragItem___Hbx8k",blackText:"blackText___U4u33",greyText:"greyText___rWIL_",iconWrapper:"iconWrapper___I0kek",contentArea:"contentArea___hGC13",dragging:"dragging___z7VVY",hidden:"hidden___nWAxb",dragIcon:"dragIcon___j91TC",deleteIcon:"deleteIcon___cmCqc",disabled:"disabled___ZlKMj",challengeNameWrapper:"challengeNameWrapper___SpiRb",challengeName:"challengeName___lmQe2",shixunPreviewFooter:"shixunPreviewFooter___u0CzD",shixunInfoWrapper:"shixunInfoWrapper___HzLHD",shixunInfo:"shixunInfo___qaQlF",btnToDetail:"btnToDetail___scXqr",fixedBottom:"fixedBottom___wTBAR",cancelBtn:"cancelBtn___Km4Gi",confirmBtn:"confirmBtn___WrECz",previewBtn:"previewBtn____oGPS",setScoreModalTable:"setScoreModalTable___CjDlp",title:"title___cQWdZ",tipcontent:"tipcontent___A8tZ5",name:"name___CvfT9",tip:"tip___EvoCF",info:"info___y_ayi",img:"img___X9CNn"},mt=ae(89831),Zt=ae(67931),Bn=ae(64948),An=ae(98072),hn=ae(57884),pn=ae(84216),on=({open:ze,onCancel:qe,onOk:ct})=>{const Ct=(0,Zt.g)(),[dn,Dn,ta,Un]=(0,An.U)(Bn.Gm,{page:1,limit:10,keyword:"",diff:"",shixun_publish_status:"",discipline_id:"",sub_discipline_id:"",type:0,include_shixuns:!0,item_type:"SHIXUN"}),[Mn,rn]=(0,b.useState)(!1);(0,b.useEffect)(()=>{ze&&ta({page:1,limit:10,type:0},!0).then(ea=>{(ea==null?void 0:ea.shixuns_count)===0&&rn(!0)})},[ze]);const[Vn,Sa]=(0,b.useState)([]),[lr,or]=(0,b.useState)([]);return b.createElement(Re.default,{title:"\u9009\u62E9\u5B9E\u8BAD\u9898",open:ze,width:948,centered:!0,closable:!0,onCancel:qe,onOk:()=>ct(lr),destroyOnClose:!0},b.createElement(je.Z,{justify:"space-between",className:"mb20",style:{maxHeight:650}},b.createElement(Ie.Z,null,b.createElement(tl.Z,{style:{width:160},size:"large",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:Ct,onChange:ea=>{ta({page:1,discipline_id:ea==null?void 0:ea[0],sub_discipline_id:ea==null?void 0:ea[1]})}}),b.createElement(Fl.default,{className:"ml20",style:{width:118},size:"large",placeholder:"\u96BE\u5EA6",allowClear:!0,options:[{label:"\u521D\u7EA7",value:1},{label:"\u4E2D\u7EA7",value:2},{label:"\u4E2D\u9AD8\u7EA7",value:3},{label:"\u9AD8\u7EA7",value:4}],onChange:ea=>ta({page:1,diff:ea})}),b.createElement(Fl.default,{className:"ml20",placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"large",allowClear:!0,options:[{label:"\u672A\u53D1\u5E03",value:"unpublish"},{label:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{label:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],onChange:ea=>ta({page:1,shixun_publish_status:ea})})),b.createElement(mt.t7,{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",style:{width:290},onChange:ea=>{ta({keyword:ea,page:1})}})),Mn?b.createElement("div",null,b.createElement(hn.Z,{customText:"\u6682\u65E0\u6570\u636E",ButtonText:"\u524D\u5F80\u5B9E\u8DF5\u9879\u76EE\u5E93\uFF0C\u6DFB\u52A0\u66F4\u591A\u8BD5\u9898>",ButtonClick:()=>(0,ye.xg)("/shixuns")})):b.createElement(Hl.default,{loading:Dn,rowKey:"id",columns:[{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"30%",ellipsis:{showTitle:!0},render:(ea,Yn)=>b.createElement("div",{style:{display:"flex",alignItems:"center"}},b.createElement("div",{className:Yn!=null&&Yn.high_resources_consume?dt.title:"",title:ea||"--"},b.createElement(pe.Z,{key:1,showLines:1,showTextOnly:!0,value:ea||"--"})),(Yn==null?void 0:Yn.high_resources_consume)&&b.createElement(pn.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u96BE\u5EA6",dataIndex:"level"},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",render:(ea,Yn,On)=>b.createElement("span",null,ea||"- -")},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"study_count"},{title:b.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",b.createElement(Fe.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},b.createElement(xn.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",width:100,render:(ea,Yn,On)=>b.createElement("span",null,ea||"- -")},{title:"\u64CD\u4F5C",render(ea,Yn){const{title:On,challenge_names:Kn,author_name:Ra,identifier:fr,author_school_name:Ia,study_count:ua}=Yn||{};return b.createElement("div",null,b.createElement("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:()=>{Re.default.confirm({title:"\u9898\u76EE\u8BE6\u60C5",closable:!0,width:1e3,centered:!0,icon:null,footer:null,content:b.createElement("div",null,b.createElement(pe.Z,{value:On,style:{marginBottom:18}}),b.createElement("div",{className:dt.challengeNameWrapper},Kn.map((Ca,sa)=>b.createElement("div",{className:dt.challengeName,key:sa},"\u7B2C",(0,ye.EM)(sa+1),"\u9898\xA0",Ca))),b.createElement(je.Z,{className:dt.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},b.createElement(Ie.Z,{className:dt.shixunInfoWrapper},b.createElement("span",null,"\u521B\u5EFA\u8005"),b.createElement("span",{className:dt.shixunInfo},Ra.split("\u3001")[0]),b.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),b.createElement("span",{className:dt.shixunInfo},Ia),b.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{className:dt.shixunInfo},ua)),b.createElement(Oe.ZP,{type:"primary",className:dt.btnToDetail,onClick:()=>(0,ye.xg)(`/shixuns/${fr}/challenges?exercise=true`)},b.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),(Yn==null?void 0:Yn.shixun_tag_num)===1&&b.createElement("a",{target:"_blank",href:`/shixuns/${Yn==null?void 0:Yn.identifier}/challenges`,style:{marginLeft:10}},"\u53BB\u53D1\u5E03"))}}],dataSource:Un==null?void 0:Un.items,rowSelection:{type:"radio",selectedRowKeys:Vn,preserveSelectedRowKeys:!0,getCheckboxProps:ea=>({disabled:ea.shixun_tag_num===1}),onChange(ea,Yn){var On,Kn,Ra;console.log(ea),Sa(ea);const fr=[];for(const ua of lr)ea.includes(ua.id)&&fr.push(ua);const Ia=fr.map(ua=>ua.id);for(const ua of Yn)ua&&ea.includes(ua.id)&&!Ia.includes(ua.id)&&fr.push({id:ua.id,difficulty:ua.level,identifier:ua.identifier,name:ua.name,real_name:(On=ua==null?void 0:ua.author_name)==null?void 0:On.split("\u3001")[0],school_name:ua.author_school_name,challenge_names:ua.challenge_names,challenges:(Kn=ua.challenge_names)==null?void 0:Kn.map((Ca,sa)=>({subject:Ca,id:sa,score:5})),score:((Ra=ua.challenge_names)==null?void 0:Ra.length)*5,study_count:ua.study_count,challenges_count:ua.challenges_count});or(fr)}},pagination:{current:dn.page,pageSize:dn.limit,total:Un==null?void 0:Un.items_count,showTotal:ea=>b.createElement("span",null,"\u5171\xA0",b.createElement("span",{style:{color:"#165DFF"}},ea),"\xA0\u6761\u6570\u636E"),showQuickJumper:!0,onChange(ea,Yn){ta({page:ea,limit:Yn})},size:"default"},scroll:{y:400}}))},Tn=ae(6681),ga=ae(67135),pr=(ze,qe,ct)=>new Promise((Ct,dn)=>{var Dn=Mn=>{try{Un(ct.next(Mn))}catch(rn){dn(rn)}},ta=Mn=>{try{Un(ct.throw(Mn))}catch(rn){dn(rn)}},Un=Mn=>Mn.done?Ct(Mn.value):Promise.resolve(Mn.value).then(Dn,ta);Un((ct=ct.apply(ze,qe)).next())}),uo=({visible:ze,getdata:qe,onCancel:ct,onRandomExchange:Ct,selectFromProblemSet:dn,questionParams:Dn})=>{const[ta,Un]=(0,b.useState)(!1),[Mn,rn]=(0,b.useState)(!1),[Vn,Sa]=(0,b.useState)({}),lr=(0,ge.useParams)(),[or,ea]=(0,b.useState)(),Yn=(On,Kn)=>pr(void 0,null,function*(){rn(!0);const Ra=yield(0,Ee.ZP)(`/api/exercises/${lr.categoryId}/toggle_random_question.json`,{method:"post",body:{question_id:Dn.id,item_bank_id:On,shixuns_info:[{id:On,is_copy:Kn!=1,is_use:Kn!=1}]}});rn(!1),Ra!=null&&Ra.status||(Ze.ZP.info("\u6362\u9898\u6210\u529F"),ct(),qe())});return b.createElement(Re.default,{title:"\u8BF7\u9009\u62E9\u66FF\u6362\u65B9\u5F0F",open:ze,onCancel:ct,centered:!0,maskClosable:!0,footer:null},b.createElement(je.Z,{justify:"center",className:"pb20"},b.createElement(Al.Z,{onClick:Ct},"\u968F\u673A\u66F4\u6362"),(Dn==null?void 0:Dn.type)!=="PRACTICAL"&&b.createElement(Oe.ZP,{style:{marginLeft:24},onClick:dn},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9"),(Dn==null?void 0:Dn.type)==="PRACTICAL"&&b.createElement(Oe.ZP,{style:{marginLeft:24},onClick:()=>{Un(!0)}},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9")),b.createElement(on,{open:ta,onCancel:()=>Un(!1),onOk:On=>pr(void 0,null,function*(){if(console.log("----selectedRows",On,lr),(On==null?void 0:On.length)<=0){Ze.ZP.info("\u8BF7\u9009\u62E9\u5B9E\u8BAD");return}let Kn=On==null?void 0:On.map(fr=>fr==null?void 0:fr.id),Ra=yield(0,ga.Tr)({id:[...Kn],course_id:lr.coursesId,type:"shixun"});(Ra==null?void 0:Ra.student_count)===0?Yn(Kn==null?void 0:Kn[0],1):(ea(Kn),Sa(Ra)),Un(!1)})}),b.createElement(Tn.Z,{resdata:Vn,type:"shixun",okloading:Mn,oktext:(Vn==null?void 0:Vn.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:On=>pr(void 0,null,function*(){Yn(or==null?void 0:or[0],2)})}))},_r=ae(77411),_a=ae(24334),Ea=ae(97410),Xn=ae(29920),Pr=ae(22688),Cr=Object.defineProperty,Tr=Object.defineProperties,to=Object.getOwnPropertyDescriptors,Er=Object.getOwnPropertySymbols,Wr=Object.prototype.hasOwnProperty,yr=Object.prototype.propertyIsEnumerable,Da=(ze,qe,ct)=>qe in ze?Cr(ze,qe,{enumerable:!0,configurable:!0,writable:!0,value:ct}):ze[qe]=ct,Lr=(ze,qe)=>{for(var ct in qe||(qe={}))Wr.call(qe,ct)&&Da(ze,ct,qe[ct]);if(Er)for(var ct of Er(qe))yr.call(qe,ct)&&Da(ze,ct,qe[ct]);return ze},$r=(ze,qe)=>Tr(ze,to(qe)),xo=(ze,qe,ct)=>new Promise((Ct,dn)=>{var Dn=Mn=>{try{Un(ct.next(Mn))}catch(rn){dn(rn)}},ta=Mn=>{try{Un(ct.throw(Mn))}catch(rn){dn(rn)}},Un=Mn=>Mn.done?Ct(Mn.value):Promise.resolve(Mn.value).then(Dn,ta);Un((ct=ct.apply(ze,qe)).next())}),ji=({data:ze,submit:qe,goBack:ct,loading:Ct,onTypeScore:dn,editPreview:Dn=!1,onSkipExamination:ta,selectValue:Un,onExchange:Mn,getdata:rn,handleMarkWrongQuestion:Vn})=>{var Sa,lr,or,ea,Yn,On,Kn,Ra,fr,Ia,ua;const Ca=(0,b.useRef)(),[sa,xa]=(0,b.useState)(null),[zr,mo]=(0,b.useState)(!1),[wo,ei]=(0,b.useState)(!1),ur=(0,b.useRef)(),[mi]=Ce.default.useForm(),fi=(0,ge.useParams)(),[jr,Bo]=(0,b.useState)(!1);(0,b.useEffect)(()=>{mo(!0)},[]),(0,b.useEffect)(()=>{Dn||(0,ye.Dk)("\u8BD5\u5377\u9884\u89C8")},[Dn]);const ho=["\u5BB9\u6613","\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],Oo={SINGLE:"\u5355\u9009\u9898",MULTIPLE:"\u591A\u9009\u9898",JUDGMENT:"\u5224\u65AD\u9898",COMPLETION:"\u586B\u7A7A\u9898",SUBJECTIVE:"\u7B80\u7B54\u9898",PRACTICAL:"\u5B9E\u8BAD\u9898",PROGRAM:"\u7F16\u7A0B\u9898",BPROGRAM:"\u7A0B\u5E8F\u586B\u7A7A\u9898",COMBINATION:"\u7EC4\u5408\u9898"},ui={single:"\u5355\u9009\u9898",multiple:"\u591A\u9009\u9898",judgement:"\u5224\u65AD\u9898",completion:"\u586B\u7A7A\u9898",subjective:"\u7B80\u7B54\u9898",practical:"\u5B9E\u8BAD\u9898",program:"\u7F16\u7A0B\u9898",bprogram:"\u7A0B\u5E8F\u586B\u7A7A\u9898",combination:"\u7EC4\u5408\u9898"},gl=zt=>{var wa;const Nr=[];return b.createElement(b.Fragment,null,b.createElement("aside",{className:se.single},(wa=zt==null?void 0:zt.choices)==null?void 0:wa.map((fe,me)=>(fe.is_answer&&Nr.push(Pr.k4[me]),b.createElement("ul",{key:me},b.createElement("li",null,Pr.k4[me],"\u3001"),b.createElement("li",null,b.createElement(pe.Z,{value:fe.choice_text})))))),b.createElement("div",{className:se.analysis},b.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",Nr.join(""),b.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",ho[zt.difficulty])),b.createElement("aside",null,b.createElement("span",{className:se.text},"\u89E3\u6790:"),b.createElement(pe.Z,{value:zt.analysis?zt.analysis:"\u6682\u65E0\u89E3\u6790"})),b.createElement("ul",null,b.createElement("li",null,b.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(zt==null?void 0:zt.discipline_name)||"--"}/${zt==null?void 0:zt.sub_discipline_name}`),b.createElement(Fe.Z,{title:zt==null?void 0:zt.tag_discipline_name},b.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},b.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),zt==null?void 0:zt.tag_discipline_name)))))},Ml=(zt,wa)=>{var Nr;const fe=(Nr=zt==null?void 0:zt.standard_answer)==null?void 0:Nr.map((me,Me)=>{var He;return b.createElement("div",{key:Me},`\u7B54\u6848\uFF08\u586B\u7A7A${me==null?void 0:me.position}\uFF09\uFF1A${(He=me==null?void 0:me.answer_text)==null?void 0:He.join("\u3001")}`)});return b.createElement(b.Fragment,null,b.createElement("div",{className:se.analysis},b.createElement("div",{style:{display:"flex"}},b.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),b.createElement("div",null,fe)),b.createElement("aside",null,b.createElement("span",{className:se.text},"\u89E3\u6790:"),b.createElement(pe.Z,{value:zt.analysis?zt.analysis:"\u6682\u65E0\u89E3\u6790"})),b.createElement("ul",null,b.createElement("li",null,b.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),wa?`${(wa==null?void 0:wa.discipline_name)||"--"}/${wa==null?void 0:wa.sub_discipline_name}`:`${(zt==null?void 0:zt.discipline_name)||"--"}/${zt==null?void 0:zt.sub_discipline_name}`),b.createElement(Fe.Z,{title:wa?wa==null?void 0:wa.tag_discipline_name:zt==null?void 0:zt.tag_discipline_name},b.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},b.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),wa?wa==null?void 0:wa.tag_discipline_name:zt==null?void 0:zt.tag_discipline_name)))))},wl=zt=>{var wa;const Nr=(wa=zt==null?void 0:zt.standard_answer)==null?void 0:wa.map((fe,me)=>b.createElement("div",{key:me},`\u7B54\u6848\uFF08\u586B\u7A7A${(fe==null?void 0:fe.position)||(fe==null?void 0:fe.exercise_choice_id)}\uFF09\uFF1A${fe==null?void 0:fe.answer_text}`));return b.createElement(b.Fragment,null,b.createElement("div",{className:se.analysis},b.createElement("div",{style:{display:"flex"}},b.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),b.createElement("div",null,Nr)),b.createElement("aside",null,b.createElement("span",{className:se.text},"\u89E3\u6790:"),b.createElement(pe.Z,{value:zt.analysis?zt.analysis:"\u6682\u65E0\u89E3\u6790"})),b.createElement("ul",null,b.createElement("li",null,b.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(zt==null?void 0:zt.discipline_name)||"--"}/${zt==null?void 0:zt.sub_discipline_name}`),b.createElement(Fe.Z,{title:zt==null?void 0:zt.tag_discipline_name},b.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},b.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),zt==null?void 0:zt.tag_discipline_name)))))},Gl=(zt,wa)=>{var Nr;return b.createElement("div",{className:se.analysis},b.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",(Nr=zt==null?void 0:zt.answer_texts)==null?void 0:Nr[0]),b.createElement("aside",null,b.createElement("span",{className:se.text},"\u89E3\u6790:"),b.createElement(pe.Z,{value:zt.analysis?zt.analysis:"\u6682\u65E0\u89E3\u6790"})),b.createElement("ul",null,b.createElement("li",null,b.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),wa?`${(wa==null?void 0:wa.discipline_name)||"--"}/${wa==null?void 0:wa.sub_discipline_name}`:`${(zt==null?void 0:zt.discipline_name)||"--"}/${zt==null?void 0:zt.sub_discipline_name}`),b.createElement(Fe.Z,{title:wa?wa==null?void 0:wa.tag_discipline_name:zt==null?void 0:zt.tag_discipline_name},b.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},b.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),wa?wa==null?void 0:wa.tag_discipline_name:zt==null?void 0:zt.tag_discipline_name))))},_l=zt=>{var wa,Nr;return b.createElement("div",{className:se.analysis},b.createElement("aside",null,b.createElement("span",{className:se.text},"\u9884\u671F\u8F93\u51FA:"),b.createElement(pe.Z,{value:(wa=zt==null?void 0:zt.program_attr)==null?void 0:wa.description})),b.createElement("div",{style:{marginTop:20}},"\u6B63\u786E\u7B54\u6848\uFF1A",((Nr=zt==null?void 0:zt.program_attr)==null?void 0:Nr.answer_text)||"--"),b.createElement("aside",null,b.createElement("span",{className:se.text},"\u89E3\u6790:"),b.createElement(pe.Z,{value:zt.analysis?zt.analysis:"\u6682\u65E0\u89E3\u6790"})),b.createElement("ul",null,b.createElement("li",null,b.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(zt==null?void 0:zt.discipline_name)||"--"}/${zt==null?void 0:zt.sub_discipline_name}`),b.createElement(Fe.Z,{title:zt==null?void 0:zt.tag_discipline_name},b.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},b.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),zt==null?void 0:zt.tag_discipline_name))))},Wl=(zt,wa)=>{var Nr;return b.createElement("div",null,(Nr=zt==null?void 0:zt.sub_item_banks)==null?void 0:Nr.map((fe,me)=>{var Me,He;const $e=[];return b.createElement(b.Fragment,null,b.createElement("div",{style:{marginLeft:25,fontSize:"16px",color:"#333",paddingTop:"15px"}},wa+1+"."+(me+1),"\uFF08",Oo[fe.item_type]||ui[fe.item_type],"\uFF09",fe.name),(fe.item_type=="SINGLE"||fe.item_type=="MULTIPLE"||fe.item_type=="JUDGMENT"||fe.item_type=="single"||fe.item_type=="multiple"||fe.item_type=="judgement")&&b.createElement(b.Fragment,null,b.createElement("aside",{className:se.single},(Me=fe==null?void 0:fe.choices)==null?void 0:Me.map((Ye,Nt)=>(Ye.is_answer&&$e.push(Pr.k4[Nt]),b.createElement("ul",{key:Nt},b.createElement("li",null,Pr.k4[Nt],"\u3001"),b.createElement("li",null,b.createElement(pe.Z,{value:Ye.choice_text})))))),b.createElement("div",{className:se.analysis},b.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",$e.join(""),b.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",ho[fe.difficulty])),b.createElement("aside",null,b.createElement("span",{className:se.text},"\u89E3\u6790:"),b.createElement(pe.Z,{value:fe.analysis?fe.analysis:"\u6682\u65E0\u89E3\u6790"})),b.createElement("ul",null,b.createElement("li",null,b.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(zt==null?void 0:zt.discipline_name)||"--"}/${zt==null?void 0:zt.sub_discipline_name}`),b.createElement(Fe.Z,{title:zt==null?void 0:zt.tag_discipline_name},b.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},b.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),zt==null?void 0:zt.tag_discipline_name))))),(fe.item_type=="COMPLETION"||fe.item_type=="completion")&&Ml(fe,zt),(fe.item_type=="SUBJECTIVE"||fe.item_type=="subjective")&&Gl(fe,zt),((He=ze==null?void 0:ze.exam)==null?void 0:He.exercise_status)===3&&b.createElement("div",{className:"flex gap-20px mt20"},b.createElement(Ea.Z,{state:fe==null?void 0:fe.is_wrong,onClick:()=>{Vn==null||Vn({value:$r(Lr({},fe),{question_id:fe==null?void 0:fe.id,question_score:fe==null?void 0:fe.score})})}}),fe.item_type=="single"&&b.createElement(Oe.ZP,{style:{color:"#3061D0"},onClick:()=>{nu({value:fe})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848")))}))},vl=zt=>{var wa,Nr,fe;return b.createElement("div",{style:{marginTop:"12px"}},(Nr=(wa=zt==null?void 0:zt.shixun)==null?void 0:wa.challenges)==null?void 0:Nr.map((me,Me)=>b.createElement("div",{className:"c-grey-666 font14 mb10 ml25",style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},b.createElement("div",null,b.createElement("span",{className:"mr5"},"\u7B2C",Me+1,"\u5173"),b.createElement(Fe.Z,{key:Me,title:me==null?void 0:me.challenge_name},b.createElement("span",null,(0,ye.Pq)(me==null?void 0:me.challenge_name,44)))),Dn&&b.createElement("div",null,"\u5206\u503C\uFF1A",me.score,"\u5206"))),b.createElement(ge.Link,{style:{float:"right"},target:"_blank",to:`/shixuns/${(fe=zt==null?void 0:zt.shixun)==null?void 0:fe.identifier}/challenges`},"\u5B9E\u8BAD\u8BE6\u60C5"),b.createElement("div",{style:{clear:"both"}}))},Dl=zt=>{let wa=zt.questions_score/zt.questions_count;Re.default.confirm({icon:null,centered:!0,title:"\u5206\u6570\u8BBE\u7F6E",content:b.createElement("div",{className:se.modalColumn},b.createElement("div",{className:se.modalRow,style:{justifyContent:"flex-start"}},b.createElement("sup",{className:se.sup},"*"),b.createElement("span",null,zt==null?void 0:zt.name,"\uFF1A"),b.createElement(ue.Z,{min:0,precision:1,defaultValue:wa,onChange:Nr=>{wa=Nr}}),b.createElement("span",{className:"ml5"},"\u5206/\u9898"))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>xo(void 0,null,function*(){var Nr;if(!wa)return Ze.ZP.warning("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A\u6216\u4E3A0"),Promise.reject();const fe={type:zt==null?void 0:zt.type,score:wa,scoreTotal:Number((Nr=wa*zt.questions_count)==null?void 0:Nr.toFixed(1))};dn(fe)})})},Il=()=>{let zt="";Re.default.confirm({icon:null,centered:!0,title:"\u4FDD\u5B58\u8BD5\u5377",content:b.createElement("div",{className:se.modalColumn},b.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20"},b.createElement("img",{style:{marginRight:5},src:Dt.Z}),"\u4FDD\u5B58\u540E\u5355\u72EC\u751F\u6210\u4E00\u4EFD\u4EBA\u5DE5\u7EC4\u5377\u7C7B\u578B\u7684\u56FA\u5B9A\u8BD5\u5377\u3002"),b.createElement("div",{className:se.modalRow,style:{marginTop:20}},b.createElement("sup",{className:se.sup},"*"),b.createElement("span",{style:{flexShrink:0}},"\u8BD5\u5377\u540D\u79F0\uFF1A"),b.createElement(We.default,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",min:0,maxLength:60,defaultValue:zt,onChange:wa=>{zt=wa.target.value}}))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>xo(void 0,null,function*(){var wa;if(!zt)return Ze.ZP.warning("\u8BD5\u5377\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Promise.reject();const Nr=[],fe=[],me=[],Me=[];(wa=ze==null?void 0:ze.questionList)==null||wa.forEach($e=>{var Ye;(Ye=$e.questions)==null||Ye.forEach(Nt=>{let xt=$e.questions_score/$e.questions_count;xt=xt&&xt.toFixed(1),$e.type==="COMBINATION"&&me.push({id:Nt.id,sub_item_bank_ids:Nt.sub_item_banks.map(Tt=>Tt.id)}),$e.type==="PRACTICAL"?Me.push(Nt.id):(Nr.push(Nt.id),fe.push(xt))})}),console.log("-----",me),yield qe({item_bank_ids:Nr,item_bank_scores:fe,name:zt,combination_item_banks:me,shixun_ids:Me})})})},eu=(zt,wa,Nr,fe)=>{var me;const Me=`${location.pathname}${location.search}`,He=(me=fe.questions)==null?void 0:me.map($e=>$e==null?void 0:$e.id);if(Me.includes("exercise"))ur.current={id:zt,ids:He,type:wa,index:Nr},ei(!0);else{let $e=Re.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u8BA4\u8981\u66F4\u6362\u8BE5\u8BD5\u9898\u5417\uFF1F",cancelButtonProps:{disabled:!1},maskClosable:!0,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>xo(void 0,null,function*(){$e.update({cancelButtonProps:{disabled:!0}}),yield Mn({single_question_id:zt,seleted_item_bank_ids:He},{type:wa,index:Nr}),$e.update({cancelButtonProps:{disabled:!1}}),Ze.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u8BD5\u9898")})})}},sl=zt=>{var wa;const Nr=(wa=zt.questions)==null?void 0:wa.map(Me=>Me==null?void 0:Me.id),fe=zt.name;let me=Re.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:`\u786E\u8BA4\u66F4\u6362${fe}\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F`,cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>xo(void 0,null,function*(){me.update({cancelButtonProps:{disabled:!0}}),yield Mn({seleted_item_bank_ids:Nr},{type:zt.type}),me.update({cancelButtonProps:{disabled:!1}}),Ze.ZP.success(`\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210${fe}\u8BD5\u9898`)})})},kl=()=>{let zt=Re.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u8BA4\u66F4\u6362\u9884\u89C8\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F",cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>xo(void 0,null,function*(){zt.update({cancelButtonProps:{disabled:!0}}),yield Mn(),zt.update({cancelButtonProps:{disabled:!1}}),Ze.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u6574\u5F20\u8BD5\u9898")})})},Ol=zt=>{console.log(zt,"key"),ta(zt-1)},Kl=(zt,wa)=>{var Nr,fe;if(wa==="SINGLE")return b.createElement(b.Fragment,null,b.createElement(cn,{ref:Ca,editData:zt,isEdit:!0}),b.createElement(_e.Z,null));if(wa==="MULTIPLE")return b.createElement(b.Fragment,null,b.createElement(Cn,{ref:Ca,editData:zt,isEdit:!0}),b.createElement(_e.Z,null));if(wa==="JUDGMENT")return b.createElement(b.Fragment,null,b.createElement(bt,{ref:Ca,editData:zt,isEdit:!0}),b.createElement(_e.Z,null));if(wa==="COMPLETION")return b.createElement(b.Fragment,null,b.createElement(Xe,{ref:Ca,editData:zt,isEdit:!0}),b.createElement(_e.Z,null));if(wa==="SUBJECTIVE")return b.createElement(b.Fragment,null,b.createElement(nr,{ref:Ca,editData:zt,isEdit:!0}),b.createElement(_e.Z,null));if(wa==="COMBINATION")return b.createElement(b.Fragment,null,b.createElement(Ri,{ref:Ca,editData:zt,isEdit:!0}),b.createElement(_e.Z,null));if(wa==="BPROGRAM")return b.createElement(b.Fragment,null,b.createElement(Ce.default,{form:mi,style:{marginTop:20},onFinishFailed:me=>{var Me,He;me.errorFields[0].name.includes("standard_answers")?Ze.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):Ze.ZP.error(me.errorFields[0].errors[0]),mi.scrollToField((He=(Me=me==null?void 0:me.errorFields)==null?void 0:Me[0])==null?void 0:He.name,{behavior:"smooth",block:"center"})},onFinish:me=>xo(void 0,null,function*(){var Me;let He=$r(Lr({question_score:zt.score},me),{question_type:8,hack:$r(Lr({},me.hack),{difficult:zt.program_attr.difficult}),hack_codes:$r(Lr({},me.hack_codes),{code:_a.Base64.encode((Me=me.hack_codes)==null?void 0:Me.code)})});jr&&(He.is_cover=1);const $e=yield(0,Ee.ZP)(`/api/exercise_questions/${zt.id}.json`,{method:"put",body:He});($e==null?void 0:$e.status)===0&&(Ze.ZP.success("\u7F16\u8F91\u6210\u529F"),Ol(Un+1)),xa(null)})},b.createElement(_r.tc,{form:mi,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:!1,hackidentifier:(Nr=zt==null?void 0:zt.program_attr)==null?void 0:Nr.identifier,answerKey:"standard_answers"}),b.createElement(_e.Z,null)));if(wa==="PROGRAM"&&ge.history.push(`/problems/${(fe=zt==null?void 0:zt.program_attr)==null?void 0:fe.identifier}/edit?type=exercises&express_id=${fi.categoryId}&question_id=${zt==null?void 0:zt.id}&score=${zt==null?void 0:zt.score}&callback_url=${location.pathname}&select=${Un}&exercise=true`),wa==="PRACTICAL")return b.createElement(b.Fragment,null,b.createElement(Gn,{ref:Ca,editData:zt,isEdit:!0}),b.createElement(_e.Z,null))},Vl=(zt,wa)=>xo(void 0,null,function*(){var Nr,fe,me,Me,He,$e;const Ye=yield(Nr=Ca.current)==null?void 0:Nr.onSave();if(!Ye)return;const Nt=Mt=>{const Wt=Mt.map(yn=>yn.choice_text.trim().replace(/^\s+|\s+$/g,""));return new Set(Wt).size!==Wt.length},xt={question_score:wa.score,analysis:Ye.analysis};if(zt==="SINGLE"||zt==="MULTIPLE"||zt==="JUDGMENT"){if(zt!=="JUDGMENT"&&Nt(Ye==null?void 0:Ye.choices)){Ze.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}const Mt=[],Wt=[];xt.question_type=zt==="JUDGMENT"?2:1,xt.question_title=Ye==null?void 0:Ye.name,(fe=Ye==null?void 0:Ye.choices)==null||fe.forEach((wn,yn)=>{Mt.push(wn.choice_text),wn!=null&&wn.is_answer&&Wt.push(yn+1)}),xt.question_choices=Mt,xt.standard_answers=Wt}if(zt==="COMPLETION"){let Mt=(me=Ye==null?void 0:Ye.standard_answers)==null?void 0:me.map((yn,Ln)=>(yn==null?void 0:yn.score)<=0?Ln+1:null).filter(yn=>yn!==null);if((Mt==null?void 0:Mt.length)>0)return Ze.ZP.warning(`\u7B2C${Mt.join("\u3001")}\u9879\u7684\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A`),!1;let Wt=(Me=Ye==null?void 0:Ye.standard_answers)==null?void 0:Me.reduce((yn,Ln)=>yn+(Number(Ln==null?void 0:Ln.score)||0),0);if(parseFloat(Wt.toFixed(2))!=(xt==null?void 0:xt.question_score))return Ze.ZP.warning("\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BE5\u5C0F\u9898\u5206\u503C\uFF01"),!1;xt.is_ordered=Ye.is_ordered,xt.question_title=Ye==null?void 0:Ye.name,xt.use_blank_score=Ye==null?void 0:Ye.use_blank_score,xt.question_type=3;const wn=[];(He=Ye==null?void 0:Ye.standard_answers)==null||He.forEach((yn,Ln)=>{wn.push({choice_id:yn.position,answer_text:yn.answer_text,score:yn.score})}),xt.standard_answers=wn,xt.downcase=Ye==null?void 0:Ye.downcase,xt.no_space=Ye==null?void 0:Ye.no_space}if(zt==="SUBJECTIVE"&&(console.log("editorData"),console.log(Ye),xt.question_title=Ye==null?void 0:Ye.name,xt.question_type=4,xt.answer_texts=Ye==null?void 0:Ye.answer_texts,xt.use_keywords=Ye==null?void 0:Ye.use_keywords,xt.keywords=Ye==null?void 0:Ye.keywords),zt==="COMBINATION"){xt.question_title=Ye==null?void 0:Ye.name,xt.question_type=7;try{xt.sub_questions=($e=Ye==null?void 0:Ye.sub_item_banks)==null?void 0:$e.map((Mt,Wt)=>{var wn,yn,Ln;if((Mt==null?void 0:Mt.item_type)=="single"||(Mt==null?void 0:Mt.item_type)=="multiple"){if(Nt(Mt==null?void 0:Mt.choices))throw new Error(`\u7B2C${Wt+1}\u5C0F\u9898\u9009\u9879\u5185\u5BB9\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58`);const ha=[],ra=[];return(wn=Mt==null?void 0:Mt.choices)==null||wn.forEach((da,oa)=>{ha.push(da.choice_text),da!=null&&da.is_answer&&ra.push(oa+1)}),{id:Mt.id,question_id:Mt.id,question_title:Mt.name,difficulty:Mt.difficulty,question_type:(Mt==null?void 0:Mt.item_type)=="single"?0:(Mt==null?void 0:Mt.item_type)=="multiple"?1:2,question_choices:ha,standard_answers:ra,analysis:Mt.analysis,question_score:Mt==null?void 0:Mt.score}}else if((Mt==null?void 0:Mt.item_type)=="completion"){let ha=(yn=Mt==null?void 0:Mt.standard_answer)==null?void 0:yn.reduce((da,oa)=>da+(Number(oa==null?void 0:oa.score)||0),0);if(parseFloat(ha.toFixed(2))!=(Mt==null?void 0:Mt.score))throw new Error("\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BE5\u5C0F\u9898\u5206\u503C\uFF01");const ra=[];return(Ln=Mt==null?void 0:Mt.standard_answer)==null||Ln.forEach((da,oa)=>{ra.push({choice_id:da.position,answer_text:da.answer_text,score:da.score})}),{id:Mt.id,question_id:Mt.id,is_ordered:Mt.is_ordered,question_title:Mt.name,difficulty:Mt.difficulty,question_type:3,standard_answers:ra,use_blank_score:Mt.use_blank_score,analysis:Mt.analysis,downcase:Mt==null?void 0:Mt.downcase,no_space:Mt==null?void 0:Mt.no_space,question_score:Mt==null?void 0:Mt.score}}else if((Mt==null?void 0:Mt.item_type)=="subjective")return{id:Mt.id,question_id:Mt.id,question_title:Mt.name,question_type:4,difficulty:Mt.difficulty,answer_texts:Mt==null?void 0:Mt.answer_texts,analysis:Mt.analysis,question_score:Mt==null?void 0:Mt.score,use_keywords:Mt.use_keywords,keywords:Mt==null?void 0:Mt.keywords}})}catch(Mt){Ze.ZP.warning(Mt.message);return}delete xt.analysis}let Tt=!1;(wa==null?void 0:wa.is_my)===1&&(Tt=yield new Promise((Wt,wn)=>{Re.default.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:()=>{Wt(!0)},onCancel:()=>{Wt(!1)}})})),Tt&&(xt.is_cover=1);const Qt=zt!=="PRACTICAL"?yield(0,Ee.ZP)(`/api/exercise_questions/${wa.id}.json`,{method:"put",body:xt}):yield(0,Ee.ZP)(`/api/exercise_questions/${wa.id}/update_shixun_score.json`,{method:"post",body:Lr({},Ye)});(Qt==null?void 0:Qt.status)===0&&(Ze.ZP.success("\u7F16\u8F91\u6210\u529F"),Ol(Un+1),xa(null))}),tu=()=>xo(void 0,null,function*(){(0,ge.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u66F4\u65B0\u8BD5\u5377\uFF0C\u8BF7\u7A0D\u540E..."}}),(yield(0,Ee.ZP)(`/api/exercises/${fi.categoryId}/sync_random_question.json`,{method:"post"})).status===0&&(yield ta(Un),Ze.ZP.success("\u66F4\u65B0\u6210\u529F")),(0,ge.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1}})}),nu=({value:zt}={})=>{var wa;const Nr=[];let fe=[];const me=(wa=zt==null?void 0:zt.choices)==null?void 0:wa.map((He,$e)=>{var Ye;const Nt=$e+1;return He!=null&&He.is_answer&&(Nr.push(Nt),fe.push(Nt)),{value:Nt,label:b.createElement(pe.Z,{className:"c-black font14",value:`${(Ye=Pr.k4)==null?void 0:Ye[$e]}. ${He==null?void 0:He.choice_text}`}),disabled:He==null?void 0:He.origin_standard_answer}}),Me=Re.default.confirm({centered:!0,icon:null,title:"\u589E\u8BBE\u6B63\u786E\u7B54\u6848",width:800,content:b.createElement(b.Fragment,null,"\u5F53\u524D\u8BD5\u9898\u7684\u6B63\u786E\u7B54\u6848\u4E3A ",Nr==null?void 0:Nr.map(He=>{var $e;return($e=Pr.k4)==null?void 0:$e[He-1]}),"\uFF0C\u8BF7\u9009\u62E9\u9700\u8981\u589E\u8BBE\u4E3A\u6B63\u786E\u7B54\u6848\u7684\u9009\u9879\u3002",b.createElement("br",null),"\u52FE\u9009\u63D0\u4EA4\u4E4B\u540E\uFF0C\u9009\u4E2D\u589E\u8BBE\u4E3A\u6B63\u786E\u7B54\u6848\u4EFB\u4E00\u9009\u9879\u7684\u5B66\u751F\u4E5F\u4F1A\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\uFF0C\u4F46\u4E0D\u4F1A\u4FEE\u6539\u5F53\u524D\u8BD5\u9898\u7684\u9898\u578B\u3002\u53D6\u6D88\u52FE\u9009\u63D0\u4EA4\u4E4B\u540E\uFF0C\u4E5F\u4F1A\u91CD\u65B0\u8BA1\u7B97\u5BF9\u5E94\u5B66\u751F\u7684\u5F97\u5206\u3002",b.createElement("br",null),b.createElement(ke.default.Group,{className:"flex-col mt20",options:me,defaultValue:fe,onChange:He=>{fe=He}})),onOk:()=>xo(void 0,null,function*(){const He=yield(0,Ee.ZP)(`/api/exercises/${fi.categoryId}/questions/${zt==null?void 0:zt.id}/add_standard_answers.json`,{method:"put",body:{standard_answer:fe}});(He==null?void 0:He.status)===0&&(Ze.ZP.success("\u4FEE\u6539\u6210\u529F"),Ol(Un+1))})})},Ul=(Sa=ze==null?void 0:ze.questionList)==null?void 0:Sa.reduce((zt,wa)=>zt+Number(wa.questions_score),0),au=Dn&&((lr=ze==null?void 0:ze.exam)==null?void 0:lr.exercise_status)!==1;return b.createElement("section",{className:se.wrap},b.createElement("div",{id:"id_left_preview",className:se.left,onMouseEnter:zt=>{const wa=document.getElementById("id_left_preview");wa.style.overflowY="auto"},onMouseLeave:zt=>{const wa=document.getElementById("id_left_preview");wa.style.overflowY="hidden"}},b.createElement("div",{className:se.title},b.createElement("div",{className:"body-overflow-initial"},b.createElement("b",null),b.createElement("span",null,"\u7B54\u9898\u5361"))),b.createElement("div",{className:se.total},b.createElement("div",null,b.createElement("img",{src:st}),b.createElement("span",null,"\u9898\u6570(\u9053)"),b.createElement("aside",null,ze==null?void 0:ze.all_questions_count)),b.createElement("div",{className:"mr30 ml30"},b.createElement("img",{src:et}),b.createElement("span",null,"\u603B\u5206(\u5206)"),b.createElement("aside",null,Ul&&Ul.toFixed(1))),b.createElement("div",null,b.createElement("img",{src:ce}),b.createElement("span",null,"\u65F6\u957F(\u5206)"),b.createElement("aside",null,((or=ze==null?void 0:ze.exam)==null?void 0:or.time)===-1||((ea=ze==null?void 0:ze.exam)==null?void 0:ea.time)===null?"\u4E0D\u9650":(Yn=ze==null?void 0:ze.exam)==null?void 0:Yn.time))),(On=ze==null?void 0:ze.questionList)==null?void 0:On.map((zt,wa)=>{var Nr;return b.createElement("div",{className:se.list,key:wa},b.createElement("div",{className:se.name},b.createElement("b",null),b.createElement("span",null,zt.name)),b.createElement("aside",null,b.createElement("div",null,"\u5171",b.createElement("span",{className:se.b},zt.questions_count),"\u9898 ",b.createElement("span",{className:se.l},"|"),"\u5171",b.createElement("span",{className:se.r},zt.questions_score),"\u5206"),b.createElement("div",{className:se.answerSheet},(Nr=zt==null?void 0:zt.questions)==null?void 0:Nr.map((fe,me)=>b.createElement("div",{onClick:()=>{const Me=`Anchor_${fe==null?void 0:fe.id}`;let He=document.getElementById(Me);He&&setTimeout(()=>He.scrollIntoView({block:"center",behavior:"smooth"}))},key:fe==null?void 0:fe.id,className:se.tag},me+1)))))})),b.createElement("div",{className:se.right},b.createElement("div",{className:se.examName,id:"examName"},b.createElement("div",{className:se.name},b.createElement(Fe.Z,{title:(Kn=ze==null?void 0:ze.exam)==null?void 0:Kn.name,getPopupContainer:zt=>zt.parentNode},b.createElement("span",{className:se.t},(Ra=ze==null?void 0:ze.exam)==null?void 0:Ra.name))),Dn&&((fr=ze==null?void 0:ze.exam)==null?void 0:fr.exercise_status)===1&&b.createElement(mt.op,{openLoading:!0,shape:"default",onClick:()=>{Re.default.confirm({title:"\u63D0\u793A",content:"\u786E\u8BA4\u6839\u636E\u6700\u65B0\u7684\u968F\u673A\u7EC4\u5377\u62BD\u9898\u89C4\u5219\u91CD\u65B0\u751F\u6210\u8BD5\u5377\u5417\uFF1F",onOk:()=>{tu()}})},type:"primary"},"\u66F4\u65B0\u8BD5\u5377"),!Dn&&b.createElement(Oe.ZP,{onClick:kl,type:"primary"},"\u968F\u673A\u66F4\u6362")),b.createElement("div",{className:se.topWarp},(Ia=ze==null?void 0:ze.questionList)==null?void 0:Ia.map((zt,wa)=>{var Nr,fe;return b.createElement(b.Fragment,{key:wa},b.createElement("div",{className:se.head,style:wa===0?{border:0,marginTop:-16}:{}},b.createElement("div",{className:se.name},b.createElement("b",null),b.createElement("span",null,zt.name)),b.createElement("div",{className:se.so},"\u5171",b.createElement("span",{className:se.b},zt.questions_count," "),"\u9898 ",zt.type==="COMBINATION"&&`\uFF08\u5305\u542B${(Nr=zt==null?void 0:zt.questions)==null?void 0:Nr.map(me=>{var Me;return(Me=me==null?void 0:me.sub_item_banks)==null?void 0:Me.length}).reduce((me,Me)=>me+Me)}\u5C0F\u9898\uFF09`,b.createElement("span",{className:se.l},"|"),"\u5171",b.createElement("span",{className:se.r},zt.questions_score),"\u5206"),!Dn&&b.createElement("div",{className:se.btn},b.createElement(Oe.ZP,{onClick:()=>{Dl(zt)},type:"primary",ghost:!0,className:"mr20"},"\u8BBE\u7F6E\u5F97\u5206"),b.createElement(Oe.ZP,{onClick:()=>sl(zt),type:"primary",ghost:!0},"\u968F\u673A\u66F4\u6362"))),(fe=zt==null?void 0:zt.questions)==null?void 0:fe.map((me,Me)=>{var He,$e,Ye,Nt;return sa===(me==null?void 0:me.id)?b.createElement("div",{id:`Anchor_${me==null?void 0:me.id}`,className:se.content,style:{padding:0,marginTop:24},key:me==null?void 0:me.id},b.createElement("div",{style:{float:"right",marginTop:`${(zt==null?void 0:zt.type)==="PRACTICAL"?"-2px":"-6px"}`}},b.createElement(Oe.ZP,{onClick:()=>xa(null),className:"mr20",type:"primary",ghost:!0},"\u53D6\u6D88"),b.createElement(Oe.ZP,{onClick:()=>{Vl(zt==null?void 0:zt.type,me)},type:"primary"},"\u4FDD\u5B58")),Kl(me,zt.type)):b.createElement("div",{id:`Anchor_${me==null?void 0:me.id}`,className:se.content,key:me==null?void 0:me.id},b.createElement("div",{className:se.titleWrap},(me==null?void 0:me.item_type)==="bprogram"?b.createElement(pe.Z,{style:{paddingRight:10},value:Me+1+"\u3001"+((He=me==null?void 0:me.program_attr)==null?void 0:He.description)}):b.createElement(pe.Z,{style:{paddingRight:10},className:se.titleHtml,value:Me+1+`\u3001${(me==null?void 0:me.item_type)==="combination"?"\uFF08\u9898\u5E72\uFF09":""}`+(me==null?void 0:me.name)}),Dn&&b.createElement(Oe.ZP,{onClick:()=>{var xt,Tt,Qt;if(sa){Ze.ZP.warning("\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898");return}mi.setFieldsValue({standard_answers:me==null?void 0:me.standard_answer,hack:Lr(Lr({},me),me==null?void 0:me.program_attr),hack_codes:$r(Lr({},me==null?void 0:me.program_attr),{code:_a.Base64.decode(((xt=me==null?void 0:me.program_attr)==null?void 0:xt.code)||"")}),hack_sets:Lr({},(Tt=me==null?void 0:me.hack_sets)==null?void 0:Tt[0])}),(me==null?void 0:me.item_type)=="program"?ge.history.push(`/problems/newedit/${(Qt=me==null?void 0:me.program_attr)==null?void 0:Qt.identifier}?type=exercises&express_id=${fi.categoryId}&question_id=${me==null?void 0:me.id}&score=${me==null?void 0:me.score}&exercise=true&callback_url=/classrooms/${fi.coursesId}/exercise/${fi.categoryId}/detail?random=true`):xa(me==null?void 0:me.id)},type:"primary",style:{marginLeft:"auto"},ghost:!0},"\u7F16\u8F91"),!au&&b.createElement(Oe.ZP,{disabled:au,className:"ml20",onClick:()=>eu(me==null?void 0:me.id,zt.type,Me,zt),type:"primary",ghost:!0},"\u6362\u4E00\u9898")),(me==null?void 0:me.item_type)==="bprogram"&&b.createElement(pe.Z,{style:{paddingRight:10,paddingLeft:25},showProgramFill:!0,disabledFill:!0,className:se.titleHtml,value:_a.Base64.decode((($e=me==null?void 0:me.program_attr)==null?void 0:$e.code)||"")}),(zt.type==="SINGLE"||zt.type==="JUDGMENT"||zt.type==="MULTIPLE")&&gl(me),zt.type==="COMPLETION"&&Ml(me),zt.type==="SUBJECTIVE"&&Gl(me),zt.type==="PROGRAM"&&_l(me),zt.type==="BPROGRAM"&&wl(me),zt.type==="COMBINATION"&&Wl(me,Me),zt.type==="PRACTICAL"&&vl(me),b.createElement(je.Z,{className:"mt20",wrap:!1,align:"middle",gutter:20},((Ye=ze==null?void 0:ze.exam)==null?void 0:Ye.exercise_status)===3&&!["PROGRAM","BPROGRAM","PRACTICAL","COMBINATION"].includes(zt.type)&&b.createElement(Ie.Z,null,b.createElement(Ea.Z,{state:me==null?void 0:me.is_wrong,onClick:()=>{Vn==null||Vn({value:$r(Lr({},me),{question_id:me==null?void 0:me.id,question_score:me==null?void 0:me.score})})}})),["PROGRAM","BPROGRAM","PRACTICAL"].includes(zt.type)&&(me==null?void 0:me.show_resubmit)&&b.createElement(Ie.Z,null,b.createElement(Xn.C,{dataSource:$r(Lr({},me),{question_id:me==null?void 0:me.id})})),((Nt=ze==null?void 0:ze.exam)==null?void 0:Nt.exercise_status)===3&&["SINGLE"].includes(zt.type)&&b.createElement(Ie.Z,null,b.createElement(Oe.ZP,{style:{color:"#3061D0"},onClick:()=>{nu({value:me})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848"))))}))}))),Dn?b.createElement(mt.vr,null,b.createElement(le.Z,{showTotal:ye.rU,total:(ua=ze==null?void 0:ze.exam)==null?void 0:ua.total_num,pageSize:1,current:Un+1,showSizeChanger:!1,onChange:Ol,showQuickJumper:!1,hideOnSinglePage:!1})):b.createElement(mt.vr,{LeftContent:b.createElement(mt.op,{onClick:ct,shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u8FD4\u56DE"),RightContent:b.createElement(je.Z,{align:"middle"},b.createElement(E.Z,{color:"#55575D",overlayClassName:se.popover,open:zr,getPopupContainer:zt=>zt==null?void 0:zt.parentNode,content:"\u5982\u60A8\u5BF9\u6B64\u4EFD\u8BD5\u9898\u6EE1\u610F\uFF0C\u53EF\u5C06\u6B64\u4EFD\u8BD5\u9898\u4FDD\u5B58\u4E3A\u56FA\u5B9A\u8BD5\u5377"},b.createElement(mt.op,{onMouseEnter:()=>mo(!0),onMouseLeave:()=>mo(!1),onClick:()=>Il(),shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u4FDD\u5B58")),b.createElement(mt.op,{shape:"default",type:"primary",onClick:()=>qe(),style:{height:38,marginLeft:20}},"\u63D0\u4EA4"))}),b.createElement(uo,{visible:wo,questionParams:ur.current,getdata:rn,onRandomExchange:()=>xo(void 0,null,function*(){const zt=ur.current;yield Mn({single_question_id:zt.id,seleted_item_bank_ids:zt.ids},{type:zt.type,index:zt.index}),ei(!1)}),selectFromProblemSet:()=>{const zt=ur.current,wa=`${location.pathname}${location.search}`;wa.includes("exercise")&&ge.history.push(`/paperlibrary/exchangequestion?type=exercise&qid=${zt.id}&qtype=${zt.type}&exerciseid=${fi.categoryId}&from=${wa}`)},onCancel:()=>{ei(!1)}}))}},35199:function(Ot,Rt,ae){"use strict";ae.r(Rt),ae.d(Rt,{default:function(){return Hl}});var b=ae(59301),se={wrapper:"wrapper___KtBVT",breadCrumbWrapper:"breadCrumbWrapper___k9tSB",baseInfo:"baseInfo____j5EY",radioBtnWrapper:"radioBtnWrapper___k9OCh",baseLineHeight:"baseLineHeight___O_QXK",radiogroup:"radiogroup___e2fW6",easy:"easy___WcUAp",medium:"medium___U_o3j",hard:"hard___dAXLS",formWrap:"formWrap___wt5tC",baseFormItem:"baseFormItem___zV64d",cascaderPopup:"cascaderPopup___qm63f",fixedBottom:"fixedBottom___liDZ4",cancelBtn:"cancelBtn___ZV9Mi",confirmBtn:"confirmBtn___DwH6m",previewBtn:"previewBtn___aLYCy",concat:"concat___ZuLMo"},Ce=ae(8591),Fe=ae(78241),Oe=ae(66104),Re=ae(76560),ue=ae(15985),Ze=ae(71418),We=ae(92832),_e=ae(19842),ke=ae(5112),je=ae(95237),Ie=ae(5871),le=ae(3113),E=ae(82093),a=Object.defineProperty,x=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,te=(dt,mt,Zt)=>mt in dt?a(dt,mt,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):dt[mt]=Zt,re=(dt,mt)=>{for(var Zt in mt||(mt={}))y.call(mt,Zt)&&te(dt,Zt,mt[Zt]);if(x)for(var Zt of x(mt))z.call(mt,Zt)&&te(dt,Zt,mt[Zt]);return dt},ie=(dt,mt,Zt)=>new Promise((Bn,An)=>{var hn=on=>{try{_t(Zt.next(on))}catch(Tn){An(Tn)}},pn=on=>{try{_t(Zt.throw(on))}catch(Tn){An(Tn)}},_t=on=>on.done?Bn(on.value):Promise.resolve(on.value).then(hn,pn);_t((Zt=Zt.apply(dt,mt)).next())});function ce(dt){return ie(this,null,function*(){return(0,E.ZP)(`/api/examination_banks/${dt}/edit_random_exam_new.json`,{method:"get"})})}function pe(dt,mt){return ie(this,null,function*(){return(0,E.ZP)(`/api/examination_banks/${dt}/update_random_exam.json`,{method:"post",body:mt})})}function ge(dt){return ie(this,null,function*(){return(0,E.ZP)("/api/examination_banks/create_random_exam.json",{method:"post",body:dt})})}function ye(dt){return ie(this,null,function*(){return(0,E.ZP)("/api/disciplines.json",{method:"get",params:dt})})}function Ee(dt){return ie(this,null,function*(){return(0,E.ZP)("/api/item_banks/item_difficulty_count.json",{method:"get",params:dt})})}function we(dt,mt){return ie(this,null,function*(){return(0,E.ZP)(`/api/examination_banks/${dt}/set_item_type_score.json`,{method:"post",body:mt})})}function ve(dt,mt){return ie(this,null,function*(){return(0,E.ZP)(`/api/exercises/${dt}/set_item_type_score.json`,{method:"post",body:mt})})}function Je(dt,mt){return ie(this,null,function*(){return(0,E.ZP)(`/api/examination_banks/${dt}/delete_item_type.json`,{method:"post",body:mt})})}function Ge(dt,mt){return ie(this,null,function*(){return(0,E.ZP)(`/api/exercises/${dt}/delete_item_type.json`,{method:"post",body:mt})})}function ot(dt){return ie(this,null,function*(){return(0,E.ZP)("/api/examination_banks/preview_random_questions.json",{method:"post",body:dt})})}function Le(dt){return ie(this,null,function*(){return(0,E.ZP)("/api/examination_banks/toggle_random_questions.json",{method:"post",body:dt})})}function Ue(dt){return ie(this,null,function*(){return(0,E.ZP)("/api/examination_banks/save_question_list.json",{method:"post",body:dt})})}function st(dt){return ie(this,null,function*(){return(0,E.ZP)(`/api/exercises/${dt.categoryId}/edit.json`,{method:"get",params:re({},dt)})})}var Ke=(dt=>(dt.OnlyFileFolder="1",dt.OnlyKnowledge="2",dt.OnlyDifficulty="3",dt.FileFolderAndDiff="4",dt.FileFolderAndKnowledge="5",dt.KnowledgeAndDiff="6",dt.All="7",dt.Shixun="8",dt))(Ke||{}),rt=ae(89392),Ht=Object.defineProperty,it=Object.defineProperties,jt=Object.getOwnPropertyDescriptors,Kt=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,Dt=(dt,mt,Zt)=>mt in dt?Ht(dt,mt,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):dt[mt]=Zt,tn=(dt,mt)=>{for(var Zt in mt||(mt={}))Qe.call(mt,Zt)&&Dt(dt,Zt,mt[Zt]);if(Kt)for(var Zt of Kt(mt))et.call(mt,Zt)&&Dt(dt,Zt,mt[Zt]);return dt},Et=(dt,mt)=>it(dt,jt(mt)),Vt=(dt=>(dt[dt.FileFolder=1]="FileFolder",dt[dt.Difficulty=2]="Difficulty",dt[dt.Knowledge=3]="Knowledge",dt))(Vt||{});const Be=(0,b.createContext)(null),Gt={[Ke.OnlyFileFolder]:[1],[Ke.OnlyKnowledge]:[3],[Ke.OnlyDifficulty]:[2],[Ke.FileFolderAndDiff]:[1,2],[Ke.FileFolderAndKnowledge]:[1,3],[Ke.KnowledgeAndDiff]:[3,2],[Ke.All]:[3,2,1]},bn=(dt,mt)=>{if(dt.length!==mt.length)return!1;for(const Zt of mt)if(!dt.includes(Zt))return!1;return!0},Bt=dt=>{for(const[mt,Zt]of Object.entries(Gt))if(bn(dt,Zt))return mt},At={SINGLE:"\u5355\u9009\u9898",MULTIPLE:"\u591A\u9009\u9898",COMPLETION:"\u586B\u7A7A\u9898",JUDGMENT:"\u5224\u65AD\u9898",SUBJECTIVE:"\u7B80\u7B54\u9898",PROGRAM:"\u7F16\u7A0B\u9898",BPROGRAM:"\u7A0B\u5E8F\u586B\u7A7A\u9898",COMBINATION:"\u7EC4\u5408\u9898",PRACTICAL:"\u5B9E\u8BAD\u9898"},tt={1:{label:"\u7B80\u5355",color:"#46B70E"},2:{label:"\u9002\u4E2D",color:"#165DFF"},3:{label:"\u56F0\u96BE",color:"#EE6F1A"}},Ve=dt=>dt&&parseFloat(dt.toFixed(1)),De=(dt,mt)=>{var Zt,Bn,An;switch(mt.type){case"init":return mt.payload;case"updateBaseInfo":return Et(tn({},dt),{examination_bank:mt.payload});case"deleteQuestionType":{const{item_types:hn}=dt,pn=hn.filter(_t=>_t.item_type!==mt.payload);return dt.examination_bank.question_count=Ve(pn.reduce((_t,on)=>_t+on.item_bank_count,0)),dt.examination_bank.total_score=Ve(pn.reduce((_t,on)=>_t+on.total_score,0)),Et(tn({},dt),{item_types:pn})}case"setQuestionType":{const{item_types:hn=[]}=dt,pn=hn.map(on=>on.item_type),_t=hn.filter(on=>mt.payload.includes(on.item_type));for(const on of mt.payload)pn.includes(on)||(on==="PRACTICAL"?_t.push({item_type:on,contents:[],item_banks:[],item_bank_count:0,item_bank_num:0,item_type_text:At[on],random_rule_type:Ke.Shixun,score:0,total_score:0}):_t.push({item_type:on,contents:[],item_bank_count:0,item_type_text:At[on],score:0,total_score:0}));return Et(tn({},dt),{item_types:_t})}case"updateItemTypes":return Et(tn({},dt),{item_types:mt.payload});case"deleteRule":{const hn=(0,rt.cloneDeep)(dt),pn=hn.item_types.find(on=>on.item_type===mt.payload.itemType),_t=pn.contents.find(on=>on.id===mt.payload.id&&on.is_share==mt.payload.is_share);return pn.contents=pn.contents.filter(on=>on!==_t),((Zt=pn.contents)==null?void 0:Zt.length)===0&&(pn.random_rule_type=[]),pn.item_bank_count-=_t==null?void 0:_t.quanlity,hn.examination_bank.question_count-=_t==null?void 0:_t.quanlity,pn.total_score-=(_t==null?void 0:_t.quanlity)*pn.score,hn.examination_bank.total_score-=(_t==null?void 0:_t.quanlity)*pn.score,pn.total_score=Ve(pn.total_score),hn.examination_bank.total_score=Ve(hn.examination_bank.total_score),hn.contents=pn.contents,hn}case"changeQuestionNum":{const hn=(0,rt.cloneDeep)(dt),pn=hn.item_types.find(pr=>pr.item_type===mt.payload.itemType),_t=(Bn=pn==null?void 0:pn.contents)==null?void 0:Bn.find(pr=>pr.id===mt.payload.id);if(mt.payload.itemType==="PRACTICAL")return mt.payload.num&&(hn.examination_bank.question_count=hn.examination_bank.question_count-pn.item_bank_count+mt.payload.num,hn.examination_bank.total_score=Ve(hn.examination_bank.total_score-pn.total_score+mt.payload.num*pn.score)),mt.payload.score&&(hn.examination_bank.total_score=Ve(hn.examination_bank.total_score-pn.total_score+mt.payload.num*pn.score)),pn.item_bank_count=mt.payload.num,pn.total_score=Ve(pn.item_bank_count*pn.score),hn;hn.examination_bank.question_count=hn.examination_bank.question_count-(_t==null?void 0:_t.quanlity)+mt.payload.num;const on=pn.contents.find(pr=>pr.id===mt.payload.id&&pr.teacher_group_id===mt.payload.teacher_group_id);on.quanlity=mt.payload.num;let Tn=0,ga=0;for(const pr of pn.contents)Tn+=pr==null?void 0:pr.quanlity,ga+=(pr==null?void 0:pr.quanlity)*pn.score;return hn.examination_bank.total_score=Ve(hn.examination_bank.total_score-pn.total_score+ga),pn.item_bank_count=Tn,pn.total_score=Ve(ga),hn}case"changeQuestionScore":{const hn=(0,rt.cloneDeep)(dt),pn=hn.item_types.find(_t=>_t.item_type===mt.payload.itemType);return pn.score=mt.payload.score,pn.total_score=Ve(pn.item_bank_count*pn.score),hn.examination_bank.total_score=Ve(hn.item_types.reduce((_t,on)=>_t+on.total_score,0)),hn}case"editRule":{const hn=(0,rt.cloneDeep)(dt),pn=hn.item_types.find(_t=>_t.item_type===mt.payload.itemType);return pn.contents=mt.payload.tableData.map(_t=>Et(tn({},_t),{item_type:mt.payload.itemType,random_rule_type:mt.payload.randomRuleType})),pn.random_rule_type=mt.payload.randomRuleType,pn.item_bank_count=pn.contents.reduce((_t,on)=>_t+(on==null?void 0:on.quanlity),0),pn.score=pn.score||1,pn.total_score=Ve(pn.item_bank_count*pn.score),hn.examination_bank.question_count=hn.item_types.reduce((_t,on)=>_t+on.item_bank_count,0),hn.examination_bank.total_score=Ve(hn.item_types.reduce((_t,on)=>_t+on.total_score,0)),hn}case"addShixun":{const hn=(0,rt.cloneDeep)(dt),pn=hn.item_types.find(_t=>_t.item_type==="PRACTICAL");return pn.item_banks=mt.payload.shixunList,hn.examination_bank.question_count=hn.examination_bank.question_count+1,pn.item_bank_num=pn.item_banks.length,pn.item_bank_count=pn.item_bank_count||1,pn.score=pn.score||1,pn.total_score=pn.total_score||pn.score*pn.item_bank_count,hn.examination_bank.total_score=(An=hn==null?void 0:hn.item_types)==null?void 0:An.map(_t=>_t.total_score).reduce((_t,on)=>_t+on),hn}case"deleteShixunQuestion":{const hn=(0,rt.cloneDeep)(dt),pn=hn.item_types.find(_t=>_t.item_type==="PRACTICAL");return pn.item_banks=pn.item_banks.filter(_t=>_t.id!==mt.payload.shixunId),pn.item_bank_num-=1,pn.item_bank_count>pn.item_bank_num&&(pn.item_bank_count-=1,pn.total_score-=pn.score,pn.total_score=Ve(pn.total_score)),hn}}};var he=ae(54579),nt=Object.defineProperty,wt=Object.defineProperties,Ae=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,Te=(dt,mt,Zt)=>mt in dt?nt(dt,mt,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):dt[mt]=Zt,St=(dt,mt)=>{for(var Zt in mt||(mt={}))gt.call(mt,Zt)&&Te(dt,Zt,mt[Zt]);if(be)for(var Zt of be(mt))Xe.call(mt,Zt)&&Te(dt,Zt,mt[Zt]);return dt},ln=(dt,mt)=>wt(dt,Ae(mt)),Lt=(dt,mt,Zt)=>new Promise((Bn,An)=>{var hn=on=>{try{_t(Zt.next(on))}catch(Tn){An(Tn)}},pn=on=>{try{_t(Zt.throw(on))}catch(Tn){An(Tn)}},_t=on=>on.done?Bn(on.value):Promise.resolve(on.value).then(hn,pn);_t((Zt=Zt.apply(dt,mt)).next())}),Ut=({courseOptions:dt,setCurrentKey:mt,loading:Zt,form:Bn})=>{const{data:An,disabled:hn,dispatch:pn}=(0,b.useContext)(Be),_t=(0,Re.useParams)(),on=(0,b.useRef)(!0),[Tn,ga]=(0,b.useState)(!1),pr=(0,b.useMemo)(()=>{var ar,uo,_r,_a,Ea;if(!dt.length||!An)return;const Xn=(ar=An==null?void 0:An.examination_bank)==null?void 0:ar.sub_discipline_id,Pr=((uo=An==null?void 0:An.examination_bank)==null?void 0:uo.time)===-1?void 0:on.current?_t.id?(_r=An==null?void 0:An.examination_bank)==null?void 0:_r.time:((_a=An==null?void 0:An.examination_bank)==null?void 0:_a.time)||60:(Ea=An==null?void 0:An.examination_bank)==null?void 0:Ea.time;on.current=!1;let Cr=[];for(const Tr of dt)for(const to of Tr.children)to.value===Xn&&(Cr=[Tr.value,to.value]);return ln(St({},An.examination_bank),{time:Pr,course:Cr})},[An,dt]);return(0,b.useEffect)(()=>{Bn.setFieldsValue(St({},pr))},[pr]),b.createElement(Ze.Z,{spinning:Zt,size:"large",style:{position:"fixed",maxHeight:"100vh"},className:"mt30"},b.createElement("div",{className:se.formWrap},b.createElement(Fe.default,{form:Bn,autoComplete:"off",colon:!1,labelCol:{span:4},wrapperCol:{span:20},initialValues:pr||{difficulty:2,time:60},onValuesChange:(ar,uo)=>{const{course:_r=[]}=uo,_a=ln(St({},uo),{sub_discipline_id:_r[1]||0});pn({type:"updateBaseInfo",payload:_a})}},b.createElement(Fe.default.Item,{name:"name",label:"\u8BD5\u5377\u540D\u79F0",className:se.baseLineHeight,rules:[{required:!0,validator:(ar,uo)=>{var _r;return((_r=uo==null?void 0:uo.replaceAll(" ",""))==null?void 0:_r.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0")}}]},b.createElement(We.default,{maxLength:60,className:se.baseFormItem,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",showCount:!0})),b.createElement(Fe.default.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B",name:"course",className:se.baseLineHeight},b.createElement(_e.Z,{className:se.baseFormItem,disabled:hn,size:"large",allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:dt,dropdownMenuColumnStyle:{padding:"8px 12px",fontSize:14}})),b.createElement("div",{className:se.concat},"\u6CA1\u6709\u5408\u9002\u7684\u65B9\u5411&\u8BFE\u7A0B\uFF1F",b.createElement("span",{onClick:()=>ga(!0)},"\u8054\u7CFB\u6559\u7814\u52A9\u7406")),b.createElement(Fe.default.Item,{label:"\u96BE\u5EA6",name:"difficulty",className:se.radioBtnWrapper,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6"}]},b.createElement(ke.ZP.Group,{disabled:hn,className:se.radiogroup},b.createElement(ke.ZP.Button,{className:se.easy,value:1},"\u7B80\u5355"),b.createElement(ke.ZP.Button,{className:se.medium,value:2},"\u9002\u4E2D"),b.createElement(ke.ZP.Button,{className:se.hard,value:3},"\u56F0\u96BE"))),b.createElement(Fe.default.Item,{label:"\u7B54\u9898\u65F6\u957F",className:se.baseLineHeight},b.createElement(je.Z,{align:"middle"},b.createElement(Fe.default.Item,{name:"time",noStyle:!0},b.createElement(Ie.Z,{className:se.baseFormItem,min:1,disabled:hn,size:"large",max:9999,style:{width:220},placeholder:"\u8BF7\u586B\u5199\u7B54\u9898\u65F6\u957F"})),b.createElement("span",{style:{marginLeft:"10px",width:"40px",lineHeight:"46px",fontSize:14}},"\u5206\u949F"))),b.createElement(Fe.default.Item,{label:"\u8BD5\u5377\u987B\u77E5",name:"exam_notes"},b.createElement(We.default.TextArea,{rows:6,disabled:hn,maxLength:65535,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u987B\u77E5"})))),b.createElement("div",{className:se.fixedBottom},b.createElement(le.ZP,{className:`${se.cancelBtn} mr5`,onClick:()=>{_t.id||window.location.href.indexOf("randompaper")>-1?Re.history.push("/paperlibrary"):Re.history.push(`/classrooms/${_t.coursesId}/exercise`)}},"\u53D6\u6D88"),b.createElement(le.ZP,{className:`${se.confirmBtn} ml15`,type:"primary",size:"large",onClick:()=>Lt(void 0,null,function*(){if(yield Bn.validateFields(),!_t.id&&!_t.coursesId){const ar=yield ge(An);ar.status===0&&(Re.history.replace(`/randompaper/edit/${ar==null?void 0:ar.examination_bank_id}?type=settings`),mt("settings"))}else mt("settings")})},"\u4E0B\u4E00\u6B65")),b.createElement(he.Z,{open:Tn,onCancel:()=>{ga(!1)}}))},qt=ae(43418),bt=ae(43604),Yt={flex_box_center:"flex_box_center___NXYwj",flex_space_between:"flex_space_between___Oy2UZ",flex_box_vertical_center:"flex_box_vertical_center___ybBar",flex_box_center_end:"flex_box_center_end___yyQPf",flex_box_column:"flex_box_column____kuXY",questionInfo:"questionInfo___U9mnu",label:"label___PP7Ng",content:"content___PUXFl",leftPart:"leftPart___uoQeo",rightPart:"rightPart___mCG7H",dragItem:"dragItem___djmPG",blackText:"blackText___KqEaU",greyText:"greyText___VamKm",iconWrapper:"iconWrapper___o1C0y",contentArea:"contentArea___Fj7D0",dragging:"dragging___mX3Il",hidden:"hidden___KWDLK",dragIcon:"dragIcon___yPuB3",deleteIcon:"deleteIcon___go29y",disabled:"disabled___uSK9k",challengeNameWrapper:"challengeNameWrapper___DFjRy",challengeName:"challengeName___m7v0x",shixunPreviewFooter:"shixunPreviewFooter___iaciG",shixunInfoWrapper:"shixunInfoWrapper___aSihg",shixunInfo:"shixunInfo___WYBm1",btnToDetail:"btnToDetail___WVmtj",fixedBottom:"fixedBottom___oeMSX",cancelBtn:"cancelBtn___ac73V",confirmBtn:"confirmBtn___sYh2O",previewBtn:"previewBtn___c2uQz",setScoreModalTable:"setScoreModalTable___kPddX",title:"title___lP1E2",tipcontent:"tipcontent___tV6uE",name:"name___YLyPW",tip:"tip___FYIzt",info:"info___rSdr9",img:"img___ft7eS"},Fn=ae(57884),kt=ae(89831),Ft=ae(24905);const In=[{label:"\u5355\u9009\u9898",value:"SINGLE"},{label:"\u591A\u9009\u9898",value:"MULTIPLE"},{label:"\u586B\u7A7A\u9898",value:"COMPLETION"},{label:"\u5224\u65AD\u9898",value:"JUDGMENT"},{label:"\u7B80\u7B54\u9898",value:"SUBJECTIVE"},{label:"\u7F16\u7A0B\u9898",value:"PROGRAM"},{label:"\u7EC4\u5408\u9898",value:"COMBINATION"},{label:"\u5B9E\u8BAD\u9898",value:"PRACTICAL"},{label:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM"}];var Gn=({open:dt,onCancel:mt,onOk:Zt})=>{const{data:Bn,dispatch:An}=(0,b.useContext)(Be);(0,b.useEffect)(()=>{if(dt){const{item_types:_t}=Bn||{};pn(_t==null?void 0:_t.map(on=>on.item_type))}},[dt,Bn]);const[hn,pn]=(0,b.useState)([]);return b.createElement(qt.default,{title:b.createElement("div",null,"\u9898\u578B\u8BBE\u7F6E",b.createElement("span",{className:"c-grey-333",style:{fontSize:14,fontWeight:400}},"\uFF08\u901A\u8FC7\u52FE\u9009\u53EF\u5BF9\u9898\u578B\u8FDB\u884C\u6DFB\u52A0/\u5220\u9664\uFF09")),closable:!0,centered:!0,open:dt,onCancel:mt,onOk:()=>Zt(hn)},b.createElement(Ft.default.Group,{value:hn,onChange:_t=>pn(_t)},b.createElement(je.Z,{gutter:[0,20]},In.map(_t=>b.createElement(bt.Z,{key:_t.value,span:6},b.createElement(Ft.default,{value:_t.value},_t.label))))))},na=ae(1710),La=Object.defineProperty,nn=Object.getOwnPropertySymbols,$t=Object.prototype.hasOwnProperty,mn=Object.prototype.propertyIsEnumerable,Zn=(dt,mt,Zt)=>mt in dt?La(dt,mt,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):dt[mt]=Zt,Cn=(dt,mt)=>{for(var Zt in mt||(mt={}))$t.call(mt,Zt)&&Zn(dt,Zt,mt[Zt]);if(nn)for(var Zt of nn(mt))mn.call(mt,Zt)&&Zn(dt,Zt,mt[Zt]);return dt},$a=({open:dt,onCancel:mt,onOk:Zt})=>{const{data:Bn}=(0,b.useContext)(Be),[An,hn]=(0,b.useState)();console.log("--xxx-",An),(0,b.useEffect)(()=>{dt&&hn((0,rt.cloneDeep)(Bn))},[dt,Bn]);const pn=(0,b.useMemo)(()=>{var _t;let on;return on=(_t=An==null?void 0:An.item_types)==null?void 0:_t.map(Tn=>Tn.total_score).reduce((Tn,ga)=>parseFloat(Tn)+parseFloat(ga)),on==null?void 0:on.toFixed(1)},[An]);return dt?b.createElement(qt.default,{title:"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C",open:dt,width:640,centered:!0,closable:!0,onCancel:mt,onOk:()=>{Zt(An)}},b.createElement("div",{className:"c-black mb20"},"\u603B\u5206",b.createElement("span",{className:"ml10 c-light-primary"},pn)),b.createElement(na.default,{columns:[{title:"\u9898\u578B\u540D\u79F0",dataIndex:"item_type_text",width:130},{title:"\u5C0F\u9898\u603B\u6570",dataIndex:"item_bank_count",width:130},{title:"\u9898\u578B\u603B\u5206",dataIndex:"total_score",width:130},{title:"\u64CD\u4F5C",render(_t,on){const{score:Tn,item_type:ga}=on;return b.createElement("div",{style:{color:"#9096A3"}},"\u6BCF",((on==null?void 0:on.item_type)==="PRACTICAL","\u9898"),b.createElement(Ie.Z,{precision:1,size:"large",className:"ml10 mr10",min:.1,disabled:(on==null?void 0:on.item_bank_count)===0,max:100,onChange:pr=>{const ar=An,uo=ar.item_types.find(_a=>_a.item_type===ga);uo.score=Number(pr);const _r=pr*uo.item_bank_count;uo.total_score=_r&&Number(_r.toFixed(1)),ar.examination_bank.total_score=ar.item_types.reduce((_a,Ea)=>Number(_a)+Number(Ea.total_score),0),hn(Cn({},ar))}}),"\u5206")}}],className:Yt.setScoreModalTable,dataSource:An==null?void 0:An.item_types,rowKey:"item_type",pagination:!1})):null},aa=ae(99313),vn=ae(57809),ka=ae(17574),vt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC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FqdcY9g1yzbX2/WL+QCM9QLhzstl90/S1fUdg2FgWQT6EVLbNHpThjNhaa8Hz6e7DgcFVbPTxwNcrk9JgqH9bBkCWYDZPh7uNmWanuhVfhIVaIwOjUzeNfLZ141XPdbcpNX4F/ikyqlsA/6bwAAAABJRU5ErkJggg==",xn={ruleCheckBox:"ruleCheckBox___Onj2f",folderAreaWrapper:"folderAreaWrapper___ut2mr",folderAreaHeader:"folderAreaHeader___fOIDA",folderWrapper:"folderWrapper___IpJ50",folderIcon:"folderIcon___zBoRM",shareFolderIcon:"shareFolderIcon____5s3p",treeNodeItem:"treeNodeItem___quqla",treeNodeDifficulty:"treeNodeDifficulty___en0gk"},zn=ae(70610),Jn=Object.defineProperty,ht=Object.defineProperties,yt=Object.getOwnPropertyDescriptors,pt=Object.getOwnPropertySymbols,sn=Object.prototype.hasOwnProperty,En=Object.prototype.propertyIsEnumerable,gn=(dt,mt,Zt)=>mt in dt?Jn(dt,mt,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):dt[mt]=Zt,Qn=(dt,mt)=>{for(var Zt in mt||(mt={}))sn.call(mt,Zt)&&gn(dt,Zt,mt[Zt]);if(pt)for(var Zt of pt(mt))En.call(mt,Zt)&&gn(dt,Zt,mt[Zt]);return dt},_n=(dt,mt)=>ht(dt,yt(mt)),Hn=(dt,mt,Zt)=>new Promise((Bn,An)=>{var hn=on=>{try{_t(Zt.next(on))}catch(Tn){An(Tn)}},pn=on=>{try{_t(Zt.throw(on))}catch(Tn){An(Tn)}},_t=on=>on.done?Bn(on.value):Promise.resolve(on.value).then(hn,pn);_t((Zt=Zt.apply(dt,mt)).next())});const Pa=(dt,mt,Zt)=>dt.map(Bn=>Bn.key===mt?Qn(Qn({},Bn),Zt):Bn.children?_n(Qn({},Bn),{children:Pa(Bn.children,mt,Zt)}):Bn),Qa={\u7B80\u5355:1,\u9002\u4E2D:2,\u56F0\u96BE:3},Sn=(dt,mt,Zt)=>dt.map(Bn=>{var An;const hn=Bn==null?void 0:Bn.tag_disciplines.map(_t=>{const on=_t==null?void 0:_t.difficulty_count.map(Tn=>({label:Tn==null?void 0:Tn.name,value:Qa[Tn.name]}));return{title:Bt(mt)===Ke.All&&on.length>0?b.createElement(je.Z,{justify:"space-between"},b.createElement(bt.Z,null,`${_t.name}\uFF08${_t.child_count}\uFF09`),b.createElement(bt.Z,null,b.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),b.createElement(Fe.default.Item,{noStyle:!0,name:[`${Bn.id}_${_t.id}`,"diffValue"]},b.createElement(Ft.default.Group,{style:{columnGap:12},options:on})),b.createElement(Fe.default.Item,{noStyle:!0,name:[`${Bn.id}_${_t.id}`,"diffNum"],initialValue:_t==null?void 0:_t.difficulty_count},b.createElement("input",{type:"hidden"})),b.createElement(Fe.default.Item,{noStyle:!0,name:[`${Bn.id}_${_t.id}`,"extra"],initialValue:_n(Qn({},Bn),{type:Zt})},b.createElement("input",{type:"hidden"})))):`${_t.name}\uFF08${_t.child_count}\uFF09`,key:`${Bn.id}_${_t.id}`,name:_t.name,parentName:Bn.name,item_banks_count:_t.child_count,icon:null,isLeaf:!0,checkable:Bt(mt)===Ke.FileFolderAndKnowledge,disableCheckbox:_t.child_count===0}}),pn=Bn==null?void 0:Bn.difficulty_count.map(_t=>({label:_t==null?void 0:_t.name,value:Qa[_t.name]}));return{title:Bt(mt)===Ke.FileFolderAndDiff&&pn.length>0?b.createElement(je.Z,{justify:"space-between"},b.createElement(bt.Z,null,`${Bn.name}\uFF08${Bn.item_banks_count}\uFF09`),b.createElement(bt.Z,null,b.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),b.createElement(Fe.default.Item,{noStyle:!0,name:[`${Bn.id}`,"diffValue"]},b.createElement(Ft.default.Group,{style:{columnGap:12},options:pn})),b.createElement(Fe.default.Item,{noStyle:!0,name:[`${Bn.id}`,"diffNum"],initialValue:Bn==null?void 0:Bn.difficulty_count},b.createElement("input",{type:"hidden"})),b.createElement(Fe.default.Item,{noStyle:!0,name:[`${Bn.id}`,"extra"],initialValue:_n(Qn({},Bn),{type:Zt})},b.createElement("input",{type:"hidden"})))):`${Bn.name}\uFF08${Bn.item_banks_count}\uFF09`,key:`${Bn.id}`,name:Bn.name,item_banks_count:Bn.item_banks_count,icon:_t=>_t.expanded?Zt==="0"?b.createElement("img",{src:cn,className:xn.folderIcon}):b.createElement("img",{src:Nn,className:xn.shareFolderIcon}):Zt==="0"?b.createElement("img",{src:vt,className:xn.folderIcon}):b.createElement("img",{src:kn,className:xn.shareFolderIcon}),isLeaf:!Bn.have_child&&!((An=Bn.tag_disciplines)!=null&&An.length),checkable:Bt(mt)===Ke.OnlyFileFolder,disableCheckbox:Bn.item_banks_count===0,children:Bn.children.length?Bt(mt)===Ke.All||Bt(mt)===Ke.FileFolderAndKnowledge?[...Sn(Bn.children,mt,Zt),...hn]:Sn(Bn.children,mt,Zt):[]}}),ba=(dt,mt,Zt)=>dt.map(Bn=>{var An;const hn=Bn==null?void 0:Bn.tag_disciplines.map(_t=>{console.log("tagItem:",_t);const on=_t==null?void 0:_t.difficulty_count.map(Tn=>({label:Tn==null?void 0:Tn.name,value:Qa[Tn.name]}));return{title:Bt(mt)===Ke.All&&on.length>0?b.createElement(je.Z,{justify:"space-between"},b.createElement(bt.Z,null,`${_t.name}\uFF08${_t.child_count}\uFF09`),b.createElement(bt.Z,null,b.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),b.createElement(Fe.default.Item,{noStyle:!0,name:[`${Bn.id}_${_t.id}`,"diffValue"]},b.createElement(Ft.default.Group,{style:{columnGap:12},options:on})),b.createElement(Fe.default.Item,{noStyle:!0,name:[`${Bn.id}_${_t.id}`,"diffNum"],initialValue:_t==null?void 0:_t.difficulty_count},b.createElement("input",{type:"hidden"})),b.createElement(Fe.default.Item,{noStyle:!0,name:[`${Bn.id}_${_t.id}`,"extra"],initialValue:_n(Qn({},Bn),{type:Zt})},b.createElement("input",{type:"hidden"})))):`${_t.name}\uFF08${_t.child_count}\uFF09`,key:`${Bn.id}_${_t.id}`,name:_t.name,parentName:Bn.name,item_banks_count:_t.child_count,icon:null,isLeaf:!0,checkable:Bt(mt)===Ke.FileFolderAndKnowledge,disableCheckbox:_t.child_count===0}}),pn=Bn==null?void 0:Bn.difficulty_count.map(_t=>({label:_t==null?void 0:_t.name,value:Qa[_t.name]}));return{title:Bt(mt)===Ke.FileFolderAndDiff&&pn.length>0?b.createElement(je.Z,{justify:"space-between"},b.createElement(bt.Z,null,`${Bn.name}\uFF08${Bn.item_banks_count}\uFF09`),b.createElement(bt.Z,null,b.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),b.createElement(Fe.default.Item,{noStyle:!0,name:[`${Bn.id}`,"diffValue"]},b.createElement(Ft.default.Group,{style:{columnGap:12},options:pn})),b.createElement(Fe.default.Item,{noStyle:!0,name:[`${Bn.id}`,"diffNum"],initialValue:Bn==null?void 0:Bn.difficulty_count},b.createElement("input",{type:"hidden"})),b.createElement(Fe.default.Item,{noStyle:!0,name:[`${Bn.id}`,"extra"],initialValue:_n(Qn({},Bn),{type:Zt})},b.createElement("input",{type:"hidden"})))):`${Bn.name}\uFF08${Bn.item_banks_count}\uFF09`,key:`${Bn.id}`,name:Bn.name,item_banks_count:Bn.item_banks_count,icon:_t=>_t.expanded?Zt==="0"?b.createElement("img",{src:cn,className:xn.folderIcon}):b.createElement("img",{src:Nn,className:xn.shareFolderIcon}):Zt==="0"?b.createElement("img",{src:vt,className:xn.folderIcon}):b.createElement("img",{src:kn,className:xn.shareFolderIcon}),isLeaf:!Bn.have_child&&!((An=Bn.tag_disciplines)!=null&&An.length),checkable:Bt(mt)===Ke.OnlyFileFolder,disableCheckbox:Bn.item_banks_count===0,children:[...ba(Bn.children,mt,Zt),...hn]}});var gr=({ruleValue:dt,defaultData:mt,setSelectData:Zt,currentItemType:Bn,selectData:An})=>{const[hn,pn]=(0,b.useState)("1"),[_t,on]=(0,b.useState)(!0),[Tn]=Fe.default.useForm(),[ga,pr]=(0,b.useState)([]),[ar,uo]=(0,b.useState)("all"),_r=(dn,Dn,ta)=>{const{checkedNodes:Un}=Dn;console.log("type:",ta,Un,An),ta==="0"?(Ea(dn),Bt(dt)===Ke.OnlyFileFolder?(Zt(Mn=>_n(Qn({},Mn),{my:Un.map(rn=>({id:rn.key,group_id:rn.key,group_name:rn.name,item_bank_num:rn.item_banks_count,folderType:"0",quanlity:1}))})),Ct(Un.reduce((Mn,rn)=>Mn+rn.item_banks_count,0))):(console.log(Un),Zt(Mn=>_n(Qn({},Mn),{my:Un.map(rn=>{const[Vn,Sa]=rn.key.split("_");return{id:rn.key,tag_discipline_name:rn.name,group_id:Vn,tag_discipline_id:Sa,folderType:"0",group_name:rn.parentName,item_bank_num:rn.item_banks_count,quanlity:1}})})),Ct(Un.reduce((Mn,rn)=>Mn+rn.item_banks_count,0)))):(Pr(dn),Bt(dt)===Ke.OnlyFileFolder?Zt(Mn=>(console.log("pre:",Mn),_n(Qn({},Mn),{public:Un.map(rn=>({id:rn.key==="0"?"00":rn.key,teacher_group_name:rn.name,teacher_group_id:rn.key,folderType:"3",item_bank_num:rn.item_banks_count,quanlity:1}))}))):Zt(Mn=>_n(Qn({},Mn),{public:Un.map(rn=>{const[Vn,Sa]=rn.key.split("_");return{id:rn.key==="0"?"00":rn.key,tag_discipline_name:rn.name,teacher_group_id:Vn,tag_discipline_id:Sa,folderType:"3",teacher_group_name:rn.parentName,item_bank_num:rn.item_banks_count,quanlity:1}})})),Ct(Un.reduce((Mn,rn)=>Mn+rn.item_banks_count,0)))},[_a,Ea]=(0,b.useState)([]),[Xn,Pr]=(0,b.useState)([]),[Cr,Tr]=(0,b.useState)([]),[to,Er]=(0,b.useState)([]),[Wr,yr]=(0,b.useState)([]),[Da,Lr]=(0,b.useState)([]),[$r,xo]=(0,b.useState)(!1),[ri,ji]=(0,b.useState)(!1);function ze(){return Hn(this,null,function*(){let dn=yield(0,E.ZP)("/api/teach_group_shares.json",{method:"get"});dn&&pr(dn==null?void 0:dn.groups)})}(0,b.useEffect)(()=>{ze()},[]);const qe=dn=>Hn(void 0,null,function*(){var Dn,ta,Un,Mn,rn,Vn,Sa,lr,or,ea,Yn,On;dn.type==="0"?xo(!0):ji(!0);const Kn=yield(0,zn.ex)(dn);dn.type==="0"?xo(!1):ji(!1),dn.type==="0"?yr(Kn):Lr(Kn);const Ra=(Dn=Kn.navigation[0])==null?void 0:Dn.difficulty_count.map(Ia=>({label:Ia==null?void 0:Ia.name,value:Qa[Ia.name]})),fr=(ta=Kn.navigation[0])==null?void 0:ta.tag_disciplines.map(Ia=>{const ua=Ia==null?void 0:Ia.difficulty_count.map(Ca=>({label:Ca==null?void 0:Ca.name,value:Qa[Ca.name]}));return{title:Bt(dt)===Ke.All&&ua.length>0?b.createElement(je.Z,{justify:"space-between",style:{color:"#232B40"}},b.createElement(bt.Z,null,`${Ia.name}\uFF08${Ia.child_count}\uFF09`),b.createElement(bt.Z,null,b.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),b.createElement(Fe.default.Item,{noStyle:!0,name:[`0_${Ia.id}`,"diffValue"]},b.createElement(Ft.default.Group,{style:{columnGap:12},options:ua})),b.createElement(Fe.default.Item,{noStyle:!0,name:[`0_${Ia.id}`,"diffNum"],initialValue:Ia==null?void 0:Ia.difficulty_count},b.createElement("input",{type:"hidden"})),b.createElement(Fe.default.Item,{noStyle:!0,name:[`0_${Ia.id}`,"extra"],initialValue:{tag_discipline_name:Ia.name,name:"\u6839\u76EE\u5F55",type:dn.type}},b.createElement("input",{type:"hidden"})))):b.createElement("span",{style:{color:"#232B40"}},Ia.name,"\uFF08",Ia.child_count,"\uFF09"),key:`0_${Ia.id}`,name:Ia.name,parentName:"\u6839\u76EE\u5F55",item_banks_count:Ia.child_count,icon:null,isLeaf:!0,checkable:Bt(dt)===Ke.FileFolderAndKnowledge,disableCheckbox:Ia.child_count===0}});if(dn.type==="0"){const Ia=Sn(Kn.data,dt,"0"),ua=ba(Kn.data,dt,"0");console.log("normalChildren2:",ua),Tr([{title:Bt(dt)===Ke.FileFolderAndDiff?b.createElement(je.Z,{justify:"space-between",style:{color:"#232B40"}},b.createElement(bt.Z,null,`\u6839\u76EE\u5F55\uFF08${(Un=Kn.navigation[0])==null?void 0:Un.child_count}\uFF09`),b.createElement(bt.Z,null,b.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),b.createElement(Fe.default.Item,{noStyle:!0,name:["0","diffValue"],initialValue:[]},b.createElement(Ft.default.Group,{style:{columnGap:12},options:Ra})),b.createElement(Fe.default.Item,{noStyle:!0,name:["0","diffNum"],initialValue:(Mn=Kn.navigation[0])==null?void 0:Mn.difficulty_count},b.createElement("input",{type:"hidden"})),b.createElement(Fe.default.Item,{noStyle:!0,name:["0","extra"],initialValue:{type:"0",group_id:"0",name:"\u6839\u76EE\u5F55"}},b.createElement("input",{type:"hidden"})))):b.createElement("span",{style:{color:"#232B40"}},`\u6839\u76EE\u5F55\uFF08${(rn=Kn.navigation[0])==null?void 0:rn.child_count}\uFF09`),key:"0",name:"\u6839\u76EE\u5F55",item_banks_count:(Vn=Kn.navigation[0])==null?void 0:Vn.child_count,disabled:!(((Sa=Kn.navigation[0])==null?void 0:Sa.child_count)>0),checkable:Bt(dt)===Ke.OnlyFileFolder,icon:Ca=>Ca.expanded?b.createElement("img",{src:cn,className:xn.folderIcon}):b.createElement("img",{src:vt,className:xn.folderIcon}),isLeaf:!1,children:Bt(dt)===Ke.OnlyFileFolder||Bt(dt)===Ke.FileFolderAndDiff?Ia:[...ua,...fr]}])}else{const Ia=Sn(Kn.data,dt,"3");Er([{title:Bt(dt)===Ke.FileFolderAndDiff?b.createElement(je.Z,{justify:"space-between"},b.createElement(bt.Z,null,`\u6839\u76EE\u5F55\uFF08${(lr=Kn.navigation[0])==null?void 0:lr.child_count}\uFF09`),b.createElement(bt.Z,null,b.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),b.createElement(Fe.default.Item,{noStyle:!0,name:["0","diffValue"]},b.createElement(Ft.default.Group,{style:{columnGap:12},options:Ra})),b.createElement(Fe.default.Item,{noStyle:!0,name:["0","diffNum"],initialValue:(or=Kn.navigation[0])==null?void 0:or.difficulty_count},b.createElement("input",{type:"hidden"})),b.createElement(Fe.default.Item,{noStyle:!0,name:["0","extra"],initialValue:{type:"3",group_id:"0",name:"\u6839\u76EE\u5F55"}},b.createElement("input",{type:"hidden"})))):b.createElement("span",{style:{color:"#232B40"}},`\u6839\u76EE\u5F55\uFF08${(ea=Kn.navigation[0])==null?void 0:ea.child_count}\uFF09`),key:"0",name:"\u6839\u76EE\u5F55",item_banks_count:(Yn=Kn.navigation[0])==null?void 0:Yn.child_count,checkable:Bt(dt)===Ke.OnlyFileFolder,icon:ua=>ua.expanded?b.createElement("img",{src:Nn,className:xn.shareFolderIcon}):b.createElement("img",{src:kn,className:xn.shareFolderIcon}),isLeaf:!1,disabled:!(((On=Kn.navigation[0])==null?void 0:On.child_count)>0),children:Bt(dt)===Ke.OnlyFileFolder||Bt(dt)===Ke.FileFolderAndDiff?Ia:[...Ia,...fr]}])}});(0,b.useEffect)(()=>{hn==="1"?qe({type:"0",group_id:0,item_type:Bn,show_children:!0}):hn==="2"&&qe({type:"3",except_mine:!0,item_type:Bn,show_children:!0,teach_group_id:ar==="all"?"":ar})},[dt,hn,ar]),(0,b.useEffect)(()=>{var dn,Dn,ta,Un,Mn,rn,Vn,Sa,lr,or,ea,Yn;console.log("selectData-active:",An,mt,hn),hn==="1"?(Ea((dn=An==null?void 0:An.my)==null?void 0:dn.map(On=>On.id)),Ct(((ta=(Dn=An==null?void 0:An.my)==null?void 0:Dn.reduce)==null?void 0:ta.call(Dn,(On,Kn)=>On+Kn.item_bank_num,0))||0)):hn==="2"&&(Pr((Un=An==null?void 0:An.public)==null?void 0:Un.map(On=>On.id)),Ct(((rn=(Mn=An==null?void 0:An.public)==null?void 0:Mn.reduce)==null?void 0:rn.call(Mn,(On,Kn)=>On+Kn.item_bank_num,0))||0)),Bt(dt)===Ke.All&&(hn==="1"?(Ea((Vn=An==null?void 0:An.my)==null?void 0:Vn.map(On=>On.id)),Ct((An==null?void 0:An.filter(On=>!On.is_share).reduce((On,Kn)=>On+Kn.item_bank_num,0))||0),(Sa=An==null?void 0:An.filter(On=>!On.is_share))==null||Sa.forEach(On=>{const Kn=Tn.getFieldValue([`${On.group_id||0}_${On.tag_discipline_id}`,"diffValue"])||[];console.log("prev:",Kn),Kn!=null&&Kn.includes[On.difficulty]||Tn.setFieldValue([`${On.group_id||0}_${On.tag_discipline_id}`,"diffValue"],Array.from(new Set([...Kn,On.difficulty])))})):hn==="2"&&(Pr((lr=An==null?void 0:An.public)==null?void 0:lr.map(On=>On.id)),Ct((An==null?void 0:An.filter(On=>!!On.is_share).reduce((On,Kn)=>On+Kn.item_bank_num,0))||0),(or=An==null?void 0:An.filter(On=>!!On.is_share))==null||or.forEach(On=>{const Kn=Tn.getFieldValue([`${On.teacher_group_id||0}_${On.tag_discipline_id}`,"diffValue"])||[];Kn!=null&&Kn.includes[On.difficulty]||Tn.setFieldValue([`${On.teacher_group_id||0}_${On.tag_discipline_id}`,"diffValue"],Array.from(new Set([...Kn,On.difficulty])))}))),Bt(dt)===Ke.FileFolderAndDiff&&(Tn.resetFields(),setTimeout(()=>{Zt(An)},300),hn==="1"?(Ct((An==null?void 0:An.filter(On=>!On.is_share).reduce((On,Kn)=>On+Kn.item_bank_num,0))||0),(ea=An==null?void 0:An.filter(On=>!On.is_share))==null||ea.forEach(On=>{const Kn=Tn.getFieldValue([`${On.group_id}`,"diffValue"])||[];console.log("prev:",Kn),Kn!=null&&Kn.includes[On.difficulty]||Tn.setFieldValue([`${On.group_id}`,"diffValue"],Array.from(new Set([...Kn,On.difficulty])))})):(Ct((An==null?void 0:An.filter(On=>!!On.is_share).reduce((On,Kn)=>On+Kn.item_bank_num,0))||0),(Yn=An==null?void 0:An.filter(On=>!!On.is_share))==null||Yn.forEach(On=>{const Kn=Tn.getFieldValue([`${On.teacher_group_id}`,"diffValue"])||[];Kn!=null&&Kn.includes[On.difficulty]||Tn.setFieldValue([`${On.teacher_group_id}`,"diffValue"],Array.from(new Set([...Kn,On.difficulty])))})))},[hn]),console.log("1111111111:",_a,Xn),(0,b.useEffect)(()=>{setTimeout(()=>{var dn,Dn,ta,Un,Mn;switch(Bt(dt)){case Ke.OnlyFileFolder:{const rn=[],Vn=[];for(const Sa of An.my||[])rn.push(Sa);for(const Sa of An.public||[])Vn.push(Sa);Ea(rn.map(Sa=>`${Sa.group_id}`)),Pr(Vn.map(Sa=>`${Sa.teacher_group_id}`)),Ct(hn==="1"?rn.reduce((Sa,lr)=>Sa+lr.item_bank_num,0):Vn.reduce((Sa,lr)=>Sa+lr.item_bank_num,0));break}case Ke.FileFolderAndKnowledge:{const rn=[],Vn=[];for(const Sa of(An==null?void 0:An.my)||[])rn.push(Sa);for(const Sa of(An==null?void 0:An.public)||[])Vn.push(Sa);Ct((dn=hn==="1"?rn:Vn)==null?void 0:dn.reduce((Sa,lr)=>Sa+lr.item_bank_num,0)),Ea(rn.map(Sa=>`${Sa.group_id}_${Sa.tag_discipline_id}`)),Pr(Vn.map(Sa=>`${Sa.teacher_group_id}_${Sa.tag_discipline_id}`));break}case Ke.All:{hn==="1"?(Ct((An==null?void 0:An.filter(rn=>!rn.is_share).reduce((rn,Vn)=>rn+Vn.item_bank_num,0))||0),(Dn=An==null?void 0:An.filter(rn=>!rn.is_share))==null||Dn.forEach(rn=>{const Vn=Tn.getFieldValue([`${rn.group_id||0}_${rn.tag_discipline_id}`,"diffValue"])||[];console.log("prev:",Vn,rn.difficulty,rn),Vn!=null&&Vn.includes[rn.difficulty]||Tn.setFieldValue([`${rn.group_id||0}_${rn.tag_discipline_id}`,"diffValue"],Array.from(new Set([...Vn,rn.difficulty])))})):(Ct((An==null?void 0:An.filter(rn=>!!rn.is_share).reduce((rn,Vn)=>rn+Vn.item_bank_num,0))||0),(ta=An==null?void 0:An.filter(rn=>!!rn.is_share))==null||ta.forEach(rn=>{const Vn=Tn.getFieldValue([`${rn.group_id||0}_${rn.tag_discipline_id}`,"diffValue"])||[];console.log("prev:",Vn,rn.difficulty,rn),Vn!=null&&Vn.includes[rn.difficulty]||Tn.setFieldValue([`${rn.group_id||0}_${rn.tag_discipline_id}`,"diffValue"],Array.from(new Set([...Vn,rn.difficulty])))}));break}case Ke.FileFolderAndDiff:{hn==="1"?(Ct((An==null?void 0:An.filter(rn=>!rn.is_share).reduce((rn,Vn)=>rn+Vn.item_bank_num,0))||0),(Un=An==null?void 0:An.filter(rn=>!rn.is_share))==null||Un.forEach(rn=>{const Vn=Tn.getFieldValue([`${rn.group_id}`,"diffValue"])||[];console.log("prev:",Vn,rn.difficulty),Vn!=null&&Vn.includes[rn.difficulty]||Tn.setFieldValue([`${rn.group_id}`,"diffValue"],Array.from(new Set([...Vn,rn.difficulty])))})):(Ct((An==null?void 0:An.filter(rn=>!!rn.is_share).reduce((rn,Vn)=>rn+Vn.item_bank_num,0))||0),(Mn=An==null?void 0:An.filter(rn=>!!rn.is_share))==null||Mn.forEach(rn=>{const Vn=Tn.getFieldValue([`${rn.group_id}`,"diffValue"])||[];Vn!=null&&Vn.includes[rn.difficulty]||Tn.setFieldValue([`${rn.group_id}`,"diffValue"],Array.from(new Set([...Vn,rn.difficulty])))}));break}}},800)},[mt,dt,Cr,to]);const[ct,Ct]=(0,b.useState)(0);return b.createElement(Fe.default,{form:Tn,onValuesChange:(dn,Dn)=>Hn(void 0,null,function*(){var ta,Un,Mn,rn;console.log("onValuesChange:",Dn,dn);let Vn=0;if(Bt(dt)===Ke.FileFolderAndDiff){const Sa=yield Tn.getFieldValue(),lr=[],or=[];for(const Yn of Object.keys(Sa))if((Un=(ta=Sa[Yn])==null?void 0:ta.diffValue)!=null&&Un.length&&Yn!=="null"&&Yn!==null){const On=Sa[Yn];lr.push(Qn({id:Yn},On))}const ea={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"};lr.map(Yn=>{var On,Kn,Ra,fr,Ia;Yn.id==0&&(Yn.diffNum=hn==="1"?(Kn=(On=Wr==null?void 0:Wr.navigation)==null?void 0:On[0])==null?void 0:Kn.difficulty_count:(fr=(Ra=Da==null?void 0:Da.navigation)==null?void 0:Ra[0])==null?void 0:fr.difficulty_count),(Ia=Yn==null?void 0:Yn.diffValue)==null||Ia.map(ua=>{var Ca,sa,xa,zr,mo;const wo={group_name:((Ca=Yn.extra)==null?void 0:Ca.name)||"",teacher_group_name:"",id:`${Yn.id}_${ua}`,group_id:Yn.id,difficulty:ua,item_bank_num:(zr=(xa=(sa=Yn.diffNum)==null?void 0:sa.filter(ei=>ei.name===ea[ua]))==null?void 0:xa[0])==null?void 0:zr.value};hn==="2"&&(wo.is_share=!0,wo.teacher_group_id=Yn.id,wo.teacher_group_name=(mo=Yn.extra)==null?void 0:mo.name),or.push(wo)})}),Vn=or.reduce((Yn,On)=>Yn+On.item_bank_num,0),Zt([...or,...An==null?void 0:An.filter(Yn=>hn==="1"?Yn.is_share:!Yn.is_share)])}else if(Bt(dt)===Ke.All){const Sa=[];for(const lr of Object.keys(Dn)){const{diffNum:or=[],diffValue:ea=[],extra:Yn={}}=Dn[lr];console.log("---",Yn);const[On,Kn]=lr.split("_");let Ra=(rn=(Mn=Yn.tag_disciplines)==null?void 0:Mn.filter(fr=>parseInt(fr.id)===parseInt(Kn)))==null?void 0:rn[0];ea.forEach(fr=>{var Ia;const ua={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"},Ca=(Ia=or==null?void 0:or.find(xa=>xa.name===ua[fr]))==null?void 0:Ia.value,sa={group_name:"",teacher_group_name:"",tag_discipline_name:(Ra==null?void 0:Ra.name)||Yn.tag_discipline_name,id:`${lr}_${fr}`,group_id:On,is_share:!!(Ra!=null&&Ra.is_share||(Yn==null?void 0:Yn.type)==="3"),tag_discipline_id:Kn,difficulty:fr,item_bank_num:Ca};Vn+=Ca,Yn.type==="0"?sa.group_name=Yn.name:sa.teacher_group_name=Yn.name,hn==="2"&&(sa.is_share=!0,sa.teacher_group_id=Yn.id||0,sa.teacher_group_name=Yn.name),Ca>0&&Sa.push(sa)})}Zt([...Sa,...An==null?void 0:An.filter(lr=>hn==="1"?lr.is_share:!lr.is_share)])}Ct(Vn)})},b.createElement(aa.default,{destroyInactiveTabPane:!0,activeKey:hn,onChange:dn=>pn(dn),style:{minHeight:260},tabBarExtraContent:{right:hn==="2"&&(ga==null?void 0:ga.length)>0&&b.createElement(vn.default,{onChange:dn=>{uo(dn)},value:ar,style:{width:120}},b.createElement(vn.default.Option,{key:"all",value:"all"},"\u5168\u90E8"),ga==null?void 0:ga.map(dn=>b.createElement(vn.default.Option,{key:dn==null?void 0:dn.group_id,value:dn==null?void 0:dn.group_id},dn==null?void 0:dn.name)))},items:[{key:"1",label:"\u6211\u521B\u5EFA\u7684",children:(Cr==null?void 0:Cr.length)===0?b.createElement(Ze.Z,{spinning:$r},b.createElement(Fn.Z,{ButtonTwo:b.createElement("a",{target:"_blank",href:"/problemset"},"\u524D\u5F80\u9898\u5E93\uFF0C\u65B0\u589E\u66F4\u591A\u8BD5\u9898",">")})):b.createElement("div",{className:xn.folderAreaWrapper},b.createElement(je.Z,{justify:"space-between",align:"middle",className:xn.folderAreaHeader},b.createElement("span",null,"\u6587\u4EF6\u5939"),b.createElement("span",{className:"mr20"},"\u5DF2\u9009",b.createElement("span",{style:{color:"#3061D0"}}," ",ct," "),"\u9898")),b.createElement(Ze.Z,{spinning:$r},b.createElement("div",{style:{minHeight:200}},Cr.length>0&&b.createElement(ka.default,{checkable:!0,className:xn.folderWrapper,rootStyle:{paddingLeft:15,paddingRight:0,paddingTop:10},selectable:!1,onCheck:(dn,Dn)=>_r(dn,Dn,"0"),checkedKeys:_a,checkStrictly:!0,treeData:Cr,showIcon:!0,blockNode:!0,defaultExpandAll:!0}))))},{key:"2",label:"\u56E2\u961F\u5171\u4EAB",children:(to==null?void 0:to.length)===0?b.createElement(Ze.Z,{spinning:ri},b.createElement(Fn.Z,{ButtonTwo:b.createElement("a",{target:"_blank",href:"/problemset"},"\u524D\u5F80\u9898\u5E93\uFF0C\u65B0\u589E\u66F4\u591A\u8BD5\u9898",">")})):b.createElement("div",{className:xn.folderAreaWrapper},b.createElement(je.Z,{justify:"space-between",align:"middle",className:xn.folderAreaHeader},b.createElement("span",null,"\u6587\u4EF6\u5939"),b.createElement("span",{className:"mr20"},"\u5DF2\u9009",b.createElement("span",{style:{color:"#3061D0"}}," ",ct||0," "),"\u9898")),b.createElement(Ze.Z,{spinning:ri},b.createElement("div",{style:{minHeight:200}},(to==null?void 0:to.length)>0&&b.createElement(ka.default,{checkable:!0,className:xn.folderWrapper,selectable:!1,rootStyle:{paddingLeft:15,paddingRight:0,paddingTop:10},onCheck:(dn,Dn)=>_r(dn,Dn,"3"),checkedKeys:Xn,checkStrictly:!0,treeData:to,showIcon:!0,blockNode:!0,defaultExpandAll:!0}))))}]}))},$n=ae(37798),an=ae(98072),Rr=Object.defineProperty,Ja=Object.defineProperties,Fr=Object.getOwnPropertyDescriptors,Or=Object.getOwnPropertySymbols,Mr=Object.prototype.hasOwnProperty,Xt=Object.prototype.propertyIsEnumerable,fn=(dt,mt,Zt)=>mt in dt?Rr(dt,mt,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):dt[mt]=Zt,Pn=(dt,mt)=>{for(var Zt in mt||(mt={}))Mr.call(mt,Zt)&&fn(dt,Zt,mt[Zt]);if(Or)for(var Zt of Or(mt))Xt.call(mt,Zt)&&fn(dt,Zt,mt[Zt]);return dt},pa=(dt,mt)=>Ja(dt,Fr(mt)),en=(dt,mt,Zt)=>new Promise((Bn,An)=>{var hn=on=>{try{_t(Zt.next(on))}catch(Tn){An(Tn)}},pn=on=>{try{_t(Zt.throw(on))}catch(Tn){An(Tn)}},_t=on=>on.done?Bn(on.value):Promise.resolve(on.value).then(hn,pn);_t((Zt=Zt.apply(dt,mt)).next())});const za={\u7B80\u5355:1,\u9002\u4E2D:2,\u56F0\u96BE:3};var ja=({ruleValue:dt,setSelectData:mt,currentItemType:Zt,defaultData:Bn,isFirst:An})=>{const[hn,pn]=(0,b.useState)([]),[_t,on,Tn,ga]=(0,an.U)(ye,{source:"question",page:1,per_page:10,group_id:0,keyword:"",group_type:0,clazz:"ItemBanksGroup",sub_discipline_id:void 0,item_type:Zt,show_children:!0});(0,b.useEffect)(()=>{en(void 0,null,function*(){const Xn=yield Tn({},!0);pn((0,$n.L)(Xn.disciplines))})},[]),console.log(Bn),(0,b.useEffect)(()=>{if(An)switch(Bt(dt)){case Ke.OnlyKnowledge:{_a(Bn.map(Xn=>Xn.tag_discipline_id));break}case Ke.KnowledgeAndDiff:{const Xn=new Map;Bn.forEach(Pr=>{Pr&&(Xn.has(Pr.tag_discipline_id)?Xn.set(Pr.tag_discipline_id,[...Xn.get(Pr.tag_discipline_id),Pr.difficulty]):Xn.set(Pr.tag_discipline_id,[Pr.difficulty]))});for(const[Pr,Cr]of Xn.entries())pr.setFieldValue([Pr,"diff"],Cr);break}}},[Bn,dt,An]);const[pr]=Fe.default.useForm(),ar=(0,b.useMemo)(()=>{const Xn=[];let Pr="",Cr="";const Tr={};for(const to of(ga==null?void 0:ga.disciplines)||[]){Pr=to.name;for(const Er of to.sub_disciplines){Cr=Er.name;for(const Wr of Er.tag_disciplines){const yr={sub_discipline_name:`${Pr}&${Cr}`,sub_discipline_id:Er.id,tag_discipline_name:Wr.name,id:Wr.id,item_bank_num:Wr.total_count,difficulty_count:Wr.difficulty_count,tag_discipline_id:Wr.id};Xn.push(yr)}}}return Xn},[ga,Bn]),uo=[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",show:!0,render:(Xn,Pr)=>{const{item_bank_num:Cr}=Pr;return b.createElement("div",null,Xn,`(${Cr})`)}},{title:"\u65B9\u5411&\u8BFE\u7A0B",dataIndex:"sub_discipline_name",ellipsis:!0,show:!0},{title:"\u96BE\u5EA6",width:"35%",show:dt.includes(Vt.Difficulty),render:(Xn,Pr)=>{const{id:Cr,difficulty_count:Tr,total_count:to,sub_discipline_name:Er,tag_discipline_name:Wr}=Pr;return b.createElement(b.Fragment,null,b.createElement(Fe.default.Item,{name:[Cr,"diff"],noStyle:!0},b.createElement(Ft.default.Group,{style:{columnGap:12},options:Tr.map(yr=>({label:yr.name,value:za[yr.name]}))})),b.createElement(Fe.default.Item,{name:[Cr,"extra"],initialValue:{difficulty_count:Tr,total_count:to,sub_discipline_name:Er,tag_discipline_name:Wr},noStyle:!0},b.createElement("input",{type:"hidden"})))}}].filter(Xn=>Xn.show),[_r,_a]=(0,b.useState)([]),Ea=(0,b.useRef)(new Map);return b.createElement("div",{style:{marginTop:12}},b.createElement(je.Z,{className:"mb20",align:"middle",gutter:20},b.createElement(bt.Z,null,b.createElement(_e.Z,{placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",size:"large",style:{width:240},options:hn,onChange:Xn=>{Tn({sub_discipline_id:Xn==null?void 0:Xn[1]})}})),b.createElement(bt.Z,null,b.createElement(kt.t7,{style:{width:300},placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0\u8FDB\u884C\u641C\u7D22",value:_t.keyword,onChange:Xn=>Tn({keyword:Xn})}))),b.createElement(Fe.default,{form:pr,onValuesChange:(Xn,Pr)=>{var Cr;console.log(Pr),Ea.current.clear();for(const Tr of Object.keys(Pr)){const to={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"},Er=Pr[Tr],{difficulty_count:Wr,total_count:yr}=Er.extra||{};(Cr=Er==null?void 0:Er.diff)==null||Cr.forEach(Da=>{var Lr;const $r=(Lr=Wr==null?void 0:Wr.find(ri=>ri.name===to[Da]))==null?void 0:Lr.value,xo=pa(Pn({},Er.extra),{id:`${Tr}_${Da}`,difficulty:Da,item_bank_num:$r,tag_discipline_id:Tr});$r>0&&Ea.current.set(`${Tr}_${Da}`,xo)})}mt([...Ea.current.values()])}},(ar==null?void 0:ar.length)===0?b.createElement(Fn.Z,{ButtonTwo:b.createElement("a",{target:"_blank",href:"/problemset"},"\u524D\u5F80\u9898\u5E93\uFF0C\u65B0\u589E\u66F4\u591A\u8BD5\u9898",">")}):b.createElement(na.default,{rowSelection:Bt(dt)===Ke.OnlyKnowledge?{preserveSelectedRowKeys:!0,type:"checkbox",onChange(Xn,Pr){console.log("table-selectedRowKeys:",Xn,Pr),_a(Xn),mt(Pr)},getCheckboxProps:Xn=>({disabled:Xn.item_bank_num===0}),selectedRowKeys:_r}:void 0,columns:uo,dataSource:ar,loading:on,scroll:{y:480},rowKey:"id",pagination:!1})))},ia=Object.defineProperty,Rn=Object.defineProperties,Wn=Object.getOwnPropertyDescriptors,fa=Object.getOwnPropertySymbols,qn=Object.prototype.hasOwnProperty,Xa=Object.prototype.propertyIsEnumerable,xr=(dt,mt,Zt)=>mt in dt?ia(dt,mt,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):dt[mt]=Zt,mr=(dt,mt)=>{for(var Zt in mt||(mt={}))qn.call(mt,Zt)&&xr(dt,Zt,mt[Zt]);if(fa)for(var Zt of fa(mt))Xa.call(mt,Zt)&&xr(dt,Zt,mt[Zt]);return dt},hr=(dt,mt)=>Rn(dt,Wn(mt)),Qr=(dt,mt,Zt)=>new Promise((Bn,An)=>{var hn=on=>{try{_t(Zt.next(on))}catch(Tn){An(Tn)}},pn=on=>{try{_t(Zt.throw(on))}catch(Tn){An(Tn)}},_t=on=>on.done?Bn(on.value):Promise.resolve(on.value).then(hn,pn);_t((Zt=Zt.apply(dt,mt)).next())});const eo={\u7B80\u5355:1,\u9002\u4E2D:2,\u56F0\u96BE:3};var Ti=({open:dt,onCancel:mt,setVisibleModalType:Zt,currentItemType:Bn})=>{var An;const{data:hn,dispatch:pn}=(0,b.useContext)(Be),[_t,on]=(0,b.useState)([]),[Tn,ga]=(0,b.useState)(),pr=(An=hn==null?void 0:hn.item_types)==null?void 0:An.find(Cr=>Cr.item_type===Bn);(0,b.useEffect)(()=>{var Cr,Tr,to;if(dt){const Er=(Cr=hn==null?void 0:hn.item_types)==null?void 0:Cr.find(Wr=>Wr.item_type===Bn);if((Er==null?void 0:Er.random_rule_type)!==Ke.Shixun){const Wr=Gt[Er==null?void 0:Er.random_rule_type]||[];on(Wr);const yr=(to=(Tr=hn==null?void 0:hn.item_types)==null?void 0:Tr.find(Da=>Da.item_type===Bn))==null?void 0:to.contents;switch(console.log("----xxx",Bt(Wr)),Bt(Wr)){case Ke.OnlyDifficulty:{_a(yr.map(Da=>Da.difficulty));break}case Ke.OnlyFileFolder:{_a({my:yr==null?void 0:yr.filter(Da=>parseInt(Da.teacher_group_id)!=="NaN"&&!Da.teacher_group_id&&Da.teacher_group_id!==0),public:yr==null?void 0:yr.filter(Da=>parseInt(Da.teacher_group_id)>=0)}),ga({my:yr==null?void 0:yr.filter(Da=>parseInt(Da.teacher_group_id)!=="NaN"&&!Da.teacher_group_id&&Da.teacher_group_id!==0),public:yr==null?void 0:yr.filter(Da=>parseInt(Da.teacher_group_id)>=0)});break}case Ke.FileFolderAndKnowledge:{_a({my:yr==null?void 0:yr.filter(Da=>parseInt(Da.teacher_group_id)!=="NaN"&&!Da.teacher_group_id&&Da.teacher_group_id!==0),public:yr==null?void 0:yr.filter(Da=>parseInt(Da.teacher_group_id)>=0)}),ga({my:yr==null?void 0:yr.filter(Da=>parseInt(Da.teacher_group_id)!=="NaN"&&!Da.teacher_group_id&&Da.teacher_group_id!==0),public:yr==null?void 0:yr.filter(Da=>parseInt(Da.teacher_group_id)>=0)});break}case Ke.FileFolderAndDiff:{_a(yr),ga(yr);break}case Ke.All:{_a(yr),ga(yr);break}default:_a(yr)}}}},[dt]);const[ar,uo]=(0,b.useState)([]);(0,b.useEffect)(()=>{dt&&Ee({item_type:Bn}).then(Cr=>{Cr.status===0&&uo(Cr.data)})},[dt]),(0,b.useEffect)(()=>{console.log("selectData",Tn)},[Tn]);const[_r,_a]=(0,b.useState)(),[Ea,Xn]=(0,b.useState)(!0);console.log("isFirst:",Ea);const Pr=Cr=>{on(Cr),ga([]),_a([]),Xn(!1)};return b.createElement(qt.default,{title:"\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219",width:948,closable:!0,centered:!0,open:dt,onCancel:mt,destroyOnClose:!0,onOk:()=>Qr(void 0,null,function*(){var Cr,Tr,to,Er,Wr,yr,Da;if(Tn===void 0){Zt("");return}if(Object.prototype.toString.call(Tn)==="[object Object]"&&!((Cr=Tn.my)!=null&&Cr.length)&&!((Tr=Tn.public)!=null&&Tr.length)){Ce.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}if(!Object.keys(Tn).length&&!(Tn!=null&&Tn.length)){Ce.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}const Lr=Bt(_t);switch(Lr){case Ke.OnlyFileFolder:{pn({type:"editRule",payload:{itemType:Bn,tableData:[...Tn.my||[],...Tn.public||[]],randomRuleType:Lr}});break}case Ke.OnlyDifficulty:{const $r=(Er=(to=hn==null?void 0:hn.item_types)==null?void 0:to.find(ri=>ri.item_type===Bn))==null?void 0:Er.contents;let xo=[{},{value:(Wr=ar.find(ri=>ri.name==="\u7B80\u5355"))==null?void 0:Wr.value},{value:(yr=ar.find(ri=>ri.name==="\u9002\u4E2D"))==null?void 0:yr.value},{value:(Da=ar.find(ri=>ri.name==="\u56F0\u96BE"))==null?void 0:Da.value}];pn({type:"editRule",payload:{itemType:Bn,tableData:Tn.map((ri,ji)=>{var ze,qe,ct,Ct;return{difficulty:ri,id:ji,quanlity:((qe=(ze=$r==null?void 0:$r.filter(dn=>dn.id===ji))==null?void 0:ze[0])==null?void 0:qe.quanlity)||1,item_bank_num:(ar==null?void 0:ar.length)===1?(ct=ar[0])==null?void 0:ct.value:(Ct=xo==null?void 0:xo[ri])==null?void 0:Ct.value}}),randomRuleType:Lr}});break}case Ke.OnlyKnowledge:{pn({type:"editRule",payload:{itemType:Bn,tableData:Tn.map($r=>hr(mr({},$r),{quanlity:$r.quanlity||1})),randomRuleType:Lr}});break}case Ke.KnowledgeAndDiff:{pn({type:"editRule",payload:{itemType:Bn,tableData:Tn.map($r=>hr(mr({},$r),{quanlity:$r.quanlity||1})),randomRuleType:Lr}});break}case Ke.FileFolderAndDiff:{pn({type:"editRule",payload:{itemType:Bn,tableData:Tn.map($r=>hr(mr({},$r),{quanlity:$r.quanlity||1})),randomRuleType:Lr}});break}case Ke.FileFolderAndKnowledge:{pn({type:"editRule",payload:{itemType:Bn,tableData:[...Tn.my||[],...Tn.public||[]],randomRuleType:Lr}});break}case Ke.All:{pn({type:"editRule",payload:{itemType:Bn,tableData:Tn.map($r=>hr(mr({},$r),{quanlity:$r.quanlity||1})),randomRuleType:Lr}});break}}Zt("")})},b.createElement(Ft.default.Group,{className:`${xn.ruleCheckBox}`,style:{marginBottom:8},value:_t,onChange:Cr=>{var Tr;_t!=null&&_t.length&&((Tr=pr==null?void 0:pr.contents)==null?void 0:Tr.length)>0?qt.default.confirm({title:"\u63D0\u793A",content:"\u5207\u6362\u89C4\u5219\u540E\uFF0C\u4E4B\u524D\u7684\u62BD\u9898\u914D\u7F6E\u5C06\u88AB\u6E05\u7A7A\uFF01",okText:"\u7ACB\u5373\u5207\u6362",cancelText:"\u6682\u4E0D\u5207\u6362",onOk:()=>Pr(Cr)}):Pr(Cr)},options:[{label:"\u6307\u5B9A\u6587\u4EF6\u5939\u62BD\u9898",value:Vt.FileFolder},{label:"\u6307\u5B9A\u96BE\u5EA6\u62BD\u9898",value:Vt.Difficulty},{label:"\u6307\u5B9A\u77E5\u8BC6\u70B9\u62BD\u9898",value:Vt.Knowledge}]}),_t.includes(Vt.FileFolder)?b.createElement(gr,{defaultData:_r,selectData:Tn,ruleValue:_t,setSelectData:ga,currentItemType:Bn}):_t.includes(Vt.Knowledge)?b.createElement(ja,{defaultData:_r,isFirst:Ea,ruleValue:_t,setSelectData:ga,currentItemType:Bn}):_t.includes(Vt.Difficulty)?b.createElement("div",{style:{marginTop:12}},b.createElement("span",{className:"mr20",style:{color:"#666"}},"\u96BE\u5EA6"),b.createElement(Ft.default.Group,{style:{columnGap:12},options:ar.map(Cr=>({label:Cr.name,value:eo[Cr.name]})),value:Tn||_r,onChange:Cr=>ga(Cr)})):null)},Na=({open:dt,onCancel:mt,setVisibleModalType:Zt,currentItemType:Bn})=>dt?b.createElement(Ti,{open:dt,onCancel:mt,setVisibleModalType:Zt,currentItemType:Bn}):null,oo=ae(6848),po=ae(67931),Mo=ae(64948),yo=ae(7664),Ao=ae(49661),oi=ae(61485),$o=ae(84216),Ci=({open:dt,onCancel:mt,onOk:Zt})=>{const{data:Bn}=(0,b.useContext)(Be),An=(0,po.g)(),[hn,pn,_t,on]=(0,an.U)(Mo.Gm,{page:1,limit:10,keyword:"",diff:"",shixun_publish_status:"",discipline_id:"",sub_discipline_id:"",type:0,include_shixuns:!0,item_type:"SHIXUN"}),[Tn,ga]=(0,b.useState)(!1);(0,b.useEffect)(()=>{if(dt){_t({page:1,limit:10,type:0},!0).then(Ea=>{(Ea==null?void 0:Ea.shixuns_count)===0&&ga(!0)});const _a=Bn.item_types.find(Ea=>Ea.item_type==="PRACTICAL");ar(_a.item_banks.map(Ea=>Ea.id)),_r(_a.item_banks)}},[dt,Bn]);const[pr,ar]=(0,b.useState)([]),[uo,_r]=(0,b.useState)([]);return b.createElement(qt.default,{title:"\u9009\u62E9\u5B9E\u8BAD\u9898",open:dt,width:948,centered:!0,closable:!0,onCancel:mt,onOk:()=>Zt(uo),destroyOnClose:!0},b.createElement(je.Z,{justify:"space-between",className:"mb20",style:{maxHeight:650}},b.createElement(bt.Z,null,b.createElement(_e.Z,{style:{width:160},size:"large",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:An,onChange:_a=>{_t({page:1,discipline_id:_a==null?void 0:_a[0],sub_discipline_id:_a==null?void 0:_a[1]})}}),b.createElement(vn.default,{className:"ml20",style:{width:118},size:"large",placeholder:"\u96BE\u5EA6",allowClear:!0,options:[{label:"\u521D\u7EA7",value:1},{label:"\u4E2D\u7EA7",value:2},{label:"\u4E2D\u9AD8\u7EA7",value:3},{label:"\u9AD8\u7EA7",value:4}],onChange:_a=>_t({page:1,diff:_a})}),b.createElement(vn.default,{className:"ml20",placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"large",allowClear:!0,options:[{label:"\u672A\u53D1\u5E03",value:"unpublish"},{label:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{label:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],onChange:_a=>_t({page:1,shixun_publish_status:_a})})),b.createElement(kt.t7,{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",style:{width:290},onChange:_a=>{_t({keyword:_a,page:1})}})),Tn?b.createElement("div",null,b.createElement(Fn.Z,{customText:"\u6682\u65E0\u6570\u636E",ButtonText:"\u524D\u5F80\u5B9E\u8DF5\u9879\u76EE\u5E93\uFF0C\u6DFB\u52A0\u66F4\u591A\u8BD5\u9898>",ButtonClick:()=>(0,Ao.xg)("/shixuns")})):b.createElement(na.default,{loading:pn,rowKey:"id",columns:[{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"30%",ellipsis:{showTitle:!0},render:(_a,Ea)=>b.createElement("div",{style:{display:"flex",alignItems:"center"}},b.createElement("div",{className:Ea!=null&&Ea.high_resources_consume?Yt.title:"",title:_a||"--"},b.createElement(yo.Z,{key:1,showLines:1,showTextOnly:!0,value:_a||"--"})),(Ea==null?void 0:Ea.high_resources_consume)&&b.createElement($o.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u96BE\u5EA6",dataIndex:"level"},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",render:(_a,Ea,Xn)=>b.createElement("span",null,_a||"- -")},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"study_count"},{title:b.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",b.createElement(oo.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},b.createElement(oi.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",width:100,render:(_a,Ea,Xn)=>b.createElement("span",null,_a||"- -")},{title:"\u64CD\u4F5C",render(_a,Ea){const{title:Xn,challenge_names:Pr,author_name:Cr,identifier:Tr,author_school_name:to,study_count:Er}=Ea||{};return b.createElement("div",null,b.createElement("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:()=>{qt.default.confirm({title:"\u9898\u76EE\u8BE6\u60C5",closable:!0,width:1e3,centered:!0,icon:null,footer:null,content:b.createElement("div",null,b.createElement(yo.Z,{value:Xn,style:{marginBottom:18}}),b.createElement("div",{className:Yt.challengeNameWrapper},Pr.map((Wr,yr)=>b.createElement("div",{className:Yt.challengeName,key:yr},"\u7B2C",(0,Ao.EM)(yr+1),"\u9898\xA0",Wr))),b.createElement(je.Z,{className:Yt.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},b.createElement(bt.Z,{className:Yt.shixunInfoWrapper},b.createElement("span",null,"\u521B\u5EFA\u8005"),b.createElement("span",{className:Yt.shixunInfo},Cr.split("\u3001")[0]),b.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),b.createElement("span",{className:Yt.shixunInfo},to),b.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{className:Yt.shixunInfo},Er)),b.createElement(le.ZP,{type:"primary",className:Yt.btnToDetail,onClick:()=>(0,Ao.xg)(`/shixuns/${Tr}/challenges?exercise=true`)},b.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),(Ea==null?void 0:Ea.shixun_tag_num)===1&&b.createElement("a",{target:"_blank",href:`/shixuns/${Ea==null?void 0:Ea.identifier}/challenges`,style:{marginLeft:10}},"\u53BB\u53D1\u5E03"))}}],dataSource:on==null?void 0:on.items,rowSelection:{selectedRowKeys:pr,preserveSelectedRowKeys:!0,getCheckboxProps:_a=>({disabled:_a.shixun_tag_num===1}),onChange(_a,Ea){var Xn,Pr,Cr;console.log(_a),ar(_a);const Tr=[];for(const Er of uo)_a.includes(Er.id)&&Tr.push(Er);const to=Tr.map(Er=>Er.id);for(const Er of Ea)Er&&_a.includes(Er.id)&&!to.includes(Er.id)&&Tr.push({id:Er.id,difficulty:Er.level,identifier:Er.identifier,name:Er.name,real_name:(Xn=Er==null?void 0:Er.author_name)==null?void 0:Xn.split("\u3001")[0],school_name:Er.author_school_name,challenge_names:Er.challenge_names,challenges:(Pr=Er.challenge_names)==null?void 0:Pr.map((Wr,yr)=>({subject:Wr,id:yr,score:5})),score:((Cr=Er.challenge_names)==null?void 0:Cr.length)*5,study_count:Er.study_count,challenges_count:Er.challenges_count});_r(Tr)}},pagination:{current:hn.page,pageSize:hn.limit,total:on==null?void 0:on.items_count,showTotal:_a=>b.createElement("span",null,"\u5171\xA0",b.createElement("span",{style:{color:"#165DFF"}},_a),"\xA0\u6761\u6570\u636E"),showQuickJumper:!0,onChange(_a,Ea){_t({page:_a,limit:Ea})},size:"default"},scroll:{y:400}}))},Qo=ae(11414),bo=ae(59301),xi=Object.defineProperty,Co=Object.defineProperties,Mi=Object.getOwnPropertyDescriptors,ai=Object.getOwnPropertySymbols,Wi=Object.prototype.hasOwnProperty,Di=Object.prototype.propertyIsEnumerable,_i=(dt,mt,Zt)=>mt in dt?xi(dt,mt,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):dt[mt]=Zt,qo=(dt,mt)=>{for(var Zt in mt||(mt={}))Wi.call(mt,Zt)&&_i(dt,Zt,mt[Zt]);if(ai)for(var Zt of ai(mt))Di.call(mt,Zt)&&_i(dt,Zt,mt[Zt]);return dt},Ki=(dt,mt)=>Co(dt,Mi(mt)),Xi=({onDelete:dt,list:mt,onSelect:Zt})=>{const[Bn,An]=(0,b.useState)(!1),{dispatch:hn,disabled:pn}=(0,b.useContext)(Be),_t=(ar,uo,_r)=>{const _a=Array.from(ar),[Ea]=_a.splice(uo,1);return _a.splice(_r,0,Ea),_a},[on,Tn]=(0,b.useState)(null),[ga,pr]=(0,b.useState)(!1);return bo.createElement(Qo.Z5,{onDragStart:()=>{pr(!0)},onDragEnd:ar=>{if(pr(!1),!ar.destination)return;const uo=_t(mt,ar.source.index,ar.destination.index);hn({type:"updateItemTypes",payload:uo})}},bo.createElement(Qo.bK,{droppableId:"droppable"},(ar,uo)=>bo.createElement("div",Ki(qo({},ar.droppableProps),{ref:ar.innerRef}),bo.createElement(Ze.Z,{spinning:Bn},mt.map((_r,_a)=>bo.createElement(Qo._l,{key:_a,draggableId:_a.toString(),index:_a,isDragDisabled:on!==_r.item_type},(Ea,Xn)=>bo.createElement(je.Z,Ki(qo(qo({align:"middle",wrap:!1,ref:Ea.innerRef},Ea.draggableProps),Ea.dragHandleProps),{className:`${Yt.dragItem} ${ga?Yt.dragging:""}`}),bo.createElement(bt.Z,{className:Yt.contentArea,onClick:()=>{Zt(_r.item_type),(0,Ao.k3)()}},bo.createElement("span",{className:Yt.blackText},(0,Ao.EM)(_a+1),"\u3001\u3010",_r.item_type_text,"\u3011"),bo.createElement(oo.Z,{title:`\uFF08${_r.item_bank_count}\u5C0F\u9898\uFF0C\u5171${parseFloat(_r.total_score).toFixed(1)}\u5206\uFF09`},bo.createElement("span",{className:Yt.greyText},`\uFF08${_r.item_bank_count}\u5C0F\u9898\uFF0C\u5171${parseFloat(_r.total_score).toFixed(1)}\u5206\uFF09`))),!pn&&bo.createElement(bo.Fragment,null,bo.createElement(oo.Z,{title:"\u957F\u6309\u53EF\u8FDB\u884C\u62D6\u62FD\u6392\u5E8F",open:on===_r.item_type&&!ga},bo.createElement("div",{style:{cursor:"grab"},className:`${Yt.iconWrapper} ${ga?Yt.hidden:""}`,onMouseEnter:()=>{Tn(_r.item_type)},onMouseLeave:()=>Tn(null)},bo.createElement("i",{className:`iconfont icon-tuodong1 ${Yt.dragIcon}`}))),bo.createElement(oo.Z,{title:"\u5220\u9664"},bo.createElement("div",{className:`${Yt.iconWrapper} ${ga?Yt.hidden:""}`,style:{cursor:"pointer"},onClick:()=>dt(_r.item_type)},bo.createElement("i",{className:`iconfont icon-shanchu12 ${Yt.deleteIcon}`})))))))),ar.placeholder)))},Yi=ae(10777),Xr={flex_box_center:"flex_box_center___ppkzA",flex_space_between:"flex_space_between___Z1syx",flex_box_vertical_center:"flex_box_vertical_center___twJ9S",flex_box_center_end:"flex_box_center_end___uI0uW",flex_box_column:"flex_box_column___JRp7D",timelineWrapper:"timelineWrapper___LP9aM",title:"title___KUHj_",desc:"desc___ubc8E",titles:"titles___njkjf",questionDetailWrapper:"questionDetailWrapper___p4SFM",questionTitle:"questionTitle___JC9X6",questionScoreInfo:"questionScoreInfo___NgOJI",deleteIcon:"deleteIcon___oMVTN",deleteBtn:"deleteBtn___JUPEl",normalText:"normalText___FW9Y_",folderIcon:"folderIcon___gvacQ",challengeNameWrapper:"challengeNameWrapper___fG7Vv",challengeName:"challengeName___Ia1Xs",shixunPreviewFooter:"shixunPreviewFooter___rKsnN",shixunInfoWrapper:"shixunInfoWrapper___FEnDb",shixunInfo:"shixunInfo___TbrA2",btnToDetail:"btnToDetail___dqLQP",q_title:"q_title___qnv4p"},Ka=ae(73631),la=ae(31328);const ca=(dt,mt,Zt,Bn)=>{const An={[Ke.OnlyDifficulty]:[{title:"\u96BE\u5EA6",key:"difficulty",render(hn,pn){const{difficulty:_t}=pn;return b.createElement("span",{style:{color:tt[_t].color}},tt[_t].label)}}],[Ke.OnlyKnowledge]:[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",ellipsis:!0},{title:"\u65B9\u5411&\u8BFE\u7A0B",dataIndex:"sub_discipline_name",width:180,ellipsis:{showTitle:!0},render(hn,pn){return`${hn}`}}],[Ke.OnlyFileFolder]:[{title:"\u6587\u4EF6\u5939",render(hn,pn,_t){const{group_name:on,teacher_group_name:Tn}=pn,ga=on||Tn,pr=Tn?la:Ka;return b.createElement("div",{style:{display:"flex"}},b.createElement("img",{src:pr,className:Xr.folderIcon})," ",b.createElement(oo.Z,{title:ga},b.createElement("span",{className:Xr.titles},ga)))}},{title:"\u7C7B\u578B",render(hn,pn){const{teacher_group_name:_t}=pn;return b.createElement("span",null,_t?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}}],[Ke.KnowledgeAndDiff]:[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",ellipsis:{showTitle:!0}},{title:"\u65B9\u5411&\u8BFE\u7A0B",width:180,dataIndex:"sub_discipline_name",ellipsis:{showTitle:!0}},{title:"\u96BE\u5EA6",key:"difficulty",render(hn,pn){const{difficulty:_t}=pn;return b.createElement("span",{style:{color:tt[_t].color}},tt[_t].label)}}],[Ke.FileFolderAndKnowledge]:[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",ellipsis:!0},{title:"\u6587\u4EF6\u5939",render(hn,pn){const{group_name:_t,teacher_group_name:on}=pn,Tn=_t||on,ga=on?la:Ka;return b.createElement("div",{style:{display:"flex"}},b.createElement("img",{src:ga,className:Xr.folderIcon})," ",b.createElement(oo.Z,{title:Tn},b.createElement("span",{className:Xr.titles},Tn)))}},{title:"\u7C7B\u578B",render(hn,pn){const{teacher_group_name:_t}=pn;return b.createElement("span",null,_t?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}}],[Ke.FileFolderAndDiff]:[{title:"\u6587\u4EF6\u5939",render(hn,pn){const{group_name:_t,teacher_group_name:on}=pn,Tn=_t||on,ga=on?la:Ka;return b.createElement("div",{style:{display:"flex"}},b.createElement("img",{src:ga,className:Xr.folderIcon})," ",b.createElement(oo.Z,{title:Tn},b.createElement("span",{className:Xr.titles},Tn)))}},{title:"\u7C7B\u578B",render(hn,pn){const{teacher_group_name:_t}=pn;return b.createElement("span",null,_t?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}},{title:"\u96BE\u5EA6",key:"difficulty",render(hn,pn){const{difficulty:_t}=pn;return b.createElement("span",{style:{color:tt[_t].color}},tt[_t].label)}}],[Ke.All]:[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",ellipsis:!0},{title:"\u6587\u4EF6\u5939",render(hn,pn){const{group_name:_t,teacher_group_name:on,teacher_group_id:Tn}=pn,ga=_t||on,pr=Tn||Tn===0?la:Ka;return b.createElement("div",{style:{display:"flex"}},b.createElement("img",{src:pr,className:Xr.folderIcon})," ",b.createElement(oo.Z,{title:ga},b.createElement("span",{className:Xr.titles},ga)))}},{title:"\u7C7B\u578B",render(hn,pn){const{teacher_group_id:_t}=pn;return b.createElement("span",null,_t||_t===0?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}},{title:"\u96BE\u5EA6",key:"difficulty",render(hn,pn){const{difficulty:_t}=pn;return b.createElement("span",{style:{color:tt[_t].color}},tt[_t].label)}}],[Ke.Shixun]:[]};for(const hn of Object.values(An))hn.push({title:"\u62BD\u9898\u6570\u91CF",key:"quanlity",render(pn,_t){const{item_bank_num:on,quanlity:Tn,id:ga,teacher_group_id:pr}=_t||{};return b.createElement(je.Z,{align:"middle"},b.createElement(Ie.Z,{disabled:Bn,min:1,max:on,size:"large",precision:0,value:Tn,onChange:ar=>{mt({type:"changeQuestionNum",payload:{itemType:Zt,id:ga,num:ar,teacher_group_id:pr}})}}),b.createElement("span",{className:"ml10 font14",style:{color:"#333333"}},"/",on))}},{title:"\u64CD\u4F5C",key:"action",align:"right",render(pn,_t){const{id:on,is_share:Tn}=_t;return Bn?b.createElement("span",{className:"cursorNotAllowed c-grey-999"},"\u5220\u9664"):b.createElement("span",{className:Xr.deleteBtn,onClick:()=>{mt({type:"deleteRule",payload:{itemType:Zt,id:on,is_share:Tn}})}},"\u5220\u9664")}});return An[dt]},Fa=({setVisibleModalType:dt})=>{var mt,Zt,Bn,An;const{data:hn,dispatch:pn,disabled:_t}=(0,b.useContext)(Be),on=(mt=hn==null?void 0:hn.item_types)==null?void 0:mt.find(Tn=>Tn.item_type==="PRACTICAL");return b.createElement(Yi.Z,{className:Xr.timelineWrapper,items:[{children:b.createElement("div",{style:{transform:"translateY(-4px)"}},b.createElement(je.Z,{className:"mb20",align:"middle",justify:"space-between"},b.createElement(bt.Z,null,b.createElement("span",{className:Xr.title},"\u9898\u5E93\u9009\u9898"),b.createElement("span",{className:Xr.desc},"\uFF08\u9700\u8981\u5148\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9\u5B9E\u8BAD\u9898\uFF0C\u518D\u8BBE\u7F6E\u4ECE\u5DF2\u9009\u5B9E\u8BAD\u9898\u4E2D\u968F\u673A\u62BD\u9898\u7684\u6570\u91CF\uFF09")),!_t&&b.createElement(kt.op,{style:{width:102},onClick:()=>dt("selectShixun")},"\u4ECE\u9898\u5E93\u9009\u62E9")),((Zt=on==null?void 0:on.item_banks)==null?void 0:Zt.length)===0?b.createElement(Fn.Z,{customText:"\u6682\u65E0\u5F85\u62BD\u8BD5\u9898\uFF0C\u8BF7\u5148\u4ECE\u9898\u5E93\u8FDB\u884C\u9009\u62E9\uFF5E"}):b.createElement(na.default,{rowKey:"id",className:"mb10",columns:[{title:"\u5E8F\u53F7",width:60,render(Tn,ga,pr){return b.createElement("span",null,pr+1)}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"40%",ellipsis:{showTitle:!0},render:(Tn,ga)=>b.createElement("div",{style:{display:"flex",alignItems:"center"}},b.createElement("div",{className:ga!=null&&ga.high_resources_consume?Xr.q_title:"",title:Tn||"--"},b.createElement(yo.Z,{key:1,showLines:1,showTextOnly:!0,value:Tn})),(ga==null?void 0:ga.high_resources_consume)&&b.createElement($o.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"study_count"},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",render:(Tn,ga,pr)=>b.createElement("span",null,Tn||"- -")},{title:"\u96BE\u5EA6",dataIndex:"difficulty"},{title:"\u64CD\u4F5C",align:"right",width:180,render(Tn,ga,pr){const{id:ar,identifier:uo,name:_r,challenge_names:_a=[],real_name:Ea,school_name:Xn,study_count:Pr,challenges:Cr=[]}=ga||{};return b.createElement("div",null,b.createElement("span",{style:{color:"#165DFF",cursor:"pointer",marginLeft:20},onClick:()=>{qt.default.confirm({title:"\u9898\u76EE\u8BE6\u60C5",closable:!0,width:1e3,centered:!0,icon:null,footer:null,content:b.createElement("div",null,b.createElement(yo.Z,{value:_r,style:{marginBottom:18}}),b.createElement("div",{className:Xr.challengeNameWrapper},Cr==null?void 0:Cr.map((Tr,to)=>b.createElement("div",{className:Xr.challengeName,key:to},"\u7B2C",(0,Ao.EM)(to+1),"\u9898\xA0",Tr==null?void 0:Tr.subject))),b.createElement(je.Z,{className:Xr.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},b.createElement(bt.Z,{className:Xr.shixunInfoWrapper},b.createElement("span",null,"\u521B\u5EFA\u8005"),b.createElement("span",{className:Xr.shixunInfo},Ea),b.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),b.createElement("span",{className:Xr.shixunInfo},Xn),b.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{className:Xr.shixunInfo},Pr)),b.createElement(le.ZP,{type:"primary",className:Xr.btnToDetail,onClick:()=>(0,Ao.xg)(`/shixuns/${uo}/challenges?exercise=true`)},b.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),!_t&&b.createElement("span",{onClick:()=>{pn({type:"deleteShixunQuestion",payload:{shixunId:ar}})},className:`ml20 ${Xr.deleteBtn}`},"\u5220\u9664"))}}],dataSource:(on==null?void 0:on.item_banks)||[],pagination:!1}))},{children:b.createElement(je.Z,{style:{transform:(Bn=on==null?void 0:on.item_banks)!=null&&Bn.length?"translateY(-8px)":"none"},align:"middle",justify:"space-between"},b.createElement("span",{className:Xr.title},"\u5DF2\u9009\u5B9E\u8BAD\u9898\u4E2D\u968F\u673A\u62BD\u9898"),!!((An=on==null?void 0:on.item_banks)!=null&&An.length)&&b.createElement(bt.Z,null,b.createElement(je.Z,{align:"middle"},b.createElement("span",{className:Xr.normalText},"\u62BD\u9898\u6570\u91CF"),b.createElement(Ie.Z,{min:0,disabled:_t,max:on==null?void 0:on.item_bank_num,size:"large",precision:0,className:"ml10 mr10",value:(on==null?void 0:on.item_bank_count)||1,onChange:Tn=>pn({type:"changeQuestionNum",payload:{num:Tn||1,itemType:"PRACTICAL"}})}),b.createElement("span",{className:`${Xr.normalText} mr30`},"/",on==null?void 0:on.item_bank_num),b.createElement("span",{className:Xr.normalText},"\u6BCF\u9898\u5206\u503C"),b.createElement(Ie.Z,{disabled:_t,min:0,max:100,precision:1,size:"large",precision:1,className:"ml10 mr10",value:on==null?void 0:on.score,onChange:Tn=>pn({type:"changeQuestionScore",payload:{score:Tn,itemType:"PRACTICAL"}})}),b.createElement("span",{className:Xr.normalText},"\u5206"))))}]})};var Gr=({setVisibleModalType:dt,currentItemType:mt,onDelete:Zt})=>{var Bn,An;const hn=(0,Re.useParams)(),{data:pn,dispatch:_t,disabled:on}=(0,b.useContext)(Be),Tn=((Bn=pn==null?void 0:pn.item_types)==null?void 0:Bn.findIndex(pr=>pr.item_type===mt))+1,ga=(An=pn==null?void 0:pn.item_types)==null?void 0:An.find(pr=>pr.item_type===mt);return b.createElement("div",{className:Xr.questionDetailWrapper},b.createElement(je.Z,{justify:"space-between",align:"middle",className:"mb30"},b.createElement(bt.Z,null,b.createElement("span",{className:Xr.questionTitle},`${(0,Ao.EM)(Tn)}\u3001${ga==null?void 0:ga.item_type_text}`),b.createElement("span",{className:Xr.questionScoreInfo},"\uFF08",b.createElement("span",{style:{color:"#3061D0"}},ga==null?void 0:ga.item_bank_count),"\u5C0F\u9898 ",b.createElement("span",null,"\uFF0C\u5171",b.createElement("span",{style:{color:"#3061D0"}},ga==null?void 0:ga.total_score),"\u5206"),"\uFF09")),!on&&b.createElement("i",{className:`iconfont icon-shanchutimu ${Xr.deleteIcon}`,onClick:()=>Zt(mt)})),mt==="PRACTICAL"?b.createElement(Fa,{setVisibleModalType:dt}):b.createElement(b.Fragment,null,(ga==null?void 0:ga.contents.length)===0?b.createElement(Fn.Z,{styles:{margin:"70px auto 100px auto"},customText:b.createElement("span",null,"\u6682\u65E0\u62BD\u9898\u89C4\u5219\uFF0C\u652F\u6301",b.createElement("span",{style:{color:"#EA9741"}},"\u6307\u5B9A\u6587\u4EF6\u5939\u3001\u96BE\u5EA6\u3001\u77E5\u8BC6\u70B9"),"\u8FDB\u884C\u62BD\u9898\uFF5E"),ButtonTwo:(hn==null?void 0:hn.id)&&b.createElement(je.Z,{justify:"center",className:"mt30"},b.createElement(kt.op,{style:{width:136,marginTop:-10},onClick:()=>dt("rule")},"\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219"))}):b.createElement(b.Fragment,null,b.createElement(je.Z,{justify:"space-between",align:"middle",className:"mb20"},b.createElement(bt.Z,null,b.createElement(je.Z,{align:"middle"},b.createElement("span",{className:`${Xr.normalText}`},"\u6BCF\u9898\u5206\u503C"),b.createElement(Ie.Z,{disabled:on,size:"large",className:"ml10 mr10",min:.1,max:100,value:ga==null?void 0:ga.score,precision:1,onChange:pr=>_t({type:"changeQuestionScore",payload:{score:pr,itemType:mt}})}),b.createElement("span",{className:Xr.normalText},"\u5206"))),(hn==null?void 0:hn.id)&&b.createElement(kt.op,{onClick:()=>dt("rule")},"\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219")),b.createElement(na.default,{columns:ca(ga==null?void 0:ga.random_rule_type,_t,mt,on),dataSource:ga==null?void 0:ga.contents,pagination:!1,rowKey:"id"}))))},lo=ae(64885),vo=ae(72664),Io=ae(34055),Fo=ae(32637),Va=ae(59301),Ho=Object.defineProperty,Bi=Object.defineProperties,si=Object.getOwnPropertyDescriptors,ki=Object.getOwnPropertySymbols,Zi=Object.prototype.hasOwnProperty,zi=Object.prototype.propertyIsEnumerable,Yr=(dt,mt,Zt)=>mt in dt?Ho(dt,mt,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):dt[mt]=Zt,_o=(dt,mt)=>{for(var Zt in mt||(mt={}))Zi.call(mt,Zt)&&Yr(dt,Zt,mt[Zt]);if(ki)for(var Zt of ki(mt))zi.call(mt,Zt)&&Yr(dt,Zt,mt[Zt]);return dt},ol=(dt,mt)=>Bi(dt,si(mt)),vi=(dt,mt,Zt)=>new Promise((Bn,An)=>{var hn=on=>{try{_t(Zt.next(on))}catch(Tn){An(Tn)}},pn=on=>{try{_t(Zt.throw(on))}catch(Tn){An(Tn)}},_t=on=>on.done?Bn(on.value):Promise.resolve(on.value).then(hn,pn);_t((Zt=Zt.apply(dt,mt)).next())}),il=({})=>{var dt,mt,Zt,Bn,An,hn,pn,_t,on,Tn,ga,pr,ar,uo,_r;const[_a]=(0,Re.useSearchParams)(),Ea=(0,Re.useParams)(),{data:Xn,dispatch:Pr,setPreview:Cr,getData:Tr,handlePreview:to,disabled:Er}=(0,b.useContext)(Be),[Wr,yr]=(0,b.useState)(""),[Da,Lr]=(0,b.useState)((mt=(dt=Xn==null?void 0:Xn.item_types)==null?void 0:dt[0])==null?void 0:mt.item_type),[$r,xo]=(0,b.useState)(!0),[ri,ji]=(0,b.useState)(!1),ze=(dn,Dn)=>vi(void 0,null,function*(){var ta,Un,Mn,rn,Vn,Sa;const lr=Xn.item_types.map(Kn=>Kn.item_type_text),or=(ta=Xn==null?void 0:Xn.item_types)==null?void 0:ta.filter(Kn=>{var Ra,fr;return((Ra=Kn.contents)==null?void 0:Ra.length)>0||((fr=Kn==null?void 0:Kn.item_banks)==null?void 0:fr.length)>0});if(Xn.sort_by_item_type=lr,!((Un=Xn.item_types)!=null&&Un.length)){Ce.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}if((or==null?void 0:or.length)===0){Ce.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}let ea=()=>vi(void 0,null,function*(){const Kn=(0,rt.cloneDeep)(Xn),{item_types:Ra}=Kn||{};Kn.item_types=Ra.filter(Ia=>Ia.item_type===Da),(yield pe(Ea.id||Ea.categoryId,Kn)).status===0&&(Lr(Dn),Ce.ZP.success("\u4FDD\u5B58\u6210\u529F"),dn||Re.history.push("/paperlibrary"))}),Yn=(rn=(Mn=Xn==null?void 0:Xn.item_types)==null?void 0:Mn.filter(Kn=>Kn.item_type_text==="\u5B9E\u8BAD\u9898")[0])==null?void 0:rn.item_banks,On=0;Yn==null||Yn.map(Kn=>{Kn.high_resources_consume&&(On=On+1)}),console.log(On),On>0?qt.default.info({centered:!0,icon:null,width:600,okText:"\u6211\u77E5\u9053\u4E86",title:"\u63D0\u793A",content:Va.createElement("div",null,Va.createElement("div",{className:Yt.tipcontent},Va.createElement("div",null,Va.createElement("div",{className:Yt.name},"\u60A8\u597D\uFF01",(Vn=(0,Io.eY)())==null?void 0:Vn.username,"\uFF08",(Sa=(0,Io.eY)())==null?void 0:Sa.login,"\uFF09\uFF1A"),Va.createElement("div",{className:Yt.tip},"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",Va.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002\u53D1\u5E03\u8003\u8BD5\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),Va.createElement("div",{className:Yt.info},Va.createElement("i",{className:"iconfont icon-xunifangzhenti1 mr10 font26"}),Va.createElement("span",{className:"mr10",style:{color:"#6A7283"}},"\u9AD8\u6D88\u8017\u5B9E\u9A8C"),Va.createElement("span",{style:{color:"#232B40"}},`${On}\u4E2A`))),Va.createElement("div",null,Va.createElement("div",{className:Yt.img},Va.createElement("img",{src:Fo,width:"124px",height:"124px"})),Va.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")))),onOk:()=>{ea()}}):ea()}),qe=(dn,Dn,ta,Un=!1)=>vi(void 0,null,function*(){console.log(Xn);const Mn=ol(_o(_o({},Xn.exercise),Ea),{exerciseId:Ea.categoryId,sort_by_item_type:Xn.sort_by_item_type,difficulty:Xn.examination_bank.difficulty,exam_notes:Xn.examination_bank.exam_notes,exercise_name:Xn.examination_bank.name,time:Xn.examination_bank.time,changed_item_type:Da,item_types:Xn.item_types,changed_item_type:Da,sub_discipline_id:Xn.examination_bank.sub_discipline_id});(!dn||Dn===1)&&(Mn.is_reset=1);const rn=yield(0,vo.wy)(Mn);return rn.status===0&&(Un||Ce.ZP.success("\u4FEE\u6539\u6210\u529F "),Lr(ta),dn||Re.history.push(`/classrooms/${Ea.coursesId}/exercise/${Ea.categoryId}/detail?random=true`)),rn}),ct=dn=>{qt.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,closable:!0,content:Va.createElement("div",null,"\u786E\u8BA4\u5220\u9664\u8BE5\u9898\u578B\uFF1F"),onOk:()=>vi(void 0,null,function*(){var Dn,ta,Un,Mn;if(Ea.id){if((yield Je(Ea.id,{item_type:[dn]})).status!==0)return}else{const rn=yield Ge(Ea.categoryId,{item_type:[dn]});if(Tr(),rn.status!==0)return}if(Pr({type:"deleteQuestionType",payload:dn}),dn===Da){const rn=De(Xn,{type:"deleteQuestionType",payload:dn});Lr(rn.item_types.length?rn.item_types[0].item_type:(ta=(Dn=Xn==null?void 0:Xn.item_types)==null?void 0:Dn[0])==null?void 0:ta.item_type)}else Lr((Mn=(Un=Xn==null?void 0:Xn.item_types)==null?void 0:Un[0])==null?void 0:Mn.item_type)})})};(0,b.useEffect)(()=>{var dn;(dn=Xn==null?void 0:Xn.examination_bank)!=null&&dn.name&&xo(!1),(0,Ao.Dk)("\u968F\u673A\u7EC4\u5377")},[(Zt=Xn==null?void 0:Xn.examination_bank)==null?void 0:Zt.name]);const Ct=()=>vi(void 0,null,function*(){var dn;let Dn=yield qe(!0,1,Da,!0);if((Dn==null?void 0:Dn.status)===0){const ta=yield(0,E.ZP)(`/api/exercises/${Ea==null?void 0:Ea.categoryId}/simulate_start_answer.json`,{method:"get",params:{coursesId:Ea==null?void 0:Ea.coursesId,categoryId:Ea==null?void 0:Ea.categoryId}});(ta==null?void 0:ta.status)!=-1&&window.open(`/classrooms/${Ea.coursesId}/exercise/${Ea.categoryId}/${(dn=(0,Io.eY)())==null?void 0:dn.login}/initate_answer`)}});return Va.createElement("div",{className:Yt.questionInfo},Va.createElement("div",{className:"tc mb20"},Va.createElement(ue.VP,{defaultValue:(Bn=Xn==null?void 0:Xn.examination_bank)==null?void 0:Bn.name,onFinish:dn=>vi(void 0,null,function*(){return Pr({type:"updateBaseInfo",payload:ol(_o({},Xn.examination_bank),{name:dn})}),(0,vo.wy)({exercise_name:dn,exerciseId:Ea==null?void 0:Ea.categoryId}),!0})})),Va.createElement(je.Z,{justify:"center",className:"mb20"},Va.createElement(bt.Z,{className:"mr30"},Va.createElement("span",{className:Yt.label},"\u7B54\u9898\u65F6\u957F"),Va.createElement("span",null,((An=Xn==null?void 0:Xn.examination_bank)==null?void 0:An.time)===-1?"\u4E0D\u9650":((hn=Xn==null?void 0:Xn.examination_bank)==null?void 0:hn.time)||"\u4E0D\u9650")),Va.createElement(bt.Z,{className:"mr30"},Va.createElement("span",{className:Yt.label},"\u96BE\u5EA6"),Va.createElement("span",null,(_t=tt[`${(pn=Xn==null?void 0:Xn.examination_bank)==null?void 0:pn.difficulty}`])==null?void 0:_t.label)),Va.createElement(bt.Z,{className:"mr30"},Va.createElement("span",{className:Yt.label},"\u8BD5\u9898\u603B\u6570"),Va.createElement("span",null,((on=Xn==null?void 0:Xn.examination_bank)==null?void 0:on.question_count)||0)),Va.createElement(bt.Z,null,Va.createElement("span",{className:Yt.label},"\u603B\u5206"),Va.createElement("span",null,((ga=(Tn=Xn==null?void 0:Xn.examination_bank)==null?void 0:Tn.total_score)==null?void 0:ga.toFixed(1))||0))),Va.createElement("div",{className:Yt.content,style:{border:((pr=Xn==null?void 0:Xn.item_types)==null?void 0:pr.length)<=0&&"none"}},((ar=Xn==null?void 0:Xn.item_types)==null?void 0:ar.length)>0?Va.createElement(je.Z,{wrap:!1},Va.createElement(bt.Z,{flex:"260px",className:Yt.leftPart},!Er&&Va.createElement(je.Z,{className:"mb20"},Va.createElement(kt.op,{style:{margin:"0 15px",borderRadius:2},onClick:()=>yr("setScore")},"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C"),(Ea==null?void 0:Ea.id)&&Va.createElement(kt.op,{shape:"default",onClick:()=>yr("questionType")},"\u6DFB\u52A0\u9898\u578B")),Va.createElement(Xi,{list:Xn.item_types,onSelect:dn=>vi(void 0,null,function*(){if(dn===Da)return;xo(!0);const Dn=Xn.item_types.find(ta=>ta.item_type===Da);if(Da!=="PRACTICAL"&&Dn.contents.length>0&&(Ea!=null&&Ea.id)){const ta=(0,rt.cloneDeep)(Xn),{item_types:Un}=ta||{};ta.item_types=Un.filter(Mn=>Mn.item_type===Da);try{(yield pe(Ea.id||Ea.categoryId,ta)).status===0&&Lr(dn)}catch(Mn){}}else Ea.categoryId?qe(!0,2,dn):ze(!0,dn);xo(!1)}),onDelete:ct})),Va.createElement(bt.Z,{flex:1,className:Yt.rightPart},Va.createElement(Ze.Z,{spinning:$r},Va.createElement(Gr,{setVisibleModalType:yr,currentItemType:Da,onDelete:ct})))):Va.createElement(Fn.Z,{customText:"\u8BF7\u5148\u8BBE\u7F6E\u8BD5\u5377\u9898\u578B",styles:{margin:"70px auto"},ButtonTwo:Va.createElement(je.Z,{justify:"center",className:"mt20"},(Ea==null?void 0:Ea.id)&&Va.createElement(kt.op,{style:{width:88},onClick:()=>yr("questionType")},"\u6DFB\u52A0\u9898\u578B"))})),!!(Ea!=null&&Ea.id)&&Va.createElement("div",{className:Yt.fixedBottom},Va.createElement(lo.Z,{className:`${Yt.previewBtn} mr20`,onClick:()=>vi(void 0,null,function*(){var dn,Dn;const ta=(dn=Xn==null?void 0:Xn.item_types)==null?void 0:dn.filter(Un=>{var Mn,rn;return((Mn=Un.contents)==null?void 0:Mn.length)>0||((rn=Un==null?void 0:Un.item_banks)==null?void 0:rn.length)>0});if(!((Dn=Xn.item_types)!=null&&Dn.length)){Ce.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}if((ta==null?void 0:ta.length)===0){Ce.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}yield ze(!0,Da),to()})},"\u8BD5\u5377\u9884\u89C8"),Va.createElement(lo.Z,{type:"primary",className:Yt.confirmBtn,onClick:()=>ze()},Va.createElement("i",{className:"iconfont icon-baocun1 mr5"}),"\u4FDD\u5B58\u8BD5\u5377")),!!(Ea!=null&&Ea.categoryId)&&Va.createElement("div",{className:Yt.fixedBottom,style:{justifyContent:((uo=Xn==null?void 0:Xn.exercise)==null?void 0:uo.exercise_status)!==1?"end":"center"}},Va.createElement(lo.Z,{className:`${Yt.previewBtn} mr20`,onClick:()=>vi(void 0,null,function*(){var dn,Dn;document.body.scrollIntoView(),Re.history.push(`/classrooms/${Ea.coursesId}/exercise/${(dn=Xn==null?void 0:Xn.exercise)==null?void 0:dn.id}/detail?random=${(Dn=Xn==null?void 0:Xn.exercise)==null?void 0:Dn.is_random}`)})},"\u8FD4\u56DE"),((_r=Xn==null?void 0:Xn.exercise)==null?void 0:_r.exercise_status)===1&&Va.createElement(lo.Z,{className:`${Yt.previewBtn} mr20`,onClick:Ct},"\u6A21\u62DF\u8003\u8BD5"),(Xn==null?void 0:Xn.exercise.exercise_status)===1&&Va.createElement(lo.Z,{type:"primary",className:Yt.confirmBtn,onClick:()=>qe()},"\u63D0\u4EA4")),Va.createElement(Gn,{open:Wr==="questionType",onCancel:()=>yr(""),onOk:dn=>vi(void 0,null,function*(){var Dn,ta;const Un=[],Mn=De(Xn,{type:"setQuestionType",payload:dn}),rn=((Dn=Mn==null?void 0:Mn.item_types)==null?void 0:Dn.map(Vn=>Vn.item_type))||[];for(const Vn of((ta=Xn==null?void 0:Xn.item_types)==null?void 0:ta.map(Sa=>Sa.item_type))||[])rn.includes(Vn)||Un.push(Vn);Ea.id&&Un.length>0&&(yield Je(Ea.id,{item_type:Un})).status!==0||(Pr({type:"setQuestionType",payload:dn}),Lr(Da||Mn.item_types[0].item_type),yr(""))})}),Va.createElement($a,{open:Wr==="setScore",onCancel:()=>{yr("")},onOk:dn=>vi(void 0,null,function*(){console.log("---newData",dn);const Dn=dn.item_types.map(ta=>({item_type:ta.item_type,score:ta.score}));Ea.id?(yield we(Ea.id,{score_settings:Dn})).status===0&&Pr({type:"init",payload:dn}):(yield ve(Ea.categoryId,{score_settings:Dn})).status===0&&Pr({type:"init",payload:dn}),yr("")})}),Va.createElement(Na,{open:Wr==="rule",onCancel:()=>yr(""),currentItemType:Da,setVisibleModalType:yr}),_a.get("type")==="settings"&&Va.createElement(Ci,{open:Wr==="selectShixun",onCancel:()=>yr(""),onOk:dn=>{if(console.log(dn),(dn==null?void 0:dn.length)<=0){Ce.ZP.info("\u5B9E\u8BAD\u6570\u4E0D\u80FD\u4E3A0");return}Pr({type:"addShixun",payload:{shixunList:[...dn]}}),yr("")}}))},$i=ae(81150),ko=ae(59301),qi=Object.defineProperty,el=Object.defineProperties,ll=Object.getOwnPropertyDescriptors,ul=Object.getOwnPropertySymbols,Rl=Object.prototype.hasOwnProperty,ql=Object.prototype.propertyIsEnumerable,Tl=(dt,mt,Zt)=>mt in dt?qi(dt,mt,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):dt[mt]=Zt,Ri=(dt,mt)=>{for(var Zt in mt||(mt={}))Rl.call(mt,Zt)&&Tl(dt,Zt,mt[Zt]);if(ul)for(var Zt of ul(mt))ql.call(mt,Zt)&&Tl(dt,Zt,mt[Zt]);return dt},Al=(dt,mt)=>el(dt,ll(mt)),tl=(dt,mt,Zt)=>new Promise((Bn,An)=>{var hn=on=>{try{_t(Zt.next(on))}catch(Tn){An(Tn)}},pn=on=>{try{_t(Zt.throw(on))}catch(Tn){An(Tn)}},_t=on=>on.done?Bn(on.value):Promise.resolve(on.value).then(hn,pn);_t((Zt=Zt.apply(dt,mt)).next())}),Hl=()=>{var dt,mt,Zt,Bn;const[An,hn]=(0,b.useState)("baseInfo"),pn=(0,Re.useDispatch)();(0,b.useEffect)(()=>{pn({type:"globalSetting/footerToggle",payload:!1})},[]);const _t=(0,Re.useParams)(),on=!!(_t.id||_t.categoryId),[Tn]=(0,Re.useSearchParams)();(0,b.useEffect)(()=>{Tn.get("type")==="settings"&&hn("settings")},[]);const[ga,pr]=(0,b.useReducer)(De,null),[ar,uo]=(0,b.useState)(!1),_r=()=>tl(void 0,null,function*(){uo(!0);let Da;_t.categoryId?Da=yield st(_t):Da=yield ce(_t.id),uo(!1),Da.status===0&&pr({type:"init",payload:Da})});(0,b.useEffect)(()=>{on?_r():pr({type:"init",payload:{examination_bank:{difficulty:2}}})},[_t]);const[_a,Ea]=(0,b.useState)(""),Xn=(Da,Lr)=>tl(void 0,null,function*(){var $r,xo,ri,ji;const ze=($r=ga==null?void 0:ga.item_types)==null?void 0:$r.filter(Ct=>{var dn;return((dn=Ct==null?void 0:Ct.item_type)==null?void 0:dn.toUpperCase())===(Lr==null?void 0:Lr.type)}),qe={sort_by_item_type:ga.sort_by_item_type,difficulty:ga.examination_bank.difficulty,exam_notes:ga.examination_bank.exam_notes,name:ga.examination_bank.name,time:ga.examination_bank.time,item_types:ga.item_types};if(Da!==void 0&&!(Da!=null&&Da.single_question_id)){qe.seleted_item_bank_ids=Da==null?void 0:Da.seleted_item_bank_ids,qe.item_types=ze;const Ct=yield Le(qe);if((Ct==null?void 0:Ct.status)===0){let dn=(0,rt.cloneDeep)(Er.data);dn.questionList=(xo=dn==null?void 0:dn.questionList)==null?void 0:xo.map(Dn=>{var ta;return Dn.type===Lr.type?Al(Ri({},Dn),{questions:((ta=Ct==null?void 0:Ct.questions)==null?void 0:ta.questions)||[]}):Dn}),Wr({show:!0,data:dn})}return}if(Da!==void 0&&(Da!=null&&Da.single_question_id)){qe.seleted_item_bank_ids=Da==null?void 0:Da.seleted_item_bank_ids,qe.single_question_id=Da==null?void 0:Da.single_question_id,qe.item_types=ze;const Ct=yield Le(qe);if((Ct==null?void 0:Ct.status)===0){let dn=(0,rt.cloneDeep)(Er.data);dn.questionList=(ri=dn==null?void 0:dn.questionList)==null?void 0:ri.map(Dn=>{var ta,Un;if(Dn.type===Lr.type){const Mn=(0,rt.cloneDeep)(Dn==null?void 0:Dn.questions);return Mn.splice(Lr.index,1,(Un=(ta=Ct==null?void 0:Ct.questions)==null?void 0:ta.questions)==null?void 0:Un[0]),console.log(Dn==null?void 0:Dn.questions,Mn,Lr.index,"new_questions"),Al(Ri({},Dn),{questions:Mn})}return Dn}),Wr({show:!0,data:dn})}return}const ct=yield ot(qe);if((ct==null?void 0:ct.status)===0){const Ct=(0,Ao.ad)(ct);let dn=[];(ji=ga==null?void 0:ga.item_types)==null||ji.forEach(Dn=>{var ta;const Un=(ta=Ct==null?void 0:Ct.questionList)==null?void 0:ta.find(Mn=>Dn.item_type===Mn.type);dn.push(Un)}),console.log(ga,"sortList"),dn=(0,rt.compact)(dn),Ct.questionList=dn,Wr({show:!0,data:Ct}),Ea(new Date)}}),Pr=Da=>{var Lr;let $r=(0,rt.cloneDeep)(Er.data);$r.questionList=(Lr=$r==null?void 0:$r.questionList)==null?void 0:Lr.map(xo=>xo.type===Da.type?Al(Ri({},xo),{questions_score:Da.scoreTotal}):xo),pr({type:"changeQuestionScore",payload:{score:Da.score,itemType:Da.type}}),Wr({show:!0,data:$r})},Cr=Da=>tl(void 0,null,function*(){const Lr={sort_by_item_type:ga.sort_by_item_type,difficulty:ga.examination_bank.difficulty,exam_notes:ga.examination_bank.exam_notes,name:ga.examination_bank.name,time:ga.examination_bank.time,item_types:ga.item_types,sub_discipline_id:ga.examination_bank.sub_discipline_id};if(Da){(yield Ue(Ri(Ri({},Lr),Da))).status===0&&Ce.ZP.success("\u4FDD\u5B58\u6210\u529F");return}(yield pe(_t.id,Lr)).status===0&&(Ce.ZP.success("\u63D0\u4EA4\u6210\u529F"),Re.history.push("/paperlibrary?defaultActiveKey=0"))}),Tr=(0,po.g)(),[to]=Fe.default.useForm(),[Er,Wr]=(0,b.useState)({show:!1,data:{}}),yr=!!((dt=ga==null?void 0:ga.exercise)!=null&&dt.exercise_status)&&((mt=ga==null?void 0:ga.exercise)==null?void 0:mt.exercise_status)!==1;return ko.createElement(Be.Provider,{value:{data:ga,disabled:yr,dispatch:pr,setPreview:Wr,getData:_r,handlePreview:Xn}},Er.show?ko.createElement($i.Z,{key:_a,data:Er.data,onExchange:Xn,onTypeScore:Pr,submit:Cr,goBack:()=>Wr({show:!1,data:{}})}):ko.createElement("div",{className:se.wrapper},ko.createElement("div",{className:"edu-container"},ko.createElement(Oe.Z,{className:se.breadCrumbWrapper,separator:">",items:_t!=null&&_t.categoryId?[{title:ko.createElement(Re.Link,{to:`/classrooms/${_t.coursesId}/exercise`},(Bn=(Zt=(0,Io.eY)())==null?void 0:Zt.course)==null?void 0:Bn.course_name)},{title:ko.createElement(Re.Link,{to:`/classrooms/${_t.coursesId}/exercise`},"\u8BD5\u5377\u5217\u8868")},{title:"\u7F16\u8F91\u8BD5\u5377"}]:[{title:ko.createElement(Re.Link,{to:"/paperlibrary"},"\u8BD5\u5377\u5E93")},{title:"\u968F\u673A\u7EC4\u5377"}]}),ko.createElement(ue.d4,{activeKey:An,tabs:[{key:"baseInfo",label:"\u8BD5\u5377\u57FA\u7840\u4FE1\u606F"},{key:"settings",label:"\u7EC4\u5377\u914D\u7F6E"}],onChange:Da=>tl(void 0,null,function*(){if(Da==="settings"&&(yield to.validateFields(),!on)){const Lr=yield ge(ga);Lr.status===0&&Re.history.replace(`/randompaper/edit/${Lr==null?void 0:Lr.examination_bank_id}?type=settings`)}hn(Da)})}),An==="baseInfo"&&ko.createElement(Ut,{courseOptions:Tr,setCurrentKey:hn,loading:ar,form:to}),ko.createElement("div",{style:{display:An==="settings"?"block":"none"}},ga&&ko.createElement(il,null)))))}},54579:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return _e}});var b=ae(43418),se={ul:"ul___TdfYY"},Ce=ae(32637),Fe=ae(59301),Oe=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,Ze=(ke,je)=>{var Ie={};for(var le in ke)Re.call(ke,le)&&je.indexOf(le)<0&&(Ie[le]=ke[le]);if(ke!=null&&Oe)for(var le of Oe(ke))je.indexOf(le)<0&&ue.call(ke,le)&&(Ie[le]=ke[le]);return Ie},_e=ke=>{var je=ke,{open:Ie,onCancel:le}=je,E=Ze(je,["open","onCancel"]);return Fe.createElement(b.default,{centered:!0,open:Ie,title:Fe.createElement("div",{style:{fontWeight:"bold"}},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"),width:"696px",onCancel:le,footer:null},Fe.createElement("div",null,Fe.createElement("div",{className:"tc"},Fe.createElement("img",{className:"mt10",src:Ce,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})),Fe.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),Fe.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),Fe.createElement("div",{style:{color:"#333"},className:"pt30 font14"},Fe.createElement("ul",{className:se.ul},Fe.createElement("li",null,"1\u3001\u89E3\u7B54\u8001\u5E08\u7591\u60D1\u3001\u5E2E\u52A9\u8001\u5E08\u66F4\u5FEB\u719F\u6089\u548C\u4F7F\u7528\u5E73\u53F0\u6559\u5B66\u3002"),Fe.createElement("li",null,"2\u3001\u534F\u52A9\u8001\u5E08\u521B\u5EFA\u8BFE\u5802\u3001\u8BFE\u7A0B\u8BBE\u8BA1\u3001\u505A\u597D\u6559\u5B66\u5DE5\u4F5C\u3002"),Fe.createElement("li",null,"3\u3001\u6839\u636E\u8001\u5E08\u6559\u5B66\u65B9\u5411\uFF0C\u5206\u4EAB\u5E73\u53F0C9\u9662\u6821\u3001985\u9AD8\u6821\u3001211\u9AD8\u6821\u3001\u53CC\u4E00\u6D41\u9AD8\u6821\u8001\u5E08\u7ECF\u5178\u5B9E\u8DF5\u6559\u5B66\u6848\u4F8B\u3002")))))}},67931:function(Ot,Rt,ae){"use strict";ae.d(Rt,{g:function(){return Oe}});var b=ae(59301),se=ae(47580),Ce=ae(37798),Fe=(Re,ue,Ze)=>new Promise((We,_e)=>{var ke=le=>{try{Ie(Ze.next(le))}catch(E){_e(E)}},je=le=>{try{Ie(Ze.throw(le))}catch(E){_e(E)}},Ie=le=>le.done?We(le.value):Promise.resolve(le.value).then(ke,je);Ie((Ze=Ze.apply(Re,ue)).next())});const Oe=()=>{const[Re,ue]=(0,b.useState)([]);return(0,b.useEffect)(()=>{Fe(void 0,null,function*(){const We=yield(0,se.d1)({source:"question"});We!=null&&We.disciplines&&ue((0,Ce.L)(We==null?void 0:We.disciplines))})},[]),Re}},98072:function(Ot,Rt,ae){"use strict";ae.d(Rt,{U:function(){return We}});var b=ae(59301),se=Object.defineProperty,Ce=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,Re=(_e,ke,je)=>ke in _e?se(_e,ke,{enumerable:!0,configurable:!0,writable:!0,value:je}):_e[ke]=je,ue=(_e,ke)=>{for(var je in ke||(ke={}))Fe.call(ke,je)&&Re(_e,je,ke[je]);if(Ce)for(var je of Ce(ke))Oe.call(ke,je)&&Re(_e,je,ke[je]);return _e},Ze=(_e,ke,je)=>new Promise((Ie,le)=>{var E=y=>{try{x(je.next(y))}catch(z){le(z)}},a=y=>{try{x(je.throw(y))}catch(z){le(z)}},x=y=>y.done?Ie(y.value):Promise.resolve(y.value).then(E,a);x((je=je.apply(_e,ke)).next())});function We(_e,ke){const[je,Ie]=(0,b.useState)(ke),[le,E]=(0,b.useState)(!1),[a,x]=(0,b.useState)();return[je,le,(z,te=!1)=>Ze(this,null,function*(){const re=te?ke:ue(ue({},je),z);E(!0),Ie(re);const ie=yield _e(re);return E(!1),x(ie),ie}),a]}},50371:function(Ot,Rt){"use strict";function ae(){const b=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let se=1;se<arguments.length;se++){const Ce=se<0||arguments.length<=se?void 0:arguments[se];Ce&&Object.keys(Ce).forEach(Fe=>{const Oe=Ce[Fe];Oe!==void 0&&(b[Fe]=Oe)})}return b}Rt.Z=ae},77578:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return b}});const b=se=>se?typeof se=="function"?se():se:null},13845:function(Ot,Rt,ae){"use strict";ae.d(Rt,{F:function(){return b},Z:function(){return se}});function b(Ce){return Ce!=null&&Ce===Ce.window}function se(Ce,Fe){var Oe,Re;if(typeof window=="undefined")return 0;const ue=Fe?"scrollTop":"scrollLeft";let Ze=0;return b(Ce)?Ze=Ce[Fe?"pageYOffset":"pageXOffset"]:Ce instanceof Document?Ze=Ce.documentElement[ue]:(Ce instanceof HTMLElement||Ce)&&(Ze=Ce[ue]),Ce&&!b(Ce)&&typeof Ze!="number"&&(Ze=(Re=((Oe=Ce.ownerDocument)!==null&&Oe!==void 0?Oe:Ce).documentElement)===null||Re===void 0?void 0:Re[ue]),Ze}},56762:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return se}});var b=ae(59301);function se(){const[,Ce]=b.useReducer(Fe=>Fe+1,0);return Ce}},68031:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return Fe}});var b=ae(16089);function se(Oe,Re,ue,Ze){const We=ue-Re;return Oe/=Ze/2,Oe<1?We/2*Oe*Oe*Oe+Re:We/2*((Oe-=2)*Oe*Oe+2)+Re}var Ce=ae(13845);function Fe(Oe){let Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ue=()=>window,callback:Ze,duration:We=450}=Re,_e=ue(),ke=(0,Ce.Z)(_e,!0),je=Date.now(),Ie=()=>{const E=Date.now()-je,a=se(E>We?We:E,ke,Oe,We);(0,Ce.F)(_e)?_e.scrollTo(window.pageXOffset,a):_e instanceof Document||_e.constructor.name==="HTMLDocument"?_e.documentElement.scrollTop=a:_e.scrollTop=a,E<We?(0,b.Z)(Ie):typeof Ze=="function"&&Ze()};(0,b.Z)(Ie)}},66104:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return ot}});var b=ae(92310),se=ae.n(b),Ce=ae(11592),Fe=ae(26112),Oe=ae(59301),Re=ae(92343),ue=ae(36355),Ze=ae(84105),We=ae(91857);const _e=Le=>{let{children:Ue}=Le;const{getPrefixCls:st}=Oe.useContext(ue.E_),Ke=st("breadcrumb");return Oe.createElement("li",{className:`${Ke}-separator`,"aria-hidden":"true"},Ue===""?Ue:Ue||"/")};_e.__ANT_BREADCRUMB_SEPARATOR=!0;var ke=_e,je=function(Le,Ue){var st={};for(var Ke in Le)Object.prototype.hasOwnProperty.call(Le,Ke)&&Ue.indexOf(Ke)<0&&(st[Ke]=Le[Ke]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Ke=Object.getOwnPropertySymbols(Le);rt<Ke.length;rt++)Ue.indexOf(Ke[rt])<0&&Object.prototype.propertyIsEnumerable.call(Le,Ke[rt])&&(st[Ke[rt]]=Le[Ke[rt]]);return st};function Ie(Le,Ue){if(Le.title===void 0||Le.title===null)return null;const st=Object.keys(Ue).join("|");return typeof Le.title=="object"?Le.title:String(Le.title).replace(new RegExp(`:(${st})`,"g"),(Ke,rt)=>Ue[rt]||Ke)}function le(Le,Ue,st,Ke){if(st==null)return null;const{className:rt,onClick:Ht}=Ue,it=je(Ue,["className","onClick"]),jt=Object.assign(Object.assign({},(0,Fe.Z)(it,{data:!0,aria:!0})),{onClick:Ht});return Ke!==void 0?Oe.createElement("a",Object.assign({},jt,{className:se()(`${Le}-link`,rt),href:Ke}),st):Oe.createElement("span",Object.assign({},jt,{className:se()(`${Le}-link`,rt)}),st)}function E(Le,Ue){return(Ke,rt,Ht,it,jt)=>{if(Ue)return Ue(Ke,rt,Ht,it);const Kt=Ie(Ke,rt);return le(Le,Ke,Kt,jt)}}var a=function(Le,Ue){var st={};for(var Ke in Le)Object.prototype.hasOwnProperty.call(Le,Ke)&&Ue.indexOf(Ke)<0&&(st[Ke]=Le[Ke]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Ke=Object.getOwnPropertySymbols(Le);rt<Ke.length;rt++)Ue.indexOf(Ke[rt])<0&&Object.prototype.propertyIsEnumerable.call(Le,Ke[rt])&&(st[Ke[rt]]=Le[Ke[rt]]);return st};const x=Le=>{const{prefixCls:Ue,separator:st="/",children:Ke,menu:rt,overlay:Ht,dropdownProps:it,href:jt}=Le,Qe=(et=>{if(rt||Ht){const Dt=Object.assign({},it);if(rt){const tn=rt||{},{items:Et}=tn,Vt=a(tn,["items"]);Dt.menu=Object.assign(Object.assign({},Vt),{items:Et==null?void 0:Et.map((Be,Gt)=>{var{key:bn,title:Bt,label:At,path:tt}=Be,Ve=a(Be,["key","title","label","path"]);let De=At!=null?At:Bt;return tt&&(De=Oe.createElement("a",{href:`${jt}${tt}`},De)),Object.assign(Object.assign({},Ve),{key:bn!=null?bn:Gt,label:De})})})}else Ht&&(Dt.overlay=Ht);return Oe.createElement(We.Z,Object.assign({placement:"bottom"},Dt),Oe.createElement("span",{className:`${Ue}-overlay-link`},et,Oe.createElement(Ze.Z,null)))}return et})(Ke);return Qe!=null?Oe.createElement(Oe.Fragment,null,Oe.createElement("li",null,Qe),st&&Oe.createElement(ke,null,st)):null},y=Le=>{const{prefixCls:Ue,children:st,href:Ke}=Le,rt=a(Le,["prefixCls","children","href"]),{getPrefixCls:Ht}=Oe.useContext(ue.E_),it=Ht("breadcrumb",Ue);return Oe.createElement(x,Object.assign({},rt,{prefixCls:it}),le(it,rt,st,Ke))};y.__ANT_BREADCRUMB_ITEM=!0;var z=y,te=ae(17313),re=ae(83116),ie=ae(37613);const ce=Le=>{const{componentCls:Ue,iconCls:st}=Le;return{[Ue]:Object.assign(Object.assign({},(0,te.Wf)(Le)),{color:Le.itemColor,fontSize:Le.fontSize,[st]:{fontSize:Le.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Le.linkColor,transition:`color ${Le.motionDurationMid}`,padding:`0 ${Le.paddingXXS}px`,borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",marginInline:-Le.marginXXS,"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover}},(0,te.Qy)(Le)),"li:last-child":{color:Le.lastItemColor},[`${Ue}-separator`]:{marginInline:Le.separatorMargin,color:Le.separatorColor},[`${Ue}-link`]:{[`
|
|
> ${st} + span,
|
|
> ${st} + a
|
|
`]:{marginInlineStart:Le.marginXXS}},[`${Ue}-overlay-link`]:{borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",padding:`0 ${Le.paddingXXS}px`,marginInline:-Le.marginXXS,[`> ${st}`]:{marginInlineStart:Le.marginXXS,fontSize:Le.fontSizeIcon},"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover,a:{color:Le.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Le.componentCls}-rtl`]:{direction:"rtl"}})}};var pe=(0,re.Z)("Breadcrumb",Le=>{const Ue=(0,ie.TS)(Le,{});return[ce(Ue)]},Le=>({itemColor:Le.colorTextDescription,lastItemColor:Le.colorText,iconFontSize:Le.fontSize,linkColor:Le.colorTextDescription,linkHoverColor:Le.colorText,separatorColor:Le.colorTextDescription,separatorMargin:Le.marginXS})),ge=function(Le,Ue){var st={};for(var Ke in Le)Object.prototype.hasOwnProperty.call(Le,Ke)&&Ue.indexOf(Ke)<0&&(st[Ke]=Le[Ke]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Ke=Object.getOwnPropertySymbols(Le);rt<Ke.length;rt++)Ue.indexOf(Ke[rt])<0&&Object.prototype.propertyIsEnumerable.call(Le,Ke[rt])&&(st[Ke[rt]]=Le[Ke[rt]]);return st};function ye(Le){const{breadcrumbName:Ue,children:st}=Le,Ke=ge(Le,["breadcrumbName","children"]),rt=Object.assign({title:Ue},Ke);return st&&(rt.menu={items:st.map(Ht=>{var{breadcrumbName:it}=Ht,jt=ge(Ht,["breadcrumbName"]);return Object.assign(Object.assign({},jt),{title:it})})}),rt}function Ee(Le,Ue){return(0,Oe.useMemo)(()=>Le||(Ue?Ue.map(ye):null),[Le,Ue])}var we=function(Le,Ue){var st={};for(var Ke in Le)Object.prototype.hasOwnProperty.call(Le,Ke)&&Ue.indexOf(Ke)<0&&(st[Ke]=Le[Ke]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Ke=Object.getOwnPropertySymbols(Le);rt<Ke.length;rt++)Ue.indexOf(Ke[rt])<0&&Object.prototype.propertyIsEnumerable.call(Le,Ke[rt])&&(st[Ke[rt]]=Le[Ke[rt]]);return st};const ve=(Le,Ue)=>{if(Ue===void 0)return Ue;let st=(Ue||"").replace(/^\//,"");return Object.keys(Le).forEach(Ke=>{st=st.replace(`:${Ke}`,Le[Ke])}),st},Je=Le=>{const{prefixCls:Ue,separator:st="/",style:Ke,className:rt,rootClassName:Ht,routes:it,items:jt,children:Kt,itemRender:Qe,params:et={}}=Le,Dt=we(Le,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:tn,direction:Et,breadcrumb:Vt}=Oe.useContext(ue.E_);let Be;const Gt=tn("breadcrumb",Ue),[bn,Bt]=pe(Gt),At=Ee(jt,it),tt=E(Gt,Qe);if(At&&At.length>0){const he=[],nt=jt||it;Be=At.map((wt,Ae)=>{const{path:be,key:gt,type:Xe,menu:Te,overlay:St,onClick:ln,className:Lt,separator:Jt,dropdownProps:Ut}=wt,qt=ve(et,be);qt!==void 0&&he.push(qt);const bt=gt!=null?gt:Ae;if(Xe==="separator")return Oe.createElement(ke,{key:bt},Jt);const Yt={},Fn=Ae===At.length-1;Te?Yt.menu=Te:St&&(Yt.overlay=St);let{href:kt}=wt;return he.length&&qt!==void 0&&(kt=`#/${he.join("/")}`),Oe.createElement(x,Object.assign({key:bt},Yt,(0,Fe.Z)(wt,{data:!0,aria:!0}),{className:Lt,dropdownProps:Ut,href:kt,separator:Fn?"":st,onClick:ln,prefixCls:Gt}),tt(wt,et,nt,he,kt))})}else if(Kt){const he=(0,Ce.Z)(Kt).length;Be=(0,Ce.Z)(Kt).map((nt,wt)=>{if(!nt)return nt;const Ae=wt===he-1;return(0,Re.Tm)(nt,{separator:Ae?"":st,key:wt})})}const Ve=se()(Gt,Vt==null?void 0:Vt.className,{[`${Gt}-rtl`]:Et==="rtl"},rt,Ht,Bt),De=Object.assign(Object.assign({},Vt==null?void 0:Vt.style),Ke);return bn(Oe.createElement("nav",Object.assign({className:Ve,style:De},Dt),Oe.createElement("ol",null,Be)))};Je.Item=z,Je.Separator=ke;var Ge=Je,ot=Ge},19842:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return ka}});var b=ae(94480),se=ae(59301),Ce=ae(33853),Fe=ae(58617),Oe=ae(38819),Re=ae(92310),ue=ae.n(Re),Ze=ae(54476),We=ae(42978),_e=ae(75931),ke=ae(77861),je=ae(17115),Ie=ae(90782),le=ae(6089),E=ae(18929),a=se.createContext(null),x=a,y=ae(76190),z=ae(20068),te=ae(33885),re="__rc_cascader_search_mark__",ie=function(cn,Nn,kn){var xn=kn.label;return Nn.some(function(zn){return String(zn[xn]).toLowerCase().includes(cn.toLowerCase())})},ce=function(cn,Nn,kn,xn){return Nn.map(function(zn){return zn[xn.label]}).join(" / ")},pe=function(vt,cn,Nn,kn,xn,zn){var Jn=xn.filter,ht=Jn===void 0?ie:Jn,yt=xn.render,pt=yt===void 0?ce:yt,sn=xn.limit,En=sn===void 0?50:sn,gn=xn.sort;return se.useMemo(function(){var Qn=[];if(!vt)return[];function _n(Hn,Pa){var Qa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Hn.forEach(function(Sn){if(!(!gn&&En!==!1&&En>0&&Qn.length>=En)){var ba=[].concat((0,b.Z)(Pa),[Sn]),nr=Sn[Nn.children],gr=Qa||Sn.disabled;if((!nr||nr.length===0||zn)&&ht(vt,ba,{label:Nn.label})){var $n;Qn.push((0,te.Z)((0,te.Z)({},Sn),{},($n={disabled:gr},(0,z.Z)($n,Nn.label,pt(vt,ba,kn,Nn)),(0,z.Z)($n,re,ba),(0,z.Z)($n,Nn.children,void 0),$n)))}nr&&_n(Sn[Nn.children],ba,gr)}})}return _n(cn,[]),gn&&Qn.sort(function(Hn,Pa){return gn(Hn[re],Pa[re],vt,Nn)}),En!==!1&&En>0?Qn.slice(0,En):Qn},[vt,cn,Nn,kn,pt,zn,ht,gn,En])},ge="__RC_CASCADER_SPLIT__",ye="SHOW_PARENT",Ee="SHOW_CHILD";function we(vt){return vt.join(ge)}function ve(vt){return vt.map(we)}function Je(vt){return vt.split(ge)}function Ge(vt){var cn=vt||{},Nn=cn.label,kn=cn.value,xn=cn.children,zn=kn||"value";return{label:Nn||"label",value:zn,key:zn,children:xn||"children"}}function ot(vt,cn){var Nn,kn;return(Nn=vt.isLeaf)!==null&&Nn!==void 0?Nn:!((kn=vt[cn.children])!==null&&kn!==void 0&&kn.length)}function Le(vt){var cn=vt.parentElement;if(cn){var Nn=vt.offsetTop-cn.offsetTop;Nn-cn.scrollTop<0?cn.scrollTo({top:Nn}):Nn+vt.offsetHeight-cn.scrollTop>cn.offsetHeight&&cn.scrollTo({top:Nn+vt.offsetHeight-cn.offsetHeight})}}function Ue(vt,cn){return vt.map(function(Nn){var kn;return(kn=Nn[re])===null||kn===void 0?void 0:kn.map(function(xn){return xn[cn.value]})})}function st(vt,cn,Nn){var kn=new Set(vt),xn=cn();return vt.filter(function(zn){var Jn=xn[zn],ht=Jn?Jn.parent:null,yt=Jn?Jn.children:null;return Jn&&Jn.node.disabled?!0:Nn===Ee?!(yt&&yt.some(function(pt){return pt.key&&kn.has(pt.key)})):!(ht&&!ht.node.disabled&&kn.has(ht.key))})}function Ke(vt,cn,Nn){for(var kn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,xn=cn,zn=[],Jn=function(){var pt,sn,En,gn=vt[ht],Qn=(pt=xn)===null||pt===void 0?void 0:pt.findIndex(function(Hn){var Pa=Hn[Nn.value];return kn?String(Pa)===String(gn):Pa===gn}),_n=Qn!==-1?(sn=xn)===null||sn===void 0?void 0:sn[Qn]:null;zn.push({value:(En=_n==null?void 0:_n[Nn.value])!==null&&En!==void 0?En:gn,index:Qn,option:_n}),xn=_n==null?void 0:_n[Nn.children]},ht=0;ht<vt.length;ht+=1)Jn();return zn}var rt=function(vt,cn,Nn,kn,xn){return se.useMemo(function(){var zn=xn||function(Jn){var ht=kn?Jn.slice(-1):Jn,yt=" / ";return ht.every(function(pt){return["string","number"].includes((0,y.Z)(pt))})?ht.join(yt):ht.reduce(function(pt,sn,En){var gn=se.isValidElement(sn)?se.cloneElement(sn,{key:En}):sn;return En===0?[gn]:[].concat((0,b.Z)(pt),[yt,gn])},[])};return vt.map(function(Jn){var ht,yt,pt=Ke(Jn,cn,Nn),sn=zn(pt.map(function(gn){var Qn,_n=gn.option,Hn=gn.value;return(Qn=_n==null?void 0:_n[Nn.label])!==null&&Qn!==void 0?Qn:Hn}),pt.map(function(gn){var Qn=gn.option;return Qn})),En=we(Jn);return{label:sn,value:En,key:En,valueCells:Jn,disabled:(ht=pt[pt.length-1])===null||ht===void 0||(yt=ht.option)===null||yt===void 0?void 0:yt.disabled}})},[vt,cn,Nn,xn,kn])},Ht=ae(71430),it=function(vt,cn){var Nn=se.useRef({options:null,info:null}),kn=se.useCallback(function(){return Nn.current.options!==vt&&(Nn.current.options=vt,Nn.current.info=(0,Ht.I8)(vt,{fieldNames:cn,initWrapper:function(zn){return(0,te.Z)((0,te.Z)({},zn),{},{pathKeyEntities:{}})},processEntity:function(zn,Jn){var ht=zn.nodes.map(function(yt){return yt[cn.value]}).join(ge);Jn.pathKeyEntities[ht]=zn,zn.key=ht}})),Nn.current.info.pathKeyEntities},[cn,vt]);return kn},jt=function(vt,cn){return se.useCallback(function(Nn){var kn=[],xn=[];return Nn.forEach(function(zn){var Jn=Ke(zn,vt,cn);Jn.every(function(ht){return ht.option})?xn.push(zn):kn.push(zn)}),[xn,kn]},[vt,cn])},Kt=ae(48736);function Qe(vt){return se.useMemo(function(){if(!vt)return[!1,{}];var cn={matchInputWidth:!0,limit:50};return vt&&(0,y.Z)(vt)==="object"&&(cn=(0,te.Z)((0,te.Z)({},cn),vt)),cn.limit<=0&&delete cn.limit,[!0,cn]},[vt])}var et=se.memo(function(vt){var cn=vt.children;return cn},function(vt,cn){return!cn.open}),Dt=et;function tn(vt){var cn,Nn=vt.prefixCls,kn=vt.checked,xn=vt.halfChecked,zn=vt.disabled,Jn=vt.onClick,ht=vt.disableCheckbox,yt=se.useContext(x),pt=yt.checkable,sn=typeof pt!="boolean"?pt:null;return se.createElement("span",{className:ue()("".concat(Nn),(cn={},(0,z.Z)(cn,"".concat(Nn,"-checked"),kn),(0,z.Z)(cn,"".concat(Nn,"-indeterminate"),!kn&&xn),(0,z.Z)(cn,"".concat(Nn,"-disabled"),zn||ht),cn)),onClick:Jn},sn)}var Et="__cascader_fix_label__";function Vt(vt){var cn=vt.prefixCls,Nn=vt.multiple,kn=vt.options,xn=vt.activeValue,zn=vt.prevValuePath,Jn=vt.onToggleOpen,ht=vt.onSelect,yt=vt.onActive,pt=vt.checkedSet,sn=vt.halfCheckedSet,En=vt.loadingKeys,gn=vt.isSelectable,Qn=vt.searchValue,_n="".concat(cn,"-menu"),Hn="".concat(cn,"-menu-item"),Pa=se.useContext(x),Qa=Pa.fieldNames,Sn=Pa.changeOnSelect,ba=Pa.expandTrigger,nr=Pa.expandIcon,gr=Pa.loadingIcon,$n=Pa.dropdownMenuColumnStyle,an=ba==="hover",Rr=se.useMemo(function(){return kn.map(function(Ja){var Fr,Or=Ja.disabled,Mr=Ja.disableCheckbox,Xt=Ja[re],fn=(Fr=Ja[Et])!==null&&Fr!==void 0?Fr:Ja[Qa.label],Pn=Ja[Qa.value],pa=ot(Ja,Qa),en=Xt?Xt.map(function(Rn){return Rn[Qa.value]}):[].concat((0,b.Z)(zn),[Pn]),za=we(en),va=En.includes(za),ja=pt.has(za),ia=sn.has(za);return{disabled:Or,label:fn,value:Pn,isLeaf:pa,isLoading:va,checked:ja,halfChecked:ia,option:Ja,disableCheckbox:Mr,fullPath:en,fullPathKey:za}})},[kn,pt,Qa,sn,En,zn]);return se.createElement("ul",{className:_n,role:"menu"},Rr.map(function(Ja){var Fr,Or=Ja.disabled,Mr=Ja.label,Xt=Ja.value,fn=Ja.isLeaf,Pn=Ja.isLoading,pa=Ja.checked,en=Ja.halfChecked,za=Ja.option,va=Ja.fullPath,ja=Ja.fullPathKey,ia=Ja.disableCheckbox,Rn=function(){if(!(Or||Qn)){var Xa=(0,b.Z)(va);an&&fn&&Xa.pop(),yt(Xa)}},Wn=function(){gn(za)&&ht(va,fn)},fa;return typeof za.title=="string"?fa=za.title:typeof Mr=="string"&&(fa=Mr),se.createElement("li",{key:ja,className:ue()(Hn,(Fr={},(0,z.Z)(Fr,"".concat(Hn,"-expand"),!fn),(0,z.Z)(Fr,"".concat(Hn,"-active"),xn===Xt||xn===ja),(0,z.Z)(Fr,"".concat(Hn,"-disabled"),Or),(0,z.Z)(Fr,"".concat(Hn,"-loading"),Pn),Fr)),style:$n,role:"menuitemcheckbox",title:fa,"aria-checked":pa,"data-path-key":ja,onClick:function(){Rn(),!ia&&(!Nn||fn)&&Wn()},onDoubleClick:function(){Sn&&Jn(!1)},onMouseEnter:function(){an&&Rn()},onMouseDown:function(Xa){Xa.preventDefault()}},Nn&&se.createElement(tn,{prefixCls:"".concat(cn,"-checkbox"),checked:pa,halfChecked:en,disabled:Or||ia,disableCheckbox:ia,onClick:function(Xa){ia||(Xa.stopPropagation(),Wn())}}),se.createElement("div",{className:"".concat(Hn,"-content")},Mr),!Pn&&nr&&!fn&&se.createElement("div",{className:"".concat(Hn,"-expand-icon")},nr),Pn&&gr&&se.createElement("div",{className:"".concat(Hn,"-loading-icon")},gr))}))}var Be=function(){var vt=(0,ke.lk)(),cn=vt.multiple,Nn=vt.open,kn=se.useContext(x),xn=kn.values,zn=se.useState([]),Jn=(0,We.Z)(zn,2),ht=Jn[0],yt=Jn[1];return se.useEffect(function(){if(Nn&&!cn){var pt=xn[0];yt(pt||[])}},[Nn]),[ht,yt]},Gt=ae(10228),bn=function(vt,cn,Nn,kn,xn,zn){var Jn=(0,ke.lk)(),ht=Jn.direction,yt=Jn.searchValue,pt=Jn.toggleOpen,sn=Jn.open,En=ht==="rtl",gn=se.useMemo(function(){for(var $n=-1,an=cn,Rr=[],Ja=[],Fr=kn.length,Or=Ue(cn,Nn),Mr=function(za){var va=an.findIndex(function(ja,ia){return(Or[ia]?we(Or[ia]):ja[Nn.value])===kn[za]});if(va===-1)return"break";$n=va,Rr.push($n),Ja.push(kn[za]),an=an[$n][Nn.children]},Xt=0;Xt<Fr&&an;Xt+=1){var fn=Mr(Xt);if(fn==="break")break}for(var Pn=cn,pa=0;pa<Rr.length-1;pa+=1)Pn=Pn[Rr[pa]][Nn.children];return[Ja,$n,Pn,Or]},[kn,Nn,cn]),Qn=(0,We.Z)(gn,4),_n=Qn[0],Hn=Qn[1],Pa=Qn[2],Qa=Qn[3],Sn=function(an){xn(an)},ba=function(an){var Rr=Pa.length,Ja=Hn;Ja===-1&&an<0&&(Ja=Rr);for(var Fr=0;Fr<Rr;Fr+=1){Ja=(Ja+an+Rr)%Rr;var Or=Pa[Ja];if(Or&&!Or.disabled){var Mr=_n.slice(0,-1).concat(Qa[Ja]?we(Qa[Ja]):Or[Nn.value]);Sn(Mr);return}}},nr=function(){if(_n.length>1){var an=_n.slice(0,-1);Sn(an)}else pt(!1)},gr=function(){var an,Rr=((an=Pa[Hn])===null||an===void 0?void 0:an[Nn.children])||[],Ja=Rr.find(function(Or){return!Or.disabled});if(Ja){var Fr=[].concat((0,b.Z)(_n),[Ja[Nn.value]]);Sn(Fr)}};se.useImperativeHandle(vt,function(){return{onKeyDown:function(an){var Rr=an.which;switch(Rr){case Gt.Z.UP:case Gt.Z.DOWN:{var Ja=0;Rr===Gt.Z.UP?Ja=-1:Rr===Gt.Z.DOWN&&(Ja=1),Ja!==0&&ba(Ja);break}case Gt.Z.LEFT:{if(yt)break;En?gr():nr();break}case Gt.Z.RIGHT:{if(yt)break;En?nr():gr();break}case Gt.Z.BACKSPACE:{yt||nr();break}case Gt.Z.ENTER:{if(_n.length){var Fr=Pa[Hn],Or=(Fr==null?void 0:Fr[re])||[];Or.length?zn(Or.map(function(Mr){return Mr[Nn.value]}),Or[Or.length-1]):zn(_n,Pa[Hn])}break}case Gt.Z.ESC:pt(!1),sn&&an.stopPropagation()}},onKeyUp:function(){}}})},Bt=se.forwardRef(function(vt,cn){var Nn,kn,xn,zn,Jn=(0,ke.lk)(),ht=Jn.prefixCls,yt=Jn.multiple,pt=Jn.searchValue,sn=Jn.toggleOpen,En=Jn.notFoundContent,gn=Jn.direction,Qn=Jn.open,_n=se.useRef(),Hn=gn==="rtl",Pa=se.useContext(x),Qa=Pa.options,Sn=Pa.values,ba=Pa.halfValues,nr=Pa.fieldNames,gr=Pa.changeOnSelect,$n=Pa.onSelect,an=Pa.searchOptions,Rr=Pa.dropdownPrefixCls,Ja=Pa.loadData,Fr=Pa.expandTrigger,Or=Rr||ht,Mr=se.useState([]),Xt=(0,We.Z)(Mr,2),fn=Xt[0],Pn=Xt[1],pa=function(Na){if(!(!Ja||pt)){var oo=Ke(Na,Qa,nr),po=oo.map(function(Ao){var oi=Ao.option;return oi}),Mo=po[po.length-1];if(Mo&&!ot(Mo,nr)){var yo=we(Na);Pn(function(Ao){return[].concat((0,b.Z)(Ao),[yo])}),Ja(po)}}};se.useEffect(function(){fn.length&&fn.forEach(function(Eo){var Na=Je(Eo),oo=Ke(Na,Qa,nr,!0).map(function(Mo){var yo=Mo.option;return yo}),po=oo[oo.length-1];(!po||po[nr.children]||ot(po,nr))&&Pn(function(Mo){return Mo.filter(function(yo){return yo!==Eo})})})},[Qa,fn,nr]);var en=se.useMemo(function(){return new Set(ve(Sn))},[Sn]),za=se.useMemo(function(){return new Set(ve(ba))},[ba]),va=Be(),ja=(0,We.Z)(va,2),ia=ja[0],Rn=ja[1],Wn=function(Na){Rn(Na),pa(Na)},fa=function(Na){var oo=Na.disabled,po=ot(Na,nr);return!oo&&(po||gr||yt)},qn=function(Na,oo){var po=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;$n(Na),!yt&&(oo||gr&&(Fr==="hover"||po))&&sn(!1)},Xa=se.useMemo(function(){return pt?an:Qa},[pt,an,Qa]),xr=se.useMemo(function(){for(var Eo=[{options:Xa}],Na=Xa,oo=Ue(Na,nr),po=function(){var oi=ia[Mo],$o=Na.find(function(Ci,Qo){return(oo[Qo]?we(oo[Qo]):Ci[nr.value])===oi}),Ko=$o==null?void 0:$o[nr.children];if(!(Ko!=null&&Ko.length))return"break";Na=Ko,Eo.push({options:Ko})},Mo=0;Mo<ia.length;Mo+=1){var yo=po();if(yo==="break")break}return Eo},[Xa,ia,nr]),mr=function(Na,oo){fa(oo)&&qn(Na,ot(oo,nr),!0)};bn(cn,Xa,nr,ia,Wn,mr),se.useEffect(function(){for(var Eo=0;Eo<ia.length;Eo+=1){var Na,oo=ia.slice(0,Eo+1),po=we(oo),Mo=(Na=_n.current)===null||Na===void 0?void 0:Na.querySelector('li[data-path-key="'.concat(po.replace(/\\{0,2}"/g,'\\"'),'"]'));Mo&&Le(Mo)}},[ia]);var hr=!((Nn=xr[0])!==null&&Nn!==void 0&&(kn=Nn.options)!==null&&kn!==void 0&&kn.length),Qr=[(xn={},(0,z.Z)(xn,nr.value,"__EMPTY__"),(0,z.Z)(xn,Et,En),(0,z.Z)(xn,"disabled",!0),xn)],eo=(0,te.Z)((0,te.Z)({},vt),{},{multiple:!hr&&yt,onSelect:qn,onActive:Wn,onToggleOpen:sn,checkedSet:en,halfCheckedSet:za,loadingKeys:fn,isSelectable:fa}),Yo=hr?[{options:Qr}]:xr,Ti=Yo.map(function(Eo,Na){var oo=ia.slice(0,Na),po=ia[Na];return se.createElement(Vt,(0,Ze.Z)({key:Na},eo,{searchValue:pt,prefixCls:Or,options:Eo.options,prevValuePath:oo,activeValue:po}))});return se.createElement(Dt,{open:Qn},se.createElement("div",{className:ue()("".concat(Or,"-menus"),(zn={},(0,z.Z)(zn,"".concat(Or,"-menu-empty"),hr),(0,z.Z)(zn,"".concat(Or,"-rtl"),Hn),zn)),ref:_n},Ti))}),At=Bt;function tt(vt){var cn=vt.onPopupVisibleChange,Nn=vt.popupVisible,kn=vt.popupClassName,xn=vt.popupPlacement;warning(!cn,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Nn===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(kn===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(xn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Ve(vt,cn){if(vt){var Nn=function kn(xn){for(var zn=0;zn<xn.length;zn++){var Jn=xn[zn];if(Jn[cn==null?void 0:cn.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(Jn[cn==null?void 0:cn.children])&&kn(Jn[cn==null?void 0:cn.children]))return!0}};Nn(vt)}}var De=null,he=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy"];function nt(vt){return Array.isArray(vt)&&Array.isArray(vt[0])}function wt(vt){return vt?nt(vt)?vt:(vt.length===0?[]:[vt]).map(function(cn){return Array.isArray(cn)?cn:[cn]}):[]}var Ae=se.forwardRef(function(vt,cn){var Nn=vt.id,kn=vt.prefixCls,xn=kn===void 0?"rc-cascader":kn,zn=vt.fieldNames,Jn=vt.defaultValue,ht=vt.value,yt=vt.changeOnSelect,pt=vt.onChange,sn=vt.displayRender,En=vt.checkable,gn=vt.autoClearSearchValue,Qn=gn===void 0?!0:gn,_n=vt.searchValue,Hn=vt.onSearch,Pa=vt.showSearch,Qa=vt.expandTrigger,Sn=vt.options,ba=vt.dropdownPrefixCls,nr=vt.loadData,gr=vt.popupVisible,$n=vt.open,an=vt.popupClassName,Rr=vt.dropdownClassName,Ja=vt.dropdownMenuColumnStyle,Fr=vt.popupPlacement,Or=vt.placement,Mr=vt.onDropdownVisibleChange,Xt=vt.onPopupVisibleChange,fn=vt.expandIcon,Pn=fn===void 0?">":fn,pa=vt.loadingIcon,en=vt.children,za=vt.dropdownMatchSelectWidth,va=za===void 0?!1:za,ja=vt.showCheckedStrategy,ia=ja===void 0?ye:ja,Rn=(0,_e.Z)(vt,he),Wn=(0,je.ZP)(Nn),fa=!!En,qn=(0,E.Z)(Jn,{value:ht,postState:wt}),Xa=(0,We.Z)(qn,2),xr=Xa[0],mr=Xa[1],hr=se.useMemo(function(){return Ge(zn)},[JSON.stringify(zn)]),Qr=se.useMemo(function(){return Sn||[]},[Sn]),eo=it(Qr,hr),Yo=se.useCallback(function(la){var ca=eo();return la.map(function(Fa){var wr=ca[Fa].nodes;return wr.map(function(Gr){return Gr[hr.value]})})},[eo,hr]),Ti=(0,E.Z)("",{value:_n,postState:function(ca){return ca||""}}),Eo=(0,We.Z)(Ti,2),Na=Eo[0],oo=Eo[1],po=function(ca,Fa){oo(ca),Fa.source!=="blur"&&Hn&&Hn(ca)},Mo=Qe(Pa),yo=(0,We.Z)(Mo,2),Ao=yo[0],oi=yo[1],$o=pe(Na,Qr,hr,ba||xn,oi,yt),Ko=jt(Qr,hr),Ci=se.useMemo(function(){var la=Ko(xr),ca=(0,We.Z)(la,2),Fa=ca[0],wr=ca[1];if(!fa||!xr.length)return[Fa,[],wr];var Gr=ve(Fa),lo=eo(),vo=(0,Ie.S)(Gr,!0,lo),Io=vo.checkedKeys,Fo=vo.halfCheckedKeys;return[Yo(Io),Yo(Fo),wr]},[fa,xr,eo,Yo,Ko]),Qo=(0,We.Z)(Ci,3),bo=Qo[0],xi=Qo[1],Co=Qo[2],Mi=se.useMemo(function(){var la=ve(bo),ca=st(la,eo,ia);return[].concat((0,b.Z)(Co),(0,b.Z)(Yo(ca)))},[bo,eo,Yo,Co,ia]),ai=rt(Mi,Qr,hr,fa,sn),Wi=(0,le.Z)(function(la){if(mr(la),pt){var ca=wt(la),Fa=ca.map(function(lo){return Ke(lo,Qr,hr).map(function(vo){return vo.option})}),wr=fa?ca:ca[0],Gr=fa?Fa:Fa[0];pt(wr,Gr)}}),Di=(0,le.Z)(function(la){if((!fa||Qn)&&oo(""),!fa)Wi(la);else{var ca=we(la),Fa=ve(bo),wr=ve(xi),Gr=Fa.includes(ca),lo=Co.some(function(Zi){return we(Zi)===ca}),vo=bo,Io=Co;if(lo&&!Gr)Io=Co.filter(function(Zi){return we(Zi)!==ca});else{var Fo=Gr?Fa.filter(function(Zi){return Zi!==ca}):[].concat((0,b.Z)(Fa),[ca]),Va=eo(),Ho;if(Gr){var Bi=(0,Ie.S)(Fo,{checked:!1,halfCheckedKeys:wr},Va);Ho=Bi.checkedKeys}else{var si=(0,Ie.S)(Fo,!0,Va);Ho=si.checkedKeys}var ki=st(Ho,eo,ia);vo=Yo(ki)}Wi([].concat((0,b.Z)(Io),(0,b.Z)(vo)))}}),_i=function(ca,Fa){if(Fa.type==="clear"){Wi([]);return}var wr=Fa.values[0],Gr=wr.valueCells;Di(Gr)},qo=$n!==void 0?$n:gr,Ki=Rr||an,pl=Or||Fr,Xi=function(ca){Mr==null||Mr(ca),Xt==null||Xt(ca)},Yi=se.useMemo(function(){return{options:Qr,fieldNames:hr,values:bo,halfValues:xi,changeOnSelect:yt,onSelect:Di,checkable:En,searchOptions:$o,dropdownPrefixCls:ba,loadData:nr,expandTrigger:Qa,expandIcon:Pn,loadingIcon:pa,dropdownMenuColumnStyle:Ja}},[Qr,hr,bo,xi,yt,Di,En,$o,ba,nr,Qa,Pn,pa,Ja]),Xr=!(Na?$o:Qr).length,Ka=Na&&oi.matchInputWidth||Xr?{}:{minWidth:"auto"};return se.createElement(x.Provider,{value:Yi},se.createElement(ke.Ac,(0,Ze.Z)({},Rn,{ref:cn,id:Wn,prefixCls:xn,autoClearSearchValue:Qn,dropdownMatchSelectWidth:va,dropdownStyle:Ka,displayValues:ai,onDisplayValuesChange:_i,mode:fa?"multiple":void 0,searchValue:Na,onSearch:po,showSearch:Ao,OptionList:At,emptyOptions:Xr,open:qo,dropdownClassName:Ki,placement:pl,onDropdownVisibleChange:Xi,getRawInputElement:function(){return en}})))});Ae.SHOW_PARENT=ye,Ae.SHOW_CHILD=Ee;var be=Ae,gt=be,Xe=ae(2738),Te=ae(62892),St=ae(53487),ln=ae(19080),Lt=ae(36355),Jt=ae(93891),Ut=ae(1684),qt=ae(19716),bt=ae(32441),Yt=ae(14154),Fn=ae(58582),kt=ae(84443),Ft=ae(66339),In=ae(33234),jn=ae(98447),Gn=ae(17313),na=ae(74207),La=ae(83116);const nn=vt=>{const{prefixCls:cn,componentCls:Nn,antCls:kn}=vt,xn=`${Nn}-menu-item`,zn=`
|
|
&${xn}-expand ${xn}-expand-icon,
|
|
${xn}-loading-icon
|
|
`;return[{[Nn]:{width:vt.controlWidth}},{[`${Nn}-dropdown`]:[(0,jn.C2)(`${cn}-checkbox`,vt),{[`&${kn}-select-dropdown`]:{padding:0}},{[Nn]:{"&-checkbox":{top:0,marginInlineEnd:vt.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Nn}-menu-empty`]:{[`${Nn}-menu`]:{width:"100%",height:"auto",[xn]:{color:vt.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:vt.controlItemWidth,height:vt.dropdownHeight,margin:0,padding:vt.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${vt.lineWidth}px ${vt.lineType} ${vt.colorSplit}`},"&-item":Object.assign(Object.assign({},Gn.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:vt.optionPadding,lineHeight:vt.lineHeight,cursor:"pointer",transition:`all ${vt.motionDurationMid}`,borderRadius:vt.borderRadiusSM,"&:hover":{background:vt.controlItemBgHover},"&-disabled":{color:vt.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[zn]:{color:vt.colorTextDisabled}},[`&-active:not(${xn}-disabled)`]:{"&, &:hover":{fontWeight:vt.optionSelectedFontWeight,backgroundColor:vt.optionSelectedBg}},"&-content":{flex:"auto"},[zn]:{marginInlineStart:vt.paddingXXS,color:vt.colorTextDescription,fontSize:vt.fontSizeIcon},"&-keyword":{color:vt.colorHighlight}})}}}]},{[`${Nn}-dropdown-rtl`]:{direction:"rtl"}},(0,na.c)(vt)]};var $t=(0,La.Z)("Cascader",vt=>[nn(vt)],vt=>{const cn=Math.round((vt.controlHeight-vt.fontSize*vt.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:vt.controlItemBgActive,optionSelectedFontWeight:vt.fontWeightStrong,optionPadding:`${cn}px ${vt.paddingSM}px`,menuPadding:vt.paddingXXS}}),mn=function(vt,cn){var Nn={};for(var kn in vt)Object.prototype.hasOwnProperty.call(vt,kn)&&cn.indexOf(kn)<0&&(Nn[kn]=vt[kn]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xn=0,kn=Object.getOwnPropertySymbols(vt);xn<kn.length;xn++)cn.indexOf(kn[xn])<0&&Object.prototype.propertyIsEnumerable.call(vt,kn[xn])&&(Nn[kn[xn]]=vt[kn[xn]]);return Nn};const{SHOW_CHILD:Zn,SHOW_PARENT:Cn}=gt;function Ha(vt,cn,Nn){const kn=vt.toLowerCase().split(cn).reduce((Jn,ht,yt)=>yt===0?[ht]:[].concat((0,b.Z)(Jn),[cn,ht]),[]),xn=[];let zn=0;return kn.forEach((Jn,ht)=>{const yt=zn+Jn.length;let pt=vt.slice(zn,yt);zn=yt,ht%2===1&&(pt=se.createElement("span",{className:`${Nn}-menu-item-keyword`,key:`separator-${ht}`},pt)),xn.push(pt)}),xn}const $a=(vt,cn,Nn,kn)=>{const xn=[],zn=vt.toLowerCase();return cn.forEach((Jn,ht)=>{ht!==0&&xn.push(" / ");let yt=Jn[kn.label];const pt=typeof yt;(pt==="string"||pt==="number")&&(yt=Ha(String(yt),zn,Nn)),xn.push(yt)}),xn},aa=se.forwardRef((vt,cn)=>{const{prefixCls:Nn,size:kn,disabled:xn,className:zn,rootClassName:Jn,multiple:ht,bordered:yt=!0,transitionName:pt,choiceTransitionName:sn="",popupClassName:En,dropdownClassName:gn,expandIcon:Qn,placement:_n,showSearch:Hn,allowClear:Pa=!0,notFoundContent:Qa,direction:Sn,getPopupContainer:ba,status:nr,showArrow:gr,builtinPlacements:$n,style:an}=vt,Rr=mn(vt,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),Ja=(0,Xe.Z)(Rr,["suffixIcon"]),{getPopupContainer:Fr,getPrefixCls:Or,renderEmpty:Mr,direction:Xt,popupOverflow:fn,cascader:Pn}=se.useContext(Lt.E_),pa=Sn||Xt,en=pa==="rtl",{status:za,hasFeedback:va,isFormItemInput:ja,feedbackIcon:ia}=se.useContext(bt.aM),Rn=(0,ln.F)(za,nr),Wn=Qa||(Mr==null?void 0:Mr("Cascader"))||se.createElement(Jt.Z,{componentName:"Cascader"}),fa=Or(),qn=Or("select",Nn),Xa=Or("cascader",Nn),[xr,mr]=(0,Yt.Z)(qn),[hr]=$t(Xa),{compactSize:Qr,compactItemClassnames:eo}=(0,In.ri)(qn,Sn),Yo=ue()(En||gn,`${Xa}-dropdown`,{[`${Xa}-dropdown-rtl`]:pa==="rtl"},Jn,mr),Ti=se.useMemo(()=>{if(!Hn)return Hn;let Co={render:$a};return typeof Hn=="object"&&(Co=Object.assign(Object.assign({},Co),Hn)),Co},[Hn]),Eo=(0,qt.Z)(Co=>{var Mi;return(Mi=kn!=null?kn:Qr)!==null&&Mi!==void 0?Mi:Co}),Na=se.useContext(Ut.Z),oo=xn!=null?xn:Na;let po=Qn;Qn||(po=en?se.createElement(Ce.Z,null):se.createElement(Oe.Z,null));const Mo=se.createElement("span",{className:`${qn}-menu-item-loading-icon`},se.createElement(Fe.Z,{spin:!0})),yo=se.useMemo(()=>ht?se.createElement("span",{className:`${Xa}-checkbox-inner`}):!1,[ht]),Ao=(0,kt.Z)(vt.suffixIcon,gr),{suffixIcon:oi,removeIcon:$o,clearIcon:Ko}=(0,Ft.Z)(Object.assign(Object.assign({},vt),{hasFeedback:va,feedbackIcon:ia,showSuffixIcon:Ao,multiple:ht,prefixCls:qn,componentName:"Cascader"})),Ci=se.useMemo(()=>_n!==void 0?_n:en?"bottomRight":"bottomLeft",[_n,en]),Qo=(0,Fn.Z)($n,fn),bo=Pa===!0?{clearIcon:Ko}:Pa,xi=se.createElement(gt,Object.assign({prefixCls:qn,className:ue()(!Nn&&Xa,{[`${qn}-lg`]:Eo==="large",[`${qn}-sm`]:Eo==="small",[`${qn}-rtl`]:en,[`${qn}-borderless`]:!yt,[`${qn}-in-form-item`]:ja},(0,ln.Z)(qn,Rn,va),eo,Pn==null?void 0:Pn.className,zn,Jn,mr),disabled:oo,style:Object.assign(Object.assign({},Pn==null?void 0:Pn.style),an)},Ja,{builtinPlacements:Qo,direction:pa,placement:Ci,notFoundContent:Wn,allowClear:bo,showSearch:Ti,expandIcon:po,suffixIcon:oi,removeIcon:$o,loadingIcon:Mo,checkable:yo,dropdownClassName:Yo,dropdownPrefixCls:Nn||Xa,choiceTransitionName:(0,Te.m)(fa,"",sn),transitionName:(0,Te.m)(fa,"slide-up",pt),getPopupContainer:ba||Fr,ref:cn}));return hr(xr(xi))}),vn=(0,St.Z)(aa);aa.SHOW_PARENT=Cn,aa.SHOW_CHILD=Zn,aa._InternalPanelDoNotUseOrYouWillBeFired=vn;var ka=aa},24905:function(Ot,Rt,ae){"use strict";ae.d(Rt,{default:function(){return pe}});var b=ae(92310),se=ae.n(b),Ce=ae(5630),Fe=ae(59301),Oe=ae(36355),Re=ae(1684),ue=ae(32441),We=Fe.createContext(null),_e=ae(98447),ke=ae(14088),je=ae(4572),Ie=function(ge,ye){var Ee={};for(var we in ge)Object.prototype.hasOwnProperty.call(ge,we)&&ye.indexOf(we)<0&&(Ee[we]=ge[we]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,we=Object.getOwnPropertySymbols(ge);ve<we.length;ve++)ye.indexOf(we[ve])<0&&Object.prototype.propertyIsEnumerable.call(ge,we[ve])&&(Ee[we[ve]]=ge[we[ve]]);return Ee};const le=(ge,ye)=>{var Ee;const{prefixCls:we,className:ve,rootClassName:Je,children:Ge,indeterminate:ot=!1,style:Le,onMouseEnter:Ue,onMouseLeave:st,skipGroup:Ke=!1,disabled:rt}=ge,Ht=Ie(ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:it,direction:jt,checkbox:Kt}=Fe.useContext(Oe.E_),Qe=Fe.useContext(We),{isFormItemInput:et}=Fe.useContext(ue.aM),Dt=Fe.useContext(Re.Z),tn=(Ee=(Qe==null?void 0:Qe.disabled)||rt)!==null&&Ee!==void 0?Ee:Dt,Et=Fe.useRef(Ht.value);Fe.useEffect(()=>{Qe==null||Qe.registerValue(Ht.value)},[]),Fe.useEffect(()=>{if(!Ke)return Ht.value!==Et.current&&(Qe==null||Qe.cancelValue(Et.current),Qe==null||Qe.registerValue(Ht.value),Et.current=Ht.value),()=>Qe==null?void 0:Qe.cancelValue(Ht.value)},[Ht.value]);const Vt=it("checkbox",we),[Be,Gt]=(0,_e.ZP)(Vt),bn=Object.assign({},Ht);Qe&&!Ke&&(bn.onChange=function(){Ht.onChange&&Ht.onChange.apply(Ht,arguments),Qe.toggleOption&&Qe.toggleOption({label:Ge,value:Ht.value})},bn.name=Qe.name,bn.checked=Qe.value.includes(Ht.value));const Bt=se()(`${Vt}-wrapper`,{[`${Vt}-rtl`]:jt==="rtl",[`${Vt}-wrapper-checked`]:bn.checked,[`${Vt}-wrapper-disabled`]:tn,[`${Vt}-wrapper-in-form-item`]:et},Kt==null?void 0:Kt.className,ve,Je,Gt),At=se()({[`${Vt}-indeterminate`]:ot},je.A,Gt),tt=ot?"mixed":void 0;return Be(Fe.createElement(ke.Z,{component:"Checkbox",disabled:tn},Fe.createElement("label",{className:Bt,style:Object.assign(Object.assign({},Kt==null?void 0:Kt.style),Le),onMouseEnter:Ue,onMouseLeave:st},Fe.createElement(Ce.Z,Object.assign({"aria-checked":tt},bn,{prefixCls:Vt,className:At,disabled:tn,ref:ye})),Ge!==void 0&&Fe.createElement("span",null,Ge))))};var a=Fe.forwardRef(le),x=ae(94480),y=ae(2738),z=function(ge,ye){var Ee={};for(var we in ge)Object.prototype.hasOwnProperty.call(ge,we)&&ye.indexOf(we)<0&&(Ee[we]=ge[we]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,we=Object.getOwnPropertySymbols(ge);ve<we.length;ve++)ye.indexOf(we[ve])<0&&Object.prototype.propertyIsEnumerable.call(ge,we[ve])&&(Ee[we[ve]]=ge[we[ve]]);return Ee};const te=(ge,ye)=>{const{defaultValue:Ee,children:we,options:ve=[],prefixCls:Je,className:Ge,rootClassName:ot,style:Le,onChange:Ue}=ge,st=z(ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Ke,direction:rt}=Fe.useContext(Oe.E_),[Ht,it]=Fe.useState(st.value||Ee||[]),[jt,Kt]=Fe.useState([]);Fe.useEffect(()=>{"value"in st&&it(st.value||[])},[st.value]);const Qe=Fe.useMemo(()=>ve.map(Ve=>typeof Ve=="string"||typeof Ve=="number"?{label:Ve,value:Ve}:Ve),[ve]),et=Ve=>{Kt(De=>De.filter(he=>he!==Ve))},Dt=Ve=>{Kt(De=>[].concat((0,x.Z)(De),[Ve]))},tn=Ve=>{const De=Ht.indexOf(Ve.value),he=(0,x.Z)(Ht);De===-1?he.push(Ve.value):he.splice(De,1),"value"in st||it(he),Ue==null||Ue(he.filter(nt=>jt.includes(nt)).sort((nt,wt)=>{const Ae=Qe.findIndex(gt=>gt.value===nt),be=Qe.findIndex(gt=>gt.value===wt);return Ae-be}))},Et=Ke("checkbox",Je),Vt=`${Et}-group`,[Be,Gt]=(0,_e.ZP)(Et),bn=(0,y.Z)(st,["value","disabled"]),Bt=ve.length?Qe.map(Ve=>Fe.createElement(a,{prefixCls:Et,key:Ve.value.toString(),disabled:"disabled"in Ve?Ve.disabled:st.disabled,value:Ve.value,checked:Ht.includes(Ve.value),onChange:Ve.onChange,className:`${Vt}-item`,style:Ve.style,title:Ve.title},Ve.label)):we,At={toggleOption:tn,value:Ht,disabled:st.disabled,name:st.name,registerValue:Dt,cancelValue:et},tt=se()(Vt,{[`${Vt}-rtl`]:rt==="rtl"},Ge,ot,Gt);return Be(Fe.createElement("div",Object.assign({className:tt,style:Le},bn,{ref:ye}),Fe.createElement(We.Provider,{value:At},Bt)))},re=Fe.forwardRef(te);var ie=Fe.memo(re);const ce=a;ce.Group=ie,ce.__ANT_CHECKBOX=!0;var pe=ce},98447:function(Ot,Rt,ae){"use strict";ae.d(Rt,{C2:function(){return Oe}});var b=ae(17313),se=ae(37613),Ce=ae(83116);const Fe=Re=>{const{checkboxCls:ue}=Re,Ze=`${ue}-wrapper`;return[{[`${ue}-group`]:Object.assign(Object.assign({},(0,b.Wf)(Re)),{display:"inline-flex",flexWrap:"wrap",columnGap:Re.marginXS,[`> ${Re.antCls}-row`]:{flex:1}}),[Ze]:Object.assign(Object.assign({},(0,b.Wf)(Re)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ze}`]:{marginInlineStart:0},[`&${Ze}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ue]:Object.assign(Object.assign({},(0,b.Wf)(Re)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Re.borderRadiusSM,alignSelf:"center",[`${ue}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ue}-inner`]:Object.assign({},(0,b.oN)(Re))},[`${ue}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Re.checkboxSize,height:Re.checkboxSize,direction:"ltr",backgroundColor:Re.colorBgContainer,border:`${Re.lineWidth}px ${Re.lineType} ${Re.colorBorder}`,borderRadius:Re.borderRadiusSM,borderCollapse:"separate",transition:`all ${Re.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Re.checkboxSize/14*5,height:Re.checkboxSize/14*8,border:`${Re.lineWidthBold}px solid ${Re.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Re.motionDurationFast} ${Re.motionEaseInBack}, opacity ${Re.motionDurationFast}`}},"& + span":{paddingInlineStart:Re.paddingXS,paddingInlineEnd:Re.paddingXS}})},{[`
|
|
${Ze}:not(${Ze}-disabled),
|
|
${ue}:not(${ue}-disabled)
|
|
`]:{[`&:hover ${ue}-inner`]:{borderColor:Re.colorPrimary}},[`${Ze}:not(${Ze}-disabled)`]:{[`&:hover ${ue}-checked:not(${ue}-disabled) ${ue}-inner`]:{backgroundColor:Re.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ue}-checked:not(${ue}-disabled):after`]:{borderColor:Re.colorPrimaryHover}}},{[`${ue}-checked`]:{[`${ue}-inner`]:{backgroundColor:Re.colorPrimary,borderColor:Re.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Re.motionDurationMid} ${Re.motionEaseOutBack} ${Re.motionDurationFast}`}}},[`
|
|
${Ze}-checked:not(${Ze}-disabled),
|
|
${ue}-checked:not(${ue}-disabled)
|
|
`]:{[`&:hover ${ue}-inner`]:{backgroundColor:Re.colorPrimaryHover,borderColor:"transparent"}}},{[ue]:{"&-indeterminate":{[`${ue}-inner`]:{backgroundColor:Re.colorBgContainer,borderColor:Re.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Re.fontSizeLG/2,height:Re.fontSizeLG/2,backgroundColor:Re.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Ze}-disabled`]:{cursor:"not-allowed"},[`${ue}-disabled`]:{[`&, ${ue}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ue}-inner`]:{background:Re.colorBgContainerDisabled,borderColor:Re.colorBorder,"&:after":{borderColor:Re.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Re.colorTextDisabled},[`&${ue}-indeterminate ${ue}-inner::after`]:{background:Re.colorTextDisabled}}}]};function Oe(Re,ue){const Ze=(0,se.TS)(ue,{checkboxCls:`.${Re}`,checkboxSize:ue.controlInteractiveSize});return[Fe(Ze)]}Rt.ZP=(0,Ce.Z)("Checkbox",(Re,ue)=>{let{prefixCls:Ze}=ue;return[Oe(Ze,Re)]})},36381:function(Ot,Rt,ae){"use strict";ae.d(Rt,{default:function(){return bn}});var b=ae(38819),se=ae(92310),Ce=ae.n(se),Fe=ae(54476),Oe=ae(94480),Re=ae(42978),ue=ae(76190),Ze=ae(18929),We=ae(48736),_e=ae(59301),ke=ae(75931),je=ae(11592),Ie=ae(20068),le=ae(77900),E=ae(10228),a=_e.forwardRef(function(Bt,At){var tt=Bt.prefixCls,Ve=Bt.forceRender,De=Bt.className,he=Bt.style,nt=Bt.children,wt=Bt.isActive,Ae=Bt.role,be=_e.useState(wt||Ve),gt=(0,Re.Z)(be,2),Xe=gt[0],Te=gt[1];return _e.useEffect(function(){(Ve||wt)&&Te(!0)},[Ve,wt]),Xe?_e.createElement("div",{ref:At,className:Ce()("".concat(tt,"-content"),(0,Ie.Z)((0,Ie.Z)({},"".concat(tt,"-content-active"),wt),"".concat(tt,"-content-inactive"),!wt),De),style:he,role:Ae},_e.createElement("div",{className:"".concat(tt,"-content-box")},nt)):null});a.displayName="PanelContent";var x=a,y=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],z=_e.forwardRef(function(Bt,At){var tt=Bt.showArrow,Ve=tt===void 0?!0:tt,De=Bt.headerClass,he=Bt.isActive,nt=Bt.onItemClick,wt=Bt.forceRender,Ae=Bt.className,be=Bt.prefixCls,gt=Bt.collapsible,Xe=Bt.accordion,Te=Bt.panelKey,St=Bt.extra,ln=Bt.header,Lt=Bt.expandIcon,Jt=Bt.openMotion,Ut=Bt.destroyInactivePanel,qt=Bt.children,bt=(0,ke.Z)(Bt,y),Yt=gt==="disabled",Fn=gt==="header",kt=gt==="icon",Ft=St!=null&&typeof St!="boolean",In=function(){nt==null||nt(Te)},jn=function(mn){(mn.key==="Enter"||mn.keyCode===E.Z.ENTER||mn.which===E.Z.ENTER)&&In()},Gn=typeof Lt=="function"?Lt(Bt):_e.createElement("i",{className:"arrow"});Gn&&(Gn=_e.createElement("div",{className:"".concat(be,"-expand-icon"),onClick:["header","icon"].includes(gt)?In:void 0},Gn));var na=Ce()((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},"".concat(be,"-item"),!0),"".concat(be,"-item-active"),he),"".concat(be,"-item-disabled"),Yt),Ae),La=Ce()(De,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},"".concat(be,"-header"),!0),"".concat(be,"-header-collapsible-only"),Fn),"".concat(be,"-icon-collapsible-only"),kt)),nn={className:La,"aria-expanded":he,"aria-disabled":Yt,onKeyDown:jn};return!Fn&&!kt&&(nn.onClick=In,nn.role=Xe?"tab":"button",nn.tabIndex=Yt?-1:0),_e.createElement("div",(0,Fe.Z)({},bt,{ref:At,className:na}),_e.createElement("div",nn,Ve&&Gn,_e.createElement("span",{className:"".concat(be,"-header-text"),onClick:gt==="header"?In:void 0},ln),Ft&&_e.createElement("div",{className:"".concat(be,"-extra")},St)),_e.createElement(le.default,(0,Fe.Z)({visible:he,leavedClassName:"".concat(be,"-content-hidden")},Jt,{forceRender:wt,removeOnLeave:Ut}),function($t,mn){var Zn=$t.className,Cn=$t.style;return _e.createElement(x,{ref:mn,prefixCls:be,className:Zn,style:Cn,isActive:he,forceRender:wt,role:Xe?"tabpanel":void 0},qt)}))}),te=z,re=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],ie=function(At,tt){var Ve=tt.prefixCls,De=tt.accordion,he=tt.collapsible,nt=tt.destroyInactivePanel,wt=tt.onItemClick,Ae=tt.activeKey,be=tt.openMotion,gt=tt.expandIcon;return At.map(function(Xe,Te){var St=Xe.children,ln=Xe.label,Lt=Xe.key,Jt=Xe.collapsible,Ut=Xe.onItemClick,qt=Xe.destroyInactivePanel,bt=(0,ke.Z)(Xe,re),Yt=String(Lt!=null?Lt:Te),Fn=Jt!=null?Jt:he,kt=qt!=null?qt:nt,Ft=function(Gn){Fn!=="disabled"&&(wt(Gn),Ut==null||Ut(Gn))},In=!1;return De?In=Ae[0]===Yt:In=Ae.indexOf(Yt)>-1,_e.createElement(te,(0,Fe.Z)({},bt,{prefixCls:Ve,key:Yt,panelKey:Yt,isActive:In,accordion:De,openMotion:be,expandIcon:gt,header:ln,collapsible:Fn,onItemClick:Ft,destroyInactivePanel:kt}),St)})},ce=function(At,tt,Ve){if(!At)return null;var De=Ve.prefixCls,he=Ve.accordion,nt=Ve.collapsible,wt=Ve.destroyInactivePanel,Ae=Ve.onItemClick,be=Ve.activeKey,gt=Ve.openMotion,Xe=Ve.expandIcon,Te=At.key||String(tt),St=At.props,ln=St.header,Lt=St.headerClass,Jt=St.destroyInactivePanel,Ut=St.collapsible,qt=St.onItemClick,bt=!1;he?bt=be[0]===Te:bt=be.indexOf(Te)>-1;var Yt=Ut!=null?Ut:nt,Fn=function(In){Yt!=="disabled"&&(Ae(In),qt==null||qt(In))},kt={key:Te,panelKey:Te,header:ln,headerClass:Lt,isActive:bt,prefixCls:De,destroyInactivePanel:Jt!=null?Jt:wt,openMotion:gt,accordion:he,children:At.props.children,onItemClick:Fn,expandIcon:Xe,collapsible:Yt};return typeof At.type=="string"?At:(Object.keys(kt).forEach(function(Ft){typeof kt[Ft]=="undefined"&&delete kt[Ft]}),_e.cloneElement(At,kt))};function pe(Bt,At,tt){return Array.isArray(Bt)?ie(Bt,tt):(0,je.Z)(At).map(function(Ve,De){return ce(Ve,De,tt)})}var ge=pe,ye=ae(26112);function Ee(Bt){var At=Bt;if(!Array.isArray(At)){var tt=(0,ue.Z)(At);At=tt==="number"||tt==="string"?[At]:[]}return At.map(function(Ve){return String(Ve)})}var we=_e.forwardRef(function(Bt,At){var tt=Bt.prefixCls,Ve=tt===void 0?"rc-collapse":tt,De=Bt.destroyInactivePanel,he=De===void 0?!1:De,nt=Bt.style,wt=Bt.accordion,Ae=Bt.className,be=Bt.children,gt=Bt.collapsible,Xe=Bt.openMotion,Te=Bt.expandIcon,St=Bt.activeKey,ln=Bt.defaultActiveKey,Lt=Bt.onChange,Jt=Bt.items,Ut=Ce()(Ve,Ae),qt=(0,Ze.Z)([],{value:St,onChange:function(jn){return Lt==null?void 0:Lt(jn)},defaultValue:ln,postState:Ee}),bt=(0,Re.Z)(qt,2),Yt=bt[0],Fn=bt[1],kt=function(jn){return Fn(function(){if(wt)return Yt[0]===jn?[]:[jn];var Gn=Yt.indexOf(jn),na=Gn>-1;return na?Yt.filter(function(La){return La!==jn}):[].concat((0,Oe.Z)(Yt),[jn])})};(0,We.ZP)(!be,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var Ft=ge(Jt,be,{prefixCls:Ve,accordion:wt,openMotion:Xe,expandIcon:Te,collapsible:gt,destroyInactivePanel:he,onItemClick:kt,activeKey:Yt});return _e.createElement("div",(0,Fe.Z)({ref:At,className:Ut,style:nt,role:wt?"tablist":void 0},(0,ye.Z)(Bt,{aria:!0,data:!0})),Ft)}),ve=Object.assign(we,{Panel:te}),Je=ve,Ge=ve.Panel,ot=ae(2738),Le=ae(62892),Ue=ae(92343),st=ae(36355),Ke=ae(19716),Ht=_e.forwardRef((Bt,At)=>{const{getPrefixCls:tt}=_e.useContext(st.E_),{prefixCls:Ve,className:De,showArrow:he=!0}=Bt,nt=tt("collapse",Ve),wt=Ce()({[`${nt}-no-arrow`]:!he},De);return _e.createElement(Je.Panel,Object.assign({ref:At},Bt,{prefixCls:nt,className:wt}))}),it=ae(17313),jt=ae(8378),Kt=ae(83116),Qe=ae(37613);const et=Bt=>{const{componentCls:At,contentBg:tt,padding:Ve,headerBg:De,headerPadding:he,collapseHeaderPaddingSM:nt,collapseHeaderPaddingLG:wt,collapsePanelBorderRadius:Ae,lineWidth:be,lineType:gt,colorBorder:Xe,colorText:Te,colorTextHeading:St,colorTextDisabled:ln,fontSize:Lt,fontSizeLG:Jt,lineHeight:Ut,marginSM:qt,paddingSM:bt,paddingLG:Yt,paddingXS:Fn,motionDurationSlow:kt,fontSizeIcon:Ft,contentPadding:In}=Bt,jn=`${be}px ${gt} ${Xe}`;return{[At]:Object.assign(Object.assign({},(0,it.Wf)(Bt)),{backgroundColor:De,border:jn,borderBottom:0,borderRadius:`${Ae}px`,"&-rtl":{direction:"rtl"},[`& > ${At}-item`]:{borderBottom:jn,"&:last-child":{[`
|
|
&,
|
|
& > ${At}-header`]:{borderRadius:`0 0 ${Ae}px ${Ae}px`}},[`> ${At}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:he,color:St,lineHeight:Ut,cursor:"pointer",transition:`all ${kt}, visibility 0s`,[`> ${At}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${At}-expand-icon`]:{height:Lt*Ut,display:"flex",alignItems:"center",paddingInlineEnd:qt},[`${At}-arrow`]:Object.assign(Object.assign({},(0,it.Ro)()),{fontSize:Ft,svg:{transition:`transform ${kt}`}}),[`${At}-header-text`]:{marginInlineEnd:"auto"}},[`${At}-header-collapsible-only`]:{cursor:"default",[`${At}-header-text`]:{flex:"none",cursor:"pointer"}},[`${At}-icon-collapsible-only`]:{cursor:"default",[`${At}-expand-icon`]:{cursor:"pointer"}}},[`${At}-content`]:{color:Te,backgroundColor:tt,borderTop:jn,[`& > ${At}-content-box`]:{padding:In},"&-hidden":{display:"none"}},"&-small":{[`> ${At}-item`]:{[`> ${At}-header`]:{padding:nt,paddingInlineStart:Fn,[`> ${At}-expand-icon`]:{marginInlineStart:bt-Fn}},[`> ${At}-content > ${At}-content-box`]:{padding:bt}}},"&-large":{[`> ${At}-item`]:{fontSize:Jt,[`> ${At}-header`]:{padding:wt,paddingInlineStart:Ve,[`> ${At}-expand-icon`]:{height:Jt*Ut,marginInlineStart:Yt-Ve}},[`> ${At}-content > ${At}-content-box`]:{padding:Yt}}},[`${At}-item:last-child`]:{[`> ${At}-content`]:{borderRadius:`0 0 ${Ae}px ${Ae}px`}},[`& ${At}-item-disabled > ${At}-header`]:{"\n &,\n & > .arrow\n ":{color:ln,cursor:"not-allowed"}},[`&${At}-icon-position-end`]:{[`& > ${At}-item`]:{[`> ${At}-header`]:{[`${At}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:qt}}}}})}},Dt=Bt=>{const{componentCls:At}=Bt,tt=`> ${At}-item > ${At}-header ${At}-arrow svg`;return{[`${At}-rtl`]:{[tt]:{transform:"rotate(180deg)"}}}},tn=Bt=>{const{componentCls:At,headerBg:tt,paddingXXS:Ve,colorBorder:De}=Bt;return{[`${At}-borderless`]:{backgroundColor:tt,border:0,[`> ${At}-item`]:{borderBottom:`1px solid ${De}`},[`
|
|
> ${At}-item:last-child,
|
|
> ${At}-item:last-child ${At}-header
|
|
`]:{borderRadius:0},[`> ${At}-item:last-child`]:{borderBottom:0},[`> ${At}-item > ${At}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${At}-item > ${At}-content > ${At}-content-box`]:{paddingTop:Ve}}}},Et=Bt=>{const{componentCls:At,paddingSM:tt}=Bt;return{[`${At}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${At}-item`]:{borderBottom:0,[`> ${At}-content`]:{backgroundColor:"transparent",border:0,[`> ${At}-content-box`]:{paddingBlock:tt}}}}}};var Vt=(0,Kt.Z)("Collapse",Bt=>{const At=(0,Qe.TS)(Bt,{collapseHeaderPaddingSM:`${Bt.paddingXS}px ${Bt.paddingSM}px`,collapseHeaderPaddingLG:`${Bt.padding}px ${Bt.paddingLG}px`,collapsePanelBorderRadius:Bt.borderRadiusLG});return[et(At),tn(At),Et(At),Dt(At),(0,jt.Z)(At)]},Bt=>({headerPadding:`${Bt.paddingSM}px ${Bt.padding}px`,headerBg:Bt.colorFillAlter,contentPadding:`${Bt.padding}px 16px`,contentBg:Bt.colorBgContainer})),Gt=Object.assign(_e.forwardRef((Bt,At)=>{const{getPrefixCls:tt,direction:Ve,collapse:De}=_e.useContext(st.E_),{prefixCls:he,className:nt,rootClassName:wt,style:Ae,bordered:be=!0,ghost:gt,size:Xe,expandIconPosition:Te="start",children:St,expandIcon:ln}=Bt,Lt=(0,Ke.Z)(jn=>{var Gn;return(Gn=Xe!=null?Xe:jn)!==null&&Gn!==void 0?Gn:"middle"}),Jt=tt("collapse",he),Ut=tt(),[qt,bt]=Vt(Jt),Yt=_e.useMemo(()=>Te==="left"?"start":Te==="right"?"end":Te,[Te]),Fn=function(){let jn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const Gn=ln?ln(jn):_e.createElement(b.Z,{rotate:jn.isActive?90:void 0});return(0,Ue.Tm)(Gn,()=>({className:Ce()(Gn.props.className,`${Jt}-arrow`)}))},kt=Ce()(`${Jt}-icon-position-${Yt}`,{[`${Jt}-borderless`]:!be,[`${Jt}-rtl`]:Ve==="rtl",[`${Jt}-ghost`]:!!gt,[`${Jt}-${Lt}`]:Lt!=="middle"},De==null?void 0:De.className,nt,wt,bt),Ft=Object.assign(Object.assign({},(0,Le.Z)(Ut)),{motionAppear:!1,leavedClassName:`${Jt}-content-hidden`}),In=_e.useMemo(()=>St?(0,je.Z)(St).map((jn,Gn)=>{var na,La;if(!((na=jn.props)===null||na===void 0)&&na.disabled){const nn=(La=jn.key)!==null&&La!==void 0?La:String(Gn),{disabled:$t,collapsible:mn}=jn.props,Zn=Object.assign(Object.assign({},(0,ot.Z)(jn.props,["disabled"])),{key:nn,collapsible:mn!=null?mn:$t?"disabled":void 0});return(0,Ue.Tm)(jn,Zn)}return jn}):null,[St]);return qt(_e.createElement(Je,Object.assign({ref:At,openMotion:Ft},(0,ot.Z)(Bt,["rootClassName"]),{expandIcon:Fn,prefixCls:Jt,className:kt,style:Object.assign(Object.assign({},De==null?void 0:De.style),Ae)}),In))}),{Panel:Ht}),bn=Gt},28103:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return je}});var b=ae(92310),se=ae.n(b),Ce=ae(59301),Fe=ae(36355),Oe=ae(17313),Re=ae(83116),ue=ae(37613);const Ze=Ie=>{const{componentCls:le,sizePaddingEdgeHorizontal:E,colorSplit:a,lineWidth:x,textPaddingInline:y,orientationMargin:z,verticalMarginInline:te}=Ie;return{[le]:Object.assign(Object.assign({},(0,Oe.Wf)(Ie)),{borderBlockStart:`${x}px solid ${a}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:te,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${x}px solid ${a}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Ie.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${le}-with-text`]:{display:"flex",alignItems:"center",margin:`${Ie.dividerHorizontalWithTextGutterMargin}px 0`,color:Ie.colorTextHeading,fontWeight:500,fontSize:Ie.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${a}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${x}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${le}-with-text-left`]:{"&::before":{width:`${z*100}%`},"&::after":{width:`${100-z*100}%`}},[`&-horizontal${le}-with-text-right`]:{"&::before":{width:`${100-z*100}%`},"&::after":{width:`${z*100}%`}},[`${le}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:y},"&-dashed":{background:"none",borderColor:a,borderStyle:"dashed",borderWidth:`${x}px 0 0`},[`&-horizontal${le}-with-text${le}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${le}-dashed`]:{borderInlineStartWidth:x,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${le}-with-text`]:{color:Ie.colorText,fontWeight:"normal",fontSize:Ie.fontSize},[`&-horizontal${le}-with-text-left${le}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${le}-inner-text`]:{paddingInlineStart:E}},[`&-horizontal${le}-with-text-right${le}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${le}-inner-text`]:{paddingInlineEnd:E}}})}};var We=(0,Re.Z)("Divider",Ie=>{const le=(0,ue.TS)(Ie,{dividerHorizontalWithTextGutterMargin:Ie.margin,dividerHorizontalGutterMargin:Ie.marginLG,sizePaddingEdgeHorizontal:0});return[Ze(le)]},Ie=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Ie.marginXS})),_e=function(Ie,le){var E={};for(var a in Ie)Object.prototype.hasOwnProperty.call(Ie,a)&&le.indexOf(a)<0&&(E[a]=Ie[a]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,a=Object.getOwnPropertySymbols(Ie);x<a.length;x++)le.indexOf(a[x])<0&&Object.prototype.propertyIsEnumerable.call(Ie,a[x])&&(E[a[x]]=Ie[a[x]]);return E},je=Ie=>{const{getPrefixCls:le,direction:E,divider:a}=Ce.useContext(Fe.E_),{prefixCls:x,type:y="horizontal",orientation:z="center",orientationMargin:te,className:re,rootClassName:ie,children:ce,dashed:pe,plain:ge,style:ye}=Ie,Ee=_e(Ie,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),we=le("divider",x),[ve,Je]=We(we),Ge=z.length>0?`-${z}`:z,ot=!!ce,Le=z==="left"&&te!=null,Ue=z==="right"&&te!=null,st=se()(we,a==null?void 0:a.className,Je,`${we}-${y}`,{[`${we}-with-text`]:ot,[`${we}-with-text${Ge}`]:ot,[`${we}-dashed`]:!!pe,[`${we}-plain`]:!!ge,[`${we}-rtl`]:E==="rtl",[`${we}-no-default-orientation-margin-left`]:Le,[`${we}-no-default-orientation-margin-right`]:Ue},re,ie),Ke=Ce.useMemo(()=>typeof te=="number"?te:/^\d+$/.test(te)?Number(te):te,[te]),rt=Object.assign(Object.assign({},Le&&{marginLeft:Ke}),Ue&&{marginRight:Ke});return ve(Ce.createElement("div",Object.assign({className:st,style:Object.assign(Object.assign({},a==null?void 0:a.style),ye)},Ee,{role:"separator"}),ce&&y!=="vertical"&&Ce.createElement("span",{className:`${we}-inner-text`,style:rt},ce)))}},91857:function(Ot,Rt,ae){"use strict";var b=ae(59301),se=ae(38819),Ce=ae(92310),Fe=ae.n(Ce),Oe=ae(31561),Re=ae(70425),ue=ae(18929),Ze=ae(2738),We=ae(79676),_e=ae(53487),ke=ae(92343),je=ae(36355),Ie=ae(20834),le=ae(40875),E=ae(88088),a=ae(47211);const x=null,y=ie=>{const{menu:ce,arrow:pe,prefixCls:ge,children:ye,trigger:Ee,disabled:we,dropdownRender:ve,getPopupContainer:Je,overlayClassName:Ge,rootClassName:ot,open:Le,onOpenChange:Ue,visible:st,onVisibleChange:Ke,mouseEnterDelay:rt=.15,mouseLeaveDelay:Ht=.1,autoAdjustOverflow:it=!0,placement:jt="",overlay:Kt,transitionName:Qe}=ie,{getPopupContainer:et,getPrefixCls:Dt,direction:tn}=b.useContext(je.E_),Et=b.useMemo(()=>{const Te=Dt();return Qe!==void 0?Qe:jt.includes("top")?`${Te}-slide-down`:`${Te}-slide-up`},[Dt,jt,Qe]),Vt=b.useMemo(()=>jt?jt.includes("Center")?jt.slice(0,jt.indexOf("Center")):jt:tn==="rtl"?"bottomRight":"bottomLeft",[jt,tn]),Be=Dt("dropdown",ge),[Gt,bn]=(0,a.Z)(Be),[,Bt]=(0,E.Z)(),At=b.Children.only(ye),tt=(0,ke.Tm)(At,{className:Fe()(`${Be}-trigger`,{[`${Be}-rtl`]:tn==="rtl"},At.props.className),disabled:we}),Ve=we?[]:Ee;let De;Ve&&Ve.includes("contextMenu")&&(De=!0);const[he,nt]=(0,ue.Z)(!1,{value:Le!=null?Le:st}),wt=(0,Re.useEvent)(Te=>{Ue==null||Ue(Te),Ke==null||Ke(Te),nt(Te)}),Ae=Fe()(Ge,ot,bn,{[`${Be}-rtl`]:tn==="rtl"}),be=(0,We.Z)({arrowPointAtCenter:typeof pe=="object"&&pe.pointAtCenter,autoAdjustOverflow:it,offset:Bt.marginXXS,arrowWidth:pe?Bt.sizePopupArrow:0,borderRadius:Bt.borderRadius}),gt=b.useCallback(()=>{nt(!1)},[]),Xe=()=>{let Te;return ce!=null&&ce.items?Te=b.createElement(Ie.default,Object.assign({},ce)):typeof Kt=="function"?Te=Kt():Te=Kt,ve&&(Te=ve(Te)),Te=b.Children.only(typeof Te=="string"?b.createElement("span",null,Te):Te),b.createElement(le.J,{prefixCls:`${Be}-menu`,expandIcon:b.createElement("span",{className:`${Be}-menu-submenu-arrow`},b.createElement(se.Z,{className:`${Be}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:gt,validator:St=>{let{mode:ln}=St}},Te)};return Gt(b.createElement(Oe.Z,Object.assign({alignPoint:De},(0,Ze.Z)(ie,["rootClassName"]),{mouseEnterDelay:rt,mouseLeaveDelay:Ht,visible:he,builtinPlacements:be,arrow:!!pe,overlayClassName:Ae,prefixCls:Be,getPopupContainer:Je||et,transitionName:Et,trigger:Ve,overlay:Xe,placement:Vt,onVisibleChange:wt}),tt))};function z(ie){return Object.assign(Object.assign({},ie),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const te=(0,_e.Z)(y,"dropdown",ie=>ie,z),re=ie=>b.createElement(te,Object.assign({},ie),b.createElement("span",null));y._InternalPanelDoNotUseOrYouWillBeFired=re,Rt.Z=y},38854:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return E}});var b=ae(91857),se=ae(92310),Ce=ae.n(se),Fe=ae(59301),Oe=ae(18785),Re=ae(3113),ue=ae(36355),Ze=ae(81327),We=ae(33234),_e=ae(47211),ke=function(a,x){var y={};for(var z in a)Object.prototype.hasOwnProperty.call(a,z)&&x.indexOf(z)<0&&(y[z]=a[z]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var te=0,z=Object.getOwnPropertySymbols(a);te<z.length;te++)x.indexOf(z[te])<0&&Object.prototype.propertyIsEnumerable.call(a,z[te])&&(y[z[te]]=a[z[te]]);return y};const je=a=>{const{getPopupContainer:x,getPrefixCls:y,direction:z}=Fe.useContext(ue.E_),{prefixCls:te,type:re="default",danger:ie,disabled:ce,loading:pe,onClick:ge,htmlType:ye,children:Ee,className:we,menu:ve,arrow:Je,autoFocus:Ge,overlay:ot,trigger:Le,align:Ue,open:st,onOpenChange:Ke,placement:rt,getPopupContainer:Ht,href:it,icon:jt=Fe.createElement(Oe.Z,null),title:Kt,buttonsRender:Qe=Xe=>Xe,mouseEnterDelay:et,mouseLeaveDelay:Dt,overlayClassName:tn,overlayStyle:Et,destroyPopupOnHide:Vt,dropdownRender:Be}=a,Gt=ke(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"]),bn=y("dropdown",te),Bt=`${bn}-button`,[At,tt]=(0,_e.Z)(bn),Ve={menu:ve,arrow:Je,autoFocus:Ge,align:Ue,disabled:ce,trigger:ce?[]:Le,onOpenChange:Ke,getPopupContainer:Ht||x,mouseEnterDelay:et,mouseLeaveDelay:Dt,overlayClassName:tn,overlayStyle:Et,destroyPopupOnHide:Vt,dropdownRender:Be},{compactSize:De,compactItemClassnames:he}=(0,We.ri)(bn,z),nt=Ce()(Bt,he,we,tt);"overlay"in a&&(Ve.overlay=ot),"open"in a&&(Ve.open=st),"placement"in a?Ve.placement=rt:Ve.placement=z==="rtl"?"bottomLeft":"bottomRight";const wt=Fe.createElement(Re.ZP,{type:re,danger:ie,disabled:ce,loading:pe,onClick:ge,htmlType:ye,href:it,title:Kt},Ee),Ae=Fe.createElement(Re.ZP,{type:re,danger:ie,icon:jt}),[be,gt]=Qe([wt,Ae]);return At(Fe.createElement(Ze.Z.Compact,Object.assign({className:nt,size:De,block:!0},Gt),be,Fe.createElement(b.Z,Object.assign({},Ve),gt)))};je.__ANT_BUTTON=!0;var Ie=je;const le=b.Z;le.Button=Ie;var E=le},47211:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return ke}});var b=ae(17313),se=ae(13826),Ce=ae(92899),Fe=ae(29878),Oe=ae(19447),Re=ae(83116),ue=ae(37613),We=je=>{const{componentCls:Ie,menuCls:le,colorError:E,colorTextLightSolid:a}=je,x=`${le}-item`;return{[`${Ie}, ${Ie}-menu-submenu`]:{[`${le} ${x}`]:{[`&${x}-danger:not(${x}-disabled)`]:{color:E,"&:hover":{color:a,backgroundColor:E}}}}}};const _e=je=>{const{componentCls:Ie,menuCls:le,zIndexPopup:E,dropdownArrowDistance:a,sizePopupArrow:x,antCls:y,iconCls:z,motionDurationMid:te,dropdownPaddingVertical:re,fontSize:ie,dropdownEdgeChildPadding:ce,colorTextDisabled:pe,fontSizeIcon:ge,controlPaddingHorizontal:ye,colorBgElevated:Ee}=je;return[{[Ie]:Object.assign(Object.assign({},(0,b.Wf)(je)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:E,display:"block","&::before":{position:"absolute",insetBlock:-a+x/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${y}-btn`]:{[`& > ${z}-down, & > ${y}-btn-icon > ${z}-down`]:{fontSize:ge}},[`${Ie}-wrap`]:{position:"relative",[`${y}-btn > ${z}-down`]:{fontSize:ge},[`${z}-down::before`]:{transition:`transform ${te}`}},[`${Ie}-wrap-open`]:{[`${z}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${y}-slide-down-enter${y}-slide-down-enter-active${Ie}-placement-bottomLeft,
|
|
&${y}-slide-down-appear${y}-slide-down-appear-active${Ie}-placement-bottomLeft,
|
|
&${y}-slide-down-enter${y}-slide-down-enter-active${Ie}-placement-bottom,
|
|
&${y}-slide-down-appear${y}-slide-down-appear-active${Ie}-placement-bottom,
|
|
&${y}-slide-down-enter${y}-slide-down-enter-active${Ie}-placement-bottomRight,
|
|
&${y}-slide-down-appear${y}-slide-down-appear-active${Ie}-placement-bottomRight`]:{animationName:se.fJ},[`&${y}-slide-up-enter${y}-slide-up-enter-active${Ie}-placement-topLeft,
|
|
&${y}-slide-up-appear${y}-slide-up-appear-active${Ie}-placement-topLeft,
|
|
&${y}-slide-up-enter${y}-slide-up-enter-active${Ie}-placement-top,
|
|
&${y}-slide-up-appear${y}-slide-up-appear-active${Ie}-placement-top,
|
|
&${y}-slide-up-enter${y}-slide-up-enter-active${Ie}-placement-topRight,
|
|
&${y}-slide-up-appear${y}-slide-up-appear-active${Ie}-placement-topRight`]:{animationName:se.Qt},[`&${y}-slide-down-leave${y}-slide-down-leave-active${Ie}-placement-bottomLeft,
|
|
&${y}-slide-down-leave${y}-slide-down-leave-active${Ie}-placement-bottom,
|
|
&${y}-slide-down-leave${y}-slide-down-leave-active${Ie}-placement-bottomRight`]:{animationName:se.Uw},[`&${y}-slide-up-leave${y}-slide-up-leave-active${Ie}-placement-topLeft,
|
|
&${y}-slide-up-leave${y}-slide-up-leave-active${Ie}-placement-top,
|
|
&${y}-slide-up-leave${y}-slide-up-leave-active${Ie}-placement-topRight`]:{animationName:se.ly}})},(0,Oe.ZP)(je,{colorBg:Ee,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Ie} ${le}`]:{position:"relative",margin:0},[`${le}-submenu-popup`]:{position:"absolute",zIndex:E,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ie}, ${Ie}-menu-submenu`]:{[le]:Object.assign(Object.assign({padding:ce,listStyleType:"none",backgroundColor:Ee,backgroundClip:"padding-box",borderRadius:je.borderRadiusLG,outline:"none",boxShadow:je.boxShadowSecondary},(0,b.Qy)(je)),{[`${le}-item-group-title`]:{padding:`${re}px ${ye}px`,color:je.colorTextDescription,transition:`all ${te}`},[`${le}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${le}-item-icon`]:{minWidth:ie,marginInlineEnd:je.marginXS,fontSize:je.fontSizeSM},[`${le}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${te}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${le}-item, ${le}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${re}px ${ye}px`,color:je.colorText,fontWeight:"normal",fontSize:ie,lineHeight:je.lineHeight,cursor:"pointer",transition:`all ${te}`,borderRadius:je.borderRadiusSM,"&:hover, &-active":{backgroundColor:je.controlItemBgHover}},(0,b.Qy)(je)),{"&-selected":{color:je.colorPrimary,backgroundColor:je.controlItemBgActive,"&:hover, &-active":{backgroundColor:je.controlItemBgActiveHover}},"&-disabled":{color:pe,cursor:"not-allowed","&:hover":{color:pe,backgroundColor:Ee,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${je.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:je.colorSplit},[`${Ie}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:je.paddingXS,[`${Ie}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:je.colorTextDescription,fontSize:ge,fontStyle:"normal"}}}),[`${le}-item-group-list`]:{margin:`0 ${je.marginXS}px`,padding:0,listStyle:"none"},[`${le}-submenu-title`]:{paddingInlineEnd:ye+je.fontSizeSM},[`${le}-submenu-vertical`]:{position:"relative"},[`${le}-submenu${le}-submenu-disabled ${Ie}-menu-submenu-title`]:{[`&, ${Ie}-menu-submenu-arrow-icon`]:{color:pe,backgroundColor:Ee,cursor:"not-allowed"}},[`${le}-submenu-selected ${Ie}-menu-submenu-title`]:{color:je.colorPrimary}})}},[(0,se.oN)(je,"slide-up"),(0,se.oN)(je,"slide-down"),(0,Ce.Fm)(je,"move-up"),(0,Ce.Fm)(je,"move-down"),(0,Fe._y)(je,"zoom-big")]]};var ke=(0,Re.Z)("Dropdown",(je,Ie)=>{let{rootPrefixCls:le}=Ie;const{marginXXS:E,sizePopupArrow:a,controlHeight:x,fontSize:y,lineHeight:z,paddingXXS:te,componentCls:re,borderRadiusLG:ie}=je,ce=(x-y*z)/2,{dropdownArrowOffset:pe}=(0,Oe.fS)({contentRadius:ie}),ge=(0,ue.TS)(je,{menuCls:`${re}-menu`,rootPrefixCls:le,dropdownArrowDistance:a/2+E,dropdownArrowOffset:pe,dropdownPaddingVertical:ce,dropdownEdgeChildPadding:te});return[_e(ge),We(ge)]},je=>({zIndexPopup:je.zIndexPopupBase+50}))},8628:function(Ot,Rt,ae){"use strict";var b=ae(59301),se=ae(34280),Ce=ae(56762),Fe=ae(69507);function Oe(){let Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ue=(0,b.useRef)({}),Ze=(0,Ce.Z)(),We=(0,Fe.ZP)();return(0,se.Z)(()=>{const _e=We.subscribe(ke=>{ue.current=ke,Re&&Ze()});return()=>We.unsubscribe(_e)},[]),ue.current}Rt.Z=Oe},45818:function(Ot,Rt,ae){"use strict";ae.d(Rt,{D:function(){return te},Z:function(){return ce}});var b=ae(54476),se=ae(59301),Ce={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"},Fe=Ce,Oe=ae(7657),Re=function(ge,ye){return se.createElement(Oe.Z,(0,b.Z)({},ge,{ref:ye,icon:Fe}))},ue=se.forwardRef(Re),Ze=ue,We=ae(33853),_e=ae(38819),ke=ae(92310),je=ae.n(ke),Ie=ae(2738),E=pe=>!isNaN(parseFloat(pe))&&isFinite(pe),a=ae(36355),x=ae(84966),y=function(pe,ge){var ye={};for(var Ee in pe)Object.prototype.hasOwnProperty.call(pe,Ee)&&ge.indexOf(Ee)<0&&(ye[Ee]=pe[Ee]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,Ee=Object.getOwnPropertySymbols(pe);we<Ee.length;we++)ge.indexOf(Ee[we])<0&&Object.prototype.propertyIsEnumerable.call(pe,Ee[we])&&(ye[Ee[we]]=pe[Ee[we]]);return ye};const z={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},te=se.createContext({}),re=(()=>{let pe=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return pe+=1,`${ge}${pe}`}})();var ce=se.forwardRef((pe,ge)=>{const{prefixCls:ye,className:Ee,trigger:we,children:ve,defaultCollapsed:Je=!1,theme:Ge="dark",style:ot={},collapsible:Le=!1,reverseArrow:Ue=!1,width:st=200,collapsedWidth:Ke=80,zeroWidthTriggerStyle:rt,breakpoint:Ht,onCollapse:it,onBreakpoint:jt}=pe,Kt=y(pe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Qe}=(0,se.useContext)(x.Gs),[et,Dt]=(0,se.useState)("collapsed"in pe?pe.collapsed:Je),[tn,Et]=(0,se.useState)(!1);(0,se.useEffect)(()=>{"collapsed"in pe&&Dt(pe.collapsed)},[pe.collapsed]);const Vt=(tt,Ve)=>{"collapsed"in pe||Dt(tt),it==null||it(tt,Ve)},Be=(0,se.useRef)();Be.current=tt=>{Et(tt.matches),jt==null||jt(tt.matches),et!==tt.matches&&Vt(tt.matches,"responsive")},(0,se.useEffect)(()=>{function tt(De){return Be.current(De)}let Ve;if(typeof window!="undefined"){const{matchMedia:De}=window;if(De&&Ht&&Ht in z){Ve=De(`(max-width: ${z[Ht]})`);try{Ve.addEventListener("change",tt)}catch(he){Ve.addListener(tt)}tt(Ve)}}return()=>{try{Ve==null||Ve.removeEventListener("change",tt)}catch(De){Ve==null||Ve.removeListener(tt)}}},[Ht]),(0,se.useEffect)(()=>{const tt=re("ant-sider-");return Qe.addSider(tt),()=>Qe.removeSider(tt)},[]);const Gt=()=>{Vt(!et,"clickTrigger")},{getPrefixCls:bn}=(0,se.useContext)(a.E_),Bt=()=>{const tt=bn("layout-sider",ye),Ve=(0,Ie.Z)(Kt,["collapsed"]),De=et?Ke:st,he=E(De)?`${De}px`:String(De),nt=parseFloat(String(Ke||0))===0?se.createElement("span",{onClick:Gt,className:je()(`${tt}-zero-width-trigger`,`${tt}-zero-width-trigger-${Ue?"right":"left"}`),style:rt},we||se.createElement(Ze,null)):null,be={expanded:Ue?se.createElement(_e.Z,null):se.createElement(We.Z,null),collapsed:Ue?se.createElement(We.Z,null):se.createElement(_e.Z,null)}[et?"collapsed":"expanded"],gt=we!==null?nt||se.createElement("div",{className:`${tt}-trigger`,onClick:Gt,style:{width:he}},we||be):null,Xe=Object.assign(Object.assign({},ot),{flex:`0 0 ${he}`,maxWidth:he,minWidth:he,width:he}),Te=je()(tt,`${tt}-${Ge}`,{[`${tt}-collapsed`]:!!et,[`${tt}-has-trigger`]:Le&&we!==null&&!nt,[`${tt}-below`]:!!tn,[`${tt}-zero-width`]:parseFloat(he)===0},Ee);return se.createElement("aside",Object.assign({className:Te},Ve,{style:Xe,ref:ge}),se.createElement("div",{className:`${tt}-children`},ve),Le||tn&&nt?gt:null)},At=se.useMemo(()=>({siderCollapsed:et}),[et]);return se.createElement(te.Provider,{value:At},Bt())})},84966:function(Ot,Rt,ae){"use strict";ae.d(Rt,{VY:function(){return te},$_:function(){return z},h4:function(){return y},Gs:function(){return Ie},ZP:function(){return re}});var b=ae(94480),se=ae(92310),Ce=ae.n(se),Fe=ae(2738),Oe=ae(59301),Re=ae(36355),ue=ae(83116),We=ie=>{const{componentCls:ce,bodyBg:pe,lightSiderBg:ge,lightTriggerBg:ye,lightTriggerColor:Ee}=ie;return{[`${ce}-sider-light`]:{background:ge,[`${ce}-sider-trigger`]:{color:Ee,background:ye},[`${ce}-sider-zero-width-trigger`]:{color:Ee,background:ye,border:`1px solid ${pe}`,borderInlineStart:0}}}};const _e=ie=>{const{antCls:ce,componentCls:pe,colorText:ge,triggerColor:ye,footerBg:Ee,triggerBg:we,headerHeight:ve,headerPadding:Je,headerColor:Ge,footerPadding:ot,triggerHeight:Le,zeroTriggerHeight:Ue,zeroTriggerWidth:st,motionDurationMid:Ke,motionDurationSlow:rt,fontSize:Ht,borderRadius:it,bodyBg:jt,headerBg:Kt,siderBg:Qe}=ie;return{[pe]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:jt,"&, *":{boxSizing:"border-box"},[`&${pe}-has-sider`]:{flexDirection:"row",[`> ${pe}, > ${pe}-content`]:{width:0}},[`${pe}-header, &${pe}-footer`]:{flex:"0 0 auto"},[`${pe}-sider`]:{position:"relative",minWidth:0,background:Qe,transition:`all ${Ke}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ce}-menu${ce}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Le},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Le,color:ye,lineHeight:`${Le}px`,textAlign:"center",background:we,cursor:"pointer",transition:`all ${Ke}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:ve,insetInlineEnd:-st,zIndex:1,width:st,height:Ue,color:ye,fontSize:ie.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Qe,borderStartStartRadius:0,borderStartEndRadius:it,borderEndEndRadius:it,borderEndStartRadius:0,cursor:"pointer",transition:`background ${rt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${rt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-st,borderStartStartRadius:it,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:it}}}}},We(ie)),{"&-rtl":{direction:"rtl"}}),[`${pe}-header`]:{height:ve,padding:Je,color:Ge,lineHeight:`${ve}px`,background:Kt,[`${ce}-menu`]:{lineHeight:"inherit"}},[`${pe}-footer`]:{padding:ot,color:ge,fontSize:Ht,background:Ee},[`${pe}-content`]:{flex:"auto",minHeight:0}}};var ke=(0,ue.Z)("Layout",ie=>[_e(ie)],ie=>{const{colorBgLayout:ce,controlHeight:pe,controlHeightLG:ge,colorText:ye,controlHeightSM:Ee,marginXXS:we,colorTextLightSolid:ve,colorBgContainer:Je}=ie,Ge=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:ce,colorBgTrigger:"#002140",bodyBg:ce,headerBg:"#001529",headerHeight:pe*2,headerPadding:`0 ${Ge}px`,headerColor:ye,footerPadding:`${Ee}px ${Ge}px`,footerBg:ce,siderBg:"#001529",triggerHeight:ge+we*2,triggerBg:"#002140",triggerColor:ve,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:Je,lightTriggerBg:Je,lightTriggerColor:ye}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),je=function(ie,ce){var pe={};for(var ge in ie)Object.prototype.hasOwnProperty.call(ie,ge)&&ce.indexOf(ge)<0&&(pe[ge]=ie[ge]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,ge=Object.getOwnPropertySymbols(ie);ye<ge.length;ye++)ce.indexOf(ge[ye])<0&&Object.prototype.propertyIsEnumerable.call(ie,ge[ye])&&(pe[ge[ye]]=ie[ge[ye]]);return pe};const Ie=Oe.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function le(ie){let{suffixCls:ce,tagName:pe,displayName:ge}=ie;return ye=>Oe.forwardRef((we,ve)=>Oe.createElement(ye,Object.assign({ref:ve,suffixCls:ce,tagName:pe},we)))}const E=Oe.forwardRef((ie,ce)=>{const{prefixCls:pe,suffixCls:ge,className:ye,tagName:Ee}=ie,we=je(ie,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ve}=Oe.useContext(Re.E_),Je=ve("layout",pe),[Ge,ot]=ke(Je),Le=ge?`${Je}-${ge}`:Je;return Ge(Oe.createElement(Ee,Object.assign({className:Ce()(pe||Le,ye,ot),ref:ce},we)))}),a=Oe.forwardRef((ie,ce)=>{const{direction:pe}=Oe.useContext(Re.E_),[ge,ye]=Oe.useState([]),{prefixCls:Ee,className:we,rootClassName:ve,children:Je,hasSider:Ge,tagName:ot,style:Le}=ie,Ue=je(ie,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),st=(0,Fe.Z)(Ue,["suffixCls"]),{getPrefixCls:Ke,layout:rt}=Oe.useContext(Re.E_),Ht=Ke("layout",Ee),[it,jt]=ke(Ht),Kt=Ce()(Ht,{[`${Ht}-has-sider`]:typeof Ge=="boolean"?Ge:ge.length>0,[`${Ht}-rtl`]:pe==="rtl"},rt==null?void 0:rt.className,we,ve,jt),Qe=Oe.useMemo(()=>({siderHook:{addSider:et=>{ye(Dt=>[].concat((0,b.Z)(Dt),[et]))},removeSider:et=>{ye(Dt=>Dt.filter(tn=>tn!==et))}}}),[]);return it(Oe.createElement(Ie.Provider,{value:Qe},Oe.createElement(ot,Object.assign({ref:ce,className:Kt,style:Object.assign(Object.assign({},rt==null?void 0:rt.style),Le)},st),Je)))}),x=le({tagName:"div",displayName:"Layout"})(a),y=le({suffixCls:"header",tagName:"header",displayName:"Header"})(E),z=le({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(E),te=le({suffixCls:"content",tagName:"main",displayName:"Content"})(E);var re=x},40875:function(Ot,Rt,ae){"use strict";ae.d(Rt,{J:function(){return Re}});var b=ae(59301),se=ae(33234),Ce=ae(70425),Fe=function(ue,Ze){var We={};for(var _e in ue)Object.prototype.hasOwnProperty.call(ue,_e)&&Ze.indexOf(_e)<0&&(We[_e]=ue[_e]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,_e=Object.getOwnPropertySymbols(ue);ke<_e.length;ke++)Ze.indexOf(_e[ke])<0&&Object.prototype.propertyIsEnumerable.call(ue,_e[ke])&&(We[_e[ke]]=ue[_e[ke]]);return We};const Oe=b.createContext(null),Re=b.forwardRef((ue,Ze)=>{const{children:We}=ue,_e=Fe(ue,["children"]),ke=b.useContext(Oe),je=b.useMemo(()=>Object.assign(Object.assign({},ke),_e),[ke,_e.prefixCls,_e.mode,_e.selectable]);return b.createElement(Oe.Provider,{value:je},b.createElement(se.BR,null,(0,Ce.supportNodeRef)(We)?b.cloneElement(We,{ref:Ze}):We))});Rt.Z=Oe},20834:function(Ot,Rt,ae){"use strict";ae.d(Rt,{default:function(){return At}});var b=ae(15285),se=ae(59301),Ce=ae(45818),Fe=ae(92310),Oe=ae.n(Fe),Re=ae(36355),ue=function(tt,Ve){var De={};for(var he in tt)Object.prototype.hasOwnProperty.call(tt,he)&&Ve.indexOf(he)<0&&(De[he]=tt[he]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,he=Object.getOwnPropertySymbols(tt);nt<he.length;nt++)Ve.indexOf(he[nt])<0&&Object.prototype.propertyIsEnumerable.call(tt,he[nt])&&(De[he[nt]]=tt[he[nt]]);return De},We=tt=>{const{prefixCls:Ve,className:De,dashed:he}=tt,nt=ue(tt,["prefixCls","className","dashed"]),{getPrefixCls:wt}=se.useContext(Re.E_),Ae=wt("menu",Ve),be=Oe()({[`${Ae}-item-divider-dashed`]:!!he},De);return se.createElement(b.iz,Object.assign({className:be},nt))},_e=ae(11592),ke=ae(2738),je=ae(6848),Ie=ae(92343),E=(0,se.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=tt=>{var Ve;const{className:De,children:he,icon:nt,title:wt,danger:Ae}=tt,{prefixCls:be,firstLevel:gt,direction:Xe,disableMenuItemTitleTooltip:Te,inlineCollapsed:St}=se.useContext(E),ln=Yt=>{const Fn=se.createElement("span",{className:`${be}-title-content`},he);return(!nt||(0,Ie.l$)(he)&&he.type==="span")&&he&&Yt&>&&typeof he=="string"?se.createElement("div",{className:`${be}-inline-collapsed-noicon`},he.charAt(0)):Fn},{siderCollapsed:Lt}=se.useContext(Ce.D);let Jt=wt;typeof wt=="undefined"?Jt=gt?he:"":wt===!1&&(Jt="");const Ut={title:Jt};!Lt&&!St&&(Ut.title=null,Ut.open=!1);const qt=(0,_e.Z)(he).length;let bt=se.createElement(b.ck,Object.assign({},(0,ke.Z)(tt,["title","icon","danger"]),{className:Oe()({[`${be}-item-danger`]:Ae,[`${be}-item-only-child`]:(nt?qt+1:qt)===1},De),title:typeof wt=="string"?wt:void 0}),(0,Ie.Tm)(nt,{className:Oe()((0,Ie.l$)(nt)?(Ve=nt.props)===null||Ve===void 0?void 0:Ve.className:"",`${be}-item-icon`)}),ln(St));return Te||(bt=se.createElement(je.Z,Object.assign({},Ut,{placement:Xe==="rtl"?"left":"right",overlayClassName:`${be}-inline-collapsed-tooltip`}),bt)),bt},z=tt=>{var Ve;const{popupClassName:De,icon:he,title:nt,theme:wt}=tt,Ae=se.useContext(E),{prefixCls:be,inlineCollapsed:gt,theme:Xe}=Ae,Te=(0,b.Xl)();let St;if(!he)St=gt&&!Te.length&&nt&&typeof nt=="string"?se.createElement("div",{className:`${be}-inline-collapsed-noicon`},nt.charAt(0)):se.createElement("span",{className:`${be}-title-content`},nt);else{const Lt=(0,Ie.l$)(nt)&&nt.type==="span";St=se.createElement(se.Fragment,null,(0,Ie.Tm)(he,{className:Oe()((0,Ie.l$)(he)?(Ve=he.props)===null||Ve===void 0?void 0:Ve.className:"",`${be}-item-icon`)}),Lt?nt:se.createElement("span",{className:`${be}-title-content`},nt))}const ln=se.useMemo(()=>Object.assign(Object.assign({},Ae),{firstLevel:!1}),[Ae]);return se.createElement(E.Provider,{value:ln},se.createElement(b.Wd,Object.assign({},(0,ke.Z)(tt,["icon"]),{title:St,popupClassName:Oe()(be,De,`${be}-${wt||Xe}`)})))},te=ae(18785),re=ae(70425),ie=ae(62892),ce=ae(40875),pe=function(tt,Ve){var De={};for(var he in tt)Object.prototype.hasOwnProperty.call(tt,he)&&Ve.indexOf(he)<0&&(De[he]=tt[he]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,he=Object.getOwnPropertySymbols(tt);nt<he.length;nt++)Ve.indexOf(he[nt])<0&&Object.prototype.propertyIsEnumerable.call(tt,he[nt])&&(De[he[nt]]=tt[he[nt]]);return De};function ge(tt){return(tt||[]).map((Ve,De)=>{if(Ve&&typeof Ve=="object"){const he=Ve,{label:nt,children:wt,key:Ae,type:be}=he,gt=pe(he,["label","children","key","type"]),Xe=Ae!=null?Ae:`tmp-${De}`;return wt||be==="group"?be==="group"?se.createElement(b.BW,Object.assign({key:Xe},gt,{title:nt}),ge(wt)):se.createElement(z,Object.assign({key:Xe},gt,{title:nt}),ge(wt)):be==="divider"?se.createElement(We,Object.assign({key:Xe},gt)):se.createElement(x,Object.assign({key:Xe},gt),nt)}return null}).filter(Ve=>Ve)}function ye(tt){return se.useMemo(()=>tt&&ge(tt),[tt])}var Ee=ae(64993),we=ae(17313),ve=ae(8378),Je=ae(13826),Ge=ae(29878),ot=ae(83116),Le=ae(37613),st=tt=>{const{componentCls:Ve,motionDurationSlow:De,horizontalLineHeight:he,colorSplit:nt,lineWidth:wt,lineType:Ae,itemPaddingInline:be}=tt;return{[`${Ve}-horizontal`]:{lineHeight:he,border:0,borderBottom:`${wt}px ${Ae} ${nt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Ve}-item, ${Ve}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:be},[`> ${Ve}-item:hover,
|
|
> ${Ve}-item-active,
|
|
> ${Ve}-submenu ${Ve}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Ve}-item, ${Ve}-submenu-title`]:{transition:[`border-color ${De}`,`background ${De}`].join(",")},[`${Ve}-submenu-arrow`]:{display:"none"}}}},rt=tt=>{let{componentCls:Ve,menuArrowOffset:De}=tt;return{[`${Ve}-rtl`]:{direction:"rtl"},[`${Ve}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Ve}-rtl${Ve}-vertical,
|
|
${Ve}-submenu-rtl ${Ve}-vertical`]:{[`${Ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${De})`},"&::after":{transform:`rotate(45deg) translateY(${De})`}}}}};const Ht=tt=>Object.assign({},(0,we.oN)(tt));var jt=(tt,Ve)=>{const{componentCls:De,itemColor:he,itemSelectedColor:nt,groupTitleColor:wt,itemBg:Ae,subMenuItemBg:be,itemSelectedBg:gt,activeBarHeight:Xe,activeBarWidth:Te,activeBarBorderWidth:St,motionDurationSlow:ln,motionEaseInOut:Lt,motionEaseOut:Jt,itemPaddingInline:Ut,motionDurationMid:qt,itemHoverColor:bt,lineType:Yt,colorSplit:Fn,itemDisabledColor:kt,dangerItemColor:Ft,dangerItemHoverColor:In,dangerItemSelectedColor:jn,dangerItemActiveBg:Gn,dangerItemSelectedBg:na,itemHoverBg:La,itemActiveBg:nn,menuSubMenuBg:$t,horizontalItemSelectedColor:mn,horizontalItemSelectedBg:Zn,horizontalItemBorderRadius:Cn,horizontalItemHoverBg:Ha,popupBg:$a}=tt;return{[`${De}-${Ve}, ${De}-${Ve} > ${De}`]:{color:he,background:Ae,[`&${De}-root:focus-visible`]:Object.assign({},Ht(tt)),[`${De}-item-group-title`]:{color:wt},[`${De}-submenu-selected`]:{[`> ${De}-submenu-title`]:{color:nt}},[`${De}-item-disabled, ${De}-submenu-disabled`]:{color:`${kt} !important`},[`${De}-item:not(${De}-item-selected):not(${De}-submenu-selected)`]:{[`&:hover, > ${De}-submenu-title:hover`]:{color:bt}},[`&:not(${De}-horizontal)`]:{[`${De}-item:not(${De}-item-selected)`]:{"&:hover":{backgroundColor:La},"&:active":{backgroundColor:nn}},[`${De}-submenu-title`]:{"&:hover":{backgroundColor:La},"&:active":{backgroundColor:nn}}},[`${De}-item-danger`]:{color:Ft,[`&${De}-item:hover`]:{[`&:not(${De}-item-selected):not(${De}-submenu-selected)`]:{color:In}},[`&${De}-item:active`]:{background:Gn}},[`${De}-item a`]:{"&, &:hover":{color:"inherit"}},[`${De}-item-selected`]:{color:nt,[`&${De}-item-danger`]:{color:jn},"a, a:hover":{color:"inherit"}},[`& ${De}-item-selected`]:{backgroundColor:gt,[`&${De}-item-danger`]:{backgroundColor:na}},[`${De}-item, ${De}-submenu-title`]:{[`&:not(${De}-item-disabled):focus-visible`]:Object.assign({},Ht(tt))},[`&${De}-submenu > ${De}`]:{backgroundColor:$t},[`&${De}-popup > ${De}`]:{backgroundColor:$a},[`&${De}-horizontal`]:Object.assign(Object.assign({},Ve==="dark"?{borderBottom:0}:{}),{[`> ${De}-item, > ${De}-submenu`]:{top:St,marginTop:-St,marginBottom:0,borderRadius:Cn,"&::after":{position:"absolute",insetInline:Ut,bottom:0,borderBottom:`${Xe}px solid transparent`,transition:`border-color ${ln} ${Lt}`,content:'""'},"&:hover, &-active, &-open":{background:Ha,"&::after":{borderBottomWidth:Xe,borderBottomColor:mn}},"&-selected":{color:mn,backgroundColor:Zn,"&:hover":{backgroundColor:Zn},"&::after":{borderBottomWidth:Xe,borderBottomColor:mn}}}}),[`&${De}-root`]:{[`&${De}-inline, &${De}-vertical`]:{borderInlineEnd:`${St}px ${Yt} ${Fn}`}},[`&${De}-inline`]:{[`${De}-sub${De}-inline`]:{background:be},[`${De}-item, ${De}-submenu-title`]:St&&Te?{width:`calc(100% + ${St}px)`}:{},[`${De}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Te}px solid ${nt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${qt} ${Jt}`,`opacity ${qt} ${Jt}`].join(","),content:'""'},[`&${De}-item-danger`]:{"&::after":{borderInlineEndColor:jn}}},[`${De}-selected, ${De}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${qt} ${Lt}`,`opacity ${qt} ${Lt}`].join(",")}}}}}};const Kt=tt=>{const{componentCls:Ve,itemHeight:De,itemMarginInline:he,padding:nt,menuArrowSize:wt,marginXS:Ae,itemMarginBlock:be}=tt,gt=nt+wt+Ae;return{[`${Ve}-item`]:{position:"relative",overflow:"hidden"},[`${Ve}-item, ${Ve}-submenu-title`]:{height:De,lineHeight:`${De}px`,paddingInline:nt,overflow:"hidden",textOverflow:"ellipsis",marginInline:he,marginBlock:be,width:`calc(100% - ${he*2}px)`},[`> ${Ve}-item,
|
|
> ${Ve}-submenu > ${Ve}-submenu-title`]:{height:De,lineHeight:`${De}px`},[`${Ve}-item-group-list ${Ve}-submenu-title,
|
|
${Ve}-submenu-title`]:{paddingInlineEnd:gt}}};var et=tt=>{const{componentCls:Ve,iconCls:De,itemHeight:he,colorTextLightSolid:nt,dropdownWidth:wt,controlHeightLG:Ae,motionDurationMid:be,motionEaseOut:gt,paddingXL:Xe,itemMarginInline:Te,fontSizeLG:St,motionDurationSlow:ln,paddingXS:Lt,boxShadowSecondary:Jt,collapsedWidth:Ut,collapsedIconSize:qt}=tt,bt={height:he,lineHeight:`${he}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Ve]:{"&-inline, &-vertical":Object.assign({[`&${Ve}-root`]:{boxShadow:"none"}},Kt(tt))},[`${Ve}-submenu-popup`]:{[`${Ve}-vertical`]:Object.assign(Object.assign({},Kt(tt)),{boxShadow:Jt})}},{[`${Ve}-submenu-popup ${Ve}-vertical${Ve}-sub`]:{minWidth:wt,maxHeight:`calc(100vh - ${Ae*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Ve}-inline`]:{width:"100%",[`&${Ve}-root`]:{[`${Ve}-item, ${Ve}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${ln}`,`background ${ln}`,`padding ${be} ${gt}`].join(","),[`> ${Ve}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Ve}-sub${Ve}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Ve}-submenu > ${Ve}-submenu-title`]:bt,[`& ${Ve}-item-group-title`]:{paddingInlineStart:Xe}},[`${Ve}-item`]:bt}},{[`${Ve}-inline-collapsed`]:{width:Ut,[`&${Ve}-root`]:{[`${Ve}-item, ${Ve}-submenu ${Ve}-submenu-title`]:{[`> ${Ve}-inline-collapsed-noicon`]:{fontSize:St,textAlign:"center"}}},[`> ${Ve}-item,
|
|
> ${Ve}-item-group > ${Ve}-item-group-list > ${Ve}-item,
|
|
> ${Ve}-item-group > ${Ve}-item-group-list > ${Ve}-submenu > ${Ve}-submenu-title,
|
|
> ${Ve}-submenu > ${Ve}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${St/2}px - ${Te}px)`,textOverflow:"clip",[`
|
|
${Ve}-submenu-arrow,
|
|
${Ve}-submenu-expand-icon
|
|
`]:{opacity:0},[`${Ve}-item-icon, ${De}`]:{margin:0,fontSize:qt,lineHeight:`${he}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Ve}-item-icon, ${De}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Ve}-item-icon, ${De}`]:{display:"none"},"a, a:hover":{color:nt}},[`${Ve}-item-group-title`]:Object.assign(Object.assign({},we.vS),{paddingInline:Lt})}}]};const Dt=tt=>{const{componentCls:Ve,motionDurationSlow:De,motionDurationMid:he,motionEaseInOut:nt,motionEaseOut:wt,iconCls:Ae,iconSize:be,iconMarginInlineEnd:gt}=tt;return{[`${Ve}-item, ${Ve}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${De}`,`background ${De}`,`padding ${De} ${nt}`].join(","),[`${Ve}-item-icon, ${Ae}`]:{minWidth:be,fontSize:be,transition:[`font-size ${he} ${wt}`,`margin ${De} ${nt}`,`color ${De}`].join(","),"+ span":{marginInlineStart:gt,opacity:1,transition:[`opacity ${De} ${nt}`,`margin ${De}`,`color ${De}`].join(",")}},[`${Ve}-item-icon`]:Object.assign({},(0,we.Ro)()),[`&${Ve}-item-only-child`]:{[`> ${Ae}, > ${Ve}-item-icon`]:{marginInlineEnd:0}}},[`${Ve}-item-disabled, ${Ve}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Ve}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},tn=tt=>{const{componentCls:Ve,motionDurationSlow:De,motionEaseInOut:he,borderRadius:nt,menuArrowSize:wt,menuArrowOffset:Ae}=tt;return{[`${Ve}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:tt.margin,width:wt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${De} ${he}, opacity ${De}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:wt*.6,height:wt*.15,backgroundColor:"currentcolor",borderRadius:nt,transition:[`background ${De} ${he}`,`transform ${De} ${he}`,`top ${De} ${he}`,`color ${De} ${he}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Ae})`},"&::after":{transform:`rotate(-45deg) translateY(${Ae})`}}}}},Et=tt=>{const{antCls:Ve,componentCls:De,fontSize:he,motionDurationSlow:nt,motionDurationMid:wt,motionEaseInOut:Ae,paddingXS:be,padding:gt,colorSplit:Xe,lineWidth:Te,zIndexPopup:St,borderRadiusLG:ln,subMenuItemBorderRadius:Lt,menuArrowSize:Jt,menuArrowOffset:Ut,lineType:qt,menuPanelMaskInset:bt,groupTitleLineHeight:Yt,groupTitleFontSize:Fn}=tt;return[{"":{[`${De}`]:Object.assign(Object.assign({},(0,we.dF)()),{"&-hidden":{display:"none"}})},[`${De}-submenu-hidden`]:{display:"none"}},{[De]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,we.Wf)(tt)),(0,we.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:he,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${nt} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${De}-item`]:{flex:"none"}},[`${De}-item, ${De}-submenu, ${De}-submenu-title`]:{borderRadius:tt.itemBorderRadius},[`${De}-item-group-title`]:{padding:`${be}px ${gt}px`,fontSize:Fn,lineHeight:Yt,transition:`all ${nt}`},[`&-horizontal ${De}-submenu`]:{transition:[`border-color ${nt} ${Ae}`,`background ${nt} ${Ae}`].join(",")},[`${De}-submenu, ${De}-submenu-inline`]:{transition:[`border-color ${nt} ${Ae}`,`background ${nt} ${Ae}`,`padding ${wt} ${Ae}`].join(",")},[`${De}-submenu ${De}-sub`]:{cursor:"initial",transition:[`background ${nt} ${Ae}`,`padding ${nt} ${Ae}`].join(",")},[`${De}-title-content`]:{transition:`color ${nt}`},[`${De}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${De}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Xe,borderStyle:qt,borderWidth:0,borderTopWidth:Te,marginBlock:Te,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Dt(tt)),{[`${De}-item-group`]:{[`${De}-item-group-list`]:{margin:0,padding:0,[`${De}-item, ${De}-submenu-title`]:{paddingInline:`${he*2}px ${gt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:St,borderRadius:ln,boxShadow:"none",transformOrigin:"0 0",[`&${De}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${bt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:bt},"\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:tt.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:tt.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:tt.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:tt.paddingXS},[`> ${De}`]:Object.assign(Object.assign(Object.assign({borderRadius:ln},Dt(tt)),tn(tt)),{[`${De}-item, ${De}-submenu > ${De}-submenu-title`]:{borderRadius:Lt},[`${De}-submenu-title::after`]:{transition:`transform ${nt} ${Ae}`}})}}),tn(tt)),{[`&-inline-collapsed ${De}-submenu-arrow,
|
|
&-inline ${De}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ut})`},"&::after":{transform:`rotate(45deg) translateX(-${Ut})`}},[`${De}-submenu-open${De}-submenu-inline > ${De}-submenu-title > ${De}-submenu-arrow`]:{transform:`translateY(-${Jt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Ut})`},"&::before":{transform:`rotate(45deg) translateX(${Ut})`}}})},{[`${Ve}-layout-header`]:{[De]:{lineHeight:"inherit"}}}]};var Vt=(tt,Ve)=>(0,ot.Z)("Menu",he=>{if(Ve===!1)return[];const{colorBgElevated:nt,colorPrimary:wt,colorTextLightSolid:Ae,controlHeightLG:be,fontSize:gt,darkItemColor:Xe,darkDangerItemColor:Te,darkItemBg:St,darkSubMenuItemBg:ln,darkItemSelectedColor:Lt,darkItemSelectedBg:Jt,darkDangerItemSelectedBg:Ut,darkItemHoverBg:qt,darkGroupTitleColor:bt,darkItemHoverColor:Yt,darkItemDisabledColor:Fn,darkDangerItemHoverColor:kt,darkDangerItemSelectedColor:Ft,darkDangerItemActiveBg:In}=he,jn=gt/7*5,Gn=(0,Le.TS)(he,{menuArrowSize:jn,menuHorizontalHeight:be*1.15,menuArrowOffset:`${jn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:nt}),na=(0,Le.TS)(Gn,{itemColor:Xe,itemHoverColor:Yt,groupTitleColor:bt,itemSelectedColor:Lt,itemBg:St,popupBg:St,subMenuItemBg:ln,itemActiveBg:"transparent",itemSelectedBg:Jt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:qt,itemDisabledColor:Fn,dangerItemColor:Te,dangerItemHoverColor:kt,dangerItemSelectedColor:Ft,dangerItemActiveBg:In,dangerItemSelectedBg:Ut,menuSubMenuBg:ln,horizontalItemSelectedColor:Ae,horizontalItemSelectedBg:wt});return[Et(Gn),st(Gn),et(Gn),jt(Gn,"light"),jt(na,"dark"),rt(Gn),(0,ve.Z)(Gn),(0,Je.oN)(Gn,"slide-up"),(0,Je.oN)(Gn,"slide-down"),(0,Ge._y)(Gn,"zoom-big")]},he=>{const{colorPrimary:nt,colorError:wt,colorTextDisabled:Ae,colorErrorBg:be,colorText:gt,colorTextDescription:Xe,colorBgContainer:Te,colorFillAlter:St,colorFillContent:ln,lineWidth:Lt,lineWidthBold:Jt,controlItemBgActive:Ut,colorBgTextHover:qt,controlHeightLG:bt,lineHeight:Yt,colorBgElevated:Fn,marginXXS:kt,padding:Ft,fontSize:In,controlHeightSM:jn,fontSizeLG:Gn,colorTextLightSolid:na,colorErrorHover:La}=he,nn=new Ee.C(na).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:he.zIndexPopupBase+50,radiusItem:he.borderRadiusLG,itemBorderRadius:he.borderRadiusLG,radiusSubMenuItem:he.borderRadiusSM,subMenuItemBorderRadius:he.borderRadiusSM,colorItemText:gt,itemColor:gt,colorItemTextHover:gt,itemHoverColor:gt,colorItemTextHoverHorizontal:nt,horizontalItemHoverColor:nt,colorGroupTitle:Xe,groupTitleColor:Xe,colorItemTextSelected:nt,itemSelectedColor:nt,colorItemTextSelectedHorizontal:nt,horizontalItemSelectedColor:nt,colorItemBg:Te,itemBg:Te,colorItemBgHover:qt,itemHoverBg:qt,colorItemBgActive:ln,itemActiveBg:Ut,colorSubItemBg:St,subMenuItemBg:St,colorItemBgSelected:Ut,itemSelectedBg:Ut,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Jt,activeBarHeight:Jt,colorActiveBarBorderSize:Lt,activeBarBorderWidth:Lt,colorItemTextDisabled:Ae,itemDisabledColor:Ae,colorDangerItemText:wt,dangerItemColor:wt,colorDangerItemTextHover:wt,dangerItemHoverColor:wt,colorDangerItemTextSelected:wt,dangerItemSelectedColor:wt,colorDangerItemBgActive:be,dangerItemActiveBg:be,colorDangerItemBgSelected:be,dangerItemSelectedBg:be,itemMarginInline:he.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:bt,groupTitleLineHeight:Yt,collapsedWidth:bt*2,popupBg:Fn,itemMarginBlock:kt,itemPaddingInline:Ft,horizontalLineHeight:`${bt*1.15}px`,iconSize:In,iconMarginInlineEnd:jn-In,collapsedIconSize:Gn,groupTitleFontSize:In,darkItemDisabledColor:new Ee.C(na).setAlpha(.25).toRgbString(),darkItemColor:nn,darkDangerItemColor:wt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:na,darkItemSelectedBg:nt,darkDangerItemSelectedBg:wt,darkItemHoverBg:"transparent",darkGroupTitleColor:nn,darkItemHoverColor:na,darkDangerItemHoverColor:La,darkDangerItemSelectedColor:na,darkDangerItemActiveBg:wt}},{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"]]})(tt),Be=function(tt,Ve){var De={};for(var he in tt)Object.prototype.hasOwnProperty.call(tt,he)&&Ve.indexOf(he)<0&&(De[he]=tt[he]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,he=Object.getOwnPropertySymbols(tt);nt<he.length;nt++)Ve.indexOf(he[nt])<0&&Object.prototype.propertyIsEnumerable.call(tt,he[nt])&&(De[he[nt]]=tt[he[nt]]);return De},bn=(0,se.forwardRef)((tt,Ve)=>{var De,he;const nt=se.useContext(ce.Z),wt=nt||{},{getPrefixCls:Ae,getPopupContainer:be,direction:gt,menu:Xe}=se.useContext(Re.E_),Te=Ae(),{prefixCls:St,className:ln,style:Lt,theme:Jt="light",expandIcon:Ut,_internalDisableMenuItemTitleTooltip:qt,inlineCollapsed:bt,siderCollapsed:Yt,items:Fn,children:kt,rootClassName:Ft,mode:In,selectable:jn,onClick:Gn,overflowedIndicatorPopupClassName:na}=tt,La=Be(tt,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),nn=(0,ke.Z)(La,["collapsedWidth"]),$t=ye(Fn)||kt;(De=wt.validator)===null||De===void 0||De.call(wt,{mode:In});const mn=(0,re.useEvent)(function(){var kn;Gn==null||Gn.apply(void 0,arguments),(kn=wt.onClick)===null||kn===void 0||kn.call(wt)}),Zn=wt.mode||In,Cn=jn!=null?jn:wt.selectable,Ha=se.useMemo(()=>Yt!==void 0?Yt:bt,[bt,Yt]),$a={horizontal:{motionName:`${Te}-slide-up`},inline:(0,ie.Z)(Te),other:{motionName:`${Te}-zoom-big`}},aa=Ae("menu",St||wt.prefixCls),[vn,ka]=Vt(aa,!nt),vt=Oe()(`${aa}-${Jt}`,Xe==null?void 0:Xe.className,ln);let cn;if(typeof Ut=="function")cn=Ut;else if(Ut===null||Ut===!1)cn=null;else if(wt.expandIcon===null||wt.expandIcon===!1)cn=null;else{const kn=Ut!=null?Ut:wt.expandIcon;cn=(0,Ie.Tm)(kn,{className:Oe()(`${aa}-submenu-expand-icon`,(0,Ie.l$)(kn)?(he=kn.props)===null||he===void 0?void 0:he.className:"")})}const Nn=se.useMemo(()=>({prefixCls:aa,inlineCollapsed:Ha||!1,direction:gt,firstLevel:!0,theme:Jt,mode:Zn,disableMenuItemTitleTooltip:qt}),[aa,Ha,gt,qt,Jt]);return vn(se.createElement(ce.Z.Provider,{value:null},se.createElement(E.Provider,{value:Nn},se.createElement(b.ZP,Object.assign({getPopupContainer:be,overflowedIndicator:se.createElement(te.Z,null),overflowedIndicatorPopupClassName:Oe()(aa,`${aa}-${Jt}`,na),mode:Zn,selectable:Cn,onClick:mn},nn,{inlineCollapsed:Ha,style:Object.assign(Object.assign({},Xe==null?void 0:Xe.style),Lt),className:vt,prefixCls:aa,direction:gt,defaultMotions:$a,expandIcon:cn,ref:Ve,rootClassName:Oe()(Ft,ka)}),$t))))});const Bt=(0,se.forwardRef)((tt,Ve)=>{const De=(0,se.useRef)(null),he=se.useContext(Ce.D);return(0,se.useImperativeHandle)(Ve,()=>({menu:De.current,focus:nt=>{var wt;(wt=De.current)===null||wt===void 0||wt.focus(nt)}})),se.createElement(bn,Object.assign({ref:De},tt,he))});Bt.Item=x,Bt.SubMenu=z,Bt.Divider=We,Bt.ItemGroup=b.BW;var At=Bt},58421:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return wt}});var b=ae(54476),se=ae(59301),Ce={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"},Fe=Ce,Oe=ae(7657),Re=function(be,gt){return se.createElement(Oe.Z,(0,b.Z)({},be,{ref:gt,icon:Fe}))},ue=se.forwardRef(Re),Ze=ue,We=ae(49198),_e=ae(33853),ke=ae(38819),je=ae(92310),Ie=ae.n(je),le=ae(20068),E=ae(33885),a=ae(67732),x=ae(83652),y=ae(42403),z=ae(158),te=ae(26112),re={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},ie=re,ce=ae(91735),pe=function(Ae){(0,y.Z)(gt,Ae);var be=(0,z.Z)(gt);function gt(){var Xe;(0,a.Z)(this,gt);for(var Te=arguments.length,St=new Array(Te),ln=0;ln<Te;ln++)St[ln]=arguments[ln];return Xe=be.call.apply(be,[this].concat(St)),Xe.state={goInputText:""},Xe.getValidValue=function(){var Lt=Xe.state.goInputText;return!Lt||Number.isNaN(Lt)?void 0:Number(Lt)},Xe.buildOptionText=function(Lt){return"".concat(Lt," ").concat(Xe.props.locale.items_per_page)},Xe.changeSize=function(Lt){Xe.props.changeSize(Number(Lt))},Xe.handleChange=function(Lt){Xe.setState({goInputText:Lt.target.value})},Xe.handleBlur=function(Lt){var Jt=Xe.props,Ut=Jt.goButton,qt=Jt.quickGo,bt=Jt.rootPrefixCls,Yt=Xe.state.goInputText;Ut||Yt===""||(Xe.setState({goInputText:""}),!(Lt.relatedTarget&&(Lt.relatedTarget.className.indexOf("".concat(bt,"-item-link"))>=0||Lt.relatedTarget.className.indexOf("".concat(bt,"-item"))>=0))&&qt(Xe.getValidValue()))},Xe.go=function(Lt){var Jt=Xe.state.goInputText;Jt!==""&&(Lt.keyCode===ie.ENTER||Lt.type==="click")&&(Xe.setState({goInputText:""}),Xe.props.quickGo(Xe.getValidValue()))},Xe}return(0,x.Z)(gt,[{key:"getPageSizeOptions",value:function(){var Te=this.props,St=Te.pageSize,ln=Te.pageSizeOptions;return ln.some(function(Lt){return Lt.toString()===St.toString()})?ln:ln.concat([St.toString()]).sort(function(Lt,Jt){var Ut=Number.isNaN(Number(Lt))?0:Number(Lt),qt=Number.isNaN(Number(Jt))?0:Number(Jt);return Ut-qt})}},{key:"render",value:function(){var Te=this,St=this.props,ln=St.pageSize,Lt=St.locale,Jt=St.rootPrefixCls,Ut=St.changeSize,qt=St.quickGo,bt=St.goButton,Yt=St.selectComponentClass,Fn=St.buildOptionText,kt=St.selectPrefixCls,Ft=St.disabled,In=this.state.goInputText,jn="".concat(Jt,"-options"),Gn=Yt,na=null,La=null,nn=null;if(!Ut&&!qt)return null;var $t=this.getPageSizeOptions();if(Ut&&Gn){var mn=$t.map(function(Zn,Cn){return se.createElement(Gn.Option,{key:Cn,value:Zn.toString()},(Fn||Te.buildOptionText)(Zn))});na=se.createElement(Gn,{disabled:Ft,prefixCls:kt,showSearch:!1,className:"".concat(jn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(ln||$t[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Cn){return Cn.parentNode},"aria-label":Lt.page_size,defaultOpen:!1},mn)}return qt&&(bt&&(nn=typeof bt=="boolean"?se.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Ft,className:"".concat(jn,"-quick-jumper-button")},Lt.jump_to_confirm):se.createElement("span",{onClick:this.go,onKeyUp:this.go},bt)),La=se.createElement("div",{className:"".concat(jn,"-quick-jumper")},Lt.jump_to,se.createElement("input",{disabled:Ft,type:"text",value:In,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Lt.page}),Lt.page,nn)),se.createElement("li",{className:"".concat(jn)},na,La)}}]),gt}(se.Component);pe.defaultProps={pageSizeOptions:["10","20","50","100"]};var ge=pe,ye=function(be){var gt,Xe=be.rootPrefixCls,Te=be.page,St=be.active,ln=be.className,Lt=be.showTitle,Jt=be.onClick,Ut=be.onKeyPress,qt=be.itemRender,bt="".concat(Xe,"-item"),Yt=Ie()(bt,"".concat(bt,"-").concat(Te),(gt={},(0,le.Z)(gt,"".concat(bt,"-active"),St),(0,le.Z)(gt,"".concat(bt,"-disabled"),!Te),(0,le.Z)(gt,be.className,ln),gt)),Fn=function(){Jt(Te)},kt=function(jn){Ut(jn,Jt,Te)},Ft=qt(Te,"page",se.createElement("a",{rel:"nofollow"},Te));return Ft?se.createElement("li",{title:Lt?Te.toString():null,className:Yt,onClick:Fn,onKeyPress:kt,tabIndex:0},Ft):null},Ee=ye;function we(){}function ve(Ae){var be=Number(Ae);return typeof be=="number"&&!Number.isNaN(be)&&isFinite(be)&&Math.floor(be)===be}var Je=function(be,gt,Xe){return Xe};function Ge(Ae,be,gt){var Xe=typeof Ae=="undefined"?be.pageSize:Ae;return Math.floor((gt.total-1)/Xe)+1}var ot=function(Ae){(0,y.Z)(gt,Ae);var be=(0,z.Z)(gt);function gt(Xe){var Te;(0,a.Z)(this,gt),Te=be.call(this,Xe),Te.paginationNode=se.createRef(),Te.getJumpPrevPage=function(){return Math.max(1,Te.state.current-(Te.props.showLessItems?3:5))},Te.getJumpNextPage=function(){return Math.min(Ge(void 0,Te.state,Te.props),Te.state.current+(Te.props.showLessItems?3:5))},Te.getItemIcon=function(Ut,qt){var bt=Te.props.prefixCls,Yt=Ut||se.createElement("button",{type:"button","aria-label":qt,className:"".concat(bt,"-item-link")});return typeof Ut=="function"&&(Yt=se.createElement(Ut,(0,E.Z)({},Te.props))),Yt},Te.isValid=function(Ut){var qt=Te.props.total;return ve(Ut)&&Ut!==Te.state.current&&ve(qt)&&qt>0},Te.shouldDisplayQuickJumper=function(){var Ut=Te.props,qt=Ut.showQuickJumper,bt=Ut.total,Yt=Te.state.pageSize;return bt<=Yt?!1:qt},Te.handleKeyDown=function(Ut){(Ut.keyCode===ie.ARROW_UP||Ut.keyCode===ie.ARROW_DOWN)&&Ut.preventDefault()},Te.handleKeyUp=function(Ut){var qt=Te.getValidValue(Ut),bt=Te.state.currentInputValue;qt!==bt&&Te.setState({currentInputValue:qt}),Ut.keyCode===ie.ENTER?Te.handleChange(qt):Ut.keyCode===ie.ARROW_UP?Te.handleChange(qt-1):Ut.keyCode===ie.ARROW_DOWN&&Te.handleChange(qt+1)},Te.handleBlur=function(Ut){var qt=Te.getValidValue(Ut);Te.handleChange(qt)},Te.changePageSize=function(Ut){var qt=Te.state.current,bt=Ge(Ut,Te.state,Te.props);qt=qt>bt?bt:qt,bt===0&&(qt=Te.state.current),typeof Ut=="number"&&("pageSize"in Te.props||Te.setState({pageSize:Ut}),"current"in Te.props||Te.setState({current:qt,currentInputValue:qt})),Te.props.onShowSizeChange(qt,Ut),"onChange"in Te.props&&Te.props.onChange&&Te.props.onChange(qt,Ut)},Te.handleChange=function(Ut){var qt=Te.props,bt=qt.disabled,Yt=qt.onChange,Fn=Te.state,kt=Fn.pageSize,Ft=Fn.current,In=Fn.currentInputValue;if(Te.isValid(Ut)&&!bt){var jn=Ge(void 0,Te.state,Te.props),Gn=Ut;return Ut>jn?Gn=jn:Ut<1&&(Gn=1),"current"in Te.props||Te.setState({current:Gn}),Gn!==In&&Te.setState({currentInputValue:Gn}),Yt(Gn,kt),Gn}return Ft},Te.prev=function(){Te.hasPrev()&&Te.handleChange(Te.state.current-1)},Te.next=function(){Te.hasNext()&&Te.handleChange(Te.state.current+1)},Te.jumpPrev=function(){Te.handleChange(Te.getJumpPrevPage())},Te.jumpNext=function(){Te.handleChange(Te.getJumpNextPage())},Te.hasPrev=function(){return Te.state.current>1},Te.hasNext=function(){return Te.state.current<Ge(void 0,Te.state,Te.props)},Te.runIfEnter=function(Ut,qt){if(Ut.key==="Enter"||Ut.charCode===13){for(var bt=arguments.length,Yt=new Array(bt>2?bt-2:0),Fn=2;Fn<bt;Fn++)Yt[Fn-2]=arguments[Fn];qt.apply(void 0,Yt)}},Te.runIfEnterPrev=function(Ut){Te.runIfEnter(Ut,Te.prev)},Te.runIfEnterNext=function(Ut){Te.runIfEnter(Ut,Te.next)},Te.runIfEnterJumpPrev=function(Ut){Te.runIfEnter(Ut,Te.jumpPrev)},Te.runIfEnterJumpNext=function(Ut){Te.runIfEnter(Ut,Te.jumpNext)},Te.handleGoTO=function(Ut){(Ut.keyCode===ie.ENTER||Ut.type==="click")&&Te.handleChange(Te.state.currentInputValue)},Te.renderPrev=function(Ut){var qt=Te.props,bt=qt.prevIcon,Yt=qt.itemRender,Fn=Yt(Ut,"prev",Te.getItemIcon(bt,"prev page")),kt=!Te.hasPrev();return(0,se.isValidElement)(Fn)?(0,se.cloneElement)(Fn,{disabled:kt}):Fn},Te.renderNext=function(Ut){var qt=Te.props,bt=qt.nextIcon,Yt=qt.itemRender,Fn=Yt(Ut,"next",Te.getItemIcon(bt,"next page")),kt=!Te.hasNext();return(0,se.isValidElement)(Fn)?(0,se.cloneElement)(Fn,{disabled:kt}):Fn};var St=Xe.onChange!==we,ln="current"in Xe;ln&&!St&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Lt=Xe.defaultCurrent;"current"in Xe&&(Lt=Xe.current);var Jt=Xe.defaultPageSize;return"pageSize"in Xe&&(Jt=Xe.pageSize),Lt=Math.min(Lt,Ge(Jt,void 0,Xe)),Te.state={current:Lt,currentInputValue:Lt,pageSize:Jt},Te}return(0,x.Z)(gt,[{key:"componentDidUpdate",value:function(Te,St){var ln=this.props.prefixCls;if(St.current!==this.state.current&&this.paginationNode.current){var Lt=this.paginationNode.current.querySelector(".".concat(ln,"-item-").concat(St.current));if(Lt&&document.activeElement===Lt){var Jt;Lt==null||(Jt=Lt.blur)===null||Jt===void 0||Jt.call(Lt)}}}},{key:"getValidValue",value:function(Te){var St=Te.target.value,ln=Ge(void 0,this.state,this.props),Lt=this.state.currentInputValue,Jt;return St===""?Jt=St:Number.isNaN(Number(St))?Jt=Lt:St>=ln?Jt=ln:Jt=Number(St),Jt}},{key:"getShowSizeChanger",value:function(){var Te=this.props,St=Te.showSizeChanger,ln=Te.total,Lt=Te.totalBoundaryShowSizeChanger;return typeof St!="undefined"?St:ln>Lt}},{key:"render",value:function(){var Te=this.props,St=Te.prefixCls,ln=Te.className,Lt=Te.style,Jt=Te.disabled,Ut=Te.hideOnSinglePage,qt=Te.total,bt=Te.locale,Yt=Te.showQuickJumper,Fn=Te.showLessItems,kt=Te.showTitle,Ft=Te.showTotal,In=Te.simple,jn=Te.itemRender,Gn=Te.showPrevNextJumpers,na=Te.jumpPrevIcon,La=Te.jumpNextIcon,nn=Te.selectComponentClass,$t=Te.selectPrefixCls,mn=Te.pageSizeOptions,Zn=this.state,Cn=Zn.current,Ha=Zn.pageSize,$a=Zn.currentInputValue;if(Ut===!0&&qt<=Ha)return null;var aa=Ge(void 0,this.state,this.props),vn=[],ka=null,vt=null,cn=null,Nn=null,kn=null,xn=Yt&&Yt.goButton,zn=Fn?1:2,Jn=Cn-1>0?Cn-1:0,ht=Cn+1<aa?Cn+1:aa,yt=(0,te.Z)(this.props,{aria:!0,data:!0}),pt=Ft&&se.createElement("li",{className:"".concat(St,"-total-text")},Ft(qt,[qt===0?0:(Cn-1)*Ha+1,Cn*Ha>qt?qt:Cn*Ha]));if(In){xn&&(typeof xn=="boolean"?kn=se.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},bt.jump_to_confirm):kn=se.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},xn),kn=se.createElement("li",{title:kt?"".concat(bt.jump_to).concat(Cn,"/").concat(aa):null,className:"".concat(St,"-simple-pager")},kn));var sn=this.renderPrev(Jn);return se.createElement("ul",(0,b.Z)({className:Ie()(St,"".concat(St,"-simple"),(0,le.Z)({},"".concat(St,"-disabled"),Jt),ln),style:Lt,ref:this.paginationNode},yt),pt,sn?se.createElement("li",{title:kt?bt.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Ie()("".concat(St,"-prev"),(0,le.Z)({},"".concat(St,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},sn):null,se.createElement("li",{title:kt?"".concat(Cn,"/").concat(aa):null,className:"".concat(St,"-simple-pager")},se.createElement("input",{type:"text",value:$a,disabled:Jt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),se.createElement("span",{className:"".concat(St,"-slash")},"/"),aa),se.createElement("li",{title:kt?bt.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Ie()("".concat(St,"-next"),(0,le.Z)({},"".concat(St,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(ht)),kn)}if(aa<=3+zn*2){var En={locale:bt,rootPrefixCls:St,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:kt,itemRender:jn};aa||vn.push(se.createElement(Ee,(0,b.Z)({},En,{key:"noPager",page:1,className:"".concat(St,"-item-disabled")})));for(var gn=1;gn<=aa;gn+=1){var Qn=Cn===gn;vn.push(se.createElement(Ee,(0,b.Z)({},En,{key:gn,page:gn,active:Qn})))}}else{var _n=Fn?bt.prev_3:bt.prev_5,Hn=Fn?bt.next_3:bt.next_5,Pa=jn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(na,"prev page")),Qa=jn(this.getJumpNextPage(),"jump-next",this.getItemIcon(La,"next page"));Gn&&(ka=Pa?se.createElement("li",{title:kt?_n:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Ie()("".concat(St,"-jump-prev"),(0,le.Z)({},"".concat(St,"-jump-prev-custom-icon"),!!na))},Pa):null,vt=Qa?se.createElement("li",{title:kt?Hn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Ie()("".concat(St,"-jump-next"),(0,le.Z)({},"".concat(St,"-jump-next-custom-icon"),!!La))},Qa):null),Nn=se.createElement(Ee,{locale:bt,last:!0,rootPrefixCls:St,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:aa,page:aa,active:!1,showTitle:kt,itemRender:jn}),cn=se.createElement(Ee,{locale:bt,rootPrefixCls:St,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:kt,itemRender:jn});var Sn=Math.max(1,Cn-zn),ba=Math.min(Cn+zn,aa);Cn-1<=zn&&(ba=1+zn*2),aa-Cn<=zn&&(Sn=aa-zn*2);for(var nr=Sn;nr<=ba;nr+=1){var gr=Cn===nr;vn.push(se.createElement(Ee,{locale:bt,rootPrefixCls:St,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:nr,page:nr,active:gr,showTitle:kt,itemRender:jn}))}Cn-1>=zn*2&&Cn!==3&&(vn[0]=(0,se.cloneElement)(vn[0],{className:"".concat(St,"-item-after-jump-prev")}),vn.unshift(ka)),aa-Cn>=zn*2&&Cn!==aa-2&&(vn[vn.length-1]=(0,se.cloneElement)(vn[vn.length-1],{className:"".concat(St,"-item-before-jump-next")}),vn.push(vt)),Sn!==1&&vn.unshift(cn),ba!==aa&&vn.push(Nn)}var $n=!this.hasPrev()||!aa,an=!this.hasNext()||!aa,Rr=this.renderPrev(Jn),Ja=this.renderNext(ht);return se.createElement("ul",(0,b.Z)({className:Ie()(St,ln,(0,le.Z)({},"".concat(St,"-disabled"),Jt)),style:Lt,ref:this.paginationNode},yt),pt,Rr?se.createElement("li",{title:kt?bt.prev_page:null,onClick:this.prev,tabIndex:$n?null:0,onKeyPress:this.runIfEnterPrev,className:Ie()("".concat(St,"-prev"),(0,le.Z)({},"".concat(St,"-disabled"),$n)),"aria-disabled":$n},Rr):null,vn,Ja?se.createElement("li",{title:kt?bt.next_page:null,onClick:this.next,tabIndex:an?null:0,onKeyPress:this.runIfEnterNext,className:Ie()("".concat(St,"-next"),(0,le.Z)({},"".concat(St,"-disabled"),an)),"aria-disabled":an},Ja):null,se.createElement(ge,{disabled:Jt,locale:bt,rootPrefixCls:St,selectComponentClass:nn,selectPrefixCls:$t,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Cn,pageSize:Ha,pageSizeOptions:mn,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:xn}))}}],[{key:"getDerivedStateFromProps",value:function(Te,St){var ln={};if("current"in Te&&(ln.current=Te.current,Te.current!==St.current&&(ln.currentInputValue=ln.current)),"pageSize"in Te&&Te.pageSize!==St.pageSize){var Lt=St.current,Jt=Ge(Te.pageSize,St,Te);Lt=Lt>Jt?Jt:Lt,"current"in Te||(ln.current=Lt,ln.currentInputValue=Lt),ln.pageSize=Te.pageSize}return ln}}]),gt}(se.Component);ot.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:we,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:we,locale:ce.Z,style:{},itemRender:Je,totalBoundaryShowSizeChanger:50};var Le=ot,Ue=ae(22075),st=ae(36355),Ke=ae(19716),rt=ae(8628),Ht=ae(9763),it=ae(57809);const jt=Ae=>se.createElement(it.default,Object.assign({},Ae,{showSearch:!0,size:"small"})),Kt=Ae=>se.createElement(it.default,Object.assign({},Ae,{showSearch:!0,size:"middle"}));jt.Option=it.default.Option,Kt.Option=it.default.Option;var Qe=ae(9937),et=ae(17313),Dt=ae(83116),tn=ae(37613);const Et=Ae=>{const{componentCls:be}=Ae;return{[`${be}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${be}-item-link`]:{color:Ae.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${be}-item-link`]:{color:Ae.colorTextDisabled,cursor:"not-allowed"}}},[`&${be}-disabled`]:{cursor:"not-allowed",[`${be}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Ae.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Ae.colorBorder,backgroundColor:Ae.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Ae.itemActiveBgDisabled},a:{color:Ae.itemActiveColorDisabled}}},[`${be}-item-link`]:{color:Ae.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${be}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${be}-simple-pager`]:{color:Ae.colorTextDisabled},[`${be}-jump-prev, ${be}-jump-next`]:{[`${be}-item-link-icon`]:{opacity:0},[`${be}-item-ellipsis`]:{opacity:1}}},[`&${be}-simple`]:{[`${be}-prev, ${be}-next`]:{[`&${be}-disabled ${be}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Vt=Ae=>{const{componentCls:be}=Ae;return{[`&${be}-mini ${be}-total-text, &${be}-mini ${be}-simple-pager`]:{height:Ae.itemSizeSM,lineHeight:`${Ae.itemSizeSM}px`},[`&${be}-mini ${be}-item`]:{minWidth:Ae.itemSizeSM,height:Ae.itemSizeSM,margin:0,lineHeight:`${Ae.itemSizeSM-2}px`},[`&${be}-mini:not(${be}-disabled) ${be}-item:not(${be}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Ae.colorBgTextHover},"&:active":{backgroundColor:Ae.colorBgTextActive}},[`&${be}-mini ${be}-prev, &${be}-mini ${be}-next`]:{minWidth:Ae.itemSizeSM,height:Ae.itemSizeSM,margin:0,lineHeight:`${Ae.itemSizeSM}px`},[`&${be}-mini:not(${be}-disabled)`]:{[`${be}-prev, ${be}-next`]:{[`&:hover ${be}-item-link`]:{backgroundColor:Ae.colorBgTextHover},[`&:active ${be}-item-link`]:{backgroundColor:Ae.colorBgTextActive},[`&${be}-disabled:hover ${be}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
&${be}-mini ${be}-prev ${be}-item-link,
|
|
&${be}-mini ${be}-next ${be}-item-link
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Ae.itemSizeSM,lineHeight:`${Ae.itemSizeSM}px`}},[`&${be}-mini ${be}-jump-prev, &${be}-mini ${be}-jump-next`]:{height:Ae.itemSizeSM,marginInlineEnd:0,lineHeight:`${Ae.itemSizeSM}px`},[`&${be}-mini ${be}-options`]:{marginInlineStart:Ae.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Ae.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Ae.itemSizeSM,lineHeight:`${Ae.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Qe.x0)(Ae)),{width:Ae.paginationMiniQuickJumperInputWidth,height:Ae.controlHeightSM})}}}},Be=Ae=>{const{componentCls:be}=Ae;return{[`
|
|
&${be}-simple ${be}-prev,
|
|
&${be}-simple ${be}-next
|
|
`]:{height:Ae.itemSizeSM,lineHeight:`${Ae.itemSizeSM}px`,verticalAlign:"top",[`${be}-item-link`]:{height:Ae.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Ae.colorBgTextHover},"&:active":{backgroundColor:Ae.colorBgTextActive},"&::after":{height:Ae.itemSizeSM,lineHeight:`${Ae.itemSizeSM}px`}}},[`&${be}-simple ${be}-simple-pager`]:{display:"inline-block",height:Ae.itemSizeSM,marginInlineEnd:Ae.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Ae.marginXS,padding:`0 ${Ae.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Ae.itemInputBg,border:`${Ae.lineWidth}px ${Ae.lineType} ${Ae.colorBorder}`,borderRadius:Ae.borderRadius,outline:"none",transition:`border-color ${Ae.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Ae.colorPrimary},"&:focus":{borderColor:Ae.colorPrimaryHover,boxShadow:`${Ae.inputOutlineOffset}px 0 ${Ae.controlOutlineWidth}px ${Ae.controlOutline}`},"&[disabled]":{color:Ae.colorTextDisabled,backgroundColor:Ae.colorBgContainerDisabled,borderColor:Ae.colorBorder,cursor:"not-allowed"}}}}},Gt=Ae=>{const{componentCls:be}=Ae;return{[`${be}-jump-prev, ${be}-jump-next`]:{outline:0,[`${be}-item-container`]:{position:"relative",[`${be}-item-link-icon`]:{color:Ae.colorPrimary,fontSize:Ae.fontSizeSM,opacity:0,transition:`all ${Ae.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${be}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Ae.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Ae.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Ae.paginationEllipsisTextIndent,opacity:1,transition:`all ${Ae.motionDurationMid}`}},"&:hover":{[`${be}-item-link-icon`]:{opacity:1},[`${be}-item-ellipsis`]:{opacity:0}}},[`
|
|
${be}-prev,
|
|
${be}-jump-prev,
|
|
${be}-jump-next
|
|
`]:{marginInlineEnd:Ae.marginXS},[`
|
|
${be}-prev,
|
|
${be}-next,
|
|
${be}-jump-prev,
|
|
${be}-jump-next
|
|
`]:{display:"inline-block",minWidth:Ae.itemSize,height:Ae.itemSize,color:Ae.colorText,fontFamily:Ae.fontFamily,lineHeight:`${Ae.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Ae.borderRadius,cursor:"pointer",transition:`all ${Ae.motionDurationMid}`},[`${be}-prev, ${be}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Ae.colorText,cursor:"pointer",userSelect:"none"},[`${be}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Ae.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Ae.lineWidth}px ${Ae.lineType} transparent`,borderRadius:Ae.borderRadius,outline:"none",transition:`all ${Ae.motionDurationMid}`},[`&:hover ${be}-item-link`]:{backgroundColor:Ae.colorBgTextHover},[`&:active ${be}-item-link`]:{backgroundColor:Ae.colorBgTextActive},[`&${be}-disabled:hover`]:{[`${be}-item-link`]:{backgroundColor:"transparent"}}},[`${be}-slash`]:{marginInlineEnd:Ae.paginationSlashMarginInlineEnd,marginInlineStart:Ae.paginationSlashMarginInlineStart},[`${be}-options`]:{display:"inline-block",marginInlineStart:Ae.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Ae.controlHeight,marginInlineStart:Ae.marginXS,lineHeight:`${Ae.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Qe.ik)(Ae)),{width:Ae.controlHeightLG*1.25,height:Ae.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Ae.marginXS,marginInlineEnd:Ae.marginXS})}}}},bn=Ae=>{const{componentCls:be}=Ae;return{[`${be}-item`]:{display:"inline-block",minWidth:Ae.itemSize,height:Ae.itemSize,marginInlineEnd:Ae.marginXS,fontFamily:Ae.fontFamily,lineHeight:`${Ae.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Ae.lineWidth}px ${Ae.lineType} transparent`,borderRadius:Ae.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Ae.paginationItemPaddingInline}px`,color:Ae.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${be}-item-active)`]:{"&:hover":{transition:`all ${Ae.motionDurationMid}`,backgroundColor:Ae.colorBgTextHover},"&:active":{backgroundColor:Ae.colorBgTextActive}},"&-active":{fontWeight:Ae.fontWeightStrong,backgroundColor:Ae.itemActiveBg,borderColor:Ae.colorPrimary,a:{color:Ae.colorPrimary},"&:hover":{borderColor:Ae.colorPrimaryHover},"&:hover a":{color:Ae.colorPrimaryHover}}}}},Bt=Ae=>{const{componentCls:be}=Ae;return{[be]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,et.Wf)(Ae)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${be}-total-text`]:{display:"inline-block",height:Ae.itemSize,marginInlineEnd:Ae.marginXS,lineHeight:`${Ae.itemSize-2}px`,verticalAlign:"middle"}}),bn(Ae)),Gt(Ae)),Be(Ae)),Vt(Ae)),Et(Ae)),{[`@media only screen and (max-width: ${Ae.screenLG}px)`]:{[`${be}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ae.screenSM}px)`]:{[`${be}-options`]:{display:"none"}}}),[`&${Ae.componentCls}-rtl`]:{direction:"rtl"}}},At=Ae=>{const{componentCls:be}=Ae;return{[`${be}${be}-disabled:not(${be}-mini)`]:{"&, &:hover":{[`${be}-item-link`]:{borderColor:Ae.colorBorder}},"&:focus-visible":{[`${be}-item-link`]:{borderColor:Ae.colorBorder}},[`${be}-item, ${be}-item-link`]:{backgroundColor:Ae.colorBgContainerDisabled,borderColor:Ae.colorBorder,[`&:hover:not(${be}-item-active)`]:{backgroundColor:Ae.colorBgContainerDisabled,borderColor:Ae.colorBorder,a:{color:Ae.colorTextDisabled}},[`&${be}-item-active`]:{backgroundColor:Ae.itemActiveBgDisabled}},[`${be}-prev, ${be}-next`]:{"&:hover button":{backgroundColor:Ae.colorBgContainerDisabled,borderColor:Ae.colorBorder,color:Ae.colorTextDisabled},[`${be}-item-link`]:{backgroundColor:Ae.colorBgContainerDisabled,borderColor:Ae.colorBorder}}},[`${be}:not(${be}-mini)`]:{[`${be}-prev, ${be}-next`]:{"&:hover button":{borderColor:Ae.colorPrimaryHover,backgroundColor:Ae.itemBg},[`${be}-item-link`]:{backgroundColor:Ae.itemLinkBg,borderColor:Ae.colorBorder},[`&:hover ${be}-item-link`]:{borderColor:Ae.colorPrimary,backgroundColor:Ae.itemBg,color:Ae.colorPrimary},[`&${be}-disabled`]:{[`${be}-item-link`]:{borderColor:Ae.colorBorder,color:Ae.colorTextDisabled}}},[`${be}-item`]:{backgroundColor:Ae.itemBg,border:`${Ae.lineWidth}px ${Ae.lineType} ${Ae.colorBorder}`,[`&:hover:not(${be}-item-active)`]:{borderColor:Ae.colorPrimary,backgroundColor:Ae.itemBg,a:{color:Ae.colorPrimary}},"&-active":{borderColor:Ae.colorPrimary}}}}},tt=Ae=>{const{componentCls:be}=Ae;return{[`${be}:not(${be}-disabled)`]:{[`${be}-item`]:Object.assign({},(0,et.Qy)(Ae)),[`${be}-jump-prev, ${be}-jump-next`]:{"&:focus-visible":Object.assign({[`${be}-item-link-icon`]:{opacity:1},[`${be}-item-ellipsis`]:{opacity:0}},(0,et.oN)(Ae))},[`${be}-prev, ${be}-next`]:{[`&:focus-visible ${be}-item-link`]:Object.assign({},(0,et.oN)(Ae))}}}};var Ve=(0,Dt.Z)("Pagination",Ae=>{const be=(0,tn.TS)(Ae,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Ae.marginXXS/2,paginationMiniQuickJumperInputWidth:Ae.controlHeightLG*1.1,paginationItemPaddingInline:Ae.marginXXS*1.5,paginationEllipsisLetterSpacing:Ae.marginXXS/2,paginationSlashMarginInlineStart:Ae.marginXXS,paginationSlashMarginInlineEnd:Ae.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Qe.e5)(Ae),(0,Qe.TM)(Ae));return[Bt(be),tt(be),Ae.wireframe&&At(be)]},Ae=>({itemBg:Ae.colorBgContainer,itemSize:Ae.controlHeight,itemSizeSM:Ae.controlHeightSM,itemActiveBg:Ae.colorBgContainer,itemLinkBg:Ae.colorBgContainer,itemActiveColorDisabled:Ae.colorTextDisabled,itemActiveBgDisabled:Ae.controlItemBgActiveDisabled,itemInputBg:Ae.colorBgContainer,miniOptionsSizeChangerTop:0})),De=function(Ae,be){var gt={};for(var Xe in Ae)Object.prototype.hasOwnProperty.call(Ae,Xe)&&be.indexOf(Xe)<0&&(gt[Xe]=Ae[Xe]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,Xe=Object.getOwnPropertySymbols(Ae);Te<Xe.length;Te++)be.indexOf(Xe[Te])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Xe[Te])&&(gt[Xe[Te]]=Ae[Xe[Te]]);return gt},nt=Ae=>{const{prefixCls:be,selectPrefixCls:gt,className:Xe,rootClassName:Te,style:St,size:ln,locale:Lt,selectComponentClass:Jt,responsive:Ut,showSizeChanger:qt}=Ae,bt=De(Ae,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Yt}=(0,rt.Z)(Ut),{getPrefixCls:Fn,direction:kt,pagination:Ft={}}=se.useContext(st.E_),In=Fn("pagination",be),[jn,Gn]=Ve(In),na=qt!=null?qt:Ft.showSizeChanger,La=se.useMemo(()=>{const aa=se.createElement("span",{className:`${In}-item-ellipsis`},"\u2022\u2022\u2022"),vn=se.createElement("button",{className:`${In}-item-link`,type:"button",tabIndex:-1},kt==="rtl"?se.createElement(ke.Z,null):se.createElement(_e.Z,null)),ka=se.createElement("button",{className:`${In}-item-link`,type:"button",tabIndex:-1},kt==="rtl"?se.createElement(_e.Z,null):se.createElement(ke.Z,null)),vt=se.createElement("a",{className:`${In}-item-link`},se.createElement("div",{className:`${In}-item-container`},kt==="rtl"?se.createElement(We.Z,{className:`${In}-item-link-icon`}):se.createElement(Ze,{className:`${In}-item-link-icon`}),aa)),cn=se.createElement("a",{className:`${In}-item-link`},se.createElement("div",{className:`${In}-item-container`},kt==="rtl"?se.createElement(Ze,{className:`${In}-item-link-icon`}):se.createElement(We.Z,{className:`${In}-item-link-icon`}),aa));return{prevIcon:vn,nextIcon:ka,jumpPrevIcon:vt,jumpNextIcon:cn}},[kt,In]),[nn]=(0,Ht.Z)("Pagination",Ue.Z),$t=Object.assign(Object.assign({},nn),Lt),mn=(0,Ke.Z)(ln),Zn=mn==="small"||!!(Yt&&!mn&&Ut),Cn=Fn("select",gt),Ha=Ie()({[`${In}-mini`]:Zn,[`${In}-rtl`]:kt==="rtl"},Ft==null?void 0:Ft.className,Xe,Te,Gn),$a=Object.assign(Object.assign({},Ft==null?void 0:Ft.style),St);return jn(se.createElement(Le,Object.assign({},La,bt,{style:$a,prefixCls:In,selectPrefixCls:Cn,className:Ha,selectComponentClass:Jt||(Zn?jt:Kt),locale:$t,showSizeChanger:na})))},wt=nt},39722:function(Ot,Rt,ae){"use strict";ae.d(Rt,{t5:function(){return _e}});var b=ae(92310),se=ae.n(b),Ce=ae(55477),Fe=ae(59301),Oe=ae(36355),Re=ae(77578),ue=ae(17356),Ze=function(je,Ie){var le={};for(var E in je)Object.prototype.hasOwnProperty.call(je,E)&&Ie.indexOf(E)<0&&(le[E]=je[E]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,E=Object.getOwnPropertySymbols(je);a<E.length;a++)Ie.indexOf(E[a])<0&&Object.prototype.propertyIsEnumerable.call(je,E[a])&&(le[E[a]]=je[E[a]]);return le};const We=(je,Ie,le)=>{if(!(!Ie&&!le))return Fe.createElement(Fe.Fragment,null,Ie&&Fe.createElement("div",{className:`${je}-title`},(0,Re.Z)(Ie)),Fe.createElement("div",{className:`${je}-inner-content`},(0,Re.Z)(le)))},_e=je=>{const{hashId:Ie,prefixCls:le,className:E,style:a,placement:x="top",title:y,content:z,children:te}=je;return Fe.createElement("div",{className:se()(Ie,le,`${le}-pure`,`${le}-placement-${x}`,E),style:a},Fe.createElement("div",{className:`${le}-arrow`}),Fe.createElement(Ce.G,Object.assign({},je,{className:Ie,prefixCls:le}),te||We(le,y,z)))},ke=je=>{const{prefixCls:Ie}=je,le=Ze(je,["prefixCls"]),{getPrefixCls:E}=Fe.useContext(Oe.E_),a=E("popover",Ie),[x,y]=(0,ue.Z)(a);return x(Fe.createElement(_e,Object.assign({},le,{prefixCls:a,hashId:y})))};Rt.ZP=ke},60324:function(Ot,Rt,ae){"use strict";var b=ae(92310),se=ae.n(b),Ce=ae(59301),Fe=ae(77578),Oe=ae(62892),Re=ae(36355),ue=ae(6848),Ze=ae(39722),We=ae(17356),_e=function(Ie,le){var E={};for(var a in Ie)Object.prototype.hasOwnProperty.call(Ie,a)&&le.indexOf(a)<0&&(E[a]=Ie[a]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,a=Object.getOwnPropertySymbols(Ie);x<a.length;x++)le.indexOf(a[x])<0&&Object.prototype.propertyIsEnumerable.call(Ie,a[x])&&(E[a[x]]=Ie[a[x]]);return E};const ke=Ie=>{let{title:le,content:E,prefixCls:a}=Ie;return Ce.createElement(Ce.Fragment,null,le&&Ce.createElement("div",{className:`${a}-title`},(0,Fe.Z)(le)),Ce.createElement("div",{className:`${a}-inner-content`},(0,Fe.Z)(E)))},je=Ce.forwardRef((Ie,le)=>{const{prefixCls:E,title:a,content:x,overlayClassName:y,placement:z="top",trigger:te="hover",mouseEnterDelay:re=.1,mouseLeaveDelay:ie=.1,overlayStyle:ce={}}=Ie,pe=_e(Ie,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:ge}=Ce.useContext(Re.E_),ye=ge("popover",E),[Ee,we]=(0,We.Z)(ye),ve=ge(),Je=se()(y,we);return Ee(Ce.createElement(ue.Z,Object.assign({placement:z,trigger:te,mouseEnterDelay:re,mouseLeaveDelay:ie,overlayStyle:ce},pe,{prefixCls:ye,overlayClassName:Je,ref:le,overlay:a||x?Ce.createElement(ke,{prefixCls:ye,title:a,content:x}):null,transitionName:(0,Oe.m)(ve,"zoom-big",pe.transitionName),"data-popover-inject":!0})))});je._InternalPanelDoNotUseOrYouWillBeFired=Ze.ZP,Rt.Z=je},17356:function(Ot,Rt,ae){"use strict";var b=ae(17313),se=ae(29878),Ce=ae(19447),Fe=ae(33166),Oe=ae(83116),Re=ae(37613);const ue=_e=>{const{componentCls:ke,popoverColor:je,minWidth:Ie,fontWeightStrong:le,popoverPadding:E,boxShadowSecondary:a,colorTextHeading:x,borderRadiusLG:y,zIndexPopup:z,marginXS:te,colorBgElevated:re,popoverBg:ie}=_e;return[{[ke]:Object.assign(Object.assign({},(0,b.Wf)(_e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:z,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":re,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${ke}-content`]:{position:"relative"},[`${ke}-inner`]:{backgroundColor:ie,backgroundClip:"padding-box",borderRadius:y,boxShadow:a,padding:E},[`${ke}-title`]:{minWidth:Ie,marginBottom:te,color:x,fontWeight:le},[`${ke}-inner-content`]:{color:je}})},(0,Ce.ZP)(_e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${ke}-pure`]:{position:"relative",maxWidth:"none",margin:_e.sizePopupArrow,display:"inline-block",[`${ke}-content`]:{display:"inline-block"}}}]},Ze=_e=>{const{componentCls:ke}=_e;return{[ke]:Fe.i.map(je=>{const Ie=_e[`${je}6`];return{[`&${ke}-${je}`]:{"--antd-arrow-background-color":Ie,[`${ke}-inner`]:{backgroundColor:Ie},[`${ke}-arrow`]:{background:"transparent"}}}})}},We=_e=>{const{componentCls:ke,lineWidth:je,lineType:Ie,colorSplit:le,paddingSM:E,controlHeight:a,fontSize:x,lineHeight:y,padding:z}=_e,te=a-Math.round(x*y),re=te/2,ie=te/2-je,ce=z;return{[ke]:{[`${ke}-inner`]:{padding:0},[`${ke}-title`]:{margin:0,padding:`${re}px ${ce}px ${ie}px`,borderBottom:`${je}px ${Ie} ${le}`},[`${ke}-inner-content`]:{padding:`${E}px ${ce}px`}}}};Rt.Z=(0,Oe.Z)("Popover",_e=>{const{colorBgElevated:ke,colorText:je,wireframe:Ie}=_e,le=(0,Re.TS)(_e,{popoverPadding:12,popoverBg:ke,popoverColor:je});return[ue(le),Ze(le),Ie&&We(le),(0,se._y)(le,"zoom-big")]},_e=>({width:177,minWidth:177,zIndexPopup:_e.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},13570:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return Ht}});var b=ae(54476),se=ae(59301),Ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Fe=Ce,Oe=ae(7657),Re=function(jt,Kt){return se.createElement(Oe.Z,(0,b.Z)({},jt,{ref:Kt,icon:Fe}))},ue=se.forwardRef(Re),Ze=ue,We=ae(92310),_e=ae.n(We),ke=ae(20068),je=ae(42978),Ie=ae(75931),le=ae(18929),E=ae(10228),a=ae(26112);function x(it,jt){var Kt=it.disabled,Qe=it.prefixCls,et=it.character,Dt=it.characterRender,tn=it.index,Et=it.count,Vt=it.value,Be=it.allowHalf,Gt=it.focused,bn=it.onHover,Bt=it.onClick,At=function(be){bn(be,tn)},tt=function(be){Bt(be,tn)},Ve=function(be){be.keyCode===E.Z.ENTER&&Bt(be,tn)},De=tn+1,he=new Set([Qe]);Vt===0&&tn===0&&Gt?he.add("".concat(Qe,"-focused")):Be&&Vt+.5>=De&&Vt<De?(he.add("".concat(Qe,"-half")),he.add("".concat(Qe,"-active")),Gt&&he.add("".concat(Qe,"-focused"))):(De<=Vt?he.add("".concat(Qe,"-full")):he.add("".concat(Qe,"-zero")),De===Vt&&Gt&&he.add("".concat(Qe,"-focused")));var nt=typeof et=="function"?et(it):et,wt=se.createElement("li",{className:_e()(Array.from(he)),ref:jt},se.createElement("div",{onClick:Kt?null:tt,onKeyDown:Kt?null:Ve,onMouseMove:Kt?null:At,role:"radio","aria-checked":Vt>tn?"true":"false","aria-posinset":tn+1,"aria-setsize":Et,tabIndex:Kt?-1:0},se.createElement("div",{className:"".concat(Qe,"-first")},nt),se.createElement("div",{className:"".concat(Qe,"-second")},nt)));return Dt&&(wt=Dt(wt,it)),wt}var y=se.forwardRef(x);function z(){var it=se.useRef({});function jt(Qe){return it.current[Qe]}function Kt(Qe){return function(et){it.current[Qe]=et}}return[jt,Kt]}function te(it){var jt=it.pageXOffset,Kt="scrollLeft";if(typeof jt!="number"){var Qe=it.document;jt=Qe.documentElement[Kt],typeof jt!="number"&&(jt=Qe.body[Kt])}return jt}function re(it){var jt,Kt,Qe=it.ownerDocument,et=Qe.body,Dt=Qe&&Qe.documentElement,tn=it.getBoundingClientRect();return jt=tn.left,Kt=tn.top,jt-=Dt.clientLeft||et.clientLeft||0,Kt-=Dt.clientTop||et.clientTop||0,{left:jt,top:Kt}}function ie(it){var jt=re(it),Kt=it.ownerDocument,Qe=Kt.defaultView||Kt.parentWindow;return jt.left+=te(Qe),jt.left}var ce=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function pe(it,jt){var Kt,Qe=it.prefixCls,et=Qe===void 0?"rc-rate":Qe,Dt=it.className,tn=it.defaultValue,Et=it.value,Vt=it.count,Be=Vt===void 0?5:Vt,Gt=it.allowHalf,bn=Gt===void 0?!1:Gt,Bt=it.allowClear,At=Bt===void 0?!0:Bt,tt=it.character,Ve=tt===void 0?"\u2605":tt,De=it.characterRender,he=it.disabled,nt=it.direction,wt=nt===void 0?"ltr":nt,Ae=it.tabIndex,be=Ae===void 0?0:Ae,gt=it.autoFocus,Xe=it.onHoverChange,Te=it.onChange,St=it.onFocus,ln=it.onBlur,Lt=it.onKeyDown,Jt=it.onMouseLeave,Ut=(0,Ie.Z)(it,ce),qt=z(),bt=(0,je.Z)(qt,2),Yt=bt[0],Fn=bt[1],kt=se.useRef(null),Ft=function(){if(!he){var gn;(gn=kt.current)===null||gn===void 0||gn.focus()}};se.useImperativeHandle(jt,function(){return{focus:Ft,blur:function(){if(!he){var gn;(gn=kt.current)===null||gn===void 0||gn.blur()}}}});var In=(0,le.Z)(tn||0,{value:Et}),jn=(0,je.Z)(In,2),Gn=jn[0],na=jn[1],La=(0,le.Z)(null),nn=(0,je.Z)(La,2),$t=nn[0],mn=nn[1],Zn=function(gn,Qn){var _n=wt==="rtl",Hn=gn+1;if(bn){var Pa=Yt(gn),Qa=ie(Pa),Sn=Pa.clientWidth;(_n&&Qn-Qa>Sn/2||!_n&&Qn-Qa<Sn/2)&&(Hn-=.5)}return Hn},Cn=function(gn){na(gn),Te==null||Te(gn)},Ha=se.useState(!1),$a=(0,je.Z)(Ha,2),aa=$a[0],vn=$a[1],ka=function(){vn(!0),St==null||St()},vt=function(){vn(!1),ln==null||ln()},cn=se.useState(null),Nn=(0,je.Z)(cn,2),kn=Nn[0],xn=Nn[1],zn=function(gn,Qn){var _n=Zn(Qn,gn.pageX);_n!==$t&&(xn(_n),mn(null)),Xe==null||Xe(_n)},Jn=function(gn){he||(xn(null),mn(null),Xe==null||Xe(void 0)),gn&&(Jt==null||Jt(gn))},ht=function(gn,Qn){var _n=Zn(Qn,gn.pageX),Hn=!1;At&&(Hn=_n===Gn),Jn(),Cn(Hn?0:_n),mn(Hn?_n:null)},yt=function(gn){var Qn=gn.keyCode,_n=wt==="rtl",Hn=Gn;Qn===E.Z.RIGHT&&Hn<Be&&!_n?(bn?Hn+=.5:Hn+=1,Cn(Hn),gn.preventDefault()):Qn===E.Z.LEFT&&Hn>0&&!_n||Qn===E.Z.RIGHT&&Hn>0&&_n?(bn?Hn-=.5:Hn-=1,Cn(Hn),gn.preventDefault()):Qn===E.Z.LEFT&&Hn<Be&&_n&&(bn?Hn+=.5:Hn+=1,Cn(Hn),gn.preventDefault()),Lt==null||Lt(gn)};se.useEffect(function(){gt&&!he&&Ft()},[]);var pt=new Array(Be).fill(0).map(function(En,gn){return se.createElement(y,{ref:Fn(gn),index:gn,count:Be,disabled:he,prefixCls:"".concat(et,"-star"),allowHalf:bn,value:kn===null?Gn:kn,onClick:ht,onHover:zn,key:En||gn,character:Ve,characterRender:De,focused:aa})}),sn=_e()(et,Dt,(Kt={},(0,ke.Z)(Kt,"".concat(et,"-disabled"),he),(0,ke.Z)(Kt,"".concat(et,"-rtl"),wt==="rtl"),Kt));return se.createElement("ul",(0,b.Z)({className:sn,onMouseLeave:Jn,tabIndex:he?-1:be,onFocus:he?null:ka,onBlur:he?null:vt,onKeyDown:he?null:yt,ref:kt,role:"radiogroup"},(0,a.Z)(Ut,{aria:!0,data:!0,attr:!0})),pt)}var ge=se.forwardRef(pe),ye=ge,Ee=ae(36355),we=ae(6848),ve=ae(17313),Je=ae(83116),Ge=ae(37613);const ot=it=>{const{componentCls:jt}=it;return{[`${jt}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:it.marginXS},"> div":{transition:`all ${it.motionDurationMid}, outline 0s`,"&:hover":{transform:it.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${it.lineWidth}px dashed ${it.starColor}`,transform:it.starHoverScale}},"&-first, &-second":{color:it.starBg,transition:`all ${it.motionDurationMid}`,userSelect:"none",[it.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${jt}-star-first, &-half ${jt}-star-second`]:{opacity:1},[`&-half ${jt}-star-first, &-full ${jt}-star-second`]:{color:"inherit"}}}},Le=it=>({[`&-rtl${it.componentCls}`]:{direction:"rtl"}}),Ue=it=>{const{componentCls:jt}=it;return{[jt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ve.Wf)(it)),{display:"inline-block",margin:0,padding:0,color:it.starColor,fontSize:it.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${jt} ${jt}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),ot(it)),{[`+ ${jt}-text`]:{display:"inline-block",marginInlineStart:it.marginXS,fontSize:it.fontSize}}),Le(it))}};var st=(0,Je.Z)("Rate",it=>{const jt=(0,Ge.TS)(it,{});return[Ue(jt)]},it=>({starColor:it.yellow6,starSize:it.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:it.colorFillContent})),Ke=function(it,jt){var Kt={};for(var Qe in it)Object.prototype.hasOwnProperty.call(it,Qe)&&jt.indexOf(Qe)<0&&(Kt[Qe]=it[Qe]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,Qe=Object.getOwnPropertySymbols(it);et<Qe.length;et++)jt.indexOf(Qe[et])<0&&Object.prototype.propertyIsEnumerable.call(it,Qe[et])&&(Kt[Qe[et]]=it[Qe[et]]);return Kt},Ht=se.forwardRef((it,jt)=>{const{prefixCls:Kt,className:Qe,rootClassName:et,style:Dt,tooltips:tn,character:Et=se.createElement(Ze,null)}=it,Vt=Ke(it,["prefixCls","className","rootClassName","style","tooltips","character"]),Be=(he,nt)=>{let{index:wt}=nt;return tn?se.createElement(we.Z,{title:tn[wt]},he):he},{getPrefixCls:Gt,direction:bn,rate:Bt}=se.useContext(Ee.E_),At=Gt("rate",Kt),[tt,Ve]=st(At),De=Object.assign(Object.assign({},Bt==null?void 0:Bt.style),Dt);return tt(se.createElement(ye,Object.assign({ref:jt,character:Et,characterRender:Be},Vt,{className:_e()(Qe,et,Ve,Bt==null?void 0:Bt.className),style:De,prefixCls:At,direction:bn})))})},61621:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return Ve}});var b=ae(92310),se=ae.n(b),Ce=ae(59301),Fe=ae(36355),Oe=ae(2738),ue=De=>{const{prefixCls:he,className:nt,style:wt,size:Ae,shape:be}=De,gt=se()({[`${he}-lg`]:Ae==="large",[`${he}-sm`]:Ae==="small"}),Xe=se()({[`${he}-circle`]:be==="circle",[`${he}-square`]:be==="square",[`${he}-round`]:be==="round"}),Te=Ce.useMemo(()=>typeof Ae=="number"?{width:Ae,height:Ae,lineHeight:`${Ae}px`}:{},[Ae]);return Ce.createElement("span",{className:se()(he,gt,Xe,nt),style:Object.assign(Object.assign({},Te),wt)})},Ze=ae(36237),We=ae(83116),_e=ae(37613);const ke=new Ze.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),je=De=>({height:De,lineHeight:`${De}px`}),Ie=De=>Object.assign({width:De},je(De)),le=De=>({background:De.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:ke,animationDuration:De.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),E=De=>Object.assign({width:De*5,minWidth:De*5},je(De)),a=De=>{const{skeletonAvatarCls:he,gradientFromColor:nt,controlHeight:wt,controlHeightLG:Ae,controlHeightSM:be}=De;return{[`${he}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:nt},Ie(wt)),[`${he}${he}-circle`]:{borderRadius:"50%"},[`${he}${he}-lg`]:Object.assign({},Ie(Ae)),[`${he}${he}-sm`]:Object.assign({},Ie(be))}},x=De=>{const{controlHeight:he,borderRadiusSM:nt,skeletonInputCls:wt,controlHeightLG:Ae,controlHeightSM:be,gradientFromColor:gt}=De;return{[`${wt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:gt,borderRadius:nt},E(he)),[`${wt}-lg`]:Object.assign({},E(Ae)),[`${wt}-sm`]:Object.assign({},E(be))}},y=De=>Object.assign({width:De},je(De)),z=De=>{const{skeletonImageCls:he,imageSizeBase:nt,gradientFromColor:wt,borderRadiusSM:Ae}=De;return{[`${he}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:wt,borderRadius:Ae},y(nt*2)),{[`${he}-path`]:{fill:"#bfbfbf"},[`${he}-svg`]:Object.assign(Object.assign({},y(nt)),{maxWidth:nt*4,maxHeight:nt*4}),[`${he}-svg${he}-svg-circle`]:{borderRadius:"50%"}}),[`${he}${he}-circle`]:{borderRadius:"50%"}}},te=(De,he,nt)=>{const{skeletonButtonCls:wt}=De;return{[`${nt}${wt}-circle`]:{width:he,minWidth:he,borderRadius:"50%"},[`${nt}${wt}-round`]:{borderRadius:he}}},re=De=>Object.assign({width:De*2,minWidth:De*2},je(De)),ie=De=>{const{borderRadiusSM:he,skeletonButtonCls:nt,controlHeight:wt,controlHeightLG:Ae,controlHeightSM:be,gradientFromColor:gt}=De;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${nt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:gt,borderRadius:he,width:wt*2,minWidth:wt*2},re(wt))},te(De,wt,nt)),{[`${nt}-lg`]:Object.assign({},re(Ae))}),te(De,Ae,`${nt}-lg`)),{[`${nt}-sm`]:Object.assign({},re(be))}),te(De,be,`${nt}-sm`))},ce=De=>{const{componentCls:he,skeletonAvatarCls:nt,skeletonTitleCls:wt,skeletonParagraphCls:Ae,skeletonButtonCls:be,skeletonInputCls:gt,skeletonImageCls:Xe,controlHeight:Te,controlHeightLG:St,controlHeightSM:ln,gradientFromColor:Lt,padding:Jt,marginSM:Ut,borderRadius:qt,titleHeight:bt,blockRadius:Yt,paragraphLiHeight:Fn,controlHeightXS:kt,paragraphMarginTop:Ft}=De;return{[`${he}`]:{display:"table",width:"100%",[`${he}-header`]:{display:"table-cell",paddingInlineEnd:Jt,verticalAlign:"top",[`${nt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Lt},Ie(Te)),[`${nt}-circle`]:{borderRadius:"50%"},[`${nt}-lg`]:Object.assign({},Ie(St)),[`${nt}-sm`]:Object.assign({},Ie(ln))},[`${he}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${wt}`]:{width:"100%",height:bt,background:Lt,borderRadius:Yt,[`+ ${Ae}`]:{marginBlockStart:ln}},[`${Ae}`]:{padding:0,"> li":{width:"100%",height:Fn,listStyle:"none",background:Lt,borderRadius:Yt,"+ li":{marginBlockStart:kt}}},[`${Ae}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${he}-content`]:{[`${wt}, ${Ae} > li`]:{borderRadius:qt}}},[`${he}-with-avatar ${he}-content`]:{[`${wt}`]:{marginBlockStart:Ut,[`+ ${Ae}`]:{marginBlockStart:Ft}}},[`${he}${he}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},ie(De)),a(De)),x(De)),z(De)),[`${he}${he}-block`]:{width:"100%",[`${be}`]:{width:"100%"},[`${gt}`]:{width:"100%"}},[`${he}${he}-active`]:{[`
|
|
${wt},
|
|
${Ae} > li,
|
|
${nt},
|
|
${be},
|
|
${gt},
|
|
${Xe}
|
|
`]:Object.assign({},le(De))}}};var pe=(0,We.Z)("Skeleton",De=>{const{componentCls:he}=De,nt=(0,_e.TS)(De,{skeletonAvatarCls:`${he}-avatar`,skeletonTitleCls:`${he}-title`,skeletonParagraphCls:`${he}-paragraph`,skeletonButtonCls:`${he}-button`,skeletonInputCls:`${he}-input`,skeletonImageCls:`${he}-image`,imageSizeBase:De.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${De.gradientFromColor} 25%, ${De.gradientToColor} 37%, ${De.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[ce(nt)]},De=>{const{colorFillContent:he,colorFill:nt}=De,wt=he,Ae=nt;return{color:wt,colorGradientEnd:Ae,gradientFromColor:wt,gradientToColor:Ae,titleHeight:De.controlHeight/2,blockRadius:De.borderRadiusSM,paragraphMarginTop:De.marginLG+De.marginXXS,paragraphLiHeight:De.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ye=De=>{const{prefixCls:he,className:nt,rootClassName:wt,active:Ae,shape:be="circle",size:gt="default"}=De,{getPrefixCls:Xe}=Ce.useContext(Fe.E_),Te=Xe("skeleton",he),[St,ln]=pe(Te),Lt=(0,Oe.Z)(De,["prefixCls","className"]),Jt=se()(Te,`${Te}-element`,{[`${Te}-active`]:Ae},nt,wt,ln);return St(Ce.createElement("div",{className:Jt},Ce.createElement(ue,Object.assign({prefixCls:`${Te}-avatar`,shape:be,size:gt},Lt))))},we=De=>{const{prefixCls:he,className:nt,rootClassName:wt,active:Ae,block:be=!1,size:gt="default"}=De,{getPrefixCls:Xe}=Ce.useContext(Fe.E_),Te=Xe("skeleton",he),[St,ln]=pe(Te),Lt=(0,Oe.Z)(De,["prefixCls"]),Jt=se()(Te,`${Te}-element`,{[`${Te}-active`]:Ae,[`${Te}-block`]:be},nt,wt,ln);return St(Ce.createElement("div",{className:Jt},Ce.createElement(ue,Object.assign({prefixCls:`${Te}-button`,size:gt},Lt))))};const ve="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var Ge=De=>{const{prefixCls:he,className:nt,rootClassName:wt,style:Ae,active:be}=De,{getPrefixCls:gt}=Ce.useContext(Fe.E_),Xe=gt("skeleton",he),[Te,St]=pe(Xe),ln=se()(Xe,`${Xe}-element`,{[`${Xe}-active`]:be},nt,wt,St);return Te(Ce.createElement("div",{className:ln},Ce.createElement("div",{className:se()(`${Xe}-image`,nt),style:Ae},Ce.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Xe}-image-svg`},Ce.createElement("path",{d:ve,className:`${Xe}-image-path`})))))},Le=De=>{const{prefixCls:he,className:nt,rootClassName:wt,active:Ae,block:be,size:gt="default"}=De,{getPrefixCls:Xe}=Ce.useContext(Fe.E_),Te=Xe("skeleton",he),[St,ln]=pe(Te),Lt=(0,Oe.Z)(De,["prefixCls"]),Jt=se()(Te,`${Te}-element`,{[`${Te}-active`]:Ae,[`${Te}-block`]:be},nt,wt,ln);return St(Ce.createElement("div",{className:Jt},Ce.createElement(ue,Object.assign({prefixCls:`${Te}-input`,size:gt},Lt))))},Ue=ae(54476),st={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},Ke=st,rt=ae(7657),Ht=function(he,nt){return Ce.createElement(rt.Z,(0,Ue.Z)({},he,{ref:nt,icon:Ke}))},it=Ce.forwardRef(Ht),jt=it,Qe=De=>{const{prefixCls:he,className:nt,rootClassName:wt,style:Ae,active:be,children:gt}=De,{getPrefixCls:Xe}=Ce.useContext(Fe.E_),Te=Xe("skeleton",he),[St,ln]=pe(Te),Lt=se()(Te,`${Te}-element`,{[`${Te}-active`]:be},ln,nt,wt),Jt=gt!=null?gt:Ce.createElement(jt,null);return St(Ce.createElement("div",{className:Lt},Ce.createElement("div",{className:se()(`${Te}-image`,nt),style:Ae},Jt)))},et=ae(94480),tn=De=>{const he=Xe=>{const{width:Te,rows:St=2}=De;if(Array.isArray(Te))return Te[Xe];if(St-1===Xe)return Te},{prefixCls:nt,className:wt,style:Ae,rows:be}=De,gt=(0,et.Z)(Array(be)).map((Xe,Te)=>Ce.createElement("li",{key:Te,style:{width:he(Te)}}));return Ce.createElement("ul",{className:se()(nt,wt),style:Ae},gt)},Vt=De=>{let{prefixCls:he,className:nt,width:wt,style:Ae}=De;return Ce.createElement("h3",{className:se()(he,nt),style:Object.assign({width:wt},Ae)})};function Be(De){return De&&typeof De=="object"?De:{}}function Gt(De,he){return De&&!he?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function bn(De,he){return!De&&he?{width:"38%"}:De&&he?{width:"50%"}:{}}function Bt(De,he){const nt={};return(!De||!he)&&(nt.width="61%"),!De&&he?nt.rows=3:nt.rows=2,nt}const At=De=>{const{prefixCls:he,loading:nt,className:wt,rootClassName:Ae,style:be,children:gt,avatar:Xe=!1,title:Te=!0,paragraph:St=!0,active:ln,round:Lt}=De,{getPrefixCls:Jt,direction:Ut,skeleton:qt}=Ce.useContext(Fe.E_),bt=Jt("skeleton",he),[Yt,Fn]=pe(bt);if(nt||!("loading"in De)){const kt=!!Xe,Ft=!!Te,In=!!St;let jn;if(kt){const La=Object.assign(Object.assign({prefixCls:`${bt}-avatar`},Gt(Ft,In)),Be(Xe));jn=Ce.createElement("div",{className:`${bt}-header`},Ce.createElement(ue,Object.assign({},La)))}let Gn;if(Ft||In){let La;if(Ft){const $t=Object.assign(Object.assign({prefixCls:`${bt}-title`},bn(kt,In)),Be(Te));La=Ce.createElement(Vt,Object.assign({},$t))}let nn;if(In){const $t=Object.assign(Object.assign({prefixCls:`${bt}-paragraph`},Bt(kt,Ft)),Be(St));nn=Ce.createElement(tn,Object.assign({},$t))}Gn=Ce.createElement("div",{className:`${bt}-content`},La,nn)}const na=se()(bt,{[`${bt}-with-avatar`]:kt,[`${bt}-active`]:ln,[`${bt}-rtl`]:Ut==="rtl",[`${bt}-round`]:Lt},qt==null?void 0:qt.className,wt,Ae,Fn);return Yt(Ce.createElement("div",{className:na,style:Object.assign(Object.assign({},qt==null?void 0:qt.style),be)},jn,Gn))}return typeof gt!="undefined"?gt:null};At.Button=we,At.Avatar=ye,At.Input=Le,At.Image=Ge,At.Node=Qe;var tt=At,Ve=tt},31797:function(Ot,Rt,ae){"use strict";ae.d(Rt,{default:function(){return pe}});var b=ae(59301),se=ae(56762),Ce=ae(92343),Fe=ae(92310),Oe=ae.n(Fe),Re=ae(36355),ue=ae(61621),We=ge=>{const{value:ye,formatter:Ee,precision:we,decimalSeparator:ve,groupSeparator:Je="",prefixCls:Ge}=ge;let ot;if(typeof Ee=="function")ot=Ee(ye);else{const Le=String(ye),Ue=Le.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Ue||Le==="-")ot=Le;else{const st=Ue[1];let Ke=Ue[2]||"0",rt=Ue[4]||"";Ke=Ke.replace(/\B(?=(\d{3})+(?!\d))/g,Je),typeof we=="number"&&(rt=rt.padEnd(we,"0").slice(0,we>0?we:0)),rt&&(rt=`${ve}${rt}`),ot=[b.createElement("span",{key:"int",className:`${Ge}-content-value-int`},st,Ke),rt&&b.createElement("span",{key:"decimal",className:`${Ge}-content-value-decimal`},rt)]}}return b.createElement("span",{className:`${Ge}-content-value`},ot)},_e=ae(17313),ke=ae(83116),je=ae(37613);const Ie=ge=>{const{componentCls:ye,marginXXS:Ee,padding:we,colorTextDescription:ve,titleFontSize:Je,colorTextHeading:Ge,contentFontSize:ot,fontFamily:Le}=ge;return{[`${ye}`]:Object.assign(Object.assign({},(0,_e.Wf)(ge)),{[`${ye}-title`]:{marginBottom:Ee,color:ve,fontSize:Je},[`${ye}-skeleton`]:{paddingTop:we},[`${ye}-content`]:{color:Ge,fontSize:ot,fontFamily:Le,[`${ye}-content-value`]:{display:"inline-block",direction:"ltr"},[`${ye}-content-prefix, ${ye}-content-suffix`]:{display:"inline-block"},[`${ye}-content-prefix`]:{marginInlineEnd:Ee},[`${ye}-content-suffix`]:{marginInlineStart:Ee}}})}};var le=(0,ke.Z)("Statistic",ge=>{const ye=(0,je.TS)(ge,{});return[Ie(ye)]},ge=>{const{fontSizeHeading3:ye,fontSize:Ee}=ge;return{titleFontSize:Ee,contentFontSize:ye}}),a=ge=>{const{prefixCls:ye,className:Ee,rootClassName:we,style:ve,valueStyle:Je,value:Ge=0,title:ot,valueRender:Le,prefix:Ue,suffix:st,loading:Ke=!1,onMouseEnter:rt,onMouseLeave:Ht,decimalSeparator:it=".",groupSeparator:jt=","}=ge,{getPrefixCls:Kt,direction:Qe,statistic:et}=b.useContext(Re.E_),Dt=Kt("statistic",ye),[tn,Et]=le(Dt),Vt=b.createElement(We,Object.assign({decimalSeparator:it,groupSeparator:jt,prefixCls:Dt},ge,{value:Ge})),Be=Oe()(Dt,{[`${Dt}-rtl`]:Qe==="rtl"},et==null?void 0:et.className,Ee,we,Et);return tn(b.createElement("div",{className:Be,style:Object.assign(Object.assign({},et==null?void 0:et.style),ve),onMouseEnter:rt,onMouseLeave:Ht},ot&&b.createElement("div",{className:`${Dt}-title`},ot),b.createElement(ue.Z,{paragraph:!1,loading:Ke,className:`${Dt}-skeleton`},b.createElement("div",{style:Je,className:`${Dt}-content`},Ue&&b.createElement("span",{className:`${Dt}-content-prefix`},Ue),Le?Le(Vt):Vt,st&&b.createElement("span",{className:`${Dt}-content-suffix`},st)))))};const x=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function y(ge,ye){let Ee=ge;const we=/\[[^\]]*]/g,ve=(ye.match(we)||[]).map(Le=>Le.slice(1,-1)),Je=ye.replace(we,"[]"),Ge=x.reduce((Le,Ue)=>{let[st,Ke]=Ue;if(Le.includes(st)){const rt=Math.floor(Ee/Ke);return Ee-=rt*Ke,Le.replace(new RegExp(`${st}+`,"g"),Ht=>{const it=Ht.length;return rt.toString().padStart(it,"0")})}return Le},Je);let ot=0;return Ge.replace(we,()=>{const Le=ve[ot];return ot+=1,Le})}function z(ge,ye){const{format:Ee=""}=ye,we=new Date(ge).getTime(),ve=Date.now(),Je=Math.max(we-ve,0);return y(Je,Ee)}const te=1e3/30;function re(ge){return new Date(ge).getTime()}const ie=ge=>{const{value:ye,format:Ee="HH:mm:ss",onChange:we,onFinish:ve}=ge,Je=(0,se.Z)(),Ge=b.useRef(null),ot=()=>{ve==null||ve(),Ge.current&&(clearInterval(Ge.current),Ge.current=null)},Le=()=>{const Ke=re(ye);Ke>=Date.now()&&(Ge.current=setInterval(()=>{Je(),we==null||we(Ke-Date.now()),Ke<Date.now()&&ot()},te))};b.useEffect(()=>(Le(),()=>{Ge.current&&(clearInterval(Ge.current),Ge.current=null)}),[ye]);const Ue=(Ke,rt)=>z(Ke,Object.assign(Object.assign({},rt),{format:Ee})),st=Ke=>(0,Ce.Tm)(Ke,{title:void 0});return b.createElement(a,Object.assign({},ge,{valueRender:st,formatter:Ue}))};var ce=b.memo(ie);a.Countdown=ce;var pe=a},15969:function(Ot,Rt,ae){"use strict";ae.d(Rt,{N:function(){return b}});const b=se=>({color:se.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${se.motionDurationSlow}`,"&:focus, &:hover":{color:se.colorLinkHover},"&:active":{color:se.colorLinkActive}})},1710:function(Ot,Rt,ae){"use strict";ae.d(Rt,{default:function(){return Nr}});var b={},se="rc-table-internal-hook",Ce=ae(42978),Fe=ae(6089),Oe=ae(34280),Re=ae(13697),ue=ae(59301),Ze=ae(4676);function We(fe){var me=ue.createContext(void 0),Me=function($e){var Ye=$e.value,Nt=$e.children,xt=ue.useRef(Ye);xt.current=Ye;var Tt=ue.useState(function(){return{getValue:function(){return xt.current},listeners:new Set}}),Qt=(0,Ce.Z)(Tt,1),Mt=Qt[0];return(0,Oe.Z)(function(){(0,Ze.unstable_batchedUpdates)(function(){Mt.listeners.forEach(function(Wt){Wt(Ye)})})},[Ye]),ue.createElement(me.Provider,{value:Mt},Nt)};return{Context:me,Provider:Me,defaultValue:fe}}function _e(fe,me){var Me=(0,Fe.Z)(typeof me=="function"?me:function(Wt){if(me===void 0)return Wt;if(!Array.isArray(me))return Wt[me];var wn={};return me.forEach(function(yn){wn[yn]=Wt[yn]}),wn}),He=ue.useContext(fe==null?void 0:fe.Context),$e=He||{},Ye=$e.listeners,Nt=$e.getValue,xt=ue.useRef();xt.current=Me(He?Nt():fe==null?void 0:fe.defaultValue);var Tt=ue.useState({}),Qt=(0,Ce.Z)(Tt,2),Mt=Qt[1];return(0,Oe.Z)(function(){if(!He)return;function Wt(wn){var yn=Me(wn);(0,Re.Z)(xt.current,yn,!0)||Mt({})}return Ye.add(Wt),function(){Ye.delete(Wt)}},[He]),xt.current}var ke=ae(54476),je=ae(8654);function Ie(){var fe=ue.createContext(null);function me(){return ue.useContext(fe)}function Me($e,Ye){var Nt=(0,je.Yr)($e),xt=function(Qt,Mt){var Wt=Nt?{ref:Mt}:{},wn=ue.useRef(0),yn=ue.useRef(Qt),Ln=me();return Ln!==null?ue.createElement($e,(0,ke.Z)({},Qt,Wt)):((!Ye||Ye(yn.current,Qt))&&(wn.current+=1),yn.current=Qt,ue.createElement(fe.Provider,{value:wn.current},ue.createElement($e,(0,ke.Z)({},Qt,Wt))))};return Nt?ue.forwardRef(xt):xt}function He($e,Ye){var Nt=(0,je.Yr)($e),xt=function(Qt,Mt){var Wt=Nt?{ref:Mt}:{};return me(),ue.createElement($e,(0,ke.Z)({},Qt,Wt))};return Nt?ue.memo(ue.forwardRef(xt),Ye):ue.memo(xt,Ye)}return{makeImmutable:Me,responseImmutable:He,useImmutableMark:me}}var le=Ie(),E=le.makeImmutable,a=le.responseImmutable,x=le.useImmutableMark,y=Ie(),z=y.makeImmutable,te=y.responseImmutable,re=y.useImmutableMark,ie=We(),ce=ie;function pe(fe,me){var Me=ue.useRef(0);Me.current+=1;var He=ue.useRef(fe),$e=[];Object.keys(fe||{}).map(function(Nt){var xt;(fe==null?void 0:fe[Nt])!==((xt=He.current)===null||xt===void 0?void 0:xt[Nt])&&$e.push(Nt)}),He.current=fe;var Ye=ue.useRef([]);return $e.length&&(Ye.current=$e),ue.useDebugValue(Me.current),ue.useDebugValue(Ye.current.join(", ")),me&&console.log("".concat(me,":"),Me.current,Ye.current),Me.current}var ge=null,ye=ue.memo(function(){var fe=pe();return ue.createElement("h1",null,"Render Times: ",fe)});ye.displayName="RenderBlock";var Ee=ae(76190),we=ae(33885),ve=ae(20068),Je=ae(92310),Ge=ae.n(Je),ot=ae(80547),Le=ae(97938),Ue=ae(48736),st=ue.createContext({renderWithProps:!1}),Ke=st,rt="RC_TABLE_KEY";function Ht(fe){return fe==null?[]:Array.isArray(fe)?fe:[fe]}function it(fe){var me=[],Me={};return fe.forEach(function(He){for(var $e=He||{},Ye=$e.key,Nt=$e.dataIndex,xt=Ye||Ht(Nt).join("-")||rt;Me[xt];)xt="".concat(xt,"_next");Me[xt]=!0,me.push(xt)}),me}function jt(fe){return fe!=null}function Kt(fe){return fe&&(0,Ee.Z)(fe)==="object"&&!Array.isArray(fe)&&!ue.isValidElement(fe)}function Qe(fe,me,Me,He,$e,Ye){var Nt=ue.useContext(Ke),xt=re(),Tt=(0,ot.Z)(function(){if(jt(He))return[He];var Qt=me==null||me===""?[]:Array.isArray(me)?me:[me],Mt=(0,Le.Z)(fe,Qt),Wt=Mt,wn=void 0;if($e){var yn=$e(Mt,fe,Me);Kt(yn)?(Wt=yn.children,wn=yn.props,Nt.renderWithProps=!0):Wt=yn}return[Wt,wn]},[xt,fe,He,me,$e,Me],function(Qt,Mt){if(Ye){var Wt=(0,Ce.Z)(Qt,2),wn=Wt[1],yn=(0,Ce.Z)(Mt,2),Ln=yn[1];return Ye(Ln,wn)}return Nt.renderWithProps?!0:!(0,Re.Z)(Qt,Mt,!0)});return Tt}function et(fe,me,Me,He){var $e=fe+me-1;return fe<=He&&$e>=Me}function Dt(fe,me){return _e(ce,function(Me){var He=et(fe,me||1,Me.hoverStartRow,Me.hoverEndRow);return[He,Me.onHover]})}var tn=function(me){var Me=me.ellipsis,He=me.rowType,$e=me.children,Ye,Nt=Me===!0?{showTitle:!0}:Me;return Nt&&(Nt.showTitle||He==="header")&&(typeof $e=="string"||typeof $e=="number"?Ye=$e.toString():ue.isValidElement($e)&&typeof $e.props.children=="string"&&(Ye=$e.props.children)),Ye};function Et(fe){var me,Me,He,$e,Ye,Nt,xt,Tt,Qt=fe.component,Mt=fe.children,Wt=fe.ellipsis,wn=fe.scope,yn=fe.prefixCls,Ln=fe.className,ha=fe.align,ra=fe.record,da=fe.render,oa=fe.dataIndex,Oa=fe.renderIndex,er=fe.shouldCellUpdate,rr=fe.index,Wa=fe.rowType,br=fe.colSpan,Dr=fe.rowSpan,Ta=fe.fixLeft,Ua=fe.fixRight,Ma=fe.firstFixLeft,Ba=fe.lastFixLeft,Za=fe.firstFixRight,Sr=fe.lastFixRight,kr=fe.appendNode,Br=fe.additionalProps,sr=Br===void 0?{}:Br,Zr=fe.isSticky,Kr="".concat(yn,"-cell"),Lo=_e(ce,["supportSticky","allColumnsFixedLeft"]),io=Lo.supportSticky,Vo=Lo.allColumnsFixedLeft,Do=Qe(ra,oa,Oa,Mt,da,er),Ir=(0,Ce.Z)(Do,2),Jo=Ir[0],no=Ir[1],Zo={},Ro=typeof Ta=="number"&&io,Ai=typeof Ua=="number"&&io;Ro&&(Zo.position="sticky",Zo.left=Ta),Ai&&(Zo.position="sticky",Zo.right=Ua);var vr=(me=(Me=(He=no==null?void 0:no.colSpan)!==null&&He!==void 0?He:sr.colSpan)!==null&&Me!==void 0?Me:br)!==null&&me!==void 0?me:1,dr=($e=(Ye=(Nt=no==null?void 0:no.rowSpan)!==null&&Nt!==void 0?Nt:sr.rowSpan)!==null&&Ye!==void 0?Ye:Dr)!==null&&$e!==void 0?$e:1,ir=Dt(rr,dr),qa=(0,Ce.Z)(ir,2),so=qa[0],Ya=qa[1],Ar=function(ni){var Fi;ra&&Ya(rr,rr+dr-1),sr==null||(Fi=sr.onMouseEnter)===null||Fi===void 0||Fi.call(sr,ni)},qr=function(ni){var Fi;ra&&Ya(-1,-1),sr==null||(Fi=sr.onMouseLeave)===null||Fi===void 0||Fi.call(sr,ni)};if(vr===0||dr===0)return null;var Jr=(xt=sr.title)!==null&&xt!==void 0?xt:tn({rowType:Wa,ellipsis:Wt,children:Jo}),di=Ge()(Kr,Ln,(Tt={},(0,ve.Z)(Tt,"".concat(Kr,"-fix-left"),Ro&&io),(0,ve.Z)(Tt,"".concat(Kr,"-fix-left-first"),Ma&&io),(0,ve.Z)(Tt,"".concat(Kr,"-fix-left-last"),Ba&&io),(0,ve.Z)(Tt,"".concat(Kr,"-fix-left-all"),Ba&&Vo&&io),(0,ve.Z)(Tt,"".concat(Kr,"-fix-right"),Ai&&io),(0,ve.Z)(Tt,"".concat(Kr,"-fix-right-first"),Za&&io),(0,ve.Z)(Tt,"".concat(Kr,"-fix-right-last"),Sr&&io),(0,ve.Z)(Tt,"".concat(Kr,"-ellipsis"),Wt),(0,ve.Z)(Tt,"".concat(Kr,"-with-append"),kr),(0,ve.Z)(Tt,"".concat(Kr,"-fix-sticky"),(Ro||Ai)&&Zr&&io),(0,ve.Z)(Tt,"".concat(Kr,"-row-hover"),!no&&so),Tt),sr.className,no==null?void 0:no.className),ci={};ha&&(ci.textAlign=ha);var Hi=(0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)({},Zo),sr.style),ci),no==null?void 0:no.style),ti=Jo;return(0,Ee.Z)(ti)==="object"&&!Array.isArray(ti)&&!ue.isValidElement(ti)&&(ti=null),Wt&&(Ba||Za)&&(ti=ue.createElement("span",{className:"".concat(Kr,"-content")},ti)),ue.createElement(Qt,(0,ke.Z)({},no,sr,{className:di,style:Hi,title:Jr,scope:wn,onMouseEnter:Ar,onMouseLeave:qr,colSpan:vr!==1?vr:null,rowSpan:dr!==1?dr:null}),kr,ti)}var Vt=ue.memo(Et);function Be(fe,me,Me,He,$e,Ye){var Nt=Me[fe]||{},xt=Me[me]||{},Tt,Qt;Nt.fixed==="left"?Tt=He.left[$e==="rtl"?me:fe]:xt.fixed==="right"&&(Qt=He.right[$e==="rtl"?fe:me]);var Mt=!1,Wt=!1,wn=!1,yn=!1,Ln=Me[me+1],ha=Me[fe-1],ra=!(Ye!=null&&Ye.children);if($e==="rtl"){if(Tt!==void 0){var da=ha&&ha.fixed==="left";yn=!da&&ra}else if(Qt!==void 0){var oa=Ln&&Ln.fixed==="right";wn=!oa&&ra}}else if(Tt!==void 0){var Oa=Ln&&Ln.fixed==="left";Mt=!Oa&&ra}else if(Qt!==void 0){var er=ha&&ha.fixed==="right";Wt=!er&&ra}return{fixLeft:Tt,fixRight:Qt,lastFixLeft:Mt,firstFixRight:Wt,lastFixRight:wn,firstFixLeft:yn,isSticky:He.isSticky}}var Gt=ue.createContext({}),bn=Gt;function Bt(fe){var me=fe.className,Me=fe.index,He=fe.children,$e=fe.colSpan,Ye=$e===void 0?1:$e,Nt=fe.rowSpan,xt=fe.align,Tt=_e(ce,["prefixCls","direction"]),Qt=Tt.prefixCls,Mt=Tt.direction,Wt=ue.useContext(bn),wn=Wt.scrollColumnIndex,yn=Wt.stickyOffsets,Ln=Wt.flattenColumns,ha=Wt.columns,ra=Me+Ye-1,da=ra+1===wn?Ye+1:Ye,oa=Be(Me,Me+da-1,Ln,yn,Mt,ha==null?void 0:ha[Me]);return ue.createElement(Vt,(0,ke.Z)({className:me,index:Me,component:"td",prefixCls:Qt,record:null,dataIndex:null,align:xt,colSpan:da,rowSpan:Nt,render:function(){return He}},oa))}var At=ae(75931),tt=["children"];function Ve(fe){var me=fe.children,Me=(0,At.Z)(fe,tt);return ue.createElement("tr",Me,me)}function De(fe){var me=fe.children;return me}De.Row=Ve,De.Cell=Bt;var he=De;function nt(fe){var me=fe.children,Me=fe.stickyOffsets,He=fe.flattenColumns,$e=fe.columns,Ye=_e(ce,"prefixCls"),Nt=He.length-1,xt=He[Nt],Tt=ue.useMemo(function(){return{stickyOffsets:Me,flattenColumns:He,scrollColumnIndex:xt!=null&&xt.scrollbar?Nt:null,columns:$e}},[xt,He,Nt,Me,$e]);return ue.createElement(bn.Provider,{value:Tt},ue.createElement("tfoot",{className:"".concat(Ye,"-summary")},me))}var wt=te(nt),Ae=he,be=ae(70425),gt=ae(29301),Xe=ae(29194),Te=ae(24514),St=ae(75152),ln=ae(26112);function Lt(fe,me,Me,He,$e,Ye,Nt){fe.push({record:me,indent:Me,index:Nt});var xt=Ye(me),Tt=$e==null?void 0:$e.has(xt);if(me&&Array.isArray(me[He])&&Tt)for(var Qt=0;Qt<me[He].length;Qt+=1)Lt(fe,me[He][Qt],Me+1,He,$e,Ye,Qt)}function Jt(fe,me,Me,He){var $e=ue.useMemo(function(){if(Me!=null&&Me.size){for(var Ye=[],Nt=0;Nt<(fe==null?void 0:fe.length);Nt+=1){var xt=fe[Nt];Lt(Ye,xt,0,me,Me,He,Nt)}return Ye}return fe==null?void 0:fe.map(function(Tt,Qt){return{record:Tt,indent:0,index:Qt}})},[fe,me,Me,He]);return $e}function Ut(fe){var me=fe.prefixCls,Me=fe.children,He=fe.component,$e=fe.cellComponent,Ye=fe.className,Nt=fe.expanded,xt=fe.colSpan,Tt=fe.isEmpty,Qt=_e(ce,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Mt=Qt.scrollbarSize,Wt=Qt.fixHeader,wn=Qt.fixColumn,yn=Qt.componentWidth,Ln=Qt.horizonScroll,ha=Me;return(Tt?Ln&&yn:wn)&&(ha=ue.createElement("div",{style:{width:yn-(Wt?Mt:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(me,"-expanded-row-fixed")},ha)),ue.createElement(He,{className:Ye,style:{display:Nt?null:"none"}},ue.createElement(Vt,{component:$e,prefixCls:me,colSpan:xt},ha))}var qt=Ut;function bt(fe,me,Me,He){var $e=_e(ce,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Ye=$e.flattenColumns,Nt=$e.expandableType,xt=$e.expandedKeys,Tt=$e.childrenColumnName,Qt=$e.onTriggerExpand,Mt=$e.rowExpandable,Wt=$e.onRow,wn=$e.expandRowByClick,yn=$e.rowClassName,Ln=Nt==="nest",ha=Nt==="row"&&(!Mt||Mt(fe)),ra=ha||Ln,da=xt&&xt.has(me),oa=Tt&&fe&&fe[Tt],Oa=(0,be.useEvent)(Qt),er=Wt==null?void 0:Wt(fe,Me),rr=er==null?void 0:er.onClick,Wa=function(Ua){wn&&ra&&Qt(fe,Ua);for(var Ma=arguments.length,Ba=new Array(Ma>1?Ma-1:0),Za=1;Za<Ma;Za++)Ba[Za-1]=arguments[Za];rr==null||rr.apply(void 0,[Ua].concat(Ba))},br;typeof yn=="string"?br=yn:typeof yn=="function"&&(br=yn(fe,Me,He));var Dr=it(Ye);return(0,we.Z)((0,we.Z)({},$e),{},{columnsKey:Dr,nestExpandable:Ln,expanded:da,hasNestChildren:oa,record:fe,onTriggerExpand:Oa,rowSupportExpand:ha,expandable:ra,rowProps:(0,we.Z)((0,we.Z)({},er),{},{className:Ge()(br,er==null?void 0:er.className),onClick:Wa})})}function Yt(fe,me,Me,He,$e){var Ye=fe.record,Nt=fe.prefixCls,xt=fe.columnsKey,Tt=fe.fixedInfoList,Qt=fe.expandIconColumnIndex,Mt=fe.nestExpandable,Wt=fe.indentSize,wn=fe.expandIcon,yn=fe.expanded,Ln=fe.hasNestChildren,ha=fe.onTriggerExpand,ra=xt[Me],da=Tt[Me],oa;Me===(Qt||0)&&Mt&&(oa=ue.createElement(ue.Fragment,null,ue.createElement("span",{style:{paddingLeft:"".concat(Wt*He,"px")},className:"".concat(Nt,"-row-indent indent-level-").concat(He)}),wn({prefixCls:Nt,expanded:yn,expandable:Ln,record:Ye,onExpand:ha})));var Oa;return me.onCell&&(Oa=me.onCell(Ye,$e)),{key:ra,fixedInfo:da,appendCellNode:oa,additionalCellProps:Oa||{}}}function Fn(fe){var me=fe.className,Me=fe.style,He=fe.record,$e=fe.index,Ye=fe.renderIndex,Nt=fe.rowKey,xt=fe.indent,Tt=xt===void 0?0:xt,Qt=fe.rowComponent,Mt=fe.cellComponent,Wt=fe.scopeCellComponent,wn=bt(He,Nt,$e,Tt),yn=wn.prefixCls,Ln=wn.flattenColumns,ha=wn.expandedRowClassName,ra=wn.expandedRowRender,da=wn.rowProps,oa=wn.expanded,Oa=wn.rowSupportExpand,er=ue.useState(!1),rr=(0,Ce.Z)(er,2),Wa=rr[0],br=rr[1];ue.useEffect(function(){oa&&br(!0)},[oa]);var Dr=ue.createElement(Qt,(0,ke.Z)({},da,{"data-row-key":Nt,className:Ge()(me,"".concat(yn,"-row"),"".concat(yn,"-row-level-").concat(Tt),da==null?void 0:da.className),style:(0,we.Z)((0,we.Z)({},Me),da==null?void 0:da.style)}),Ln.map(function(Ba,Za){var Sr=Ba.render,kr=Ba.dataIndex,Br=Ba.className,sr=Yt(wn,Ba,Za,Tt,$e),Zr=sr.key,Kr=sr.fixedInfo,Lo=sr.appendCellNode,io=sr.additionalCellProps;return ue.createElement(Vt,(0,ke.Z)({className:Br,ellipsis:Ba.ellipsis,align:Ba.align,scope:Ba.rowScope,component:Ba.rowScope?Wt:Mt,prefixCls:yn,key:Zr,record:He,index:$e,renderIndex:Ye,dataIndex:kr,render:Sr,shouldCellUpdate:Ba.shouldCellUpdate},Kr,{appendNode:Lo,additionalProps:io}))})),Ta;if(Oa&&(Wa||oa)){var Ua=ra(He,$e,Tt+1,oa),Ma=ha&&ha(He,$e,Tt);Ta=ue.createElement(qt,{expanded:oa,className:Ge()("".concat(yn,"-expanded-row"),"".concat(yn,"-expanded-row-level-").concat(Tt+1),Ma),prefixCls:yn,component:Qt,cellComponent:Mt,colSpan:Ln.length,isEmpty:!1},Ua)}return ue.createElement(ue.Fragment,null,Dr,Ta)}Fn.displayName="BodyRow";var kt=te(Fn);function Ft(fe){var me=fe.columnKey,Me=fe.onColumnResize,He=ue.useRef();return ue.useEffect(function(){He.current&&Me(me,He.current.offsetWidth)},[]),ue.createElement(gt.Z,{data:me},ue.createElement("td",{ref:He,style:{padding:0,border:0,height:0}},ue.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function In(fe){var me=fe.prefixCls,Me=fe.columnsKey,He=fe.onColumnResize;return ue.createElement("tr",{"aria-hidden":"true",className:"".concat(me,"-measure-row"),style:{height:0,fontSize:0}},ue.createElement(gt.Z.Collection,{onBatchResize:function(Ye){Ye.forEach(function(Nt){var xt=Nt.data,Tt=Nt.size;He(xt,Tt.offsetWidth)})}},Me.map(function($e){return ue.createElement(Ft,{key:$e,columnKey:$e,onColumnResize:He})})))}function jn(fe){var me=fe.data,Me=fe.measureColumnWidth,He=_e(ce,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),$e=He.prefixCls,Ye=He.getComponent,Nt=He.onColumnResize,xt=He.flattenColumns,Tt=He.getRowKey,Qt=He.expandedKeys,Mt=He.childrenColumnName,Wt=He.emptyNode,wn=Jt(me,Mt,Qt,Tt),yn=ue.useRef({renderWithProps:!1}),Ln=Ye(["body","wrapper"],"tbody"),ha=Ye(["body","row"],"tr"),ra=Ye(["body","cell"],"td"),da=Ye(["body","cell"],"th"),oa;me.length?oa=wn.map(function(er,rr){var Wa=er.record,br=er.indent,Dr=er.index,Ta=Tt(Wa,rr);return ue.createElement(kt,{key:Ta,rowKey:Ta,record:Wa,index:rr,renderIndex:Dr,rowComponent:ha,cellComponent:ra,scopeCellComponent:da,getRowKey:Tt,indent:br})}):oa=ue.createElement(qt,{expanded:!0,className:"".concat($e,"-placeholder"),prefixCls:$e,component:ha,cellComponent:ra,colSpan:xt.length,isEmpty:!0},Wt);var Oa=it(xt);return ue.createElement(Ke.Provider,{value:yn.current},ue.createElement(Ln,{className:"".concat($e,"-tbody")},Me&&ue.createElement(In,{prefixCls:$e,columnsKey:Oa,onColumnResize:Nt}),oa))}jn.displayName="Body";var Gn=te(jn),na=["expandable"],La="RC_TABLE_INTERNAL_COL_DEFINE";function nn(fe){var me=fe.expandable,Me=(0,At.Z)(fe,na),He;return"expandable"in fe?He=(0,we.Z)((0,we.Z)({},Me),me):He=Me,He.showExpandColumn===!1&&(He.expandIconColumnIndex=-1),He}var $t=["columnType"];function mn(fe){for(var me=fe.colWidths,Me=fe.columns,He=fe.columCount,$e=[],Ye=He||Me.length,Nt=!1,xt=Ye-1;xt>=0;xt-=1){var Tt=me[xt],Qt=Me&&Me[xt],Mt=Qt&&Qt[La];if(Tt||Mt||Nt){var Wt=Mt||{},wn=Wt.columnType,yn=(0,At.Z)(Wt,$t);$e.unshift(ue.createElement("col",(0,ke.Z)({key:xt,style:{width:Tt}},yn))),Nt=!0}}return ue.createElement("colgroup",null,$e)}var Zn=mn,Cn=ae(94480),Ha=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function $a(fe,me){return(0,ue.useMemo)(function(){for(var Me=[],He=0;He<me;He+=1){var $e=fe[He];if($e!==void 0)Me[He]=$e;else return null}return Me},[fe.join("_"),me])}var aa=ue.forwardRef(function(fe,me){var Me=fe.className,He=fe.noData,$e=fe.columns,Ye=fe.flattenColumns,Nt=fe.colWidths,xt=fe.columCount,Tt=fe.stickyOffsets,Qt=fe.direction,Mt=fe.fixHeader,Wt=fe.stickyTopOffset,wn=fe.stickyBottomOffset,yn=fe.stickyClassName,Ln=fe.onScroll,ha=fe.maxContentScroll,ra=fe.children,da=(0,At.Z)(fe,Ha),oa=_e(ce,["prefixCls","scrollbarSize","isSticky"]),Oa=oa.prefixCls,er=oa.scrollbarSize,rr=oa.isSticky,Wa=rr&&!Mt?0:er,br=ue.useRef(null),Dr=ue.useCallback(function(Br){(0,je.mH)(me,Br),(0,je.mH)(br,Br)},[]);ue.useEffect(function(){var Br;function sr(Zr){var Kr=Zr,Lo=Kr.currentTarget,io=Kr.deltaX;io&&(Ln({currentTarget:Lo,scrollLeft:Lo.scrollLeft+io}),Zr.preventDefault())}return(Br=br.current)===null||Br===void 0||Br.addEventListener("wheel",sr),function(){var Zr;(Zr=br.current)===null||Zr===void 0||Zr.removeEventListener("wheel",sr)}},[]);var Ta=ue.useMemo(function(){return Ye.every(function(Br){return Br.width})},[Ye]),Ua=Ye[Ye.length-1],Ma={fixed:Ua?Ua.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Oa,"-cell-scrollbar")}}},Ba=(0,ue.useMemo)(function(){return Wa?[].concat((0,Cn.Z)($e),[Ma]):$e},[Wa,$e]),Za=(0,ue.useMemo)(function(){return Wa?[].concat((0,Cn.Z)(Ye),[Ma]):Ye},[Wa,Ye]),Sr=(0,ue.useMemo)(function(){var Br=Tt.right,sr=Tt.left;return(0,we.Z)((0,we.Z)({},Tt),{},{left:Qt==="rtl"?[].concat((0,Cn.Z)(sr.map(function(Zr){return Zr+Wa})),[0]):sr,right:Qt==="rtl"?Br:[].concat((0,Cn.Z)(Br.map(function(Zr){return Zr+Wa})),[0]),isSticky:rr})},[Wa,Tt,rr]),kr=$a(Nt,xt);return ue.createElement("div",{style:(0,we.Z)({overflow:"hidden"},rr?{top:Wt,bottom:wn}:{}),ref:Dr,className:Ge()(Me,(0,ve.Z)({},yn,!!yn))},ue.createElement("table",{style:{tableLayout:"fixed",visibility:He||kr?null:"hidden"}},(!He||!ha||Ta)&&ue.createElement(Zn,{colWidths:kr?[].concat((0,Cn.Z)(kr),[Wa]):[],columCount:xt+1,columns:Za}),ra((0,we.Z)((0,we.Z)({},da),{},{stickyOffsets:Sr,columns:Ba,flattenColumns:Za}))))});aa.displayName="FixedHolder";var vn=ue.memo(aa);function ka(fe){var me=fe.cells,Me=fe.stickyOffsets,He=fe.flattenColumns,$e=fe.rowComponent,Ye=fe.cellComponent,Nt=fe.tdCellComponent,xt=fe.onHeaderRow,Tt=fe.index,Qt=_e(ce,["prefixCls","direction"]),Mt=Qt.prefixCls,Wt=Qt.direction,wn;xt&&(wn=xt(me.map(function(Ln){return Ln.column}),Tt));var yn=it(me.map(function(Ln){return Ln.column}));return ue.createElement($e,wn,me.map(function(Ln,ha){var ra=Ln.column,da=Be(Ln.colStart,Ln.colEnd,He,Me,Wt,ra),oa;return ra&&ra.onHeaderCell&&(oa=Ln.column.onHeaderCell(ra)),ue.createElement(Vt,(0,ke.Z)({},Ln,{scope:ra.title?Ln.colSpan>1?"colgroup":"col":null,ellipsis:ra.ellipsis,align:ra.align,component:ra.title?Ye:Nt,prefixCls:Mt,key:yn[ha]},da,{additionalProps:oa,rowType:"header"}))}))}ka.displayName="HeaderRow";var vt=ka;function cn(fe){var me=[];function Me(Nt,xt){var Tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;me[Tt]=me[Tt]||[];var Qt=xt,Mt=Nt.filter(Boolean).map(function(Wt){var wn={key:Wt.key,className:Wt.className||"",children:Wt.title,column:Wt,colStart:Qt},yn=1,Ln=Wt.children;return Ln&&Ln.length>0&&(yn=Me(Ln,Qt,Tt+1).reduce(function(ha,ra){return ha+ra},0),wn.hasSubColumns=!0),"colSpan"in Wt&&(yn=Wt.colSpan),"rowSpan"in Wt&&(wn.rowSpan=Wt.rowSpan),wn.colSpan=yn,wn.colEnd=wn.colStart+yn-1,me[Tt].push(wn),Qt+=yn,yn});return Mt}Me(fe,0);for(var He=me.length,$e=function(xt){me[xt].forEach(function(Tt){!("rowSpan"in Tt)&&!Tt.hasSubColumns&&(Tt.rowSpan=He-xt)})},Ye=0;Ye<He;Ye+=1)$e(Ye);return me}function Nn(fe){var me=fe.stickyOffsets,Me=fe.columns,He=fe.flattenColumns,$e=fe.onHeaderRow,Ye=_e(ce,["prefixCls","getComponent"]),Nt=Ye.prefixCls,xt=Ye.getComponent,Tt=ue.useMemo(function(){return cn(Me)},[Me]),Qt=xt(["header","wrapper"],"thead"),Mt=xt(["header","row"],"tr"),Wt=xt(["header","cell"],"th"),wn=xt(["header","cell"],"td");return ue.createElement(Qt,{className:"".concat(Nt,"-thead")},Tt.map(function(yn,Ln){var ha=ue.createElement(vt,{key:Ln,flattenColumns:He,cells:yn,stickyOffsets:me,rowComponent:Mt,cellComponent:Wt,tdCellComponent:wn,onHeaderRow:$e,index:Ln});return ha}))}var kn=te(Nn),xn=ae(11592);function zn(fe){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof me=="number"?me:me.endsWith("%")?fe*parseFloat(me)/100:null}function Jn(fe,me){return ue.useMemo(function(){if(me&&me>0){var Me=0,He=0;fe.forEach(function(Qt){var Mt=zn(me,Qt.width);Mt?Me+=Mt:He+=1});var $e=me-Me,Ye=He,Nt=$e/He,xt=0,Tt=fe.map(function(Qt){var Mt=(0,we.Z)({},Qt),Wt=zn(me,Mt.width);if(Wt)Mt.width=Wt;else{var wn=Math.floor(Nt);Mt.width=Ye===1?$e:wn,$e-=wn,Ye-=1}return xt+=Mt.width,Mt});return[Tt,xt]}return[fe,me]},[fe,me])}var ht=["children"],yt=["fixed"];function pt(fe){return(0,xn.Z)(fe).filter(function(me){return ue.isValidElement(me)}).map(function(me){var Me=me.key,He=me.props,$e=He.children,Ye=(0,At.Z)(He,ht),Nt=(0,we.Z)({key:Me},Ye);return $e&&(Nt.children=pt($e)),Nt})}function sn(fe){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return fe.filter(function(Me){return Me&&(0,Ee.Z)(Me)==="object"}).reduce(function(Me,He,$e){var Ye=He.fixed,Nt=Ye===!0?"left":Ye,xt="".concat(me,"-").concat($e),Tt=He.children;return Tt&&Tt.length>0?[].concat((0,Cn.Z)(Me),(0,Cn.Z)(sn(Tt,xt).map(function(Qt){return(0,we.Z)({fixed:Nt},Qt)}))):[].concat((0,Cn.Z)(Me),[(0,we.Z)((0,we.Z)({key:xt},He),{},{fixed:Nt})])},[])}function En(fe){for(var me=!0,Me=0;Me<fe.length;Me+=1){var He=fe[Me];if(me&&He.fixed!=="left")me=!1;else if(!me&&He.fixed==="left"){warning(!1,"Index ".concat(Me-1," of `columns` missing `fixed='left'` prop."));break}}for(var $e=!0,Ye=fe.length-1;Ye>=0;Ye-=1){var Nt=fe[Ye];if($e&&Nt.fixed!=="right")$e=!1;else if(!$e&&Nt.fixed==="right"){warning(!1,"Index ".concat(Ye+1," of `columns` missing `fixed='right'` prop."));break}}}function gn(fe){return fe.map(function(me){var Me=me.fixed,He=(0,At.Z)(me,yt),$e=Me;return Me==="left"?$e="right":Me==="right"&&($e="left"),(0,we.Z)({fixed:$e},He)})}function Qn(fe,me){var Me=fe.prefixCls,He=fe.columns,$e=fe.children,Ye=fe.expandable,Nt=fe.expandedKeys,xt=fe.columnTitle,Tt=fe.getRowKey,Qt=fe.onTriggerExpand,Mt=fe.expandIcon,Wt=fe.rowExpandable,wn=fe.expandIconColumnIndex,yn=fe.direction,Ln=fe.expandRowByClick,ha=fe.columnWidth,ra=fe.fixed,da=fe.scrollWidth,oa=ue.useMemo(function(){return He||pt($e)},[He,$e]),Oa=ue.useMemo(function(){if(Ye){var Ua,Ma=oa.slice();if(!Ma.includes(b)){var Ba=wn||0;Ba>=0&&Ma.splice(Ba,0,b)}var Za=Ma.indexOf(b);Ma=Ma.filter(function(sr,Zr){return sr!==b||Zr===Za});var Sr=oa[Za],kr;(ra==="left"||ra)&&!wn?kr="left":(ra==="right"||ra)&&wn===oa.length?kr="right":kr=Sr?Sr.fixed:null;var Br=(Ua={},(0,ve.Z)(Ua,La,{className:"".concat(Me,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,ve.Z)(Ua,"title",xt),(0,ve.Z)(Ua,"fixed",kr),(0,ve.Z)(Ua,"className","".concat(Me,"-row-expand-icon-cell")),(0,ve.Z)(Ua,"width",ha),(0,ve.Z)(Ua,"render",function(Zr,Kr,Lo){var io=Tt(Kr,Lo),Vo=Nt.has(io),Do=Wt?Wt(Kr):!0,Ir=Mt({prefixCls:Me,expanded:Vo,expandable:Do,record:Kr,onExpand:Qt});return Ln?ue.createElement("span",{onClick:function(no){return no.stopPropagation()}},Ir):Ir}),Ua);return Ma.map(function(sr){return sr===b?Br:sr})}return oa.filter(function(sr){return sr!==b})},[Ye,oa,Tt,Nt,Mt,yn]),er=ue.useMemo(function(){var Ua=Oa;return me&&(Ua=me(Ua)),Ua.length||(Ua=[{render:function(){return null}}]),Ua},[me,Oa,yn]),rr=ue.useMemo(function(){return yn==="rtl"?gn(sn(er)):sn(er)},[er,yn,da]),Wa=Jn(rr,da),br=(0,Ce.Z)(Wa,2),Dr=br[0],Ta=br[1];return[er,Dr,Ta]}var _n=Qn;function Hn(fe){var me,Me=fe.prefixCls,He=fe.record,$e=fe.onExpand,Ye=fe.expanded,Nt=fe.expandable,xt="".concat(Me,"-row-expand-icon");if(!Nt)return ue.createElement("span",{className:Ge()(xt,"".concat(Me,"-row-spaced"))});var Tt=function(Mt){$e(He,Mt),Mt.stopPropagation()};return ue.createElement("span",{className:Ge()(xt,(me={},(0,ve.Z)(me,"".concat(Me,"-row-expanded"),Ye),(0,ve.Z)(me,"".concat(Me,"-row-collapsed"),!Ye),me)),onClick:Tt})}function Pa(fe,me,Me){var He=[];function $e(Ye){(Ye||[]).forEach(function(Nt,xt){He.push(me(Nt,xt)),$e(Nt[Me])})}return $e(fe),He}function Qa(fe,me,Me){var He=nn(fe),$e=He.expandIcon,Ye=He.expandedRowKeys,Nt=He.defaultExpandedRowKeys,xt=He.defaultExpandAllRows,Tt=He.expandedRowRender,Qt=He.onExpand,Mt=He.onExpandedRowsChange,Wt=He.childrenColumnName,wn=$e||Hn,yn=Wt||"children",Ln=ue.useMemo(function(){return Tt?"row":fe.expandable&&fe.internalHooks===se&&fe.expandable.__PARENT_RENDER_ICON__||me.some(function(rr){return rr&&(0,Ee.Z)(rr)==="object"&&rr[yn]})?"nest":!1},[!!Tt,me]),ha=ue.useState(function(){return Nt||(xt?Pa(me,Me,yn):[])}),ra=(0,Ce.Z)(ha,2),da=ra[0],oa=ra[1],Oa=ue.useMemo(function(){return new Set(Ye||da||[])},[Ye,da]),er=ue.useCallback(function(rr){var Wa=Me(rr,me.indexOf(rr)),br,Dr=Oa.has(Wa);Dr?(Oa.delete(Wa),br=(0,Cn.Z)(Oa)):br=[].concat((0,Cn.Z)(Oa),[Wa]),oa(br),Qt&&Qt(!Dr,rr),Mt&&Mt(br)},[Me,Oa,me,Qt,Mt]);return[He,Ln,Oa,wn,yn,er]}function Sn(fe,me,Me,He){var $e=fe.map(function(Ye,Nt){return Be(Nt,Nt,fe,me,Me,He==null?void 0:He[Nt])});return(0,ot.Z)(function(){return $e},[$e],function(Ye,Nt){return!(0,Re.Z)(Ye,Nt)})}function ba(fe){var me=(0,ue.useRef)(fe),Me=(0,ue.useState)({}),He=(0,Ce.Z)(Me,2),$e=He[1],Ye=(0,ue.useRef)(null),Nt=(0,ue.useRef)([]);function xt(Tt){Nt.current.push(Tt);var Qt=Promise.resolve();Ye.current=Qt,Qt.then(function(){if(Ye.current===Qt){var Mt=Nt.current,Wt=me.current;Nt.current=[],Mt.forEach(function(wn){me.current=wn(me.current)}),Ye.current=null,Wt!==me.current&&$e({})}})}return(0,ue.useEffect)(function(){return function(){Ye.current=null}},[]),[me.current,xt]}function nr(fe){var me=(0,ue.useRef)(fe||null),Me=(0,ue.useRef)();function He(){window.clearTimeout(Me.current)}function $e(Nt){me.current=Nt,He(),Me.current=window.setTimeout(function(){me.current=null,Me.current=void 0},100)}function Ye(){return me.current}return(0,ue.useEffect)(function(){return He},[]),[$e,Ye]}function gr(){var fe=ue.useState(-1),me=(0,Ce.Z)(fe,2),Me=me[0],He=me[1],$e=ue.useState(-1),Ye=(0,Ce.Z)($e,2),Nt=Ye[0],xt=Ye[1],Tt=ue.useCallback(function(Qt,Mt){He(Qt),xt(Mt)},[]);return[Me,Nt,Tt]}var $n=ae(47273),an=(0,$n.Z)()?window:null;function Rr(fe,me){var Me=(0,Ee.Z)(fe)==="object"?fe:{},He=Me.offsetHeader,$e=He===void 0?0:He,Ye=Me.offsetSummary,Nt=Ye===void 0?0:Ye,xt=Me.offsetScroll,Tt=xt===void 0?0:xt,Qt=Me.getContainer,Mt=Qt===void 0?function(){return an}:Qt,Wt=Mt()||an;return ue.useMemo(function(){var wn=!!fe;return{isSticky:wn,stickyClassName:wn?"".concat(me,"-sticky-holder"):"",offsetHeader:$e,offsetSummary:Nt,offsetScroll:Tt,container:Wt}},[Tt,$e,Nt,me,Wt])}function Ja(fe,me,Me){var He=(0,ue.useMemo)(function(){for(var $e=[],Ye=[],Nt=0,xt=0,Tt=0;Tt<me;Tt+=1)if(Me==="rtl"){Ye[Tt]=xt,xt+=fe[Tt]||0;var Qt=me-Tt-1;$e[Qt]=Nt,Nt+=fe[Qt]||0}else{$e[Tt]=Nt,Nt+=fe[Tt]||0;var Mt=me-Tt-1;Ye[Mt]=xt,xt+=fe[Mt]||0}return{left:$e,right:Ye}},[fe,me,Me]);return He}var Fr=Ja;function Or(fe){var me=fe.className,Me=fe.children;return ue.createElement("div",{className:me},Me)}var Mr=Or,Xt=ae(8224),fn=ae(55468),Pn=function(me,Me){var He,$e,Ye=me.scrollBodyRef,Nt=me.onScroll,xt=me.offsetScroll,Tt=me.container,Qt=_e(ce,"prefixCls"),Mt=((He=Ye.current)===null||He===void 0?void 0:He.scrollWidth)||0,Wt=(($e=Ye.current)===null||$e===void 0?void 0:$e.clientWidth)||0,wn=Mt&&Wt*(Wt/Mt),yn=ue.useRef(),Ln=ba({scrollLeft:0,isHiddenScrollBar:!1}),ha=(0,Ce.Z)(Ln,2),ra=ha[0],da=ha[1],oa=ue.useRef({delta:0,x:0}),Oa=ue.useState(!1),er=(0,Ce.Z)(Oa,2),rr=er[0],Wa=er[1],br=function(){Wa(!1)},Dr=function(Za){Za.persist(),oa.current.delta=Za.pageX-ra.scrollLeft,oa.current.x=0,Wa(!0),Za.preventDefault()},Ta=function(Za){var Sr,kr=Za||((Sr=window)===null||Sr===void 0?void 0:Sr.event),Br=kr.buttons;if(!rr||Br===0){rr&&Wa(!1);return}var sr=oa.current.x+Za.pageX-oa.current.x-oa.current.delta;sr<=0&&(sr=0),sr+wn>=Wt&&(sr=Wt-wn),Nt({scrollLeft:sr/Wt*(Mt+2)}),oa.current.x=Za.pageX},Ua=function(){if(Ye.current){var Za=(0,fn.os)(Ye.current).top,Sr=Za+Ye.current.offsetHeight,kr=Tt===window?document.documentElement.scrollTop+window.innerHeight:(0,fn.os)(Tt).top+Tt.clientHeight;Sr-(0,St.Z)()<=kr||Za>=kr-xt?da(function(Br){return(0,we.Z)((0,we.Z)({},Br),{},{isHiddenScrollBar:!0})}):da(function(Br){return(0,we.Z)((0,we.Z)({},Br),{},{isHiddenScrollBar:!1})})}},Ma=function(Za){da(function(Sr){return(0,we.Z)((0,we.Z)({},Sr),{},{scrollLeft:Za/Mt*Wt||0})})};return ue.useImperativeHandle(Me,function(){return{setScrollLeft:Ma}}),ue.useEffect(function(){var Ba=(0,Xt.Z)(document.body,"mouseup",br,!1),Za=(0,Xt.Z)(document.body,"mousemove",Ta,!1);return Ua(),function(){Ba.remove(),Za.remove()}},[wn,rr]),ue.useEffect(function(){var Ba=(0,Xt.Z)(Tt,"scroll",Ua,!1),Za=(0,Xt.Z)(window,"resize",Ua,!1);return function(){Ba.remove(),Za.remove()}},[Tt]),ue.useEffect(function(){ra.isHiddenScrollBar||da(function(Ba){var Za=Ye.current;return Za?(0,we.Z)((0,we.Z)({},Ba),{},{scrollLeft:Za.scrollLeft/Za.scrollWidth*Za.clientWidth}):Ba})},[ra.isHiddenScrollBar]),Mt<=Wt||!wn||ra.isHiddenScrollBar?null:ue.createElement("div",{style:{height:(0,St.Z)(),width:Wt,bottom:xt},className:"".concat(Qt,"-sticky-scroll")},ue.createElement("div",{onMouseDown:Dr,ref:yn,className:Ge()("".concat(Qt,"-sticky-scroll-bar"),(0,ve.Z)({},"".concat(Qt,"-sticky-scroll-bar-active"),rr)),style:{width:"".concat(wn,"px"),transform:"translate3d(".concat(ra.scrollLeft,"px, 0, 0)")}}))},pa=ue.forwardRef(Pn);function en(fe){return null}var za=en;function va(fe){return null}var ja=va,ia="rc-table",Rn=[],Wn={};function fa(){return"No Data"}function qn(fe){var me,Me=(0,we.Z)({rowKey:"key",prefixCls:ia,emptyText:fa},fe),He=Me.prefixCls,$e=Me.className,Ye=Me.rowClassName,Nt=Me.style,xt=Me.data,Tt=Me.rowKey,Qt=Me.scroll,Mt=Me.tableLayout,Wt=Me.direction,wn=Me.title,yn=Me.footer,Ln=Me.summary,ha=Me.caption,ra=Me.id,da=Me.showHeader,oa=Me.components,Oa=Me.emptyText,er=Me.onRow,rr=Me.onHeaderRow,Wa=Me.internalHooks,br=Me.transformColumns,Dr=Me.internalRefs,Ta=Me.tailor,Ua=Me.sticky,Ma=xt||Rn,Ba=!!Ma.length,Za=Wa===se,Sr=ue.useCallback(function(ro,jo){return(0,Le.Z)(oa,ro)||jo},[oa]),kr=ue.useMemo(function(){return typeof Tt=="function"?Tt:function(ro){var jo=ro&&ro[Tt];return jo}},[Tt]),Br=Sr(["body"]),sr=gr(),Zr=(0,Ce.Z)(sr,3),Kr=Zr[0],Lo=Zr[1],io=Zr[2],Vo=Qa(Me,Ma,kr),Do=(0,Ce.Z)(Vo,6),Ir=Do[0],Jo=Do[1],no=Do[2],Zo=Do[3],Ro=Do[4],Ai=Do[5],vr=Qt==null?void 0:Qt.x,dr=ue.useState(0),ir=(0,Ce.Z)(dr,2),qa=ir[0],so=ir[1],Ya=_n((0,we.Z)((0,we.Z)((0,we.Z)({},Me),Ir),{},{expandable:!!Ir.expandedRowRender,columnTitle:Ir.columnTitle,expandedKeys:no,getRowKey:kr,onTriggerExpand:Ai,expandIcon:Zo,expandIconColumnIndex:Ir.expandIconColumnIndex,direction:Wt,scrollWidth:Za&&Ta&&typeof vr=="number"?vr:null}),Za?br:null),Ar=(0,Ce.Z)(Ya,3),qr=Ar[0],Jr=Ar[1],di=Ar[2],ci=di!=null?di:vr,Hi=ue.useMemo(function(){return{columns:qr,flattenColumns:Jr}},[qr,Jr]),ti=ue.useRef(),Ui=ue.useRef(),ni=ue.useRef(),Fi=ue.useRef(),Ll=ue.useRef(),fo=ue.useState(!1),So=(0,Ce.Z)(fo,2),No=So[0],Go=So[1],Xo=ue.useState(!1),Vr=(0,Ce.Z)(Xo,2),hi=Vr[0],Si=Vr[1],pi=ba(new Map),dl=(0,Ce.Z)(pi,2),nl=dl[0],Pi=dl[1],al=it(Jr),Gi=al.map(function(ro){return nl.get(ro)}),Ii=ue.useMemo(function(){return Gi},[Gi.join("_")]),Ei=Fr(Ii,Jr.length,Wt),Uo=Qt&&jt(Qt.y),zo=Qt&&jt(ci)||!!Ir.fixed,cl=zo&&Jr.some(function(ro){var jo=ro.fixed;return jo}),Nl=ue.useRef(),hl=Rr(Ua,He),Qi=hl.isSticky,Sl=hl.offsetHeader,fu=hl.offsetSummary,ao=hl.offsetScroll,To=hl.stickyClassName,gi=hl.container,Wo=ue.useMemo(function(){return Ln==null?void 0:Ln(Ma)},[Ln,Ma]),yi=(Uo||Qi)&&ue.isValidElement(Wo)&&Wo.type===he&&Wo.props.fixed,bi,Oi,ml;Uo&&(Oi={overflowY:"scroll",maxHeight:Qt.y}),zo&&(bi={overflowX:"auto"},Uo||(Oi={overflowY:"hidden"}),ml={width:ci===!0?"auto":ci,minWidth:"100%"});var Ql=ue.useCallback(function(ro,jo){(0,Xe.Z)(ti.current)&&Pi(function(Ji){if(Ji.get(ro)!==jo){var Pl=new Map(Ji);return Pl.set(ro,jo),Pl}return Ji})},[]),Uu=nr(null),wu=(0,Ce.Z)(Uu,2),Du=wu[0],Iu=wu[1];function ru(ro,jo){jo&&(typeof jo=="function"?jo(ro):jo.scrollLeft!==ro&&(jo.scrollLeft=ro,jo.scrollLeft!==ro&&setTimeout(function(){jo.scrollLeft=ro},0)))}var Jl=(0,Fe.Z)(function(ro){var jo=ro.currentTarget,Ji=ro.scrollLeft,Pl=Wt==="rtl",El=typeof Ji=="number"?Ji:jo.scrollLeft,gu=jo||Wn;if(!Iu()||Iu()===gu){var Eu;Du(gu),ru(El,Ui.current),ru(El,ni.current),ru(El,Ll.current),ru(El,(Eu=Nl.current)===null||Eu===void 0?void 0:Eu.setScrollLeft)}var yu=jo||Ui.current;if(yu){var bu=yu.scrollWidth,Cu=yu.clientWidth;if(bu===Cu){Go(!1),Si(!1);return}Pl?(Go(-El<bu-Cu),Si(-El>0)):(Go(El>0),Si(El<bu-Cu))}}),Ou=function(){zo&&ni.current?Jl({currentTarget:ni.current}):(Go(!1),Si(!1))},cs=function(jo){var Ji=jo.width;Ji!==qa&&(Ou(),so(ti.current?ti.current.offsetWidth:Ji))},Zl=ue.useRef(!1);ue.useEffect(function(){Zl.current&&Ou()},[zo,xt,qr.length]),ue.useEffect(function(){Zl.current=!0},[]);var Qu=ue.useState(0),ou=(0,Ce.Z)(Qu,2),iu=ou[0],Lu=ou[1],Ju=ue.useState(!0),lu=(0,Ce.Z)(Ju,2),pu=lu[0],Xu=lu[1];ue.useEffect(function(){(!Ta||!Za)&&(ni.current instanceof Element?Lu((0,St.o)(ni.current).width):Lu((0,St.o)(Fi.current).width)),Xu((0,Te.G)("position","sticky"))},[]),ue.useEffect(function(){Za&&Dr&&(Dr.body.current=ni.current)});var Yu=ue.useCallback(function(ro){return ue.createElement(ue.Fragment,null,ue.createElement(kn,ro),yi==="top"&&ue.createElement(wt,ro,Wo))},[yi,Wo]),$u=ue.useCallback(function(ro){return ue.createElement(wt,ro,Wo)},[Wo]),Nu=Sr(["table"],"table"),uu=ue.useMemo(function(){return Mt||(cl?ci==="max-content"?"auto":"fixed":Uo||Qi||Jr.some(function(ro){var jo=ro.ellipsis;return jo})?"fixed":"auto")},[Uo,cl,Jr,Mt,Qi]),vu,hu={colWidths:Ii,columCount:Jr.length,stickyOffsets:Ei,onHeaderRow:rr,fixHeader:Uo,scroll:Qt},Ru=ue.useMemo(function(){return Ba?null:typeof Oa=="function"?Oa():Oa},[Ba,Oa]),Xl=ue.createElement(Gn,{data:Ma,measureColumnWidth:Uo||zo||Qi}),Tu=ue.createElement(Zn,{colWidths:Jr.map(function(ro){var jo=ro.width;return jo}),columns:Jr}),Su=ha!=null?ue.createElement("caption",{className:"".concat(He,"-caption")},ha):void 0,su=(0,ln.Z)(Me,{data:!0}),Pu=(0,ln.Z)(Me,{aria:!0});if(Uo||Qi){var du;typeof Br=="function"?(du=Br(Ma,{scrollbarSize:iu,ref:ni,onScroll:Jl}),hu.colWidths=Jr.map(function(ro,jo){var Ji=ro.width,Pl=jo===Jr.length-1?Ji-iu:Ji;return typeof Pl=="number"&&!Number.isNaN(Pl)?Pl:0})):du=ue.createElement("div",{style:(0,we.Z)((0,we.Z)({},bi),Oi),onScroll:Jl,ref:ni,className:Ge()("".concat(He,"-body"))},ue.createElement(Nu,(0,ke.Z)({style:(0,we.Z)((0,we.Z)({},ml),{},{tableLayout:uu})},Pu),Su,Tu,Xl,!yi&&Wo&&ue.createElement(wt,{stickyOffsets:Ei,flattenColumns:Jr,columns:qr},Wo)));var Mu=(0,we.Z)((0,we.Z)((0,we.Z)({noData:!Ma.length,maxContentScroll:zo&&ci==="max-content"},hu),Hi),{},{direction:Wt,stickyClassName:To,onScroll:Jl});vu=ue.createElement(ue.Fragment,null,da!==!1&&ue.createElement(vn,(0,ke.Z)({},Mu,{stickyTopOffset:Sl,className:"".concat(He,"-header"),ref:Ui}),Yu),du,yi&&yi!=="top"&&ue.createElement(vn,(0,ke.Z)({},Mu,{stickyBottomOffset:fu,className:"".concat(He,"-summary"),ref:Ll}),$u),Qi&&ue.createElement(pa,{ref:Nl,offsetScroll:ao,scrollBodyRef:ni,onScroll:Jl,container:gi}))}else vu=ue.createElement("div",{style:(0,we.Z)((0,we.Z)({},bi),Oi),className:Ge()("".concat(He,"-content")),onScroll:Jl,ref:ni},ue.createElement(Nu,(0,ke.Z)({style:(0,we.Z)((0,we.Z)({},ml),{},{tableLayout:uu})},Pu),Su,Tu,da!==!1&&ue.createElement(kn,(0,ke.Z)({},hu,Hi)),Xl,Wo&&ue.createElement(wt,{stickyOffsets:Ei,flattenColumns:Jr,columns:qr},Wo)));var cu=ue.createElement("div",(0,ke.Z)({className:Ge()(He,$e,(me={},(0,ve.Z)(me,"".concat(He,"-rtl"),Wt==="rtl"),(0,ve.Z)(me,"".concat(He,"-ping-left"),No),(0,ve.Z)(me,"".concat(He,"-ping-right"),hi),(0,ve.Z)(me,"".concat(He,"-layout-fixed"),Mt==="fixed"),(0,ve.Z)(me,"".concat(He,"-fixed-header"),Uo),(0,ve.Z)(me,"".concat(He,"-fixed-column"),cl),(0,ve.Z)(me,"".concat(He,"-scroll-horizontal"),zo),(0,ve.Z)(me,"".concat(He,"-has-fix-left"),Jr[0]&&Jr[0].fixed),(0,ve.Z)(me,"".concat(He,"-has-fix-right"),Jr[Jr.length-1]&&Jr[Jr.length-1].fixed==="right"),me)),style:Nt,id:ra,ref:ti},su),wn&&ue.createElement(Mr,{className:"".concat(He,"-title")},wn(Ma)),ue.createElement("div",{ref:Fi,className:"".concat(He,"-container")},vu),yn&&ue.createElement(Mr,{className:"".concat(He,"-footer")},yn(Ma)));zo&&(cu=ue.createElement(gt.Z,{onResize:cs},cu));var _u=Sn(Jr,Ei,Wt,qr),qu=ue.useMemo(function(){return{scrollX:ci,prefixCls:He,getComponent:Sr,scrollbarSize:iu,direction:Wt,fixedInfoList:_u,isSticky:Qi,supportSticky:pu,componentWidth:qa,fixHeader:Uo,fixColumn:cl,horizonScroll:zo,tableLayout:uu,rowClassName:Ye,expandedRowClassName:Ir.expandedRowClassName,expandIcon:Zo,expandableType:Jo,expandRowByClick:Ir.expandRowByClick,expandedRowRender:Ir.expandedRowRender,onTriggerExpand:Ai,expandIconColumnIndex:Ir.expandIconColumnIndex,indentSize:Ir.indentSize,allColumnsFixedLeft:Jr.every(function(ro){return ro.fixed==="left"}),emptyNode:Ru,columns:qr,flattenColumns:Jr,onColumnResize:Ql,hoverStartRow:Kr,hoverEndRow:Lo,onHover:io,rowExpandable:Ir.rowExpandable,onRow:er,getRowKey:kr,expandedKeys:no,childrenColumnName:Ro}},[ci,He,Sr,iu,Wt,_u,Qi,pu,qa,Uo,cl,zo,uu,Ye,Ir.expandedRowClassName,Zo,Jo,Ir.expandRowByClick,Ir.expandedRowRender,Ai,Ir.expandIconColumnIndex,Ir.indentSize,Ru,qr,Jr,Ql,Kr,Lo,io,Ir.rowExpandable,er,kr,no,Ro]);return ue.createElement(ce.Provider,{value:qu},cu)}function Xa(fe){return z(qn,fe)}var xr=Xa();xr.EXPAND_COLUMN=b,xr.INTERNAL_HOOKS=se,xr.Column=za,xr.ColumnGroup=ja,xr.Summary=Ae;var mr=xr,hr=ae(48911),Qr=We(null),eo=We(null);function Yo(fe,me,Me){var He=me||1;return Me[fe+He]-(Me[fe]||0)}function Ti(fe){var me=fe.rowInfo,Me=fe.column,He=fe.colIndex,$e=fe.indent,Ye=fe.index,Nt=fe.renderIndex,xt=fe.record,Tt=fe.style,Qt=fe.className,Mt=fe.inverse,Wt=fe.getHeight,wn=Me.render,yn=Me.dataIndex,Ln=Me.className,ha=Me.width,ra=_e(eo,["columnsOffset"]),da=ra.columnsOffset,oa=Yt(me,Me,He,$e,Ye),Oa=oa.key,er=oa.fixedInfo,rr=oa.appendCellNode,Wa=oa.additionalCellProps,br=Wa.style,Dr=Wa.colSpan,Ta=Dr===void 0?1:Dr,Ua=Wa.rowSpan,Ma=Ua===void 0?1:Ua,Ba=He-1,Za=Yo(Ba,Ta,da),Sr=Ta>1?ha-Za:0,kr=(0,we.Z)((0,we.Z)((0,we.Z)({},br),Tt),{},{flex:"0 0 ".concat(Za,"px"),width:"".concat(Za,"px"),marginRight:Sr,pointerEvents:"auto"}),Br=ue.useMemo(function(){return Mt?Ma<=1:Ta===0||Ma===0||Ma>1},[Ma,Ta,Mt]);Br?kr.visibility="hidden":Mt&&(kr.height=Wt==null?void 0:Wt(Ma));var sr=Br?function(){return null}:wn,Zr={};return(Ma===0||Ta===0)&&(Zr.rowSpan=1,Zr.colSpan=1),ue.createElement(Vt,(0,ke.Z)({className:Ge()(Ln,Qt),ellipsis:Me.ellipsis,align:Me.align,scope:Me.rowScope,component:"div",prefixCls:me.prefixCls,key:Oa,record:xt,index:Ye,renderIndex:Nt,dataIndex:yn,render:sr,shouldCellUpdate:Me.shouldCellUpdate},er,{appendNode:rr,additionalProps:(0,we.Z)((0,we.Z)({},Wa),{},{style:kr},Zr)}))}var Eo=Ti,Na=["data","index","className","rowKey","style","extra","getHeight"],oo=ue.forwardRef(function(fe,me){var Me=fe.data,He=fe.index,$e=fe.className,Ye=fe.rowKey,Nt=fe.style,xt=fe.extra,Tt=fe.getHeight,Qt=(0,At.Z)(fe,Na),Mt=Me.record,Wt=Me.indent,wn=Me.index,yn=_e(ce,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Ln=yn.scrollX,ha=yn.flattenColumns,ra=yn.prefixCls,da=yn.fixColumn,oa=yn.componentWidth,Oa=bt(Mt,Ye,He,Wt),er=Oa.rowSupportExpand,rr=Oa.expanded,Wa=Oa.rowProps,br=Oa.expandedRowRender,Dr=Oa.expandedRowClassName,Ta;if(er&&rr){var Ua=br(Mt,He,Wt+1,rr),Ma=Dr==null?void 0:Dr(Mt,He,Wt),Ba={};da&&(Ba={style:(0,ve.Z)({},"--virtual-width","".concat(oa,"px"))});var Za="".concat(ra,"-expanded-row-cell");Ta=ue.createElement("div",{className:Ge()("".concat(ra,"-expanded-row"),"".concat(ra,"-expanded-row-level-").concat(Wt+1),Ma)},ue.createElement(Vt,{component:"div",prefixCls:ra,className:Ge()(Za,(0,ve.Z)({},"".concat(Za,"-fixed"),da)),additionalProps:Ba},Ua))}var Sr=(0,we.Z)((0,we.Z)({},Nt),{},{width:Ln});xt&&(Sr.position="absolute",Sr.pointerEvents="none");var kr=ue.createElement("div",(0,ke.Z)({},Wa,Qt,{ref:er?null:me,className:Ge()($e,"".concat(ra,"-row"),Wa==null?void 0:Wa.className,(0,ve.Z)({},"".concat(ra,"-row-extra"),xt)),style:(0,we.Z)((0,we.Z)({},Sr),Wa==null?void 0:Wa.style)}),ha.map(function(Br,sr){return ue.createElement(Eo,{key:sr,rowInfo:Oa,column:Br,colIndex:sr,indent:Wt,index:He,renderIndex:wn,record:Mt,inverse:xt,getHeight:Tt})}));return er?ue.createElement("div",{ref:me},kr,Ta):kr}),po=te(oo),Mo=po,yo=ue.forwardRef(function(fe,me){var Me=fe.data,He=fe.onScroll,$e=_e(ce,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Ye=$e.flattenColumns,Nt=$e.onColumnResize,xt=$e.getRowKey,Tt=$e.expandedKeys,Qt=$e.prefixCls,Mt=$e.childrenColumnName,Wt=$e.emptyNode,wn=$e.scrollX,yn=_e(Qr),Ln=yn.scrollY,ha=yn.listItemHeight,ra=ue.useRef(),da=Jt(Me,Mt,Tt,xt),oa=ue.useMemo(function(){var Ta=0;return Ye.map(function(Ua){var Ma=Ua.width,Ba=Ua.key;return Ta+=Ma,[Ba,Ma,Ta]})},[Ye]),Oa=ue.useMemo(function(){return oa.map(function(Ta){return Ta[2]})},[oa]);ue.useEffect(function(){oa.forEach(function(Ta){var Ua=(0,Ce.Z)(Ta,2),Ma=Ua[0],Ba=Ua[1];Nt(Ma,Ba)})},[oa]),ue.useImperativeHandle(me,function(){var Ta={};return Object.defineProperty(Ta,"scrollLeft",{get:function(){var Ma;return((Ma=ra.current)===null||Ma===void 0?void 0:Ma.getScrollInfo().x)||0},set:function(Ma){var Ba;(Ba=ra.current)===null||Ba===void 0||Ba.scrollTo({left:Ma})}}),Ta});var er=function(Ua,Ma){var Ba,Za=(Ba=da[Ma])===null||Ba===void 0?void 0:Ba.record,Sr=Ua.onCell;if(Sr){var kr,Br=Sr(Za,Ma);return(kr=Br==null?void 0:Br.rowSpan)!==null&&kr!==void 0?kr:1}return 1},rr=function(Ua){var Ma=Ua.start,Ba=Ua.end,Za=Ua.getSize,Sr=Ua.offsetY;if(Ba<0)return null;for(var kr=Ye.filter(function(vr){return er(vr,Ma)===0}),Br=Ma,sr=function(dr){if(kr=kr.filter(function(ir){return er(ir,dr)===0}),!kr.length)return Br=dr,"break"},Zr=Ma;Zr>=0;Zr-=1){var Kr=sr(Zr);if(Kr==="break")break}for(var Lo=Ye.filter(function(vr){return er(vr,Ba)!==1}),io=Ba,Vo=function(dr){if(Lo=Lo.filter(function(ir){return er(ir,dr)!==1}),!Lo.length)return io=Math.max(dr-1,Ba),"break"},Do=Ba;Do<da.length;Do+=1){var Ir=Vo(Do);if(Ir==="break")break}for(var Jo=[],no=function(dr){var ir=da[dr];if(!ir)return"continue";Ye.some(function(qa){return er(qa,dr)>1})&&Jo.push(dr)},Zo=Br;Zo<=io;Zo+=1)var Ro=no(Zo);var Ai=Jo.map(function(vr){var dr=da[vr],ir=xt(dr.record,vr),qa=function(Ar){var qr=vr+Ar-1,Jr=xt(da[qr].record,qr),di=Za(ir,Jr);return di.bottom-di.top},so=Za(ir);return ue.createElement(Mo,{key:vr,data:dr,rowKey:ir,index:vr,style:{top:-Sr+so.top},extra:!0,getHeight:qa})});return Ai},Wa=ue.useMemo(function(){return{columnsOffset:Oa}},[Oa]),br="".concat(Qt,"-tbody"),Dr;return da.length?Dr=ue.createElement(hr.Z,{fullHeight:!1,ref:ra,className:Ge()(br,"".concat(br,"-virtual")),height:Ln,itemHeight:ha||24,data:da,itemKey:function(Ua){return xt(Ua.record)},scrollWidth:wn,onVirtualScroll:function(Ua){var Ma=Ua.x;He({scrollLeft:Ma})},extraRender:rr},function(Ta,Ua,Ma){var Ba=xt(Ta.record,Ua);return ue.createElement(Mo,(0,ke.Z)({data:Ta,rowKey:Ba,index:Ua},Ma))}):Dr=ue.createElement("div",{className:Ge()("".concat(Qt,"-placeholder"))},ue.createElement(Vt,{component:"div",prefixCls:Qt},Wt)),ue.createElement(eo.Provider,{value:Wa},Dr)}),Ao=te(yo),oi=Ao,$o=function(me,Me){var He=Me.ref,$e=Me.onScroll;return ue.createElement(oi,{ref:He,data:me,onScroll:$e})},Ko=100;function Ci(fe){var me=fe.columns,Me=fe.scroll,He=fe.prefixCls,$e=He===void 0?ia:He,Ye=fe.className,Nt=fe.listItemHeight,xt=Me||{},Tt=xt.x,Qt=xt.y;typeof Tt!="number"&&(Tt=((me||[]).length+1)*Ko),typeof Qt!="number"&&(Qt=500);var Mt=ue.useMemo(function(){return{scrollY:Qt,listItemHeight:Nt}},[Qt,Nt]);return ue.createElement(Qr.Provider,{value:Mt},ue.createElement(mr,(0,ke.Z)({},fe,{className:Ge()(Ye,"".concat($e,"-virtual")),scroll:(0,we.Z)((0,we.Z)({},Me),{},{x:Tt}),components:{body:$o},columns:me,internalHooks:se,tailor:!0})))}function Qo(fe){return z(Ci,fe)}var bo=Qo(),xi=null;function Co(fe){return null}var Mi=Co;function ai(fe){return null}var Wi=ai,Di=ae(2738),_i=ae(68031),qo=ae(36355),Ki=ae(93891),pl=ae(19716),Xi=ae(8628),Yi=ae(31724),Xr=ae(58421),Ka=ae(71418),la=ae(88088);function ca(fe){return function(Me){let{prefixCls:He,onExpand:$e,record:Ye,expanded:Nt,expandable:xt}=Me;const Tt=`${He}-row-expand-icon`;return ue.createElement("button",{type:"button",onClick:Qt=>{$e(Ye,Qt),Qt.stopPropagation()},className:Ge()(Tt,{[`${Tt}-spaced`]:!xt,[`${Tt}-expanded`]:xt&&Nt,[`${Tt}-collapsed`]:xt&&!Nt}),"aria-label":Nt?fe.collapse:fe.expand,"aria-expanded":Nt})}}var Fa=ca;function wr(fe,me){return"key"in fe&&fe.key!==void 0&&fe.key!==null?fe.key:fe.dataIndex?Array.isArray(fe.dataIndex)?fe.dataIndex.join("."):fe.dataIndex:me}function Gr(fe,me){return me?`${me}-${fe}`:`${fe}`}function lo(fe,me){return typeof fe=="function"?fe(me):fe}function vo(fe,me){const Me=lo(fe,me);return Object.prototype.toString.call(Me)==="[object Object]"?"":Me}var Io={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"},Fo=Io,Va=ae(7657),Ho=function(me,Me){return ue.createElement(Va.Z,(0,ke.Z)({},me,{ref:Me,icon:Fo}))},Bi=ue.forwardRef(Ho),si=Bi,ki=ae(56762);function Zi(fe){const me=ue.useRef(fe),Me=(0,ki.Z)();return[()=>me.current,He=>{me.current=He,Me()}]}var zi=ae(3113),Yr=ae(24905),_o=ae(38854),ol=ae(64165),vi=ae(20834),Vi=ae(40875),il=ae(5112),$i=ae(17574),ko=ae(47472),qi=ae(92832);function el(fe){let{value:me,onChange:Me,filterSearch:He,tablePrefixCls:$e,locale:Ye}=fe;return He?ue.createElement("div",{className:`${$e}-filter-dropdown-search`},ue.createElement(qi.default,{prefix:ue.createElement(ko.Z,null),placeholder:Ye.filterSearchPlaceholder,onChange:Me,value:me,htmlSize:1,className:`${$e}-filter-dropdown-search-input`})):null}var ll=el,ul=ae(10228);const Rl=fe=>{const{keyCode:me}=fe;me===ul.Z.ENTER&&fe.stopPropagation()};var Tl=ue.forwardRef((fe,me)=>ue.createElement("div",{className:fe.className,onClick:Me=>Me.stopPropagation(),onKeyDown:Rl,ref:me},fe.children));function Ri(fe){let me=[];return(fe||[]).forEach(Me=>{let{value:He,children:$e}=Me;me.push(He),$e&&(me=[].concat((0,Cn.Z)(me),(0,Cn.Z)(Ri($e))))}),me}function Al(fe){return fe.some(me=>{let{children:Me}=me;return Me})}function tl(fe,me){return typeof me=="string"||typeof me=="number"?me==null?void 0:me.toString().toLowerCase().includes(fe.trim().toLowerCase()):!1}function Fl(fe){let{filters:me,prefixCls:Me,filteredKeys:He,filterMultiple:$e,searchValue:Ye,filterSearch:Nt}=fe;return me.map((xt,Tt)=>{const Qt=String(xt.value);if(xt.children)return{key:Qt||Tt,label:xt.text,popupClassName:`${Me}-dropdown-submenu`,children:Fl({filters:xt.children,prefixCls:Me,filteredKeys:He,filterMultiple:$e,searchValue:Ye,filterSearch:Nt})};const Mt=$e?Yr.default:il.ZP,Wt={key:xt.value!==void 0?Qt:Tt,label:ue.createElement(ue.Fragment,null,ue.createElement(Mt,{checked:He.includes(Qt)}),ue.createElement("span",null,xt.text))};return Ye.trim()?typeof Nt=="function"?Nt(Ye,xt)?Wt:null:tl(Ye,xt.text)?Wt:null:Wt})}function Hl(fe){var me,Me;const{tablePrefixCls:He,prefixCls:$e,column:Ye,dropdownPrefixCls:Nt,columnKey:xt,filterMultiple:Tt,filterMode:Qt="menu",filterSearch:Mt=!1,filterState:Wt,triggerFilter:wn,locale:yn,children:Ln,getPopupContainer:ha}=fe,{filterDropdownOpen:ra,onFilterDropdownOpenChange:da,filterResetToDefaultFilteredValue:oa,defaultFilteredValue:Oa,filterDropdownVisible:er,onFilterDropdownVisibleChange:rr}=Ye,[Wa,br]=ue.useState(!1),Dr=!!(Wt&&(!((me=Wt.filteredKeys)===null||me===void 0)&&me.length||Wt.forceFiltered)),Ta=Ya=>{br(Ya),da==null||da(Ya),rr==null||rr(Ya)},Ua=(Me=ra!=null?ra:er)!==null&&Me!==void 0?Me:Wa,Ma=Wt==null?void 0:Wt.filteredKeys,[Ba,Za]=Zi(Ma||[]),Sr=Ya=>{let{selectedKeys:Ar}=Ya;Za(Ar)},kr=(Ya,Ar)=>{let{node:qr,checked:Jr}=Ar;Sr(Tt?{selectedKeys:Ya}:{selectedKeys:Jr&&qr.key?[qr.key]:[]})};ue.useEffect(()=>{Wa&&Sr({selectedKeys:Ma||[]})},[Ma]);const[Br,sr]=ue.useState([]),Zr=Ya=>{sr(Ya)},[Kr,Lo]=ue.useState(""),io=Ya=>{const{value:Ar}=Ya.target;Lo(Ar)};ue.useEffect(()=>{Wa||Lo("")},[Wa]);const Vo=Ya=>{const Ar=Ya&&Ya.length?Ya:null;if(Ar===null&&(!Wt||!Wt.filteredKeys)||(0,Re.Z)(Ar,Wt==null?void 0:Wt.filteredKeys,!0))return null;wn({column:Ye,key:xt,filteredKeys:Ar})},Do=()=>{Ta(!1),Vo(Ba())},Ir=function(){let{confirm:Ya,closeDropdown:Ar}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Ya&&Vo([]),Ar&&Ta(!1),Lo(""),Za(oa?(Oa||[]).map(qr=>String(qr)):[])},Jo=function(){let{closeDropdown:Ya}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Ya&&Ta(!1),Vo(Ba())},no=Ya=>{Ya&&Ma!==void 0&&Za(Ma||[]),Ta(Ya),!Ya&&!Ye.filterDropdown&&Do()},Zo=Ge()({[`${Nt}-menu-without-submenu`]:!Al(Ye.filters||[])}),Ro=Ya=>{if(Ya.target.checked){const Ar=Ri(Ye==null?void 0:Ye.filters).map(qr=>String(qr));Za(Ar)}else Za([])},Ai=Ya=>{let{filters:Ar}=Ya;return(Ar||[]).map((qr,Jr)=>{const di=String(qr.value),ci={title:qr.text,key:qr.value!==void 0?di:Jr};return qr.children&&(ci.children=Ai({filters:qr.children})),ci})},vr=Ya=>{var Ar;return Object.assign(Object.assign({},Ya),{text:Ya.title,value:Ya.key,children:((Ar=Ya.children)===null||Ar===void 0?void 0:Ar.map(qr=>vr(qr)))||[]})};let dr;if(typeof Ye.filterDropdown=="function")dr=Ye.filterDropdown({prefixCls:`${Nt}-custom`,setSelectedKeys:Ya=>Sr({selectedKeys:Ya}),selectedKeys:Ba(),confirm:Jo,clearFilters:Ir,filters:Ye.filters,visible:Ua,close:()=>{Ta(!1)}});else if(Ye.filterDropdown)dr=Ye.filterDropdown;else{const Ya=Ba()||[],Ar=()=>(Ye.filters||[]).length===0?ue.createElement(ol.Z,{image:ol.Z.PRESENTED_IMAGE_SIMPLE,description:yn.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Qt==="tree"?ue.createElement(ue.Fragment,null,ue.createElement(ll,{filterSearch:Mt,value:Kr,onChange:io,tablePrefixCls:He,locale:yn}),ue.createElement("div",{className:`${He}-filter-dropdown-tree`},Tt?ue.createElement(Yr.default,{checked:Ya.length===Ri(Ye.filters).length,indeterminate:Ya.length>0&&Ya.length<Ri(Ye.filters).length,className:`${He}-filter-dropdown-checkall`,onChange:Ro},yn.filterCheckall):null,ue.createElement($i.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Tt,checkStrictly:!Tt,className:`${Nt}-menu`,onCheck:kr,checkedKeys:Ya,selectedKeys:Ya,showIcon:!1,treeData:Ai({filters:Ye.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Kr.trim()?Jr=>typeof Mt=="function"?Mt(Kr,vr(Jr)):tl(Kr,Jr.title):void 0}))):ue.createElement(ue.Fragment,null,ue.createElement(ll,{filterSearch:Mt,value:Kr,onChange:io,tablePrefixCls:He,locale:yn}),ue.createElement(vi.default,{selectable:!0,multiple:Tt,prefixCls:`${Nt}-menu`,className:Zo,onSelect:Sr,onDeselect:Sr,selectedKeys:Ya,getPopupContainer:ha,openKeys:Br,onOpenChange:Zr,items:Fl({filters:Ye.filters||[],filterSearch:Mt,prefixCls:$e,filteredKeys:Ba(),filterMultiple:Tt,searchValue:Kr})})),qr=()=>oa?(0,Re.Z)((Oa||[]).map(Jr=>String(Jr)),Ya,!0):Ya.length===0;dr=ue.createElement(ue.Fragment,null,Ar(),ue.createElement("div",{className:`${$e}-dropdown-btns`},ue.createElement(zi.ZP,{type:"link",size:"small",disabled:qr(),onClick:()=>Ir()},yn.filterReset),ue.createElement(zi.ZP,{type:"primary",size:"small",onClick:Do},yn.filterConfirm)))}Ye.filterDropdown&&(dr=ue.createElement(Vi.J,{selectable:void 0},dr));const ir=()=>ue.createElement(Tl,{className:`${$e}-dropdown`},dr);let qa;typeof Ye.filterIcon=="function"?qa=Ye.filterIcon(Dr):Ye.filterIcon?qa=Ye.filterIcon:qa=ue.createElement(si,null);const{direction:so}=ue.useContext(qo.E_);return ue.createElement("div",{className:`${$e}-column`},ue.createElement("span",{className:`${He}-column-title`},Ln),ue.createElement(_o.Z,{dropdownRender:ir,trigger:["click"],open:Ua,onOpenChange:no,getPopupContainer:ha,placement:so==="rtl"?"bottomLeft":"bottomRight"},ue.createElement("span",{role:"button",tabIndex:-1,className:Ge()(`${$e}-trigger`,{active:Dr}),onClick:Ya=>{Ya.stopPropagation()}},qa)))}var dt=Hl;function mt(fe,me,Me){let He=[];return(fe||[]).forEach(($e,Ye)=>{var Nt;const xt=Gr(Ye,Me);if($e.filters||"filterDropdown"in $e||"onFilter"in $e)if("filteredValue"in $e){let Tt=$e.filteredValue;"filterDropdown"in $e||(Tt=(Nt=Tt==null?void 0:Tt.map(String))!==null&&Nt!==void 0?Nt:Tt),He.push({column:$e,key:wr($e,xt),filteredKeys:Tt,forceFiltered:$e.filtered})}else He.push({column:$e,key:wr($e,xt),filteredKeys:me&&$e.defaultFilteredValue?$e.defaultFilteredValue:void 0,forceFiltered:$e.filtered});"children"in $e&&(He=[].concat((0,Cn.Z)(He),(0,Cn.Z)(mt($e.children,me,xt))))}),He}function Zt(fe,me,Me,He,$e,Ye,Nt,xt){return Me.map((Tt,Qt)=>{const Mt=Gr(Qt,xt),{filterMultiple:Wt=!0,filterMode:wn,filterSearch:yn}=Tt;let Ln=Tt;if(Ln.filters||Ln.filterDropdown){const ha=wr(Ln,Mt),ra=He.find(da=>{let{key:oa}=da;return ha===oa});Ln=Object.assign(Object.assign({},Ln),{title:da=>ue.createElement(dt,{tablePrefixCls:fe,prefixCls:`${fe}-filter`,dropdownPrefixCls:me,column:Ln,columnKey:ha,filterState:ra,filterMultiple:Wt,filterMode:wn,filterSearch:yn,triggerFilter:Ye,locale:$e,getPopupContainer:Nt},lo(Tt.title,da))})}return"children"in Ln&&(Ln=Object.assign(Object.assign({},Ln),{children:Zt(fe,me,Ln.children,He,$e,Ye,Nt,Mt)})),Ln})}function Bn(fe){const me={};return fe.forEach(Me=>{let{key:He,filteredKeys:$e,column:Ye}=Me;const{filters:Nt,filterDropdown:xt}=Ye;if(xt)me[He]=$e||null;else if(Array.isArray($e)){const Tt=Ri(Nt);me[He]=Tt.filter(Qt=>$e.includes(String(Qt)))}else me[He]=null}),me}function An(fe,me){return me.reduce((Me,He)=>{const{column:{onFilter:$e,filters:Ye},filteredKeys:Nt}=He;return $e&&Nt&&Nt.length?Me.filter(xt=>Nt.some(Tt=>{const Qt=Ri(Ye),Mt=Qt.findIndex(wn=>String(wn)===String(Tt)),Wt=Mt!==-1?Qt[Mt]:Tt;return $e(Wt,xt)})):Me},fe)}const hn=fe=>fe.flatMap(me=>"children"in me?[me].concat((0,Cn.Z)(hn(me.children||[]))):[me]);function pn(fe){let{prefixCls:me,dropdownPrefixCls:Me,mergedColumns:He,onFilterChange:$e,getPopupContainer:Ye,locale:Nt}=fe;const xt=ue.useMemo(()=>hn(He||[]),[He]),[Tt,Qt]=ue.useState(()=>mt(xt,!0)),Mt=ue.useMemo(()=>{const Ln=mt(xt,!1);if(Ln.length===0)return Ln;let ha=!0,ra=!0;if(Ln.forEach(da=>{let{filteredKeys:oa}=da;oa!==void 0?ha=!1:ra=!1}),ha){const da=(xt||[]).map((oa,Oa)=>wr(oa,Gr(Oa)));return Tt.filter(oa=>{let{key:Oa}=oa;return da.includes(Oa)}).map(oa=>{const Oa=xt[da.findIndex(er=>er===oa.key)];return Object.assign(Object.assign({},oa),{column:Object.assign(Object.assign({},oa.column),Oa),forceFiltered:Oa.filtered})})}return Ln},[xt,Tt]),Wt=ue.useMemo(()=>Bn(Mt),[Mt]),wn=Ln=>{const ha=Mt.filter(ra=>{let{key:da}=ra;return da!==Ln.key});ha.push(Ln),Qt(ha),$e(Bn(ha),ha)};return[Ln=>Zt(me,Me,Ln,Mt,Nt,wn,Ye),Mt,Wt]}var _t=pn;function on(fe,me,Me){const He=ue.useRef({});function $e(Ye){if(!He.current||He.current.data!==fe||He.current.childrenColumnName!==me||He.current.getRowKey!==Me){let xt=function(Tt){Tt.forEach((Qt,Mt)=>{const Wt=Me(Qt,Mt);Nt.set(Wt,Qt),Qt&&typeof Qt=="object"&&me in Qt&&xt(Qt[me]||[])})};const Nt=new Map;xt(fe),He.current={data:fe,childrenColumnName:me,kvMap:Nt,getRowKey:Me}}return He.current.kvMap.get(Ye)}return[$e]}var Tn=ae(50371),ga=function(fe,me){var Me={};for(var He in fe)Object.prototype.hasOwnProperty.call(fe,He)&&me.indexOf(He)<0&&(Me[He]=fe[He]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,He=Object.getOwnPropertySymbols(fe);$e<He.length;$e++)me.indexOf(He[$e])<0&&Object.prototype.propertyIsEnumerable.call(fe,He[$e])&&(Me[He[$e]]=fe[He[$e]]);return Me};const pr=10;function ar(fe,me){const Me={current:fe.current,pageSize:fe.pageSize};return Object.keys(me&&typeof me=="object"?me:{}).forEach($e=>{const Ye=fe[$e];typeof Ye!="function"&&(Me[$e]=Ye)}),Me}function uo(fe,me,Me){const He=Me&&typeof Me=="object"?Me:{},{total:$e=0}=He,Ye=ga(He,["total"]),[Nt,xt]=(0,ue.useState)(()=>({current:"defaultCurrent"in Ye?Ye.defaultCurrent:1,pageSize:"defaultPageSize"in Ye?Ye.defaultPageSize:pr})),Tt=(0,Tn.Z)(Nt,Ye,{total:$e>0?$e:fe}),Qt=Math.ceil(($e||fe)/Tt.pageSize);Tt.current>Qt&&(Tt.current=Qt||1);const Mt=(wn,yn)=>{xt({current:wn!=null?wn:1,pageSize:yn||Tt.pageSize})},Wt=(wn,yn)=>{var Ln;Me&&((Ln=Me.onChange)===null||Ln===void 0||Ln.call(Me,wn,yn)),Mt(wn,yn),me(wn,yn||(Tt==null?void 0:Tt.pageSize))};return Me===!1?[{},()=>{}]:[Object.assign(Object.assign({},Tt),{onChange:Wt}),Mt]}var _r=uo,_a=ae(84105),Ea=ae(35654),Xn=ae(90782),Pr=ae(71430),Cr=ae(18929);const Tr={},to="SELECT_ALL",Er="SELECT_INVERT",Wr="SELECT_NONE",yr=[],Da=(fe,me)=>{let Me=[];return(me||[]).forEach(He=>{Me.push(He),He&&typeof He=="object"&&fe in He&&(Me=[].concat((0,Cn.Z)(Me),(0,Cn.Z)(Da(fe,He[fe]))))}),Me};var $r=(fe,me)=>{const{preserveSelectedRowKeys:Me,selectedRowKeys:He,defaultSelectedRowKeys:$e,getCheckboxProps:Ye,onChange:Nt,onSelect:xt,onSelectAll:Tt,onSelectInvert:Qt,onSelectNone:Mt,onSelectMultiple:Wt,columnWidth:wn,type:yn,selections:Ln,fixed:ha,renderCell:ra,hideSelectAll:da,checkStrictly:oa=!0}=me||{},{prefixCls:Oa,data:er,pageData:rr,getRecordByKey:Wa,getRowKey:br,expandType:Dr,childrenColumnName:Ta,locale:Ua,getPopupContainer:Ma}=fe,[Ba,Za]=(0,Cr.Z)(He||$e||yr,{value:He}),Sr=ue.useRef(new Map),kr=(0,ue.useCallback)(vr=>{if(Me){const dr=new Map;vr.forEach(ir=>{let qa=Wa(ir);!qa&&Sr.current.has(ir)&&(qa=Sr.current.get(ir)),dr.set(ir,qa)}),Sr.current=dr}},[Wa,Me]);ue.useEffect(()=>{kr(Ba)},[Ba]);const{keyEntities:Br}=(0,ue.useMemo)(()=>{if(oa)return{keyEntities:null};let vr=er;if(Me){const dr=new Set(er.map((qa,so)=>br(qa,so))),ir=Array.from(Sr.current).reduce((qa,so)=>{let[Ya,Ar]=so;return dr.has(Ya)?qa:qa.concat(Ar)},[]);vr=[].concat((0,Cn.Z)(vr),(0,Cn.Z)(ir))}return(0,Pr.I8)(vr,{externalGetKey:br,childrenPropName:Ta})},[er,br,oa,Ta,Me]),sr=(0,ue.useMemo)(()=>Da(Ta,rr),[Ta,rr]),Zr=(0,ue.useMemo)(()=>{const vr=new Map;return sr.forEach((dr,ir)=>{const qa=br(dr,ir),so=(Ye?Ye(dr):null)||{};vr.set(qa,so)}),vr},[sr,br,Ye]),Kr=(0,ue.useCallback)(vr=>{var dr;return!!(!((dr=Zr.get(br(vr)))===null||dr===void 0)&&dr.disabled)},[Zr,br]),[Lo,io]=(0,ue.useMemo)(()=>{if(oa)return[Ba||[],[]];const{checkedKeys:vr,halfCheckedKeys:dr}=(0,Xn.S)(Ba,!0,Br,Kr);return[vr||[],dr]},[Ba,oa,Br,Kr]),Vo=(0,ue.useMemo)(()=>{const vr=yn==="radio"?Lo.slice(0,1):Lo;return new Set(vr)},[Lo,yn]),Do=(0,ue.useMemo)(()=>yn==="radio"?new Set:new Set(io),[io,yn]),[Ir,Jo]=(0,ue.useState)(null);ue.useEffect(()=>{me||Za(yr)},[!!me]);const no=(0,ue.useCallback)((vr,dr)=>{let ir,qa;kr(vr),Me?(ir=vr,qa=vr.map(so=>Sr.current.get(so))):(ir=[],qa=[],vr.forEach(so=>{const Ya=Wa(so);Ya!==void 0&&(ir.push(so),qa.push(Ya))})),Za(ir),Nt==null||Nt(ir,qa,{type:dr})},[Za,Wa,Nt,Me]),Zo=(0,ue.useCallback)((vr,dr,ir,qa)=>{if(xt){const so=ir.map(Ya=>Wa(Ya));xt(Wa(vr),dr,so,qa)}no(ir,"single")},[xt,Wa,no]),Ro=(0,ue.useMemo)(()=>!Ln||da?null:(Ln===!0?[to,Er,Wr]:Ln).map(dr=>dr===to?{key:"all",text:Ua.selectionAll,onSelect(){no(er.map((ir,qa)=>br(ir,qa)).filter(ir=>{const qa=Zr.get(ir);return!(qa!=null&&qa.disabled)||Vo.has(ir)}),"all")}}:dr===Er?{key:"invert",text:Ua.selectInvert,onSelect(){const ir=new Set(Vo);rr.forEach((so,Ya)=>{const Ar=br(so,Ya),qr=Zr.get(Ar);qr!=null&&qr.disabled||(ir.has(Ar)?ir.delete(Ar):ir.add(Ar))});const qa=Array.from(ir);Qt&&Qt(qa),no(qa,"invert")}}:dr===Wr?{key:"none",text:Ua.selectNone,onSelect(){Mt==null||Mt(),no(Array.from(Vo).filter(ir=>{const qa=Zr.get(ir);return qa==null?void 0:qa.disabled}),"none")}}:dr).map(dr=>Object.assign(Object.assign({},dr),{onSelect:function(){for(var ir,qa,so=arguments.length,Ya=new Array(so),Ar=0;Ar<so;Ar++)Ya[Ar]=arguments[Ar];(qa=dr.onSelect)===null||qa===void 0||(ir=qa).call.apply(ir,[dr].concat(Ya)),Jo(null)}})),[Ln,Vo,rr,br,Qt,no]);return[(0,ue.useCallback)(vr=>{var dr;if(!me)return vr.filter(fo=>fo!==Tr);let ir=(0,Cn.Z)(vr);const qa=new Set(Vo),so=sr.map(br).filter(fo=>!Zr.get(fo).disabled),Ya=so.every(fo=>qa.has(fo)),Ar=so.some(fo=>qa.has(fo)),qr=()=>{const fo=[];Ya?so.forEach(No=>{qa.delete(No),fo.push(No)}):so.forEach(No=>{qa.has(No)||(qa.add(No),fo.push(No))});const So=Array.from(qa);Tt==null||Tt(!Ya,So.map(No=>Wa(No)),fo.map(No=>Wa(No))),no(So,"all"),Jo(null)};let Jr;if(yn!=="radio"){let fo;if(Ro){const Vr={getPopupContainer:Ma,items:Ro.map((hi,Si)=>{const{key:pi,text:dl,onSelect:nl}=hi;return{key:pi!=null?pi:Si,onClick:()=>{nl==null||nl(so)},label:dl}})};fo=ue.createElement("div",{className:`${Oa}-selection-extra`},ue.createElement(_o.Z,{menu:Vr,getPopupContainer:Ma},ue.createElement("span",null,ue.createElement(_a.Z,null))))}const So=sr.map((Vr,hi)=>{const Si=br(Vr,hi),pi=Zr.get(Si)||{};return Object.assign({checked:qa.has(Si)},pi)}).filter(Vr=>{let{disabled:hi}=Vr;return hi}),No=!!So.length&&So.length===sr.length,Go=No&&So.every(Vr=>{let{checked:hi}=Vr;return hi}),Xo=No&&So.some(Vr=>{let{checked:hi}=Vr;return hi});Jr=!da&&ue.createElement("div",{className:`${Oa}-selection`},ue.createElement(Yr.default,{checked:No?Go:!!sr.length&&Ya,indeterminate:No?!Go&&Xo:!Ya&&Ar,onChange:qr,disabled:sr.length===0||No,"aria-label":fo?"Custom selection":"Select all",skipGroup:!0}),fo)}let di;yn==="radio"?di=(fo,So,No)=>{const Go=br(So,No),Xo=qa.has(Go);return{node:ue.createElement(il.ZP,Object.assign({},Zr.get(Go),{checked:Xo,onClick:Vr=>Vr.stopPropagation(),onChange:Vr=>{qa.has(Go)||Zo(Go,!0,[Go],Vr.nativeEvent)}})),checked:Xo}}:di=(fo,So,No)=>{var Go;const Xo=br(So,No),Vr=qa.has(Xo),hi=Do.has(Xo),Si=Zr.get(Xo);let pi;return Dr==="nest"?pi=hi:pi=(Go=Si==null?void 0:Si.indeterminate)!==null&&Go!==void 0?Go:hi,{node:ue.createElement(Yr.default,Object.assign({},Si,{indeterminate:pi,checked:Vr,skipGroup:!0,onClick:dl=>dl.stopPropagation(),onChange:dl=>{let{nativeEvent:nl}=dl;const{shiftKey:Pi}=nl;let al=-1,Gi=-1;if(Pi&&oa){const Ii=new Set([Ir,Xo]);so.some((Ei,Uo)=>{if(Ii.has(Ei))if(al===-1)al=Uo;else return Gi=Uo,!0;return!1})}if(Gi!==-1&&al!==Gi&&oa){const Ii=so.slice(al,Gi+1),Ei=[];Vr?Ii.forEach(zo=>{qa.has(zo)&&(Ei.push(zo),qa.delete(zo))}):Ii.forEach(zo=>{qa.has(zo)||(Ei.push(zo),qa.add(zo))});const Uo=Array.from(qa);Wt==null||Wt(!Vr,Uo.map(zo=>Wa(zo)),Ei.map(zo=>Wa(zo))),no(Uo,"multiple")}else{const Ii=Lo;if(oa){const Ei=Vr?(0,Ea._5)(Ii,Xo):(0,Ea.L0)(Ii,Xo);Zo(Xo,!Vr,Ei,nl)}else{const Ei=(0,Xn.S)([].concat((0,Cn.Z)(Ii),[Xo]),!0,Br,Kr),{checkedKeys:Uo,halfCheckedKeys:zo}=Ei;let cl=Uo;if(Vr){const Nl=new Set(Uo);Nl.delete(Xo),cl=(0,Xn.S)(Array.from(Nl),{checked:!1,halfCheckedKeys:zo},Br,Kr).checkedKeys}Zo(Xo,!Vr,cl,nl)}}Jo(Vr?null:Xo)}})),checked:Vr}};const ci=(fo,So,No)=>{const{node:Go,checked:Xo}=di(fo,So,No);return ra?ra(Xo,So,No,Go):Go};if(!ir.includes(Tr))if(ir.findIndex(fo=>{var So;return((So=fo[La])===null||So===void 0?void 0:So.columnType)==="EXPAND_COLUMN"})===0){const[fo,...So]=ir;ir=[fo,Tr].concat((0,Cn.Z)(So))}else ir=[Tr].concat((0,Cn.Z)(ir));const Hi=ir.indexOf(Tr);ir=ir.filter((fo,So)=>fo!==Tr||So===Hi);const ti=ir[Hi-1],Ui=ir[Hi+1];let ni=ha;ni===void 0&&((Ui==null?void 0:Ui.fixed)!==void 0?ni=Ui.fixed:(ti==null?void 0:ti.fixed)!==void 0&&(ni=ti.fixed)),ni&&ti&&((dr=ti[La])===null||dr===void 0?void 0:dr.columnType)==="EXPAND_COLUMN"&&ti.fixed===void 0&&(ti.fixed=ni);const Fi=Ge()(`${Oa}-selection-col`,{[`${Oa}-selection-col-with-dropdown`]:Ln&&yn==="checkbox"}),Ll={fixed:ni,width:wn,className:`${Oa}-selection-column`,title:me.columnTitle||Jr,render:ci,onCell:me.onCell,[La]:{className:Fi}};return ir.map(fo=>fo===Tr?Ll:fo)},[br,sr,me,Lo,Vo,Do,wn,Ro,Dr,Ir,Zr,Wt,Zo,Kr]),Vo]},xo=ae(89489),ri=ae(59477),ji=ae(6848);const ze="ascend",qe="descend";function ct(fe){return typeof fe.sorter=="object"&&typeof fe.sorter.multiple=="number"?fe.sorter.multiple:!1}function Ct(fe){return typeof fe=="function"?fe:fe&&typeof fe=="object"&&fe.compare?fe.compare:!1}function dn(fe,me){return me?fe[fe.indexOf(me)+1]:fe[0]}function Dn(fe,me,Me){let He=[];function $e(Ye,Nt){He.push({column:Ye,key:wr(Ye,Nt),multiplePriority:ct(Ye),sortOrder:Ye.sortOrder})}return(fe||[]).forEach((Ye,Nt)=>{const xt=Gr(Nt,Me);Ye.children?("sortOrder"in Ye&&$e(Ye,xt),He=[].concat((0,Cn.Z)(He),(0,Cn.Z)(Dn(Ye.children,me,xt)))):Ye.sorter&&("sortOrder"in Ye?$e(Ye,xt):me&&Ye.defaultSortOrder&&He.push({column:Ye,key:wr(Ye,xt),multiplePriority:ct(Ye),sortOrder:Ye.defaultSortOrder}))}),He}function ta(fe,me,Me,He,$e,Ye,Nt,xt){return(me||[]).map((Tt,Qt)=>{const Mt=Gr(Qt,xt);let Wt=Tt;if(Wt.sorter){const wn=Wt.sortDirections||$e,yn=Wt.showSorterTooltip===void 0?Nt:Wt.showSorterTooltip,Ln=wr(Wt,Mt),ha=Me.find(Dr=>{let{key:Ta}=Dr;return Ta===Ln}),ra=ha?ha.sortOrder:null,da=dn(wn,ra);let oa;if(Tt.sortIcon)oa=Tt.sortIcon({sortOrder:ra});else{const Dr=wn.includes(ze)&&ue.createElement(ri.Z,{className:Ge()(`${fe}-column-sorter-up`,{active:ra===ze})}),Ta=wn.includes(qe)&&ue.createElement(xo.Z,{className:Ge()(`${fe}-column-sorter-down`,{active:ra===qe})});oa=ue.createElement("span",{className:Ge()(`${fe}-column-sorter`,{[`${fe}-column-sorter-full`]:!!(Dr&&Ta)})},ue.createElement("span",{className:`${fe}-column-sorter-inner`,"aria-hidden":"true"},Dr,Ta))}const{cancelSort:Oa,triggerAsc:er,triggerDesc:rr}=Ye||{};let Wa=Oa;da===qe?Wa=rr:da===ze&&(Wa=er);const br=typeof yn=="object"?yn:{title:Wa};Wt=Object.assign(Object.assign({},Wt),{className:Ge()(Wt.className,{[`${fe}-column-sort`]:ra}),title:Dr=>{const Ta=ue.createElement("div",{className:`${fe}-column-sorters`},ue.createElement("span",{className:`${fe}-column-title`},lo(Tt.title,Dr)),oa);return yn?ue.createElement(ji.Z,Object.assign({},br),Ta):Ta},onHeaderCell:Dr=>{const Ta=Tt.onHeaderCell&&Tt.onHeaderCell(Dr)||{},Ua=Ta.onClick,Ma=Ta.onKeyDown;Ta.onClick=Sr=>{He({column:Tt,key:Ln,sortOrder:da,multiplePriority:ct(Tt)}),Ua==null||Ua(Sr)},Ta.onKeyDown=Sr=>{Sr.keyCode===ul.Z.ENTER&&(He({column:Tt,key:Ln,sortOrder:da,multiplePriority:ct(Tt)}),Ma==null||Ma(Sr))};const Ba=vo(Tt.title,{}),Za=Ba==null?void 0:Ba.toString();return ra?Ta["aria-sort"]=ra==="ascend"?"ascending":"descending":Ta["aria-label"]=Za||"",Ta.className=Ge()(Ta.className,`${fe}-column-has-sorters`),Ta.tabIndex=0,Tt.ellipsis&&(Ta.title=(Ba!=null?Ba:"").toString()),Ta}})}return"children"in Wt&&(Wt=Object.assign(Object.assign({},Wt),{children:ta(fe,Wt.children,Me,He,$e,Ye,Nt,Mt)})),Wt})}function Un(fe){const{column:me,sortOrder:Me}=fe;return{column:me,order:Me,field:me.dataIndex,columnKey:me.key}}function Mn(fe){const me=fe.filter(Me=>{let{sortOrder:He}=Me;return He}).map(Un);return me.length===0&&fe.length?Object.assign(Object.assign({},Un(fe[fe.length-1])),{column:void 0}):me.length<=1?me[0]||{}:me}function rn(fe,me,Me){const He=me.slice().sort((Nt,xt)=>xt.multiplePriority-Nt.multiplePriority),$e=fe.slice(),Ye=He.filter(Nt=>{let{column:{sorter:xt},sortOrder:Tt}=Nt;return Ct(xt)&&Tt});return Ye.length?$e.sort((Nt,xt)=>{for(let Tt=0;Tt<Ye.length;Tt+=1){const Qt=Ye[Tt],{column:{sorter:Mt},sortOrder:Wt}=Qt,wn=Ct(Mt);if(wn&&Wt){const yn=wn(Nt,xt,Wt);if(yn!==0)return Wt===ze?yn:-yn}}return 0}).map(Nt=>{const xt=Nt[Me];return xt?Object.assign(Object.assign({},Nt),{[Me]:rn(xt,me,Me)}):Nt}):$e}function Vn(fe){let{prefixCls:me,mergedColumns:Me,onSorterChange:He,sortDirections:$e,tableLocale:Ye,showSorterTooltip:Nt}=fe;const[xt,Tt]=ue.useState(Dn(Me,!0)),Qt=ue.useMemo(()=>{let Ln=!0;const ha=Dn(Me,!1);if(!ha.length)return xt;const ra=[];function da(Oa){Ln?ra.push(Oa):ra.push(Object.assign(Object.assign({},Oa),{sortOrder:null}))}let oa=null;return ha.forEach(Oa=>{oa===null?(da(Oa),Oa.sortOrder&&(Oa.multiplePriority===!1?Ln=!1:oa=!0)):(oa&&Oa.multiplePriority!==!1||(Ln=!1),da(Oa))}),ra},[Me,xt]),Mt=ue.useMemo(()=>{const Ln=Qt.map(ha=>{let{column:ra,sortOrder:da}=ha;return{column:ra,order:da}});return{sortColumns:Ln,sortColumn:Ln[0]&&Ln[0].column,sortOrder:Ln[0]&&Ln[0].order}},[Qt]);function Wt(Ln){let ha;Ln.multiplePriority===!1||!Qt.length||Qt[0].multiplePriority===!1?ha=[Ln]:ha=[].concat((0,Cn.Z)(Qt.filter(ra=>{let{key:da}=ra;return da!==Ln.key})),[Ln]),Tt(ha),He(Mn(ha),ha)}return[Ln=>ta(me,Ln,Qt,Wt,$e,Ye,Nt),Qt,Mt,()=>Mn(Qt)]}function Sa(fe,me){return fe.map(Me=>{const He=Object.assign({},Me);return He.title=lo(Me.title,me),"children"in He&&(He.children=Sa(He.children,me)),He})}function lr(fe){return[ue.useCallback(Me=>Sa(Me,fe),[fe])]}var or=Xa((fe,me)=>{const{_renderTimes:Me}=fe,{_renderTimes:He}=me;return Me!==He}),ea=Qo((fe,me)=>{const{_renderTimes:Me}=fe,{_renderTimes:He}=me;return Me!==He}),Yn=ae(64993),On=ae(17313),Kn=ae(83116),Ra=ae(37613),Ia=fe=>{const{componentCls:me}=fe,Me=`${fe.lineWidth}px ${fe.lineType} ${fe.tableBorderColor}`,He=($e,Ye,Nt)=>({[`&${me}-${$e}`]:{[`> ${me}-container`]:{[`> ${me}-content, > ${me}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${me}-expanded-row-fixed`]:{margin:`-${Ye}px -${Nt+fe.lineWidth}px`}}}}}});return{[`${me}-wrapper`]:{[`${me}${me}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${me}-title`]:{border:Me,borderBottom:0},[`> ${me}-container`]:{borderInlineStart:Me,borderTop:Me,[`
|
|
> ${me}-content,
|
|
> ${me}-header,
|
|
> ${me}-body,
|
|
> ${me}-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:Me},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Me},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${me}-cell-fix-right-first::after`]:{borderInlineEnd:Me}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${me}-expanded-row-fixed`]:{margin:`-${fe.tablePaddingVertical}px -${fe.tablePaddingHorizontal+fe.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:fe.lineWidth,bottom:0,borderInlineEnd:Me,content:'""'}}}}}},[`&${me}-scroll-horizontal`]:{[`> ${me}-container > ${me}-body`]:{"> table > tbody":{[`
|
|
> tr${me}-expanded-row,
|
|
> tr${me}-placeholder
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},He("middle",fe.tablePaddingVerticalMiddle,fe.tablePaddingHorizontalMiddle)),He("small",fe.tablePaddingVerticalSmall,fe.tablePaddingHorizontalSmall)),{[`> ${me}-footer`]:{border:Me,borderTop:0}}),[`${me}-cell`]:{[`${me}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${fe.lineWidth}px 0 ${fe.lineWidth}px ${fe.tableHeaderBg}`}},[`${me}-bordered ${me}-cell-scrollbar`]:{borderInlineEnd:Me}}}},Ca=fe=>{const{componentCls:me}=fe;return{[`${me}-wrapper`]:{[`${me}-cell-ellipsis`]:Object.assign(Object.assign({},On.vS),{wordBreak:"keep-all",[`
|
|
&${me}-cell-fix-left-last,
|
|
&${me}-cell-fix-right-first
|
|
`]:{overflow:"visible",[`${me}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${me}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},xa=fe=>{const{componentCls:me}=fe;return{[`${me}-wrapper`]:{[`${me}-tbody > tr${me}-placeholder`]:{textAlign:"center",color:fe.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:fe.colorBgContainer}}}}},zr=ae(15969),wo=fe=>{const{componentCls:me,antCls:Me,controlInteractiveSize:He,motionDurationSlow:$e,lineWidth:Ye,paddingXS:Nt,lineType:xt,tableBorderColor:Tt,tableExpandIconBg:Qt,tableExpandColumnWidth:Mt,borderRadius:Wt,fontSize:wn,fontSizeSM:yn,lineHeight:Ln,tablePaddingVertical:ha,tablePaddingHorizontal:ra,tableExpandedRowBg:da,paddingXXS:oa}=fe,Oa=He/2-Ye,er=Oa*2+Ye*3,rr=`${Ye}px ${xt} ${Tt}`,Wa=oa-Ye;return{[`${me}-wrapper`]:{[`${me}-expand-icon-col`]:{width:Mt},[`${me}-row-expand-icon-cell`]:{textAlign:"center",[`${me}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${me}-row-indent`]:{height:1,float:"left"},[`${me}-row-expand-icon`]:Object.assign(Object.assign({},(0,zr.N)(fe)),{position:"relative",float:"left",boxSizing:"border-box",width:er,height:er,padding:0,color:"inherit",lineHeight:`${er}px`,background:Qt,border:rr,borderRadius:Wt,transform:`scale(${He/er})`,transition:`all ${$e}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${$e} ease-out`,content:'""'},"&::before":{top:Oa,insetInlineEnd:Wa,insetInlineStart:Wa,height:Ye},"&::after":{top:Wa,bottom:Wa,insetInlineStart:Oa,width:Ye,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"}}),[`${me}-row-indent + ${me}-row-expand-icon`]:{marginTop:(wn*Ln-Ye*3)/2-Math.ceil((yn*1.4-Ye*3)/2),marginInlineEnd:Nt},[`tr${me}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:da}},[`${Me}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${me}-expanded-row-fixed`]:{position:"relative",margin:`-${ha}px -${ra}px`,padding:`${ha}px ${ra}px`}}}},ur=fe=>{const{componentCls:me,antCls:Me,iconCls:He,tableFilterDropdownWidth:$e,tableFilterDropdownSearchWidth:Ye,paddingXXS:Nt,paddingXS:xt,colorText:Tt,lineWidth:Qt,lineType:Mt,tableBorderColor:Wt,tableHeaderIconColor:wn,fontSizeSM:yn,tablePaddingHorizontal:Ln,borderRadius:ha,motionDurationSlow:ra,colorTextDescription:da,colorPrimary:oa,tableHeaderFilterActiveBg:Oa,colorTextDisabled:er,tableFilterDropdownBg:rr,tableFilterDropdownHeight:Wa,controlItemBgHover:br,controlItemBgActive:Dr,boxShadowSecondary:Ta,filterDropdownMenuBg:Ua}=fe,Ma=`${Me}-dropdown`,Ba=`${me}-filter-dropdown`,Za=`${Me}-tree`,Sr=`${Qt}px ${Mt} ${Wt}`;return[{[`${me}-wrapper`]:{[`${me}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${me}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Nt,marginInline:`${Nt}px ${-Ln/2}px`,padding:`0 ${Nt}px`,color:wn,fontSize:yn,borderRadius:ha,cursor:"pointer",transition:`all ${ra}`,"&:hover":{color:da,background:Oa},"&.active":{color:oa}}}},{[`${Me}-dropdown`]:{[Ba]:Object.assign(Object.assign({},(0,On.Wf)(fe)),{minWidth:$e,backgroundColor:rr,borderRadius:ha,boxShadow:Ta,overflow:"hidden",[`${Ma}-menu`]:{maxHeight:Wa,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Ua,"&:empty::after":{display:"block",padding:`${xt}px 0`,color:er,fontSize:yn,textAlign:"center",content:'"Not Found"'}},[`${Ba}-tree`]:{paddingBlock:`${xt}px 0`,paddingInline:xt,[Za]:{padding:0},[`${Za}-treenode ${Za}-node-content-wrapper:hover`]:{backgroundColor:br},[`${Za}-treenode-checkbox-checked ${Za}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Dr}}},[`${Ba}-search`]:{padding:xt,borderBottom:Sr,"&-input":{input:{minWidth:Ye},[He]:{color:er}}},[`${Ba}-checkall`]:{width:"100%",marginBottom:Nt,marginInlineStart:Nt},[`${Ba}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${xt-Qt}px ${xt}px`,overflow:"hidden",borderTop:Sr}})}},{[`${Me}-dropdown ${Ba}, ${Ba}-submenu`]:{[`${Me}-checkbox-wrapper + span`]:{paddingInlineStart:xt,color:Tt},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},fi=fe=>{const{componentCls:me,lineWidth:Me,colorSplit:He,motionDurationSlow:$e,zIndexTableFixed:Ye,tableBg:Nt,zIndexTableSticky:xt}=fe,Tt=He;return{[`${me}-wrapper`]:{[`
|
|
${me}-cell-fix-left,
|
|
${me}-cell-fix-right
|
|
`]:{position:"sticky !important",zIndex:Ye,background:Nt},[`
|
|
${me}-cell-fix-left-first::after,
|
|
${me}-cell-fix-left-last::after
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Me,width:30,transform:"translateX(100%)",transition:`box-shadow ${$e}`,content:'""',pointerEvents:"none"},[`${me}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
${me}-cell-fix-right-first::after,
|
|
${me}-cell-fix-right-last::after
|
|
`]:{position:"absolute",top:0,bottom:-Me,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${$e}`,content:'""',pointerEvents:"none"},[`${me}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:xt+1,width:30,transition:`box-shadow ${$e}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${me}-ping-left`]:{[`&:not(${me}-has-fix-left) ${me}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Tt}`}},[`
|
|
${me}-cell-fix-left-first::after,
|
|
${me}-cell-fix-left-last::after
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${Tt}`},[`${me}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${me}-ping-right`]:{[`&:not(${me}-has-fix-right) ${me}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Tt}`}},[`
|
|
${me}-cell-fix-right-first::after,
|
|
${me}-cell-fix-right-last::after
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${Tt}`}}}}},Bo=fe=>{const{componentCls:me,antCls:Me}=fe;return{[`${me}-wrapper`]:{[`${me}-pagination${Me}-pagination`]:{margin:`${fe.margin}px 0`},[`${me}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:fe.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Oo=fe=>{const{componentCls:me,tableRadius:Me}=fe;return{[`${me}-wrapper`]:{[me]:{[`${me}-title, ${me}-header`]:{borderRadius:`${Me}px ${Me}px 0 0`},[`${me}-title + ${me}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${me}-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:Me,borderStartEndRadius:Me,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Me},"> *:last-child":{borderStartEndRadius:Me}}},"&-footer":{borderRadius:`0 0 ${Me}px ${Me}px`}}}}},gl=fe=>{const{componentCls:me}=fe;return{[`${me}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${me}-pagination-left`]:{justifyContent:"flex-end"},[`${me}-pagination-right`]:{justifyContent:"flex-start"},[`${me}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${me}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${me}-row-indent`]:{float:"right"}}}}},wl=fe=>{const{componentCls:me,antCls:Me,iconCls:He,fontSizeIcon:$e,padding:Ye,paddingXS:Nt,tableHeaderIconColor:xt,tableHeaderIconColorHover:Tt,tableSelectionColumnWidth:Qt}=fe;return{[`${me}-wrapper`]:{[`${me}-selection-col`]:{width:Qt,[`&${me}-selection-col-with-dropdown`]:{width:Qt+$e+Ye/4}},[`${me}-bordered ${me}-selection-col`]:{width:Qt+Nt*2,[`&${me}-selection-col-with-dropdown`]:{width:Qt+$e+Ye/4+Nt*2}},[`
|
|
table tr th${me}-selection-column,
|
|
table tr td${me}-selection-column
|
|
`]:{paddingInlineEnd:fe.paddingXS,paddingInlineStart:fe.paddingXS,textAlign:"center",[`${Me}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${me}-selection-column${me}-cell-fix-left`]:{zIndex:fe.zIndexTableFixed+1},[`table tr th${me}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${me}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${me}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${fe.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${fe.tablePaddingHorizontal/4}px`,[He]:{color:xt,fontSize:$e,verticalAlign:"baseline","&:hover":{color:Tt}}}}}},_l=fe=>{const{componentCls:me}=fe,Me=(He,$e,Ye,Nt)=>({[`${me}${me}-${He}`]:{fontSize:Nt,[`
|
|
${me}-title,
|
|
${me}-footer,
|
|
${me}-cell,
|
|
${me}-thead > tr > th,
|
|
${me}-tbody > tr > th,
|
|
${me}-tbody > tr > td,
|
|
tfoot > tr > th,
|
|
tfoot > tr > td
|
|
`]:{padding:`${$e}px ${Ye}px`},[`${me}-filter-trigger`]:{marginInlineEnd:`-${Ye/2}px`},[`${me}-expanded-row-fixed`]:{margin:`-${$e}px -${Ye}px`},[`${me}-tbody`]:{[`${me}-wrapper:only-child ${me}`]:{marginBlock:`-${$e}px`,marginInline:`${fe.tableExpandColumnWidth-Ye}px -${Ye}px`}},[`${me}-selection-column`]:{paddingInlineStart:`${Ye/4}px`}}});return{[`${me}-wrapper`]:Object.assign(Object.assign({},Me("middle",fe.tablePaddingVerticalMiddle,fe.tablePaddingHorizontalMiddle,fe.tableFontSizeMiddle)),Me("small",fe.tablePaddingVerticalSmall,fe.tablePaddingHorizontalSmall,fe.tableFontSizeSmall))}},vl=fe=>{const{componentCls:me,marginXXS:Me,fontSizeIcon:He,tableHeaderIconColor:$e,tableHeaderIconColorHover:Ye}=fe;return{[`${me}-wrapper`]:{[`${me}-thead th${me}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${fe.motionDurationSlow}`,"&:hover":{background:fe.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:fe.colorPrimary},[`
|
|
&${me}-cell-fix-left:hover,
|
|
&${me}-cell-fix-right:hover
|
|
`]:{background:fe.tableFixedHeaderSortActiveBg}},[`${me}-thead th${me}-column-sort`]:{background:fe.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${me}-column-sort`]:{background:fe.tableBodySortBg},[`${me}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${me}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${me}-column-sorter`]:{marginInlineStart:Me,color:$e,fontSize:0,transition:`color ${fe.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:He,"&.active":{color:fe.colorPrimary}},[`${me}-column-sorter-up + ${me}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${me}-column-sorters:hover ${me}-column-sorter`]:{color:Ye}}}},Il=fe=>{const{componentCls:me,opacityLoading:Me,tableScrollThumbBg:He,tableScrollThumbBgHover:$e,tableScrollThumbSize:Ye,tableScrollBg:Nt,zIndexTableSticky:xt,stickyScrollBarBorderRadius:Tt}=fe,Qt=`${fe.lineWidth}px ${fe.lineType} ${fe.tableBorderColor}`;return{[`${me}-wrapper`]:{[`${me}-sticky`]:{"&-holder":{position:"sticky",zIndex:xt,background:fe.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Ye}px !important`,zIndex:xt,display:"flex",alignItems:"center",background:Nt,borderTop:Qt,opacity:Me,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Ye,backgroundColor:He,borderRadius:Tt,transition:`all ${fe.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:$e}}}}}}},sl=fe=>{const{componentCls:me,lineWidth:Me,tableBorderColor:He}=fe,$e=`${Me}px ${fe.lineType} ${He}`;return{[`${me}-wrapper`]:{[`${me}-summary`]:{position:"relative",zIndex:fe.zIndexTableFixed,background:fe.tableBg,"> tr":{"> th, > td":{borderBottom:$e}}},[`div${me}-summary`]:{boxShadow:`0 -${Me}px 0 ${He}`}}}},Ol=fe=>{const{componentCls:me}=fe,Me=`${fe.lineWidth}px ${fe.lineType} ${fe.tableBorderColor}`,He=`${me}-expanded-row-cell`;return{[`${me}-wrapper`]:{[`${me}-tbody-virtual`]:{[`${me}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${me}-cell`]:{borderBottom:Me},[`${me}-expanded-row`]:{[`${He}${He}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${fe.lineWidth}px)`,borderInlineEnd:"none"}}},[`${me}-bordered`]:{[`${me}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Me,position:"absolute"},[`${me}-cell`]:{borderInlineEnd:Me,[`&${me}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-fe.lineWidth,borderInlineStart:Me}}}}}}};const Kl=fe=>{const{componentCls:me,fontWeightStrong:Me,tablePaddingVertical:He,tablePaddingHorizontal:$e,lineWidth:Ye,lineType:Nt,tableBorderColor:xt,tableFontSize:Tt,tableBg:Qt,tableRadius:Mt,tableHeaderTextColor:Wt,motionDurationMid:wn,tableHeaderBg:yn,tableHeaderCellSplitColor:Ln,tableRowHoverBg:ha,tableSelectedRowBg:ra,tableSelectedRowHoverBg:da,tableFooterTextColor:oa,tableFooterBg:Oa,paddingContentVerticalLG:er}=fe,rr=`${Ye}px ${Nt} ${xt}`;return{[`${me}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,On.dF)()),{[me]:Object.assign(Object.assign({},(0,On.Wf)(fe)),{fontSize:Tt,background:Qt,borderRadius:`${Mt}px ${Mt}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Mt}px ${Mt}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
${me}-cell,
|
|
${me}-thead > tr > th,
|
|
${me}-tbody > tr > th,
|
|
${me}-tbody > tr > td,
|
|
tfoot > tr > th,
|
|
tfoot > tr > td
|
|
`]:{position:"relative",padding:`${er}px ${$e}px`,overflowWrap:"break-word"},[`${me}-title`]:{padding:`${He}px ${$e}px`},[`${me}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Wt,fontWeight:Me,textAlign:"start",background:yn,borderBottom:rr,transition:`background ${wn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${me}-selection-column):not(${me}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Ln,transform:"translateY(-50%)",transition:`background-color ${wn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${me}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${wn}, border-color ${wn}`,borderBottom:rr,[`
|
|
> ${me}-wrapper:only-child,
|
|
> ${me}-expanded-row-fixed > ${me}-wrapper:only-child
|
|
`]:{[me]:{marginBlock:`-${He}px`,marginInline:`${fe.tableExpandColumnWidth-$e}px -${$e}px`,[`${me}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Wt,fontWeight:Me,textAlign:"start",background:yn,borderBottom:rr,transition:`background ${wn} ease`},[`
|
|
&${me}-row:hover > th,
|
|
&${me}-row:hover > td,
|
|
> th${me}-cell-row-hover,
|
|
> td${me}-cell-row-hover
|
|
`]:{background:ha},[`&${me}-row-selected`]:{"> th, > td":{background:ra},"&:hover > th, &:hover > td":{background:da}}}},[`${me}-footer`]:{padding:`${He}px ${$e}px`,color:oa,background:Oa}})}};var Vl=(0,Kn.Z)("Table",fe=>{const{colorTextHeading:me,colorSplit:Me,colorIcon:He,colorIconHover:$e,opacityLoading:Ye,colorBgContainer:Nt,controlInteractiveSize:xt,headerBg:Tt,headerColor:Qt,headerSortActiveBg:Mt,headerSortHoverBg:Wt,bodySortBg:wn,rowHoverBg:yn,rowSelectedBg:Ln,rowSelectedHoverBg:ha,rowExpandedBg:ra,cellPaddingBlock:da,cellPaddingInline:oa,cellPaddingBlockMD:Oa,cellPaddingInlineMD:er,cellPaddingBlockSM:rr,cellPaddingInlineSM:Wa,borderColor:br,footerBg:Dr,footerColor:Ta,headerBorderRadius:Ua,cellFontSize:Ma,cellFontSizeMD:Ba,cellFontSizeSM:Za,headerSplitColor:Sr,fixedHeaderSortActiveBg:kr,headerFilterHoverBg:Br,filterDropdownBg:sr,expandIconBg:Zr,selectionColumnWidth:Kr,stickyScrollBarBg:Lo}=fe,io=new Yn.C(He),Vo=new Yn.C($e),Do=2,Ir=(0,Ra.TS)(fe,{tableFontSize:Ma,tableBg:Nt,tableRadius:Ua,tablePaddingVertical:da,tablePaddingHorizontal:oa,tablePaddingVerticalMiddle:Oa,tablePaddingHorizontalMiddle:er,tablePaddingVerticalSmall:rr,tablePaddingHorizontalSmall:Wa,tableBorderColor:br,tableHeaderTextColor:Qt,tableHeaderBg:Tt,tableFooterTextColor:Ta,tableFooterBg:Dr,tableHeaderCellSplitColor:Sr,tableHeaderSortBg:Mt,tableHeaderSortHoverBg:Wt,tableHeaderIconColor:io.clone().setAlpha(io.getAlpha()*Ye).toRgbString(),tableHeaderIconColorHover:Vo.clone().setAlpha(Vo.getAlpha()*Ye).toRgbString(),tableBodySortBg:wn,tableFixedHeaderSortActiveBg:kr,tableHeaderFilterActiveBg:Br,tableFilterDropdownBg:sr,tableRowHoverBg:yn,tableSelectedRowBg:Ln,tableSelectedRowHoverBg:ha,zIndexTableFixed:Do,zIndexTableSticky:Do+1,tableFontSizeMiddle:Ba,tableFontSizeSmall:Za,tableSelectionColumnWidth:Kr,tableExpandIconBg:Zr,tableExpandColumnWidth:xt+2*fe.padding,tableExpandedRowBg:ra,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Lo,tableScrollThumbBgHover:me,tableScrollBg:Me});return[Kl(Ir),Bo(Ir),sl(Ir),vl(Ir),ur(Ir),Ia(Ir),Oo(Ir),wo(Ir),sl(Ir),xa(Ir),wl(Ir),fi(Ir),Il(Ir),Ca(Ir),_l(Ir),gl(Ir),Ol(Ir)]},fe=>{const{colorFillAlter:me,colorBgContainer:Me,colorTextHeading:He,colorFillSecondary:$e,colorFillContent:Ye,controlItemBgActive:Nt,controlItemBgActiveHover:xt,padding:Tt,paddingSM:Qt,paddingXS:Mt,colorBorderSecondary:Wt,borderRadiusLG:wn,fontSize:yn,controlHeight:Ln,colorTextPlaceholder:ha}=fe,ra=new Yn.C($e).onBackground(Me).toHexShortString(),da=new Yn.C(Ye).onBackground(Me).toHexShortString(),oa=new Yn.C(me).onBackground(Me).toHexShortString();return{headerBg:oa,headerColor:He,headerSortActiveBg:ra,headerSortHoverBg:da,bodySortBg:oa,rowHoverBg:oa,rowSelectedBg:Nt,rowSelectedHoverBg:xt,rowExpandedBg:me,cellPaddingBlock:Tt,cellPaddingInline:Tt,cellPaddingBlockMD:Qt,cellPaddingInlineMD:Mt,cellPaddingBlockSM:Mt,cellPaddingInlineSM:Mt,borderColor:Wt,headerBorderRadius:wn,footerBg:oa,footerColor:He,cellFontSize:yn,cellFontSizeMD:yn,cellFontSizeSM:yn,headerSplitColor:Wt,fixedHeaderSortActiveBg:ra,headerFilterHoverBg:Ye,filterDropdownMenuBg:Me,filterDropdownBg:Me,expandIconBg:Me,selectionColumnWidth:Ln,stickyScrollBarBg:ha,stickyScrollBarBorderRadius:100}});const tu=[],nu=(fe,me)=>{const{prefixCls:Me,className:He,rootClassName:$e,style:Ye,size:Nt,bordered:xt,dropdownPrefixCls:Tt,dataSource:Qt,pagination:Mt,rowSelection:Wt,rowKey:wn="key",rowClassName:yn,columns:Ln,children:ha,childrenColumnName:ra,onChange:da,getPopupContainer:oa,loading:Oa,expandIcon:er,expandable:rr,expandedRowRender:Wa,expandIconColumnIndex:br,indentSize:Dr,scroll:Ta,sortDirections:Ua,locale:Ma,showSorterTooltip:Ba=!0,virtual:Za}=fe,Sr=ue.useMemo(()=>Ln||pt(ha),[Ln,ha]),kr=ue.useMemo(()=>Sr.some(ao=>ao.responsive),[Sr]),Br=(0,Xi.Z)(kr),sr=ue.useMemo(()=>{const ao=new Set(Object.keys(Br).filter(To=>Br[To]));return Sr.filter(To=>!To.responsive||To.responsive.some(gi=>ao.has(gi)))},[Sr,Br]),Zr=(0,Di.Z)(fe,["className","style","columns"]),{locale:Kr=Yi.Z,direction:Lo,table:io,renderEmpty:Vo,getPrefixCls:Do,getPopupContainer:Ir}=ue.useContext(qo.E_),Jo=(0,pl.Z)(Nt),no=Object.assign(Object.assign({},Kr.Table),Ma),Zo=Qt||tu,Ro=Do("table",Me),Ai=Do("dropdown",Tt),vr=Object.assign({childrenColumnName:ra,expandIconColumnIndex:br},rr),{childrenColumnName:dr="children"}=vr,ir=ue.useMemo(()=>Zo.some(ao=>ao==null?void 0:ao[dr])?"nest":Wa||rr&&rr.expandedRowRender?"row":null,[Zo]),qa={body:ue.useRef()},so=ue.useMemo(()=>typeof wn=="function"?wn:ao=>ao==null?void 0:ao[wn],[wn]),[Ya]=on(Zo,dr,so),Ar={},qr=function(ao,To){let gi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Wo,yi,bi;const Oi=Object.assign(Object.assign({},Ar),ao);gi&&((Wo=Ar.resetPagination)===null||Wo===void 0||Wo.call(Ar),!((yi=Oi.pagination)===null||yi===void 0)&&yi.current&&(Oi.pagination.current=1),Mt&&Mt.onChange&&Mt.onChange(1,(bi=Oi.pagination)===null||bi===void 0?void 0:bi.pageSize)),Ta&&Ta.scrollToFirstRowOnChange!==!1&&qa.body.current&&(0,_i.Z)(0,{getContainer:()=>qa.body.current}),da==null||da(Oi.pagination,Oi.filters,Oi.sorter,{currentDataSource:An(rn(Zo,Oi.sorterStates,dr),Oi.filterStates),action:To})},Jr=(ao,To)=>{qr({sorter:ao,sorterStates:To},"sort",!1)},[di,ci,Hi,ti]=Vn({prefixCls:Ro,mergedColumns:sr,onSorterChange:Jr,sortDirections:Ua||["ascend","descend"],tableLocale:no,showSorterTooltip:Ba}),Ui=ue.useMemo(()=>rn(Zo,ci,dr),[Zo,ci]);Ar.sorter=ti(),Ar.sorterStates=ci;const ni=(ao,To)=>{qr({filters:ao,filterStates:To},"filter",!0)},[Fi,Ll,fo]=_t({prefixCls:Ro,locale:no,dropdownPrefixCls:Ai,mergedColumns:sr,onFilterChange:ni,getPopupContainer:oa||Ir}),So=An(Ui,Ll);Ar.filters=fo,Ar.filterStates=Ll;const No=ue.useMemo(()=>{const ao={};return Object.keys(fo).forEach(To=>{fo[To]!==null&&(ao[To]=fo[To])}),Object.assign(Object.assign({},Hi),{filters:ao})},[Hi,fo]),[Go]=lr(No),Xo=(ao,To)=>{qr({pagination:Object.assign(Object.assign({},Ar.pagination),{current:ao,pageSize:To})},"paginate")},[Vr,hi]=_r(So.length,Xo,Mt);Ar.pagination=Mt===!1?{}:ar(Vr,Mt),Ar.resetPagination=hi;const Si=ue.useMemo(()=>{if(Mt===!1||!Vr.pageSize)return So;const{current:ao=1,total:To,pageSize:gi=pr}=Vr;return So.length<To?So.length>gi?So.slice((ao-1)*gi,ao*gi):So:So.slice((ao-1)*gi,ao*gi)},[!!Mt,So,Vr&&Vr.current,Vr&&Vr.pageSize,Vr&&Vr.total]),[pi,dl]=$r({prefixCls:Ro,data:So,pageData:Si,getRowKey:so,getRecordByKey:Ya,expandType:ir,childrenColumnName:dr,locale:no,getPopupContainer:oa||Ir},Wt),nl=(ao,To,gi)=>{let Wo;return typeof yn=="function"?Wo=Ge()(yn(ao,To,gi)):Wo=Ge()(yn),Ge()({[`${Ro}-row-selected`]:dl.has(so(ao,To))},Wo)};vr.__PARENT_RENDER_ICON__=vr.expandIcon,vr.expandIcon=vr.expandIcon||er||Fa(no),ir==="nest"&&vr.expandIconColumnIndex===void 0?vr.expandIconColumnIndex=Wt?1:0:vr.expandIconColumnIndex>0&&Wt&&(vr.expandIconColumnIndex-=1),typeof vr.indentSize!="number"&&(vr.indentSize=typeof Dr=="number"?Dr:15);const Pi=ue.useCallback(ao=>Go(pi(Fi(di(ao)))),[di,Fi,pi]);let al,Gi;if(Mt!==!1&&(Vr!=null&&Vr.total)){let ao;Vr.size?ao=Vr.size:ao=Jo==="small"||Jo==="middle"?"small":void 0;const To=yi=>ue.createElement(Xr.Z,Object.assign({},Vr,{className:Ge()(`${Ro}-pagination ${Ro}-pagination-${yi}`,Vr.className),size:ao})),gi=Lo==="rtl"?"left":"right",{position:Wo}=Vr;if(Wo!==null&&Array.isArray(Wo)){const yi=Wo.find(ml=>ml.includes("top")),bi=Wo.find(ml=>ml.includes("bottom")),Oi=Wo.every(ml=>`${ml}`=="none");!yi&&!bi&&!Oi&&(Gi=To(gi)),yi&&(al=To(yi.toLowerCase().replace("top",""))),bi&&(Gi=To(bi.toLowerCase().replace("bottom","")))}else Gi=To(gi)}let Ii;typeof Oa=="boolean"?Ii={spinning:Oa}:typeof Oa=="object"&&(Ii=Object.assign({spinning:!0},Oa));const[Ei,Uo]=Vl(Ro),[,zo]=(0,la.Z)(),cl=Ge()(`${Ro}-wrapper`,io==null?void 0:io.className,{[`${Ro}-wrapper-rtl`]:Lo==="rtl"},He,$e,Uo),Nl=Object.assign(Object.assign({},io==null?void 0:io.style),Ye),hl=Ma&&Ma.emptyText||(Vo==null?void 0:Vo("Table"))||ue.createElement(Ki.Z,{componentName:"Table"}),Qi=Za?ea:or,Sl={},fu=ue.useMemo(()=>{const{fontSize:ao,lineHeight:To,padding:gi,paddingXS:Wo,paddingSM:yi}=zo,bi=Math.floor(ao*To);switch(Jo){case"large":return gi*2+bi;case"small":return Wo*2+bi;default:return yi*2+bi}},[zo,Jo]);return Za&&(Sl.listItemHeight=fu),Ei(ue.createElement("div",{ref:me,className:cl,style:Nl},ue.createElement(Ka.Z,Object.assign({spinning:!1},Ii),al,ue.createElement(Qi,Object.assign({},Sl,Zr,{columns:sr,direction:Lo,expandable:vr,prefixCls:Ro,className:Ge()({[`${Ro}-middle`]:Jo==="middle",[`${Ro}-small`]:Jo==="small",[`${Ro}-bordered`]:xt,[`${Ro}-empty`]:Zo.length===0}),data:Si,rowKey:so,rowClassName:nl,emptyText:hl,internalHooks:se,internalRefs:qa,transformColumns:Pi})),Gi)))};var Ul=ue.forwardRef(nu);const au=(fe,me)=>{const Me=ue.useRef(0);return Me.current+=1,ue.createElement(Ul,Object.assign({},fe,{ref:me,_renderTimes:Me.current}))},zt=ue.forwardRef(au);zt.SELECTION_COLUMN=Tr,zt.EXPAND_COLUMN=b,zt.SELECTION_ALL=to,zt.SELECTION_INVERT=Er,zt.SELECTION_NONE=Wr,zt.Column=Mi,zt.ColumnGroup=Wi,zt.Summary=Ae;var wa=zt,Nr=wa},12563:function(Ot,Rt,ae){"use strict";ae.d(Rt,{default:function(){return we}});var b=ae(59301),se=ae(99267),Ce=ae(92310),Fe=ae.n(Ce),Oe=ae(36785),Re=ae(47729),ue=ae(14088),Ze=ae(36355),We=ae(17313),_e=ae(37613),ke=ae(83116);const je=ve=>{const{paddingXXS:Je,lineWidth:Ge,tagPaddingHorizontal:ot,componentCls:Le}=ve,Ue=ot-Ge,st=Je-Ge;return{[Le]:Object.assign(Object.assign({},(0,We.Wf)(ve)),{display:"inline-block",height:"auto",marginInlineEnd:ve.marginXS,paddingInline:Ue,fontSize:ve.tagFontSize,lineHeight:ve.tagLineHeight,whiteSpace:"nowrap",background:ve.defaultBg,border:`${ve.lineWidth}px ${ve.lineType} ${ve.colorBorder}`,borderRadius:ve.borderRadiusSM,opacity:1,transition:`all ${ve.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Le}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:ve.defaultColor},[`${Le}-close-icon`]:{marginInlineStart:st,color:ve.colorTextDescription,fontSize:ve.tagIconSize,cursor:"pointer",transition:`all ${ve.motionDurationMid}`,"&:hover":{color:ve.colorTextHeading}},[`&${Le}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${ve.iconCls}-close, ${ve.iconCls}-close:hover`]:{color:ve.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Le}-checkable-checked):hover`]:{color:ve.colorPrimary,backgroundColor:ve.colorFillSecondary},"&:active, &-checked":{color:ve.colorTextLightSolid},"&-checked":{backgroundColor:ve.colorPrimary,"&:hover":{backgroundColor:ve.colorPrimaryHover}},"&:active":{backgroundColor:ve.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${ve.iconCls} + span, > span + ${ve.iconCls}`]:{marginInlineStart:Ue}}),[`${Le}-borderless`]:{borderColor:"transparent",background:ve.tagBorderlessBg}}},Ie=ve=>{const{lineWidth:Je,fontSizeIcon:Ge}=ve,ot=ve.fontSizeSM,Le=`${ve.lineHeightSM*ot}px`;return(0,_e.TS)(ve,{tagFontSize:ot,tagLineHeight:Le,tagIconSize:Ge-2*Je,tagPaddingHorizontal:8,tagBorderlessBg:ve.colorFillTertiary})},le=ve=>({defaultBg:ve.colorFillQuaternary,defaultColor:ve.colorText});var E=(0,ke.Z)("Tag",ve=>{const Je=Ie(ve);return je(Je)},le),a=function(ve,Je){var Ge={};for(var ot in ve)Object.prototype.hasOwnProperty.call(ve,ot)&&Je.indexOf(ot)<0&&(Ge[ot]=ve[ot]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,ot=Object.getOwnPropertySymbols(ve);Le<ot.length;Le++)Je.indexOf(ot[Le])<0&&Object.prototype.propertyIsEnumerable.call(ve,ot[Le])&&(Ge[ot[Le]]=ve[ot[Le]]);return Ge},y=ve=>{const{prefixCls:Je,style:Ge,className:ot,checked:Le,onChange:Ue,onClick:st}=ve,Ke=a(ve,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:rt,tag:Ht}=b.useContext(Ze.E_),it=Dt=>{Ue==null||Ue(!Le),st==null||st(Dt)},jt=rt("tag",Je),[Kt,Qe]=E(jt),et=Fe()(jt,`${jt}-checkable`,{[`${jt}-checkable-checked`]:Le},Ht==null?void 0:Ht.className,ot,Qe);return Kt(b.createElement("span",Object.assign({},Ke,{style:Object.assign(Object.assign({},Ge),Ht==null?void 0:Ht.style),className:et,onClick:it})))},z=ae(45157);const te=ve=>(0,z.Z)(ve,(Je,Ge)=>{let{textColor:ot,lightBorderColor:Le,lightColor:Ue,darkColor:st}=Ge;return{[`${ve.componentCls}-${Je}`]:{color:ot,background:Ue,borderColor:Le,"&-inverse":{color:ve.colorTextLightSolid,background:st,borderColor:st},[`&${ve.componentCls}-borderless`]:{borderColor:"transparent"}}}});var re=(0,ke.b)(["Tag","preset"],ve=>{const Je=Ie(ve);return te(Je)},le);function ie(ve){return typeof ve!="string"?ve:ve.charAt(0).toUpperCase()+ve.slice(1)}const ce=(ve,Je,Ge)=>{const ot=ie(Ge);return{[`${ve.componentCls}-${Je}`]:{color:ve[`color${Ge}`],background:ve[`color${ot}Bg`],borderColor:ve[`color${ot}Border`],[`&${ve.componentCls}-borderless`]:{borderColor:"transparent"}}}};var pe=(0,ke.b)(["Tag","status"],ve=>{const Je=Ie(ve);return[ce(Je,"success","Success"),ce(Je,"processing","Info"),ce(Je,"error","Error"),ce(Je,"warning","Warning")]},le),ge=function(ve,Je){var Ge={};for(var ot in ve)Object.prototype.hasOwnProperty.call(ve,ot)&&Je.indexOf(ot)<0&&(Ge[ot]=ve[ot]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,ot=Object.getOwnPropertySymbols(ve);Le<ot.length;Le++)Je.indexOf(ot[Le])<0&&Object.prototype.propertyIsEnumerable.call(ve,ot[Le])&&(Ge[ot[Le]]=ve[ot[Le]]);return Ge};const ye=(ve,Je)=>{const{prefixCls:Ge,className:ot,rootClassName:Le,style:Ue,children:st,icon:Ke,color:rt,onClose:Ht,closeIcon:it,closable:jt,bordered:Kt=!0}=ve,Qe=ge(ve,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:et,direction:Dt,tag:tn}=b.useContext(Ze.E_),[Et,Vt]=b.useState(!0);b.useEffect(()=>{"visible"in Qe&&Vt(Qe.visible)},[Qe.visible]);const Be=(0,Oe.o2)(rt),Gt=(0,Oe.yT)(rt),bn=Be||Gt,Bt=Object.assign(Object.assign({backgroundColor:rt&&!bn?rt:void 0},tn==null?void 0:tn.style),Ue),At=et("tag",Ge),[tt,Ve]=E(At),De=Fe()(At,tn==null?void 0:tn.className,{[`${At}-${rt}`]:bn,[`${At}-has-color`]:rt&&!bn,[`${At}-hidden`]:!Et,[`${At}-rtl`]:Dt==="rtl",[`${At}-borderless`]:!Kt},ot,Le,Ve),he=Xe=>{Xe.stopPropagation(),Ht==null||Ht(Xe),!Xe.defaultPrevented&&Vt(!1)},[,nt]=(0,Re.Z)(jt,it,Xe=>Xe===null?b.createElement(se.Z,{className:`${At}-close-icon`,onClick:he}):b.createElement("span",{className:`${At}-close-icon`,onClick:he},Xe),null,!1),wt=typeof Qe.onClick=="function"||st&&st.type==="a",Ae=Ke||null,be=Ae?b.createElement(b.Fragment,null,Ae,st&&b.createElement("span",null,st)):st,gt=b.createElement("span",Object.assign({},Qe,{ref:Je,className:De,style:Bt}),be,nt,Be&&b.createElement(re,{key:"preset",prefixCls:At}),Gt&&b.createElement(pe,{key:"status",prefixCls:At}));return tt(wt?b.createElement(ue.Z,{component:"Tag"},gt):gt)},Ee=b.forwardRef(ye);Ee.CheckableTag=y;var we=Ee},10777:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return pe}});var b=ae(92310),se=ae.n(b),Ce=ae(59301),Fe=ae(36355),Oe=function(ge,ye){var Ee={};for(var we in ge)Object.prototype.hasOwnProperty.call(ge,we)&&ye.indexOf(we)<0&&(Ee[we]=ge[we]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,we=Object.getOwnPropertySymbols(ge);ve<we.length;ve++)ye.indexOf(we[ve])<0&&Object.prototype.propertyIsEnumerable.call(ge,we[ve])&&(Ee[we[ve]]=ge[we[ve]]);return Ee},ue=ge=>{var{prefixCls:ye,className:Ee,color:we="blue",dot:ve,pending:Je=!1,position:Ge,label:ot,children:Le}=ge,Ue=Oe(ge,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:st}=Ce.useContext(Fe.E_),Ke=st("timeline",ye),rt=se()(`${Ke}-item`,{[`${Ke}-item-pending`]:Je},Ee),Ht=/blue|red|green|gray/.test(we||"")?void 0:we,it=se()(`${Ke}-item-head`,{[`${Ke}-item-head-custom`]:!!ve,[`${Ke}-item-head-${we}`]:!Ht});return Ce.createElement("li",Object.assign({},Ue,{className:rt}),ot&&Ce.createElement("div",{className:`${Ke}-item-label`},ot),Ce.createElement("div",{className:`${Ke}-item-tail`}),Ce.createElement("div",{className:it,style:{borderColor:Ht,color:Ht}},ve),Ce.createElement("div",{className:`${Ke}-item-content`},Le))},Ze=ae(94480),We=ae(58617),_e=function(ge,ye){var Ee={};for(var we in ge)Object.prototype.hasOwnProperty.call(ge,we)&&ye.indexOf(we)<0&&(Ee[we]=ge[we]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,we=Object.getOwnPropertySymbols(ge);ve<we.length;ve++)ye.indexOf(we[ve])<0&&Object.prototype.propertyIsEnumerable.call(ge,we[ve])&&(Ee[we[ve]]=ge[we[ve]]);return Ee},je=ge=>{var{prefixCls:ye,className:Ee,pending:we=!1,children:ve,items:Je,rootClassName:Ge,reverse:ot=!1,direction:Le,hashId:Ue,pendingDot:st,mode:Ke=""}=ge,rt=_e(ge,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const Ht=(Et,Vt)=>Ke==="alternate"?Et==="right"?`${ye}-item-right`:Et==="left"?`${ye}-item-left`:Vt%2===0?`${ye}-item-left`:`${ye}-item-right`:Ke==="left"?`${ye}-item-left`:Ke==="right"?`${ye}-item-right`:Et==="right"?`${ye}-item-right`:"",it=(0,Ze.Z)(Je||[]),jt=typeof we=="boolean"?null:we;we&&it.push({pending:!!we,dot:st||Ce.createElement(We.Z,null),children:jt}),ot&&it.reverse();const Kt=it.length,Qe=`${ye}-item-last`,et=it.filter(Et=>!!Et).map((Et,Vt)=>{var Be;const Gt=Vt===Kt-2?Qe:"",bn=Vt===Kt-1?Qe:"",{className:Bt}=Et,At=_e(Et,["className"]);return Ce.createElement(ue,Object.assign({},At,{className:se()([Bt,!ot&&we?Gt:bn,Ht((Be=Et==null?void 0:Et.position)!==null&&Be!==void 0?Be:"",Vt)]),key:(Et==null?void 0:Et.key)||Vt}))}),Dt=it.some(Et=>!!(Et!=null&&Et.label)),tn=se()(ye,{[`${ye}-pending`]:!!we,[`${ye}-reverse`]:!!ot,[`${ye}-${Ke}`]:!!Ke&&!Dt,[`${ye}-label`]:Dt,[`${ye}-rtl`]:Le==="rtl"},Ee,Ge,Ue);return Ce.createElement("ul",Object.assign({},rt,{className:tn}),et)},Ie=ae(11592);function le(ge,ye){return ge&&Array.isArray(ge)?ge:(0,Ie.Z)(ye).map(Ee=>{var we,ve;return Object.assign({children:(ve=(we=Ee==null?void 0:Ee.props)===null||we===void 0?void 0:we.children)!==null&&ve!==void 0?ve:""},Ee.props)})}var E=le,a=ae(17313),x=ae(83116),y=ae(37613);const z=ge=>{const{componentCls:ye}=ge;return{[ye]:Object.assign(Object.assign({},(0,a.Wf)(ge)),{margin:0,padding:0,listStyle:"none",[`${ye}-item`]:{position:"relative",margin:0,paddingBottom:ge.itemPaddingBottom,fontSize:ge.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:ge.itemHeadSize,insetInlineStart:(ge.itemHeadSize-ge.tailWidth)/2,height:`calc(100% - ${ge.itemHeadSize}px)`,borderInlineStart:`${ge.tailWidth}px ${ge.lineType} ${ge.tailColor}`},"&-pending":{[`${ye}-item-head`]:{fontSize:ge.fontSizeSM,backgroundColor:"transparent"},[`${ye}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:ge.itemHeadSize,height:ge.itemHeadSize,backgroundColor:ge.dotBg,border:`${ge.dotBorderWidth}px ${ge.lineType} transparent`,borderRadius:"50%","&-blue":{color:ge.colorPrimary,borderColor:ge.colorPrimary},"&-red":{color:ge.colorError,borderColor:ge.colorError},"&-green":{color:ge.colorSuccess,borderColor:ge.colorSuccess},"&-gray":{color:ge.colorTextDisabled,borderColor:ge.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:ge.itemHeadSize/2,insetInlineStart:ge.itemHeadSize/2,width:"auto",height:"auto",marginBlockStart:0,paddingBlock:ge.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:-(ge.fontSize*ge.lineHeight-ge.fontSize)+ge.lineWidth,marginInlineStart:ge.margin+ge.itemHeadSize,marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${ye}-item-tail`]:{display:"none"},[`> ${ye}-item-content`]:{minHeight:ge.controlHeightLG*1.2}}},[`&${ye}-alternate,
|
|
&${ye}-right,
|
|
&${ye}-label`]:{[`${ye}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:`-${ge.marginXXS}px`,"&-custom":{marginInlineStart:ge.tailWidth/2}},"&-left":{[`${ye}-item-content`]:{insetInlineStart:`calc(50% - ${ge.marginXXS}px)`,width:`calc(50% - ${ge.marginSM}px)`,textAlign:"start"}},"&-right":{[`${ye}-item-content`]:{width:`calc(50% - ${ge.marginSM}px)`,margin:0,textAlign:"end"}}}},[`&${ye}-right`]:{[`${ye}-item-right`]:{[`${ye}-item-tail,
|
|
${ye}-item-head,
|
|
${ye}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(ge.itemHeadSize+ge.tailWidth)/2}px)`},[`${ye}-item-content`]:{width:`calc(100% - ${ge.itemHeadSize+ge.marginXS}px)`}}},[`&${ye}-pending
|
|
${ye}-item-last
|
|
${ye}-item-tail`]:{display:"block",height:`calc(100% - ${ge.margin}px)`,borderInlineStart:`${ge.tailWidth}px dotted ${ge.tailColor}`},[`&${ye}-reverse
|
|
${ye}-item-last
|
|
${ye}-item-tail`]:{display:"none"},[`&${ye}-reverse ${ye}-item-pending`]:{[`${ye}-item-tail`]:{insetBlockStart:ge.margin,display:"block",height:`calc(100% - ${ge.margin}px)`,borderInlineStart:`${ge.tailWidth}px dotted ${ge.tailColor}`},[`${ye}-item-content`]:{minHeight:ge.controlHeightLG*1.2}},[`&${ye}-label`]:{[`${ye}-item-label`]:{position:"absolute",insetBlockStart:-(ge.fontSize*ge.lineHeight-ge.fontSize)+ge.tailWidth,width:`calc(50% - ${ge.marginSM}px)`,textAlign:"end"},[`${ye}-item-right`]:{[`${ye}-item-label`]:{insetInlineStart:`calc(50% + ${ge.marginSM}px)`,width:`calc(50% - ${ge.marginSM}px)`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${ye}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}};var te=(0,x.Z)("Timeline",ge=>{const ye=(0,y.TS)(ge,{itemHeadSize:10,customHeadPaddingVertical:ge.paddingXXS,paddingInlineEnd:2});return[z(ye)]},ge=>({tailColor:ge.colorSplit,tailWidth:ge.lineWidthBold,dotBorderWidth:ge.wireframe?ge.lineWidthBold:ge.lineWidth*3,dotBg:ge.colorBgContainer,itemPaddingBottom:ge.padding*1.25})),re=function(ge,ye){var Ee={};for(var we in ge)Object.prototype.hasOwnProperty.call(ge,we)&&ye.indexOf(we)<0&&(Ee[we]=ge[we]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,we=Object.getOwnPropertySymbols(ge);ve<we.length;ve++)ye.indexOf(we[ve])<0&&Object.prototype.propertyIsEnumerable.call(ge,we[ve])&&(Ee[we[ve]]=ge[we[ve]]);return Ee};const ie=ge=>{const{getPrefixCls:ye,direction:Ee,timeline:we}=Ce.useContext(Fe.E_),{prefixCls:ve,children:Je,items:Ge,className:ot,style:Le}=ge,Ue=re(ge,["prefixCls","children","items","className","style"]),st=ye("timeline",ve),[Ke,rt]=te(st),Ht=E(Ge,Je);return Ke(Ce.createElement(je,Object.assign({},Ue,{className:se()(we==null?void 0:we.className,ot),style:Object.assign(Object.assign({},we==null?void 0:we.style),Le),prefixCls:st,direction:Ee,items:Ht,hashId:rt})))};ie.Item=ue;var ce=ie,pe=ce},17574:function(Ot,Rt,ae){"use strict";ae.d(Rt,{default:function(){return rt}});var b=ae(60091),se=ae(94480),Ce=ae(52671),Fe=ae(8657),Oe=ae(54476),Re=ae(59301),ue={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"},Ze=ue,We=ae(7657),_e=function(it,jt){return Re.createElement(We.Z,(0,Oe.Z)({},it,{ref:jt,icon:Ze}))},ke=Re.forwardRef(_e),je=ke,Ie=ae(92310),le=ae.n(Ie),E=ae(35654),a=ae(71430),x=ae(36355),y=ae(56082),z=ae(62892),te=ae(20648);const re=4;function ie(Ht){const{dropPosition:it,dropLevelOffset:jt,prefixCls:Kt,indent:Qe,direction:et="ltr"}=Ht,Dt=et==="ltr"?"left":"right",tn=et==="ltr"?"right":"left",Et={[Dt]:-jt*Qe+re,[tn]:0};switch(it){case-1:Et.top=-3;break;case 1:Et.bottom=-3;break;default:Et.bottom=-3,Et[Dt]=Qe+re;break}return Re.createElement("div",{style:Et,className:`${Kt}-drop-indicator`})}var ce=ae(71997),ge=Re.forwardRef((Ht,it)=>{const{getPrefixCls:jt,direction:Kt,virtual:Qe,tree:et}=Re.useContext(x.E_),{prefixCls:Dt,className:tn,showIcon:Et=!1,showLine:Vt,switcherIcon:Be,blockNode:Gt=!1,children:bn,checkable:Bt=!1,selectable:At=!0,draggable:tt,motion:Ve,style:De}=Ht,he=jt("tree",Dt),nt=jt(),wt=Ve!=null?Ve:Object.assign(Object.assign({},(0,z.Z)(nt)),{motionAppear:!1}),Ae=Object.assign(Object.assign({},Ht),{checkable:Bt,selectable:At,showIcon:Et,motion:wt,blockNode:Gt,showLine:!!Vt,dropIndicatorRender:ie}),[be,gt]=(0,te.ZP)(he),Xe=Re.useMemo(()=>{if(!tt)return!1;let St={};switch(typeof tt){case"function":St.nodeDraggable=tt;break;case"object":St=Object.assign({},tt);break;default:break}return St.icon!==!1&&(St.icon=St.icon||Re.createElement(y.Z,null)),St},[tt]),Te=St=>Re.createElement(ce.Z,{prefixCls:he,switcherIcon:Be,treeNodeProps:St,showLine:Vt});return be(Re.createElement(b.Z,Object.assign({itemHeight:20,ref:it,virtual:Qe},Ae,{style:Object.assign(Object.assign({},et==null?void 0:et.style),De),prefixCls:he,className:le()({[`${he}-icon-hide`]:!Et,[`${he}-block-node`]:Gt,[`${he}-unselectable`]:!At,[`${he}-rtl`]:Kt==="rtl"},et==null?void 0:et.className,tn,gt),direction:Kt,checkable:Bt&&Re.createElement("span",{className:`${he}-checkbox-inner`}),selectable:At,switcherIcon:Te,draggable:Xe}),bn))}),ye;(function(Ht){Ht[Ht.None=0]="None",Ht[Ht.Start=1]="Start",Ht[Ht.End=2]="End"})(ye||(ye={}));function Ee(Ht,it){function jt(Kt){const{key:Qe,children:et}=Kt;it(Qe,Kt)!==!1&&Ee(et||[],it)}Ht.forEach(jt)}function we(Ht){let{treeData:it,expandedKeys:jt,startKey:Kt,endKey:Qe}=Ht;const et=[];let Dt=ye.None;if(Kt&&Kt===Qe)return[Kt];if(!Kt||!Qe)return[];function tn(Et){return Et===Kt||Et===Qe}return Ee(it,Et=>{if(Dt===ye.End)return!1;if(tn(Et)){if(et.push(Et),Dt===ye.None)Dt=ye.Start;else if(Dt===ye.Start)return Dt=ye.End,!1}else Dt===ye.Start&&et.push(Et);return jt.includes(Et)}),et}function ve(Ht,it){const jt=(0,se.Z)(it),Kt=[];return Ee(Ht,(Qe,et)=>{const Dt=jt.indexOf(Qe);return Dt!==-1&&(Kt.push(et),jt.splice(Dt,1)),!!jt.length}),Kt}var Je=function(Ht,it){var jt={};for(var Kt in Ht)Object.prototype.hasOwnProperty.call(Ht,Kt)&&it.indexOf(Kt)<0&&(jt[Kt]=Ht[Kt]);if(Ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Kt=Object.getOwnPropertySymbols(Ht);Qe<Kt.length;Qe++)it.indexOf(Kt[Qe])<0&&Object.prototype.propertyIsEnumerable.call(Ht,Kt[Qe])&&(jt[Kt[Qe]]=Ht[Kt[Qe]]);return jt};function Ge(Ht){const{isLeaf:it,expanded:jt}=Ht;return it?Re.createElement(Ce.Z,null):jt?Re.createElement(Fe.Z,null):Re.createElement(je,null)}function ot(Ht){let{treeData:it,children:jt}=Ht;return it||(0,a.zn)(jt)}const Le=(Ht,it)=>{var{defaultExpandAll:jt,defaultExpandParent:Kt,defaultExpandedKeys:Qe}=Ht,et=Je(Ht,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Dt=Re.useRef(),tn=Re.useRef(),Et=()=>{const{keyEntities:Xe}=(0,a.I8)(ot(et));let Te;return jt?Te=Object.keys(Xe):Kt?Te=(0,E.r7)(et.expandedKeys||Qe||[],Xe):Te=et.expandedKeys||Qe,Te},[Vt,Be]=Re.useState(et.selectedKeys||et.defaultSelectedKeys||[]),[Gt,bn]=Re.useState(()=>Et());Re.useEffect(()=>{"selectedKeys"in et&&Be(et.selectedKeys)},[et.selectedKeys]),Re.useEffect(()=>{"expandedKeys"in et&&bn(et.expandedKeys)},[et.expandedKeys]);const Bt=(Xe,Te)=>{var St;return"expandedKeys"in et||bn(Xe),(St=et.onExpand)===null||St===void 0?void 0:St.call(et,Xe,Te)},At=(Xe,Te)=>{var St;const{multiple:ln}=et,{node:Lt,nativeEvent:Jt}=Te,{key:Ut=""}=Lt,qt=ot(et),bt=Object.assign(Object.assign({},Te),{selected:!0}),Yt=(Jt==null?void 0:Jt.ctrlKey)||(Jt==null?void 0:Jt.metaKey),Fn=Jt==null?void 0:Jt.shiftKey;let kt;ln&&Yt?(kt=Xe,Dt.current=Ut,tn.current=kt,bt.selectedNodes=ve(qt,kt)):ln&&Fn?(kt=Array.from(new Set([].concat((0,se.Z)(tn.current||[]),(0,se.Z)(we({treeData:qt,expandedKeys:Gt,startKey:Ut,endKey:Dt.current}))))),bt.selectedNodes=ve(qt,kt)):(kt=[Ut],Dt.current=Ut,tn.current=kt,bt.selectedNodes=ve(qt,kt)),(St=et.onSelect)===null||St===void 0||St.call(et,kt,bt),"selectedKeys"in et||Be(kt)},{getPrefixCls:tt,direction:Ve}=Re.useContext(x.E_),{prefixCls:De,className:he,showIcon:nt=!0,expandAction:wt="click"}=et,Ae=Je(et,["prefixCls","className","showIcon","expandAction"]),be=tt("tree",De),gt=le()(`${be}-directory`,{[`${be}-directory-rtl`]:Ve==="rtl"},he);return Re.createElement(ge,Object.assign({icon:Ge,ref:it,blockNode:!0},Ae,{showIcon:nt,expandAction:wt,prefixCls:be,className:gt,expandedKeys:Gt,selectedKeys:Vt,onSelect:At,onExpand:Bt}))};var st=Re.forwardRef(Le);const Ke=ge;Ke.DirectoryTree=st,Ke.TreeNode=b.O;var rt=Ke},20648:function(Ot,Rt,ae){"use strict";ae.d(Rt,{TM:function(){return Ie},Yk:function(){return je}});var b=ae(36237),se=ae(98447),Ce=ae(17313),Fe=ae(8378),Oe=ae(37613),Re=ae(83116);const ue=new b.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Ze=(le,E)=>({[`.${le}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${E.motionDurationSlow}`}}}),We=(le,E)=>({[`.${le}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:E.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${E.lineWidthBold}px solid ${E.colorPrimary}`,borderRadius:"50%",content:'""'}}}),_e=(le,E)=>{const{treeCls:a,treeNodeCls:x,treeNodePadding:y,titleHeight:z,nodeSelectedBg:te,nodeHoverBg:re}=E,ie=E.paddingXS;return{[a]:Object.assign(Object.assign({},(0,Ce.Wf)(E)),{background:E.colorBgContainer,borderRadius:E.borderRadius,transition:`background-color ${E.motionDurationSlow}`,[`&${a}-rtl`]:{[`${a}-switcher`]:{"&_close":{[`${a}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${a}-active-focused)`]:Object.assign({},(0,Ce.oN)(E)),[`${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:y,insetInlineStart:0,border:`1px solid ${E.colorPrimary}`,opacity:0,animationName:ue,animationDuration:E.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${x}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${y}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${a}-node-content-wrapper`]:{color:E.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${a}-node-content-wrapper`]:Object.assign({},(0,Ce.oN)(E)),[`&:not(${x}-disabled).filter-node ${a}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${a}-draggable-icon`]:{flexShrink:0,width:z,lineHeight:`${z}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${E.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:z}},[`${a}-draggable-icon`]:{visibility:"hidden"},[`${a}-switcher`]:Object.assign(Object.assign({},Ze(le,E)),{position:"relative",flex:"none",alignSelf:"stretch",width:z,margin:0,lineHeight:`${z}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${a}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:E.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:z/2,bottom:-y,marginInlineStart:-1,borderInlineEnd:`1px solid ${E.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:z/2*.8,height:z/2,borderBottom:`1px solid ${E.colorBorder}`,content:'""'}}}),[`${a}-checkbox`]:{top:"initial",marginInlineEnd:ie},[`${a}-node-content-wrapper, ${a}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:z,margin:0,padding:`0 ${E.paddingXS/2}px`,color:"inherit",lineHeight:`${z}px`,background:"transparent",borderRadius:E.borderRadius,cursor:"pointer",transition:`all ${E.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:re},[`&${a}-node-selected`]:{backgroundColor:te},[`${a}-iconEle`]:{display:"inline-block",width:z,height:z,lineHeight:`${z}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${a}-unselectable ${a}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${a}-node-content-wrapper`]:Object.assign({lineHeight:`${z}px`,userSelect:"none"},We(le,E)),[`${x}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${E.colorPrimary}`}},"&-show-line":{[`${a}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:z/2,bottom:-y,borderInlineEnd:`1px solid ${E.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:`${z/2}px !important`}}}}})}},ke=le=>{const{treeCls:E,treeNodeCls:a,treeNodePadding:x,directoryNodeSelectedBg:y,directoryNodeSelectedColor:z}=le;return{[`${E}${E}-directory`]:{[a]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:x,insetInlineStart:0,transition:`background-color ${le.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:le.controlItemBgHover}},"> *":{zIndex:1},[`${E}-switcher`]:{transition:`color ${le.motionDurationMid}`},[`${E}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${E}-node-selected`]:{color:z,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:y},[`${E}-switcher`]:{color:z},[`${E}-node-content-wrapper`]:{color:z,background:"transparent"}}}}}},je=(le,E)=>{const a=`.${le}`,x=`${a}-treenode`,y=E.paddingXS/2,z=(0,Oe.TS)(E,{treeCls:a,treeNodeCls:x,treeNodePadding:y});return[_e(le,z),ke(z)]},Ie=le=>{const{controlHeightSM:E}=le;return{titleHeight:E,nodeHoverBg:le.controlItemBgHover,nodeSelectedBg:le.controlItemBgActive}};Rt.ZP=(0,Re.Z)("Tree",(le,E)=>{let{prefixCls:a}=E;return[{[le.componentCls]:(0,se.C2)(`${a}-checkbox`,le)},je(a,le),(0,Fe.Z)(le)]},le=>{const{colorTextLightSolid:E,colorPrimary:a}=le;return Object.assign(Object.assign({},Ie(le)),{directoryNodeSelectedColor:E,directoryNodeSelectedBg:a})})},71997:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return x}});var b=ae(54476),se=ae(59301),Ce={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"},Fe=Ce,Oe=ae(7657),Re=function(z,te){return se.createElement(Oe.Z,(0,b.Z)({},z,{ref:te,icon:Fe}))},ue=se.forwardRef(Re),Ze=ue,We=ae(52671),_e=ae(58617),ke=ae(15075),je=ae(43531),Ie=ae(92310),le=ae.n(Ie),E=ae(92343),x=y=>{const{prefixCls:z,switcherIcon:te,treeNodeProps:re,showLine:ie}=y,{isLeaf:ce,expanded:pe,loading:ge}=re;if(ge)return se.createElement(_e.Z,{className:`${z}-switcher-loading-icon`});let ye;if(ie&&typeof ie=="object"&&(ye=ie.showLeafIcon),ce){if(!ie)return null;if(typeof ye!="boolean"&&ye){const ve=typeof ye=="function"?ye(re):ye,Je=`${z}-switcher-line-custom-icon`;return(0,E.l$)(ve)?(0,E.Tm)(ve,{className:le()(ve.props.className||"",Je)}):ve}return ye?se.createElement(We.Z,{className:`${z}-switcher-line-icon`}):se.createElement("span",{className:`${z}-switcher-leaf-line`})}const Ee=`${z}-switcher-icon`,we=typeof te=="function"?te(re):te;return(0,E.l$)(we)?(0,E.Tm)(we,{className:le()(we.props.className||"",Ee)}):we!==void 0?we:ie?pe?se.createElement(ke.Z,{className:`${z}-switcher-line-icon`}):se.createElement(je.Z,{className:`${z}-switcher-line-icon`}):se.createElement(Ze,{className:Ee})}},24334:function(Ot,Rt,ae){var b,se;(function(Ce,Fe){Ot.exports=Fe(Ce)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ae.g!="undefined"?ae.g:this,function(Ce){"use strict";Ce=Ce||{};var Fe=Ce.Base64,Oe="2.6.4",Re="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ue=function(Ge){for(var ot={},Le=0,Ue=Ge.length;Le<Ue;Le++)ot[Ge.charAt(Le)]=Le;return ot}(Re),Ze=String.fromCharCode,We=function(Ge){if(Ge.length<2){var ot=Ge.charCodeAt(0);return ot<128?Ge:ot<2048?Ze(192|ot>>>6)+Ze(128|ot&63):Ze(224|ot>>>12&15)+Ze(128|ot>>>6&63)+Ze(128|ot&63)}else{var ot=65536+(Ge.charCodeAt(0)-55296)*1024+(Ge.charCodeAt(1)-56320);return Ze(240|ot>>>18&7)+Ze(128|ot>>>12&63)+Ze(128|ot>>>6&63)+Ze(128|ot&63)}},_e=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ke=function(Ge){return Ge.replace(_e,We)},je=function(Ge){var ot=[0,2,1][Ge.length%3],Le=Ge.charCodeAt(0)<<16|(Ge.length>1?Ge.charCodeAt(1):0)<<8|(Ge.length>2?Ge.charCodeAt(2):0),Ue=[Re.charAt(Le>>>18),Re.charAt(Le>>>12&63),ot>=2?"=":Re.charAt(Le>>>6&63),ot>=1?"=":Re.charAt(Le&63)];return Ue.join("")},Ie=Ce.btoa&&typeof Ce.btoa=="function"?function(Ge){return Ce.btoa(Ge)}:function(Ge){if(Ge.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ge.replace(/[\s\S]{1,3}/g,je)},le=function(Ge){return Ie(ke(String(Ge)))},E=function(Ge){return Ge.replace(/[+\/]/g,function(ot){return ot=="+"?"-":"_"}).replace(/=/g,"")},a=function(Ge,ot){return ot?E(le(Ge)):le(Ge)},x=function(Ge){return a(Ge,!0)},y;Ce.Uint8Array&&(y=function(Ge,ot){for(var Le="",Ue=0,st=Ge.length;Ue<st;Ue+=3){var Ke=Ge[Ue],rt=Ge[Ue+1],Ht=Ge[Ue+2],it=Ke<<16|rt<<8|Ht;Le+=Re.charAt(it>>>18)+Re.charAt(it>>>12&63)+(typeof rt!="undefined"?Re.charAt(it>>>6&63):"=")+(typeof Ht!="undefined"?Re.charAt(it&63):"=")}return ot?E(Le):Le});var z=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,te=function(Ge){switch(Ge.length){case 4:var ot=(7&Ge.charCodeAt(0))<<18|(63&Ge.charCodeAt(1))<<12|(63&Ge.charCodeAt(2))<<6|63&Ge.charCodeAt(3),Le=ot-65536;return Ze((Le>>>10)+55296)+Ze((Le&1023)+56320);case 3:return Ze((15&Ge.charCodeAt(0))<<12|(63&Ge.charCodeAt(1))<<6|63&Ge.charCodeAt(2));default:return Ze((31&Ge.charCodeAt(0))<<6|63&Ge.charCodeAt(1))}},re=function(Ge){return Ge.replace(z,te)},ie=function(Ge){var ot=Ge.length,Le=ot%4,Ue=(ot>0?ue[Ge.charAt(0)]<<18:0)|(ot>1?ue[Ge.charAt(1)]<<12:0)|(ot>2?ue[Ge.charAt(2)]<<6:0)|(ot>3?ue[Ge.charAt(3)]:0),st=[Ze(Ue>>>16),Ze(Ue>>>8&255),Ze(Ue&255)];return st.length-=[0,0,2,1][Le],st.join("")},ce=Ce.atob&&typeof Ce.atob=="function"?function(Ge){return Ce.atob(Ge)}:function(Ge){return Ge.replace(/\S{1,4}/g,ie)},pe=function(Ge){return ce(String(Ge).replace(/[^A-Za-z0-9\+\/]/g,""))},ge=function(Ge){return re(ce(Ge))},ye=function(Ge){return String(Ge).replace(/[-_]/g,function(ot){return ot=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ee=function(Ge){return ge(ye(Ge))},we;Ce.Uint8Array&&(we=function(Ge){return Uint8Array.from(pe(ye(Ge)),function(ot){return ot.charCodeAt(0)})});var ve=function(){var Ge=Ce.Base64;return Ce.Base64=Fe,Ge};if(Ce.Base64={VERSION:Oe,atob:pe,btoa:Ie,fromBase64:Ee,toBase64:a,utob:ke,encode:a,encodeURI:x,btou:re,decode:Ee,noConflict:ve,fromUint8Array:y,toUint8Array:we},typeof Object.defineProperty=="function"){var Je=function(Ge){return{value:Ge,enumerable:!1,writable:!0,configurable:!0}};Ce.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Je(function(){return Ee(this)})),Object.defineProperty(String.prototype,"toBase64",Je(function(Ge){return a(this,Ge)})),Object.defineProperty(String.prototype,"toBase64URI",Je(function(){return a(this,!0)}))}}return Ce.Meteor&&(Base64=Ce.Base64),Ot.exports?Ot.exports.Base64=Ce.Base64:(b=[],se=function(){return Ce.Base64}.apply(Rt,b),se!==void 0&&(Ot.exports=se)),{Base64:Ce.Base64}})},39417:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return ge}});var b=ae(54476),se=ae(20068),Ce=ae(75931),Fe=ae(33885),Oe=ae(67732),Re=ae(83652),ue=ae(31226),Ze=ae(42403),We=ae(158),_e=ae(92310),ke=ae.n(_e),je=ae(26112),Ie=ae(59301),le=ae(39378),E=function(Ee){for(var we=Ee.prefixCls,ve=Ee.level,Je=Ee.isStart,Ge=Ee.isEnd,ot="".concat(we,"-indent-unit"),Le=[],Ue=0;Ue<ve;Ue+=1){var st;Le.push(Ie.createElement("span",{key:Ue,className:ke()(ot,(st={},(0,se.Z)(st,"".concat(ot,"-start"),Je[Ue]),(0,se.Z)(st,"".concat(ot,"-end"),Ge[Ue]),st))}))}return Ie.createElement("span",{"aria-hidden":"true",className:"".concat(we,"-indent")},Le)},a=Ie.memo(E),x=ae(67841),y=ae(71430),z=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],te="open",re="close",ie="---",ce=function(ye){(0,Ze.Z)(we,ye);var Ee=(0,We.Z)(we);function we(){var ve;(0,Oe.Z)(this,we);for(var Je=arguments.length,Ge=new Array(Je),ot=0;ot<Je;ot++)Ge[ot]=arguments[ot];return ve=Ee.call.apply(Ee,[this].concat(Ge)),ve.state={dragNodeHighlight:!1},ve.selectHandle=void 0,ve.cacheIndent=void 0,ve.onSelectorClick=function(Le){var Ue=ve.props.context.onNodeClick;Ue(Le,(0,y.F)(ve.props)),ve.isSelectable()?ve.onSelect(Le):ve.onCheck(Le)},ve.onSelectorDoubleClick=function(Le){var Ue=ve.props.context.onNodeDoubleClick;Ue(Le,(0,y.F)(ve.props))},ve.onSelect=function(Le){if(!ve.isDisabled()){var Ue=ve.props.context.onNodeSelect;Ue(Le,(0,y.F)(ve.props))}},ve.onCheck=function(Le){if(!ve.isDisabled()){var Ue=ve.props,st=Ue.disableCheckbox,Ke=Ue.checked,rt=ve.props.context.onNodeCheck;if(!(!ve.isCheckable()||st)){var Ht=!Ke;rt(Le,(0,y.F)(ve.props),Ht)}}},ve.onMouseEnter=function(Le){var Ue=ve.props.context.onNodeMouseEnter;Ue(Le,(0,y.F)(ve.props))},ve.onMouseLeave=function(Le){var Ue=ve.props.context.onNodeMouseLeave;Ue(Le,(0,y.F)(ve.props))},ve.onContextMenu=function(Le){var Ue=ve.props.context.onNodeContextMenu;Ue(Le,(0,y.F)(ve.props))},ve.onDragStart=function(Le){var Ue=ve.props.context.onNodeDragStart;Le.stopPropagation(),ve.setState({dragNodeHighlight:!0}),Ue(Le,(0,ue.Z)(ve));try{Le.dataTransfer.setData("text/plain","")}catch(st){}},ve.onDragEnter=function(Le){var Ue=ve.props.context.onNodeDragEnter;Le.preventDefault(),Le.stopPropagation(),Ue(Le,(0,ue.Z)(ve))},ve.onDragOver=function(Le){var Ue=ve.props.context.onNodeDragOver;Le.preventDefault(),Le.stopPropagation(),Ue(Le,(0,ue.Z)(ve))},ve.onDragLeave=function(Le){var Ue=ve.props.context.onNodeDragLeave;Le.stopPropagation(),Ue(Le,(0,ue.Z)(ve))},ve.onDragEnd=function(Le){var Ue=ve.props.context.onNodeDragEnd;Le.stopPropagation(),ve.setState({dragNodeHighlight:!1}),Ue(Le,(0,ue.Z)(ve))},ve.onDrop=function(Le){var Ue=ve.props.context.onNodeDrop;Le.preventDefault(),Le.stopPropagation(),ve.setState({dragNodeHighlight:!1}),Ue(Le,(0,ue.Z)(ve))},ve.onExpand=function(Le){var Ue=ve.props,st=Ue.loading,Ke=Ue.context.onNodeExpand;st||Ke(Le,(0,y.F)(ve.props))},ve.setSelectHandle=function(Le){ve.selectHandle=Le},ve.getNodeState=function(){var Le=ve.props.expanded;return ve.isLeaf()?null:Le?te:re},ve.hasChildren=function(){var Le=ve.props.eventKey,Ue=ve.props.context.keyEntities,st=(0,x.Z)(Ue,Le)||{},Ke=st.children;return!!(Ke||[]).length},ve.isLeaf=function(){var Le=ve.props,Ue=Le.isLeaf,st=Le.loaded,Ke=ve.props.context.loadData,rt=ve.hasChildren();return Ue===!1?!1:Ue||!Ke&&!rt||Ke&&st&&!rt},ve.isDisabled=function(){var Le=ve.props.disabled,Ue=ve.props.context.disabled;return!!(Ue||Le)},ve.isCheckable=function(){var Le=ve.props.checkable,Ue=ve.props.context.checkable;return!Ue||Le===!1?!1:Ue},ve.syncLoadData=function(Le){var Ue=Le.expanded,st=Le.loading,Ke=Le.loaded,rt=ve.props.context,Ht=rt.loadData,it=rt.onNodeLoad;st||Ht&&Ue&&!ve.isLeaf()&&!ve.hasChildren()&&!Ke&&it((0,y.F)(ve.props))},ve.isDraggable=function(){var Le=ve.props,Ue=Le.data,st=Le.context.draggable;return!!(st&&(!st.nodeDraggable||st.nodeDraggable(Ue)))},ve.renderDragHandler=function(){var Le=ve.props.context,Ue=Le.draggable,st=Le.prefixCls;return Ue!=null&&Ue.icon?Ie.createElement("span",{className:"".concat(st,"-draggable-icon")},Ue.icon):null},ve.renderSwitcherIconDom=function(Le){var Ue=ve.props.switcherIcon,st=ve.props.context.switcherIcon,Ke=Ue||st;return typeof Ke=="function"?Ke((0,Fe.Z)((0,Fe.Z)({},ve.props),{},{isLeaf:Le})):Ke},ve.renderSwitcher=function(){var Le=ve.props.expanded,Ue=ve.props.context.prefixCls;if(ve.isLeaf()){var st=ve.renderSwitcherIconDom(!0);return st!==!1?Ie.createElement("span",{className:ke()("".concat(Ue,"-switcher"),"".concat(Ue,"-switcher-noop"))},st):null}var Ke=ke()("".concat(Ue,"-switcher"),"".concat(Ue,"-switcher_").concat(Le?te:re)),rt=ve.renderSwitcherIconDom(!1);return rt!==!1?Ie.createElement("span",{onClick:ve.onExpand,className:Ke},rt):null},ve.renderCheckbox=function(){var Le=ve.props,Ue=Le.checked,st=Le.halfChecked,Ke=Le.disableCheckbox,rt=ve.props.context.prefixCls,Ht=ve.isDisabled(),it=ve.isCheckable();if(!it)return null;var jt=typeof it!="boolean"?it:null;return Ie.createElement("span",{className:ke()("".concat(rt,"-checkbox"),Ue&&"".concat(rt,"-checkbox-checked"),!Ue&&st&&"".concat(rt,"-checkbox-indeterminate"),(Ht||Ke)&&"".concat(rt,"-checkbox-disabled")),onClick:ve.onCheck},jt)},ve.renderIcon=function(){var Le=ve.props.loading,Ue=ve.props.context.prefixCls;return Ie.createElement("span",{className:ke()("".concat(Ue,"-iconEle"),"".concat(Ue,"-icon__").concat(ve.getNodeState()||"docu"),Le&&"".concat(Ue,"-icon_loading"))})},ve.renderSelector=function(){var Le=ve.state.dragNodeHighlight,Ue=ve.props,st=Ue.title,Ke=st===void 0?ie:st,rt=Ue.selected,Ht=Ue.icon,it=Ue.loading,jt=Ue.data,Kt=ve.props.context,Qe=Kt.prefixCls,et=Kt.showIcon,Dt=Kt.icon,tn=Kt.loadData,Et=Kt.titleRender,Vt=ve.isDisabled(),Be="".concat(Qe,"-node-content-wrapper"),Gt;if(et){var bn=Ht||Dt;Gt=bn?Ie.createElement("span",{className:ke()("".concat(Qe,"-iconEle"),"".concat(Qe,"-icon__customize"))},typeof bn=="function"?bn(ve.props):bn):ve.renderIcon()}else tn&&it&&(Gt=ve.renderIcon());var Bt;typeof Ke=="function"?Bt=Ke(jt):Et?Bt=Et(jt):Bt=Ke;var At=Ie.createElement("span",{className:"".concat(Qe,"-title")},Bt);return Ie.createElement("span",{ref:ve.setSelectHandle,title:typeof Ke=="string"?Ke:"",className:ke()("".concat(Be),"".concat(Be,"-").concat(ve.getNodeState()||"normal"),!Vt&&(rt||Le)&&"".concat(Qe,"-node-selected")),onMouseEnter:ve.onMouseEnter,onMouseLeave:ve.onMouseLeave,onContextMenu:ve.onContextMenu,onClick:ve.onSelectorClick,onDoubleClick:ve.onSelectorDoubleClick},Gt,At,ve.renderDropIndicator())},ve.renderDropIndicator=function(){var Le=ve.props,Ue=Le.disabled,st=Le.eventKey,Ke=ve.props.context,rt=Ke.draggable,Ht=Ke.dropLevelOffset,it=Ke.dropPosition,jt=Ke.prefixCls,Kt=Ke.indent,Qe=Ke.dropIndicatorRender,et=Ke.dragOverNodeKey,Dt=Ke.direction,tn=!!rt,Et=!Ue&&tn&&et===st,Vt=Kt!=null?Kt:ve.cacheIndent;return ve.cacheIndent=Kt,Et?Qe({dropPosition:it,dropLevelOffset:Ht,indent:Vt,prefixCls:jt,direction:Dt}):null},ve}return(0,Re.Z)(we,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Je=this.props.selectable,Ge=this.props.context.selectable;return typeof Je=="boolean"?Je:Ge}},{key:"render",value:function(){var Je,Ge=this.props,ot=Ge.eventKey,Le=Ge.className,Ue=Ge.style,st=Ge.dragOver,Ke=Ge.dragOverGapTop,rt=Ge.dragOverGapBottom,Ht=Ge.isLeaf,it=Ge.isStart,jt=Ge.isEnd,Kt=Ge.expanded,Qe=Ge.selected,et=Ge.checked,Dt=Ge.halfChecked,tn=Ge.loading,Et=Ge.domRef,Vt=Ge.active,Be=Ge.data,Gt=Ge.onMouseMove,bn=Ge.selectable,Bt=(0,Ce.Z)(Ge,z),At=this.props.context,tt=At.prefixCls,Ve=At.filterTreeNode,De=At.keyEntities,he=At.dropContainerKey,nt=At.dropTargetKey,wt=At.draggingNodeKey,Ae=this.isDisabled(),be=(0,je.Z)(Bt,{aria:!0,data:!0}),gt=(0,x.Z)(De,ot)||{},Xe=gt.level,Te=jt[jt.length-1],St=this.isDraggable(),ln=!Ae&&St,Lt=wt===ot,Jt=bn!==void 0?{"aria-selected":!!bn}:void 0;return Ie.createElement("div",(0,b.Z)({ref:Et,className:ke()(Le,"".concat(tt,"-treenode"),(Je={},(0,se.Z)(Je,"".concat(tt,"-treenode-disabled"),Ae),(0,se.Z)(Je,"".concat(tt,"-treenode-switcher-").concat(Kt?"open":"close"),!Ht),(0,se.Z)(Je,"".concat(tt,"-treenode-checkbox-checked"),et),(0,se.Z)(Je,"".concat(tt,"-treenode-checkbox-indeterminate"),Dt),(0,se.Z)(Je,"".concat(tt,"-treenode-selected"),Qe),(0,se.Z)(Je,"".concat(tt,"-treenode-loading"),tn),(0,se.Z)(Je,"".concat(tt,"-treenode-active"),Vt),(0,se.Z)(Je,"".concat(tt,"-treenode-leaf-last"),Te),(0,se.Z)(Je,"".concat(tt,"-treenode-draggable"),St),(0,se.Z)(Je,"dragging",Lt),(0,se.Z)(Je,"drop-target",nt===ot),(0,se.Z)(Je,"drop-container",he===ot),(0,se.Z)(Je,"drag-over",!Ae&&st),(0,se.Z)(Je,"drag-over-gap-top",!Ae&&Ke),(0,se.Z)(Je,"drag-over-gap-bottom",!Ae&&rt),(0,se.Z)(Je,"filter-node",Ve&&Ve((0,y.F)(this.props))),Je)),style:Ue,draggable:ln,"aria-grabbed":Lt,onDragStart:ln?this.onDragStart:void 0,onDragEnter:St?this.onDragEnter:void 0,onDragOver:St?this.onDragOver:void 0,onDragLeave:St?this.onDragLeave:void 0,onDrop:St?this.onDrop:void 0,onDragEnd:St?this.onDragEnd:void 0,onMouseMove:Gt},Jt,be),Ie.createElement(a,{prefixCls:tt,level:Xe,isStart:it,isEnd:jt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),we}(Ie.Component),pe=function(Ee){return Ie.createElement(le.k.Consumer,null,function(we){return Ie.createElement(ce,(0,b.Z)({},Ee,{context:we}))})};pe.displayName="TreeNode",pe.isTreeNode=1;var ge=pe},39378:function(Ot,Rt,ae){"use strict";ae.d(Rt,{k:function(){return se}});var b=ae(59301),se=b.createContext(null)},60091:function(Ot,Rt,ae){"use strict";ae.d(Rt,{O:function(){return ge.Z},Z:function(){return At}});var b=ae(54476),se=ae(20068),Ce=ae(76190),Fe=ae(33885),Oe=ae(94480),Re=ae(67732),ue=ae(83652),Ze=ae(31226),We=ae(42403),_e=ae(158),ke=ae(92310),je=ae.n(ke),Ie=ae(10228),le=ae(26112),E=ae(48736),a=ae(59301),x=ae(39378);function y(tt){var Ve=tt.dropPosition,De=tt.dropLevelOffset,he=tt.indent,nt={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Ve){case-1:nt.top=0,nt.left=-De*he;break;case 1:nt.bottom=0,nt.left=-De*he;break;case 0:nt.bottom=0,nt.left=he;break}return a.createElement("div",{style:nt})}function z(tt){if(tt==null)throw new TypeError("Cannot destructure "+tt)}var te=ae(42978),re=ae(75931),ie=ae(34280),ce=ae(48911),pe=ae(77900),ge=ae(39417);function ye(tt,Ve){var De=a.useState(!1),he=(0,te.Z)(De,2),nt=he[0],wt=he[1];a.useLayoutEffect(function(){if(nt)return tt(),function(){Ve()}},[nt]),a.useLayoutEffect(function(){return wt(!0),function(){wt(!1)}},[])}var Ee=ae(71430),we=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ve=function(Ve,De){var he=Ve.className,nt=Ve.style,wt=Ve.motion,Ae=Ve.motionNodes,be=Ve.motionType,gt=Ve.onMotionStart,Xe=Ve.onMotionEnd,Te=Ve.active,St=Ve.treeNodeRequiredProps,ln=(0,re.Z)(Ve,we),Lt=a.useState(!0),Jt=(0,te.Z)(Lt,2),Ut=Jt[0],qt=Jt[1],bt=a.useContext(x.k),Yt=bt.prefixCls,Fn=Ae&&be!=="hide";(0,ie.Z)(function(){Ae&&Fn!==Ut&&qt(Fn)},[Ae]);var kt=function(){Ae&>()},Ft=a.useRef(!1),In=function(){Ae&&!Ft.current&&(Ft.current=!0,Xe())};ye(kt,In);var jn=function(na){Fn===na&&In()};return Ae?a.createElement(pe.default,(0,b.Z)({ref:De,visible:Ut},wt,{motionAppear:be==="show",onVisibleChanged:jn}),function(Gn,na){var La=Gn.className,nn=Gn.style;return a.createElement("div",{ref:na,className:je()("".concat(Yt,"-treenode-motion"),La),style:nn},Ae.map(function($t){var mn=(0,b.Z)({},(z($t.data),$t.data)),Zn=$t.title,Cn=$t.key,Ha=$t.isStart,$a=$t.isEnd;delete mn.children;var aa=(0,Ee.H8)(Cn,St);return a.createElement(ge.Z,(0,b.Z)({},mn,aa,{title:Zn,active:Te,data:$t.data,key:Cn,isStart:Ha,isEnd:$a}))}))}):a.createElement(ge.Z,(0,b.Z)({domRef:De,className:he,style:nt},ln,{active:Te}))};ve.displayName="MotionTreeNode";var Je=a.forwardRef(ve),Ge=Je;function ot(){var tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],De=tt.length,he=Ve.length;if(Math.abs(De-he)!==1)return{add:!1,key:null};function nt(wt,Ae){var be=new Map;wt.forEach(function(Xe){be.set(Xe,!0)});var gt=Ae.filter(function(Xe){return!be.has(Xe)});return gt.length===1?gt[0]:null}return De<he?{add:!0,key:nt(tt,Ve)}:{add:!1,key:nt(Ve,tt)}}function Le(tt,Ve,De){var he=tt.findIndex(function(be){return be.key===De}),nt=tt[he+1],wt=Ve.findIndex(function(be){return be.key===De});if(nt){var Ae=Ve.findIndex(function(be){return be.key===nt.key});return Ve.slice(wt+1,Ae)}return Ve.slice(wt+1)}var Ue=["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"],st={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ke=function(){},rt="RC_TREE_MOTION_".concat(Math.random()),Ht={key:rt},it={key:rt,level:0,index:0,pos:"0",node:Ht,nodes:[Ht]},jt={parent:null,children:[],pos:it.pos,data:Ht,title:null,key:rt,isStart:[],isEnd:[]};function Kt(tt,Ve,De,he){return Ve===!1||!De?tt:tt.slice(0,Math.ceil(De/he)+1)}function Qe(tt){var Ve=tt.key,De=tt.pos;return(0,Ee.km)(Ve,De)}function et(tt){for(var Ve=String(tt.data.key),De=tt;De.parent;)De=De.parent,Ve="".concat(De.data.key," > ").concat(Ve);return Ve}var Dt=a.forwardRef(function(tt,Ve){var De=tt.prefixCls,he=tt.data,nt=tt.selectable,wt=tt.checkable,Ae=tt.expandedKeys,be=tt.selectedKeys,gt=tt.checkedKeys,Xe=tt.loadedKeys,Te=tt.loadingKeys,St=tt.halfCheckedKeys,ln=tt.keyEntities,Lt=tt.disabled,Jt=tt.dragging,Ut=tt.dragOverNodeKey,qt=tt.dropPosition,bt=tt.motion,Yt=tt.height,Fn=tt.itemHeight,kt=tt.virtual,Ft=tt.focusable,In=tt.activeItem,jn=tt.focused,Gn=tt.tabIndex,na=tt.onKeyDown,La=tt.onFocus,nn=tt.onBlur,$t=tt.onActiveChange,mn=tt.onListChangeStart,Zn=tt.onListChangeEnd,Cn=(0,re.Z)(tt,Ue),Ha=a.useRef(null),$a=a.useRef(null);a.useImperativeHandle(Ve,function(){return{scrollTo:function($n){Ha.current.scrollTo($n)},getIndentWidth:function(){return $a.current.offsetWidth}}});var aa=a.useState(Ae),vn=(0,te.Z)(aa,2),ka=vn[0],vt=vn[1],cn=a.useState(he),Nn=(0,te.Z)(cn,2),kn=Nn[0],xn=Nn[1],zn=a.useState(he),Jn=(0,te.Z)(zn,2),ht=Jn[0],yt=Jn[1],pt=a.useState([]),sn=(0,te.Z)(pt,2),En=sn[0],gn=sn[1],Qn=a.useState(null),_n=(0,te.Z)(Qn,2),Hn=_n[0],Pa=_n[1],Qa=a.useRef(he);Qa.current=he;function Sn(){var gr=Qa.current;xn(gr),yt(gr),gn([]),Pa(null),Zn()}(0,ie.Z)(function(){vt(Ae);var gr=ot(ka,Ae);if(gr.key!==null)if(gr.add){var $n=kn.findIndex(function(Mr){var Xt=Mr.key;return Xt===gr.key}),an=Kt(Le(kn,he,gr.key),kt,Yt,Fn),Rr=kn.slice();Rr.splice($n+1,0,jt),yt(Rr),gn(an),Pa("show")}else{var Ja=he.findIndex(function(Mr){var Xt=Mr.key;return Xt===gr.key}),Fr=Kt(Le(he,kn,gr.key),kt,Yt,Fn),Or=he.slice();Or.splice(Ja+1,0,jt),yt(Or),gn(Fr),Pa("hide")}else kn!==he&&(xn(he),yt(he))},[Ae,he]),a.useEffect(function(){Jt||Sn()},[Jt]);var ba=bt?ht:he,nr={expandedKeys:Ae,selectedKeys:be,loadedKeys:Xe,loadingKeys:Te,checkedKeys:gt,halfCheckedKeys:St,dragOverNodeKey:Ut,dropPosition:qt,keyEntities:ln};return a.createElement(a.Fragment,null,jn&&In&&a.createElement("span",{style:st,"aria-live":"assertive"},et(In)),a.createElement("div",null,a.createElement("input",{style:st,disabled:Ft===!1||Lt,tabIndex:Ft!==!1?Gn:null,onKeyDown:na,onFocus:La,onBlur:nn,value:"",onChange:Ke,"aria-label":"for screen reader"})),a.createElement("div",{className:"".concat(De,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},a.createElement("div",{className:"".concat(De,"-indent")},a.createElement("div",{ref:$a,className:"".concat(De,"-indent-unit")}))),a.createElement(ce.Z,(0,b.Z)({},Cn,{data:ba,itemKey:Qe,height:Yt,fullHeight:!1,virtual:kt,itemHeight:Fn,prefixCls:"".concat(De,"-list"),ref:Ha,onVisibleChange:function($n,an){var Rr=new Set($n),Ja=an.filter(function(Fr){return!Rr.has(Fr)});Ja.some(function(Fr){return Qe(Fr)===rt})&&Sn()}}),function(gr){var $n=gr.pos,an=(0,b.Z)({},(z(gr.data),gr.data)),Rr=gr.title,Ja=gr.key,Fr=gr.isStart,Or=gr.isEnd,Mr=(0,Ee.km)(Ja,$n);delete an.key,delete an.children;var Xt=(0,Ee.H8)(Mr,nr);return a.createElement(Ge,(0,b.Z)({},an,Xt,{title:Rr,active:!!In&&Ja===In.key,pos:$n,data:gr.data,isStart:Fr,isEnd:Or,motion:bt,motionNodes:Ja===rt?En:null,motionType:Hn,onMotionStart:mn,onMotionEnd:Sn,treeNodeRequiredProps:nr,onMouseMove:function(){$t(null)}}))}))});Dt.displayName="NodeList";var tn=Dt,Et=ae(35654),Vt=ae(90782),Be=ae(67841),Gt=10,bn=function(tt){(0,We.Z)(De,tt);var Ve=(0,_e.Z)(De);function De(){var he;(0,Re.Z)(this,De);for(var nt=arguments.length,wt=new Array(nt),Ae=0;Ae<nt;Ae++)wt[Ae]=arguments[Ae];return he=Ve.call.apply(Ve,[this].concat(wt)),he.destroyed=!1,he.delayedDragEnterLogic=void 0,he.loadingRetryTimes={},he.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,Ee.w$)()},he.dragStartMousePosition=null,he.dragNode=void 0,he.currentMouseOverDroppableNodeKey=null,he.listRef=a.createRef(),he.onNodeDragStart=function(be,gt){var Xe=he.state,Te=Xe.expandedKeys,St=Xe.keyEntities,ln=he.props.onDragStart,Lt=gt.props.eventKey;he.dragNode=gt,he.dragStartMousePosition={x:be.clientX,y:be.clientY};var Jt=(0,Et._5)(Te,Lt);he.setState({draggingNodeKey:Lt,dragChildrenKeys:(0,Et.wA)(Lt,St),indent:he.listRef.current.getIndentWidth()}),he.setExpandedKeys(Jt),window.addEventListener("dragend",he.onWindowDragEnd),ln==null||ln({event:be,node:(0,Ee.F)(gt.props)})},he.onNodeDragEnter=function(be,gt){var Xe=he.state,Te=Xe.expandedKeys,St=Xe.keyEntities,ln=Xe.dragChildrenKeys,Lt=Xe.flattenNodes,Jt=Xe.indent,Ut=he.props,qt=Ut.onDragEnter,bt=Ut.onExpand,Yt=Ut.allowDrop,Fn=Ut.direction,kt=gt.props,Ft=kt.pos,In=kt.eventKey,jn=(0,Ze.Z)(he),Gn=jn.dragNode;if(he.currentMouseOverDroppableNodeKey!==In&&(he.currentMouseOverDroppableNodeKey=In),!Gn){he.resetDragState();return}var na=(0,Et.OM)(be,Gn,gt,Jt,he.dragStartMousePosition,Yt,Lt,St,Te,Fn),La=na.dropPosition,nn=na.dropLevelOffset,$t=na.dropTargetKey,mn=na.dropContainerKey,Zn=na.dropTargetPos,Cn=na.dropAllowed,Ha=na.dragOverNodeKey;if(ln.indexOf($t)!==-1||!Cn){he.resetDragState();return}if(he.delayedDragEnterLogic||(he.delayedDragEnterLogic={}),Object.keys(he.delayedDragEnterLogic).forEach(function($a){clearTimeout(he.delayedDragEnterLogic[$a])}),Gn.props.eventKey!==gt.props.eventKey&&(be.persist(),he.delayedDragEnterLogic[Ft]=window.setTimeout(function(){if(he.state.draggingNodeKey!==null){var $a=(0,Oe.Z)(Te),aa=(0,Be.Z)(St,gt.props.eventKey);aa&&(aa.children||[]).length&&($a=(0,Et.L0)(Te,gt.props.eventKey)),"expandedKeys"in he.props||he.setExpandedKeys($a),bt==null||bt($a,{node:(0,Ee.F)(gt.props),expanded:!0,nativeEvent:be.nativeEvent})}},800)),Gn.props.eventKey===$t&&nn===0){he.resetDragState();return}he.setState({dragOverNodeKey:Ha,dropPosition:La,dropLevelOffset:nn,dropTargetKey:$t,dropContainerKey:mn,dropTargetPos:Zn,dropAllowed:Cn}),qt==null||qt({event:be,node:(0,Ee.F)(gt.props),expandedKeys:Te})},he.onNodeDragOver=function(be,gt){var Xe=he.state,Te=Xe.dragChildrenKeys,St=Xe.flattenNodes,ln=Xe.keyEntities,Lt=Xe.expandedKeys,Jt=Xe.indent,Ut=he.props,qt=Ut.onDragOver,bt=Ut.allowDrop,Yt=Ut.direction,Fn=(0,Ze.Z)(he),kt=Fn.dragNode;if(kt){var Ft=(0,Et.OM)(be,kt,gt,Jt,he.dragStartMousePosition,bt,St,ln,Lt,Yt),In=Ft.dropPosition,jn=Ft.dropLevelOffset,Gn=Ft.dropTargetKey,na=Ft.dropContainerKey,La=Ft.dropAllowed,nn=Ft.dropTargetPos,$t=Ft.dragOverNodeKey;Te.indexOf(Gn)!==-1||!La||(kt.props.eventKey===Gn&&jn===0?he.state.dropPosition===null&&he.state.dropLevelOffset===null&&he.state.dropTargetKey===null&&he.state.dropContainerKey===null&&he.state.dropTargetPos===null&&he.state.dropAllowed===!1&&he.state.dragOverNodeKey===null||he.resetDragState():In===he.state.dropPosition&&jn===he.state.dropLevelOffset&&Gn===he.state.dropTargetKey&&na===he.state.dropContainerKey&&nn===he.state.dropTargetPos&&La===he.state.dropAllowed&&$t===he.state.dragOverNodeKey||he.setState({dropPosition:In,dropLevelOffset:jn,dropTargetKey:Gn,dropContainerKey:na,dropTargetPos:nn,dropAllowed:La,dragOverNodeKey:$t}),qt==null||qt({event:be,node:(0,Ee.F)(gt.props)}))}},he.onNodeDragLeave=function(be,gt){he.currentMouseOverDroppableNodeKey===gt.props.eventKey&&!be.currentTarget.contains(be.relatedTarget)&&(he.resetDragState(),he.currentMouseOverDroppableNodeKey=null);var Xe=he.props.onDragLeave;Xe==null||Xe({event:be,node:(0,Ee.F)(gt.props)})},he.onWindowDragEnd=function(be){he.onNodeDragEnd(be,null,!0),window.removeEventListener("dragend",he.onWindowDragEnd)},he.onNodeDragEnd=function(be,gt){var Xe=he.props.onDragEnd;he.setState({dragOverNodeKey:null}),he.cleanDragState(),Xe==null||Xe({event:be,node:(0,Ee.F)(gt.props)}),he.dragNode=null,window.removeEventListener("dragend",he.onWindowDragEnd)},he.onNodeDrop=function(be,gt){var Xe,Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,St=he.state,ln=St.dragChildrenKeys,Lt=St.dropPosition,Jt=St.dropTargetKey,Ut=St.dropTargetPos,qt=St.dropAllowed;if(qt){var bt=he.props.onDrop;if(he.setState({dragOverNodeKey:null}),he.cleanDragState(),Jt!==null){var Yt=(0,Fe.Z)((0,Fe.Z)({},(0,Ee.H8)(Jt,he.getTreeNodeRequiredProps())),{},{active:((Xe=he.getActiveItem())===null||Xe===void 0?void 0:Xe.key)===Jt,data:(0,Be.Z)(he.state.keyEntities,Jt).node}),Fn=ln.indexOf(Jt)!==-1;(0,E.ZP)(!Fn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var kt=(0,Et.yx)(Ut),Ft={event:be,node:(0,Ee.F)(Yt),dragNode:he.dragNode?(0,Ee.F)(he.dragNode.props):null,dragNodesKeys:[he.dragNode.props.eventKey].concat(ln),dropToGap:Lt!==0,dropPosition:Lt+Number(kt[kt.length-1])};Te||bt==null||bt(Ft),he.dragNode=null}}},he.cleanDragState=function(){var be=he.state.draggingNodeKey;be!==null&&he.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),he.dragStartMousePosition=null,he.currentMouseOverDroppableNodeKey=null},he.triggerExpandActionExpand=function(be,gt){var Xe=he.state,Te=Xe.expandedKeys,St=Xe.flattenNodes,ln=gt.expanded,Lt=gt.key,Jt=gt.isLeaf;if(!(Jt||be.shiftKey||be.metaKey||be.ctrlKey)){var Ut=St.filter(function(bt){return bt.key===Lt})[0],qt=(0,Ee.F)((0,Fe.Z)((0,Fe.Z)({},(0,Ee.H8)(Lt,he.getTreeNodeRequiredProps())),{},{data:Ut.data}));he.setExpandedKeys(ln?(0,Et._5)(Te,Lt):(0,Et.L0)(Te,Lt)),he.onNodeExpand(be,qt)}},he.onNodeClick=function(be,gt){var Xe=he.props,Te=Xe.onClick,St=Xe.expandAction;St==="click"&&he.triggerExpandActionExpand(be,gt),Te==null||Te(be,gt)},he.onNodeDoubleClick=function(be,gt){var Xe=he.props,Te=Xe.onDoubleClick,St=Xe.expandAction;St==="doubleClick"&&he.triggerExpandActionExpand(be,gt),Te==null||Te(be,gt)},he.onNodeSelect=function(be,gt){var Xe=he.state.selectedKeys,Te=he.state,St=Te.keyEntities,ln=Te.fieldNames,Lt=he.props,Jt=Lt.onSelect,Ut=Lt.multiple,qt=gt.selected,bt=gt[ln.key],Yt=!qt;Yt?Ut?Xe=(0,Et.L0)(Xe,bt):Xe=[bt]:Xe=(0,Et._5)(Xe,bt);var Fn=Xe.map(function(kt){var Ft=(0,Be.Z)(St,kt);return Ft?Ft.node:null}).filter(function(kt){return kt});he.setUncontrolledState({selectedKeys:Xe}),Jt==null||Jt(Xe,{event:"select",selected:Yt,node:gt,selectedNodes:Fn,nativeEvent:be.nativeEvent})},he.onNodeCheck=function(be,gt,Xe){var Te=he.state,St=Te.keyEntities,ln=Te.checkedKeys,Lt=Te.halfCheckedKeys,Jt=he.props,Ut=Jt.checkStrictly,qt=Jt.onCheck,bt=gt.key,Yt,Fn={event:"check",node:gt,checked:Xe,nativeEvent:be.nativeEvent};if(Ut){var kt=Xe?(0,Et.L0)(ln,bt):(0,Et._5)(ln,bt),Ft=(0,Et._5)(Lt,bt);Yt={checked:kt,halfChecked:Ft},Fn.checkedNodes=kt.map(function(nn){return(0,Be.Z)(St,nn)}).filter(function(nn){return nn}).map(function(nn){return nn.node}),he.setUncontrolledState({checkedKeys:kt})}else{var In=(0,Vt.S)([].concat((0,Oe.Z)(ln),[bt]),!0,St),jn=In.checkedKeys,Gn=In.halfCheckedKeys;if(!Xe){var na=new Set(jn);na.delete(bt);var La=(0,Vt.S)(Array.from(na),{checked:!1,halfCheckedKeys:Gn},St);jn=La.checkedKeys,Gn=La.halfCheckedKeys}Yt=jn,Fn.checkedNodes=[],Fn.checkedNodesPositions=[],Fn.halfCheckedKeys=Gn,jn.forEach(function(nn){var $t=(0,Be.Z)(St,nn);if($t){var mn=$t.node,Zn=$t.pos;Fn.checkedNodes.push(mn),Fn.checkedNodesPositions.push({node:mn,pos:Zn})}}),he.setUncontrolledState({checkedKeys:jn},!1,{halfCheckedKeys:Gn})}qt==null||qt(Yt,Fn)},he.onNodeLoad=function(be){var gt=be.key,Xe=new Promise(function(Te,St){he.setState(function(ln){var Lt=ln.loadedKeys,Jt=Lt===void 0?[]:Lt,Ut=ln.loadingKeys,qt=Ut===void 0?[]:Ut,bt=he.props,Yt=bt.loadData,Fn=bt.onLoad;if(!Yt||Jt.indexOf(gt)!==-1||qt.indexOf(gt)!==-1)return null;var kt=Yt(be);return kt.then(function(){var Ft=he.state.loadedKeys,In=(0,Et.L0)(Ft,gt);Fn==null||Fn(In,{event:"load",node:be}),he.setUncontrolledState({loadedKeys:In}),he.setState(function(jn){return{loadingKeys:(0,Et._5)(jn.loadingKeys,gt)}}),Te()}).catch(function(Ft){if(he.setState(function(jn){return{loadingKeys:(0,Et._5)(jn.loadingKeys,gt)}}),he.loadingRetryTimes[gt]=(he.loadingRetryTimes[gt]||0)+1,he.loadingRetryTimes[gt]>=Gt){var In=he.state.loadedKeys;(0,E.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),he.setUncontrolledState({loadedKeys:(0,Et.L0)(In,gt)}),Te()}St(Ft)}),{loadingKeys:(0,Et.L0)(qt,gt)}})});return Xe.catch(function(){}),Xe},he.onNodeMouseEnter=function(be,gt){var Xe=he.props.onMouseEnter;Xe==null||Xe({event:be,node:gt})},he.onNodeMouseLeave=function(be,gt){var Xe=he.props.onMouseLeave;Xe==null||Xe({event:be,node:gt})},he.onNodeContextMenu=function(be,gt){var Xe=he.props.onRightClick;Xe&&(be.preventDefault(),Xe({event:be,node:gt}))},he.onFocus=function(){var be=he.props.onFocus;he.setState({focused:!0});for(var gt=arguments.length,Xe=new Array(gt),Te=0;Te<gt;Te++)Xe[Te]=arguments[Te];be==null||be.apply(void 0,Xe)},he.onBlur=function(){var be=he.props.onBlur;he.setState({focused:!1}),he.onActiveChange(null);for(var gt=arguments.length,Xe=new Array(gt),Te=0;Te<gt;Te++)Xe[Te]=arguments[Te];be==null||be.apply(void 0,Xe)},he.getTreeNodeRequiredProps=function(){var be=he.state,gt=be.expandedKeys,Xe=be.selectedKeys,Te=be.loadedKeys,St=be.loadingKeys,ln=be.checkedKeys,Lt=be.halfCheckedKeys,Jt=be.dragOverNodeKey,Ut=be.dropPosition,qt=be.keyEntities;return{expandedKeys:gt||[],selectedKeys:Xe||[],loadedKeys:Te||[],loadingKeys:St||[],checkedKeys:ln||[],halfCheckedKeys:Lt||[],dragOverNodeKey:Jt,dropPosition:Ut,keyEntities:qt}},he.setExpandedKeys=function(be){var gt=he.state,Xe=gt.treeData,Te=gt.fieldNames,St=(0,Ee.oH)(Xe,be,Te);he.setUncontrolledState({expandedKeys:be,flattenNodes:St},!0)},he.onNodeExpand=function(be,gt){var Xe=he.state.expandedKeys,Te=he.state,St=Te.listChanging,ln=Te.fieldNames,Lt=he.props,Jt=Lt.onExpand,Ut=Lt.loadData,qt=gt.expanded,bt=gt[ln.key];if(!St){var Yt=Xe.indexOf(bt),Fn=!qt;if((0,E.ZP)(qt&&Yt!==-1||!qt&&Yt===-1,"Expand state not sync with index check"),Fn?Xe=(0,Et.L0)(Xe,bt):Xe=(0,Et._5)(Xe,bt),he.setExpandedKeys(Xe),Jt==null||Jt(Xe,{node:gt,expanded:Fn,nativeEvent:be.nativeEvent}),Fn&&Ut){var kt=he.onNodeLoad(gt);kt&&kt.then(function(){var Ft=(0,Ee.oH)(he.state.treeData,Xe,ln);he.setUncontrolledState({flattenNodes:Ft})}).catch(function(){var Ft=he.state.expandedKeys,In=(0,Et._5)(Ft,bt);he.setExpandedKeys(In)})}}},he.onListChangeStart=function(){he.setUncontrolledState({listChanging:!0})},he.onListChangeEnd=function(){setTimeout(function(){he.setUncontrolledState({listChanging:!1})})},he.onActiveChange=function(be){var gt=he.state.activeKey,Xe=he.props.onActiveChange;gt!==be&&(he.setState({activeKey:be}),be!==null&&he.scrollTo({key:be}),Xe==null||Xe(be))},he.getActiveItem=function(){var be=he.state,gt=be.activeKey,Xe=be.flattenNodes;return gt===null?null:Xe.find(function(Te){var St=Te.key;return St===gt})||null},he.offsetActiveKey=function(be){var gt=he.state,Xe=gt.flattenNodes,Te=gt.activeKey,St=Xe.findIndex(function(Jt){var Ut=Jt.key;return Ut===Te});St===-1&&be<0&&(St=Xe.length),St=(St+be+Xe.length)%Xe.length;var ln=Xe[St];if(ln){var Lt=ln.key;he.onActiveChange(Lt)}else he.onActiveChange(null)},he.onKeyDown=function(be){var gt=he.state,Xe=gt.activeKey,Te=gt.expandedKeys,St=gt.checkedKeys,ln=gt.fieldNames,Lt=he.props,Jt=Lt.onKeyDown,Ut=Lt.checkable,qt=Lt.selectable;switch(be.which){case Ie.Z.UP:{he.offsetActiveKey(-1),be.preventDefault();break}case Ie.Z.DOWN:{he.offsetActiveKey(1),be.preventDefault();break}}var bt=he.getActiveItem();if(bt&&bt.data){var Yt=he.getTreeNodeRequiredProps(),Fn=bt.data.isLeaf===!1||!!(bt.data[ln.children]||[]).length,kt=(0,Ee.F)((0,Fe.Z)((0,Fe.Z)({},(0,Ee.H8)(Xe,Yt)),{},{data:bt.data,active:!0}));switch(be.which){case Ie.Z.LEFT:{Fn&&Te.includes(Xe)?he.onNodeExpand({},kt):bt.parent&&he.onActiveChange(bt.parent.key),be.preventDefault();break}case Ie.Z.RIGHT:{Fn&&!Te.includes(Xe)?he.onNodeExpand({},kt):bt.children&&bt.children.length&&he.onActiveChange(bt.children[0].key),be.preventDefault();break}case Ie.Z.ENTER:case Ie.Z.SPACE:{Ut&&!kt.disabled&&kt.checkable!==!1&&!kt.disableCheckbox?he.onNodeCheck({},kt,!St.includes(Xe)):!Ut&&qt&&!kt.disabled&&kt.selectable!==!1&&he.onNodeSelect({},kt);break}}}Jt==null||Jt(be)},he.setUncontrolledState=function(be){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!he.destroyed){var Te=!1,St=!0,ln={};Object.keys(be).forEach(function(Lt){if(Lt in he.props){St=!1;return}Te=!0,ln[Lt]=be[Lt]}),Te&&(!gt||St)&&he.setState((0,Fe.Z)((0,Fe.Z)({},ln),Xe))}},he.scrollTo=function(be){he.listRef.current.scrollTo(be)},he}return(0,ue.Z)(De,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var nt=this.props.activeKey;nt!==void 0&&nt!==this.state.activeKey&&(this.setState({activeKey:nt}),nt!==null&&this.scrollTo({key:nt}))}},{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 nt,wt=this.state,Ae=wt.focused,be=wt.flattenNodes,gt=wt.keyEntities,Xe=wt.draggingNodeKey,Te=wt.activeKey,St=wt.dropLevelOffset,ln=wt.dropContainerKey,Lt=wt.dropTargetKey,Jt=wt.dropPosition,Ut=wt.dragOverNodeKey,qt=wt.indent,bt=this.props,Yt=bt.prefixCls,Fn=bt.className,kt=bt.style,Ft=bt.showLine,In=bt.focusable,jn=bt.tabIndex,Gn=jn===void 0?0:jn,na=bt.selectable,La=bt.showIcon,nn=bt.icon,$t=bt.switcherIcon,mn=bt.draggable,Zn=bt.checkable,Cn=bt.checkStrictly,Ha=bt.disabled,$a=bt.motion,aa=bt.loadData,vn=bt.filterTreeNode,ka=bt.height,vt=bt.itemHeight,cn=bt.virtual,Nn=bt.titleRender,kn=bt.dropIndicatorRender,xn=bt.onContextMenu,zn=bt.onScroll,Jn=bt.direction,ht=bt.rootClassName,yt=bt.rootStyle,pt=(0,le.Z)(this.props,{aria:!0,data:!0}),sn;return mn&&((0,Ce.Z)(mn)==="object"?sn=mn:typeof mn=="function"?sn={nodeDraggable:mn}:sn={}),a.createElement(x.k.Provider,{value:{prefixCls:Yt,selectable:na,showIcon:La,icon:nn,switcherIcon:$t,draggable:sn,draggingNodeKey:Xe,checkable:Zn,checkStrictly:Cn,disabled:Ha,keyEntities:gt,dropLevelOffset:St,dropContainerKey:ln,dropTargetKey:Lt,dropPosition:Jt,dragOverNodeKey:Ut,indent:qt,direction:Jn,dropIndicatorRender:kn,loadData:aa,filterTreeNode:vn,titleRender:Nn,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:je()(Yt,Fn,ht,(nt={},(0,se.Z)(nt,"".concat(Yt,"-show-line"),Ft),(0,se.Z)(nt,"".concat(Yt,"-focused"),Ae),(0,se.Z)(nt,"".concat(Yt,"-active-focused"),Te!==null),nt)),style:yt},a.createElement(tn,(0,b.Z)({ref:this.listRef,prefixCls:Yt,style:kt,data:be,disabled:Ha,selectable:na,checkable:!!Zn,motion:$a,dragging:Xe!==null,height:ka,itemHeight:vt,virtual:cn,focusable:In,focused:Ae,tabIndex:Gn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:xn,onScroll:zn},this.getTreeNodeRequiredProps(),pt))))}}],[{key:"getDerivedStateFromProps",value:function(nt,wt){var Ae=wt.prevProps,be={prevProps:nt};function gt(In){return!Ae&&In in nt||Ae&&Ae[In]!==nt[In]}var Xe,Te=wt.fieldNames;if(gt("fieldNames")&&(Te=(0,Ee.w$)(nt.fieldNames),be.fieldNames=Te),gt("treeData")?Xe=nt.treeData:gt("children")&&((0,E.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Xe=(0,Ee.zn)(nt.children)),Xe){be.treeData=Xe;var St=(0,Ee.I8)(Xe,{fieldNames:Te});be.keyEntities=(0,Fe.Z)((0,se.Z)({},rt,it),St.keyEntities)}var ln=be.keyEntities||wt.keyEntities;if(gt("expandedKeys")||Ae&>("autoExpandParent"))be.expandedKeys=nt.autoExpandParent||!Ae&&nt.defaultExpandParent?(0,Et.r7)(nt.expandedKeys,ln):nt.expandedKeys;else if(!Ae&&nt.defaultExpandAll){var Lt=(0,Fe.Z)({},ln);delete Lt[rt],be.expandedKeys=Object.keys(Lt).map(function(In){return Lt[In].key})}else!Ae&&nt.defaultExpandedKeys&&(be.expandedKeys=nt.autoExpandParent||nt.defaultExpandParent?(0,Et.r7)(nt.defaultExpandedKeys,ln):nt.defaultExpandedKeys);if(be.expandedKeys||delete be.expandedKeys,Xe||be.expandedKeys){var Jt=(0,Ee.oH)(Xe||wt.treeData,be.expandedKeys||wt.expandedKeys,Te);be.flattenNodes=Jt}if(nt.selectable&&(gt("selectedKeys")?be.selectedKeys=(0,Et.BT)(nt.selectedKeys,nt):!Ae&&nt.defaultSelectedKeys&&(be.selectedKeys=(0,Et.BT)(nt.defaultSelectedKeys,nt))),nt.checkable){var Ut;if(gt("checkedKeys")?Ut=(0,Et.E6)(nt.checkedKeys)||{}:!Ae&&nt.defaultCheckedKeys?Ut=(0,Et.E6)(nt.defaultCheckedKeys)||{}:Xe&&(Ut=(0,Et.E6)(nt.checkedKeys)||{checkedKeys:wt.checkedKeys,halfCheckedKeys:wt.halfCheckedKeys}),Ut){var qt=Ut,bt=qt.checkedKeys,Yt=bt===void 0?[]:bt,Fn=qt.halfCheckedKeys,kt=Fn===void 0?[]:Fn;if(!nt.checkStrictly){var Ft=(0,Vt.S)(Yt,!0,ln);Yt=Ft.checkedKeys,kt=Ft.halfCheckedKeys}be.checkedKeys=Yt,be.halfCheckedKeys=kt}}return gt("loadedKeys")&&(be.loadedKeys=nt.loadedKeys),be}}]),De}(a.Component);bn.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:y,allowDrop:function(){return!0},expandAction:!1},bn.TreeNode=ge.Z;var Bt=bn,At=Bt},35654:function(Ot,Rt,ae){"use strict";ae.d(Rt,{BT:function(){return a},E6:function(){return z},L0:function(){return _e},OM:function(){return E},_5:function(){return We},r7:function(){return te},wA:function(){return je},yx:function(){return ke}});var b=ae(94480),se=ae(76190),Ce=ae(48736),Fe=ae(59301),Oe=ae(39417),Re=ae(67841),ue=ae(71430),Ze=null;function We(re,ie){if(!re)return[];var ce=re.slice(),pe=ce.indexOf(ie);return pe>=0&&ce.splice(pe,1),ce}function _e(re,ie){var ce=(re||[]).slice();return ce.indexOf(ie)===-1&&ce.push(ie),ce}function ke(re){return re.split("-")}function je(re,ie){var ce=[],pe=(0,Re.Z)(ie,re);function ge(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ye.forEach(function(Ee){var we=Ee.key,ve=Ee.children;ce.push(we),ge(ve)})}return ge(pe.children),ce}function Ie(re){if(re.parent){var ie=ke(re.pos);return Number(ie[ie.length-1])===re.parent.children.length-1}return!1}function le(re){var ie=ke(re.pos);return Number(ie[ie.length-1])===0}function E(re,ie,ce,pe,ge,ye,Ee,we,ve,Je){var Ge,ot=re.clientX,Le=re.clientY,Ue=re.target.getBoundingClientRect(),st=Ue.top,Ke=Ue.height,rt=(Je==="rtl"?-1:1)*(((ge==null?void 0:ge.x)||0)-ot),Ht=(rt-12)/pe,it=(0,Re.Z)(we,ce.props.eventKey);if(Le<st+Ke/2){var jt=Ee.findIndex(function(At){return At.key===it.key}),Kt=jt<=0?0:jt-1,Qe=Ee[Kt].key;it=(0,Re.Z)(we,Qe)}var et=it.key,Dt=it,tn=it.key,Et=0,Vt=0;if(!ve.includes(et))for(var Be=0;Be<Ht&&Ie(it);Be+=1)it=it.parent,Vt+=1;var Gt=ie.props.data,bn=it.node,Bt=!0;return le(it)&&it.level===0&&Le<st+Ke/2&&ye({dragNode:Gt,dropNode:bn,dropPosition:-1})&&it.key===ce.props.eventKey?Et=-1:(Dt.children||[]).length&&ve.includes(tn)?ye({dragNode:Gt,dropNode:bn,dropPosition:0})?Et=0:Bt=!1:Vt===0?Ht>-1.5?ye({dragNode:Gt,dropNode:bn,dropPosition:1})?Et=1:Bt=!1:ye({dragNode:Gt,dropNode:bn,dropPosition:0})?Et=0:ye({dragNode:Gt,dropNode:bn,dropPosition:1})?Et=1:Bt=!1:ye({dragNode:Gt,dropNode:bn,dropPosition:1})?Et=1:Bt=!1,{dropPosition:Et,dropLevelOffset:Vt,dropTargetKey:it.key,dropTargetPos:it.pos,dragOverNodeKey:tn,dropContainerKey:Et===0?null:((Ge=it.parent)===null||Ge===void 0?void 0:Ge.key)||null,dropAllowed:Bt}}function a(re,ie){if(re){var ce=ie.multiple;return ce?re.slice():re.length?[re[0]]:re}}var x=function(ie){return ie};function y(re,ie){if(!re)return[];var ce=ie||{},pe=ce.processProps,ge=pe===void 0?x:pe,ye=Array.isArray(re)?re:[re];return ye.map(function(Ee){var we=Ee.children,ve=_objectWithoutProperties(Ee,Ze),Je=y(we,ie);return React.createElement(TreeNode,_extends({key:ve.key},ge(ve)),Je)})}function z(re){if(!re)return null;var ie;if(Array.isArray(re))ie={checkedKeys:re,halfCheckedKeys:void 0};else if((0,se.Z)(re)==="object")ie={checkedKeys:re.checked||void 0,halfCheckedKeys:re.halfChecked||void 0};else return(0,Ce.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return ie}function te(re,ie){var ce=new Set;function pe(ge){if(!ce.has(ge)){var ye=(0,Re.Z)(ie,ge);if(ye){ce.add(ge);var Ee=ye.parent,we=ye.node;we.disabled||Ee&&pe(Ee.key)}}}return(re||[]).forEach(function(ge){pe(ge)}),(0,b.Z)(ce)}},90782:function(Ot,Rt,ae){"use strict";ae.d(Rt,{S:function(){return ue}});var b=ae(48736),se=ae(67841);function Ce(Ze,We){var _e=new Set;return Ze.forEach(function(ke){We.has(ke)||_e.add(ke)}),_e}function Fe(Ze){var We=Ze||{},_e=We.disabled,ke=We.disableCheckbox,je=We.checkable;return!!(_e||ke)||je===!1}function Oe(Ze,We,_e,ke){for(var je=new Set(Ze),Ie=new Set,le=0;le<=_e;le+=1){var E=We.get(le)||new Set;E.forEach(function(z){var te=z.key,re=z.node,ie=z.children,ce=ie===void 0?[]:ie;je.has(te)&&!ke(re)&&ce.filter(function(pe){return!ke(pe.node)}).forEach(function(pe){je.add(pe.key)})})}for(var a=new Set,x=_e;x>=0;x-=1){var y=We.get(x)||new Set;y.forEach(function(z){var te=z.parent,re=z.node;if(!(ke(re)||!z.parent||a.has(z.parent.key))){if(ke(z.parent.node)){a.add(te.key);return}var ie=!0,ce=!1;(te.children||[]).filter(function(pe){return!ke(pe.node)}).forEach(function(pe){var ge=pe.key,ye=je.has(ge);ie&&!ye&&(ie=!1),!ce&&(ye||Ie.has(ge))&&(ce=!0)}),ie&&je.add(te.key),ce&&Ie.add(te.key),a.add(te.key)}})}return{checkedKeys:Array.from(je),halfCheckedKeys:Array.from(Ce(Ie,je))}}function Re(Ze,We,_e,ke,je){for(var Ie=new Set(Ze),le=new Set(We),E=0;E<=ke;E+=1){var a=_e.get(E)||new Set;a.forEach(function(te){var re=te.key,ie=te.node,ce=te.children,pe=ce===void 0?[]:ce;!Ie.has(re)&&!le.has(re)&&!je(ie)&&pe.filter(function(ge){return!je(ge.node)}).forEach(function(ge){Ie.delete(ge.key)})})}le=new Set;for(var x=new Set,y=ke;y>=0;y-=1){var z=_e.get(y)||new Set;z.forEach(function(te){var re=te.parent,ie=te.node;if(!(je(ie)||!te.parent||x.has(te.parent.key))){if(je(te.parent.node)){x.add(re.key);return}var ce=!0,pe=!1;(re.children||[]).filter(function(ge){return!je(ge.node)}).forEach(function(ge){var ye=ge.key,Ee=Ie.has(ye);ce&&!Ee&&(ce=!1),!pe&&(Ee||le.has(ye))&&(pe=!0)}),ce||Ie.delete(re.key),pe&&le.add(re.key),x.add(re.key)}})}return{checkedKeys:Array.from(Ie),halfCheckedKeys:Array.from(Ce(le,Ie))}}function ue(Ze,We,_e,ke){var je=[],Ie;ke?Ie=ke:Ie=Fe;var le=new Set(Ze.filter(function(y){var z=!!(0,se.Z)(_e,y);return z||je.push(y),z})),E=new Map,a=0;Object.keys(_e).forEach(function(y){var z=_e[y],te=z.level,re=E.get(te);re||(re=new Set,E.set(te,re)),re.add(z),a=Math.max(a,te)}),(0,b.ZP)(!je.length,"Tree missing follow keys: ".concat(je.slice(0,100).map(function(y){return"'".concat(y,"'")}).join(", ")));var x;return We===!0?x=Oe(le,E,a,Ie):x=Re(le,We.halfCheckedKeys,E,a,Ie),x}},67841:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return b}});function b(se,Ce){return se[Ce]}},71430:function(Ot,Rt,ae){"use strict";ae.d(Rt,{F:function(){return te},H8:function(){return z},I8:function(){return y},km:function(){return je},oH:function(){return a},w$:function(){return Ie},zn:function(){return E}});var b=ae(76190),se=ae(94480),Ce=ae(33885),Fe=ae(75931),Oe=ae(11592),Re=ae(2738),ue=ae(48736),Ze=ae(67841),We=["children"];function _e(re,ie){return"".concat(re,"-").concat(ie)}function ke(re){return re&&re.type&&re.type.isTreeNode}function je(re,ie){return re!=null?re:ie}function Ie(re){var ie=re||{},ce=ie.title,pe=ie._title,ge=ie.key,ye=ie.children,Ee=ce||"title";return{title:Ee,_title:pe||[Ee],key:ge||"key",children:ye||"children"}}function le(re,ie){var ce=new Map;function pe(ge){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ge||[]).forEach(function(Ee){var we=Ee[ie.key],ve=Ee[ie.children];warning(we!=null,"Tree node must have a certain key: [".concat(ye).concat(we,"]"));var Je=String(we);warning(!ce.has(Je)||we===null||we===void 0,"Same 'key' exist in the Tree: ".concat(Je)),ce.set(Je,!0),pe(ve,"".concat(ye).concat(Je," > "))})}pe(re)}function E(re){function ie(ce){var pe=(0,Oe.Z)(ce);return pe.map(function(ge){if(!ke(ge))return(0,ue.ZP)(!ge,"Tree/TreeNode can only accept TreeNode as children."),null;var ye=ge.key,Ee=ge.props,we=Ee.children,ve=(0,Fe.Z)(Ee,We),Je=(0,Ce.Z)({key:ye},ve),Ge=ie(we);return Ge.length&&(Je.children=Ge),Je}).filter(function(ge){return ge})}return ie(re)}function a(re,ie,ce){var pe=Ie(ce),ge=pe._title,ye=pe.key,Ee=pe.children,we=new Set(ie===!0?[]:ie),ve=[];function Je(Ge){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ge.map(function(Le,Ue){for(var st=_e(ot?ot.pos:"0",Ue),Ke=je(Le[ye],st),rt,Ht=0;Ht<ge.length;Ht+=1){var it=ge[Ht];if(Le[it]!==void 0){rt=Le[it];break}}var jt=(0,Ce.Z)((0,Ce.Z)({},(0,Re.Z)(Le,[].concat((0,se.Z)(ge),[ye,Ee]))),{},{title:rt,key:Ke,parent:ot,pos:st,children:null,data:Le,isStart:[].concat((0,se.Z)(ot?ot.isStart:[]),[Ue===0]),isEnd:[].concat((0,se.Z)(ot?ot.isEnd:[]),[Ue===Ge.length-1])});return ve.push(jt),ie===!0||we.has(Ke)?jt.children=Je(Le[Ee]||[],jt):jt.children=[],jt})}return Je(re),ve}function x(re,ie,ce){var pe={};(0,b.Z)(ce)==="object"?pe=ce:pe={externalGetKey:ce},pe=pe||{};var ge=pe,ye=ge.childrenPropName,Ee=ge.externalGetKey,we=ge.fieldNames,ve=Ie(we),Je=ve.key,Ge=ve.children,ot=ye||Ge,Le;Ee?typeof Ee=="string"?Le=function(Ke){return Ke[Ee]}:typeof Ee=="function"&&(Le=function(Ke){return Ee(Ke)}):Le=function(Ke,rt){return je(Ke[Je],rt)};function Ue(st,Ke,rt,Ht){var it=st?st[ot]:re,jt=st?_e(rt.pos,Ke):"0",Kt=st?[].concat((0,se.Z)(Ht),[st]):[];if(st){var Qe=Le(st,jt),et={node:st,index:Ke,pos:jt,key:Qe,parentPos:rt.node?rt.pos:null,level:rt.level+1,nodes:Kt};ie(et)}it&&it.forEach(function(Dt,tn){Ue(Dt,tn,{node:st,pos:jt,level:rt?rt.level+1:-1},Kt)})}Ue(null)}function y(re){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ce=ie.initWrapper,pe=ie.processEntity,ge=ie.onProcessFinished,ye=ie.externalGetKey,Ee=ie.childrenPropName,we=ie.fieldNames,ve=arguments.length>2?arguments[2]:void 0,Je=ye||ve,Ge={},ot={},Le={posEntities:Ge,keyEntities:ot};return ce&&(Le=ce(Le)||Le),x(re,function(Ue){var st=Ue.node,Ke=Ue.index,rt=Ue.pos,Ht=Ue.key,it=Ue.parentPos,jt=Ue.level,Kt=Ue.nodes,Qe={node:st,nodes:Kt,index:Ke,key:Ht,pos:rt,level:jt},et=je(Ht,rt);Ge[rt]=Qe,ot[et]=Qe,Qe.parent=Ge[it],Qe.parent&&(Qe.parent.children=Qe.parent.children||[],Qe.parent.children.push(Qe)),pe&&pe(Qe,Le)},{externalGetKey:Je,childrenPropName:Ee,fieldNames:we}),ge&&ge(Le),Le}function z(re,ie){var ce=ie.expandedKeys,pe=ie.selectedKeys,ge=ie.loadedKeys,ye=ie.loadingKeys,Ee=ie.checkedKeys,we=ie.halfCheckedKeys,ve=ie.dragOverNodeKey,Je=ie.dropPosition,Ge=ie.keyEntities,ot=(0,Ze.Z)(Ge,re),Le={eventKey:re,expanded:ce.indexOf(re)!==-1,selected:pe.indexOf(re)!==-1,loaded:ge.indexOf(re)!==-1,loading:ye.indexOf(re)!==-1,checked:Ee.indexOf(re)!==-1,halfChecked:we.indexOf(re)!==-1,pos:String(ot?ot.pos:""),dragOver:ve===re&&Je===0,dragOverGapTop:ve===re&&Je===-1,dragOverGapBottom:ve===re&&Je===1};return Le}function te(re){var ie=re.data,ce=re.expanded,pe=re.selected,ge=re.checked,ye=re.loaded,Ee=re.loading,we=re.halfChecked,ve=re.dragOver,Je=re.dragOverGapTop,Ge=re.dragOverGapBottom,ot=re.pos,Le=re.active,Ue=re.eventKey,st=(0,Ce.Z)((0,Ce.Z)({},ie),{},{expanded:ce,selected:pe,checked:ge,loaded:ye,loading:Ee,halfChecked:we,dragOver:ve,dragOverGapTop:Je,dragOverGapBottom:Ge,pos:ot,active:Le,key:Ue});return"props"in st||Object.defineProperty(st,"props",{get:function(){return(0,ue.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),re}}),st}},8224:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z:function(){return se}});var b=ae(4676);function se(Ce,Fe,Oe,Re){var ue=b.unstable_batchedUpdates?function(We){b.unstable_batchedUpdates(Oe,We)}:Oe;return Ce!=null&&Ce.addEventListener&&Ce.addEventListener(Fe,ue,Re),{remove:function(){Ce!=null&&Ce.removeEventListener&&Ce.removeEventListener(Fe,ue,Re)}}}},55468:function(Ot,Rt,ae){"use strict";ae.d(Rt,{g1:function(){return ke},os:function(){return Ie}});var b=/margin|padding|width|height|max|min|offset/,se={left:!0,top:!0},Ce={cssFloat:1,styleFloat:1,float:1};function Fe(le){return le.nodeType===1?le.ownerDocument.defaultView.getComputedStyle(le,null):{}}function Oe(le,E,a){if(E=E.toLowerCase(),a==="auto"){if(E==="height")return le.offsetHeight;if(E==="width")return le.offsetWidth}return E in se||(se[E]=b.test(E)),se[E]?parseFloat(a)||0:a}function Re(le,E){var a=arguments.length,x=Fe(le);return E=Ce[E]?"cssFloat"in le.style?"cssFloat":"styleFloat":E,a===1?x:Oe(le,E,x[E]||le.style[E])}function ue(le,E,a){var x=arguments.length;if(E=Ce[E]?"cssFloat"in le.style?"cssFloat":"styleFloat":E,x===3)return typeof a=="number"&&b.test(E)&&(a="".concat(a,"px")),le.style[E]=a,a;for(var y in E)E.hasOwnProperty(y)&&ue(le,y,E[y]);return Fe(le)}function Ze(le){return le===document.body?document.documentElement.clientWidth:le.offsetWidth}function We(le){return le===document.body?window.innerHeight||document.documentElement.clientHeight:le.offsetHeight}function _e(){var le=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),E=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:le,height:E}}function ke(){var le=document.documentElement.clientWidth,E=window.innerHeight||document.documentElement.clientHeight;return{width:le,height:E}}function je(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Ie(le){var E=le.getBoundingClientRect(),a=document.documentElement;return{left:E.left+(window.pageXOffset||a.scrollLeft)-(a.clientLeft||document.body.clientLeft||0),top:E.top+(window.pageYOffset||a.scrollTop)-(a.clientTop||document.body.clientTop||0)}}},24514:function(Ot,Rt,ae){"use strict";ae.d(Rt,{G:function(){return Fe}});var b=ae(47273),se=function(Re){if((0,b.Z)()&&window.document.documentElement){var ue=Array.isArray(Re)?Re:[Re],Ze=window.document.documentElement;return ue.some(function(We){return We in Ze.style})}return!1},Ce=function(Re,ue){if(!se(Re))return!1;var Ze=document.createElement("div"),We=Ze.style[Re];return Ze.style[Re]=ue,Ze.style[Re]!==We};function Fe(Oe,Re){return!Array.isArray(Oe)&&Re!==void 0?Ce(Oe,Re):se(Oe)}},11414:function(Ot,Rt,ae){"use strict";ae.d(Rt,{Z5:function(){return $s},_l:function(){return jd},bK:function(){return ws}});var b=ae(59301),se=ae(18773);function Ce(ee,ne){ee.prototype=Object.create(ne.prototype),ee.prototype.constructor=ee,(0,se.Z)(ee,ne)}var Fe=ae(54476),Oe=ae(59781),Re=b.createContext(null),ue=null;function Ze(ee){ee()}var We=Ze,_e=function(ne){return We=ne},ke=function(){return We};function je(){var ee=ke(),ne=null,oe=null;return{clear:function(){ne=null,oe=null},notify:function(){ee(function(){for(var Se=ne;Se;)Se.callback(),Se=Se.next})},get:function(){for(var Se=[],Pe=ne;Pe;)Se.push(Pe),Pe=Pe.next;return Se},subscribe:function(Se){var Pe=!0,xe=oe={callback:Se,next:null,prev:oe};return xe.prev?xe.prev.next=xe:ne=xe,function(){!Pe||ne===null||(Pe=!1,xe.next?xe.next.prev=xe.prev:oe=xe.prev,xe.prev?xe.prev.next=xe.next:ne=xe.next)}}}}var Ie={notify:function(){},get:function(){return[]}};function le(ee,ne){var oe,de=Ie;function Se(lt){return at(),de.subscribe(lt)}function Pe(){de.notify()}function xe(){ft.onStateChange&&ft.onStateChange()}function Ne(){return!!oe}function at(){oe||(oe=ne?ne.addNestedSub(xe):ee.subscribe(xe),de=je())}function Pt(){oe&&(oe(),oe=void 0,de.clear(),de=Ie)}var ft={addNestedSub:Se,notifyNestedSubs:Pe,handleChangeWrapper:xe,isSubscribed:Ne,trySubscribe:at,tryUnsubscribe:Pt,getListeners:function(){return de}};return ft}var E=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?b.useLayoutEffect:b.useEffect;function a(ee){var ne=ee.store,oe=ee.context,de=ee.children,Se=(0,b.useMemo)(function(){var Ne=le(ne);return{store:ne,subscription:Ne}},[ne]),Pe=(0,b.useMemo)(function(){return ne.getState()},[ne]);E(function(){var Ne=Se.subscription;return Ne.onStateChange=Ne.notifyNestedSubs,Ne.trySubscribe(),Pe!==ne.getState()&&Ne.notifyNestedSubs(),function(){Ne.tryUnsubscribe(),Ne.onStateChange=null}},[Se,Pe]);var xe=oe||Re;return b.createElement(xe.Provider,{value:Se},de)}var x=a,y=ae(85377),z=ae(94266),te=ae.n(z),re=ae(53410),ie=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],ce=["reactReduxForwardedRef"],pe=[],ge=[null,null],ye=function(ne){try{return JSON.stringify(ne)}catch(oe){return String(ne)}};function Ee(ee,ne){var oe=ee[1];return[ne.payload,oe+1]}function we(ee,ne,oe){E(function(){return ee.apply(void 0,ne)},oe)}function ve(ee,ne,oe,de,Se,Pe,xe){ee.current=de,ne.current=Se,oe.current=!1,Pe.current&&(Pe.current=null,xe())}function Je(ee,ne,oe,de,Se,Pe,xe,Ne,at,Pt){if(ee){var ft=!1,lt=null,ut=function(){if(!ft){var ma=ne.getState(),ya,Aa;try{ya=de(ma,Se.current)}catch(Ga){Aa=Ga,lt=Ga}Aa||(lt=null),ya===Pe.current?xe.current||at():(Pe.current=ya,Ne.current=ya,xe.current=!0,Pt({type:"STORE_UPDATED",payload:{error:Aa}}))}};oe.onStateChange=ut,oe.trySubscribe(),ut();var It=function(){if(ft=!0,oe.tryUnsubscribe(),oe.onStateChange=null,lt)throw lt};return It}}var Ge=function(){return[null,0]};function ot(ee,ne){ne===void 0&&(ne={});var oe=ne,de=oe.getDisplayName,Se=de===void 0?function(Hr){return"ConnectAdvanced("+Hr+")"}:de,Pe=oe.methodName,xe=Pe===void 0?"connectAdvanced":Pe,Ne=oe.renderCountProp,at=Ne===void 0?void 0:Ne,Pt=oe.shouldHandleStateChanges,ft=Pt===void 0?!0:Pt,lt=oe.storeKey,ut=lt===void 0?"store":lt,It=oe.withRef,un=It===void 0?!1:It,ma=oe.forwardRef,ya=ma===void 0?!1:ma,Aa=oe.context,Ga=Aa===void 0?Re:Aa,tr=(0,y.Z)(oe,ie);if(0)var cr;var Ur=Ga;return function(co){var ii=co.displayName||co.name||"Component",Po=Se(ii),li=(0,Fe.Z)({},tr,{getDisplayName:Se,methodName:xe,renderCountProp:at,shouldHandleStateChanges:ft,storeKey:ut,displayName:Po,wrappedComponentName:ii,WrappedComponent:co}),wi=tr.pure;function Li(Ni){return ee(Ni.dispatch,li)}var yl=wi?b.useMemo:function(Ni){return Ni()};function fl(Ni){var zl=(0,b.useMemo)(function(){var Fu=Ni.reactReduxForwardedRef,ds=(0,y.Z)(Ni,ce);return[Ni.context,Fu,ds]},[Ni]),Cl=zl[0],Bu=zl[1],Yl=zl[2],jl=(0,b.useMemo)(function(){return Cl&&Cl.Consumer&&(0,re.isContextConsumer)(b.createElement(Cl.Consumer,null))?Cl:Ur},[Cl,Ur]),xl=(0,b.useContext)(jl),$l=!!Ni.store&&!!Ni.store.getState&&!!Ni.store.dispatch,ju=!!xl&&!!xl.store,Bl=$l?Ni.store:xl.store,Au=(0,b.useMemo)(function(){return Li(Bl)},[Bl]),Hu=(0,b.useMemo)(function(){if(!ft)return ge;var Fu=le(Bl,$l?null:xl.subscription),ds=Fu.notifyNestedSubs.bind(Fu);return[Fu,ds]},[Bl,$l,xl]),mu=Hu[0],Gu=Hu[1],Wu=(0,b.useMemo)(function(){return $l?xl:(0,Fe.Z)({},xl,{subscription:mu})},[$l,xl,mu]),Ds=(0,b.useReducer)(Ee,pe,Ge),Ud=Ds[0],Ku=Ud[0],Qd=Ds[1];if(Ku&&Ku.error)throw Ku.error;var Is=(0,b.useRef)(),ls=(0,b.useRef)(Yl),Vu=(0,b.useRef)(),Os=(0,b.useRef)(!1),us=yl(function(){return Vu.current&&Yl===ls.current?Vu.current:Au(Bl.getState(),Yl)},[Bl,Ku,Yl]);we(ve,[ls,Is,Os,Yl,us,Vu,Gu]),we(Je,[ft,Bl,mu,Au,ls,Is,Os,Vu,Gu,Qd],[Bl,mu,Au]);var ss=(0,b.useMemo)(function(){return b.createElement(co,(0,Fe.Z)({},us,{ref:Bu}))},[Bu,co,us]),Jd=(0,b.useMemo)(function(){return ft?b.createElement(jl.Provider,{value:Wu},ss):ss},[jl,ss,Wu]);return Jd}var rl=wi?b.memo(fl):fl;if(rl.WrappedComponent=co,rl.displayName=fl.displayName=Po,ya){var bl=b.forwardRef(function(zl,Cl){return b.createElement(rl,(0,Fe.Z)({},zl,{reactReduxForwardedRef:Cl}))});return bl.displayName=Po,bl.WrappedComponent=co,te()(bl,co)}return te()(rl,co)}}function Le(ee,ne){return ee===ne?ee!==0||ne!==0||1/ee===1/ne:ee!==ee&&ne!==ne}function Ue(ee,ne){if(Le(ee,ne))return!0;if(typeof ee!="object"||ee===null||typeof ne!="object"||ne===null)return!1;var oe=Object.keys(ee),de=Object.keys(ne);if(oe.length!==de.length)return!1;for(var Se=0;Se<oe.length;Se++)if(!Object.prototype.hasOwnProperty.call(ne,oe[Se])||!Le(ee[oe[Se]],ne[oe[Se]]))return!1;return!0}function st(ee,ne){var oe={},de=function(xe){var Ne=ee[xe];typeof Ne=="function"&&(oe[xe]=function(){return ne(Ne.apply(void 0,arguments))})};for(var Se in ee)de(Se);return oe}function Ke(ee){return function(oe,de){var Se=ee(oe,de);function Pe(){return Se}return Pe.dependsOnOwnProps=!1,Pe}}function rt(ee){return ee.dependsOnOwnProps!==null&&ee.dependsOnOwnProps!==void 0?!!ee.dependsOnOwnProps:ee.length!==1}function Ht(ee,ne){return function(de,Se){var Pe=Se.displayName,xe=function(at,Pt){return xe.dependsOnOwnProps?xe.mapToProps(at,Pt):xe.mapToProps(at)};return xe.dependsOnOwnProps=!0,xe.mapToProps=function(at,Pt){xe.mapToProps=ee,xe.dependsOnOwnProps=rt(ee);var ft=xe(at,Pt);return typeof ft=="function"&&(xe.mapToProps=ft,xe.dependsOnOwnProps=rt(ft),ft=xe(at,Pt)),ft},xe}}function it(ee){return typeof ee=="function"?Ht(ee,"mapDispatchToProps"):void 0}function jt(ee){return ee?void 0:Ke(function(ne){return{dispatch:ne}})}function Kt(ee){return ee&&typeof ee=="object"?Ke(function(ne){return st(ee,ne)}):void 0}var Qe=[it,jt,Kt];function et(ee){return typeof ee=="function"?Ht(ee,"mapStateToProps"):void 0}function Dt(ee){return ee?void 0:Ke(function(){return{}})}var tn=[et,Dt];function Et(ee,ne,oe){return(0,Fe.Z)({},oe,ee,ne)}function Vt(ee){return function(oe,de){var Se=de.displayName,Pe=de.pure,xe=de.areMergedPropsEqual,Ne=!1,at;return function(ft,lt,ut){var It=ee(ft,lt,ut);return Ne?(!Pe||!xe(It,at))&&(at=It):(Ne=!0,at=It),at}}}function Be(ee){return typeof ee=="function"?Vt(ee):void 0}function Gt(ee){return ee?void 0:function(){return Et}}var bn=[Be,Gt],Bt=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function At(ee,ne,oe,de){return function(Pe,xe){return oe(ee(Pe,xe),ne(de,xe),xe)}}function tt(ee,ne,oe,de,Se){var Pe=Se.areStatesEqual,xe=Se.areOwnPropsEqual,Ne=Se.areStatePropsEqual,at=!1,Pt,ft,lt,ut,It;function un(tr,cr){return Pt=tr,ft=cr,lt=ee(Pt,ft),ut=ne(de,ft),It=oe(lt,ut,ft),at=!0,It}function ma(){return lt=ee(Pt,ft),ne.dependsOnOwnProps&&(ut=ne(de,ft)),It=oe(lt,ut,ft),It}function ya(){return ee.dependsOnOwnProps&&(lt=ee(Pt,ft)),ne.dependsOnOwnProps&&(ut=ne(de,ft)),It=oe(lt,ut,ft),It}function Aa(){var tr=ee(Pt,ft),cr=!Ne(tr,lt);return lt=tr,cr&&(It=oe(lt,ut,ft)),It}function Ga(tr,cr){var Ur=!xe(cr,ft),Hr=!Pe(tr,Pt,cr,ft);return Pt=tr,ft=cr,Ur&&Hr?ma():Ur?ya():Hr?Aa():It}return function(cr,Ur){return at?Ga(cr,Ur):un(cr,Ur)}}function Ve(ee,ne){var oe=ne.initMapStateToProps,de=ne.initMapDispatchToProps,Se=ne.initMergeProps,Pe=(0,y.Z)(ne,Bt),xe=oe(ee,Pe),Ne=de(ee,Pe),at=Se(ee,Pe),Pt=Pe.pure?tt:At;return Pt(xe,Ne,at,ee,Pe)}var De=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function he(ee,ne,oe){for(var de=ne.length-1;de>=0;de--){var Se=ne[de](ee);if(Se)return Se}return function(Pe,xe){throw new Error("Invalid value of type "+typeof ee+" for "+oe+" argument when connecting component "+xe.wrappedComponentName+".")}}function nt(ee,ne){return ee===ne}function wt(ee){var ne=ee===void 0?{}:ee,oe=ne.connectHOC,de=oe===void 0?ot:oe,Se=ne.mapStateToPropsFactories,Pe=Se===void 0?tn:Se,xe=ne.mapDispatchToPropsFactories,Ne=xe===void 0?Qe:xe,at=ne.mergePropsFactories,Pt=at===void 0?bn:at,ft=ne.selectorFactory,lt=ft===void 0?Ve:ft;return function(It,un,ma,ya){ya===void 0&&(ya={});var Aa=ya,Ga=Aa.pure,tr=Ga===void 0?!0:Ga,cr=Aa.areStatesEqual,Ur=cr===void 0?nt:cr,Hr=Aa.areOwnPropsEqual,co=Hr===void 0?Ue:Hr,ii=Aa.areStatePropsEqual,Po=ii===void 0?Ue:ii,li=Aa.areMergedPropsEqual,wi=li===void 0?Ue:li,Li=(0,y.Z)(Aa,De),yl=he(It,Pe,"mapStateToProps"),fl=he(un,Ne,"mapDispatchToProps"),rl=he(ma,Pt,"mergeProps");return de(lt,(0,Fe.Z)({methodName:"connect",getDisplayName:function(Ni){return"Connect("+Ni+")"},shouldHandleStateChanges:!!It,initMapStateToProps:yl,initMapDispatchToProps:fl,initMergeProps:rl,pure:tr,areStatesEqual:Ur,areOwnPropsEqual:co,areStatePropsEqual:Po,areMergedPropsEqual:wi},Li))}}var Ae=wt();function be(){var ee=useContext(ReactReduxContext);return ee}function gt(ee){ee===void 0&&(ee=ReactReduxContext);var ne=ee===ReactReduxContext?useDefaultReduxContext:function(){return useContext(ee)};return function(){var de=ne(),Se=de.store;return Se}}var Xe=null;function Te(ee){ee===void 0&&(ee=ReactReduxContext);var ne=ee===ReactReduxContext?useDefaultStore:createStoreHook(ee);return function(){var de=ne();return de.dispatch}}var St=null,ln=function(ne,oe){return ne===oe};function Lt(ee,ne,oe,de){var Se=useReducer(function(un){return un+1},0),Pe=Se[1],xe=useMemo(function(){return createSubscription(oe,de)},[oe,de]),Ne=useRef(),at=useRef(),Pt=useRef(),ft=useRef(),lt=oe.getState(),ut;try{if(ee!==at.current||lt!==Pt.current||Ne.current){var It=ee(lt);ft.current===void 0||!ne(It,ft.current)?ut=It:ut=ft.current}else ut=ft.current}catch(un){throw Ne.current&&(un.message+=`
|
|
The error may be correlated with this previous error:
|
|
`+Ne.current.stack+`
|
|
|
|
`),un}return useIsomorphicLayoutEffect(function(){at.current=ee,Pt.current=lt,ft.current=ut,Ne.current=void 0}),useIsomorphicLayoutEffect(function(){function un(){try{var ma=oe.getState();if(ma===Pt.current)return;var ya=at.current(ma);if(ne(ya,ft.current))return;ft.current=ya,Pt.current=ma}catch(Aa){Ne.current=Aa}Pe()}return xe.onStateChange=un,xe.trySubscribe(),un(),function(){return xe.tryUnsubscribe()}},[oe,xe]),ut}function Jt(ee){ee===void 0&&(ee=ReactReduxContext);var ne=ee===ReactReduxContext?useDefaultReduxContext:function(){return useContext(ee)};return function(de,Se){Se===void 0&&(Se=ln);var Pe=ne(),xe=Pe.store,Ne=Pe.subscription,at=Lt(de,Se,xe,Ne);return useDebugValue(at),at}}var Ut=null,qt=ae(4676);_e(qt.unstable_batchedUpdates);function bt(ee,ne){if(ee.length!==ne.length)return!1;for(var oe=0;oe<ee.length;oe++)if(ee[oe]!==ne[oe])return!1;return!0}function Yt(ee,ne){var oe=(0,b.useState)(function(){return{inputs:ne,result:ee()}})[0],de=(0,b.useRef)(!0),Se=(0,b.useRef)(oe),Pe=de.current||!!(ne&&Se.current.inputs&&bt(ne,Se.current.inputs)),xe=Pe?Se.current:{inputs:ne,result:ee()};return(0,b.useEffect)(function(){de.current=!1,Se.current=xe},[xe]),xe.result}function Fn(ee,ne){return Yt(function(){return ee},ne)}var kt=Yt,Ft=Fn,In=!0,jn="Invariant failed";function Gn(ee,ne){if(!ee){if(In)throw new Error(jn);var oe=typeof ne=="function"?ne():ne,de=oe?"".concat(jn,": ").concat(oe):jn;throw new Error(de)}}var na=function(ne){var oe=ne.top,de=ne.right,Se=ne.bottom,Pe=ne.left,xe=de-Pe,Ne=Se-oe,at={top:oe,right:de,bottom:Se,left:Pe,width:xe,height:Ne,x:Pe,y:oe,center:{x:(de+Pe)/2,y:(Se+oe)/2}};return at},La=function(ne,oe){return{top:ne.top-oe.top,left:ne.left-oe.left,bottom:ne.bottom+oe.bottom,right:ne.right+oe.right}},nn=function(ne,oe){return{top:ne.top+oe.top,left:ne.left+oe.left,bottom:ne.bottom-oe.bottom,right:ne.right-oe.right}},$t=function(ne,oe){return{top:ne.top+oe.y,left:ne.left+oe.x,bottom:ne.bottom+oe.y,right:ne.right+oe.x}},mn={top:0,right:0,bottom:0,left:0},Zn=function(ne){var oe=ne.borderBox,de=ne.margin,Se=de===void 0?mn:de,Pe=ne.border,xe=Pe===void 0?mn:Pe,Ne=ne.padding,at=Ne===void 0?mn:Ne,Pt=na(La(oe,Se)),ft=na(nn(oe,xe)),lt=na(nn(ft,at));return{marginBox:Pt,borderBox:na(oe),paddingBox:ft,contentBox:lt,margin:Se,border:xe,padding:at}},Cn=function(ne){var oe=ne.slice(0,-2),de=ne.slice(-2);if(de!=="px")return 0;var Se=Number(oe);return isNaN(Se)&&Gn(!1),Se},Ha=function(){return{x:window.pageXOffset,y:window.pageYOffset}},$a=function(ne,oe){var de=ne.borderBox,Se=ne.border,Pe=ne.margin,xe=ne.padding,Ne=$t(de,oe);return Zn({borderBox:Ne,border:Se,margin:Pe,padding:xe})},aa=function(ne,oe){return oe===void 0&&(oe=Ha()),$a(ne,oe)},vn=function(ne,oe){var de={top:Cn(oe.marginTop),right:Cn(oe.marginRight),bottom:Cn(oe.marginBottom),left:Cn(oe.marginLeft)},Se={top:Cn(oe.paddingTop),right:Cn(oe.paddingRight),bottom:Cn(oe.paddingBottom),left:Cn(oe.paddingLeft)},Pe={top:Cn(oe.borderTopWidth),right:Cn(oe.borderRightWidth),bottom:Cn(oe.borderBottomWidth),left:Cn(oe.borderLeftWidth)};return Zn({borderBox:ne,margin:de,padding:Se,border:Pe})},ka=function(ne){var oe=ne.getBoundingClientRect(),de=window.getComputedStyle(ne);return vn(oe,de)},vt=Number.isNaN||function(ne){return typeof ne=="number"&&ne!==ne};function cn(ee,ne){return!!(ee===ne||vt(ee)&&vt(ne))}function Nn(ee,ne){if(ee.length!==ne.length)return!1;for(var oe=0;oe<ee.length;oe++)if(!cn(ee[oe],ne[oe]))return!1;return!0}function kn(ee,ne){ne===void 0&&(ne=Nn);var oe,de=[],Se,Pe=!1;function xe(){for(var Ne=[],at=0;at<arguments.length;at++)Ne[at]=arguments[at];return Pe&&oe===this&&ne(Ne,de)||(Se=ee.apply(this,Ne),Pe=!0,oe=this,de=Ne),Se}return xe}var xn=kn,zn=function(ne){var oe=[],de=null,Se=function(){for(var xe=arguments.length,Ne=new Array(xe),at=0;at<xe;at++)Ne[at]=arguments[at];oe=Ne,!de&&(de=requestAnimationFrame(function(){de=null,ne.apply(void 0,oe)}))};return Se.cancel=function(){de&&(cancelAnimationFrame(de),de=null)},Se},Jn=zn,ht=!0,yt=/[ \t]{2,}/g,pt=/^[ \t]*/gm,sn=function(ne){return ne.replace(yt," ").replace(pt,"").trim()},En=function(ne){return sn(`
|
|
%creact-beautiful-dnd
|
|
|
|
%c`+sn(ne)+`
|
|
|
|
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
|
|
`)},gn=function(ne){return[En(ne),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},Qn="__react-beautiful-dnd-disable-dev-warnings";function _n(ee,ne){var oe;ht||typeof window!="undefined"&&window[Qn]||(oe=console)[ee].apply(oe,gn(ne))}var Hn=_n.bind(null,"warn"),Pa=_n.bind(null,"error");function Qa(){}function Sn(ee,ne){return(0,Fe.Z)({},ee,{},ne)}function ba(ee,ne,oe){var de=ne.map(function(Se){var Pe=Sn(oe,Se.options);return ee.addEventListener(Se.eventName,Se.fn,Pe),function(){ee.removeEventListener(Se.eventName,Se.fn,Pe)}});return function(){de.forEach(function(Pe){Pe()})}}var nr=!0,gr="Invariant failed";function $n(ee){this.message=ee}$n.prototype.toString=function(){return this.message};function an(ee,ne){if(!ee)throw nr?new $n(gr):new $n(gr+": "+(ne||""))}var Rr=function(ee){Ce(ne,ee);function ne(){for(var de,Se=arguments.length,Pe=new Array(Se),xe=0;xe<Se;xe++)Pe[xe]=arguments[xe];return de=ee.call.apply(ee,[this].concat(Pe))||this,de.callbacks=null,de.unbind=Qa,de.onWindowError=function(Ne){var at=de.getCallbacks();at.isDragging()&&at.tryAbort();var Pt=Ne.error;Pt instanceof $n&&Ne.preventDefault()},de.getCallbacks=function(){if(!de.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return de.callbacks},de.setCallbacks=function(Ne){de.callbacks=Ne},de}var oe=ne.prototype;return oe.componentDidMount=function(){this.unbind=ba(window,[{eventName:"error",fn:this.onWindowError}])},oe.componentWillUnmount=function(){this.unbind()},oe.componentDidCatch=function(Se){if(Se instanceof $n){this.setState({});return}throw Se},oe.render=function(){return this.props.children(this.setCallbacks)},ne}(b.Component),Ja=`
|
|
Press space bar to start a drag.
|
|
When dragging you can use the arrow keys to move the item around and escape to cancel.
|
|
Some screen readers may require you to be in focus mode or to use your pass through key
|
|
`,Fr=function(ne){return ne+1},Or=function(ne){return`
|
|
You have lifted an item in position `+Fr(ne.source.index)+`
|
|
`},Mr=function(ne,oe){var de=ne.droppableId===oe.droppableId,Se=Fr(ne.index),Pe=Fr(oe.index);return de?`
|
|
You have moved the item from position `+Se+`
|
|
to position `+Pe+`
|
|
`:`
|
|
You have moved the item from position `+Se+`
|
|
in list `+ne.droppableId+`
|
|
to list `+oe.droppableId+`
|
|
in position `+Pe+`
|
|
`},Xt=function(ne,oe,de){var Se=oe.droppableId===de.droppableId;return Se?`
|
|
The item `+ne+`
|
|
has been combined with `+de.draggableId:`
|
|
The item `+ne+`
|
|
in list `+oe.droppableId+`
|
|
has been combined with `+de.draggableId+`
|
|
in list `+de.droppableId+`
|
|
`},fn=function(ne){var oe=ne.destination;if(oe)return Mr(ne.source,oe);var de=ne.combine;return de?Xt(ne.draggableId,ne.source,de):"You are over an area that cannot be dropped on"},Pn=function(ne){return`
|
|
The item has returned to its starting position
|
|
of `+Fr(ne.index)+`
|
|
`},pa=function(ne){if(ne.reason==="CANCEL")return`
|
|
Movement cancelled.
|
|
`+Pn(ne.source)+`
|
|
`;var oe=ne.destination,de=ne.combine;return oe?`
|
|
You have dropped the item.
|
|
`+Mr(ne.source,oe)+`
|
|
`:de?`
|
|
You have dropped the item.
|
|
`+Xt(ne.draggableId,ne.source,de)+`
|
|
`:`
|
|
The item has been dropped while not over a drop area.
|
|
`+Pn(ne.source)+`
|
|
`},en={dragHandleUsageInstructions:Ja,onDragStart:Or,onDragUpdate:fn,onDragEnd:pa},za={x:0,y:0},va=function(ne,oe){return{x:ne.x+oe.x,y:ne.y+oe.y}},ja=function(ne,oe){return{x:ne.x-oe.x,y:ne.y-oe.y}},ia=function(ne,oe){return ne.x===oe.x&&ne.y===oe.y},Rn=function(ne){return{x:ne.x!==0?-ne.x:0,y:ne.y!==0?-ne.y:0}},Wn=function(ne,oe,de){var Se;return de===void 0&&(de=0),Se={},Se[ne]=oe,Se[ne==="x"?"y":"x"]=de,Se},fa=function(ne,oe){return Math.sqrt(Math.pow(oe.x-ne.x,2)+Math.pow(oe.y-ne.y,2))},qn=function(ne,oe){return Math.min.apply(Math,oe.map(function(de){return fa(ne,de)}))},Xa=function(ne){return function(oe){return{x:ne(oe.x),y:ne(oe.y)}}},xr=function(ee,ne){var oe=na({top:Math.max(ne.top,ee.top),right:Math.min(ne.right,ee.right),bottom:Math.min(ne.bottom,ee.bottom),left:Math.max(ne.left,ee.left)});return oe.width<=0||oe.height<=0?null:oe},mr=function(ne,oe){return{top:ne.top+oe.y,left:ne.left+oe.x,bottom:ne.bottom+oe.y,right:ne.right+oe.x}},hr=function(ne){return[{x:ne.left,y:ne.top},{x:ne.right,y:ne.top},{x:ne.left,y:ne.bottom},{x:ne.right,y:ne.bottom}]},Qr={top:0,right:0,bottom:0,left:0},eo=function(ne,oe){return oe?mr(ne,oe.scroll.diff.displacement):ne},Yo=function(ne,oe,de){if(de&&de.increasedBy){var Se;return(0,Fe.Z)({},ne,(Se={},Se[oe.end]=ne[oe.end]+de.increasedBy[oe.line],Se))}return ne},Ti=function(ne,oe){return oe&&oe.shouldClipSubject?xr(oe.pageMarginBox,ne):na(ne)},Eo=function(ee){var ne=ee.page,oe=ee.withPlaceholder,de=ee.axis,Se=ee.frame,Pe=eo(ne.marginBox,Se),xe=Yo(Pe,de,oe),Ne=Ti(xe,Se);return{page:ne,withPlaceholder:oe,active:Ne}},Na=function(ee,ne){ee.frame||an(!1);var oe=ee.frame,de=ja(ne,oe.scroll.initial),Se=Rn(de),Pe=(0,Fe.Z)({},oe,{scroll:{initial:oe.scroll.initial,current:ne,diff:{value:de,displacement:Se},max:oe.scroll.max}}),xe=Eo({page:ee.subject.page,withPlaceholder:ee.subject.withPlaceholder,axis:ee.axis,frame:Pe}),Ne=(0,Fe.Z)({},ee,{frame:Pe,subject:xe});return Ne};function oo(ee){return Number.isInteger?Number.isInteger(ee):typeof ee=="number"&&isFinite(ee)&&Math.floor(ee)===ee}function po(ee){return Object.values?Object.values(ee):Object.keys(ee).map(function(ne){return ee[ne]})}function Mo(ee,ne){if(ee.findIndex)return ee.findIndex(ne);for(var oe=0;oe<ee.length;oe++)if(ne(ee[oe]))return oe;return-1}function yo(ee,ne){if(ee.find)return ee.find(ne);var oe=Mo(ee,ne);if(oe!==-1)return ee[oe]}function Ao(ee){return Array.prototype.slice.call(ee)}var oi=xn(function(ee){return ee.reduce(function(ne,oe){return ne[oe.descriptor.id]=oe,ne},{})}),$o=xn(function(ee){return ee.reduce(function(ne,oe){return ne[oe.descriptor.id]=oe,ne},{})}),Ko=xn(function(ee){return po(ee)}),Ci=xn(function(ee){return po(ee)}),Qo=xn(function(ee,ne){var oe=Ci(ne).filter(function(de){return ee===de.descriptor.droppableId}).sort(function(de,Se){return de.descriptor.index-Se.descriptor.index});return oe});function bo(ee){return ee.at&&ee.at.type==="REORDER"?ee.at.destination:null}function xi(ee){return ee.at&&ee.at.type==="COMBINE"?ee.at.combine:null}var Co=xn(function(ee,ne){return ne.filter(function(oe){return oe.descriptor.id!==ee.descriptor.id})}),Mi=function(ee){var ne=ee.isMovingForward,oe=ee.draggable,de=ee.destination,Se=ee.insideDestination,Pe=ee.previousImpact;if(!de.isCombineEnabled)return null;var xe=bo(Pe);if(!xe)return null;function Ne(ma){var ya={type:"COMBINE",combine:{draggableId:ma,droppableId:de.descriptor.id}};return(0,Fe.Z)({},Pe,{at:ya})}var at=Pe.displaced.all,Pt=at.length?at[0]:null;if(ne)return Pt?Ne(Pt):null;var ft=Co(oe,Se);if(!Pt){if(!ft.length)return null;var lt=ft[ft.length-1];return Ne(lt.descriptor.id)}var ut=Mo(ft,function(ma){return ma.descriptor.id===Pt});ut===-1&&an(!1);var It=ut-1;if(It<0)return null;var un=ft[It];return Ne(un.descriptor.id)},ai=function(ee,ne){return ee.descriptor.droppableId===ne.descriptor.id},Wi={point:za,value:0},Di={invisible:{},visible:{},all:[]},_i={displaced:Di,displacedBy:Wi,at:null},qo=function(ee,ne){return function(oe){return ee<=oe&&oe<=ne}},Ki=function(ee){var ne=qo(ee.top,ee.bottom),oe=qo(ee.left,ee.right);return function(de){var Se=ne(de.top)&&ne(de.bottom)&&oe(de.left)&&oe(de.right);if(Se)return!0;var Pe=ne(de.top)||ne(de.bottom),xe=oe(de.left)||oe(de.right),Ne=Pe&&xe;if(Ne)return!0;var at=de.top<ee.top&&de.bottom>ee.bottom,Pt=de.left<ee.left&&de.right>ee.right,ft=at&&Pt;if(ft)return!0;var lt=at&&xe||Pt&&Pe;return lt}},pl=function(ee){var ne=qo(ee.top,ee.bottom),oe=qo(ee.left,ee.right);return function(de){var Se=ne(de.top)&&ne(de.bottom)&&oe(de.left)&&oe(de.right);return Se}},Xi={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Yi={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Xr=function(ee){return function(ne){var oe=qo(ne.top,ne.bottom),de=qo(ne.left,ne.right);return function(Se){return ee===Xi?oe(Se.top)&&oe(Se.bottom):de(Se.left)&&de(Se.right)}}},Ka=function(ne,oe){var de=oe.frame?oe.frame.scroll.diff.displacement:za;return mr(ne,de)},la=function(ne,oe,de){return oe.subject.active?de(oe.subject.active)(ne):!1},ca=function(ne,oe,de){return de(oe)(ne)},Fa=function(ne){var oe=ne.target,de=ne.destination,Se=ne.viewport,Pe=ne.withDroppableDisplacement,xe=ne.isVisibleThroughFrameFn,Ne=Pe?Ka(oe,de):oe;return la(Ne,de,xe)&&ca(Ne,Se,xe)},wr=function(ne){return Fa((0,Fe.Z)({},ne,{isVisibleThroughFrameFn:Ki}))},Gr=function(ne){return Fa((0,Fe.Z)({},ne,{isVisibleThroughFrameFn:pl}))},lo=function(ne){return Fa((0,Fe.Z)({},ne,{isVisibleThroughFrameFn:Xr(ne.destination.axis)}))},vo=function(ne,oe,de){if(typeof de=="boolean")return de;if(!oe)return!0;var Se=oe.invisible,Pe=oe.visible;if(Se[ne])return!1;var xe=Pe[ne];return xe?xe.shouldAnimate:!0};function Io(ee,ne){var oe=ee.page.marginBox,de={top:ne.point.y,right:0,bottom:0,left:ne.point.x};return na(La(oe,de))}function Fo(ee){var ne=ee.afterDragging,oe=ee.destination,de=ee.displacedBy,Se=ee.viewport,Pe=ee.forceShouldAnimate,xe=ee.last;return ne.reduce(function(at,Pt){var ft=Io(Pt,de),lt=Pt.descriptor.id;at.all.push(lt);var ut=wr({target:ft,destination:oe,viewport:Se,withDroppableDisplacement:!0});if(!ut)return at.invisible[Pt.descriptor.id]=!0,at;var It=vo(lt,xe,Pe),un={draggableId:lt,shouldAnimate:It};return at.visible[lt]=un,at},{all:[],visible:{},invisible:{}})}function Va(ee,ne){if(!ee.length)return 0;var oe=ee[ee.length-1].descriptor.index;return ne.inHomeList?oe:oe+1}function Ho(ee){var ne=ee.insideDestination,oe=ee.inHomeList,de=ee.displacedBy,Se=ee.destination,Pe=Va(ne,{inHomeList:oe});return{displaced:Di,displacedBy:de,at:{type:"REORDER",destination:{droppableId:Se.descriptor.id,index:Pe}}}}function Bi(ee){var ne=ee.draggable,oe=ee.insideDestination,de=ee.destination,Se=ee.viewport,Pe=ee.displacedBy,xe=ee.last,Ne=ee.index,at=ee.forceShouldAnimate,Pt=ai(ne,de);if(Ne==null)return Ho({insideDestination:oe,inHomeList:Pt,displacedBy:Pe,destination:de});var ft=yo(oe,function(ma){return ma.descriptor.index===Ne});if(!ft)return Ho({insideDestination:oe,inHomeList:Pt,displacedBy:Pe,destination:de});var lt=Co(ne,oe),ut=oe.indexOf(ft),It=lt.slice(ut),un=Fo({afterDragging:It,destination:de,displacedBy:Pe,last:xe,viewport:Se.frame,forceShouldAnimate:at});return{displaced:un,displacedBy:Pe,at:{type:"REORDER",destination:{droppableId:de.descriptor.id,index:Ne}}}}function si(ee,ne){return!!ne.effected[ee]}var ki=function(ee){var ne=ee.isMovingForward,oe=ee.destination,de=ee.draggables,Se=ee.combine,Pe=ee.afterCritical;if(!oe.isCombineEnabled)return null;var xe=Se.draggableId,Ne=de[xe],at=Ne.descriptor.index,Pt=si(xe,Pe);return Pt?ne?at:at-1:ne?at+1:at},Zi=function(ee){var ne=ee.isMovingForward,oe=ee.isInHomeList,de=ee.insideDestination,Se=ee.location;if(!de.length)return null;var Pe=Se.index,xe=ne?Pe+1:Pe-1,Ne=de[0].descriptor.index,at=de[de.length-1].descriptor.index,Pt=oe?at:at+1;return xe<Ne||xe>Pt?null:xe},zi=function(ee){var ne=ee.isMovingForward,oe=ee.isInHomeList,de=ee.draggable,Se=ee.draggables,Pe=ee.destination,xe=ee.insideDestination,Ne=ee.previousImpact,at=ee.viewport,Pt=ee.afterCritical,ft=Ne.at;if(ft||an(!1),ft.type==="REORDER"){var lt=Zi({isMovingForward:ne,isInHomeList:oe,location:ft.destination,insideDestination:xe});return lt==null?null:Bi({draggable:de,insideDestination:xe,destination:Pe,viewport:at,last:Ne.displaced,displacedBy:Ne.displacedBy,index:lt})}var ut=ki({isMovingForward:ne,destination:Pe,displaced:Ne.displaced,draggables:Se,combine:ft.combine,afterCritical:Pt});return ut==null?null:Bi({draggable:de,insideDestination:xe,destination:Pe,viewport:at,last:Ne.displaced,displacedBy:Ne.displacedBy,index:ut})},Yr=function(ee){var ne=ee.displaced,oe=ee.afterCritical,de=ee.combineWith,Se=ee.displacedBy,Pe=!!(ne.visible[de]||ne.invisible[de]);return si(de,oe)?Pe?za:Rn(Se.point):Pe?Se.point:za},_o=function(ee){var ne=ee.afterCritical,oe=ee.impact,de=ee.draggables,Se=xi(oe);Se||an(!1);var Pe=Se.draggableId,xe=de[Pe].page.borderBox.center,Ne=Yr({displaced:oe.displaced,afterCritical:ne,combineWith:Pe,displacedBy:oe.displacedBy});return va(xe,Ne)},ol=function(ne,oe){return oe.margin[ne.start]+oe.borderBox[ne.size]/2},vi=function(ne,oe){return oe.margin[ne.end]+oe.borderBox[ne.size]/2},Vi=function(ne,oe,de){return oe[ne.crossAxisStart]+de.margin[ne.crossAxisStart]+de.borderBox[ne.crossAxisSize]/2},il=function(ne){var oe=ne.axis,de=ne.moveRelativeTo,Se=ne.isMoving;return Wn(oe.line,de.marginBox[oe.end]+ol(oe,Se),Vi(oe,de.marginBox,Se))},$i=function(ne){var oe=ne.axis,de=ne.moveRelativeTo,Se=ne.isMoving;return Wn(oe.line,de.marginBox[oe.start]-vi(oe,Se),Vi(oe,de.marginBox,Se))},ko=function(ne){var oe=ne.axis,de=ne.moveInto,Se=ne.isMoving;return Wn(oe.line,de.contentBox[oe.start]+ol(oe,Se),Vi(oe,de.contentBox,Se))},qi=function(ee){var ne=ee.impact,oe=ee.draggable,de=ee.draggables,Se=ee.droppable,Pe=ee.afterCritical,xe=Qo(Se.descriptor.id,de),Ne=oe.page,at=Se.axis;if(!xe.length)return ko({axis:at,moveInto:Se.page,isMoving:Ne});var Pt=ne.displaced,ft=ne.displacedBy,lt=Pt.all[0];if(lt){var ut=de[lt];if(si(lt,Pe))return $i({axis:at,moveRelativeTo:ut.page,isMoving:Ne});var It=$a(ut.page,ft.point);return $i({axis:at,moveRelativeTo:It,isMoving:Ne})}var un=xe[xe.length-1];if(un.descriptor.id===oe.descriptor.id)return Ne.borderBox.center;if(si(un.descriptor.id,Pe)){var ma=$a(un.page,Rn(Pe.displacedBy.point));return il({axis:at,moveRelativeTo:ma,isMoving:Ne})}return il({axis:at,moveRelativeTo:un.page,isMoving:Ne})},el=function(ee,ne){var oe=ee.frame;return oe?va(ne,oe.scroll.diff.displacement):ne},ll=function(ne){var oe=ne.impact,de=ne.draggable,Se=ne.droppable,Pe=ne.draggables,xe=ne.afterCritical,Ne=de.page.borderBox.center,at=oe.at;return!Se||!at?Ne:at.type==="REORDER"?qi({impact:oe,draggable:de,draggables:Pe,droppable:Se,afterCritical:xe}):_o({impact:oe,draggables:Pe,afterCritical:xe})},ul=function(ee){var ne=ll(ee),oe=ee.droppable,de=oe?el(oe,ne):ne;return de},Rl=function(ee,ne){var oe=ja(ne,ee.scroll.initial),de=Rn(oe),Se=na({top:ne.y,bottom:ne.y+ee.frame.height,left:ne.x,right:ne.x+ee.frame.width}),Pe={frame:Se,scroll:{initial:ee.scroll.initial,max:ee.scroll.max,current:ne,diff:{value:oe,displacement:de}}};return Pe};function ql(ee,ne){return ee.map(function(oe){return ne[oe]})}function Tl(ee,ne){for(var oe=0;oe<ne.length;oe++){var de=ne[oe].visible[ee];if(de)return de}return null}var Ri=function(ee){var ne=ee.impact,oe=ee.viewport,de=ee.destination,Se=ee.draggables,Pe=ee.maxScrollChange,xe=Rl(oe,va(oe.scroll.current,Pe)),Ne=de.frame?Na(de,va(de.frame.scroll.current,Pe)):de,at=ne.displaced,Pt=Fo({afterDragging:ql(at.all,Se),destination:de,displacedBy:ne.displacedBy,viewport:xe.frame,last:at,forceShouldAnimate:!1}),ft=Fo({afterDragging:ql(at.all,Se),destination:Ne,displacedBy:ne.displacedBy,viewport:oe.frame,last:at,forceShouldAnimate:!1}),lt={},ut={},It=[at,Pt,ft];at.all.forEach(function(ma){var ya=Tl(ma,It);if(ya){ut[ma]=ya;return}lt[ma]=!0});var un=(0,Fe.Z)({},ne,{displaced:{all:at.all,invisible:lt,visible:ut}});return un},Al=function(ee,ne){return va(ee.scroll.diff.displacement,ne)},tl=function(ee){var ne=ee.pageBorderBoxCenter,oe=ee.draggable,de=ee.viewport,Se=Al(de,ne),Pe=ja(Se,oe.page.borderBox.center);return va(oe.client.borderBox.center,Pe)},Fl=function(ee){var ne=ee.draggable,oe=ee.destination,de=ee.newPageBorderBoxCenter,Se=ee.viewport,Pe=ee.withDroppableDisplacement,xe=ee.onlyOnMainAxis,Ne=xe===void 0?!1:xe,at=ja(de,ne.page.borderBox.center),Pt=mr(ne.page.borderBox,at),ft={target:Pt,destination:oe,withDroppableDisplacement:Pe,viewport:Se};return Ne?lo(ft):Gr(ft)},Hl=function(ee){var ne=ee.isMovingForward,oe=ee.draggable,de=ee.destination,Se=ee.draggables,Pe=ee.previousImpact,xe=ee.viewport,Ne=ee.previousPageBorderBoxCenter,at=ee.previousClientSelection,Pt=ee.afterCritical;if(!de.isEnabled)return null;var ft=Qo(de.descriptor.id,Se),lt=ai(oe,de),ut=Mi({isMovingForward:ne,draggable:oe,destination:de,insideDestination:ft,previousImpact:Pe})||zi({isMovingForward:ne,isInHomeList:lt,draggable:oe,draggables:Se,destination:de,insideDestination:ft,previousImpact:Pe,viewport:xe,afterCritical:Pt});if(!ut)return null;var It=ul({impact:ut,draggable:oe,droppable:de,draggables:Se,afterCritical:Pt}),un=Fl({draggable:oe,destination:de,newPageBorderBoxCenter:It,viewport:xe.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(un){var ma=tl({pageBorderBoxCenter:It,draggable:oe,viewport:xe});return{clientSelection:ma,impact:ut,scrollJumpRequest:null}}var ya=ja(It,Ne),Aa=Ri({impact:ut,viewport:xe,destination:de,draggables:Se,maxScrollChange:ya});return{clientSelection:at,impact:Aa,scrollJumpRequest:ya}},dt=function(ne){var oe=ne.subject.active;return oe||an(!1),oe},mt=function(ee){var ne=ee.isMovingForward,oe=ee.pageBorderBoxCenter,de=ee.source,Se=ee.droppables,Pe=ee.viewport,xe=de.subject.active;if(!xe)return null;var Ne=de.axis,at=qo(xe[Ne.start],xe[Ne.end]),Pt=Ko(Se).filter(function(lt){return lt!==de}).filter(function(lt){return lt.isEnabled}).filter(function(lt){return!!lt.subject.active}).filter(function(lt){return Ki(Pe.frame)(dt(lt))}).filter(function(lt){var ut=dt(lt);return ne?xe[Ne.crossAxisEnd]<ut[Ne.crossAxisEnd]:ut[Ne.crossAxisStart]<xe[Ne.crossAxisStart]}).filter(function(lt){var ut=dt(lt),It=qo(ut[Ne.start],ut[Ne.end]);return at(ut[Ne.start])||at(ut[Ne.end])||It(xe[Ne.start])||It(xe[Ne.end])}).sort(function(lt,ut){var It=dt(lt)[Ne.crossAxisStart],un=dt(ut)[Ne.crossAxisStart];return ne?It-un:un-It}).filter(function(lt,ut,It){return dt(lt)[Ne.crossAxisStart]===dt(It[0])[Ne.crossAxisStart]});if(!Pt.length)return null;if(Pt.length===1)return Pt[0];var ft=Pt.filter(function(lt){var ut=qo(dt(lt)[Ne.start],dt(lt)[Ne.end]);return ut(oe[Ne.line])});return ft.length===1?ft[0]:ft.length>1?ft.sort(function(lt,ut){return dt(lt)[Ne.start]-dt(ut)[Ne.start]})[0]:Pt.sort(function(lt,ut){var It=qn(oe,hr(dt(lt))),un=qn(oe,hr(dt(ut)));return It!==un?It-un:dt(lt)[Ne.start]-dt(ut)[Ne.start]})[0]},Zt=function(ne,oe){var de=ne.page.borderBox.center;return si(ne.descriptor.id,oe)?ja(de,oe.displacedBy.point):de},Bn=function(ne,oe){var de=ne.page.borderBox;return si(ne.descriptor.id,oe)?mr(de,Rn(oe.displacedBy.point)):de},An=function(ee){var ne=ee.pageBorderBoxCenter,oe=ee.viewport,de=ee.destination,Se=ee.insideDestination,Pe=ee.afterCritical,xe=Se.filter(function(Ne){return Gr({target:Bn(Ne,Pe),destination:de,viewport:oe.frame,withDroppableDisplacement:!0})}).sort(function(Ne,at){var Pt=fa(ne,el(de,Zt(Ne,Pe))),ft=fa(ne,el(de,Zt(at,Pe)));return Pt<ft?-1:ft<Pt?1:Ne.descriptor.index-at.descriptor.index});return xe[0]||null},hn=xn(function(ne,oe){var de=oe[ne.line];return{value:de,point:Wn(ne.line,de)}}),pn=function(ne,oe,de){var Se=ne.axis;if(ne.descriptor.mode==="virtual")return Wn(Se.line,oe[Se.line]);var Pe=ne.subject.page.contentBox[Se.size],xe=Qo(ne.descriptor.id,de),Ne=xe.reduce(function(ft,lt){return ft+lt.client.marginBox[Se.size]},0),at=Ne+oe[Se.line],Pt=at-Pe;return Pt<=0?null:Wn(Se.line,Pt)},_t=function(ne,oe){return(0,Fe.Z)({},ne,{scroll:(0,Fe.Z)({},ne.scroll,{max:oe})})},on=function(ne,oe,de){var Se=ne.frame;ai(oe,ne)&&an(!1),ne.subject.withPlaceholder&&an(!1);var Pe=hn(ne.axis,oe.displaceBy).point,xe=pn(ne,Pe,de),Ne={placeholderSize:Pe,increasedBy:xe,oldFrameMaxScroll:ne.frame?ne.frame.scroll.max:null};if(!Se){var at=Eo({page:ne.subject.page,withPlaceholder:Ne,axis:ne.axis,frame:ne.frame});return(0,Fe.Z)({},ne,{subject:at})}var Pt=xe?va(Se.scroll.max,xe):Se.scroll.max,ft=_t(Se,Pt),lt=Eo({page:ne.subject.page,withPlaceholder:Ne,axis:ne.axis,frame:ft});return(0,Fe.Z)({},ne,{subject:lt,frame:ft})},Tn=function(ne){var oe=ne.subject.withPlaceholder;oe||an(!1);var de=ne.frame;if(!de){var Se=Eo({page:ne.subject.page,axis:ne.axis,frame:null,withPlaceholder:null});return(0,Fe.Z)({},ne,{subject:Se})}var Pe=oe.oldFrameMaxScroll;Pe||an(!1);var xe=_t(de,Pe),Ne=Eo({page:ne.subject.page,axis:ne.axis,frame:xe,withPlaceholder:null});return(0,Fe.Z)({},ne,{subject:Ne,frame:xe})},ga=function(ee){var ne=ee.previousPageBorderBoxCenter,oe=ee.moveRelativeTo,de=ee.insideDestination,Se=ee.draggable,Pe=ee.draggables,xe=ee.destination,Ne=ee.viewport,at=ee.afterCritical;if(!oe){if(de.length)return null;var Pt={displaced:Di,displacedBy:Wi,at:{type:"REORDER",destination:{droppableId:xe.descriptor.id,index:0}}},ft=ul({impact:Pt,draggable:Se,droppable:xe,draggables:Pe,afterCritical:at}),lt=ai(Se,xe)?xe:on(xe,Se,Pe),ut=Fl({draggable:Se,destination:lt,newPageBorderBoxCenter:ft,viewport:Ne.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return ut?Pt:null}var It=ne[xe.axis.line]<=oe.page.borderBox.center[xe.axis.line],un=function(){var ya=oe.descriptor.index;return oe.descriptor.id===Se.descriptor.id||It?ya:ya+1}(),ma=hn(xe.axis,Se.displaceBy);return Bi({draggable:Se,insideDestination:de,destination:xe,viewport:Ne,displacedBy:ma,last:Di,index:un})},pr=function(ee){var ne=ee.isMovingForward,oe=ee.previousPageBorderBoxCenter,de=ee.draggable,Se=ee.isOver,Pe=ee.draggables,xe=ee.droppables,Ne=ee.viewport,at=ee.afterCritical,Pt=mt({isMovingForward:ne,pageBorderBoxCenter:oe,source:Se,droppables:xe,viewport:Ne});if(!Pt)return null;var ft=Qo(Pt.descriptor.id,Pe),lt=An({pageBorderBoxCenter:oe,viewport:Ne,destination:Pt,insideDestination:ft,afterCritical:at}),ut=ga({previousPageBorderBoxCenter:oe,destination:Pt,draggable:de,draggables:Pe,moveRelativeTo:lt,insideDestination:ft,viewport:Ne,afterCritical:at});if(!ut)return null;var It=ul({impact:ut,draggable:de,droppable:Pt,draggables:Pe,afterCritical:at}),un=tl({pageBorderBoxCenter:It,draggable:de,viewport:Ne});return{clientSelection:un,impact:ut,scrollJumpRequest:null}},ar=function(ee){var ne=ee.at;return ne?ne.type==="REORDER"?ne.destination.droppableId:ne.combine.droppableId:null},uo=function(ne,oe){var de=ar(ne);return de?oe[de]:null},_r=function(ee){var ne=ee.state,oe=ee.type,de=uo(ne.impact,ne.dimensions.droppables),Se=!!de,Pe=ne.dimensions.droppables[ne.critical.droppable.id],xe=de||Pe,Ne=xe.axis.direction,at=Ne==="vertical"&&(oe==="MOVE_UP"||oe==="MOVE_DOWN")||Ne==="horizontal"&&(oe==="MOVE_LEFT"||oe==="MOVE_RIGHT");if(at&&!Se)return null;var Pt=oe==="MOVE_DOWN"||oe==="MOVE_RIGHT",ft=ne.dimensions.draggables[ne.critical.draggable.id],lt=ne.current.page.borderBoxCenter,ut=ne.dimensions,It=ut.draggables,un=ut.droppables;return at?Hl({isMovingForward:Pt,previousPageBorderBoxCenter:lt,draggable:ft,destination:xe,draggables:It,viewport:ne.viewport,previousClientSelection:ne.current.client.selection,previousImpact:ne.impact,afterCritical:ne.afterCritical}):pr({isMovingForward:Pt,previousPageBorderBoxCenter:lt,draggable:ft,isOver:xe,draggables:It,droppables:un,viewport:ne.viewport,afterCritical:ne.afterCritical})};function _a(ee){return ee.phase==="DRAGGING"||ee.phase==="COLLECTING"}function Ea(ee){var ne=qo(ee.top,ee.bottom),oe=qo(ee.left,ee.right);return function(Se){return ne(Se.y)&&oe(Se.x)}}function Xn(ee,ne){return ee.left<ne.right&&ee.right>ne.left&&ee.top<ne.bottom&&ee.bottom>ne.top}function Pr(ee){var ne=ee.pageBorderBox,oe=ee.draggable,de=ee.candidates,Se=oe.page.borderBox.center,Pe=de.map(function(xe){var Ne=xe.axis,at=Wn(xe.axis.line,ne.center[Ne.line],xe.page.borderBox.center[Ne.crossAxisLine]);return{id:xe.descriptor.id,distance:fa(Se,at)}}).sort(function(xe,Ne){return Ne.distance-xe.distance});return Pe[0]?Pe[0].id:null}function Cr(ee){var ne=ee.pageBorderBox,oe=ee.draggable,de=ee.droppables,Se=Ko(de).filter(function(Pe){if(!Pe.isEnabled)return!1;var xe=Pe.subject.active;if(!xe||!Xn(ne,xe))return!1;if(Ea(xe)(ne.center))return!0;var Ne=Pe.axis,at=xe.center[Ne.crossAxisLine],Pt=ne[Ne.crossAxisStart],ft=ne[Ne.crossAxisEnd],lt=qo(xe[Ne.crossAxisStart],xe[Ne.crossAxisEnd]),ut=lt(Pt),It=lt(ft);return!ut&&!It?!0:ut?Pt<at:ft>at});return Se.length?Se.length===1?Se[0].descriptor.id:Pr({pageBorderBox:ne,draggable:oe,candidates:Se}):null}var Tr=function(ne,oe){return na(mr(ne,oe))},to=function(ee,ne){var oe=ee.frame;return oe?Tr(ne,oe.scroll.diff.value):ne};function Er(ee){var ne=ee.displaced,oe=ee.id;return!!(ne.visible[oe]||ne.invisible[oe])}function Wr(ee){var ne=ee.draggable,oe=ee.closest,de=ee.inHomeList;return oe?de&&oe.descriptor.index>ne.descriptor.index?oe.descriptor.index-1:oe.descriptor.index:null}var yr=function(ee){var ne=ee.pageBorderBoxWithDroppableScroll,oe=ee.draggable,de=ee.destination,Se=ee.insideDestination,Pe=ee.last,xe=ee.viewport,Ne=ee.afterCritical,at=de.axis,Pt=hn(de.axis,oe.displaceBy),ft=Pt.value,lt=ne[at.start],ut=ne[at.end],It=Co(oe,Se),un=yo(It,function(ya){var Aa=ya.descriptor.id,Ga=ya.page.borderBox.center[at.line],tr=si(Aa,Ne),cr=Er({displaced:Pe,id:Aa});return tr?cr?ut<=Ga:lt<Ga-ft:cr?ut<=Ga+ft:lt<Ga}),ma=Wr({draggable:oe,closest:un,inHomeList:ai(oe,de)});return Bi({draggable:oe,insideDestination:Se,destination:de,viewport:xe,last:Pe,displacedBy:Pt,index:ma})},Da=4,Lr=function(ee){var ne=ee.draggable,oe=ee.pageBorderBoxWithDroppableScroll,de=ee.previousImpact,Se=ee.destination,Pe=ee.insideDestination,xe=ee.afterCritical;if(!Se.isCombineEnabled)return null;var Ne=Se.axis,at=hn(Se.axis,ne.displaceBy),Pt=at.value,ft=oe[Ne.start],lt=oe[Ne.end],ut=Co(ne,Pe),It=yo(ut,function(ma){var ya=ma.descriptor.id,Aa=ma.page.borderBox,Ga=Aa[Ne.size],tr=Ga/Da,cr=si(ya,xe),Ur=Er({displaced:de.displaced,id:ya});return cr?Ur?lt>Aa[Ne.start]+tr&<<Aa[Ne.end]-tr:ft>Aa[Ne.start]-Pt+tr&&ft<Aa[Ne.end]-Pt-tr:Ur?lt>Aa[Ne.start]+Pt+tr&<<Aa[Ne.end]+Pt-tr:ft>Aa[Ne.start]+tr&&ft<Aa[Ne.end]-tr});if(!It)return null;var un={displacedBy:at,displaced:de.displaced,at:{type:"COMBINE",combine:{draggableId:It.descriptor.id,droppableId:Se.descriptor.id}}};return un},$r=function(ee){var ne=ee.pageOffset,oe=ee.draggable,de=ee.draggables,Se=ee.droppables,Pe=ee.previousImpact,xe=ee.viewport,Ne=ee.afterCritical,at=Tr(oe.page.borderBox,ne),Pt=Cr({pageBorderBox:at,draggable:oe,droppables:Se});if(!Pt)return _i;var ft=Se[Pt],lt=Qo(ft.descriptor.id,de),ut=to(ft,at);return Lr({pageBorderBoxWithDroppableScroll:ut,draggable:oe,previousImpact:Pe,destination:ft,insideDestination:lt,afterCritical:Ne})||yr({pageBorderBoxWithDroppableScroll:ut,draggable:oe,destination:ft,insideDestination:lt,last:Pe.displaced,viewport:xe,afterCritical:Ne})},xo=function(ee,ne){var oe;return(0,Fe.Z)({},ee,(oe={},oe[ne.descriptor.id]=ne,oe))},ri=function(ne){var oe=ne.previousImpact,de=ne.impact,Se=ne.droppables,Pe=ar(oe),xe=ar(de);if(!Pe||Pe===xe)return Se;var Ne=Se[Pe];if(!Ne.subject.withPlaceholder)return Se;var at=Tn(Ne);return xo(Se,at)},ji=function(ee){var ne=ee.draggable,oe=ee.draggables,de=ee.droppables,Se=ee.previousImpact,Pe=ee.impact,xe=ri({previousImpact:Se,impact:Pe,droppables:de}),Ne=ar(Pe);if(!Ne)return xe;var at=de[Ne];if(ai(ne,at)||at.subject.withPlaceholder)return xe;var Pt=on(at,ne,oe);return xo(xe,Pt)},ze=function(ee){var ne=ee.state,oe=ee.clientSelection,de=ee.dimensions,Se=ee.viewport,Pe=ee.impact,xe=ee.scrollJumpRequest,Ne=Se||ne.viewport,at=de||ne.dimensions,Pt=oe||ne.current.client.selection,ft=ja(Pt,ne.initial.client.selection),lt={offset:ft,selection:Pt,borderBoxCenter:va(ne.initial.client.borderBoxCenter,ft)},ut={selection:va(lt.selection,Ne.scroll.current),borderBoxCenter:va(lt.borderBoxCenter,Ne.scroll.current),offset:va(lt.offset,Ne.scroll.diff.value)},It={client:lt,page:ut};if(ne.phase==="COLLECTING")return(0,Fe.Z)({phase:"COLLECTING"},ne,{dimensions:at,viewport:Ne,current:It});var un=at.draggables[ne.critical.draggable.id],ma=Pe||$r({pageOffset:ut.offset,draggable:un,draggables:at.draggables,droppables:at.droppables,previousImpact:ne.impact,viewport:Ne,afterCritical:ne.afterCritical}),ya=ji({draggable:un,impact:ma,previousImpact:ne.impact,draggables:at.draggables,droppables:at.droppables}),Aa=(0,Fe.Z)({},ne,{current:It,dimensions:{draggables:at.draggables,droppables:ya},impact:ma,viewport:Ne,scrollJumpRequest:xe||null,forceShouldAnimate:xe?!1:null});return Aa};function qe(ee,ne){return ee.map(function(oe){return ne[oe]})}var ct=function(ee){var ne=ee.impact,oe=ee.viewport,de=ee.draggables,Se=ee.destination,Pe=ee.forceShouldAnimate,xe=ne.displaced,Ne=qe(xe.all,de),at=Fo({afterDragging:Ne,destination:Se,displacedBy:ne.displacedBy,viewport:oe.frame,forceShouldAnimate:Pe,last:xe});return(0,Fe.Z)({},ne,{displaced:at})},Ct=function(ee){var ne=ee.impact,oe=ee.draggable,de=ee.droppable,Se=ee.draggables,Pe=ee.viewport,xe=ee.afterCritical,Ne=ul({impact:ne,draggable:oe,draggables:Se,droppable:de,afterCritical:xe});return tl({pageBorderBoxCenter:Ne,draggable:oe,viewport:Pe})},dn=function(ee){var ne=ee.state,oe=ee.dimensions,de=ee.viewport;ne.movementMode!=="SNAP"&&an(!1);var Se=ne.impact,Pe=de||ne.viewport,xe=oe||ne.dimensions,Ne=xe.draggables,at=xe.droppables,Pt=Ne[ne.critical.draggable.id],ft=ar(Se);ft||an(!1);var lt=at[ft],ut=ct({impact:Se,viewport:Pe,destination:lt,draggables:Ne}),It=Ct({impact:ut,draggable:Pt,droppable:lt,draggables:Ne,viewport:Pe,afterCritical:ne.afterCritical});return ze({impact:ut,clientSelection:It,state:ne,dimensions:xe,viewport:Pe})},Dn=function(ee){return{index:ee.index,droppableId:ee.droppableId}},ta=function(ee){var ne=ee.draggable,oe=ee.home,de=ee.draggables,Se=ee.viewport,Pe=hn(oe.axis,ne.displaceBy),xe=Qo(oe.descriptor.id,de),Ne=xe.indexOf(ne);Ne===-1&&an(!1);var at=xe.slice(Ne+1),Pt=at.reduce(function(It,un){return It[un.descriptor.id]=!0,It},{}),ft={inVirtualList:oe.descriptor.mode==="virtual",displacedBy:Pe,effected:Pt},lt=Fo({afterDragging:at,destination:oe,displacedBy:Pe,last:null,viewport:Se.frame,forceShouldAnimate:!1}),ut={displaced:lt,displacedBy:Pe,at:{type:"REORDER",destination:Dn(ne.descriptor)}};return{impact:ut,afterCritical:ft}},Un=function(ee,ne){return{draggables:ee.draggables,droppables:xo(ee.droppables,ne)}},Mn=function(ne){},rn=function(ne){},Vn=function(ee){var ne=ee.draggable,oe=ee.offset,de=ee.initialWindowScroll,Se=$a(ne.client,oe),Pe=aa(Se,de),xe=(0,Fe.Z)({},ne,{placeholder:(0,Fe.Z)({},ne.placeholder,{client:Se}),client:Se,page:Pe});return xe},Sa=function(ee){var ne=ee.frame;return ne||an(!1),ne},lr=function(ee){var ne=ee.additions,oe=ee.updatedDroppables,de=ee.viewport,Se=de.scroll.diff.value;return ne.map(function(Pe){var xe=Pe.descriptor.droppableId,Ne=oe[xe],at=Sa(Ne),Pt=at.scroll.diff.value,ft=va(Se,Pt),lt=Vn({draggable:Pe,offset:ft,initialWindowScroll:de.scroll.initial});return lt})},or=function(ee){var ne=ee.state,oe=ee.published;Mn();var de=oe.modified.map(function(tr){var cr=ne.dimensions.droppables[tr.droppableId],Ur=Na(cr,tr.scroll);return Ur}),Se=(0,Fe.Z)({},ne.dimensions.droppables,{},oi(de)),Pe=$o(lr({additions:oe.additions,updatedDroppables:Se,viewport:ne.viewport})),xe=(0,Fe.Z)({},ne.dimensions.draggables,{},Pe);oe.removals.forEach(function(tr){delete xe[tr]});var Ne={droppables:Se,draggables:xe},at=ar(ne.impact),Pt=at?Ne.droppables[at]:null,ft=Ne.draggables[ne.critical.draggable.id],lt=Ne.droppables[ne.critical.droppable.id],ut=ta({draggable:ft,home:lt,draggables:xe,viewport:ne.viewport}),It=ut.impact,un=ut.afterCritical,ma=Pt&&Pt.isCombineEnabled?ne.impact:It,ya=$r({pageOffset:ne.current.page.offset,draggable:Ne.draggables[ne.critical.draggable.id],draggables:Ne.draggables,droppables:Ne.droppables,previousImpact:ma,viewport:ne.viewport,afterCritical:un});rn();var Aa=(0,Fe.Z)({phase:"DRAGGING"},ne,{phase:"DRAGGING",impact:ya,onLiftImpact:It,dimensions:Ne,afterCritical:un,forceShouldAnimate:!1});if(ne.phase==="COLLECTING")return Aa;var Ga=(0,Fe.Z)({phase:"DROP_PENDING"},Aa,{phase:"DROP_PENDING",reason:ne.reason,isWaiting:!1});return Ga},ea=function(ne){return ne.movementMode==="SNAP"},Yn=function(ne,oe,de){var Se=Un(ne.dimensions,oe);return!ea(ne)||de?ze({state:ne,dimensions:Se}):dn({state:ne,dimensions:Se})};function On(ee){return ee.isDragging&&ee.movementMode==="SNAP"?(0,Fe.Z)({phase:"DRAGGING"},ee,{scrollJumpRequest:null}):ee}var Kn={phase:"IDLE",completed:null,shouldFlush:!1},Ra=function(ee,ne){if(ee===void 0&&(ee=Kn),ne.type==="FLUSH")return(0,Fe.Z)({},Kn,{shouldFlush:!0});if(ne.type==="INITIAL_PUBLISH"){ee.phase!=="IDLE"&&an(!1);var oe=ne.payload,de=oe.critical,Se=oe.clientSelection,Pe=oe.viewport,xe=oe.dimensions,Ne=oe.movementMode,at=xe.draggables[de.draggable.id],Pt=xe.droppables[de.droppable.id],ft={selection:Se,borderBoxCenter:at.client.borderBox.center,offset:za},lt={client:ft,page:{selection:va(ft.selection,Pe.scroll.initial),borderBoxCenter:va(ft.selection,Pe.scroll.initial),offset:va(ft.selection,Pe.scroll.diff.value)}},ut=Ko(xe.droppables).every(function(Wu){return!Wu.isFixedOnPage}),It=ta({draggable:at,home:Pt,draggables:xe.draggables,viewport:Pe}),un=It.impact,ma=It.afterCritical,ya={phase:"DRAGGING",isDragging:!0,critical:de,movementMode:Ne,dimensions:xe,initial:lt,current:lt,isWindowScrollAllowed:ut,impact:un,afterCritical:ma,onLiftImpact:un,viewport:Pe,scrollJumpRequest:null,forceShouldAnimate:null};return ya}if(ne.type==="COLLECTION_STARTING"){if(ee.phase==="COLLECTING"||ee.phase==="DROP_PENDING")return ee;ee.phase!=="DRAGGING"&&an(!1);var Aa=(0,Fe.Z)({phase:"COLLECTING"},ee,{phase:"COLLECTING"});return Aa}if(ne.type==="PUBLISH_WHILE_DRAGGING")return ee.phase==="COLLECTING"||ee.phase==="DROP_PENDING"||an(!1),or({state:ee,published:ne.payload});if(ne.type==="MOVE"){if(ee.phase==="DROP_PENDING")return ee;_a(ee)||an(!1);var Ga=ne.payload.client;return ia(Ga,ee.current.client.selection)?ee:ze({state:ee,clientSelection:Ga,impact:ea(ee)?ee.impact:null})}if(ne.type==="UPDATE_DROPPABLE_SCROLL"){if(ee.phase==="DROP_PENDING"||ee.phase==="COLLECTING")return On(ee);_a(ee)||an(!1);var tr=ne.payload,cr=tr.id,Ur=tr.newScroll,Hr=ee.dimensions.droppables[cr];if(!Hr)return ee;var co=Na(Hr,Ur);return Yn(ee,co,!1)}if(ne.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(ee.phase==="DROP_PENDING")return ee;_a(ee)||an(!1);var ii=ne.payload,Po=ii.id,li=ii.isEnabled,wi=ee.dimensions.droppables[Po];wi||an(!1),wi.isEnabled===li&&an(!1);var Li=(0,Fe.Z)({},wi,{isEnabled:li});return Yn(ee,Li,!0)}if(ne.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(ee.phase==="DROP_PENDING")return ee;_a(ee)||an(!1);var yl=ne.payload,fl=yl.id,rl=yl.isCombineEnabled,bl=ee.dimensions.droppables[fl];bl||an(!1),bl.isCombineEnabled===rl&&an(!1);var Ni=(0,Fe.Z)({},bl,{isCombineEnabled:rl});return Yn(ee,Ni,!0)}if(ne.type==="MOVE_BY_WINDOW_SCROLL"){if(ee.phase==="DROP_PENDING"||ee.phase==="DROP_ANIMATING")return ee;_a(ee)||an(!1),ee.isWindowScrollAllowed||an(!1);var zl=ne.payload.newScroll;if(ia(ee.viewport.scroll.current,zl))return On(ee);var Cl=Rl(ee.viewport,zl);return ea(ee)?dn({state:ee,viewport:Cl}):ze({state:ee,viewport:Cl})}if(ne.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!_a(ee))return ee;var Bu=ne.payload.maxScroll;if(ia(Bu,ee.viewport.scroll.max))return ee;var Yl=(0,Fe.Z)({},ee.viewport,{scroll:(0,Fe.Z)({},ee.viewport.scroll,{max:Bu})});return(0,Fe.Z)({phase:"DRAGGING"},ee,{viewport:Yl})}if(ne.type==="MOVE_UP"||ne.type==="MOVE_DOWN"||ne.type==="MOVE_LEFT"||ne.type==="MOVE_RIGHT"){if(ee.phase==="COLLECTING"||ee.phase==="DROP_PENDING")return ee;ee.phase!=="DRAGGING"&&an(!1);var jl=_r({state:ee,type:ne.type});return jl?ze({state:ee,impact:jl.impact,clientSelection:jl.clientSelection,scrollJumpRequest:jl.scrollJumpRequest}):ee}if(ne.type==="DROP_PENDING"){var xl=ne.payload.reason;ee.phase!=="COLLECTING"&&an(!1);var $l=(0,Fe.Z)({phase:"DROP_PENDING"},ee,{phase:"DROP_PENDING",isWaiting:!0,reason:xl});return $l}if(ne.type==="DROP_ANIMATE"){var ju=ne.payload,Bl=ju.completed,Au=ju.dropDuration,Hu=ju.newHomeClientOffset;ee.phase==="DRAGGING"||ee.phase==="DROP_PENDING"||an(!1);var mu={phase:"DROP_ANIMATING",completed:Bl,dropDuration:Au,newHomeClientOffset:Hu,dimensions:ee.dimensions};return mu}if(ne.type==="DROP_COMPLETE"){var Gu=ne.payload.completed;return{phase:"IDLE",completed:Gu,shouldFlush:!1}}return ee},fr=function(ne){return{type:"BEFORE_INITIAL_CAPTURE",payload:ne}},Ia=function(ne){return{type:"LIFT",payload:ne}},ua=function(ne){return{type:"INITIAL_PUBLISH",payload:ne}},Ca=function(ne){return{type:"PUBLISH_WHILE_DRAGGING",payload:ne}},sa=function(){return{type:"COLLECTION_STARTING",payload:null}},xa=function(ne){return{type:"UPDATE_DROPPABLE_SCROLL",payload:ne}},zr=function(ne){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:ne}},mo=function(ne){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:ne}},wo=function(ne){return{type:"MOVE",payload:ne}},ei=function(ne){return{type:"MOVE_BY_WINDOW_SCROLL",payload:ne}},ur=function(ne){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:ne}},mi=function(){return{type:"MOVE_UP",payload:null}},fi=function(){return{type:"MOVE_DOWN",payload:null}},jr=function(){return{type:"MOVE_RIGHT",payload:null}},Bo=function(){return{type:"MOVE_LEFT",payload:null}},ho=function(){return{type:"FLUSH",payload:null}},Oo=function(ne){return{type:"DROP_ANIMATE",payload:ne}},ui=function(ne){return{type:"DROP_COMPLETE",payload:ne}},gl=function(ne){return{type:"DROP",payload:ne}},Ml=function(ne){return{type:"DROP_PENDING",payload:ne}},wl=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function Gl(ee){if(!(ee.length<=1)){for(var ne=ee.map(function(Ne){return Ne.descriptor.index}),oe={},de=1;de<ne.length;de++){var Se=ne[de],Pe=ne[de-1];Se!==Pe+1&&(oe[Se]=!0)}if(Object.keys(oe).length)var xe=ne.map(function(Ne){var at=!!oe[Ne];return at?"[\u{1F525}"+Ne+"]":""+Ne}).join(", ")}}function _l(ee,ne){if(0)var oe}var Wl=function(ee){return function(ne){var oe=ne.getState,de=ne.dispatch;return function(Se){return function(Pe){if(Pe.type!=="LIFT"){Se(Pe);return}var xe=Pe.payload,Ne=xe.id,at=xe.clientSelection,Pt=xe.movementMode,ft=oe();ft.phase==="DROP_ANIMATING"&&de(ui({completed:ft.completed})),oe().phase!=="IDLE"&&an(!1),de(ho()),de(fr({draggableId:Ne,movementMode:Pt}));var lt={shouldPublishImmediately:Pt==="SNAP"},ut={draggableId:Ne,scrollOptions:lt},It=ee.startPublishing(ut),un=It.critical,ma=It.dimensions,ya=It.viewport;_l(un,ma),de(ua({critical:un,dimensions:ma,clientSelection:at,movementMode:Pt,viewport:ya}))}}}},vl=function(ee){return function(){return function(ne){return function(oe){oe.type==="INITIAL_PUBLISH"&&ee.dragging(),oe.type==="DROP_ANIMATE"&&ee.dropping(oe.payload.completed.result.reason),(oe.type==="FLUSH"||oe.type==="DROP_COMPLETE")&&ee.resting(),ne(oe)}}}},Dl={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Il={opacity:{drop:0,combining:.7},scale:{drop:.75}},eu={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},sl=eu.outOfTheWay+"s "+Dl.outOfTheWay,kl={fluid:"opacity "+sl,snap:"transform "+sl+", opacity "+sl,drop:function(ne){var oe=ne+"s "+Dl.drop;return"transform "+oe+", opacity "+oe},outOfTheWay:"transform "+sl,placeholder:"height "+sl+", width "+sl+", margin "+sl},Ol=function(ne){return ia(ne,za)?null:"translate("+ne.x+"px, "+ne.y+"px)"},Kl={moveTo:Ol,drop:function(ne,oe){var de=Ol(ne);return de?oe?de+" scale("+Il.scale.drop+")":de:null}},Vl=eu.minDropTime,tu=eu.maxDropTime,nu=tu-Vl,Ul=1500,au=.6,zt=function(ee){var ne=ee.current,oe=ee.destination,de=ee.reason,Se=fa(ne,oe);if(Se<=0)return Vl;if(Se>=Ul)return tu;var Pe=Se/Ul,xe=Vl+nu*Pe,Ne=de==="CANCEL"?xe*au:xe;return Number(Ne.toFixed(2))},wa=function(ee){var ne=ee.impact,oe=ee.draggable,de=ee.dimensions,Se=ee.viewport,Pe=ee.afterCritical,xe=de.draggables,Ne=de.droppables,at=ar(ne),Pt=at?Ne[at]:null,ft=Ne[oe.descriptor.droppableId],lt=Ct({impact:ne,draggable:oe,draggables:xe,afterCritical:Pe,droppable:Pt||ft,viewport:Se}),ut=ja(lt,oe.client.borderBox.center);return ut},Nr=function(ee){var ne=ee.draggables,oe=ee.reason,de=ee.lastImpact,Se=ee.home,Pe=ee.viewport,xe=ee.onLiftImpact;if(!de.at||oe!=="DROP"){var Ne=ct({draggables:ne,impact:xe,destination:Se,viewport:Pe,forceShouldAnimate:!0});return{impact:Ne,didDropInsideDroppable:!1}}if(de.at.type==="REORDER")return{impact:de,didDropInsideDroppable:!0};var at=(0,Fe.Z)({},de,{displaced:Di});return{impact:at,didDropInsideDroppable:!0}},fe=function(ee){var ne=ee.getState,oe=ee.dispatch;return function(de){return function(Se){if(Se.type!=="DROP"){de(Se);return}var Pe=ne(),xe=Se.payload.reason;if(Pe.phase==="COLLECTING"){oe(Ml({reason:xe}));return}if(Pe.phase!=="IDLE"){var Ne=Pe.phase==="DROP_PENDING"&&Pe.isWaiting;Ne&&an(!1),Pe.phase==="DRAGGING"||Pe.phase==="DROP_PENDING"||an(!1);var at=Pe.critical,Pt=Pe.dimensions,ft=Pt.draggables[Pe.critical.draggable.id],lt=Nr({reason:xe,lastImpact:Pe.impact,afterCritical:Pe.afterCritical,onLiftImpact:Pe.onLiftImpact,home:Pe.dimensions.droppables[Pe.critical.droppable.id],viewport:Pe.viewport,draggables:Pe.dimensions.draggables}),ut=lt.impact,It=lt.didDropInsideDroppable,un=It?bo(ut):null,ma=It?xi(ut):null,ya={index:at.draggable.index,droppableId:at.droppable.id},Aa={draggableId:ft.descriptor.id,type:ft.descriptor.type,source:ya,reason:xe,mode:Pe.movementMode,destination:un,combine:ma},Ga=wa({impact:ut,draggable:ft,dimensions:Pt,viewport:Pe.viewport,afterCritical:Pe.afterCritical}),tr={critical:Pe.critical,afterCritical:Pe.afterCritical,result:Aa,impact:ut},cr=!ia(Pe.current.client.offset,Ga)||!!Aa.combine;if(!cr){oe(ui({completed:tr}));return}var Ur=zt({current:Pe.current.client.offset,destination:Ga,reason:xe}),Hr={newHomeClientOffset:Ga,dropDuration:Ur,completed:tr};oe(Oo(Hr))}}}},me=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Me(ee){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(oe){oe.target!==window&&oe.target!==window.document||ee()}}}function He(ee){var ne=ee.onWindowScroll;function oe(){ne(me())}var de=Jn(oe),Se=Me(de),Pe=Qa;function xe(){return Pe!==Qa}function Ne(){xe()&&an(!1),Pe=ba(window,[Se])}function at(){xe()||an(!1),de.cancel(),Pe(),Pe=Qa}return{start:Ne,stop:at,isActive:xe}}var $e=function(ne){return ne.type==="DROP_COMPLETE"||ne.type==="DROP_ANIMATE"||ne.type==="FLUSH"},Ye=function(ee){var ne=He({onWindowScroll:function(de){ee.dispatch(ei({newScroll:de}))}});return function(oe){return function(de){!ne.isActive()&&de.type==="INITIAL_PUBLISH"&&ne.start(),ne.isActive()&&$e(de)&&ne.stop(),oe(de)}}},Nt=function(ee){var ne=!1,oe=!1,de=setTimeout(function(){oe=!0}),Se=function(xe){ne||oe||(ne=!0,ee(xe),clearTimeout(de))};return Se.wasCalled=function(){return ne},Se},xt=function(){var ee=[],ne=function(Pe){var xe=Mo(ee,function(Pt){return Pt.timerId===Pe});xe===-1&&an(!1);var Ne=ee.splice(xe,1),at=Ne[0];at.callback()},oe=function(Pe){var xe=setTimeout(function(){return ne(xe)}),Ne={timerId:xe,callback:Pe};ee.push(Ne)},de=function(){if(ee.length){var Pe=[].concat(ee);ee.length=0,Pe.forEach(function(xe){clearTimeout(xe.timerId),xe.callback()})}};return{add:oe,flush:de}},Tt=function(ne,oe){return ne==null&&oe==null?!0:ne==null||oe==null?!1:ne.droppableId===oe.droppableId&&ne.index===oe.index},Qt=function(ne,oe){return ne==null&&oe==null?!0:ne==null||oe==null?!1:ne.draggableId===oe.draggableId&&ne.droppableId===oe.droppableId},Mt=function(ne,oe){if(ne===oe)return!0;var de=ne.draggable.id===oe.draggable.id&&ne.draggable.droppableId===oe.draggable.droppableId&&ne.draggable.type===oe.draggable.type&&ne.draggable.index===oe.draggable.index,Se=ne.droppable.id===oe.droppable.id&&ne.droppable.type===oe.droppable.type;return de&&Se},Wt=function(ne,oe){Mn(),oe(),rn()},wn=function(ne,oe){return{draggableId:ne.draggable.id,type:ne.droppable.type,source:{droppableId:ne.droppable.id,index:ne.draggable.index},mode:oe}},yn=function(ne,oe,de,Se){if(!ne){de(Se(oe));return}var Pe=Nt(de),xe={announce:Pe};ne(oe,xe),Pe.wasCalled()||de(Se(oe))},Ln=function(ee,ne){var oe=xt(),de=null,Se=function(ut,It){de&&an(!1),Wt("onBeforeCapture",function(){var un=ee().onBeforeCapture;if(un){var ma={draggableId:ut,mode:It};un(ma)}})},Pe=function(ut,It){de&&an(!1),Wt("onBeforeDragStart",function(){var un=ee().onBeforeDragStart;un&&un(wn(ut,It))})},xe=function(ut,It){de&&an(!1);var un=wn(ut,It);de={mode:It,lastCritical:ut,lastLocation:un.source,lastCombine:null},oe.add(function(){Wt("onDragStart",function(){return yn(ee().onDragStart,un,ne,en.onDragStart)})})},Ne=function(ut,It){var un=bo(It),ma=xi(It);de||an(!1);var ya=!Mt(ut,de.lastCritical);ya&&(de.lastCritical=ut);var Aa=!Tt(de.lastLocation,un);Aa&&(de.lastLocation=un);var Ga=!Qt(de.lastCombine,ma);if(Ga&&(de.lastCombine=ma),!(!ya&&!Aa&&!Ga)){var tr=(0,Fe.Z)({},wn(ut,de.mode),{combine:ma,destination:un});oe.add(function(){Wt("onDragUpdate",function(){return yn(ee().onDragUpdate,tr,ne,en.onDragUpdate)})})}},at=function(){de||an(!1),oe.flush()},Pt=function(ut){de||an(!1),de=null,Wt("onDragEnd",function(){return yn(ee().onDragEnd,ut,ne,en.onDragEnd)})},ft=function(){if(de){var ut=(0,Fe.Z)({},wn(de.lastCritical,de.mode),{combine:null,destination:null,reason:"CANCEL"});Pt(ut)}};return{beforeCapture:Se,beforeStart:Pe,start:xe,update:Ne,flush:at,drop:Pt,abort:ft}},ha=function(ee,ne){var oe=Ln(ee,ne);return function(de){return function(Se){return function(Pe){if(Pe.type==="BEFORE_INITIAL_CAPTURE"){oe.beforeCapture(Pe.payload.draggableId,Pe.payload.movementMode);return}if(Pe.type==="INITIAL_PUBLISH"){var xe=Pe.payload.critical;oe.beforeStart(xe,Pe.payload.movementMode),Se(Pe),oe.start(xe,Pe.payload.movementMode);return}if(Pe.type==="DROP_COMPLETE"){var Ne=Pe.payload.completed.result;oe.flush(),Se(Pe),oe.drop(Ne);return}if(Se(Pe),Pe.type==="FLUSH"){oe.abort();return}var at=de.getState();at.phase==="DRAGGING"&&oe.update(at.critical,at.impact)}}}},ra=function(ee){return function(ne){return function(oe){if(oe.type!=="DROP_ANIMATION_FINISHED"){ne(oe);return}var de=ee.getState();de.phase!=="DROP_ANIMATING"&&an(!1),ee.dispatch(ui({completed:de.completed}))}}},da=function(ee){var ne=null,oe=null;function de(){oe&&(cancelAnimationFrame(oe),oe=null),ne&&(ne(),ne=null)}return function(Se){return function(Pe){if((Pe.type==="FLUSH"||Pe.type==="DROP_COMPLETE"||Pe.type==="DROP_ANIMATION_FINISHED")&&de(),Se(Pe),Pe.type==="DROP_ANIMATE"){var xe={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var at=ee.getState();at.phase==="DROP_ANIMATING"&&ee.dispatch(wl())}};oe=requestAnimationFrame(function(){oe=null,ne=ba(window,[xe])})}}}},oa=function(ee){return function(){return function(ne){return function(oe){(oe.type==="DROP_COMPLETE"||oe.type==="FLUSH"||oe.type==="DROP_ANIMATE")&&ee.stopPublishing(),ne(oe)}}}},Oa=function(ee){var ne=!1;return function(){return function(oe){return function(de){if(de.type==="INITIAL_PUBLISH"){ne=!0,ee.tryRecordFocus(de.payload.critical.draggable.id),oe(de),ee.tryRestoreFocusRecorded();return}if(oe(de),!!ne){if(de.type==="FLUSH"){ne=!1,ee.tryRestoreFocusRecorded();return}if(de.type==="DROP_COMPLETE"){ne=!1;var Se=de.payload.completed.result;Se.combine&&ee.tryShiftRecord(Se.draggableId,Se.combine.draggableId),ee.tryRestoreFocusRecorded()}}}}}},er=function(ne){return ne.type==="DROP_COMPLETE"||ne.type==="DROP_ANIMATE"||ne.type==="FLUSH"},rr=function(ee){return function(ne){return function(oe){return function(de){if(er(de)){ee.stop(),oe(de);return}if(de.type==="INITIAL_PUBLISH"){oe(de);var Se=ne.getState();Se.phase!=="DRAGGING"&&an(!1),ee.start(Se);return}oe(de),ee.scroll(ne.getState())}}}},Wa=function(ee){return function(ne){return function(oe){if(ne(oe),oe.type==="PUBLISH_WHILE_DRAGGING"){var de=ee.getState();de.phase==="DROP_PENDING"&&(de.isWaiting||ee.dispatch(gl({reason:de.reason})))}}}},br=Oe.qC,Dr=function(ee){var ne=ee.dimensionMarshal,oe=ee.focusMarshal,de=ee.styleMarshal,Se=ee.getResponders,Pe=ee.announce,xe=ee.autoScroller;return(0,Oe.MT)(Ra,br((0,Oe.md)(vl(de),oa(ne),Wl(ne),fe,ra,da,Wa,rr(xe),Ye,Oa(oe),ha(Se,Pe))))},Ta=function(){return{additions:{},removals:{},modified:{}}};function Ua(ee){var ne=ee.registry,oe=ee.callbacks,de=Ta(),Se=null,Pe=function(){Se||(oe.collectionStarting(),Se=requestAnimationFrame(function(){Se=null,Mn();var ft=de,lt=ft.additions,ut=ft.removals,It=ft.modified,un=Object.keys(lt).map(function(Aa){return ne.draggable.getById(Aa).getDimension(za)}).sort(function(Aa,Ga){return Aa.descriptor.index-Ga.descriptor.index}),ma=Object.keys(It).map(function(Aa){var Ga=ne.droppable.getById(Aa),tr=Ga.callbacks.getScrollWhileDragging();return{droppableId:Aa,scroll:tr}}),ya={additions:un,removals:Object.keys(ut),modified:ma};de=Ta(),rn(),oe.publish(ya)}))},xe=function(ft){var lt=ft.descriptor.id;de.additions[lt]=ft,de.modified[ft.descriptor.droppableId]=!0,de.removals[lt]&&delete de.removals[lt],Pe()},Ne=function(ft){var lt=ft.descriptor;de.removals[lt.id]=!0,de.modified[lt.droppableId]=!0,de.additions[lt.id]&&delete de.additions[lt.id],Pe()},at=function(){Se&&(cancelAnimationFrame(Se),Se=null,de=Ta())};return{add:xe,remove:Ne,stop:at}}var Ma=function(ee){var ne=ee.scrollHeight,oe=ee.scrollWidth,de=ee.height,Se=ee.width,Pe=ja({x:oe,y:ne},{x:Se,y:de}),xe={x:Math.max(0,Pe.x),y:Math.max(0,Pe.y)};return xe},Ba=function(){var ee=document.documentElement;return ee||an(!1),ee},Za=function(){var ee=Ba(),ne=Ma({scrollHeight:ee.scrollHeight,scrollWidth:ee.scrollWidth,width:ee.clientWidth,height:ee.clientHeight});return ne},Sr=function(){var ee=me(),ne=Za(),oe=ee.y,de=ee.x,Se=Ba(),Pe=Se.clientWidth,xe=Se.clientHeight,Ne=de+Pe,at=oe+xe,Pt=na({top:oe,left:de,right:Ne,bottom:at}),ft={frame:Pt,scroll:{initial:ee,current:ee,max:ne,diff:{value:za,displacement:za}}};return ft},kr=function(ee){var ne=ee.critical,oe=ee.scrollOptions,de=ee.registry;Mn();var Se=Sr(),Pe=Se.scroll.current,xe=ne.droppable,Ne=de.droppable.getAllByType(xe.type).map(function(lt){return lt.callbacks.getDimensionAndWatchScroll(Pe,oe)}),at=de.draggable.getAllByType(ne.draggable.type).map(function(lt){return lt.getDimension(Pe)}),Pt={draggables:$o(at),droppables:oi(Ne)};rn();var ft={dimensions:Pt,critical:ne,viewport:Se};return ft};function Br(ee,ne,oe){if(oe.descriptor.id===ne.id||oe.descriptor.type!==ne.type)return!1;var de=ee.droppable.getById(oe.descriptor.droppableId);return de.descriptor.mode==="virtual"}var sr=function(ee,ne){var oe=null,de=Ua({callbacks:{publish:ne.publishWhileDragging,collectionStarting:ne.collectionStarting},registry:ee}),Se=function(It,un){ee.droppable.exists(It)||an(!1),oe&&ne.updateDroppableIsEnabled({id:It,isEnabled:un})},Pe=function(It,un){oe&&(ee.droppable.exists(It)||an(!1),ne.updateDroppableIsCombineEnabled({id:It,isCombineEnabled:un}))},xe=function(It,un){oe&&(ee.droppable.exists(It)||an(!1),ne.updateDroppableScroll({id:It,newScroll:un}))},Ne=function(It,un){oe&&ee.droppable.getById(It).callbacks.scroll(un)},at=function(){if(oe){de.stop();var It=oe.critical.droppable;ee.droppable.getAllByType(It.type).forEach(function(un){return un.callbacks.dragStopped()}),oe.unsubscribe(),oe=null}},Pt=function(It){oe||an(!1);var un=oe.critical.draggable;It.type==="ADDITION"&&Br(ee,un,It.value)&&de.add(It.value),It.type==="REMOVAL"&&Br(ee,un,It.value)&&de.remove(It.value)},ft=function(It){oe&&an(!1);var un=ee.draggable.getById(It.draggableId),ma=ee.droppable.getById(un.descriptor.droppableId),ya={draggable:un.descriptor,droppable:ma.descriptor},Aa=ee.subscribe(Pt);return oe={critical:ya,unsubscribe:Aa},kr({critical:ya,registry:ee,scrollOptions:It.scrollOptions})},lt={updateDroppableIsEnabled:Se,updateDroppableIsCombineEnabled:Pe,scrollDroppable:Ne,updateDroppableScroll:xe,startPublishing:ft,stopPublishing:at};return lt},Zr=function(ee,ne){return ee.phase==="IDLE"?!0:ee.phase!=="DROP_ANIMATING"||ee.completed.result.draggableId===ne?!1:ee.completed.result.reason==="DROP"},Kr=function(ee){window.scrollBy(ee.x,ee.y)},Lo=xn(function(ee){return Ko(ee).filter(function(ne){return!(!ne.isEnabled||!ne.frame)})}),io=function(ne,oe){var de=yo(Lo(oe),function(Se){return Se.frame||an(!1),Ea(Se.frame.pageMarginBox)(ne)});return de},Vo=function(ee){var ne=ee.center,oe=ee.destination,de=ee.droppables;if(oe){var Se=de[oe];return Se.frame?Se:null}var Pe=io(ne,de);return Pe},Do={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(ne){return Math.pow(ne,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},Ir=function(ee,ne){var oe=ee[ne.size]*Do.startFromPercentage,de=ee[ne.size]*Do.maxScrollAtPercentage,Se={startScrollingFrom:oe,maxScrollValueAt:de};return Se},Jo=function(ee){var ne=ee.startOfRange,oe=ee.endOfRange,de=ee.current,Se=oe-ne;if(Se===0)return 0;var Pe=de-ne,xe=Pe/Se;return xe},no=1,Zo=function(ee,ne){if(ee>ne.startScrollingFrom)return 0;if(ee<=ne.maxScrollValueAt)return Do.maxPixelScroll;if(ee===ne.startScrollingFrom)return no;var oe=Jo({startOfRange:ne.maxScrollValueAt,endOfRange:ne.startScrollingFrom,current:ee}),de=1-oe,Se=Do.maxPixelScroll*Do.ease(de);return Math.ceil(Se)},Ro=Do.durationDampening.accelerateAt,Ai=Do.durationDampening.stopDampeningAt,vr=function(ee,ne){var oe=ne,de=Ai,Se=Date.now(),Pe=Se-oe;if(Pe>=Ai)return ee;if(Pe<Ro)return no;var xe=Jo({startOfRange:Ro,endOfRange:de,current:Pe}),Ne=ee*Do.ease(xe);return Math.ceil(Ne)},dr=function(ee){var ne=ee.distanceToEdge,oe=ee.thresholds,de=ee.dragStartTime,Se=ee.shouldUseTimeDampening,Pe=Zo(ne,oe);return Pe===0?0:Se?Math.max(vr(Pe,de),no):Pe},ir=function(ee){var ne=ee.container,oe=ee.distanceToEdges,de=ee.dragStartTime,Se=ee.axis,Pe=ee.shouldUseTimeDampening,xe=Ir(ne,Se),Ne=oe[Se.end]<oe[Se.start];return Ne?dr({distanceToEdge:oe[Se.end],thresholds:xe,dragStartTime:de,shouldUseTimeDampening:Pe}):-1*dr({distanceToEdge:oe[Se.start],thresholds:xe,dragStartTime:de,shouldUseTimeDampening:Pe})},qa=function(ee){var ne=ee.container,oe=ee.subject,de=ee.proposedScroll,Se=oe.height>ne.height,Pe=oe.width>ne.width;return!Pe&&!Se?de:Pe&&Se?null:{x:Pe?0:de.x,y:Se?0:de.y}},so=Xa(function(ee){return ee===0?0:ee}),Ya=function(ee){var ne=ee.dragStartTime,oe=ee.container,de=ee.subject,Se=ee.center,Pe=ee.shouldUseTimeDampening,xe={top:Se.y-oe.top,right:oe.right-Se.x,bottom:oe.bottom-Se.y,left:Se.x-oe.left},Ne=ir({container:oe,distanceToEdges:xe,dragStartTime:ne,axis:Xi,shouldUseTimeDampening:Pe}),at=ir({container:oe,distanceToEdges:xe,dragStartTime:ne,axis:Yi,shouldUseTimeDampening:Pe}),Pt=so({x:at,y:Ne});if(ia(Pt,za))return null;var ft=qa({container:oe,subject:de,proposedScroll:Pt});return ft?ia(ft,za)?null:ft:null},Ar=Xa(function(ee){return ee===0?0:ee>0?1:-1}),qr=function(){var ee=function(oe,de){return oe<0?oe:oe>de?oe-de:0};return function(ne){var oe=ne.current,de=ne.max,Se=ne.change,Pe=va(oe,Se),xe={x:ee(Pe.x,de.x),y:ee(Pe.y,de.y)};return ia(xe,za)?null:xe}}(),Jr=function(ne){var oe=ne.max,de=ne.current,Se=ne.change,Pe={x:Math.max(de.x,oe.x),y:Math.max(de.y,oe.y)},xe=Ar(Se),Ne=qr({max:Pe,current:de,change:xe});return!Ne||xe.x!==0&&Ne.x===0||xe.y!==0&&Ne.y===0},di=function(ne,oe){return Jr({current:ne.scroll.current,max:ne.scroll.max,change:oe})},ci=function(ne,oe){if(!di(ne,oe))return null;var de=ne.scroll.max,Se=ne.scroll.current;return qr({current:Se,max:de,change:oe})},Hi=function(ne,oe){var de=ne.frame;return de?Jr({current:de.scroll.current,max:de.scroll.max,change:oe}):!1},ti=function(ne,oe){var de=ne.frame;return!de||!Hi(ne,oe)?null:qr({current:de.scroll.current,max:de.scroll.max,change:oe})},Ui=function(ee){var ne=ee.viewport,oe=ee.subject,de=ee.center,Se=ee.dragStartTime,Pe=ee.shouldUseTimeDampening,xe=Ya({dragStartTime:Se,container:ne.frame,subject:oe,center:de,shouldUseTimeDampening:Pe});return xe&&di(ne,xe)?xe:null},ni=function(ee){var ne=ee.droppable,oe=ee.subject,de=ee.center,Se=ee.dragStartTime,Pe=ee.shouldUseTimeDampening,xe=ne.frame;if(!xe)return null;var Ne=Ya({dragStartTime:Se,container:xe.pageMarginBox,subject:oe,center:de,shouldUseTimeDampening:Pe});return Ne&&Hi(ne,Ne)?Ne:null},Fi=function(ee){var ne=ee.state,oe=ee.dragStartTime,de=ee.shouldUseTimeDampening,Se=ee.scrollWindow,Pe=ee.scrollDroppable,xe=ne.current.page.borderBoxCenter,Ne=ne.dimensions.draggables[ne.critical.draggable.id],at=Ne.page.marginBox;if(ne.isWindowScrollAllowed){var Pt=ne.viewport,ft=Ui({dragStartTime:oe,viewport:Pt,subject:at,center:xe,shouldUseTimeDampening:de});if(ft){Se(ft);return}}var lt=Vo({center:xe,destination:ar(ne.impact),droppables:ne.dimensions.droppables});if(lt){var ut=ni({dragStartTime:oe,droppable:lt,subject:at,center:xe,shouldUseTimeDampening:de});ut&&Pe(lt.descriptor.id,ut)}},Ll=function(ee){var ne=ee.scrollWindow,oe=ee.scrollDroppable,de=Jn(ne),Se=Jn(oe),Pe=null,xe=function(ft){Pe||an(!1);var lt=Pe,ut=lt.shouldUseTimeDampening,It=lt.dragStartTime;Fi({state:ft,scrollWindow:de,scrollDroppable:Se,dragStartTime:It,shouldUseTimeDampening:ut})},Ne=function(ft){Mn(),Pe&&an(!1);var lt=Date.now(),ut=!1,It=function(){ut=!0};Fi({state:ft,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:It,scrollDroppable:It}),Pe={dragStartTime:lt,shouldUseTimeDampening:ut},rn(),ut&&xe(ft)},at=function(){Pe&&(de.cancel(),Se.cancel(),Pe=null)};return{start:Ne,stop:at,scroll:xe}},fo=function(ee){var ne=ee.move,oe=ee.scrollDroppable,de=ee.scrollWindow,Se=function(Pt,ft){var lt=va(Pt.current.client.selection,ft);ne({client:lt})},Pe=function(Pt,ft){if(!Hi(Pt,ft))return ft;var lt=ti(Pt,ft);if(!lt)return oe(Pt.descriptor.id,ft),null;var ut=ja(ft,lt);oe(Pt.descriptor.id,ut);var It=ja(ft,ut);return It},xe=function(Pt,ft,lt){if(!Pt||!di(ft,lt))return lt;var ut=ci(ft,lt);if(!ut)return de(lt),null;var It=ja(lt,ut);de(It);var un=ja(lt,It);return un},Ne=function(Pt){var ft=Pt.scrollJumpRequest;if(ft){var lt=ar(Pt.impact);lt||an(!1);var ut=Pe(Pt.dimensions.droppables[lt],ft);if(ut){var It=Pt.viewport,un=xe(Pt.isWindowScrollAllowed,It,ut);un&&Se(Pt,un)}}};return Ne},So=function(ee){var ne=ee.scrollDroppable,oe=ee.scrollWindow,de=ee.move,Se=Ll({scrollWindow:oe,scrollDroppable:ne}),Pe=fo({move:de,scrollWindow:oe,scrollDroppable:ne}),xe=function(Pt){if(Pt.phase==="DRAGGING"){if(Pt.movementMode==="FLUID"){Se.scroll(Pt);return}Pt.scrollJumpRequest&&Pe(Pt)}},Ne={scroll:xe,start:Se.start,stop:Se.stop};return Ne},No="data-rbd",Go=function(){var ee=No+"-drag-handle";return{base:ee,draggableId:ee+"-draggable-id",contextId:ee+"-context-id"}}(),Xo=function(){var ee=No+"-draggable";return{base:ee,contextId:ee+"-context-id",id:ee+"-id"}}(),Vr=function(){var ee=No+"-droppable";return{base:ee,contextId:ee+"-context-id",id:ee+"-id"}}(),hi={contextId:No+"-scroll-container-context-id"},Si=function(ne){return function(oe){return"["+oe+'="'+ne+'"]'}},pi=function(ne,oe){return ne.map(function(de){var Se=de.styles[oe];return Se?de.selector+" { "+Se+" }":""}).join(" ")},dl="pointer-events: none;",nl=function(ee){var ne=Si(ee),oe=function(){var Ne=`
|
|
cursor: -webkit-grab;
|
|
cursor: grab;
|
|
`;return{selector:ne(Go.contextId),styles:{always:`
|
|
-webkit-touch-callout: none;
|
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
touch-action: manipulation;
|
|
`,resting:Ne,dragging:dl,dropAnimating:Ne}}}(),de=function(){var Ne=`
|
|
transition: `+kl.outOfTheWay+`;
|
|
`;return{selector:ne(Xo.contextId),styles:{dragging:Ne,dropAnimating:Ne,userCancel:Ne}}}(),Se={selector:ne(Vr.contextId),styles:{always:"overflow-anchor: none;"}},Pe={selector:"body",styles:{dragging:`
|
|
cursor: grabbing;
|
|
cursor: -webkit-grabbing;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
overflow-anchor: none;
|
|
`}},xe=[de,oe,Se,Pe];return{always:pi(xe,"always"),resting:pi(xe,"resting"),dragging:pi(xe,"dragging"),dropAnimating:pi(xe,"dropAnimating"),userCancel:pi(xe,"userCancel")}},Pi=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?b.useLayoutEffect:b.useEffect,al=function(){var ne=document.querySelector("head");return ne||an(!1),ne},Gi=function(ne){var oe=document.createElement("style");return ne&&oe.setAttribute("nonce",ne),oe.type="text/css",oe};function Ii(ee,ne){var oe=kt(function(){return nl(ee)},[ee]),de=(0,b.useRef)(null),Se=(0,b.useRef)(null),Pe=Ft(xn(function(lt){var ut=Se.current;ut||an(!1),ut.textContent=lt}),[]),xe=Ft(function(lt){var ut=de.current;ut||an(!1),ut.textContent=lt},[]);Pi(function(){!de.current&&!Se.current||an(!1);var lt=Gi(ne),ut=Gi(ne);return de.current=lt,Se.current=ut,lt.setAttribute(No+"-always",ee),ut.setAttribute(No+"-dynamic",ee),al().appendChild(lt),al().appendChild(ut),xe(oe.always),Pe(oe.resting),function(){var It=function(ma){var ya=ma.current;ya||an(!1),al().removeChild(ya),ma.current=null};It(de),It(Se)}},[ne,xe,Pe,oe.always,oe.resting,ee]);var Ne=Ft(function(){return Pe(oe.dragging)},[Pe,oe.dragging]),at=Ft(function(lt){if(lt==="DROP"){Pe(oe.dropAnimating);return}Pe(oe.userCancel)},[Pe,oe.dropAnimating,oe.userCancel]),Pt=Ft(function(){Se.current&&Pe(oe.resting)},[Pe,oe.resting]),ft=kt(function(){return{dragging:Ne,dropping:at,resting:Pt}},[Ne,at,Pt]);return ft}var Ei=function(ee){return ee&&ee.ownerDocument?ee.ownerDocument.defaultView:window};function Uo(ee){return ee instanceof Ei(ee).HTMLElement}function zo(ee,ne){var oe="["+Go.contextId+'="'+ee+'"]',de=Ao(document.querySelectorAll(oe));if(!de.length)return null;var Se=yo(de,function(Pe){return Pe.getAttribute(Go.draggableId)===ne});return!Se||!Uo(Se)?null:Se}function cl(ee){var ne=(0,b.useRef)({}),oe=(0,b.useRef)(null),de=(0,b.useRef)(null),Se=(0,b.useRef)(!1),Pe=Ft(function(ut,It){var un={id:ut,focus:It};return ne.current[ut]=un,function(){var ya=ne.current,Aa=ya[ut];Aa!==un&&delete ya[ut]}},[]),xe=Ft(function(ut){var It=zo(ee,ut);It&&It!==document.activeElement&&It.focus()},[ee]),Ne=Ft(function(ut,It){oe.current===ut&&(oe.current=It)},[]),at=Ft(function(){de.current||Se.current&&(de.current=requestAnimationFrame(function(){de.current=null;var ut=oe.current;ut&&xe(ut)}))},[xe]),Pt=Ft(function(ut){oe.current=null;var It=document.activeElement;It&&It.getAttribute(Go.draggableId)===ut&&(oe.current=ut)},[]);Pi(function(){return Se.current=!0,function(){Se.current=!1;var ut=de.current;ut&&cancelAnimationFrame(ut)}},[]);var ft=kt(function(){return{register:Pe,tryRecordFocus:Pt,tryRestoreFocusRecorded:at,tryShiftRecord:Ne}},[Pe,Pt,at,Ne]);return ft}function Nl(){var ee={draggables:{},droppables:{}},ne=[];function oe(lt){return ne.push(lt),function(){var It=ne.indexOf(lt);It!==-1&&ne.splice(It,1)}}function de(lt){ne.length&&ne.forEach(function(ut){return ut(lt)})}function Se(lt){return ee.draggables[lt]||null}function Pe(lt){var ut=Se(lt);return ut||an(!1),ut}var xe={register:function(ut){ee.draggables[ut.descriptor.id]=ut,de({type:"ADDITION",value:ut})},update:function(ut,It){var un=ee.draggables[It.descriptor.id];un&&un.uniqueId===ut.uniqueId&&(delete ee.draggables[It.descriptor.id],ee.draggables[ut.descriptor.id]=ut)},unregister:function(ut){var It=ut.descriptor.id,un=Se(It);un&&ut.uniqueId===un.uniqueId&&(delete ee.draggables[It],de({type:"REMOVAL",value:ut}))},getById:Pe,findById:Se,exists:function(ut){return!!Se(ut)},getAllByType:function(ut){return po(ee.draggables).filter(function(It){return It.descriptor.type===ut})}};function Ne(lt){return ee.droppables[lt]||null}function at(lt){var ut=Ne(lt);return ut||an(!1),ut}var Pt={register:function(ut){ee.droppables[ut.descriptor.id]=ut},unregister:function(ut){var It=Ne(ut.descriptor.id);It&&ut.uniqueId===It.uniqueId&&delete ee.droppables[ut.descriptor.id]},getById:at,findById:Ne,exists:function(ut){return!!Ne(ut)},getAllByType:function(ut){return po(ee.droppables).filter(function(It){return It.descriptor.type===ut})}};function ft(){ee.draggables={},ee.droppables={},ne.length=0}return{draggable:xe,droppable:Pt,subscribe:oe,clean:ft}}function hl(){var ee=kt(Nl,[]);return(0,b.useEffect)(function(){return function(){requestAnimationFrame(ee.clean)}},[ee]),ee}var Qi=b.createContext(null),Sl=function(){var ee=document.body;return ee||an(!1),ee},fu={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},ao=function(ne){return"rbd-announcement-"+ne};function To(ee){var ne=kt(function(){return ao(ee)},[ee]),oe=(0,b.useRef)(null);(0,b.useEffect)(function(){var Pe=document.createElement("div");return oe.current=Pe,Pe.id=ne,Pe.setAttribute("aria-live","assertive"),Pe.setAttribute("aria-atomic","true"),(0,Fe.Z)(Pe.style,fu),Sl().appendChild(Pe),function(){setTimeout(function(){var at=Sl();at.contains(Pe)&&at.removeChild(Pe),Pe===oe.current&&(oe.current=null)})}},[ne]);var de=Ft(function(Se){var Pe=oe.current;if(Pe){Pe.textContent=Se;return}},[]);return de}var gi=0,Wo={separator:"::"};function yi(){gi=0}function bi(ee,ne){return ne===void 0&&(ne=Wo),kt(function(){return""+ee+ne.separator+gi++},[ne.separator,ee])}function Oi(ee){var ne=ee.contextId,oe=ee.uniqueId;return"rbd-hidden-text-"+ne+"-"+oe}function ml(ee){var ne=ee.contextId,oe=ee.text,de=bi("hidden-text",{separator:"-"}),Se=kt(function(){return Oi({contextId:ne,uniqueId:de})},[de,ne]);return(0,b.useEffect)(function(){var xe=document.createElement("div");return xe.id=Se,xe.textContent=oe,xe.style.display="none",Sl().appendChild(xe),function(){var at=Sl();at.contains(xe)&&at.removeChild(xe)}},[Se,oe]),Se}var Ql=b.createContext(null),Uu={react:"^16.8.5","react-dom":"^16.8.5"},wu=/(\d+)\.(\d+)\.(\d+)/,Du=function(ne){var oe=wu.exec(ne);oe==null&&an(!1);var de=Number(oe[1]),Se=Number(oe[2]),Pe=Number(oe[3]);return{major:de,minor:Se,patch:Pe,raw:ne}},Iu=function(ne,oe){return oe.major>ne.major?!0:oe.major<ne.major?!1:oe.minor>ne.minor?!0:oe.minor<ne.minor?!1:oe.patch>=ne.patch},ru=function(ee,ne){var oe=Du(ee),de=Du(ne);Iu(oe,de)},Jl=`
|
|
We expect a html5 doctype: <!doctype html>
|
|
This is to ensure consistent browser layout and measurement
|
|
|
|
More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md
|
|
`,Ou=function(ee){var ne=ee.doctype;ne&&(ne.name.toLowerCase(),ne.publicId)};function cs(ee){}function Zl(ee,ne){}function Qu(){Zl(function(){ru(Uu.react,b.version),Ou(document)},[])}function ou(ee){var ne=(0,b.useRef)(ee);return(0,b.useEffect)(function(){ne.current=ee}),ne}function iu(){var ee=null;function ne(){return!!ee}function oe(xe){return xe===ee}function de(xe){ee&&an(!1);var Ne={abandon:xe};return ee=Ne,Ne}function Se(){ee||an(!1),ee=null}function Pe(){ee&&(ee.abandon(),Se())}return{isClaimed:ne,isActive:oe,claim:de,release:Se,tryAbandon:Pe}}var Lu=9,Ju=13,lu=27,pu=32,Xu=33,Yu=34,$u=35,Nu=36,uu=37,vu=38,hu=39,Ru=40,Xl,Tu=(Xl={},Xl[Ju]=!0,Xl[Lu]=!0,Xl),Su=function(ee){Tu[ee.keyCode]&&ee.preventDefault()},su=function(){var ee="visibilitychange";if(typeof document=="undefined")return ee;var ne=[ee,"ms"+ee,"webkit"+ee,"moz"+ee,"o"+ee],oe=yo(ne,function(de){return"on"+de in document});return oe||ee}(),Pu=0,du=5;function Mu(ee,ne){return Math.abs(ne.x-ee.x)>=du||Math.abs(ne.y-ee.y)>=du}var cu={type:"IDLE"};function _u(ee){var ne=ee.cancel,oe=ee.completed,de=ee.getPhase,Se=ee.setPhase;return[{eventName:"mousemove",fn:function(xe){var Ne=xe.button,at=xe.clientX,Pt=xe.clientY;if(Ne===Pu){var ft={x:at,y:Pt},lt=de();if(lt.type==="DRAGGING"){xe.preventDefault(),lt.actions.move(ft);return}lt.type!=="PENDING"&&an(!1);var ut=lt.point;if(Mu(ut,ft)){xe.preventDefault();var It=lt.actions.fluidLift(ft);Se({type:"DRAGGING",actions:It})}}}},{eventName:"mouseup",fn:function(xe){var Ne=de();if(Ne.type!=="DRAGGING"){ne();return}xe.preventDefault(),Ne.actions.drop({shouldBlockNextClick:!0}),oe()}},{eventName:"mousedown",fn:function(xe){de().type==="DRAGGING"&&xe.preventDefault(),ne()}},{eventName:"keydown",fn:function(xe){var Ne=de();if(Ne.type==="PENDING"){ne();return}if(xe.keyCode===lu){xe.preventDefault(),ne();return}Su(xe)}},{eventName:"resize",fn:ne},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){de().type==="PENDING"&&ne()}},{eventName:"webkitmouseforcedown",fn:function(xe){var Ne=de();if(Ne.type==="IDLE"&&an(!1),Ne.actions.shouldRespectForcePress()){ne();return}xe.preventDefault()}},{eventName:su,fn:ne}]}function qu(ee){var ne=(0,b.useRef)(cu),oe=(0,b.useRef)(Qa),de=kt(function(){return{eventName:"mousedown",fn:function(lt){if(!lt.defaultPrevented&<.button===Pu&&!(lt.ctrlKey||lt.metaKey||lt.shiftKey||lt.altKey)){var ut=ee.findClosestDraggableId(lt);if(ut){var It=ee.tryGetLock(ut,xe,{sourceEvent:lt});if(It){lt.preventDefault();var un={x:lt.clientX,y:lt.clientY};oe.current(),Pt(It,un)}}}}}},[ee]),Se=kt(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(lt){if(!lt.defaultPrevented){var ut=ee.findClosestDraggableId(lt);if(ut){var It=ee.findOptionsForDraggable(ut);It&&(It.shouldRespectForcePress||ee.canGetLock(ut)&<.preventDefault())}}}}},[ee]),Pe=Ft(function(){var lt={passive:!1,capture:!0};oe.current=ba(window,[Se,de],lt)},[Se,de]),xe=Ft(function(){var ft=ne.current;ft.type!=="IDLE"&&(ne.current=cu,oe.current(),Pe())},[Pe]),Ne=Ft(function(){var ft=ne.current;xe(),ft.type==="DRAGGING"&&ft.actions.cancel({shouldBlockNextClick:!0}),ft.type==="PENDING"&&ft.actions.abort()},[xe]),at=Ft(function(){var lt={capture:!0,passive:!1},ut=_u({cancel:Ne,completed:xe,getPhase:function(){return ne.current},setPhase:function(un){ne.current=un}});oe.current=ba(window,ut,lt)},[Ne,xe]),Pt=Ft(function(lt,ut){ne.current.type!=="IDLE"&&an(!1),ne.current={type:"PENDING",point:ut,actions:lt},at()},[at]);Pi(function(){return Pe(),function(){oe.current()}},[Pe])}var ro;function jo(){}var Ji=(ro={},ro[Yu]=!0,ro[Xu]=!0,ro[Nu]=!0,ro[$u]=!0,ro);function Pl(ee,ne){function oe(){ne(),ee.cancel()}function de(){ne(),ee.drop()}return[{eventName:"keydown",fn:function(Pe){if(Pe.keyCode===lu){Pe.preventDefault(),oe();return}if(Pe.keyCode===pu){Pe.preventDefault(),de();return}if(Pe.keyCode===Ru){Pe.preventDefault(),ee.moveDown();return}if(Pe.keyCode===vu){Pe.preventDefault(),ee.moveUp();return}if(Pe.keyCode===hu){Pe.preventDefault(),ee.moveRight();return}if(Pe.keyCode===uu){Pe.preventDefault(),ee.moveLeft();return}if(Ji[Pe.keyCode]){Pe.preventDefault();return}Su(Pe)}},{eventName:"mousedown",fn:oe},{eventName:"mouseup",fn:oe},{eventName:"click",fn:oe},{eventName:"touchstart",fn:oe},{eventName:"resize",fn:oe},{eventName:"wheel",fn:oe,options:{passive:!0}},{eventName:su,fn:oe}]}function El(ee){var ne=(0,b.useRef)(jo),oe=kt(function(){return{eventName:"keydown",fn:function(Pe){if(Pe.defaultPrevented||Pe.keyCode!==pu)return;var xe=ee.findClosestDraggableId(Pe);if(!xe)return;var Ne=ee.tryGetLock(xe,ft,{sourceEvent:Pe});if(!Ne)return;Pe.preventDefault();var at=!0,Pt=Ne.snapLift();ne.current();function ft(){at||an(!1),at=!1,ne.current(),de()}ne.current=ba(window,Pl(Pt,ft),{capture:!0,passive:!1})}}},[ee]),de=Ft(function(){var Pe={passive:!1,capture:!0};ne.current=ba(window,[oe],Pe)},[oe]);Pi(function(){return de(),function(){ne.current()}},[de])}var gu={type:"IDLE"},Eu=120,yu=.15;function bu(ee){var ne=ee.cancel,oe=ee.getPhase;return[{eventName:"orientationchange",fn:ne},{eventName:"resize",fn:ne},{eventName:"contextmenu",fn:function(Se){Se.preventDefault()}},{eventName:"keydown",fn:function(Se){if(oe().type!=="DRAGGING"){ne();return}Se.keyCode===lu&&Se.preventDefault(),ne()}},{eventName:su,fn:ne}]}function Cu(ee){var ne=ee.cancel,oe=ee.completed,de=ee.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Pe){var xe=de();if(xe.type!=="DRAGGING"){ne();return}xe.hasMoved=!0;var Ne=Pe.touches[0],at=Ne.clientX,Pt=Ne.clientY,ft={x:at,y:Pt};Pe.preventDefault(),xe.actions.move(ft)}},{eventName:"touchend",fn:function(Pe){var xe=de();if(xe.type!=="DRAGGING"){ne();return}Pe.preventDefault(),xe.actions.drop({shouldBlockNextClick:!0}),oe()}},{eventName:"touchcancel",fn:function(Pe){if(de().type!=="DRAGGING"){ne();return}Pe.preventDefault(),ne()}},{eventName:"touchforcechange",fn:function(Pe){var xe=de();xe.type==="IDLE"&&an(!1);var Ne=Pe.touches[0];if(Ne){var at=Ne.force>=yu;if(at){var Pt=xe.actions.shouldRespectForcePress();if(xe.type==="PENDING"){Pt&&ne();return}if(Pt){if(xe.hasMoved){Pe.preventDefault();return}ne();return}Pe.preventDefault()}}}},{eventName:su,fn:ne}]}function Ls(ee){var ne=(0,b.useRef)(gu),oe=(0,b.useRef)(Qa),de=Ft(function(){return ne.current},[]),Se=Ft(function(It){ne.current=It},[]),Pe=kt(function(){return{eventName:"touchstart",fn:function(It){if(!It.defaultPrevented){var un=ee.findClosestDraggableId(It);if(un){var ma=ee.tryGetLock(un,Ne,{sourceEvent:It});if(ma){var ya=It.touches[0],Aa=ya.clientX,Ga=ya.clientY,tr={x:Aa,y:Ga};oe.current(),lt(ma,tr)}}}}}},[ee]),xe=Ft(function(){var It={capture:!0,passive:!1};oe.current=ba(window,[Pe],It)},[Pe]),Ne=Ft(function(){var ut=ne.current;ut.type!=="IDLE"&&(ut.type==="PENDING"&&clearTimeout(ut.longPressTimerId),Se(gu),oe.current(),xe())},[xe,Se]),at=Ft(function(){var ut=ne.current;Ne(),ut.type==="DRAGGING"&&ut.actions.cancel({shouldBlockNextClick:!0}),ut.type==="PENDING"&&ut.actions.abort()},[Ne]),Pt=Ft(function(){var It={capture:!0,passive:!1},un={cancel:at,completed:Ne,getPhase:de},ma=ba(window,Cu(un),It),ya=ba(window,bu(un),It);oe.current=function(){ma(),ya()}},[at,de,Ne]),ft=Ft(function(){var It=de();It.type!=="PENDING"&&an(!1);var un=It.actions.fluidLift(It.point);Se({type:"DRAGGING",actions:un,hasMoved:!1})},[de,Se]),lt=Ft(function(It,un){de().type!=="IDLE"&&an(!1);var ma=setTimeout(ft,Eu);Se({type:"PENDING",point:un,actions:It,longPressTimerId:ma}),Pt()},[Pt,de,Se,ft]);Pi(function(){return xe(),function(){oe.current();var un=de();un.type==="PENDING"&&(clearTimeout(un.longPressTimerId),Se(gu))}},[de,xe,Se]),Pi(function(){var It=ba(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return It},[])}function Ns(ee){}var Rs={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function gs(ee,ne){if(ne==null)return!1;var oe=!!Rs[ne.tagName.toLowerCase()];if(oe)return!0;var de=ne.getAttribute("contenteditable");return de==="true"||de===""?!0:ne===ee?!1:gs(ee,ne.parentElement)}function Ts(ee,ne){var oe=ne.target;return Uo(oe)?gs(ee,oe):!1}var Ms=function(ee){return na(ee.getBoundingClientRect()).center};function _s(ee){return ee instanceof Ei(ee).Element}var ks=function(){var ee="matches";if(typeof document=="undefined")return ee;var ne=[ee,"msMatchesSelector","webkitMatchesSelector"],oe=yo(ne,function(de){return de in Element.prototype});return oe||ee}();function ms(ee,ne){return ee==null?null:ee[ks](ne)?ee:ms(ee.parentElement,ne)}function Zs(ee,ne){return ee.closest?ee.closest(ne):ms(ee,ne)}function zs(ee){return"["+Go.contextId+'="'+ee+'"]'}function js(ee,ne){var oe=ne.target;if(!_s(oe))return null;var de=zs(ee),Se=Zs(oe,de);return!Se||!Uo(Se)?null:Se}function Hs(ee,ne){var oe=js(ee,ne);return oe?oe.getAttribute(Go.draggableId):null}function Gs(ee,ne){var oe="["+Xo.contextId+'="'+ee+'"]',de=Ao(document.querySelectorAll(oe)),Se=yo(de,function(Pe){return Pe.getAttribute(Xo.id)===ne});return!Se||!Uo(Se)?null:Se}function Ws(ee){ee.preventDefault()}function ku(ee){var ne=ee.expected,oe=ee.phase,de=ee.isLockActive,Se=ee.shouldWarn;return!(!de()||ne!==oe)}function fs(ee){var ne=ee.lockAPI,oe=ee.store,de=ee.registry,Se=ee.draggableId;if(ne.isClaimed())return!1;var Pe=de.draggable.findById(Se);return!(!Pe||!Pe.options.isEnabled||!Zr(oe.getState(),Se))}function Ks(ee){var ne=ee.lockAPI,oe=ee.contextId,de=ee.store,Se=ee.registry,Pe=ee.draggableId,xe=ee.forceSensorStop,Ne=ee.sourceEvent,at=fs({lockAPI:ne,store:de,registry:Se,draggableId:Pe});if(!at)return null;var Pt=Se.draggable.getById(Pe),ft=Gs(oe,Pt.descriptor.id);if(!ft||Ne&&!Pt.options.canDragInteractiveElements&&Ts(ft,Ne))return null;var lt=ne.claim(xe||Qa),ut="PRE_DRAG";function It(){return Pt.options.shouldRespectForcePress}function un(){return ne.isActive(lt)}function ma(Hr,co){ku({expected:Hr,phase:ut,isLockActive:un,shouldWarn:!0})&&de.dispatch(co())}var ya=ma.bind(null,"DRAGGING");function Aa(Hr){function co(){ne.release(),ut="COMPLETED"}ut!=="PRE_DRAG"&&(co(),ut!=="PRE_DRAG"&&an(!1)),de.dispatch(Ia(Hr.liftActionArgs)),ut="DRAGGING";function ii(Po,li){if(li===void 0&&(li={shouldBlockNextClick:!1}),Hr.cleanup(),li.shouldBlockNextClick){var wi=ba(window,[{eventName:"click",fn:Ws,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(wi)}co(),de.dispatch(gl({reason:Po}))}return(0,Fe.Z)({isActive:function(){return ku({expected:"DRAGGING",phase:ut,isLockActive:un,shouldWarn:!1})},shouldRespectForcePress:It,drop:function(li){return ii("DROP",li)},cancel:function(li){return ii("CANCEL",li)}},Hr.actions)}function Ga(Hr){var co=Jn(function(Po){ya(function(){return wo({client:Po})})}),ii=Aa({liftActionArgs:{id:Pe,clientSelection:Hr,movementMode:"FLUID"},cleanup:function(){return co.cancel()},actions:{move:co}});return(0,Fe.Z)({},ii,{move:co})}function tr(){var Hr={moveUp:function(){return ya(mi)},moveRight:function(){return ya(jr)},moveDown:function(){return ya(fi)},moveLeft:function(){return ya(Bo)}};return Aa({liftActionArgs:{id:Pe,clientSelection:Ms(ft),movementMode:"SNAP"},cleanup:Qa,actions:Hr})}function cr(){var Hr=ku({expected:"PRE_DRAG",phase:ut,isLockActive:un,shouldWarn:!0});Hr&&ne.release()}var Ur={isActive:function(){return ku({expected:"PRE_DRAG",phase:ut,isLockActive:un,shouldWarn:!1})},shouldRespectForcePress:It,fluidLift:Ga,snapLift:tr,abort:cr};return Ur}var Vs=[qu,El,Ls];function Us(ee){var ne=ee.contextId,oe=ee.store,de=ee.registry,Se=ee.customSensors,Pe=ee.enableDefaultSensors,xe=[].concat(Pe?Vs:[],Se||[]),Ne=(0,b.useState)(function(){return iu()})[0],at=Ft(function(Ga,tr){Ga.isDragging&&!tr.isDragging&&Ne.tryAbandon()},[Ne]);Pi(function(){var Ga=oe.getState(),tr=oe.subscribe(function(){var cr=oe.getState();at(Ga,cr),Ga=cr});return tr},[Ne,oe,at]),Pi(function(){return Ne.tryAbandon},[Ne.tryAbandon]);var Pt=Ft(function(Aa){return fs({lockAPI:Ne,registry:de,store:oe,draggableId:Aa})},[Ne,de,oe]),ft=Ft(function(Aa,Ga,tr){return Ks({lockAPI:Ne,registry:de,contextId:ne,store:oe,draggableId:Aa,forceSensorStop:Ga,sourceEvent:tr&&tr.sourceEvent?tr.sourceEvent:null})},[ne,Ne,de,oe]),lt=Ft(function(Aa){return Hs(ne,Aa)},[ne]),ut=Ft(function(Aa){var Ga=de.draggable.findById(Aa);return Ga?Ga.options:null},[de.draggable]),It=Ft(function(){Ne.isClaimed()&&(Ne.tryAbandon(),oe.getState().phase!=="IDLE"&&oe.dispatch(ho()))},[Ne,oe]),un=Ft(Ne.isClaimed,[Ne]),ma=kt(function(){return{canGetLock:Pt,tryGetLock:ft,findClosestDraggableId:lt,findOptionsForDraggable:ut,tryReleaseLock:It,isLockClaimed:un}},[Pt,ft,lt,ut,It,un]);Ns(xe);for(var ya=0;ya<xe.length;ya++)xe[ya](ma)}var Qs=function(ne){return{onBeforeCapture:ne.onBeforeCapture,onBeforeDragStart:ne.onBeforeDragStart,onDragStart:ne.onDragStart,onDragEnd:ne.onDragEnd,onDragUpdate:ne.onDragUpdate}};function xu(ee){return ee.current||an(!1),ee.current}function Js(ee){var ne=ee.contextId,oe=ee.setCallbacks,de=ee.sensors,Se=ee.nonce,Pe=ee.dragHandleUsageInstructions,xe=(0,b.useRef)(null);Qu();var Ne=ou(ee),at=Ft(function(){return Qs(Ne.current)},[Ne]),Pt=To(ne),ft=ml({contextId:ne,text:Pe}),lt=Ii(ne,Se),ut=Ft(function(Po){xu(xe).dispatch(Po)},[]),It=kt(function(){return(0,Oe.DE)({publishWhileDragging:Ca,updateDroppableScroll:xa,updateDroppableIsEnabled:zr,updateDroppableIsCombineEnabled:mo,collectionStarting:sa},ut)},[ut]),un=hl(),ma=kt(function(){return sr(un,It)},[un,It]),ya=kt(function(){return So((0,Fe.Z)({scrollWindow:Kr,scrollDroppable:ma.scrollDroppable},(0,Oe.DE)({move:wo},ut)))},[ma.scrollDroppable,ut]),Aa=cl(ne),Ga=kt(function(){return Dr({announce:Pt,autoScroller:ya,dimensionMarshal:ma,focusMarshal:Aa,getResponders:at,styleMarshal:lt})},[Pt,ya,ma,Aa,at,lt]);xe.current=Ga;var tr=Ft(function(){var Po=xu(xe),li=Po.getState();li.phase!=="IDLE"&&Po.dispatch(ho())},[]),cr=Ft(function(){var Po=xu(xe).getState();return Po.isDragging||Po.phase==="DROP_ANIMATING"},[]),Ur=kt(function(){return{isDragging:cr,tryAbort:tr}},[cr,tr]);oe(Ur);var Hr=Ft(function(Po){return Zr(xu(xe).getState(),Po)},[]),co=Ft(function(){return _a(xu(xe).getState())},[]),ii=kt(function(){return{marshal:ma,focus:Aa,contextId:ne,canLift:Hr,isMovementAllowed:co,dragHandleUsageInstructionsId:ft,registry:un}},[ne,ma,ft,Aa,Hr,co,un]);return Us({contextId:ne,store:Ga,registry:un,customSensors:de,enableDefaultSensors:ee.enableDefaultSensors!==!1}),(0,b.useEffect)(function(){return tr},[tr]),b.createElement(Ql.Provider,{value:ii},b.createElement(x,{context:Qi,store:Ga},ee.children))}var ps=0;function Xs(){ps=0}function Ys(){return kt(function(){return""+ps++},[])}function Xd(){Xs(),yi()}function $s(ee){var ne=Ys(),oe=ee.dragHandleUsageInstructions||en.dragHandleUsageInstructions;return b.createElement(Rr,null,function(de){return b.createElement(Js,{nonce:ee.nonce,contextId:ne,setCallbacks:de,dragHandleUsageInstructions:oe,enableDefaultSensors:ee.enableDefaultSensors,sensors:ee.sensors,onBeforeCapture:ee.onBeforeCapture,onBeforeDragStart:ee.onBeforeDragStart,onDragStart:ee.onDragStart,onDragUpdate:ee.onDragUpdate,onDragEnd:ee.onDragEnd},ee.children)})}var es=function(ne){return function(oe){return ne===oe}},qs=es("scroll"),ed=es("auto"),td=es("visible"),vs=function(ne,oe){return oe(ne.overflowX)||oe(ne.overflowY)},nd=function(ne,oe){return oe(ne.overflowX)&&oe(ne.overflowY)},hs=function(ne){var oe=window.getComputedStyle(ne),de={overflowX:oe.overflowX,overflowY:oe.overflowY};return vs(de,qs)||vs(de,ed)},ad=function(){return!1;var ne,oe,de,Se},Ss=function ee(ne){return ne==null?null:ne===document.body?ad()?ne:null:ne===document.documentElement?null:hs(ne)?ne:ee(ne.parentElement)},Yd=function(ee){if(ee)var ne=Ss(ee.parentElement)},ts=function(ee){return{x:ee.scrollLeft,y:ee.scrollTop}},rd=function ee(ne){if(!ne)return!1;var oe=window.getComputedStyle(ne);return oe.position==="fixed"?!0:ee(ne.parentElement)},od=function(ee){var ne=Ss(ee),oe=rd(ee);return{closestScrollable:ne,isFixedOnPage:oe}},id=function(ee){var ne=ee.descriptor,oe=ee.isEnabled,de=ee.isCombineEnabled,Se=ee.isFixedOnPage,Pe=ee.direction,xe=ee.client,Ne=ee.page,at=ee.closest,Pt=function(){if(!at)return null;var It=at.scrollSize,un=at.client,ma=Ma({scrollHeight:It.scrollHeight,scrollWidth:It.scrollWidth,height:un.paddingBox.height,width:un.paddingBox.width});return{pageMarginBox:at.page.marginBox,frameClient:un,scrollSize:It,shouldClipSubject:at.shouldClipSubject,scroll:{initial:at.scroll,current:at.scroll,max:ma,diff:{value:za,displacement:za}}}}(),ft=Pe==="vertical"?Xi:Yi,lt=Eo({page:Ne,withPlaceholder:null,axis:ft,frame:Pt}),ut={descriptor:ne,isCombineEnabled:de,isFixedOnPage:Se,axis:ft,isEnabled:oe,client:xe,page:Ne,frame:Pt,subject:lt};return ut},ld=function(ne,oe){var de=ka(ne);if(!oe||ne!==oe)return de;var Se=de.paddingBox.top-oe.scrollTop,Pe=de.paddingBox.left-oe.scrollLeft,xe=Se+oe.scrollHeight,Ne=Pe+oe.scrollWidth,at={top:Se,right:Ne,bottom:xe,left:Pe},Pt=La(at,de.border),ft=Zn({borderBox:Pt,margin:de.margin,border:de.border,padding:de.padding});return ft},ud=function(ee){var ne=ee.ref,oe=ee.descriptor,de=ee.env,Se=ee.windowScroll,Pe=ee.direction,xe=ee.isDropDisabled,Ne=ee.isCombineEnabled,at=ee.shouldClipSubject,Pt=de.closestScrollable,ft=ld(ne,Pt),lt=aa(ft,Se),ut=function(){if(!Pt)return null;var un=ka(Pt),ma={scrollHeight:Pt.scrollHeight,scrollWidth:Pt.scrollWidth};return{client:un,page:aa(un,Se),scroll:ts(Pt),scrollSize:ma,shouldClipSubject:at}}(),It=id({descriptor:oe,isEnabled:!xe,isCombineEnabled:Ne,isFixedOnPage:de.isFixedOnPage,direction:Pe,client:ft,page:lt,closest:ut});return It},sd={passive:!1},dd={passive:!0},Ps=function(ee){return ee.shouldPublishImmediately?sd:dd};function Zu(ee){var ne=(0,b.useContext)(ee);return ne||an(!1),ne}var zu=function(ne){return ne&&ne.env.closestScrollable||null};function cd(ee){var ne=(0,b.useRef)(null),oe=Zu(Ql),de=bi("droppable"),Se=oe.registry,Pe=oe.marshal,xe=ou(ee),Ne=kt(function(){return{id:ee.droppableId,type:ee.type,mode:ee.mode}},[ee.droppableId,ee.mode,ee.type]),at=(0,b.useRef)(Ne),Pt=kt(function(){return xn(function(cr,Ur){ne.current||an(!1);var Hr={x:cr,y:Ur};Pe.updateDroppableScroll(Ne.id,Hr)})},[Ne.id,Pe]),ft=Ft(function(){var cr=ne.current;return!cr||!cr.env.closestScrollable?za:ts(cr.env.closestScrollable)},[]),lt=Ft(function(){var cr=ft();Pt(cr.x,cr.y)},[ft,Pt]),ut=kt(function(){return Jn(lt)},[lt]),It=Ft(function(){var cr=ne.current,Ur=zu(cr);cr&&Ur||an(!1);var Hr=cr.scrollOptions;if(Hr.shouldPublishImmediately){lt();return}ut()},[ut,lt]),un=Ft(function(cr,Ur){ne.current&&an(!1);var Hr=xe.current,co=Hr.getDroppableRef();co||an(!1);var ii=od(co),Po={ref:co,descriptor:Ne,env:ii,scrollOptions:Ur};ne.current=Po;var li=ud({ref:co,descriptor:Ne,env:ii,windowScroll:cr,direction:Hr.direction,isDropDisabled:Hr.isDropDisabled,isCombineEnabled:Hr.isCombineEnabled,shouldClipSubject:!Hr.ignoreContainerClipping}),wi=ii.closestScrollable;return wi&&(wi.setAttribute(hi.contextId,oe.contextId),wi.addEventListener("scroll",It,Ps(Po.scrollOptions))),li},[oe.contextId,Ne,It,xe]),ma=Ft(function(){var cr=ne.current,Ur=zu(cr);return cr&&Ur||an(!1),ts(Ur)},[]),ya=Ft(function(){var cr=ne.current;cr||an(!1);var Ur=zu(cr);ne.current=null,Ur&&(ut.cancel(),Ur.removeAttribute(hi.contextId),Ur.removeEventListener("scroll",It,Ps(cr.scrollOptions)))},[It,ut]),Aa=Ft(function(cr){var Ur=ne.current;Ur||an(!1);var Hr=zu(Ur);Hr||an(!1),Hr.scrollTop+=cr.y,Hr.scrollLeft+=cr.x},[]),Ga=kt(function(){return{getDimensionAndWatchScroll:un,getScrollWhileDragging:ma,dragStopped:ya,scroll:Aa}},[ya,un,ma,Aa]),tr=kt(function(){return{uniqueId:de,descriptor:Ne,callbacks:Ga}},[Ga,Ne,de]);Pi(function(){return at.current=tr.descriptor,Se.droppable.register(tr),function(){ne.current&&ya(),Se.droppable.unregister(tr)}},[Ga,Ne,ya,tr,Pe,Se.droppable]),Pi(function(){ne.current&&Pe.updateDroppableIsEnabled(at.current.id,!ee.isDropDisabled)},[ee.isDropDisabled,Pe]),Pi(function(){ne.current&&Pe.updateDroppableIsCombineEnabled(at.current.id,ee.isCombineEnabled)},[ee.isCombineEnabled,Pe])}function ns(){}var Es={width:0,height:0,margin:Qr},gd=function(ne){var oe=ne.isAnimatingOpenOnMount,de=ne.placeholder,Se=ne.animate;return oe||Se==="close"?Es:{height:de.client.borderBox.height,width:de.client.borderBox.width,margin:de.client.margin}},md=function(ne){var oe=ne.isAnimatingOpenOnMount,de=ne.placeholder,Se=ne.animate,Pe=gd({isAnimatingOpenOnMount:oe,placeholder:de,animate:Se});return{display:de.display,boxSizing:"border-box",width:Pe.width,height:Pe.height,marginTop:Pe.margin.top,marginRight:Pe.margin.right,marginBottom:Pe.margin.bottom,marginLeft:Pe.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:Se!=="none"?kl.placeholder:null}};function fd(ee){var ne=(0,b.useRef)(null),oe=Ft(function(){ne.current&&(clearTimeout(ne.current),ne.current=null)},[]),de=ee.animate,Se=ee.onTransitionEnd,Pe=ee.onClose,xe=ee.contextId,Ne=(0,b.useState)(ee.animate==="open"),at=Ne[0],Pt=Ne[1];(0,b.useEffect)(function(){return at?de!=="open"?(oe(),Pt(!1),ns):ne.current?ns:(ne.current=setTimeout(function(){ne.current=null,Pt(!1)}),oe):ns},[de,at,oe]);var ft=Ft(function(ut){ut.propertyName==="height"&&(Se(),de==="close"&&Pe())},[de,Pe,Se]),lt=md({isAnimatingOpenOnMount:at,animate:ee.animate,placeholder:ee.placeholder});return b.createElement(ee.placeholder.tagName,{style:lt,"data-rbd-placeholder-context-id":xe,onTransitionEnd:ft,ref:ee.innerRef})}var pd=b.memo(fd),as=b.createContext(null);function ys(ee){ee&&Uo(ee)||an(!1)}function rs(ee){return typeof ee=="boolean"}function os(ee,ne){ne.forEach(function(oe){return oe(ee)})}var vd=[function(ne){var oe=ne.props;oe.droppableId||an(!1),typeof oe.droppableId!="string"&&an(!1)},function(ne){var oe=ne.props;rs(oe.isDropDisabled)||an(!1),rs(oe.isCombineEnabled)||an(!1),rs(oe.ignoreContainerClipping)||an(!1)},function(ne){var oe=ne.getDroppableRef;ys(oe())}],hd=[function(ne){var oe=ne.props,de=ne.getPlaceholderRef;if(oe.placeholder)var Se=de()}],Sd=[function(ne){var oe=ne.props;oe.renderClone||an(!1)},function(ne){var oe=ne.getPlaceholderRef;oe()&&an(!1)}];function Pd(ee){Zl(function(){os(ee,vd),ee.props.mode==="standard"&&os(ee,hd),ee.props.mode==="virtual"&&os(ee,Sd)})}var Ed=function(ee){Ce(ne,ee);function ne(){for(var de,Se=arguments.length,Pe=new Array(Se),xe=0;xe<Se;xe++)Pe[xe]=arguments[xe];return de=ee.call.apply(ee,[this].concat(Pe))||this,de.state={isVisible:!!de.props.on,data:de.props.on,animate:de.props.shouldAnimate&&de.props.on?"open":"none"},de.onClose=function(){de.state.animate==="close"&&de.setState({isVisible:!1})},de}ne.getDerivedStateFromProps=function(Se,Pe){return Se.shouldAnimate?Se.on?{isVisible:!0,data:Se.on,animate:"open"}:Pe.isVisible?{isVisible:!0,data:Pe.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!Se.on,data:Se.on,animate:"none"}};var oe=ne.prototype;return oe.render=function(){if(!this.state.isVisible)return null;var Se={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(Se)},ne}(b.PureComponent),bs={dragging:5e3,dropAnimating:4500},yd=function(ne,oe){return oe?kl.drop(oe.duration):ne?kl.snap:kl.fluid},bd=function(ne,oe){return ne?oe?Il.opacity.drop:Il.opacity.combining:null},Cd=function(ne){return ne.forceShouldAnimate!=null?ne.forceShouldAnimate:ne.mode==="SNAP"};function xd(ee){var ne=ee.dimension,oe=ne.client,de=ee.offset,Se=ee.combineWith,Pe=ee.dropping,xe=!!Se,Ne=Cd(ee),at=!!Pe,Pt=at?Kl.drop(de,xe):Kl.moveTo(de),ft={position:"fixed",top:oe.marginBox.top,left:oe.marginBox.left,boxSizing:"border-box",width:oe.borderBox.width,height:oe.borderBox.height,transition:yd(Ne,Pe),transform:Pt,opacity:bd(xe,at),zIndex:at?bs.dropAnimating:bs.dragging,pointerEvents:"none"};return ft}function Bd(ee){return{transform:Kl.moveTo(ee.offset),transition:ee.shouldAnimateDisplacement?null:"none"}}function Ad(ee){return ee.type==="DRAGGING"?xd(ee):Bd(ee)}function Fd(ee,ne,oe){oe===void 0&&(oe=za);var de=window.getComputedStyle(ne),Se=ne.getBoundingClientRect(),Pe=vn(Se,de),xe=aa(Pe,oe),Ne={client:Pe,tagName:ne.tagName.toLowerCase(),display:de.display},at={x:Pe.marginBox.width,y:Pe.marginBox.height},Pt={descriptor:ee,placeholder:Ne,displaceBy:at,client:Pe,page:xe};return Pt}function wd(ee){var ne=bi("draggable"),oe=ee.descriptor,de=ee.registry,Se=ee.getDraggableRef,Pe=ee.canDragInteractiveElements,xe=ee.shouldRespectForcePress,Ne=ee.isEnabled,at=kt(function(){return{canDragInteractiveElements:Pe,shouldRespectForcePress:xe,isEnabled:Ne}},[Pe,Ne,xe]),Pt=Ft(function(It){var un=Se();return un||an(!1),Fd(oe,un,It)},[oe,Se]),ft=kt(function(){return{uniqueId:ne,descriptor:oe,options:at,getDimension:Pt}},[oe,Pt,at,ne]),lt=(0,b.useRef)(ft),ut=(0,b.useRef)(!0);Pi(function(){return de.draggable.register(lt.current),function(){return de.draggable.unregister(lt.current)}},[de.draggable]),Pi(function(){if(ut.current){ut.current=!1;return}var It=lt.current;lt.current=ft,de.draggable.update(ft,It)},[ft,de.draggable])}function Dd(ee,ne,oe){Zl(function(){function de(Pe){return"Draggable[id: "+Pe+"]: "}var Se=ee.draggableId;Se||an(!1),typeof Se!="string"&&an(!1),oo(ee.index)||an(!1),ee.mapped.type!=="DRAGGING"&&(ys(oe()),ee.isEnabled&&(zo(ne,Se)||an(!1)))})}function Id(ee){}function Od(ee){ee.preventDefault()}function Ld(ee){var ne=(0,b.useRef)(null),oe=Ft(function(Po){ne.current=Po},[]),de=Ft(function(){return ne.current},[]),Se=Zu(Ql),Pe=Se.contextId,xe=Se.dragHandleUsageInstructionsId,Ne=Se.registry,at=Zu(as),Pt=at.type,ft=at.droppableId,lt=kt(function(){return{id:ee.draggableId,index:ee.index,type:Pt,droppableId:ft}},[ee.draggableId,ee.index,Pt,ft]),ut=ee.children,It=ee.draggableId,un=ee.isEnabled,ma=ee.shouldRespectForcePress,ya=ee.canDragInteractiveElements,Aa=ee.isClone,Ga=ee.mapped,tr=ee.dropAnimationFinished;if(Dd(ee,Pe,de),Id(Aa),!Aa){var cr=kt(function(){return{descriptor:lt,registry:Ne,getDraggableRef:de,canDragInteractiveElements:ya,shouldRespectForcePress:ma,isEnabled:un}},[lt,Ne,de,ya,ma,un]);wd(cr)}var Ur=kt(function(){return un?{tabIndex:0,role:"button","aria-describedby":xe,"data-rbd-drag-handle-draggable-id":It,"data-rbd-drag-handle-context-id":Pe,draggable:!1,onDragStart:Od}:null},[Pe,xe,It,un]),Hr=Ft(function(Po){Ga.type==="DRAGGING"&&Ga.dropping&&Po.propertyName==="transform"&&tr()},[tr,Ga]),co=kt(function(){var Po=Ad(Ga),li=Ga.type==="DRAGGING"&&Ga.dropping?Hr:null,wi={innerRef:oe,draggableProps:{"data-rbd-draggable-context-id":Pe,"data-rbd-draggable-id":It,style:Po,onTransitionEnd:li},dragHandleProps:Ur};return wi},[Pe,Ur,It,Ga,Hr,oe]),ii=kt(function(){return{draggableId:lt.id,type:lt.type,source:{index:lt.index,droppableId:lt.droppableId}}},[lt.droppableId,lt.id,lt.index,lt.type]);return ut(co,Ga.snapshot,ii)}var Cs=function(ee,ne){return ee===ne},xs=function(ee){var ne=ee.combine,oe=ee.destination;return oe?oe.droppableId:ne?ne.droppableId:null},Nd=function(ne){return ne.combine?ne.combine.draggableId:null},Rd=function(ne){return ne.at&&ne.at.type==="COMBINE"?ne.at.combine.draggableId:null};function Td(){var ee=xn(function(Se,Pe){return{x:Se,y:Pe}}),ne=xn(function(Se,Pe,xe,Ne,at){return{isDragging:!0,isClone:Pe,isDropAnimating:!!at,dropAnimation:at,mode:Se,draggingOver:xe,combineWith:Ne,combineTargetFor:null}}),oe=xn(function(Se,Pe,xe,Ne,at,Pt,ft){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:at,combineWith:Pt,mode:Pe,offset:Se,dimension:xe,forceShouldAnimate:ft,snapshot:ne(Pe,Ne,at,Pt,null)}}}),de=function(Pe,xe){if(Pe.isDragging){if(Pe.critical.draggable.id!==xe.draggableId)return null;var Ne=Pe.current.client.offset,at=Pe.dimensions.draggables[xe.draggableId],Pt=ar(Pe.impact),ft=Rd(Pe.impact),lt=Pe.forceShouldAnimate;return oe(ee(Ne.x,Ne.y),Pe.movementMode,at,xe.isClone,Pt,ft,lt)}if(Pe.phase==="DROP_ANIMATING"){var ut=Pe.completed;if(ut.result.draggableId!==xe.draggableId)return null;var It=xe.isClone,un=Pe.dimensions.draggables[xe.draggableId],ma=ut.result,ya=ma.mode,Aa=xs(ma),Ga=Nd(ma),tr=Pe.dropDuration,cr={duration:tr,curve:Dl.drop,moveTo:Pe.newHomeClientOffset,opacity:Ga?Il.opacity.drop:null,scale:Ga?Il.scale.drop:null};return{mapped:{type:"DRAGGING",offset:Pe.newHomeClientOffset,dimension:un,dropping:cr,draggingOver:Aa,combineWith:Ga,mode:ya,forceShouldAnimate:null,snapshot:ne(ya,It,Aa,Ga,cr)}}}return null};return de}function Bs(ee){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:ee,combineWith:null}}var Md={mapped:{type:"SECONDARY",offset:za,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Bs(null)}};function _d(){var ee=xn(function(xe,Ne){return{x:xe,y:Ne}}),ne=xn(Bs),oe=xn(function(xe,Ne,at){return Ne===void 0&&(Ne=null),{mapped:{type:"SECONDARY",offset:xe,combineTargetFor:Ne,shouldAnimateDisplacement:at,snapshot:ne(Ne)}}}),de=function(Ne){return Ne?oe(za,Ne,!0):null},Se=function(Ne,at,Pt,ft){var lt=Pt.displaced.visible[Ne],ut=!!(ft.inVirtualList&&ft.effected[Ne]),It=xi(Pt),un=It&&It.draggableId===Ne?at:null;if(!lt){if(!ut)return de(un);if(Pt.displaced.invisible[Ne])return null;var ma=Rn(ft.displacedBy.point),ya=ee(ma.x,ma.y);return oe(ya,un,!0)}if(ut)return de(un);var Aa=Pt.displacedBy.point,Ga=ee(Aa.x,Aa.y);return oe(Ga,un,lt.shouldAnimate)},Pe=function(Ne,at){if(Ne.isDragging)return Ne.critical.draggable.id===at.draggableId?null:Se(at.draggableId,Ne.critical.draggable.id,Ne.impact,Ne.afterCritical);if(Ne.phase==="DROP_ANIMATING"){var Pt=Ne.completed;return Pt.result.draggableId===at.draggableId?null:Se(at.draggableId,Pt.result.draggableId,Pt.impact,Pt.afterCritical)}return null};return Pe}var kd=function(){var ne=Td(),oe=_d(),de=function(Pe,xe){return ne(Pe,xe)||oe(Pe,xe)||Md};return de},Zd={dropAnimationFinished:wl},zd=Ae(kd,Zd,null,{context:Qi,pure:!0,areStatePropsEqual:Cs})(Ld);function As(ee){var ne=Zu(as),oe=ne.isUsingCloneFor;return oe===ee.draggableId&&!ee.isClone?null:b.createElement(zd,ee)}function jd(ee){var ne=typeof ee.isDragDisabled=="boolean"?!ee.isDragDisabled:!0,oe=!!ee.disableInteractiveElementBlocking,de=!!ee.shouldRespectForcePress;return b.createElement(As,(0,Fe.Z)({},ee,{isClone:!1,isEnabled:ne,canDragInteractiveElements:oe,shouldRespectForcePress:de}))}function Hd(ee){var ne=(0,b.useContext)(Ql);ne||an(!1);var oe=ne.contextId,de=ne.isMovementAllowed,Se=(0,b.useRef)(null),Pe=(0,b.useRef)(null),xe=ee.children,Ne=ee.droppableId,at=ee.type,Pt=ee.mode,ft=ee.direction,lt=ee.ignoreContainerClipping,ut=ee.isDropDisabled,It=ee.isCombineEnabled,un=ee.snapshot,ma=ee.useClone,ya=ee.updateViewportMaxScroll,Aa=ee.getContainerForClone,Ga=Ft(function(){return Se.current},[]),tr=Ft(function(Li){Se.current=Li},[]),cr=Ft(function(){return Pe.current},[]),Ur=Ft(function(Li){Pe.current=Li},[]);Pd({props:ee,getDroppableRef:Ga,getPlaceholderRef:cr});var Hr=Ft(function(){de()&&ya({maxScroll:Za()})},[de,ya]);cd({droppableId:Ne,type:at,mode:Pt,direction:ft,isDropDisabled:ut,isCombineEnabled:It,ignoreContainerClipping:lt,getDroppableRef:Ga});var co=b.createElement(Ed,{on:ee.placeholder,shouldAnimate:ee.shouldAnimatePlaceholder},function(Li){var yl=Li.onClose,fl=Li.data,rl=Li.animate;return b.createElement(pd,{placeholder:fl,onClose:yl,innerRef:Ur,animate:rl,contextId:oe,onTransitionEnd:Hr})}),ii=kt(function(){return{innerRef:tr,placeholder:co,droppableProps:{"data-rbd-droppable-id":Ne,"data-rbd-droppable-context-id":oe}}},[oe,Ne,co,tr]),Po=ma?ma.dragging.draggableId:null,li=kt(function(){return{droppableId:Ne,type:at,isUsingCloneFor:Po}},[Ne,Po,at]);function wi(){if(!ma)return null;var Li=ma.dragging,yl=ma.render,fl=b.createElement(As,{draggableId:Li.draggableId,index:Li.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(rl,bl){return yl(rl,bl,Li)});return qt.createPortal(fl,Aa())}return b.createElement(as.Provider,{value:li},xe(ii,un),wi())}var is=function(ne,oe){return ne===oe.droppable.type},Fs=function(ne,oe){return oe.draggables[ne.draggable.id]},Gd=function(){var ne={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},oe=(0,Fe.Z)({},ne,{shouldAnimatePlaceholder:!1}),de=xn(function(xe){return{draggableId:xe.id,type:xe.type,source:{index:xe.index,droppableId:xe.droppableId}}}),Se=xn(function(xe,Ne,at,Pt,ft,lt){var ut=ft.descriptor.id,It=ft.descriptor.droppableId===xe;if(It){var un=lt?{render:lt,dragging:de(ft.descriptor)}:null,ma={isDraggingOver:at,draggingOverWith:at?ut:null,draggingFromThisWith:ut,isUsingPlaceholder:!0};return{placeholder:ft.placeholder,shouldAnimatePlaceholder:!1,snapshot:ma,useClone:un}}if(!Ne)return oe;if(!Pt)return ne;var ya={isDraggingOver:at,draggingOverWith:ut,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:ft.placeholder,shouldAnimatePlaceholder:!0,snapshot:ya,useClone:null}}),Pe=function(Ne,at){var Pt=at.droppableId,ft=at.type,lt=!at.isDropDisabled,ut=at.renderClone;if(Ne.isDragging){var It=Ne.critical;if(!is(ft,It))return oe;var un=Fs(It,Ne.dimensions),ma=ar(Ne.impact)===Pt;return Se(Pt,lt,ma,ma,un,ut)}if(Ne.phase==="DROP_ANIMATING"){var ya=Ne.completed;if(!is(ft,ya.critical))return oe;var Aa=Fs(ya.critical,Ne.dimensions);return Se(Pt,lt,xs(ya.result)===Pt,ar(ya.impact)===Pt,Aa,ut)}if(Ne.phase==="IDLE"&&Ne.completed&&!Ne.shouldFlush){var Ga=Ne.completed;if(!is(ft,Ga.critical))return oe;var tr=ar(Ga.impact)===Pt,cr=!!(Ga.impact.at&&Ga.impact.at.type==="COMBINE"),Ur=Ga.critical.droppable.id===Pt;return tr?cr?ne:oe:Ur?ne:oe}return oe};return Pe},Wd={updateViewportMaxScroll:ur};function Kd(){return document.body||an(!1),document.body}var Vd={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Kd},ws=Ae(Gd,Wd,null,{context:Qi,pure:!0,areStatePropsEqual:Cs})(Hd);ws.defaultProps=Vd},38486:function(Ot,Rt){"use strict";var ae;var b=60103,se=60106,Ce=60107,Fe=60108,Oe=60114,Re=60109,ue=60110,Ze=60112,We=60113,_e=60120,ke=60115,je=60116,Ie=60121,le=60122,E=60117,a=60129,x=60131;if(typeof Symbol=="function"&&Symbol.for){var y=Symbol.for;b=y("react.element"),se=y("react.portal"),Ce=y("react.fragment"),Fe=y("react.strict_mode"),Oe=y("react.profiler"),Re=y("react.provider"),ue=y("react.context"),Ze=y("react.forward_ref"),We=y("react.suspense"),_e=y("react.suspense_list"),ke=y("react.memo"),je=y("react.lazy"),Ie=y("react.block"),le=y("react.server.block"),E=y("react.fundamental"),a=y("react.debug_trace_mode"),x=y("react.legacy_hidden")}function z(Je){if(typeof Je=="object"&&Je!==null){var Ge=Je.$$typeof;switch(Ge){case b:switch(Je=Je.type,Je){case Ce:case Oe:case Fe:case We:case _e:return Je;default:switch(Je=Je&&Je.$$typeof,Je){case ue:case Ze:case je:case ke:case Re:return Je;default:return Ge}}case se:return Ge}}}var te=Re,re=b,ie=Ze,ce=Ce,pe=je,ge=ke,ye=se,Ee=Oe,we=Fe,ve=We;ae=ue,ae=te,ae=re,ae=ie,ae=ce,ae=pe,ae=ge,ae=ye,ae=Ee,ae=we,ae=ve,ae=function(){return!1},ae=function(){return!1},Rt.isContextConsumer=function(Je){return z(Je)===ue},ae=function(Je){return z(Je)===Re},ae=function(Je){return typeof Je=="object"&&Je!==null&&Je.$$typeof===b},ae=function(Je){return z(Je)===Ze},ae=function(Je){return z(Je)===Ce},ae=function(Je){return z(Je)===je},ae=function(Je){return z(Je)===ke},ae=function(Je){return z(Je)===se},ae=function(Je){return z(Je)===Oe},ae=function(Je){return z(Je)===Fe},ae=function(Je){return z(Je)===We},ae=function(Je){return typeof Je=="string"||typeof Je=="function"||Je===Ce||Je===Oe||Je===a||Je===Fe||Je===We||Je===_e||Je===x||typeof Je=="object"&&Je!==null&&(Je.$$typeof===je||Je.$$typeof===ke||Je.$$typeof===Re||Je.$$typeof===ue||Je.$$typeof===Ze||Je.$$typeof===E||Je.$$typeof===Ie||Je[0]===le)},ae=z},53410:function(Ot,Rt,ae){"use strict";Ot.exports=ae(38486)},32637:function(Ot){"use strict";Ot.exports="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAtKADAAQAAAABAAAAtAAAAAD/7QA4UGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAAA4QklNBCUAAAAAABDUHYzZjwCyBOmACZjs+EJ+/8IAEQgAtAC0AwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAMCBAEFAAYHCAkKC//EAMMQAAEDAwIEAwQGBAcGBAgGcwECAAMRBBIhBTETIhAGQVEyFGFxIweBIJFCFaFSM7EkYjAWwXLRQ5I0ggjhU0AlYxc18JNzolBEsoPxJlQ2ZJR0wmDShKMYcOInRTdls1V1pJXDhfLTRnaA40dWZrQJChkaKCkqODk6SElKV1hZWmdoaWp3eHl6hoeIiYqQlpeYmZqgpaanqKmqsLW2t7i5usDExcbHyMnK0NTV1tfY2drg5OXm5+jp6vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAQIAAwQFBgcICQoL/8QAwxEAAgIBAwMDAgMFAgUCBASHAQACEQMQEiEEIDFBEwUwIjJRFEAGMyNhQhVxUjSBUCSRoUOxFgdiNVPw0SVgwUThcvEXgmM2cCZFVJInotIICQoYGRooKSo3ODk6RkdISUpVVldYWVpkZWZnaGlqc3R1dnd4eXqAg4SFhoeIiYqQk5SVlpeYmZqgo6SlpqeoqaqwsrO0tba3uLm6wMLDxMXGx8jJytDT1NXW19jZ2uDi4+Tl5ufo6ery8/T19vf4+fr/2wBDAAICAgICAgMCAgMEAwMDBAYEBAQEBgcGBgYGBgcJBwcHBwcHCQkJCQkJCQkKCgoK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