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.
385 lines
1.3 MiB
385 lines
1.3 MiB
(self.webpackChunk=self.webpackChunk||[]).push([[5816],{33463:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return ue}});var b=ee(87462),ie=ee(67294),Be={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=Be,Ne=ee(74643),je=function(Ae,Me){return ie.createElement(Ne.Z,(0,b.Z)({},Ae,{ref:Me,icon:Fe}))},ue=ie.forwardRef(je)},28575:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return ue}});var b=ee(87462),ie=ee(67294),Be={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=Be,Ne=ee(74643),je=function(Ae,Me){return ie.createElement(Ne.Z,(0,b.Z)({},Ae,{ref:Me,icon:Fe}))},ue=ie.forwardRef(je)},81893:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return ue}});var b=ee(87462),ie=ee(67294),Be={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=Be,Ne=ee(74643),je=function(Ae,Me){return ie.createElement(Ne.Z,(0,b.Z)({},Ae,{ref:Me,icon:Fe}))},ue=ie.forwardRef(je)},55304:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return ue}});var b=ee(87462),ie=ee(67294),Be={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=Be,Ne=ee(74643),je=function(Ae,Me){return ie.createElement(Ne.Z,(0,b.Z)({},Ae,{ref:Me,icon:Fe}))},ue=ie.forwardRef(je)},73148:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return ue}});var b=ee(87462),ie=ee(67294),Be={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=Be,Ne=ee(74643),je=function(Ae,Me){return ie.createElement(Ne.Z,(0,b.Z)({},Ae,{ref:Me,icon:Fe}))},ue=ie.forwardRef(je)},56747:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return ue}});var b=ee(87462),ie=ee(67294),Be={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=Be,Ne=ee(74643),je=function(Ae,Me){return ie.createElement(Ne.Z,(0,b.Z)({},Ae,{ref:Me,icon:Fe}))},ue=ie.forwardRef(je)},50881:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return ue}});var b=ee(87462),ie=ee(67294),Be={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=Be,Ne=ee(74643),je=function(Ae,Me){return ie.createElement(Ne.Z,(0,b.Z)({},Ae,{ref:Me,icon:Fe}))},ue=ie.forwardRef(je)},22751:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return ue}});var b=ee(87462),ie=ee(67294),Be={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=Be,Ne=ee(74643),je=function(Ae,Me){return ie.createElement(Ne.Z,(0,b.Z)({},Ae,{ref:Me,icon:Fe}))},ue=ie.forwardRef(je)},24018:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return ue}});var b=ee(87462),ie=ee(67294),Be={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=Be,Ne=ee(74643),je=function(Ae,Me){return ie.createElement(Ne.Z,(0,b.Z)({},Ae,{ref:Me,icon:Fe}))},ue=ie.forwardRef(je)},34182:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return ue}});var b=ee(87462),ie=ee(67294),Be={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=Be,Ne=ee(74643),je=function(Ae,Me){return ie.createElement(Ne.Z,(0,b.Z)({},Ae,{ref:Me,icon:Fe}))},ue=ie.forwardRef(je)},40043:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return ue}});var b=ee(87462),ie=ee(67294),Be={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=Be,Ne=ee(74643),je=function(Ae,Me){return ie.createElement(Ne.Z,(0,b.Z)({},Ae,{ref:Me,icon:Fe}))},ue=ie.forwardRef(je)},74664:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return ue}});var b=ee(87462),ie=ee(67294),Be={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=Be,Ne=ee(74643),je=function(Ae,Me){return ie.createElement(Ne.Z,(0,b.Z)({},Ae,{ref:Me,icon:Fe}))},ue=ie.forwardRef(je)},91034:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return ue}});var b=ee(87462),ie=ee(67294),Be={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=Be,Ne=ee(74643),je=function(Ae,Me){return ie.createElement(Ne.Z,(0,b.Z)({},Ae,{ref:Me,icon:Fe}))},ue=ie.forwardRef(je)},71736:function(Bt,Ct){"use strict";Ct.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},52654:function(Bt,Ct){"use strict";Ct.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"}},14375:function(Bt,Ct,ee){"use strict";var b=ee(67294),ie=Object.defineProperty,Be=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,je=(Ae,Me,Te)=>Me in Ae?ie(Ae,Me,{enumerable:!0,configurable:!0,writable:!0,value:Te}):Ae[Me]=Te,ue=(Ae,Me)=>{for(var Te in Me||(Me={}))Fe.call(Me,Te)&&je(Ae,Te,Me[Te]);if(Be)for(var Te of Be(Me))Ne.call(Me,Te)&&je(Ae,Te,Me[Te]);return Ae};const Ge=Ae=>React.createElement("svg",ue({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Ae),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"})));Ct.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},18023:function(){"use strict";function Bt(se,E,a,x){a===void 0&&(a=0),x===void 0&&(x=1/0),this._name=se,this._defaultValue=E,this._minimum=a,this._maximum=x}Object.defineProperty(Bt.prototype,"name",{get:function(){return this._name},set:function(se){if(typeof se!="string"||se==="")throw new Error("Shape name must be a valid string.");this._name=se}}),Object.defineProperty(Bt.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(se){if(typeof se!="number"||isNaN(se))throw new Error("The default value must be a real number, not: "+se);this._defaultValue=se}}),Object.defineProperty(Bt.prototype,"minimum",{get:function(){return this._minimum},set:function(se){if(typeof se!="number"||isNaN(se))throw new Error("Minimum must be a real number, not: "+se);this._minimum=se}}),Object.defineProperty(Bt.prototype,"maximum",{get:function(){return this._maximum},set:function(se){if(typeof se!="number"||isNaN(se))throw new Error("Maximum must be a real number, not: "+se);this._maximum=se}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(se,E){var a=go.Shape._FigureParameters[se];return a?a[E]:null},go.Shape.setFigureParameter=function(se,E,a){if(!(a instanceof Bt))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[se];x||(x=[],go.Shape._FigureParameters[se]=x),x[E]=a};var Ct=[];function ee(se,E){var a=Ct.pop();return a===void 0?new go.Point(se,E):(a.x=se,a.y=E,a)}function b(){var se=Ct.pop();return se===void 0?new go.Point:se}function ie(se){Ct.push(se)}function Be(se,E,a,x,y,z,te,re,oe){oe||(oe=new go.Point);var de=se-a,pe=y-te,ge=NaN,xe=NaN;if(de===0)if(pe===0)se===a&&(ge=se,xe=E);else{var we=(z-re)/pe,Se=z-we*y;ge=se,xe=we*ge+Se}else if(pe===0){var ve=(E-x)/de,Qe=E-ve*se;ge=y,xe=ve*ge+Qe}else{var ve=(E-x)/de,we=(z-re)/pe,Qe=E-ve*se,Se=z-we*y;ge=(Se-Qe)/(ve-we),xe=ve*ge+Qe}return oe.x=ge,oe.y=xe,oe}function Fe(se,E,a,x,y,z,te,re,oe,de,pe,ge,xe,we){var Se=1-oe,ve=oe,Qe=se*Se+a*ve,Le=E*Se+x*ve,ke=a*Se+y*ve,Ce=x*Se+z*ve,Ke=y*Se+te*ve,qe=z*Se+re*ve,Ue=Qe*Se+ke*ve,Ye=Le*Se+Ce*ve,ct=ke*Se+Ke*ve,yt=Ce*Se+qe*ve,$t=Ue*Se+ct*ve,an=Ye*Se+yt*ve;de.x=Qe,de.y=Le,pe.x=Ue,pe.y=Ye,ge.x=$t,ge.y=an,xe.x=ct,xe.y=yt,we.x=Ke,we.y=qe}var Ne=new go.Spot(.156,.156),je=new go.Spot(.844,.844),ue=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Bt("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(se,E,a){var x=se?se.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(se,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(se,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(se,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(se,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(se,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(se,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(se,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(se,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(se,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(se,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(se,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(se,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(se,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(se,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(se,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=Ne,y.spot2=je,y.defaultStretch=go.GraphObject.Uniform,y}),go.Shape.defineFigureGenerator("Line1",function(se,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(se,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(se,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(se,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(se,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(se,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(se,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(se,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(se,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(se,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 Bt("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(se,E,a){var x=se?se.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 Bt("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(se,E,a){var x=se?se.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 Bt("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(se,E,a){var x=se?se.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 Bt("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(se,E,a){var x=se?se.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 Bt("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(se,E,a){var x=se?se.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 Ge=[];function Ae(){var se=Ge.pop();return se===void 0?[]:se}function Me(se){se.length=0,Ge.push(se)}function Te(se){for(var E=Ae(),a=.5,x=.5,y=Math.PI*1.5,z=0,te=0;te<se;te++)z=2*Math.PI/se*te+y,E[te]=new go.Point(x+a*Math.cos(z),x+a*Math.sin(z));return E.push(E[0]),E}function Oe(se){var E=ye(se),a=Ae();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 Me(E),a}function ye(se){for(var E=Te(se),a=Ae(),x=Math.floor(E.length/2),y=E.length-1,z=se%2===0?2:1,te=0;te<y;te++){var re=E[te],oe=E[te+1],de=E[(x+te-1)%y],pe=E[(x+te+z)%y];a[te*2]=re,a[te*2+1]=Be(re.x,re.y,de.x,de.y,oe.x,oe.y,pe.x,pe.y,new go.Point)}return a[a.length]=a[0],Me(E),a}go.Shape.defineFigureGenerator("Pentagon",function(se,E,a){var x=Te(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()),Me(x),y.spot1=new go.Spot(.2,.22),y.spot2=new go.Spot(.8,.9),y}),go.Shape.defineFigureGenerator("Hexagon",function(se,E,a){var x=Te(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()),Me(x),y.spot1=new go.Spot(.07,.25),y.spot2=new go.Spot(.93,.75),y}),go.Shape.defineFigureGenerator("Heptagon",function(se,E,a){var x=Te(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()),Me(x),y.spot1=new go.Spot(.2,.15),y.spot2=new go.Spot(.8,.85),y}),go.Shape.defineFigureGenerator("Octagon",function(se,E,a){var x=Te(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()),Me(x),y.spot1=new go.Spot(.15,.15),y.spot2=new go.Spot(.85,.85),y}),go.Shape.defineFigureGenerator("Nonagon",function(se,E,a){var x=Te(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()),Me(x),y.spot1=new go.Spot(.17,.13),y.spot2=new go.Spot(.82,.82),y}),go.Shape.defineFigureGenerator("Decagon",function(se,E,a){var x=Te(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()),Me(x),y.spot1=new go.Spot(.16,.16),y.spot2=new go.Spot(.84,.84),y}),go.Shape.defineFigureGenerator("Dodecagon",function(se,E,a){var x=Te(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()),Me(x),y.spot1=new go.Spot(.16,.16),y.spot2=new go.Spot(.84,.84),y}),go.Shape.defineFigureGenerator("FivePointedStar",function(se,E,a){var x=ye(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()),Me(x),y.spot1=new go.Spot(.266,.333),y.spot2=new go.Spot(.733,.733),y}),go.Shape.defineFigureGenerator("SixPointedStar",function(se,E,a){var x=ye(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()),Me(x),y.spot1=new go.Spot(.17,.25),y.spot2=new go.Spot(.83,.75),y}),go.Shape.defineFigureGenerator("SevenPointedStar",function(se,E,a){var x=ye(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()),Me(x),y.spot1=new go.Spot(.222,.277),y.spot2=new go.Spot(.777,.666),y}),go.Shape.defineFigureGenerator("EightPointedStar",function(se,E,a){var x=ye(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()),Me(x),y.spot1=new go.Spot(.25,.25),y.spot2=new go.Spot(.75,.75),y}),go.Shape.defineFigureGenerator("NinePointedStar",function(se,E,a){var x=ye(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()),Me(x),y.spot1=new go.Spot(.222,.277),y.spot2=new go.Spot(.777,.666),y}),go.Shape.defineFigureGenerator("TenPointedStar",function(se,E,a){var x=ye(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()),Me(x),y.spot1=new go.Spot(.281,.261),y.spot2=new go.Spot(.723,.748),y}),go.Shape.defineFigureGenerator("FivePointedBurst",function(se,E,a){var x=Oe(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(),Me(x),y.spot1=new go.Spot(.222,.277),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("SixPointedBurst",function(se,E,a){var x=Oe(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(),Me(x),y.spot1=new go.Spot(.17,.222),y.spot2=new go.Spot(.833,.777),y}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(se,E,a){var x=Oe(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(),Me(x),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("EightPointedBurst",function(se,E,a){var x=Oe(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(),Me(x),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("NinePointedBurst",function(se,E,a){var x=Oe(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(),Me(x),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("TenPointedBurst",function(se,E,a){var x=Oe(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(),Me(x),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.setFigureParameter("FramedRectangle",0,new Bt("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Bt("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(se,E,a){var x=se?se.parameter1:NaN,y=se?se.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 Bt("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(se,E,a){var x=se?se.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=Ne,z.spot2=je,z.defaultStretch=go.GraphObject.Uniform,z}),go.Shape.defineFigureGenerator("Cloud",function(se,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(se,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 Bt("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Bt("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(se,E,a){var x=se?se.parameter1:NaN,y=se?se.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(se,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 Bt("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(se,E,a){var x=se?se.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 Bt("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(se,E,a){var x=se?se.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 Bt("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(se,E,a){var x=se?se.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),oe=x-Math.min(Math.cos(re)*x/2,z),de=x-Math.min(Math.sin(re)*x/2,te),y=new go.Geometry,pe=new go.PathFigure(oe,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-oe,0)),pe.add(new go.PathSegment(go.PathSegment.Line,E,de)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*E,te)),pe.add(new go.PathSegment(go.PathSegment.Line,E,a-de)),pe.add(new go.PathSegment(go.PathSegment.Line,E-oe,a)),pe.add(new go.PathSegment(go.PathSegment.Line,z,.8*a)),pe.add(new go.PathSegment(go.PathSegment.Line,oe,a)),pe.add(new go.PathSegment(go.PathSegment.Line,0,a-de)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*E,te)),pe.add(new go.PathSegment(go.PathSegment.Line,0,de).close()),y}}),go.Shape.setFigureParameter("ThinX",0,new Bt("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(se,E,a){var x=se?se.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 Bt("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(se,E,a){var x=se?se.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 Bt("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(se,E,a){var x=se?se.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(se,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(se,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(se,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(se,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(se,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,oe=z*ue;return y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*E,(.5+z+re)*a,(.5-z+te)*E,(.5+oe+re)*a,(.5-oe+te)*E,(.5+z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+z+te)*E,(.5+re)*a,(.5+oe+te)*E,(.5+z+re)*a,(.5+z+te)*E,(.5+oe+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*E,(.5-z+re)*a,(1-.5+z+te)*E,(.5-oe+re)*a,(.5+oe+te)*E,(.5-z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.65*E,.36771243*a,(.5-oe+te)*E,(.5-z+re)*a,(.5-z+te+.05)*E,(.5-oe+re-.02)*a)),z=.2,te=0,re=-.3,oe=z*ue,y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+z+te)*E,(.5+re)*a,(.5+oe+te)*E,(.5+z+re)*a,(.5+z+te)*E,(.5+oe+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*E,(.5-z+re)*a,(1-.5+z+te)*E,(.5-oe+re)*a,(.5+oe+te)*E,(.5-z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-z+te)*E,(.5+re)*a,(.5-oe+te)*E,(.5-z+re)*a,(.5-z+te)*E,(.5-oe+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-oe+te)*E,(.5+z+re)*a,(.5-z+te)*E,(.5+oe+re)*a,(.5-oe+te)*E,(.5+z+re)*a)),z=.2,te=-.3,re=0,oe=z*ue,y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*E,(.5-z+re)*a,(1-.5+z+te-.05)*E,(.5-oe+re-.02)*a,(.5+oe+te)*E,(.5-z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-z+te)*E,(.5+re)*a,(.5-oe+te)*E,(.5-z+re)*a,(.5-z+te)*E,(.5-oe+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*E,(.5+z+re)*a,(.5-z+te)*E,(.5+oe+re)*a,(.5-oe+te)*E,(.5+z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,.6*a,(.5+oe+te)*E,(.5+z+re)*a,(.5+z+te)*E,(.5+oe+re)*a).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(se,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(se,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(se,E,a){var x=new go.Geometry,y=ue*.5,z=.5,te=.5,re=.5,oe=new go.PathFigure(te*E,(re-z)*a);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,re*a,(te-y)*E,(re-z)*a,(te-z)*E,(re-y)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+z)*a,(te-z)*E,(re+y)*a,(te-y)*E,(re+z)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,re*a,(te+y)*E,(re+z)*a,(te+z)*E,(re+y)*a)),oe.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 de=b(),pe=b(),ge=b(),xe=b();Fe(te,re-z,te+y,re-z,te+z,re-y,te+z,re,.42,de,pe,ge,xe,xe);var we=b(),Se=b(),ve=b();Fe(te,re-z,te+y,re-z,te+z,re-y,te+z,re,.58,xe,xe,ve,we,Se);var Qe=b(),Le=b(),ke=b();Fe(te,re+z,te-y,re+z,te-z,re+y,te-z,re,.42,Qe,Le,ke,xe,xe);var Ce=b(),Ke=b(),qe=b();return Fe(te,re+z,te-y,re+z,te-z,re+y,te-z,re,.58,xe,xe,qe,Ce,Ke),oe.add(new go.PathSegment(go.PathSegment.Move,qe.x*E,qe.y*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,re*a,Ce.x*E,Ce.y*a,Ke.x*E,Ke.y*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-z)*a,(te-z)*E,(re-y)*a,(te-y)*E,(re-z)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*E,ge.y*a,de.x*E,de.y*a,pe.x*E,pe.y*a)),oe.add(new go.PathSegment(go.PathSegment.Line,qe.x*E,qe.y*a).close()),oe.add(new go.PathSegment(go.PathSegment.Move,ke.x*E,ke.y*a)),oe.add(new go.PathSegment(go.PathSegment.Line,ve.x*E,ve.y*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,re*a,we.x*E,we.y*a,Se.x*E,Se.y*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+z)*a,(te+z)*E,(re+y)*a,(te+y)*E,(re+z)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,ke.x*E,ke.y*a,Qe.x*E,Qe.y*a,Le.x*E,Le.y*a).close()),ie(de),ie(pe),ie(ge),ie(xe),ie(we),ie(Se),ie(ve),ie(Qe),ie(Le),ie(ke),ie(Ce),ie(Ke),ie(qe),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(se,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 Bt("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(se,E,a){var x=se?se.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(se,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(se,E,a){var x=new go.Geometry,y=ue*.4,z=.4,te=.5,re=.5,oe=b(),de=b(),pe=b(),ge=b(),xe=new go.PathFigure((te-z)*E,re*a,!1);x.add(xe),xe.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,de,oe,oe),xe.add(new go.PathSegment(go.PathSegment.Bezier,de.x*E,de.y*a,pe.x*E,pe.y*a,ge.x*E,ge.y*a));var we=ee(de.x,de.y);Fe(te,re-z,te+y,re-z,te+z,re-y,te+z,re,.56,oe,oe,de,pe,ge);var Se=ee(de.x,de.y);xe.add(new go.PathSegment(go.PathSegment.Line,(we.x*.1+.95*.9)*E,we.y*.1*a)),xe.add(new go.PathSegment(go.PathSegment.Line,.85*E,we.y*.1*a)),xe.add(new go.PathSegment(go.PathSegment.Line,.85*E,0)),xe.add(new go.PathSegment(go.PathSegment.Line,E,0)),xe.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),xe.add(new go.PathSegment(go.PathSegment.Line,(Se.x*.1+.9)*E,.15*a)),xe.add(new go.PathSegment(go.PathSegment.Line,(Se.x*.1+.9)*E,(Se.y*.1+.05*.9)*a)),xe.add(new go.PathSegment(go.PathSegment.Line,Se.x*E,Se.y*a)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,re*a,pe.x*E,pe.y*a,ge.x*E,ge.y*a)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+z)*a,(te+z)*E,(re+y)*a,(te+y)*E,(re+z)*a)),xe.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 Qe=new go.PathFigure((te-z)*E,re*a,!1);return x.add(Qe),ie(oe),ie(de),ie(pe),ie(ge),ie(we),ie(Se),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(se,E,a){var x=new go.Geometry,y=.375,z=0,te=-.125,re=y*ue,oe=new go.PathFigure((.525+z)*E,(.5+y+te)*a,!1);x.add(oe),oe.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)),oe.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)),oe.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)),oe.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)),oe.add(new go.PathSegment(go.PathSegment.Line,.475*E,.85*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.425*E,.85*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.425*E,.9*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.475*E,.9*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.475*E,a)),oe.add(new go.PathSegment(go.PathSegment.Line,.525*E,a)),oe.add(new go.PathSegment(go.PathSegment.Line,.525*E,.9*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.575*E,.9*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.575*E,.85*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.525*E,.85*a).close()),y=.325,z=0,te=-.125,re=y*ue;var oe=new go.PathFigure((1-.5+y+z)*E,(.5+te)*a,!1);x.add(oe),oe.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)),oe.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)),oe.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)),oe.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 oe=new go.PathFigure((.525+z)*E,(.5+y+te)*a,!1);return x.add(oe),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(se,E,a){var x=se?se.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(se,E,a){var x=se?se.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(se,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(se,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(se,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(se,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(se,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(se,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(se,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(se,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(se,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(se,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(se,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 Bt("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Bt("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(se,E,a){var x=se?se.parameter1:NaN;isNaN(x)&&(x=.3);var y=se?se.parameter2:NaN;isNaN(y)&&(y=.3);var z=(1-x)*E,te=(.5-y/2)*a,re=(.5+y/2)*a,oe=new go.Geometry,de=new go.PathFigure(0,te,!0);oe.add(de),de.add(new go.PathSegment(go.PathSegment.Line,z,te)),de.add(new go.PathSegment(go.PathSegment.Line,z,0)),de.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),de.add(new go.PathSegment(go.PathSegment.Line,z,a)),de.add(new go.PathSegment(go.PathSegment.Line,z,re)),de.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),oe.spot1=new go.Spot(0,te/a);var pe=Be(0,re/a,1,re/a,z/E,1,1,.5,b());return oe.spot2=new go.Spot(pe.x,pe.y),ie(pe),oe}),go.Shape.setFigureParameter("Arrow2",0,new Bt("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Bt("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(se,E,a){var x=se?se.parameter1:NaN;isNaN(x)&&(x=30),x>E&&(x=E);var y=se?se.parameter2:NaN;isNaN(y)&&(y=30),y=Math.min(y,a/2);var z=E-x,te=(a-y)/2,re=te+y,oe=new go.Geometry,de=new go.PathFigure(0,te,!0);oe.add(de),de.add(new go.PathSegment(go.PathSegment.Line,z,te)),de.add(new go.PathSegment(go.PathSegment.Line,z,0)),de.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),de.add(new go.PathSegment(go.PathSegment.Line,z,a)),de.add(new go.PathSegment(go.PathSegment.Line,z,re)),de.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),oe.spot1=new go.Spot(0,te/a);var pe=Be(0,re/a,1,re/a,z/E,1,1,.5,b());return oe.spot2=new go.Spot(pe.x,pe.y),ie(pe),oe}),go.Shape.defineFigureGenerator("Chevron",function(se,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(se,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 Bt("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(se,E,a){var x=se?se.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 oe=Be(0,.5,.3,0,0,y/a,.1,y/a,b());return te.spot1=new go.Spot(oe.x,oe.y),oe=Be(.7,1,1,.5,0,z/a,1,z/a,oe),te.spot2=new go.Spot(oe.x,oe.y),ie(oe),te}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Bt("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Bt("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(se,E,a){var x=se?se.parameter1:NaN;isNaN(x)&&(x=40);var y=se?se.parameter2:NaN;isNaN(y)&&(y=100);var z=(a-x)/2,te=z+x,re=(a-y)/2,oe=re+y;(x>a||y>a)&&(y>x?(x=x*a/y,z=(a-x)/2,te=z+x,re=0,oe=a):(z=0,te=a,re=0,oe=a));var de=new go.Geometry,pe=new go.PathFigure(E,.5*a,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,oe)),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,oe)),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=Be(0,.5,.3,re/a,0,z/a,1,z/a,b());return de.spot1=new go.Spot(ge.x,ge.y),ge=Be(.7,oe/a,1,.5,0,te/a,1,te/a,ge),de.spot2=new go.Spot(ge.x,ge.y),ie(ge),de}),go.Shape.setFigureParameter("IBeamArrow",0,new Bt("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(se,E,a){var x=se?se.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 oe=Be(.7,1,1,.5,0,z/a,1,z/a,b());return te.spot2=new go.Spot(oe.x,oe.y),ie(oe),te}),go.Shape.setFigureParameter("IBeamArrow2",0,new Bt("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Bt("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(se,E,a){var x=se?se.parameter1:NaN;isNaN(x)&&(x=40);var y=se?se.parameter2:NaN;isNaN(y)&&(y=100);var z=(a-x)/2,te=z+x,re=(a-y)/2,oe=re+y;(x>a||y>a)&&(y>x?(x=x*a/y,z=(a-x)/2,te=z+x,re=0,oe=a):(z=0,te=a,re=0,oe=a));var de=new go.Geometry,pe=new go.PathFigure(E,.5*a,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,oe)),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,oe)),pe.add(new go.PathSegment(go.PathSegment.Line,0,oe)),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()),de.spot1=new go.Spot(0,z/a);var ge=Be(.7,oe/a,1,.5,0,te/a,1,te/a,b());return de.spot2=new go.Spot(ge.x,ge.y),ie(ge),de}),go.Shape.setFigureParameter("Pointer",0,new Bt("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(se,E,a){var x=se?se.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=Be(.2,.65,1,.65,0,1,1,.5,b());return y.spot2=new go.Spot(te.x,te.y),ie(te),y}),go.Shape.setFigureParameter("RoundedPointer",0,new Bt("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(se,E,a){var x=se?se.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=Be(0,.65,1,.65,0,1,1,.5,b());return y.spot2=new go.Spot(te.x,te.y),ie(te),y}),go.Shape.setFigureParameter("SplitEndArrow",0,new Bt("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(se,E,a){var x=se?se.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 oe=Be(.7,1,1,.5,0,z/a,1,z/a,b());return te.spot2=new go.Spot(oe.x,oe.y),ie(oe),te}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Bt("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(se,E,a){var x=se?se.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 oe=Be(.7,1,1,.5,0,z/a,1,z/a,b());return te.spot2=new go.Spot(oe.x,oe.y),ie(oe),te}),go.Shape.setFigureParameter("SquareArrow",0,new Bt("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(se,E,a){var x=se?se.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(se,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(se,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(se,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(se,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(se,E,a){var x=se?se.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(se,E,a){var x=se?se.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(se,E,a){var x=se?se.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(se,E,a){var x=se?se.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(se,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(se,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(se,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(se,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(se,E,a){var x=new go.Geometry,y=.2,z=.1,te=ue*y,re=ue*z,oe=.5,de=.1,pe=new go.PathFigure(oe*E,(de+z)*a,!0);x.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,(oe-y)*E,de*a,(oe-te)*E,(de+z)*a,(oe-y)*E,(de+re)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,(de-z)*a,(oe-y)*E,(de-re)*a,(oe-te)*E,(de-z)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(oe+y)*E,de*a,(oe+te)*E,(de-z)*a,(oe+y)*E,(de-re)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,(de+z)*a,(oe+y)*E,(de+re)*a,(oe+te)*E,(de+z)*a));var ge=.05,xe=ue*ge;oe=.05,de=.25;var we=new go.PathFigure(.5*E,.2*a,!0);return x.add(we),we.add(new go.PathSegment(go.PathSegment.Line,.95*E,.2*a)),oe=.95,de=.25,we.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ge)*E,de*a,(oe+xe)*E,(de-ge)*a,(oe+ge)*E,(de-xe)*a)),we.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),we.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),we.add(new go.PathSegment(go.PathSegment.Line,.85*E,.35*a)),ge=.025,xe=ue*ge,oe=.825,de=.35,we.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,(de-ge)*a,(oe+ge)*E,(de-xe)*a,(oe+xe)*E,(de-ge)*a)),we.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ge)*E,de*a,(oe-xe)*E,(de-ge)*a,(oe-ge)*E,(de-xe)*a)),we.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),we.add(new go.PathSegment(go.PathSegment.Line,.55*E,a)),we.add(new go.PathSegment(go.PathSegment.Line,.55*E,.7*a)),ge=.05,xe=ue*ge,oe=.5,de=.7,we.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,(de-ge)*a,(oe+ge)*E,(de-xe)*a,(oe+xe)*E,(de-ge)*a)),we.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ge)*E,de*a,(oe-xe)*E,(de-ge)*a,(oe-ge)*E,(de-xe)*a)),we.add(new go.PathSegment(go.PathSegment.Line,.45*E,a)),we.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),we.add(new go.PathSegment(go.PathSegment.Line,.2*E,.35*a)),ge=.025,xe=ue*ge,oe=.175,de=.35,we.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,(de-ge)*a,(oe+ge)*E,(de-xe)*a,(oe+xe)*E,(de-ge)*a)),we.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ge)*E,de*a,(oe-xe)*E,(de-ge)*a,(oe-ge)*E,(de-xe)*a)),we.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a)),we.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),we.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),ge=.05,xe=ue*ge,oe=.05,de=.25,we.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,(de-ge)*a,(oe-ge)*E,(de-xe)*a,(oe-xe)*E,(de-ge)*a)),we.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 Bt("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(se,E,a){var x=se?se.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(se,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(se,E,a){var x=new go.Geometry,y=se?se.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(se,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(se,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(se,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(se,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(se,E,a){var x=new go.Geometry,y=se?se.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(se,E,a){var x=new go.Geometry,y=se?se.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(se,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(se,E,a){var x=new go.Geometry,y=se?se.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(se,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(se,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(se,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(se,E,a){var x=new go.Geometry,y=se?se.parameter1:NaN,z=se?se.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(se,E,a){var x=new go.Geometry,y=1/Math.SQRT2,z=(1-1/Math.SQRT2)/2,te=ue*.5,re=.5,oe=new go.PathFigure(E,re*a,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,re*E,a,E,(re+te)*a,(re+te)*E,a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,re*a,(re-te)*E,a,0,(re+te)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,re*E,0,0,(re-te)*a,(re-te)*E,0)),oe.add(new go.PathSegment(go.PathSegment.Bezier,E,re*a,(re+te)*E,0,E,(re-te)*a));var de=new go.PathFigure((z+y)*E,(z+y)*a,!1);return x.add(de),de.add(new go.PathSegment(go.PathSegment.Line,z*E,z*a)),de.add(new go.PathSegment(go.PathSegment.Move,z*E,(z+y)*a)),de.add(new go.PathSegment(go.PathSegment.Line,(z+y)*E,z*a)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(se,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(se,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(se,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(se,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(se,E,a){var x=new go.Geometry,y=se?se.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(se,E,a){var x=new go.Geometry,y=se?se.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(se,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(se,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(se,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(se,E,a){var x=new go.Geometry,y=se?se.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(se,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(se,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(se,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(se,E,a){var x=new go.Geometry,y=se?se.parameter1:NaN,z=se?se.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(se,E,a){var x=new go.Geometry,y=se?se.parameter1:NaN,z=se?se.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(se,E,a){var x=new go.Geometry,y=se?se.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(se,E,a){var x=new go.Geometry,y=se?se.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(se,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(se,E,a){var x=new go.Geometry,y=se?se.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(se,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(se,E,a){var x=new go.Geometry,y=se?se.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(se,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(se,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(se,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 oe=new go.PathFigure(.8*E,.75*a,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.8*E,.25*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.6*E,.25*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.6*E,.75*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.4*E,.75*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.4*E,.25*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*E,.25*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*E,.75*a)),x}),go.Shape.defineFigureGenerator("Ground",function(se,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(se,E,a){var x=new go.Geometry,y=ue*.1,z=.1,te=.9,re=.5,oe=new go.PathFigure(.8*E,.5*a,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,a)),oe.add(new go.PathSegment(go.PathSegment.Line,0,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a));var de=new go.PathFigure((te+z)*E,re*a,!0);return x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+z)*a,(te+z)*E,(re+y)*a,(te+y)*E,(re+z)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,re*a,(te-y)*E,(re+z)*a,(te-z)*E,(re+y)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-z)*a,(te-z)*E,(re-y)*a,(te-y)*E,(re-z)*a)),de.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(se,E,a){var x=new go.Geometry,y=ue*.5,z=ue*.4,te=ue*.1,re=.1,oe=.9,de=.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((oe+re)*E,de*a,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,(de+re)*a,(oe+re)*E,(de+te)*a,(oe+te)*E,(de+re)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(oe-re)*E,de*a,(oe-te)*E,(de+re)*a,(oe-re)*E,(de+te)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,(de-re)*a,(oe-re)*E,(de-te)*a,(oe-te)*E,(de-re)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(oe+re)*E,de*a,(oe+te)*E,(de-re)*a,(oe+re)*E,(de-te)*a)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(se,E,a){var x=new go.Geometry,y=.5,z=ue*y,te=0,re=.5,oe=new go.PathFigure(.8*E,.5*a,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.7*E,(re+z)*a,(te+z)*E,(re+y)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.75*a,.25*E,.25*a)),oe.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 de=new go.PathFigure((te-y)*E,re*a,!0);return x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-y)*a,(te-y)*E,(re-z)*a,(te-z)*E,(re-y)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,re*a,(te+z)*E,(re-y)*a,(te+y)*E,(re-z)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+y)*a,(te+y)*E,(re+z)*a,(te+z)*E,(re+y)*a)),de.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(se,E,a){var x=new go.Geometry,y=.5,z=ue*y,te=0,re=.5,oe=new go.PathFigure(0,0,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(te+z+z)*E,(re-y)*a,.8*E,(re-z)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.8*E,(re+z)*a,(te+z+z)*E,(re+y)*a)),oe.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(se,E,a){var x=new go.Geometry,y=.5,z=ue*y,te=.2,re=.5,oe=new go.PathFigure(.1*E,0,!1);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,a,.35*E,.25*a,.35*E,.75*a));var de=new go.PathFigure(.8*E,.5*a,!0);x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,a,.7*E,(re+z)*a,(te+z)*E,(re+y)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,.45*E,.75*a,.45*E,.25*a)),de.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(se,E,a){var x=new go.Geometry,y=.5,z=ue*y,te=.2,re=.5,oe=new go.PathFigure(.1*E,0,!1);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,a,.35*E,.25*a,.35*E,.75*a));var de=new go.PathFigure(.2*E,0,!0);return x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(te+z)*E,(re-y)*a,.9*E,(re-z)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,a,.9*E,(re+z)*a,(te+z)*E,(re+y)*a)),de.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(se,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(se,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(se,E,a){var x=new go.Geometry,y=ue*.1,z=.1,te=.1,re=.5,oe=new go.PathFigure((te-y*.5)*E,a,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,0,(te-y)*E,a,(te-z)*E,0)),te=.3,oe.add(new go.PathSegment(go.PathSegment.Bezier,te*E,a,(te+z)*E,0,(te+y)*E,a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,0,(te-y)*E,a,(te-z)*E,0)),te=.5,oe.add(new go.PathSegment(go.PathSegment.Bezier,te*E,a,(te+z)*E,0,(te+y)*E,a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,0,(te-y)*E,a,(te-z)*E,0)),te=.7,oe.add(new go.PathSegment(go.PathSegment.Bezier,te*E,a,(te+z)*E,0,(te+y)*E,a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,0,(te-y)*E,a,(te-z)*E,0)),te=.9,oe.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(se,E,a){var x=new go.Geometry,y=ue*.5,z=.5,te=.5,re=.5,oe=new go.PathFigure((te-z)*E,re*a,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-z)*a,(te-z)*E,(re-y)*a,(te-y)*E,(re-z)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,re*a,(te+y)*E,(re-z)*a,(te+z)*E,(re-y)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+z)*a,(te+z)*E,(re+y)*a,(te+y)*E,(re+z)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,re*a,(te-y)*E,(re+z)*a,(te-z)*E,(re+y)*a)),oe.add(new go.PathSegment(go.PathSegment.Move,(te-z+.1)*E,re*a)),oe.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(se,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(se,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(se,E,a){var x=new go.Geometry,y=E,z=a;E=E*.38,a=a*.6;var te=ue*.8,re=.8,oe=0,de=.5,pe=(y-E)/2,ge=(z-a)/2,xe=new go.PathFigure(oe*E+pe,(de+re)*a+ge,!0);x.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,(oe-re)*E+pe,de*a+ge,(oe-te)*E+pe,(de+re)*a+ge,(oe-re)*E+pe,(de+te)*a+ge)),xe.add(new go.PathSegment(go.PathSegment.Bezier,oe*E+pe,(de-re)*a+ge,(oe-re)*E+pe,(de-te)*a+ge,(oe-te)*E+pe,(de-re)*a+ge)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(oe-re+te*.5)*E+pe,de*a+ge,oe*E+pe,(de-re)*a+ge,(oe-re+te*.5)*E+pe,(de-te)*a+ge)),xe.add(new go.PathSegment(go.PathSegment.Bezier,oe*E+pe,(de+re)*a+ge,(oe-re+te*.5)*E+pe,(de+te)*a+ge,oe*E+pe,(de+re)*a+ge).close()),te=ue*.4,re=.4,oe=.2,de=.5;var we=new go.PathFigure(oe*E+pe,(de+re)*a+ge,!0);x.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,(oe-re)*E+pe,de*a+ge,(oe-te)*E+pe,(de+re)*a+ge,(oe-re)*E+pe,(de+te)*a+ge)),we.add(new go.PathSegment(go.PathSegment.Bezier,oe*E+pe,(de-re)*a+ge,(oe-re)*E+pe,(de-te)*a+ge,(oe-te)*E+pe,(de-re)*a+ge)),we.add(new go.PathSegment(go.PathSegment.Bezier,(oe-re+te*.5)*E+pe,de*a+ge,oe*E+pe,(de-re)*a+ge,(oe-re+te*.5)*E+pe,(de-te)*a+ge)),we.add(new go.PathSegment(go.PathSegment.Bezier,oe*E+pe,(de+re)*a+ge,(oe-re+te*.5)*E+pe,(de+te)*a+ge,oe*E+pe,(de+re)*a+ge).close()),te=ue*.2,re=.2,oe=.5,de=.5;var Se=new go.PathFigure((oe-re)*E+pe,de*a+ge,!0);x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,oe*E+pe,(de-re)*a+ge,(oe-re)*E+pe,(de-te)*a+ge,(oe-te)*E+pe,(de-re)*a+ge)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(oe+re)*E+pe,de*a+ge,(oe+te)*E+pe,(de-re)*a+ge,(oe+re)*E+pe,(de-te)*a+ge)),Se.add(new go.PathSegment(go.PathSegment.Bezier,oe*E+pe,(de+re)*a+ge,(oe+re)*E+pe,(de+te)*a+ge,(oe+te)*E+pe,(de+re)*a+ge)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(oe-re)*E+pe,de*a+ge,(oe-te)*E+pe,(de+re)*a+ge,(oe-re)*E+pe,(de+te)*a+ge)),te=ue*.4,re=.4,oe=.8,de=.5;var ve=new go.PathFigure(oe*E+pe,(de-re)*a+ge,!0);x.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,(oe+re)*E+pe,de*a+ge,(oe+te)*E+pe,(de-re)*a+ge,(oe+re)*E+pe,(de-te)*a+ge)),ve.add(new go.PathSegment(go.PathSegment.Bezier,oe*E+pe,(de+re)*a+ge,(oe+re)*E+pe,(de+te)*a+ge,(oe+te)*E+pe,(de+re)*a+ge)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(oe+re-te*.5)*E+pe,de*a+ge,oe*E+pe,(de+re)*a+ge,(oe+re-te*.5)*E+pe,(de+te)*a+ge)),ve.add(new go.PathSegment(go.PathSegment.Bezier,oe*E+pe,(de-re)*a+ge,(oe+re-te*.5)*E+pe,(de-te)*a+ge,oe*E+pe,(de-re)*a+ge).close()),te=ue*.8,re=.8,oe=1,de=.5;var Qe=new go.PathFigure(oe*E+pe,(de-re)*a+ge,!0);return x.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(oe+re)*E+pe,de*a+ge,(oe+te)*E+pe,(de-re)*a+ge,(oe+re)*E+pe,(de-te)*a+ge)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,oe*E+pe,(de+re)*a+ge,(oe+re)*E+pe,(de+te)*a+ge,(oe+te)*E+pe,(de+re)*a+ge)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(oe+re-te*.5)*E+pe,de*a+ge,oe*E+pe,(de+re)*a+ge,(oe+re-te*.5)*E+pe,(de+te)*a+ge)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,oe*E+pe,(de-re)*a+ge,(oe+re-te*.5)*E+pe,(de-te)*a+ge,oe*E+pe,(de-re)*a+ge).close()),x}),go.Shape.defineFigureGenerator("Email",function(se,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(se,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(se,E,a){var x=new go.Geometry,y=ue*.4,z=.4,te=.5,re=.5,oe=b(),de=b(),pe=b(),ge=b();Fe(te,re-z,te+y,re-z,te+z,re-y,te+z,re,.5,oe,oe,de,pe,ge);var xe=ee(de.x,de.y),we=new go.PathFigure(de.x*E,de.y*a,!0);x.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,re*a,pe.x*E,pe.y*a,ge.x*E,ge.y*a)),we.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+z)*a,(te+z)*E,(re+y)*a,(te+y)*E,(re+z)*a)),we.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,de,oe,oe),we.add(new go.PathSegment(go.PathSegment.Bezier,de.x*E,de.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,de,oe,oe),we.add(new go.PathSegment(go.PathSegment.Line,de.x*E,de.y*a)),we.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,re*a,ge.x*E,ge.y*a,pe.x*E,pe.y*a)),we.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+z)*a,(te-z)*E,(re+y)*a,(te-y)*E,(re+z)*a)),we.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,oe,oe,de,pe,ge),we.add(new go.PathSegment(go.PathSegment.Bezier,de.x*E,de.y*a,ge.x*E,ge.y*a,pe.x*E,pe.y*a).close());var we=new go.PathFigure(.45*E,0,!0);return x.add(we),we.add(new go.PathSegment(go.PathSegment.Line,.45*E,.5*a)),we.add(new go.PathSegment(go.PathSegment.Line,.55*E,.5*a)),we.add(new go.PathSegment(go.PathSegment.Line,.55*E,0).close()),ie(oe),ie(de),ie(pe),ie(ge),ie(xe),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(se,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,oe){te.add(new go.PathSegment(go.PathSegment.Move,(.3+re)*E,(.8+oe)*a)),te.add(new go.PathSegment(go.PathSegment.Line,(.5+re)*E,(.5+oe)*a)),te.add(new go.PathSegment(go.PathSegment.Line,(.1+re)*E,(.5+oe)*a)),te.add(new go.PathSegment(go.PathSegment.Line,(.3+re)*E,(.8+oe)*a).close())}return z(y,0,0),z(y,.4,0),z(y,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(se,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(se,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(se,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(se,E,a){var x=new go.Geometry,y=.5,z=0,te=0,re=y*ue,oe=.4*Math.SQRT2/2+.5,de=.5-.5*Math.SQRT2/2,pe=1,ge=.5,xe=.5,we=0,Se=new go.PathFigure(oe*E,(1-de)*a,!1);return x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,pe*E,ge*a,pe*E,.7*a,pe*E,ge*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(xe+z)*E,(we+z)*a,(.5+y+z)*E,(.5-re+z)*a,(.5+re+z)*E,(.5-y+z)*a)),Se.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)),Se.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)),Se.add(new go.PathSegment(go.PathSegment.Move,(.25+z)*E,.8*a)),Se.add(new go.PathSegment(go.PathSegment.Line,(.35+z)*E,.9*a)),Se.add(new go.PathSegment(go.PathSegment.Line,(.2+z)*E,.95*a)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(se,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(se,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(se,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(se,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(se,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(se,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(se,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,oe=te,de=Math.PI/4,pe=4*(1-Math.cos(de))/(3*Math.sin(de)),ge=pe*.5,xe=te,we=te,Se=pe*xe,ve=pe*we;z.add(new go.PathSegment(go.PathSegment.Bezier,(re-xe)*E,oe*a,(re-(Se+xe)/2)*E,(oe+(we+ve)/2)*a,(re-xe)*E,(oe+ve)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,re*E,(oe-we)*a,(re-xe)*E,(oe-ve)*a,(re-Se)*E,(oe-we)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(re+xe)*E,oe*a,(re+Se)*E,(oe-we)*a,(re+xe)*E,(oe-ve)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*E,(1-.595)*a,(re+xe)*E,(oe+ve)*a,(re+(Se+xe)/2)*E,(oe+(we+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 Qe=new go.PathFigure(.2*E,a,!1);x.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Line,.2*E,.8*a));var Le=new go.PathFigure(.8*E,a,!1);return x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,.8*E,.8*a)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(se,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(se,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(se,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(se,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(se,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(se,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(se,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(se,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(se,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(se,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(se,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(se,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(se,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(se,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,oe=.2,de=.9,pe=new go.PathFigure((oe-te)*E,de*a,!0);x.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,(de-te)*a,(oe-te)*E,(de-re)*a,(oe-re)*E,(de-te)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(oe+te)*E,de*a,(oe+re)*E,(de-te)*a,(oe+te)*E,(de-re)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,(de+te)*a,(oe+te)*E,(de+re)*a,(oe+re)*E,(de+te)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(oe-te)*E,de*a,(oe-re)*E,(de+te)*a,(oe-te)*E,(de+re)*a).close()),te=.1,re=ue*.1,oe=.8,de=.9;var ge=new go.PathFigure((oe-te)*E,de*a,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,(de-te)*a,(oe-te)*E,(de-re)*a,(oe-re)*E,(de-te)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(oe+te)*E,de*a,(oe+re)*E,(de-te)*a,(oe+te)*E,(de-re)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,(de+te)*a,(oe+te)*E,(de+re)*a,(oe+re)*E,(de+te)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(oe-te)*E,de*a,(oe-re)*E,(de+te)*a,(oe-te)*E,(de+re)*a).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(se,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(se,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 oe=.1,de=ue*.1,pe=.1,ge=.9,xe=new go.PathFigure((pe-oe)*E,ge*a,!0);x.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,pe*E,(ge-oe)*a,(pe-oe)*E,(ge-de)*a,(pe-de)*E,(ge-oe)*a)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(pe+oe)*E,ge*a,(pe+de)*E,(ge-oe)*a,(pe+oe)*E,(ge-de)*a)),xe.add(new go.PathSegment(go.PathSegment.Bezier,pe*E,(ge+oe)*a,(pe+oe)*E,(ge+de)*a,(pe+de)*E,(ge+oe)*a)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(pe-oe)*E,ge*a,(pe-de)*E,(ge+oe)*a,(pe-oe)*E,(ge+de)*a)),oe=.1,de=ue*.1,pe=.4,ge=.9;var we=new go.PathFigure((pe-oe)*E,ge*a,!0);return x.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,pe*E,(ge-oe)*a,(pe-oe)*E,(ge-de)*a,(pe-de)*E,(ge-oe)*a)),we.add(new go.PathSegment(go.PathSegment.Bezier,(pe+oe)*E,ge*a,(pe+de)*E,(ge-oe)*a,(pe+oe)*E,(ge-de)*a)),we.add(new go.PathSegment(go.PathSegment.Bezier,pe*E,(ge+oe)*a,(pe+oe)*E,(ge+de)*a,(pe+de)*E,(ge+oe)*a)),we.add(new go.PathSegment(go.PathSegment.Bezier,(pe-oe)*E,ge*a,(pe-de)*E,(ge+oe)*a,(pe-oe)*E,(ge+de)*a)),x}),go.Shape.defineFigureGenerator("RailShipment",function(se,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,xe=.175,we=.95,re=new go.PathFigure((xe-pe)*E,we*a,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,xe*E,(we-pe)*a,(xe-pe)*E,(we-ge)*a,(xe-ge)*E,(we-pe)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(xe+pe)*E,we*a,(xe+ge)*E,(we-pe)*a,(xe+pe)*E,(we-ge)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,xe*E,(we+pe)*a,(xe+pe)*E,(we+ge)*a,(xe+ge)*E,(we+pe)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(xe-pe)*E,we*a,(xe-ge)*E,(we+pe)*a,(xe-pe)*E,(we+ge)*a));var pe=.05,ge=ue*.05,xe=.375,we=.95,oe=new go.PathFigure((xe-pe)*E,we*a,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,xe*E,(we-pe)*a,(xe-pe)*E,(we-ge)*a,(xe-ge)*E,(we-pe)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(xe+pe)*E,we*a,(xe+ge)*E,(we-pe)*a,(xe+pe)*E,(we-ge)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,xe*E,(we+pe)*a,(xe+pe)*E,(we+ge)*a,(xe+ge)*E,(we+pe)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(xe-pe)*E,we*a,(xe-ge)*E,(we+pe)*a,(xe-pe)*E,(we+ge)*a));var pe=.05,ge=ue*.05,xe=.625,we=.95,de=new go.PathFigure((xe-pe)*E,we*a,!0);x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,xe*E,(we-pe)*a,(xe-pe)*E,(we-ge)*a,(xe-ge)*E,(we-pe)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(xe+pe)*E,we*a,(xe+ge)*E,(we-pe)*a,(xe+pe)*E,(we-ge)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,xe*E,(we+pe)*a,(xe+pe)*E,(we+ge)*a,(xe+ge)*E,(we+pe)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(xe-pe)*E,we*a,(xe-ge)*E,(we+pe)*a,(xe-pe)*E,(we+ge)*a));var pe=.05,ge=ue*.05,xe=.825,we=.95,Se=new go.PathFigure((xe-pe)*E,we*a,!0);x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,xe*E,(we-pe)*a,(xe-pe)*E,(we-ge)*a,(xe-ge)*E,(we-pe)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(xe+pe)*E,we*a,(xe+ge)*E,(we-pe)*a,(xe+pe)*E,(we-ge)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,xe*E,(we+pe)*a,(xe+pe)*E,(we+ge)*a,(xe+ge)*E,(we+pe)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(xe-pe)*E,we*a,(xe-ge)*E,(we+pe)*a,(xe-pe)*E,(we+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(se,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,oe=ue*.05,de=.35,pe=.775,ge=new go.PathFigure((de-re)*E,pe*a,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,de*E,(pe-re)*a,(de-re)*E,(pe-oe)*a,(de-oe)*E,(pe-re)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(de+re)*E,pe*a,(de+oe)*E,(pe-re)*a,(de+re)*E,(pe-oe)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,de*E,(pe+re)*a,(de+re)*E,(pe+oe)*a,(de+oe)*E,(pe+re)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(de-re)*E,pe*a,(de-oe)*E,(pe+re)*a,(de-re)*E,(pe+oe)*a).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(se,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(se,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(se,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(se,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(se,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(se,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(se,E,a){var x=new go.Geometry,y=.3,z=ue*.3,te=.5,re=.7,oe=new go.PathFigure((te-y)*E,re*a,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-y)*a,(te-y)*E,(re-z)*a,(te-z)*E,(re-y)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,re*a,(te+z)*E,(re-y)*a,(te+y)*E,(re-z)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+y)*a,(te+y)*E,(re+z)*a,(te+z)*E,(re+y)*a)),oe.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 de=new go.PathFigure(0,.7*a,!1);return x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,E,.7*a,0,0,E,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(se,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(se,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(se,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(se,E,a){var x=new go.Geometry,y=.5,z=ue*.5,te=.5,re=.5,oe=new go.PathFigure((te-y)*E,re*a,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-y)*a,(te-y)*E,(re-z)*a,(te-z)*E,(re-y)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,re*a,(te+z)*E,(re-y)*a,(te+y)*E,(re-z)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+y)*a,(te+y)*E,(re+z)*a,(te+z)*E,(re+y)*a)),oe.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 de=new go.PathFigure(.15*E,.5*a,!1);return x.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.85*E,.5*a)),x}),go.Shape.defineFigureGenerator("Flag",function(se,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(se,E,a){var x=new go.Geometry,y=.5,z=ue*.5,te=.5,re=.5,oe=new go.PathFigure((te-y)*E,re*a,!1);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-y)*a,(te-y)*E,(re-z)*a,(te-z)*E,(re-y)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,re*a,(te+z)*E,(re-y)*a,(te+y)*E,(re-z)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+y)*a,(te+y)*E,(re+z)*a,(te+z)*E,(re+y)*a)),oe.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 de=new go.PathFigure((te-y)*E,re*a,!1);return x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-y)*a,(te-y)*E,(re-z)*a,(te-z)*E,(re-y)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,re*a,(te+z)*E,(re-y)*a,(te+y)*E,(re-z)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+y)*a,(te+y)*E,(re+z)*a,(te+z)*E,(re+y)*a)),de.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()),de.add(new go.PathSegment(go.PathSegment.Move,.5*E,.7*a)),de.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,.75*E,.475*a,.75*E,.225*a)),de.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(se,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(se,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(se,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(se,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(se,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(se,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(se,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(se,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(se,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 oe=new go.PathFigure(.5*E,.1*a,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*E,.3*a)),oe.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*E,.3*a).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(se,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(se,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 oe=new go.PathFigure(E*.816,a,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*.816,a*(1-.184*4))),oe.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-.184*5))),oe.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(se,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 oe=new go.PathFigure(E*1,0,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*.4,0)),oe.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.65)),oe.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(se,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(se,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(se,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 oe=new go.PathFigure(E*(.11+.24133333*2+.028*2),a*.1,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*3+.028*2),a*.1)),oe.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*3+.028*2),a*.8)),oe.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*2),a*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(se,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 oe=new go.PathFigure(E*.83,a*1,!1);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*.83,a*.5)),oe.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*.5)),oe.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*1).close());var de=new go.PathFigure(E*.78,a*.05,!1);return x.add(de),de.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.05)),de.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.25)),de.add(new go.PathSegment(go.PathSegment.Line,E*.78,a*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(se,E,a){var x=se?se.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(se,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(se,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(se,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(se,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(se,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(se,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(se,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(se,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(se,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(se,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")},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Bt={},Ct="5.0",ee={},b=null,ie=!1,Be=!1,Fe=null,Ne=!1,je=null,ue=null,Ge=0;Ge<arguments.length;Ge++){var Ae=arguments[Ge];if(Ae!==null)switch(typeof Ae){case"number":Ct=Ae.toFixed(1);break;case"string":Ae.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ct=Ae:Fe=Ae;break;case"object":typeof Ae.is3D!="undefined"?b=Ae:ee=Ae;break;case"boolean":ie=Ae,Be=!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},ee.material_id!==void 0&&!Be&&(ie=!0)),Fe!==null&&ee.id===void 0&&(ee.id=Fe);var Me="",Te="",Oe=!1,ye=null,se=null,E=null,a=!1,x=null,y=null,z=null,te=null,re=null;ee.height!==void 0&&(ee.height=Math.round(ee.height)),ee.width!==void 0&&(ee.width=Math.round(ee.width));var oe=function(rt){return parseFloat(rt)>4?parseFloat(rt):5};Bt.setHTML5Codebase=function(rt,jt){ue=rt,yt(rt,jt)},Bt.setJavaCodebase=Bt.setJavaCodebaseVersion=Bt.isCompiledInstalled=Bt.setPreCompiledScriptPath=Bt.setPreCompiledResourcePath=function(){},Bt.setHTML5CodebaseVersion=function(rt,jt){var It=parseFloat(rt);if(It!==NaN&&It<5){console.log("The GeoGebra HTML5 codebase version "+It+" is deprecated. Using version latest instead.");return}je=rt,ct(rt,jt)},Bt.getHTML5CodebaseVersion=function(){return se},Bt.getParameters=function(){return ee},Bt.setFontsCSSURL=function(rt){te=rt},Bt.setGiacJSURL=function(rt){},Bt.setJNLPFile=function(rt){Me=rt},Bt.setJNLPBaseDir=function(rt){},Bt.inject=function(){function rt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var jt="auto",It=ee.id,hn,Mt=!1,Yt=0;Yt<arguments.length;Yt++){var Re=arguments[Yt];typeof Re=="string"?(Re=Re.toLowerCase(),Re.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?jt=Re:It=arguments[Yt]):typeof Re=="boolean"?Mt=Re:Re instanceof HTMLElement&&(hn=Re)}Wt();function Wt(){if(!Ne){setTimeout(Wt,200);return}jt=Ue(jt);var Sn=hn||document.getElementById(It);if(!Sn){console.log("possibly bug on ajax loading? ");return}if(Bt.removeExistingApplet(Sn,!1),ee.width===void 0&&Sn.clientWidth&&(ee.width=Sn.clientWidth),ee.height===void 0&&Sn.clientHeight&&(ee.height=Sn.clientHeight),!(ee.width&&ee.height)&&jt==="html5"&&(delete ee.width,delete ee.height),ye=jt,jt==="screenshot")Le(Sn,ee);else{var xt=!1;ee.hasOwnProperty("playButton")&&ee.playButton||ee.hasOwnProperty("clickToLoad")&&ee.clickToLoad?xt=!0:ee.hasOwnProperty("playButtonAutoDecide")&&ee.playButtonAutoDecide&&(xt=(!de()||rt())&&pe()),xt?(ye="screenshot",Ce(Sn,ee,Mt,jt)):Qe(Sn,ee,Mt)}}};function de(){try{return window.self!==window.top}catch(rt){return!0}}function pe(){return ee.hasOwnProperty("screenshotGenerator")&&ee.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Bt.getViews=function(){return b},Bt.isJavaInstalled=function(){return!1};var ge=function(rt){var jt=function(Yt){var Re=JSON.parse(Yt),Wt=function(Et){return Et.type=="G"||Et.type=="E"},Sn=Re.elements?Re.elements.filter(Wt)[0]:Re;if(!Sn||!Sn.url){It();return}ee.fileName=Sn.url,xe(Sn.settings||{}),b.is3D=!0;var xt="https://www.geogebra.org/images/";Bt.setPreviewImage(x||Sn.previewUrl,xt+"GeoGebra_loading.png",xt+"applet_play.png"),rt()},It=function(){ee.onError&&ee.onError(),$t("Error: Fetching material (id "+ee.material_id+") failed.",ee)},hn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Mt="/materials/"+ee.material_id+"?scope=basic";we("https://"+hn+"/api/proxy.php?path="+encodeURIComponent(Mt),jt,It)};function xe(rt){var jt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(It){rt[It]=!!rt[It]}),jt.forEach(function(It){ee[It]===void 0&&rt[It]!==void 0&&(ee[It]=rt[It])}),ee.showToolBarHelp===void 0&&(ee.showToolBarHelp=ee.showToolBar)}function we(rt,jt,It){var hn=new XMLHttpRequest;hn.open("GET",rt),hn.onload=function(){jt(hn.responseText)},hn.onerror=It,hn.send()}Bt.isHTML5Installed=function(){return!0},Bt.getLoadedAppletType=function(){return ye},Bt.setPreviewImage=function(rt,jt,It){x=rt,y=jt,z=It},Bt.removeExistingApplet=function(rt,jt){var It;typeof rt=="string"&&(rt=document.getElementById(rt)),ye=null;var hn=null;for(It=0;It<rt.childNodes.length;It++){var Mt=rt.childNodes[It],Yt=Mt.className;Yt==="applet_screenshot"?jt?(Mt.style.display="block",ye="screenshot"):Mt.style.display="none":Yt!=="applet_scaler prerender"&&(rt.removeChild(Mt),hn=Yt&&Yt.indexOf("appletParameters")!=-1?Mt.id:null,It--)}var Re=ee.id!==void 0?ee.id:hn,Wt=window[Re];Wt&&typeof Wt.getBase64=="function"&&(Wt.remove(),window[Re]=null)},Bt.refreshHitPoints=function(){if(oe(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var rt=Bt.getAppletObject();return rt&&typeof rt.recalculateEnvironments=="function"?(rt.recalculateEnvironments(),!0):!1},Bt.startAnimation=function(){var rt=Bt.getAppletObject();return rt&&typeof rt.startAnimation=="function"?(rt.startAnimation(),!0):!1},Bt.stopAnimation=function(){var rt=Bt.getAppletObject();return rt&&typeof rt.stopAnimation=="function"?(rt.stopAnimation(),!0):!1},Bt.getAppletObject=function(){var rt=ee.id!==void 0?ee.id:"ggbApplet";return window[rt]},Bt.resize=function(){};var Se=function(rt,jt,It){var hn=document.createElement("param");hn.setAttribute("name",jt),hn.setAttribute("value",It),rt.appendChild(hn)},ve=function(rt){return rt&&rt!=="false"},Qe=function(rt,jt,It){oe(se)<=4.2&&(It=!0);var hn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==se||ggbHTML5LoadedCodebaseIsWebSimple&&!a)&&(hn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Mt=document.createElement("div");Mt.classList.add("appletParameters","notranslate");var Yt=jt.width,Re=jt.height;if(jt.disableAutoScale=jt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():jt.disableAutoScale,jt.width!==void 0)if(oe(se)<=4.4)ve(jt.showToolBar)&&(jt.height-=7),ve(jt.showAlgebraInput)&&(jt.height-=37),jt.width<605&&ve(jt.showToolBar)&&(jt.width=605,Yt=605);else{var Wt=100;(ve(jt.showToolBar)||ve(jt.showMenuBar))&&(jt.hasOwnProperty("customToolBar")&&(jt.customToolbar=jt.customToolBar),Wt=ve(jt.showMenuBar)?245:155),Yt<Wt&&(jt.width=Wt,Yt=Wt)}Mt.style.border="none",Mt.style.display="inline-block";for(var Sn in jt)jt.hasOwnProperty(Sn)&&Sn!=="appletOnLoad"&&Mt.setAttribute("data-param-"+Sn,jt[Sn]);te&&Mt.setAttribute("data-param-fontscssurl",te),Bt.resize=function(){GGBAppletUtils.responsiveResize(rt,jt)},window.addEventListener("resize",function(_n){Bt.resize()});var xt=typeof jt.appletOnLoad=="function"?jt.appletOnLoad:function(){};if(!It&&jt.width!==void 0){jt.hasOwnProperty("showSplash")||Mt.setAttribute("data-param-showSplash","false");var Et=rt.querySelector(".applet_scaler.prerender"),Lt=Et!==null;if(Lt)var He=Et.querySelector(".ggb_preview");else{var He=qe(Yt,Re,jt.borderColor,!1);Et=document.createElement("div"),Et.className="applet_scaler",Et.style.position="relative",Et.style.display="block",Et.style.width=Yt+"px",Et.style.height=Re+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Et,"66%"),oe(se)>=5?(jt.appletOnLoad=function(_n){var Xe=rt.querySelector(".ggb_preview");Xe&&Xe.parentNode.removeChild(Xe),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Et),window.GGBT_wsf_view&&$(window).trigger("resize"),xt(_n)},Lt||Et.appendChild(He)):Mt.appendChild(He),Et.appendChild(Mt),Lt||rt.appendChild(Et),setTimeout(function(){Bt.resize()},1)}else{var Ze=document.createElement("div");Ze.className="applet_scaler",Ze.style.position="relative",Ze.style.display="block",Ze.appendChild(Mt),rt.appendChild(Ze),jt.appletOnLoad=function(_n){Bt.resize(),xt(_n)}}function Ve(_n,Xe){Xe&&typeof Xe.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(_n,Xe.appletOnLoad):renderGGBElement(_n),$t("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Xe)}function gt(_n,Xe){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:_n,params:Xe}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(vt){Ve(vt.article,vt.params)}),html5AppletsToProcess=null)},oe(se)<5&&(_n.className+=" geogebraweb")):Ve(_n,Xe)}if(hn){scriptLoadStarted=!0;for(var Dt=0;Dt<Mt.childNodes.length;Dt++){var Gt=Mt.childNodes[Dt].tagName;Gt==="TABLE"&&(Mt.removeChild(Mt.childNodes[Dt]),Dt--)}if(ggbHTML5LoadedScript!==null){var Bn=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Bn!=null&&Bn.parentNode.removeChild(Bn)}var Fn=document.createElement("script"),tn=function(){gt(Mt,jt)};Fn.src=Te+E,ggbHTML5LoadedCodebaseIsWebSimple=a,ggbHTML5LoadedCodebaseVersion=se,ggbHTML5LoadedScript=Fn.src,$t("GeoGebra HTML5 codebase loaded: '"+Te+"'.",jt),!ue&&(!je||je=="5.0")?(a?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),tn()):Te.requirejs?__webpack_require__.e(12).then(function(){var _n=[__webpack_require__(12)];tn.apply(null,_n)}.bind(this)).catch(__webpack_require__.oe):(Fn.onload=tn,rt.appendChild(Fn))}else gt(Mt,jt);jt.height=Re,jt.width=Yt},Le=function(rt,jt,It){var hn=qe(jt.width,jt.height,jt.borderColor,It),Mt=document.createElement("div");Mt.style.position="relative",Mt.style.display="block",Mt.style.width=jt.width+"px",Mt.style.height=jt.height+"px",Mt.className="applet_screenshot applet_scaler"+(It?" applet_screenshot_play":""),Mt.appendChild(hn);var Yt=GGBAppletUtils.getScale(jt,rt,It);It?(rt.appendChild(Ke()),window.GGBT_wsf_view||(rt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Mt,"66%"),rt.appendChild(Mt),Yt!==1&&!isNaN(Yt)&&(GGBAppletUtils.scaleElement(Mt,Yt),Mt.style.width=jt.width+"px",Mt.style.height=jt.height+"px",Mt.parentNode.style.width=jt.width*Yt+"px",Mt.parentNode.style.height=jt.height*Yt+"px"),Bt.resize=function(){ke(rt,hn,Mt,It)},window.addEventListener("resize",function(Re){Bt.resize()}),Bt.resize()};function ke(rt,jt,It,hn){if(rt.contains(jt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(rt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(rt)}var Mt=GGBAppletUtils.getScale(ee,rt,hn);It.parentNode!==null&&(!isNaN(Mt)&&Mt!==1?(GGBAppletUtils.scaleElement(It,Mt),It.parentNode.style.width=ee.width*Mt+"px",It.parentNode.style.height=ee.height*Mt+"px"):(GGBAppletUtils.scaleElement(It,1),It.parentNode.style.width=ee.width+"px",It.parentNode.style.height=ee.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(rt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Bt.onExitFullscreen=function(rt,jt){jt.appendChild(rt)};var Ce=function(rt,jt,It,hn){Le(rt,jt,!0);for(var Mt=function(){var Wt=[];for(Re=0;Re<rt.childNodes.length;Re++)Wt.push(rt.childNodes[Re]);if(window.GGBT_wsf_view){var Sn=window.GGBT_wsf_view.renderFullScreen(rt,jt.id),xt=document.getElementById("fullscreencontainer"),Et=jQuery(rt).find(".fullscreencontent");Et.length>0?(Sn.remove(),Et.attr("id","fullscreencontent").show(),jQuery(xt).append(Et),window.dispatchEvent(new Event("resize"))):Qe(Sn,jt,!1),window.GGBT_wsf_view.launchFullScreen(xt)}else ye=hn,Qe(rt,jt,!1);if(!window.GGBT_wsf_view)for(Re=0;Re<Wt.length;Re++)rt.removeChild(Wt[Re])},Yt=rt.getElementsByClassName("ggb_preview_play"),Re=0;Re<Yt.length;Re++)Yt[Re].addEventListener("click",Mt,!1),Yt[Re].addEventListener("ontouchstart",Mt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(rt),pe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ke=function(){var rt=document.createElement("div");if(rt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var jt='.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");}',It=document.createElement("style");It.styleSheet?It.styleSheet.cssText=jt:It.appendChild(document.createTextNode(jt)),document.getElementsByTagName("head")[0].appendChild(It)}return rt},qe=function(rt,jt,It,hn){var Mt=document.createElement("div");Mt.className="ggb_preview",Mt.style.position="absolute",Mt.style.zIndex="90",Mt.style.width=rt-2+"px",Mt.style.height=jt-2+"px",Mt.style.top="0px",Mt.style.left="0px",Mt.style.overflow="hidden",Mt.style.backgroundColor="white";var Yt="lightgrey";It!==void 0&&(It==="none"?Yt="transparent":Yt=It),Mt.style.border="1px solid "+Yt;var Re=document.createElement("img");if(Re.style.position="relative",Re.style.zIndex="1000",Re.style.top="-1px",Re.style.left="-1px",x!==null&&Re.setAttribute("src",x),Re.style.opacity=.7,y!==null){var Wt,Sn,xt;if(!hn){Wt=document.createElement("img"),Wt.style.position="absolute",Wt.style.zIndex="1001",Wt.style.opacity=1,Re.style.opacity=.3,Sn=360,Sn>rt/4*3&&(Sn=rt/4*3),xt=Sn/5.8,Wt.setAttribute("src",y),Wt.setAttribute("width",Sn),Wt.setAttribute("height",xt);var Et=(rt-Sn)/2,Lt=(jt-xt)/2;Wt.style.left=Et+"px",Wt.style.top=Lt+"px",Mt.appendChild(Wt)}}return Mt.appendChild(Re),Mt},Ue=function(rt){return rt=rt.toLowerCase(),rt==="html5"||rt==="screenshot"?rt:"html5"},Ye=["web","webSimple","web3d","tablet","tablet3d","phone"],ct=function(rt,jt){if(se=rt,jt){yt(se,!0);return}var It=!ie;if(It){var hn=oe(se);!isNaN(hn)&&hn<4.4&&(It=!1)}var Mt,Yt;window.location.protocol.substr(0,4)==="http"?Mt=window.location.protocol:Mt="http:";var Re=se.indexOf("//");Re>0?Yt=se:Re===0?Yt=Mt+se:Yt="https://www.geogebra.org/apps/5.2.814.0/";for(var Wt in Ye)if(se.slice(Ye[Wt].length*-1)===Ye[Wt]||se.slice((Ye[Wt].length+1)*-1)===Ye[Wt]+"/"){yt(Yt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&It&&!b.is3D&&!b.AV&&!b.SV&&!b.CV&&!b.EV2&&!b.CP&&!b.PC&&!b.DA&&!b.FI&&!b.PV&&!ve(ee.showToolBar)&&!ve(ee.showMenuBar)&&!ve(ee.showAlgebraInput)&&!ve(ee.enableRightClick)&&(!ee.appName||ee.appName=="classic")?Yt+="webSimple/":Yt+="web3d/",yt(Yt,!1)},yt=function(rt,jt){if(rt.requirejs){Te=rt;return}rt.slice(-1)!=="/"&&(rt+="/"),Te=rt,jt===null&&(jt=rt.indexOf("http")===-1),Oe=jt,E="web.nocache.js",a=!1;var It=Te.split("/");It.length>1&&(!jt&&It[It.length-2]==="webSimple"?(E="webSimple.nocache.js",a=!0):Ye.indexOf(It[It.length-2])>=0&&(E=It[It.length-2]+".nocache.js")),It=rt.split("/"),se=It[It.length-3],se.substr(0,4)==="test"?se=se.substr(4,1)+"."+se.substr(5,1):(se.substr(0,3)==="war"||se.substr(0,4)==="beta")&&(se="5.0");var hn=parseFloat(se);hn!==NaN&&hn<5&&rt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+hn+" is deprecated. Using version latest instead."),ct("5.0",jt))},$t=function(rt,jt){window.console&&window.console.log&&(!jt||typeof jt.showLogging=="undefined"||jt.showLogging&&jt.showLogging!=="false")&&console.log(rt)};ee.material_id!==void 0?ge(an):an();function an(){var rt=Ct;je!==null?rt=je:parseFloat(rt)<5&&(rt="5.0"),ct(rt,!1),ue!==null&&yt(ue,Oe),Ne=!0}return Bt},GGBAppletUtils=function(){"use strict";function Bt(){return window.GGBT_wsf_edit!==void 0}function Ct(Ne,je){je!=1?(Ne.style.transformOrigin="0% 0% 0px",Ne.style.webkitTransformOrigin="0% 0% 0px",Ne.style.transform="scale("+je+","+je+")",Ne.style.webkitTransform="scale("+je+","+je+")",Ne.style.maxWidth="initial",Ne.querySelector(".ggb_preview")!==null&&(Ne.querySelector(".ggb_preview").style.maxWidth="initial"),Ne.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ne.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ne.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ne.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ne.style.transform="none",Ne.style.webkitTransform="none")}function ee(Ne,je,ue,Ge,Ae,Me){var Te=null;if(Me!=null&&Me!="")for(var Oe=Ne.parentNode;Oe!=null;)if((" "+Oe.className+" ").indexOf(" "+Me+" ")>-1){Te=Oe;break}else Oe=Oe.parentNode;var ye=0,se=0,E=0,a=0,x=0,y=0,z=0;if(Te)ye=Te.offsetWidth,se=Math.max(Ge?Te.offsetWidth:0,Te.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ye=Math.min(window.innerWidth,document.documentElement.clientWidth),se=Math.min(window.innerHeight,document.documentElement.clientHeight),E=ye):(ye=window.innerWidth,se=window.innerHeight,E=window.innerWidth),Ne){var te=Ne.getBoundingClientRect();te.left>0&&te.left<=ye&&(Ae===void 0||!Ae)&&(document.dir==="rtl"?(x=ye-te.width-te.left,y=E<=480?10:30):(y=te.left,x=E<=480?10:30),a=y+x)}if(Ne&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var re=Ne.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(a=40,z=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(a=0,z=40)}}return Ne&&((ue===void 0||!ue)&&je>0&&je+a<ye?ye=je:ye-=a,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ue===void 0||!ue)&&(se-=z)),{width:ye,height:se}}function b(Ne,je,ue,Ge,Ae){if(Ne.isScreenshoGenerator)return 1;var Me=Ge!==void 0&&Ge,Te=Ne.noScaleMargin!=null&&Ne.noScaleMargin,Oe=function(re){return re&&re!=="false"},ye=Oe(Ne.autoHeight),se=ee(je,Ne.width,ue,ye,Me&&window.GGBT_wsf_view||Te,Ae),E=parseInt(se.width),a=Ne.width,x=Ne.height;if(a===void 0){var y=je.querySelector(".appletParameters");y&&(a=y.offsetWidth,x=y.offsetHeight)}var z=E/a,te=Me?1:se.height/x;return ue!==void 0&&!ue&&(z=Math.min(1,z),te=Math.min(1,te)),Math.min(z,te)}function ie(Ne,je,ue){var Ge=1,Ae,Me=!1;if(Ne.hasOwnProperty("allowUpscale")&&(Me=Ne.allowUpscale),Ne.hasOwnProperty("scale")&&(Ge=parseFloat(Ne.scale),(isNaN(Ge)||Ge===null||Ge===0)&&(Ge=1),Ge>1&&(Me=!0)),je&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Me=!0),!(Ne.hasOwnProperty("disableAutoScale")&&Ne.disableAutoScale))Ae=b(Ne,je,Me,ue,Ne.scaleContainerClass);else return Ge;return Me&&(!Ne.hasOwnProperty("scale")||Ge===1)?Ae:Math.min(Ge,Ae)}function Be(Ne){var je=Math.min(window.innerWidth,document.documentElement.clientWidth),ue=Math.min(window.innerHeight,document.documentElement.clientHeight),Ge=Ne.getBoundingClientRect(),Ae=(je-Ge.width)/2,Me=(ue-Ge.height)/2;Me<0&&(Me=0),Ne.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ae<40?Ne.style.left="40px":Ne.style.left=Ae+"px",Ne.style.top=Me+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Me<40?Ne.style.top="40px":Ne.style.top=Me+"px",Ne.style.left=Ae+"px")}function Fe(Ne,je){var ue=Ne.querySelector(".appletParameters");if(ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(je.id!==ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ne)}if(ue.parentElement&&/fullscreen/.test(ue.parentElement.className))return;var Ge=ie(je,Ne);Bt()&&ue.setAttribute("data-param-scale",Ge);for(var Ae=null,Me=0;Me<Ne.childNodes.length;Me++)if(Ne.childNodes[Me].className!==void 0&&Ne.childNodes[Me].className.match(/^applet_scaler/)){Ae=Ne.childNodes[Me];break}if(Ae!==null&&Ae.querySelector(".noscale")!==null)return;var Te=je.id!==void 0?je.id:"ggbApplet",Oe=window[Te];(Oe==null||!Oe.recalculateEnvironments)&&Ae!==null&&!Ae.className.match(/fullscreen/)&&(Ae.parentNode.style.transform="",!isNaN(Ge)&&Ge!==1?(Ae.parentNode.style.width=je.width*Ge+"px",Ae.parentNode.style.height=je.height*Ge+"px",Ct(Ae,Ge)):(Ct(Ae,1),Ae.parentNode.style.width=je.width+"px",Ae.parentNode.style.height=je.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Be(Ne),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ue).parents(".content-added-content"))}}return{responsiveResize:Fe,isFlexibleWorksheetEditor:Bt,positionCenter:Be,getScale:ie,scaleElement:Ct}}();__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 Bt=n.location.search;return Bt.indexOf(J)!=-1||Bt.indexOf(K)!=-1}function q(Bt,Ct){}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(Bt){var Ct=s[L].bindings;s[L].bindings=function(){for(var ee=Ct?Ct():{},b=Bt[webModule.__softPermutationId],ie=O;ie<b.length;ie++){var Be=b[ie];ee[Be[O]]=Be[P]}return ee}};var t;function u(){return v(),t}function v(){if(!t){var Bt=o.createElement(Q);if(Bt.id=L,Bt.style.cssText=R+S,Bt.tabIndex=-1,o.body.appendChild(Bt),t=Bt.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Ct=document.compatMode==U?V:W;t.write(Ct+X),t.close()}}}function w(Bt){function Ct(b){function ie(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Be=ie();if(Be){b();return}function Fe(){if(!Be){if(!ie())return;Be=!0,b(),o.removeEventListener&&o.removeEventListener(Z,Fe,!1),Ne&&clearInterval(Ne)}}o.addEventListener&&o.addEventListener(Z,Fe,!1);var Ne=setInterval(function(){Fe()},$)}function ee(b){var ie=u(),Be=ie.body,Fe=ie.createElement(_);Fe.language=ab,Fe.crossOrigin=W,Fe.src=b,webModule.__errFn&&(Fe.onerror=function(){webModule.__errFn(L,new Error(bb+b))}),Be.appendChild(Fe)}Ct(function(){ee(Bt)})}webModule.__startLoadingFragment=function(Bt){return C(Bt)},webModule.__installRunAsyncCode=function(Bt){var Ct=u(),ee=Ct.body,b=Ct.createElement(_);b.language=ab,b.text=Bt,ee.appendChild(b),ee.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(Bt){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Bt){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Bt){var Ct=c[Bt];return Ct==null?null:Ct},r=d,webModule.__errFn=e}function B(){function Bt(Ne){var je=Ne.lastIndexOf(rb);je==-1&&(je=Ne.length);var ue=Ne.indexOf(sb);ue==-1&&(ue=Ne.length);var Ge=Ne.lastIndexOf(tb,Math.min(ue,je));return Ge>=O?Ne.substring(O,Ge+P):W}function Ct(Ne){if(!Ne.match(/^\w+:\/\//)){var je=o.createElement(ub);je.src=Ne+vb,Ne=Bt(je.src)}return Ne}function ee(){var Ne=__gwt_getMetaProperty(wb);return Ne!=null?Ne:W}function b(){for(var Ne=o.getElementsByTagName(_),je=O;je<Ne.length;++je)if(Ne[je].src.indexOf(xb)!=-1)return Bt(Ne[je].src);return W}function ie(){var Ne=o.getElementsByTagName(yb);return Ne.length>O?Ne[Ne.length-P].href:W}function Be(){var Ne=o.location;return Ne.href==Ne.protocol+zb+Ne.host+Ne.pathname+Ne.search+Ne.hash}var Fe=ee();return Fe==W&&(Fe=b()),Fe==W&&(Fe=ie()),Fe==W&&Be()&&(Fe=Bt(o.location.href)),Fe=Ct(Fe),Fe}function C(Bt){return Bt.match(/^\//)||Bt.match(/^[a-zA-Z]+:\/\//)?Bt:webModule.__moduleBase+Bt}function D(){var Bt=[],Ct=O,ee=[],b=[];function ie(Ne){var je=b[Ne](),ue=ee[Ne];if(je in ue)return je;var Ge=[];for(var Ae in ue)Ge[ue[Ae]]=Ae;throw r&&r(Ne,Ge,je),null}if(__gwt_isKnownPropertyValue=function(Ne,je){return je in ee[Ne]},webModule.__getPropMap=function(){var Ne={};for(var je in ee)ee.hasOwnProperty(je)&&(Ne[je]=ie(je));return Ne},webModule.__computePropValue=ie,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Be;try{Be=Cb;var Fe=Be.indexOf(Db);Fe!=-1&&(Ct=parseInt(Be.substring(Fe+P),$),Be=Be.substring(O,Fe))}catch(Ne){}return webModule.__softPermutationId=Ct,C(Be+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Ax:function(){return Fe},Ds:function(){return Ne},KI:function(){return ue},SI:function(){return Be},f1:function(){return ie}});var b=ee(11320);function ie(Ge){let Ae=!0;if(Ge.length>0){for(let Me=0;Me<Ge.length;Me++)if(Ge[Me].compile_success==0||!Ge[Me].compile_success){Ae=!1;break}}else Ae=!1;return Ae}function Be(Ge,Ae=""){let Me=[];for(let Te=0;Te<Ge.length;Te++){let Oe=Ge[Te],ye=Ae?`${Ae}/${Oe.name}`:`${Oe.name}`;Me.push({title:Oe.name,type:Oe.type,isLeaf:Oe.type!=="tree",key:ye})}return Me}function Fe(Ge,Ae,Me){for(let Te=0;Te<Ge.length;Te++){let Oe=Ge[Te];if(Oe.key===Ae){Oe.children=Me;break}Oe.children&&Fe(Oe.children,Ae,Me)}return Ge}function Ne(Ge,Ae,Me){let Te;return function(){let Oe=this,ye=arguments,se=function(){Te=null,Me||Ge.apply(Oe,ye)},E=Me&&!Te;clearTimeout(Te),Te=setTimeout(se,Ae),E&&Ge.apply(Oe,ye)}}const je=!0,ue=b.Z.API_SERVER},60580:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return se}});var b=ee(71577),ie=ee(67294),Be=Object.defineProperty,Fe=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Ae=(E,a,x)=>a in E?Be(E,a,{enumerable:!0,configurable:!0,writable:!0,value:x}):E[a]=x,Me=(E,a)=>{for(var x in a||(a={}))ue.call(a,x)&&Ae(E,x,a[x]);if(je)for(var x of je(a))Ge.call(a,x)&&Ae(E,x,a[x]);return E},Te=(E,a)=>Fe(E,Ne(a)),Oe=(E,a)=>{var x={};for(var y in E)ue.call(E,y)&&a.indexOf(y)<0&&(x[y]=E[y]);if(E!=null&&je)for(var y of je(E))a.indexOf(y)<0&&Ge.call(E,y)&&(x[y]=E[y]);return x},ye=(E,a,x)=>new Promise((y,z)=>{var te=de=>{try{oe(x.next(de))}catch(pe){z(pe)}},re=de=>{try{oe(x.throw(de))}catch(pe){z(pe)}},oe=de=>de.done?y(de.value):Promise.resolve(de.value).then(te,re);oe((x=x.apply(E,a)).next())});const se=E=>{var a=E,{children:x}=a,y=Oe(a,["children"]);const[z,te]=(0,ie.useState)(!1);return ie.createElement(b.ZP,Te(Me({},y),{loading:z,onClick:re=>ye(void 0,null,function*(){try{te(!0),yield y.onClick(re),te(!1)}catch(oe){console.error(oe),te(!1)}})}),x)}},63037:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return ye}});var b=ee(67294),ie=ee(2453),Be=ee(69677),Fe={codeBox:"codeBox___WpkVl"},Ne=ee(94184),je=ee.n(Ne),ue=Object.defineProperty,Ge=(se,E,a)=>E in se?ue(se,E,{enumerable:!0,configurable:!0,writable:!0,value:a}):se[E]=a,Ae=(se,E,a)=>Ge(se,typeof E!="symbol"?E+"":E,a),Me=(se,E,a)=>new Promise((x,y)=>{var z=oe=>{try{re(a.next(oe))}catch(de){y(de)}},te=oe=>{try{re(a.throw(oe))}catch(de){y(de)}},re=oe=>oe.done?x(oe.value):Promise.resolve(oe.value).then(z,te);re((a=a.apply(se,E)).next())});class Te extends b.Component{constructor(E){super(E),Ae(this,"canvas"),Ae(this,"randomNum",(a,x)=>Math.floor(Math.random()*(x-a)+a)),Ae(this,"drawPic",()=>{this.randomCode()}),Ae(this,"reloadPic",()=>{this.drawPic()}),Ae(this,"changeCode",a=>{console.log(a.target.value,222),this.setState({value:a.target.value,showError:!1})}),Ae(this,"onVerify",()=>{let a;return this.state.value.toLowerCase()!==""&&this.state.value.toLowerCase()!==this.state.code.toLowerCase()?(a=!0,ie.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801"),this.reloadPic()):this.state.value.toLowerCase()===""?(a=!0,ie.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 oe=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);y>40&&(oe=40);const de=this.randomNum(-10,10);E.translate(re,oe),E.rotate(de*Math.PI/180),E.fillText(a,0,0),E.rotate(-de*Math.PI/180),E.translate(-re,-oe)}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:je()(Fe.codeBox,E),style:{width:a}},b.createElement("aside",null,b.createElement(Be.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 Oe=(se,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(Te,{ref:x=>a=x})),onOk:()=>Me(void 0,null,function*(){if(a.onVerify())return Promise.reject();se()})})};var ye=Te},73646:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return Ae}});var b=ee(67294),ie=ee(69677),Be=ee(66309),Fe=ee(2453),Ne={flex:"flex___eLcnP",flex1:"flex1___yUTT7",color666:"color666___TiUhG",error:"error___gTTtv",deleteIcon:"deleteIcon___mnZW1",addIcon:"addIcon___JC5NS"},je=ee(38308);const{TextArea:ue}=ie.default;class Ge extends b.Component{constructor(Te){super(Te),this.state={inputVisible:!1,EditInputIndex:-1}}render(){let{index:Te,onAnswerChange:Oe,addChildAnswer:ye,exerciseIsPublish:se,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:Ne.flex},b.createElement("div",{className:`${Ne.color666} mb5 mt6`,style:{flex:"0 0 90px"}},"\u7B54\u6848(\u586B\u7A7A",Te+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(Be.default,{className:"edit-tag",key:te,closable:!((E==null?void 0:E.length)===1&&re===0),onClose:oe=>{oe.preventDefault(),(E==null?void 0:E.length)===1&&re===0?this.props.deleteChildAnswermain(Te,re):this.props.deleteChildAnswer(Te,re)}},b.createElement("span",{onDoubleClick:oe=>{this.setState({EditInputIndex:re}),oe.preventDefault()}},te)):b.createElement(ie.default,{defaultValue:te,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:oe=>{if(oe.target.value.replaceAll(" ","").length<=0){Fe.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Oe(Te,re,oe.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}):b.createElement(ie.default,{defaultValue:te,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:oe=>{if(oe.target.value.replaceAll(" ","").length<=0){Fe.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Oe(Te,re,oe.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}))),!y&&b.createElement(Be.default,{className:"site-tag-plus",onClick:()=>{ye(Te),this.setState({inputVisible:!0})}},b.createElement(je.Z,null)," \u65B0\u589E\u7B54\u6848")))}}var Ae=Ge},35566:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return se}});var b=ee(67294),ie=ee(35567),Be=Object.defineProperty,Fe=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Ae=(E,a,x)=>a in E?Be(E,a,{enumerable:!0,configurable:!0,writable:!0,value:x}):E[a]=x,Me=(E,a)=>{for(var x in a||(a={}))ue.call(a,x)&&Ae(E,x,a[x]);if(je)for(var x of je(a))Ge.call(a,x)&&Ae(E,x,a[x]);return E},Te=(E,a)=>Fe(E,Ne(a)),Oe=(E,a,x)=>Ae(E,typeof a!="symbol"?a+"":a,x);const ye="\u2581";class se extends b.Component{constructor(){super(...arguments),Oe(this,"getChCountBeforeCursor",(a,x)=>{const y=x.line;let z=0;for(let re=0;re<y;re++)z+=a.getLine(re).split(ye).length-1;const te=a.getLine(y).substring(0,x.ch);return z+=te.split(ye).length-1,z}),Oe(this,"onCMBeforeChange",(a,x)=>{const y=a.getRange(x.from,x.to);let z=0;if(x.text.forEach(te=>{z+=te.split(ye).length-1}),y&&y.indexOf(ye)!=-1){const te=y.split(ye).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(ie.Z,Te(Me({},this.props),{onCMBeforeChange:this.onCMBeforeChange}))}}},40950:function(Bt,Ct,ee){"use strict";ee.d(Ct,{d4:function(){return ye},VP:function(){return Ae}});var b=ee(67294),ie={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 Be=({number:se,active:E,className:a})=>b.createElement("div",{className:`${ie.digitalLabel} ${E?ie.active:""} ${a}`},se);var Fe=ee(83062),Ne=ee(69677),je=ee(2453),ue=ee(67294),Ge=(se,E,a)=>new Promise((x,y)=>{var z=oe=>{try{re(a.next(oe))}catch(de){y(de)}},te=oe=>{try{re(a.throw(oe))}catch(de){y(de)}},re=oe=>oe.done?x(oe.value):Promise.resolve(oe.value).then(z,te);re((a=a.apply(se,E)).next())});const Ae=({defaultValue:se,onFinish:E})=>{const[a,x]=(0,b.useState)(!1),[y,z]=(0,b.useState)(se);return(0,b.useEffect)(()=>{z(se)},[se]),ue.createElement("div",{className:ie.titleEditor},a?ue.createElement(Ne.default,{autoFocus:!0,maxLength:60,style:{textAlign:"center",marginTop:20,marginBottom:20},value:y,onChange:te=>{z(te.target.value)},onBlur:()=>Ge(void 0,null,function*(){var te;if(((te=y==null?void 0:y.replaceAll(" ",""))==null?void 0:te.length)<=0){je.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield E(y))&&x(!1)}),onPressEnter:()=>Ge(void 0,null,function*(){var te;if(((te=y==null?void 0:y.replaceAll(" ",""))==null?void 0:te.length)<=0){je.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield E(y))&&x(!1)})}):ue.createElement("div",{className:ie.title,onDoubleClick:()=>x(!0)},y,ue.createElement(Fe.Z,{title:"\u7F16\u8F91\u8BD5\u5377\u540D\u79F0"},ue.createElement("i",{className:`${ie.editIcon} iconfont icon-bianji_Hover`,onClick:()=>x(!0)}))))};var Me=ee(71230),Te=ee(15746),Oe=(se,E,a)=>new Promise((x,y)=>{var z=oe=>{try{re(a.next(oe))}catch(de){y(de)}},te=oe=>{try{re(a.throw(oe))}catch(de){y(de)}},re=oe=>oe.done?x(oe.value):Promise.resolve(oe.value).then(z,te);re((a=a.apply(se,E)).next())});const ye=({onChange:se=()=>Oe(void 0,null,function*(){}),tabs:E,activeKey:a,defaultActiveKey:x,className:y=""})=>{var z,te,re,oe,de,pe,ge;const[xe,we]=(0,b.useState)(x===void 0?(z=E[0])==null?void 0:z.key:x);return(0,b.useEffect)(()=>{a!==void 0&&we(a)},[a]),b.createElement(Me.Z,{justify:"center",align:"middle",className:`${ie.paperTab} ${y}`},b.createElement(Te.Z,{className:`${ie.tabItem} ${xe===((te=E[0])==null?void 0:te.key)?ie.active:""}`,onClick:()=>Oe(void 0,null,function*(){var Se;yield se(E[0].key),we((Se=E[0])==null?void 0:Se.key)})},b.createElement(Be,{number:1,active:xe===((re=E[0])==null?void 0:re.key),className:"mr10"}),b.createElement("span",null,(oe=E[0])==null?void 0:oe.label)),b.createElement(Te.Z,{flex:"188px",className:`${ie.dottedLine} ml30 mr30`}),b.createElement(Te.Z,{className:`${ie.tabItem} ${xe===((de=E[1])==null?void 0:de.key)?ie.active:""}`,onClick:()=>Oe(void 0,null,function*(){var Se,ve;yield se((Se=E[1])==null?void 0:Se.key),we((ve=E[1])==null?void 0:ve.key)})},b.createElement(Be,{number:2,active:xe===((pe=E[1])==null?void 0:pe.key),className:"mr10"}),b.createElement("span",null,(ge=E[1])==null?void 0:ge.label)))}},20670:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return je}});var b=ee(55241),ie={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},Be=ee(32637),Fe=ee(67294),je=({type:ue,style:Ge})=>{const Ae=Fe.createElement("div",{className:ie.wrap,onClick:Me=>{Me.preventDefault(),Me.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:ie.contact},Fe.createElement("div",{className:ie.img},Fe.createElement("img",{src:Be,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:Ae},Fe.createElement("span",{className:ie.text,style:Ge},"\u9AD8\u6D88\u8017"))}},63205:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return Te}});var b=ee(67294),ie={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Be=ee(94184),Fe=ee.n(Be),Ne=ee(57953),je=ee(15979),ue=ee(33170),Ge=ee(28706),Ae=(Oe,ye,se)=>new Promise((E,a)=>{var x=te=>{try{z(se.next(te))}catch(re){a(re)}},y=te=>{try{z(se.throw(te))}catch(re){a(re)}},z=te=>te.done?E(te.value):Promise.resolve(te.value).then(x,y);z((se=se.apply(Oe,ye)).next())}),Te=({data:Oe,className:ye,fullWidth:se,style:E={},onClose:a,onOk:x,showFullTools:y,noAssociationId:z})=>{const te=(0,b.useRef)(null),re=(0,b.useRef)(null),oe=(0,b.useRef)(null),de=(0,b.useRef)(null),[pe,ge]=(0,b.useState)(!1),[xe,we]=(0,b.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,b.useEffect)(()=>{oe.current||(oe.current=document.createElement("style"),document.head.appendChild(oe.current)),Oe!=null&&Oe.visible?(document.body.setAttribute("data-custom","y-hidden"),oe.current.innerHTML=" html { overflow-y: hidden; }",Oe!=null&&Oe.src&&Se()):(document.body.removeAttribute("data-custom"),oe.current&&(document.head.removeChild(oe.current),oe.current=null))},[Oe==null?void 0:Oe.visible]);const Se=()=>Ae(void 0,null,function*(){ge(!0),we("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ce=yield(0,Ge.ZJ)(Oe==null?void 0:Oe.src);te.current.src="",te.current.src=Ce,te.current.onload=function(){ke()},ge(!1),we("")}),ve=()=>{document.body.removeAttribute("data-custom"),oe.current.innerHTML=" ",a()},Qe=Ce=>Ae(void 0,null,function*(){ge(!0),we("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ke=yield(0,ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Oe.title,file:Ce.dataUrl}});Ke!=null&&Ke.id&&!z?(yield(0,ue.ZP)(`/api/attachments/${Oe.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ke==null?void 0:Ke.id,settings:JSON.stringify(Ce.state)}})).status===0&&x():Ke!=null&&Ke.id&&x(Ke),document.body.removeAttribute("data-custom"),oe.current.innerHTML=" ",ge(!1),we("")}),Le=()=>{const Ce=document.querySelector('a[href="https://markerjs.com/"]');Ce&&Ce.parentNode&&(Ce.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(qe=>{const Ue=document.querySelector(qe.name);Ue&&Ue.setAttribute("title",qe.title)})},ke=()=>{re.current=new je.hP(te.current),re.current.targetRoot=de.current,re.current.addEventListener("render",Qe),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(),Oe!=null&&Oe.snapshotData&&re.current.restoreState(Oe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Le()},300)};return b.createElement(b.Fragment,null,(Oe==null?void 0:Oe.visible)&&b.createElement(Ne.Z,{spinning:pe,tip:xe,style:{position:"absolute"}},b.createElement("div",{ref:de,className:Fe()(ie.imageDimensions,ye,se?ie.fullWidth:""),style:E},b.createElement("img",{className:ie.img,ref:te}))))}},35713:function(Bt,Ct,ee){"use strict";var b=ee(67294),ie=ee(71736),Be=ee(84279),Fe=ee(36527),Ne=ee(14446),je=ee(67294);const ue=(0,b.forwardRef)(({callback:Ge,width:Ae,onChange:Me,disabled:Te,readOnly:Oe,type:ye="",value:se="",style:E={}},a)=>{const x=(0,b.useRef)(),y=(0,b.useRef)(),[z,te]=(0,b.useState)(0),[re,oe]=(0,b.useState)(0),[de,pe]=(0,b.useState)(!1),ge=()=>{var ve=document.createElement("div");ve.innerHTML=x.current.getValue();var Qe=ve.innerText;return Ge&&Ge(Qe),Qe};(0,b.useImperativeHandle)(a,()=>({getData:ge}));const xe=ve=>{ve.preventDefault();const Qe=ve.clientX-z,Le=ve.clientY-re;document.body.onmousemove=ke=>{let Ce=ke.clientX-Qe,Ke=ke.clientY-Le;const qe=document.getElementsByClassName("markdown-popup-form")[0],Ue=window.innerWidth-qe.offsetWidth,Ye=window.innerHeight-qe.offsetHeight;Ce=Math.max(0,Math.min(Ce,Ue)),Ke=Math.max(0,Math.min(Ke,Ye)),we(ke.clientX,ke.clientY,Qe,Le)&&(te(Ce),oe(Ke))},document.body.onmouseup=function(){document.body.onmousemove=null}},we=(ve,Qe,Le,ke)=>{const Ce=document.body.clientHeight,Ke=document.body.clientWidth;return ve<20&&Le>ve||ve>Ke-20&&Le<ve||Qe<20&&ke>Qe||Qe>Ce-20&&ke<Qe?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,b.useEffect)(()=>{de&&setTimeout(()=>{const ve=document.getElementsByClassName("markdown-popup-form")[0],Qe=window.innerWidth/2-ve.offsetWidth/2,Le=window.innerHeight/2-ve.offsetHeight/2;te(Qe),oe(Le)},0)},[de]);const Se=()=>{Te||Oe||pe(!0)};return je.createElement("div",{style:E},je.createElement("div",{style:{width:Ae||"100%",position:"relative"},className:`${ie.Z.mathFillWrap} ${Te||Oe?"cursorDefault":""}`,onClick:()=>Se()},je.createElement("math-field",{disabled:Te,locale:"zh_cn",class:`${ie.Z.mathField} ${ye}`,readOnly:Oe,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:x,style:{width:"100%",fontSize:se?18:14},value:se||""})),je.createElement(Ne.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:z,top:re},title:je.createElement("div",{style:{cursor:"move"},onMouseDown:xe},"\u8F93\u5165\u516C\u5F0F"),open:de,onOk:()=>{const ve=y.current.getData();x.current.setValue(ve),Me(ve),pe(!1)},onCancel:()=>{pe(!1)},destroyOnClose:!0,className:"markdown-popup-form"},je.createElement(Fe.Z,{value:se,ref:y,onChange:Me,showSaveButton:!1})))});Ct.Z=ue},36527:function(Bt,Ct,ee){"use strict";var b=ee(67294),ie=ee(71230),Be=ee(15746),Fe=ee(66368),Ne=ee(71577),je=ee(85725),ue=ee(71736),Ge=ee(84279),Ae=ee(67294);const Me=(0,b.forwardRef)(({callback:Te,showSaveButton:Oe,value:ye=""},se)=>{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:Ae.createElement(ie.Z,{className:ue.Z.lists,gutter:[10,10]},a.map((re,oe)=>Ae.createElement(Be.Z,{flex:"110px",className:ue.Z.item},Ae.createElement("div",null,Ae.createElement(je.Z,{value:`$$${re.value}$$`}),re.name),Ae.createElement("div",{className:ue.Z.children},re.children.map((de,pe)=>Ae.createElement("div",{key:pe},Ae.createElement("h1",null,de.name),Ae.createElement(ie.Z,{gutter:[10,10]},de.data.map((ge,xe)=>Ae.createElement(Be.Z,{key:xe,onClick:()=>y(ge),className:ue.Z.diamond},Ae.createElement(je.Z,{value:"`$$"+ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ae.createElement(ie.Z,{className:ue.Z.lists,gutter:[10,10]},x.map((re,oe)=>Ae.createElement(Be.Z,{flex:"110px",className:ue.Z.item},Ae.createElement("div",null,Ae.createElement(je.Z,{value:"`$$"+re.value+"$$`"}),re.name),Ae.createElement("div",{className:ue.Z.children},re.children.map((de,pe)=>Ae.createElement("div",{key:pe},de.name&&Ae.createElement("h1",null,de.name),Ae.createElement(ie.Z,{gutter:[10,10]},de.data.map((ge,xe)=>Ae.createElement(Be.Z,{key:xe,onClick:()=>y(ge),className:ue.Z.diamond},Ae.createElement(je.Z,{value:"`$$"+ge.value+"$$`"}))))))))))}],te=()=>{var re=document.createElement("div");re.innerHTML=E.current.getValue();var oe=re.innerText;return Te&&Te(oe),oe};return(0,b.useImperativeHandle)(se,()=>({getData:te})),Ae.createElement("div",{className:ue.Z.mathWrap},Ae.createElement(Fe.default,{defaultActiveKey:"1",items:z}),Ae.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}},ye||""),Oe&&Ae.createElement("div",{className:ue.Z.button},Ae.createElement(Ne.ZP,{size:"large",onClick:te,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ct.Z=Me},15312:function(Bt,Ct,ee){"use strict";ee.d(Ct,{t:function(){return Lt}});var b=ee(67294),ie=ee(69677),Be=ee(22150),Fe=ee(14446),Ne=ee(71230),je=ee(15746),ue=ee(31795),Ge=ee(11713),Ae=ee(78045),Me=ee(41307),Te=ee(35973),Oe=ee(52654),ye=ee(2453),se=ee(71577),E=ee(57953),a=ee(19575),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=ee(33170),z=ee(88742),te=ee(35567),re=ee(74855),oe=ee(96707),de=ee(67294),pe=Object.defineProperty,ge=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,Qe=(He,Ze,Ve)=>Ze in He?pe(He,Ze,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):He[Ze]=Ve,Le=(He,Ze)=>{for(var Ve in Ze||(Ze={}))Se.call(Ze,Ve)&&Qe(He,Ve,Ze[Ve]);if(we)for(var Ve of we(Ze))ve.call(Ze,Ve)&&Qe(He,Ve,Ze[Ve]);return He},ke=(He,Ze)=>ge(He,xe(Ze)),Ce=(He,Ze,Ve)=>new Promise((gt,Dt)=>{var Gt=tn=>{try{Fn(Ve.next(tn))}catch(_n){Dt(_n)}},Bn=tn=>{try{Fn(Ve.throw(tn))}catch(_n){Dt(_n)}},Fn=tn=>tn.done?gt(tn.value):Promise.resolve(tn.value).then(Gt,Bn);Fn((Ve=Ve.apply(He,Ze)).next())}),qe=({buttonProps:He,buttonText:Ze,form:Ve,hackIdentifier:gt="",answerKey:Dt,data:Gt})=>{const[Bn,Fn]=(0,b.useState)(!1),[tn,_n]=(0,b.useState)(!1),[Xe,vt]=(0,b.useState)(!1),[mn,Cn]=(0,b.useState)({}),[St,vn]=(0,b.useState)(""),[Nn,ln]=(0,b.useState)(""),ma=(0,b.useRef)(gt),Ut=(0,b.useRef)(""),wt=(0,b.useRef)(!1);(0,b.useEffect)(()=>{Xe&&la()},[Xe]),(0,b.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const Un=()=>new Date().getTime(),fa=Gt==null?void 0:Gt.code,wa=()=>{var rn,sn;let na=fa?Gt==null?void 0:Gt.code:(rn=Ve.getFieldValue("hack_codes"))==null?void 0:rn.code,Ga=fa?Gt==null?void 0:Gt.answer_content:Ve.getFieldValue(Dt),Fr=fa?Gt==null?void 0:Gt.input:(sn=Ve.getFieldValue("hack_sets"))==null?void 0:sn.input;Ga==null||Ga.forEach(_r=>{const or=_r.value||_r.answer_text||"";na=na.replace(/(@▁@|@▁▁@)/,or)}),ln(Fr),vn(na),Cn({}),vt(!0)},la=()=>Ce(void 0,null,function*(){var rn,sn,na,Ga;const Fr=Un(),_r=fa?Gt==null?void 0:Gt.time_limit:(rn=Ve.getFieldsValue())==null?void 0:rn.hack.time_limit,or=fa?(sn=Gt==null?void 0:Gt.answer_content)==null?void 0:sn.length:(Ga=(na=Ve.getFieldsValue())==null?void 0:na.standard_answers)==null?void 0:Ga.length;Fn(!0),yield(0,z.bM)(Ut.current,{test_hack_code:St,test_input:Nn});function Rn(){return Ce(this,null,function*(){const{status:Ra,data:En}=yield(0,z.rX)(Ut.current,"submit"),Vn=Un()-Fr>(_r+3)*1e3*or;if(wt.current){if(Vn){ye.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),Fn(!1);return}if(Ra===0){Fn(!1),Cn(ke(Le({},En),{showText:!0}));return}setTimeout(Rn,1e3)}})}Rn()}),rr=()=>Ce(void 0,null,function*(){var rn,sn,na,Ga,Fr,_r,or;if(!Gt){try{yield Ve.validateFields()}catch(Mn){(na=(sn=(rn=Mn==null?void 0:Mn.errorFields)==null?void 0:rn[0])==null?void 0:sn.name)!=null&&na.includes("standard_answers")?ye.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):ye.ZP.error(Mn.errorFields[0].errors[0]),Ve.scrollToField(Mn.errorFields[0].name,{behavior:"smooth",block:"center"});return}_n(!0);let Ra="";const En=Ve.getFieldsValue();ma.current?Ra=yield(0,y.ZP)(`/api/problems/${ma.current}.json`,{method:"put",body:ke(Le({},En),{hack:ke(Le({},En==null?void 0:En.hack),{sub_discipline_id:(or=(_r=En==null?void 0:En.hack)==null?void 0:_r.sub_discipline_id)==null?void 0:or[1],difficult:En.difficulty,item_banks_group_id:En.item_banks_group_id}),hack_codes:ke(Le({},En.hack_codes),{code:a.Base64.encode(En.hack_codes.code)}),update_hack_sets:[Le({},En.hack_sets)],is_blank:!0})}):(Ra=yield(0,y.ZP)("/api/problems.json",{method:"post",body:ke(Le({},En),{hack:ke(Le({},En==null?void 0:En.hack),{sub_discipline_id:(Fr=(Ga=En==null?void 0:En.hack)==null?void 0:Ga.sub_discipline_id)==null?void 0:Fr[1],difficult:En.difficulty,item_banks_group_id:En.item_banks_group_id}),hack_codes:ke(Le({},En.hack_codes),{code:a.Base64.encode(En.hack_codes.code)}),hack_sets:[Le({},En.hack_sets)],is_blank:!0})}),ma.current=Ra==null?void 0:Ra.identifier,sessionStorage.projectFill=Ra==null?void 0:Ra.identifier)}const Rn=yield(0,y.ZP)(`/api/problems/${ma.current}/start.json`,{method:"get"});if((Rn==null?void 0:Rn.status)===0){Ut.current=Rn==null?void 0:Rn.identifier,wt.current=!0,_n(!1),wa();return}_n(!1)}),en=rn=>{const{status:sn,error_msg:na,execute_time:Ga,output:Fr,input:_r,expected_output:or}=rn;let Rn=null;switch(sn){case oe.h.OK:Rn=de.createElement(de.Fragment,null,de.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Ga/1e3,"\u79D2"),de.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case oe.h.NOMATCH:Rn=de.createElement(de.Fragment,null,de.createElement("div",null,"\u8F93\u5165\uFF1A"),de.createElement("pre",{style:{fontFamily:"initial"}},_r),de.createElement("div",null,"\u8F93\u51FA\uFF1A"),de.createElement("pre",{style:{fontFamily:"initial"}},Fr&&a.Base64.decode(Fr)),de.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),de.createElement("pre",{style:{fontFamily:"initial"}},or&&a.Base64.decode(or)));break;case oe.h.EXECUTEFAILURE:Rn=de.createElement(de.Fragment,null,de.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",de.createElement("pre",null,_r)),de.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),de.createElement("pre",{className:"error"},a.Base64.decode(na)));break;case oe.h.COMPILEFAILURE:Rn=de.createElement(de.Fragment,null,de.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",de.createElement("pre",null,_r)),de.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),de.createElement("pre",{className:"error"},a.Base64.decode(na)));break;case oe.h.PODFAILURE:Rn=de.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case oe.h.TIMEOUT:Rn=de.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return de.createElement(de.Fragment,null," ",Rn," ")};return de.createElement("div",null,de.createElement(se.ZP,ke(Le({loading:tn},He),{onClick:rr}),Ze),de.createElement(Fe.default,{open:Xe,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:Bn,cancelButtonProps:{style:{display:"none"}},onOk:()=>la(),onCancel:()=>{wt.current=!1,vt(!1)}},de.createElement("div",{className:x.result},de.createElement("div",{className:x.left},de.createElement("div",{className:"mb20"},de.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!Gt&&de.createElement(re.CopyToClipboard,{text:St,onCopy:()=>ye.ZP.success("\u590D\u5236\u6210\u529F")},de.createElement("span",{style:{float:"right"},className:"current c-light-primary"},de.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),de.createElement(te.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:St,onChange:rn=>vn(rn)})),de.createElement("div",{className:x.right},de.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),de.createElement("div",{className:x.box},de.createElement("div",{className:x.li},de.createElement(ie.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:Nn,onChange:rn=>ln(rn.target.value),bordered:!1,style:{height:180}}))),de.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),de.createElement("div",{className:x.box},de.createElement(E.Z,{spinning:Bn,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},de.createElement("div",{className:x.li,style:{height:196,overflow:"auto",padding:10}},en(mn))))))))},Ue=ee(55304),Ye=ee(67294),ct=Object.defineProperty,yt=Object.defineProperties,$t=Object.getOwnPropertyDescriptors,an=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,It=(He,Ze,Ve)=>Ze in He?ct(He,Ze,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):He[Ze]=Ve,hn=(He,Ze)=>{for(var Ve in Ze||(Ze={}))rt.call(Ze,Ve)&&It(He,Ve,Ze[Ve]);if(an)for(var Ve of an(Ze))jt.call(Ze,Ve)&&It(He,Ve,Ze[Ve]);return He},Mt=(He,Ze)=>yt(He,$t(Ze)),Yt=(He,Ze)=>{var Ve={};for(var gt in He)rt.call(He,gt)&&Ze.indexOf(gt)<0&&(Ve[gt]=He[gt]);if(He!=null&&an)for(var gt of an(He))Ze.indexOf(gt)<0&&jt.call(He,gt)&&(Ve[gt]=He[gt]);return Ve};const{TextArea:Re}=ie.default,Wt=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],Sn=({value:He,onChange:Ze})=>Ye.createElement(Switch,{checked:He,onChange:Ve=>{Ze(Ve)}}),xt="@\u2581@",Et="@\u2581\u2581@",Lt=({questionTitlePlaceholder:He,form:Ze,scoreByBlank:Ve=!1,hackidentifier:gt,answerKey:Dt})=>{const[Gt,Bn]=(0,b.useState)(!1),[Fn,tn]=(0,b.useState)(!1),Xe=(0,Te.useParams)().type==="edit",vt=(Ut,wt)=>{const Un=wt.line;let fa=0;for(let la=0;la<Un;la++)fa+=Ut.getLine(la).split(xt).length-1;for(let la=0;la<Un;la++)fa+=Ut.getLine(la).split(Et).length-1;const wa=Ut.getLine(Un).substring(0,wt.ch);return fa+=wa.split(xt).length-1,fa+=wa.split(Et).length-1,fa},mn=(Ut,wt,Un,fa)=>{const wa=Ut.getRange(wt.from,wt.to);let la=0;if(wt.text.forEach(rr=>{la+=rr.split(xt).length-1}),wt.text.forEach(rr=>{la+=rr.split(Et).length-1}),wt.origin!=="setValue"){if(wa&&(wa.indexOf(xt)!==-1||wa.indexOf(Et)!==-1)){const rr=wa.split(xt).length-1+wa.split(Et).length-1,en=vt(Ut,wt.from);if(console.log(`\u5220\u9664${rr}\u4E2A\uFF0C \u524D\u9762\u6709${en}\u4E2A\uFF0C\u65B0\u589E${la}\u4E2A`),rr>1){const rn=Array.from({length:rr},(sn,na)=>en+na);fa(rn)}else fa(en)}else if(la>0){const rr=vt(Ut,wt.from);console.log(`\u65B0\u589E${la}\u4E2A\uFF0C\u4E4B\u524D\u6709${rr}\u4E2A`),Un(la,rr)}}},Cn=()=>{const Ut=Ze.getFieldValue(Dt);Ze.setFieldsValue({[Dt]:Ut==null?void 0:Ut.map((wt,Un)=>Mt(hn({},wt),{position:Un+1}))})},St=(0,b.useRef)(),vn=(Ut,wt)=>{for(let Un=0;Un<Ut;Un++)St.current({position:null,answer_text:""},wt+Un);Cn()},Nn=(0,b.useRef)(),ln=Ut=>{Nn.current(Ut),Cn()},ma=Be.default.useWatch(Dt,Ze);return Ye.createElement("div",{className:Oe.Z.wrap},Ye.createElement(Be.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},Ye.createElement(Me.h,{scrollId:"name",watch:!0,height:140})),Ye.createElement("div",{className:Oe.Z.questionTitleEditorWrap},Ye.createElement(Be.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},Ye.createElement(Me.h,{scrollId:"name",watch:!0,height:400,hidetoolBar:!0,showNullProgramButton:!0,onChange:(Ut,wt)=>{const Un=Ze.getFieldValue(Dt);console.log("--preAnswerData",Un,wt),Ze.setFieldsValue({[Dt]:Un==null?void 0:Un.map((fa,wa)=>{var la;return Mt(hn({},fa),{position:wa+1,multi_line:(la=wt==null?void 0:wt[wa])==null?void 0:la.multiLine})})})},placeholder:He,onCMBeforeChange:(Ut,wt)=>{mn(Ut,wt,vn,ln)}}))),Ye.createElement(Be.default.List,{name:Dt,rules:[{validator(Ut,wt){if(!(wt!=null&&wt.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const Un of wt){const{answer_text:fa}=Un||{};if((fa==null?void 0:fa.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Ut,{add:wt,remove:Un},{errors:fa})=>(St.current=wt,Nn.current=Un,Ye.createElement(Ye.Fragment,null,Ye.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},Ye.createElement(Be.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),Ye.createElement("div",{onClick:()=>{Fe.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:Ye.createElement("div",null,Ye.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",Ye.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),Ye.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"}},Ye.createElement(Ue.Z,{style:{marginRight:3,color:"#3061D0"}}),Ye.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),Ut.map((wa,la)=>{var rr=wa,{key:en,name:rn}=rr,sn=Yt(rr,["key","name"]),na,Ga;return Ye.createElement(Ne.Z,{className:"mb20",key:en,align:"middle",wrap:!1},Ye.createElement(je.Z,{flex:"0 0 auto",className:`${Oe.Z.blankIndex}`},"\u586B\u7A7A\u9879",la+1),Ye.createElement(je.Z,{flex:1},Ye.createElement(Ne.Z,{align:"top",justify:"space-between",wrap:!1},Ye.createElement(je.Z,null,Ye.createElement(Be.default.Item,Mt(hn({},sn),{name:[rn,"answer_text"],noStyle:!0}),(na=ma==null?void 0:ma[rn])!=null&&na.multi_line||(Ga=ma==null?void 0:ma[rn])!=null&&Ga.multiLine?Ye.createElement(Re,{spellCheck:!1,style:{marginLeft:10,width:550}}):Ye.createElement(ie.default,{style:{marginLeft:10,width:550},className:Oe.Z.blankInput,size:"large",maxLength:1e3,onBlur:Fr=>{}}))),Ve&&Ye.createElement(je.Z,{flex:"224px"},Ye.createElement(Be.default.Item,Mt(hn({},sn),{name:[rn,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),Ye.createElement(ue.Z,{size:"large",className:Oe.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),Ye.createElement("div",{onClick:()=>Bn(!0)},Ye.createElement(Be.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Ye.createElement(Me.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Gt}))),Ye.createElement(Be.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"}]},Ye.createElement(Ge.default,{size:"large"},Wt.map(Ut=>Ye.createElement(Ge.default.Option,{key:Ut.title,value:Ut.key}," ",Ut.title)))),Ye.createElement(Be.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},Ye.createElement(Be.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},Ye.createElement(ue.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),Ye.createElement("span",{className:"ml10 font14"},"\u79D2")),Ye.createElement(Be.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"}]},Ye.createElement(Ae.ZP.Group,{style:{marginTop:-10}},Ye.createElement(Ae.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),Ye.createElement(Ae.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),Ye.createElement(Ae.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),Ye.createElement(Be.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),Ye.createElement("div",{style:{background:"#F6F7F9",padding:15}},Ye.createElement(Be.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},Ye.createElement(Re,{rows:4})),Ye.createElement(Be.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},Ye.createElement(Re,{rows:4}))),Ye.createElement(qe,{form:Ze,answerKey:Dt,hackIdentifier:gt,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:Ye.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"}}}))}},11776:function(Bt,Ct,ee){"use strict";ee.d(Ct,{u:function(){return de}});var b=ee(67294),ie=ee(71230),Be=ee(15746),Fe=ee(83062),Ne=ee(22150),je=ee(52654),ue=ee(40043),Ge=ee(24018),Ae=ee(41307),Me=ee(67294),Te=Object.defineProperty,Oe=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,x=(pe,ge,xe)=>ge in pe?Te(pe,ge,{enumerable:!0,configurable:!0,writable:!0,value:xe}):pe[ge]=xe,y=(pe,ge)=>{for(var xe in ge||(ge={}))E.call(ge,xe)&&x(pe,xe,ge[xe]);if(se)for(var xe of se(ge))a.call(ge,xe)&&x(pe,xe,ge[xe]);return pe},z=(pe,ge)=>Oe(pe,ye(ge)),te=(pe,ge)=>{var xe={};for(var we in pe)E.call(pe,we)&&ge.indexOf(we)<0&&(xe[we]=pe[we]);if(pe!=null&&se)for(var we of se(pe))ge.indexOf(we)<0&&a.call(pe,we)&&(xe[we]=pe[we]);return xe};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"],oe=({value:pe,onChange:ge,choiceTextKey:xe,answerKey:we,index:Se,isEdit:ve,setInputActive:Qe,form:Le,choiceOptionsPath:ke,allowChangeMode:Ce,showAddIcon:Ke,addItem:qe,deleteItem:Ue})=>{console.log(pe,"value");const Ye=(pe==null?void 0:pe[we])===1,ct=()=>{const $t=Le.getFieldValue(ke);Le.setFieldValue(ke,$t.map(an=>z(y({},an),{[we]:0})))},yt=()=>{Ye?ge(z(y({},pe),{[we]:0})):(Ce||ct(),ge(z(y({},pe),{[we]:1})))};return Me.createElement(ie.Z,{className:je.Z.choiceWrap,align:"middle",wrap:!1},Me.createElement(Be.Z,{onClick:yt,className:`${je.Z.choiceIndex} ${Ye?je.Z.activeAnswer:""}`},re[Se]),Me.createElement(Be.Z,{flex:1,className:`${je.Z.editorWrap} ml15`,onClick:Qe},Me.createElement(Ae.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:ve,value:pe==null?void 0:pe[xe],onChange:$t=>{ge(z(y({},pe),{[xe]:$t}))}})),Me.createElement(Be.Z,{flex:"0 0 auto",className:"ml15"},Me.createElement("div",{onClick:yt,className:`${je.Z.setAnswerBtn} ${Ye?je.Z.activeAnswer:""}`},Ye?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),Me.createElement(Be.Z,{className:je.Z.actionWrapper},Me.createElement(Fe.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},Me.createElement(ue.Z,{className:je.Z.addIcon,onClick:qe,style:{visibility:Ke?"visible":"hidden"}})),Me.createElement(Fe.Z,{title:"\u5220\u9664"},Me.createElement(Ge.Z,{className:je.Z.deleteIcon,onClick:Ue,style:{visibility:Se>1?"visible":"hidden"}}))))},de=({questionTitlePlaceholder:pe,titleKey:ge,choiceKey:xe,analysisKey:we,choiceTextKey:Se,answerKey:ve,choiceOptionsPath:Qe,allowChangeMode:Le=!0,form:ke,showAnalysis:Ce=!0})=>{const[Ke,qe]=(0,b.useState)(),[Ue,Ye]=(0,b.useState)(!1);return Me.createElement("div",{className:je.Z.wrap},Me.createElement("div",{className:je.Z.questionTitleEditorWrap},Me.createElement(Ne.default.Item,{label:"\u9898\u5E72",name:ge,labelCol:{span:24},rules:[{required:!0}]},Me.createElement(Ae.h,{scrollId:Array.isArray(ge)?ge.join("_"):`${ge}`,watch:!0,height:140,placeholder:pe}))),Me.createElement(Ne.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),Me.createElement(Ne.default.List,{name:xe,rules:[{validator(ct,yt){const $t=yt.some(rt=>rt[ve]===1),an=yt.findIndex(rt=>{var jt;return((jt=rt[Se])==null?void 0:jt.length)<=0});return an!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${re[an]}\u9009\u9879\u7684\u5185\u5BB9`)):$t?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(ct,{add:yt,remove:$t})=>Me.createElement("div",{id:Array.isArray(Qe)?Qe.join("_"):`${Qe}`},ct.map((an,rt)=>{var jt=an,{key:It,name:hn}=jt,Mt=te(jt,["key","name"]);const Yt=Ke===It,Re=()=>{qe(It)},Wt=rt<7&&rt===ct.length-1,Sn=()=>yt({[Se]:"",[ve]:0}),xt=()=>$t(hn);return Me.createElement(Ne.default.Item,z(y({},Mt),{key:It,name:hn,className:je.Z.choiceListWrap,rules:[{validator(Et,Lt){return Lt!=null&&Lt.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${re[rt]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),Me.createElement(oe,{choiceTextKey:Se,answerKey:ve,index:rt,isEdit:Yt,setInputActive:Re,form:ke,choiceOptionsPath:Qe,allowChangeMode:Le,showAddIcon:Wt,addItem:Sn,deleteItem:xt}))}),ct.length<8&&Me.createElement("div",{className:`${je.Z.addBtn} mb30`,onClick:()=>yt({[Se]:"",[ve]:0})},"\u6DFB\u52A0\u9009\u9879"))),Ce&&Me.createElement("div",{onClick:()=>Ye(!0)},Me.createElement(Ne.default.Item,{name:we,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Me.createElement(Ae.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ue}))))}},81580:function(Bt,Ct,ee){"use strict";ee.d(Ct,{u:function(){return Le}});var b=ee(67294),ie=ee(14446),Be=ee(71230),Fe=ee(15746),Ne=ee(69677),je=ee(83062),ue=ee(47897),Ge=ee(22150),Ae=ee(78045),Me=ee(31795),Te=ee(41307),Oe=ee(24018),ye=ee(17663),se=ee(52654),E=ee(35713),a=ee(67294),x=Object.defineProperty,y=Object.defineProperties,z=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,de=(ke,Ce,Ke)=>Ce in ke?x(ke,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):ke[Ce]=Ke,pe=(ke,Ce)=>{for(var Ke in Ce||(Ce={}))re.call(Ce,Ke)&&de(ke,Ke,Ce[Ke]);if(te)for(var Ke of te(Ce))oe.call(Ce,Ke)&&de(ke,Ke,Ce[Ke]);return ke},ge=(ke,Ce)=>y(ke,z(Ce)),xe=(ke,Ce)=>{var Ke={};for(var qe in ke)re.call(ke,qe)&&Ce.indexOf(qe)<0&&(Ke[qe]=ke[qe]);if(ke!=null&&te)for(var qe of te(ke))Ce.indexOf(qe)<0&&oe.call(ke,qe)&&(Ke[qe]=ke[qe]);return Ke};const we=({value:ke,onChange:Ce})=>{const Ke=Ue=>{ie.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:se.Z.modal,onOk:()=>{const Ye=[...ke];Ye.splice(Ue,1),Ce(Ye)}})},qe=()=>{const Ue=[...ke];Ue.push(""),Ce(Ue)};return a.createElement(Be.Z,{className:"ml20"},a.createElement(Fe.Z,{flex:1},ke==null?void 0:ke.map((Ue,Ye)=>a.createElement(Be.Z,{key:`${Ue}_${Ye}`,className:"mb20"},a.createElement(Ne.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Ue,autoSize:{maxRows:3},maxLength:1e3,onBlur:ct=>{const yt=[...ke],$t=ct.target.value.trim();yt[Ye]=$t,Ce(yt)}}),a.createElement(je.Z,{title:"\u5220\u9664"},a.createElement(Oe.Z,{className:se.Z.deleteIcon,style:{marginLeft:15,visibility:Ye>0?"visible":"hidden"},onClick:()=>Ke(Ye)}))))),a.createElement(Fe.Z,null,a.createElement("div",{className:`${se.Z.addBtn}`,onClick:()=>{qe()}},"\u65B0\u589E\u7B54\u6848")))},Se=({value:ke,onChange:Ce})=>{const Ke=Ue=>{ie.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:se.Z.modal,onOk:()=>{const Ye=[...ke];Ye.splice(Ue,1),Ce(Ye)}})},qe=()=>{const Ue=[...ke];Ue.push(""),Ce(Ue)};return a.createElement(Be.Z,{className:"ml20"},a.createElement(Fe.Z,{flex:1},ke==null?void 0:ke.map((Ue,Ye)=>a.createElement(Be.Z,{key:`${Ue}_${Ye}`,align:"middle",className:"mb20"},a.createElement(E.Z,{value:Ue,style:{flex:1},onChange:ct=>{const yt=[...ke];yt[Ye]=ct,Ce(yt)}}),a.createElement(je.Z,{title:"\u5220\u9664"},a.createElement(Oe.Z,{className:se.Z.deleteIcon,style:{marginLeft:15,visibility:Ye>0?"visible":"hidden"},onClick:()=>Ke(Ye)}))))),a.createElement(Fe.Z,null,a.createElement("div",{className:`${se.Z.addBtn}`,onClick:()=>{qe()}},"\u65B0\u589E\u7B54\u6848")))},ve=({value:ke=!0,onChange:Ce})=>a.createElement(ue.Z,{checked:!ke,onChange:Ke=>{Ce(!Ke)}}),Qe="\u2581",Le=({questionTitlePlaceholder:ke,form:Ce,scoreByBlank:Ke=!1,answerKey:qe})=>{const[Ue,Ye]=(0,b.useState)(!1),ct=(Mt,Yt)=>{const Re=Yt.line;let Wt=0;for(let xt=0;xt<Re;xt++)Wt+=Mt.getLine(xt).split(Qe).length-1;const Sn=Mt.getLine(Re).substring(0,Yt.ch);return Wt+=Sn.split(Qe).length-1,Wt},yt=(Mt,Yt,Re,Wt)=>{const Sn=Mt.getRange(Yt.from,Yt.to);let xt=0;if(Yt.text.forEach(Et=>{xt+=Et.split(Qe).length-1}),Yt.origin!=="setValue"){if(Sn&&Sn.indexOf(Qe)!==-1){const Et=Sn.split(Qe).length-1,Lt=ct(Mt,Yt.from);if(console.log(`\u5220\u9664${Et}\u4E2A\uFF0C \u524D\u9762\u6709${Lt}\u4E2A\uFF0C\u65B0\u589E${xt}\u4E2A`),Et>1){const He=Array.from({length:Et},(Ze,Ve)=>Lt+Ve);Wt(He)}else Wt(Lt)}else if(xt>0){const Et=ct(Mt,Yt.from);console.log(`\u65B0\u589E${xt}\u4E2A\uFF0C\u4E4B\u524D\u6709${Et}\u4E2A`),Re(xt,Et)}}},$t=()=>{const Mt=Ce.getFieldValue(qe);Ce.setFieldsValue({[qe]:Mt.map((Yt,Re)=>ge(pe({},Yt),{position:Re+1}))})},an=(0,b.useRef)(),rt=(Mt,Yt)=>{for(let Re=0;Re<Mt;Re++)an.current({position:null,answer_text:[""],model:1},Yt+Re);$t()},jt=(0,b.useRef)(),It=Mt=>{jt.current(Mt),$t()},hn=Ge.default.useWatch(qe,Ce);return a.createElement("div",{className:se.Z.wrap},a.createElement("div",{className:se.Z.questionTitleEditorWrap},a.createElement(Ge.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},a.createElement(Te.h,{scrollId:"name",watch:!0,height:140,placeholder:ke,showNullButton:!0,onCMBeforeChange:(Mt,Yt)=>{yt(Mt,Yt,rt,It)}}))),a.createElement(Ge.default.List,{name:qe,rules:[{validator(Mt,Yt){if(!(Yt!=null&&Yt.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Re of Yt){const{answer_text:Wt}=Re||{};if(Wt!=null&&Wt.some(Sn=>(Sn==null?void 0:Sn.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Mt,{add:Yt,remove:Re},{errors:Wt})=>(an.current=Yt,jt.current=Re,a.createElement(a.Fragment,null,a.createElement(Ge.default.Item,{label:a.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(Mt!=null&&Mt.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}}),Mt.map((Sn,xt)=>{var Et=Sn,{key:Lt,name:He}=Et,Ze=xe(Et,["key","name"]),Ve,gt;return a.createElement("div",{style:{marginBottom:10},key:Lt},a.createElement(Be.Z,{className:"mb20",align:"middle",wrap:!1},a.createElement(Fe.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${se.Z.blankIndex}`},"\u586B\u7A7A\u9879",xt+1),a.createElement(Ge.default.Item,ge(pe({},Ze),{name:[He,"model"],noStyle:!0}),a.createElement(Ae.ZP.Group,{onChange:()=>{const Dt=Ce.getFieldValue(qe);Ce.setFieldsValue({[qe]:Dt.map((Gt,Bn)=>ge(pe({},Gt),{answer_text:He===Bn?[""]:Gt.answer_text}))})}},a.createElement(Ae.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",a.createElement(je.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6587\u672C\u7B54\u6848"},a.createElement(ye.Z,null))),a.createElement(Ae.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",a.createElement(je.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u7F16\u5199\u6570\u5B66\u516C\u5F0F\u4F5C\u4E3A\u7B54\u6848"},a.createElement(ye.Z,null)))))),a.createElement(Be.Z,{style:{marginLeft:20},align:"middle",wrap:!1},a.createElement(Fe.Z,{flex:1},a.createElement(Be.Z,{align:"top",justify:"space-between",wrap:!1},a.createElement(Fe.Z,{flex:1},a.createElement(Ge.default.Item,ge(pe({},Ze),{name:[He,"answer_text"],noStyle:!0}),((gt=(Ve=Ce.getFieldValue(qe))==null?void 0:Ve[He])==null?void 0:gt.model)===1?a.createElement(we,null):a.createElement(Se,null))),Ke&&a.createElement(Fe.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"}},a.createElement(Ge.default.Item,ge(pe({},Ze),{name:[He,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:se.Z.blankInputNumberWrapper}),a.createElement(Me.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),a.createElement(Ge.default.Item,ge(pe({},Ze),{name:[He,"position"],noStyle:!0}),a.createElement(Ne.default,{type:"hidden"})))))})))),a.createElement(Be.Z,{align:"middle"},a.createElement(Ge.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(Be.Z,{align:"middle"},a.createElement(Ge.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")),(hn==null?void 0:hn.length)>1&&a.createElement(Be.Z,{align:"middle",className:(hn==null?void 0:hn.length)>1?"mb30":`${se.Z.hide}`},a.createElement(Ge.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:()=>Ye(!0)},a.createElement(Ge.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},a.createElement(Te.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ue}))))}},66495:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return te}});var b=ee(67294),ie=ee(71230),Be=ee(15746),Fe=ee(22150),Ne=ee(52654),je=ee(41307),ue=ee(67294),Ge=Object.defineProperty,Ae=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,se=(re,oe,de)=>oe in re?Ge(re,oe,{enumerable:!0,configurable:!0,writable:!0,value:de}):re[oe]=de,E=(re,oe)=>{for(var de in oe||(oe={}))Oe.call(oe,de)&&se(re,de,oe[de]);if(Te)for(var de of Te(oe))ye.call(oe,de)&&se(re,de,oe[de]);return re},a=(re,oe)=>Ae(re,Me(oe)),x=(re,oe)=>{var de={};for(var pe in re)Oe.call(re,pe)&&oe.indexOf(pe)<0&&(de[pe]=re[pe]);if(re!=null&&Te)for(var pe of Te(re))oe.indexOf(pe)<0&&ye.call(re,pe)&&(de[pe]=re[pe]);return de};const y={\u6B63\u786E:"T",\u9519\u8BEF:"F"},z=({value:re,onChange:oe,form:de})=>{const pe=(re==null?void 0:re.is_answer)===1,ge=re==null?void 0:re.choice_text,xe=()=>{const we=de.getFieldsValue().choices.map(Se=>({choice_text:Se.choice_text,is_answer:0}));de.setFieldsValue({choices:we}),oe(a(E({},re),{is_answer:1}))};return ue.createElement(ie.Z,{className:Ne.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},ue.createElement(Be.Z,{onClick:xe,className:`${Ne.Z.choiceIndex} ${Ne.Z.judgementIndex} ${pe?Ne.Z.activeAnswer:""}`},y[ge]),ue.createElement(Be.Z,{flex:1,className:`${Ne.Z.editorWrap} ml15`},ue.createElement("div",{className:`${Ne.Z.inputBorder} ${Ne.Z.placeholder} ${pe?Ne.Z.activeJudgementAnswer:""}`},ge)),ue.createElement(Be.Z,{flex:"0 0 auto",className:"ml15"},ue.createElement("div",{onClick:xe,className:`${Ne.Z.setAnswerBtn} ${pe?Ne.Z.activeAnswer:""}`},pe?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},te=({questionTitlePlaceholder:re,choiceKey:oe,form:de})=>{const[pe,ge]=(0,b.useState)(!1);return ue.createElement("div",{className:Ne.Z.wrap},ue.createElement("div",{className:Ne.Z.questionTitleEditorWrap},ue.createElement(Fe.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},ue.createElement(je.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(xe,we){return we.some(ve=>(ve==null?void 0:ve.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},xe=>ue.createElement("div",{id:"choices"},xe.map(we=>{var Se=we,{key:ve,name:Qe}=Se,Le=x(Se,["key","name"]);return ue.createElement(Fe.default.Item,a(E({},Le),{key:ve,name:Qe,noStyle:!0}),ue.createElement(z,{form:de}))})))),ue.createElement("div",{onClick:()=>ge(!0)},ue.createElement(Fe.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ue.createElement(je.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:pe}))))}},41307:function(Bt,Ct,ee){"use strict";ee.d(Ct,{h:function(){return E},x:function(){return a}});var b=ee(35567),ie=ee(52654),Be=ee(85725),Fe=ee(67294),Ne=Object.defineProperty,je=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,Te=(x,y,z)=>y in x?Ne(x,y,{enumerable:!0,configurable:!0,writable:!0,value:z}):x[y]=z,Oe=(x,y)=>{for(var z in y||(y={}))Ae.call(y,z)&&Te(x,z,y[z]);if(Ge)for(var z of Ge(y))Me.call(y,z)&&Te(x,z,y[z]);return x},ye=(x,y)=>je(x,ue(y)),se=(x,y)=>{var z={};for(var te in x)Ae.call(x,te)&&y.indexOf(te)<0&&(z[te]=x[te]);if(x!=null&&Ge)for(var te of Ge(x))y.indexOf(te)<0&&Me.call(x,te)&&(z[te]=x[te]);return z};const E=x=>{var y=x,{value:z,onChange:te,scrollId:re}=y,oe=se(y,["value","onChange","scrollId"]);return Fe.createElement("div",{id:re||""},Fe.createElement(b.Z,ye(Oe({},oe),{defaultValue:z,onChange:(de,pe)=>{pe!=null&&pe.length?te(de,pe):te(de)}})))},a=({value:x,onChange:y,placeholder:z,height:te=140,isEdit:re,miniToolbar:oe,watch:de=!0})=>re?Fe.createElement(b.Z,{watch:de,isFocus:!0,height:te||void 0,placeholder:z,defaultValue:x,onChange:y,miniToolbar:oe}):Fe.createElement("div",{style:{cursor:"pointer"}},x?Fe.createElement(Be.Z,{className:ie.Z.inputBorder,value:x}):Fe.createElement("div",{className:`${ie.Z.inputBorder} ${ie.Z.placeholder} inputBorderError`},z))},77792:function(Bt,Ct,ee){"use strict";ee.d(Ct,{W:function(){return Se}});var b=ee(67294),ie=ee(2453),Be=ee(66309),Fe=ee(22150),Ne=ee(47897),je=ee(71230),ue=ee(15746),Ge=ee(83062),Ae=ee(69677),Me=ee(31795),Te=ee(52654),Oe=ee(41307),ye=ee(35567),se=ee(17663),E=Object.defineProperty,a=Object.defineProperties,x=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,re=(ve,Qe,Le)=>Qe in ve?E(ve,Qe,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ve[Qe]=Le,oe=(ve,Qe)=>{for(var Le in Qe||(Qe={}))z.call(Qe,Le)&&re(ve,Le,Qe[Le]);if(y)for(var Le of y(Qe))te.call(Qe,Le)&&re(ve,Le,Qe[Le]);return ve},de=(ve,Qe)=>a(ve,x(Qe)),pe=(ve,Qe)=>{var Le={};for(var ke in ve)z.call(ve,ke)&&Qe.indexOf(ke)<0&&(Le[ke]=ve[ke]);if(ve!=null&&y)for(var ke of y(ve))Qe.indexOf(ke)<0&&te.call(ve,ke)&&(Le[ke]=ve[ke]);return Le};const ge=ve=>{var Qe=ve,{value:Le,onChange:ke}=Qe,Ce=pe(Qe,["value","onChange"]);const Ke=qe=>{ke([qe])};return b.createElement(ye.Z,de(oe({},Ce),{defaultValue:Le==null?void 0:Le[0],onChange:Ke}))},xe=ve=>{if(!ve)return!1;if(/^s*$/.test(ve)||ve.trim()===""){ie.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 ve==="|"?(ie.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},we=({value:ve=[],onClose:Qe})=>b.createElement(Be.default,{closable:!0,onClose:Qe,className:Te.Z.keywordTag},b.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},ve.join(" \u6216 "))),Se=({questionTitlePlaceholder:ve,form:Qe,showKeywords:Le,isMustKeyWords:ke=Le})=>{const[Ce,Ke]=(0,b.useState)(!1),[qe,Ue]=(0,b.useState)(""),Ye=Fe.default.useWatch("use_keywords",Qe),ct=Fe.default.useWatch("question_score",Qe);return b.createElement("div",{className:Te.Z.wrap},b.createElement("div",{className:Te.Z.questionTitleEditorWrap},b.createElement(Fe.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},b.createElement(Oe.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"})),Le&&!ke&&b.createElement(Fe.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},b.createElement(Ne.Z,{defaultChecked:!0})),Le&&ke&&b.createElement(je.Z,{align:"middle",className:"mb30"},b.createElement(Fe.default.Item,{name:"use_keywords",valuePropName:"checked"},b.createElement(Ne.Z,null)),b.createElement(ue.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),b.createElement(ue.Z,null,b.createElement(Ge.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(se.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Ye||!ke)&&b.createElement(Fe.default.List,{name:"keywords",rules:[{validator(yt,$t){return ke?$t!=null&&$t.length?($t==null?void 0:$t.reduce((rt,jt)=>rt+jt.score,0))>parseFloat(ct)?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()}}]},(yt,{add:$t,remove:an})=>b.createElement(b.Fragment,null,b.createElement("div",{className:`${Te.Z.title} mb10`},ke?"\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(ue.Z,{flex:1},b.createElement(Ae.default,{value:qe,onChange:rt=>{Ue(rt.target.value)},maxLength:50,allowClear:!0,onPressEnter:rt=>{var jt,It,hn,Mt;const Yt=`${(jt=rt.target)==null?void 0:jt.value}`,Re=(hn=(It=Yt==null?void 0:Yt.split("|"))==null?void 0:It.filter(xt=>!!xt))==null?void 0:hn.map(xt=>xt==null?void 0:xt.trim()),Wt=Qe.getFieldValue("keywords"),Sn=((Mt=Wt==null?void 0:Wt.map(xt=>xt==null?void 0:xt.keyword))==null?void 0:Mt.flat())||[];for(const xt of Re)if(Sn.includes(xt)){ie.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}xe(Yt)&&($t({keyword:Re,score:1}),Ue(""))},className:Te.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")),yt.map(rt=>{var jt=rt,{key:It,name:hn}=jt,Mt=pe(jt,["key","name"]);return b.createElement(je.Z,{key:It,className:"mb20",style:{marginRight:148}},b.createElement(ue.Z,{flex:1},b.createElement(je.Z,{align:"middle",justify:"space-between"},b.createElement(Fe.default.Item,de(oe({},Mt),{name:[hn,"keyword"]}),b.createElement(we,{onClose:()=>an(hn)})),ke&&b.createElement(Fe.default.Item,de(oe({},Mt),{name:[hn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Te.Z.blankInputNumberWrapper}),b.createElement(Me.Z,{className:Te.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),b.createElement("div",{onClick:()=>Ke(!0)},b.createElement(Fe.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(Oe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ce}))))}},30351:function(Bt,Ct,ee){"use strict";ee.d(Ct,{tc:function(){return rr.t},uh:function(){return b.u},rL:function(){return la},u8:function(){return Be.u},ZZ:function(){return ie.Z},Wk:function(){return Fe.W}});var b=ee(11776),ie=ee(66495),Be=ee(81580),Fe=ee(77792),Ne=ee(67294),je=ee(47221),ue=ee(22150),Ge=ee(71230),Ae=ee(15746),Me=ee(31795),Te=ee(83062),Oe=ee(85418),ye=ee(52654),se=ee(24018),E=ee(41307),a=ee(14446),x=ee(69677),y=ee(47897),z=ee(67294),te=Object.defineProperty,re=Object.defineProperties,oe=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,xe=(en,rn,sn)=>rn in en?te(en,rn,{enumerable:!0,configurable:!0,writable:!0,value:sn}):en[rn]=sn,we=(en,rn)=>{for(var sn in rn||(rn={}))pe.call(rn,sn)&&xe(en,sn,rn[sn]);if(de)for(var sn of de(rn))ge.call(rn,sn)&&xe(en,sn,rn[sn]);return en},Se=(en,rn)=>re(en,oe(rn)),ve=(en,rn)=>{var sn={};for(var na in en)pe.call(en,na)&&rn.indexOf(na)<0&&(sn[na]=en[na]);if(en!=null&&de)for(var na of de(en))rn.indexOf(na)<0&&ge.call(en,na)&&(sn[na]=en[na]);return sn};const Qe=({value:en,onChange:rn})=>{const sn=Ga=>{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:ye.Z.modal,onOk:()=>{const Fr=[...en];Fr.splice(Ga,1),rn(Fr)}})},na=()=>{const Ga=[...en];Ga.push(""),rn(Ga)};return z.createElement(Ge.Z,{className:"ml20"},z.createElement(Ae.Z,{flex:1},en==null?void 0:en.map((Ga,Fr)=>z.createElement(Ge.Z,{key:`${Ga}_${Fr}`,align:"middle",className:"mb20"},z.createElement(x.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Ga,autoSize:{maxRows:3},maxLength:1e3,onBlur:_r=>{const or=[...en],Rn=_r.target.value.trim();or[Fr]=Rn,rn(or)}}),z.createElement(Te.Z,{title:"\u5220\u9664"},z.createElement(se.Z,{className:ye.Z.deleteIcon,style:{marginLeft:15,visibility:Fr>0?"visible":"hidden"},onClick:()=>sn(Fr)}))))),z.createElement(Ae.Z,null,z.createElement("div",{className:`${ye.Z.addBtn}`,onClick:()=>{na()}},"\u65B0\u589E\u7B54\u6848")))},Le=({value:en=!0,onChange:rn})=>z.createElement(y.Z,{checked:!en,onChange:sn=>{rn(!sn)}}),ke="\u2581",Ce=({questionTitlePlaceholder:en,form:rn,name:sn,scoreByBlank:na=!1,answerKey:Ga,titleKey:Fr="name",analysisKey:_r="analysis",isOrdered:or="is_ordered"})=>{var Rn,Ra;const[En,Mn]=(0,Ne.useState)(!1),Vn=(Kt,xn)=>{const qn=xn.line;let Ma=0;for(let er=0;er<qn;er++)Ma+=Kt.getLine(er).split(ke).length-1;const ga=Kt.getLine(qn).substring(0,xn.ch);return Ma+=ga.split(ke).length-1,Ma},Yn=(Kt,xn,qn,Ma)=>{const ga=Kt.getRange(xn.from,xn.to);let er=0;if(xn.text.forEach(ur=>{er+=ur.split(ke).length-1}),xn.origin!=="setValue"){if(ga&&ga.indexOf(ke)!==-1){const ur=ga.split(ke).length-1,lo=Vn(Kt,xn.from);if(console.log(`\u5220\u9664${ur}\u4E2A\uFF0C \u524D\u9762\u6709${lo}\u4E2A\uFF0C\u65B0\u589E${er}\u4E2A`),ur>1){const ea=Array.from({length:ur},(Dr,Di)=>lo+Di);Ma(ea)}else Ma(lo)}else if(er>0){const ur=Vn(Kt,xn.from);console.log(`\u65B0\u589E${er}\u4E2A\uFF0C\u4E4B\u524D\u6709${ur}\u4E2A`),qn(er,ur)}}},Aa=()=>{const Kt=rn.getFieldValue(["sub_item_banks",...Ga]);rn.setFieldValue(["sub_item_banks",...Ga],Kt==null?void 0:Kt.map((xn,qn)=>Se(we({},xn),{position:qn+1})))},Qa=(0,Ne.useRef)(),Kn=(Kt,xn)=>{for(let qn=0;qn<Kt;qn++)Qa.current({position:null,answer_text:[""]},xn+qn);Aa()},ht=(0,Ne.useRef)(),Rt=Kt=>{ht.current(Kt),Aa()},Nt=(Ra=(Rn=rn.getFieldValue("sub_item_banks"))==null?void 0:Rn[Ga==null?void 0:Ga[0]])==null?void 0:Ra[Ga==null?void 0:Ga[1]];return(0,Ne.useEffect)(()=>{console.log("========",rn.getFieldsValue())},[rn]),z.createElement("div",{className:ye.Z.wrap},z.createElement("div",{className:ye.Z.questionTitleEditorWrap},z.createElement(ue.default.Item,{label:"\u9898\u5E72",name:Fr,labelCol:{span:24},rules:[{required:!0}]},z.createElement(E.h,{scrollId:"name",watch:!0,height:140,placeholder:en,showNullButton:!0,onCMBeforeChange:(Kt,xn)=>{Yn(Kt,xn,Kn,Rt)}}))),z.createElement(ue.default.List,{name:Ga,rules:[{validator(Kt,xn){if((xn==null?void 0:xn.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const qn of xn){const{answer_text:Ma}=qn||{};if(Ma!=null&&Ma.some(ga=>(ga==null?void 0:ga.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Kt,{add:xn,remove:qn},{errors:Ma})=>(Qa.current=xn,ht.current=qn,z.createElement(z.Fragment,null,z.createElement(ue.default.Item,{label:z.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(Kt!=null&&Kt.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}}),Kt.map((ga,er)=>{var ur=ga,{key:lo,name:ea}=ur,Dr=ve(ur,["key","name"]);return z.createElement(Ge.Z,{align:"top",key:lo},z.createElement(Ae.Z,{className:`${ye.Z.blankIndex} pt5`},"\u586B\u7A7A\u9879",er+1),z.createElement(Ae.Z,{flex:1},z.createElement(Ge.Z,{align:"top",justify:"space-between"},z.createElement(Ae.Z,{flex:1},z.createElement(ue.default.Item,Se(we({},Dr),{name:[ea,"answer_text"],noStyle:!0}),z.createElement(Qe,null))),na&&z.createElement(Ae.Z,{flex:"224px"},z.createElement(ue.default.Item,Se(we({},Dr),{name:[ea,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:ye.Z.blankInputNumberWrapper}),z.createElement(Me.Z,{className:ye.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,Se(we({},Dr),{name:[ea,"position"],noStyle:!0}),z.createElement(x.default,{type:"hidden"}))))})))),z.createElement(Ge.Z,{align:"middle"},z.createElement(ue.default.Item,{name:[sn,"downcase"],valuePropName:"checked"},z.createElement(y.Z,null)),z.createElement(Ae.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),z.createElement(Ge.Z,{align:"middle"},z.createElement(ue.default.Item,{name:[sn,"no_space"],valuePropName:"checked"},z.createElement(y.Z,null)),z.createElement(Ae.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(Nt==null?void 0:Nt.length)>1&&z.createElement(Ge.Z,{align:"middle",className:(Nt==null?void 0:Nt.length)>1?"mb30":`${ye.Z.hide}`},z.createElement(ue.default.Item,{name:or},z.createElement(Le,null)),z.createElement(Ae.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:()=>Mn(!0)},z.createElement(ue.default.Item,{name:_r,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:En}))))};var Ke=ee(67294),qe=Object.defineProperty,Ue=Object.defineProperties,Ye=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,$t=Object.prototype.propertyIsEnumerable,an=(en,rn,sn)=>rn in en?qe(en,rn,{enumerable:!0,configurable:!0,writable:!0,value:sn}):en[rn]=sn,rt=(en,rn)=>{for(var sn in rn||(rn={}))yt.call(rn,sn)&&an(en,sn,rn[sn]);if(ct)for(var sn of ct(rn))$t.call(rn,sn)&&an(en,sn,rn[sn]);return en},jt=(en,rn)=>Ue(en,Ye(rn)),It=(en,rn)=>{var sn={};for(var na in en)yt.call(en,na)&&rn.indexOf(na)<0&&(sn[na]=en[na]);if(en!=null&&ct)for(var na of ct(en))rn.indexOf(na)<0&&$t.call(en,na)&&(sn[na]=en[na]);return sn};const hn={\u6B63\u786E:"T",\u9519\u8BEF:"F"},Mt=({value:en,onChange:rn,form:sn,choiceKey:na})=>{const Ga=(en==null?void 0:en.is_answer)===1,Fr=en==null?void 0:en.choice_text,_r=()=>{var or;const Rn=(or=sn==null?void 0:sn.getFieldValue(["sub_item_banks",...na]))==null?void 0:or.map(Ra=>({choice_text:Ra.choice_text,is_answer:0}));sn==null||sn.setFieldValue(["sub_item_banks",...na],Rn),rn(jt(rt({},en),{is_answer:1}))};return Ke.createElement(Ge.Z,{className:ye.Z.choiceWrap,align:"middle",wrap:!1},Ke.createElement(Ae.Z,{onClick:_r,className:`${ye.Z.choiceIndex} ${ye.Z.judgementIndex} ${Ga?ye.Z.activeAnswer:""}`},hn[Fr]),Ke.createElement(Ae.Z,{flex:1,className:`${ye.Z.editorWrap} ml15`},Ke.createElement("div",{className:`${ye.Z.inputBorder} ${ye.Z.placeholder} ${Ga?ye.Z.activeJudgementAnswer:""}`},Fr)),Ke.createElement(Ae.Z,{flex:"0 0 auto",className:"ml15"},Ke.createElement("div",{onClick:_r,className:`${ye.Z.setAnswerBtn} ${Ga?ye.Z.activeAnswer:""}`},Ga?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},Yt=({questionTitlePlaceholder:en,choiceKey:rn="choices",form:sn,titleKey:na="name",analysisKey:Ga="analysis"})=>{const[Fr,_r]=(0,Ne.useState)(!1);return Ke.createElement("div",{className:ye.Z.wrap},Ke.createElement("div",{className:ye.Z.questionTitleEditorWrap},Ke.createElement(ue.default.Item,{label:"\u9898\u5E72",name:na,labelCol:{span:24},rules:[{required:!0}]},Ke.createElement(E.h,{scrollId:"name",watch:!0,height:140,placeholder:en}))),Ke.createElement(ue.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},Ke.createElement(ue.default.List,{name:rn,rules:[{validator(or,Rn){return Rn.some(En=>(En==null?void 0:En.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},or=>Ke.createElement("div",{id:"choices",style:{display:"flex",flexDirection:"column",gap:"20px"}},or.map(Rn=>{var Ra=Rn,{key:En,name:Mn}=Ra,Vn=It(Ra,["key","name"]);return Ke.createElement(ue.default.Item,jt(rt({},Vn),{key:En,name:Mn,noStyle:!0}),Ke.createElement(Mt,{form:sn,choiceKey:rn}))})))),Ke.createElement("div",{className:"mt30",onClick:()=>_r(!0)},Ke.createElement(ue.default.Item,{name:Ga,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Ke.createElement(E.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Fr}))))};var Re=ee(2453),Wt=ee(66309),Sn=ee(35567),xt=ee(17663),Et=Object.defineProperty,Lt=Object.defineProperties,He=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,Dt=(en,rn,sn)=>rn in en?Et(en,rn,{enumerable:!0,configurable:!0,writable:!0,value:sn}):en[rn]=sn,Gt=(en,rn)=>{for(var sn in rn||(rn={}))Ve.call(rn,sn)&&Dt(en,sn,rn[sn]);if(Ze)for(var sn of Ze(rn))gt.call(rn,sn)&&Dt(en,sn,rn[sn]);return en},Bn=(en,rn)=>Lt(en,He(rn)),Fn=(en,rn)=>{var sn={};for(var na in en)Ve.call(en,na)&&rn.indexOf(na)<0&&(sn[na]=en[na]);if(en!=null&&Ze)for(var na of Ze(en))rn.indexOf(na)<0&>.call(en,na)&&(sn[na]=en[na]);return sn};const tn=en=>{var rn=en,{value:sn,onChange:na}=rn,Ga=Fn(rn,["value","onChange"]);const Fr=_r=>{na([_r])};return Ne.createElement(Sn.Z,Bn(Gt({},Ga),{defaultValue:sn==null?void 0:sn[0],onChange:Fr}))},_n=en=>{if(!en)return!1;let rn=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 en==="|"?(Re.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Xe=({value:en=[],onClose:rn})=>Ne.createElement(Wt.default,{closable:!0,onClose:rn,className:ye.Z.keywordTag},Ne.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},en.join(" \u6216 "))),vt=({questionTitlePlaceholder:en,form:rn,showKeywords:sn,isMustKeyWords:na=sn,titleKey:Ga="name",analysisKey:Fr="analysis",answerTexts:_r="answer_texts",keywords:or="keywords",useKeywords:Rn="use_keywords",indexs:Ra})=>{const[En,Mn]=(0,Ne.useState)(!1),[Vn,Yn]=(0,Ne.useState)(""),[Aa,Qa]=(0,Ne.useState)(!1),Kn=ue.default.useWatch("question_score",rn);return Ne.createElement("div",{className:ye.Z.wrap},Ne.createElement("div",{className:ye.Z.questionTitleEditorWrap},Ne.createElement(ue.default.Item,{label:"\u9898\u5E72",name:Ga,labelCol:{span:24},rules:[{required:!0}]},Ne.createElement(E.h,{scrollId:"name",watch:!0,height:140,placeholder:en}))),Ne.createElement(ue.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:_r,labelCol:{span:24}},Ne.createElement(tn,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),sn&&!na&&Ne.createElement(ue.default.Item,{hidden:!0,name:Rn,valuePropName:"checked"},Ne.createElement(y.Z,{defaultChecked:!0})),sn&&na&&Ne.createElement(Ge.Z,{align:"middle",className:"mb30"},Ne.createElement(ue.default.Item,{name:Rn,valuePropName:"checked"},Ne.createElement(y.Z,{onChange:()=>{var ht,Rt,Nt,Kt,xn,qn;console.log(rn.getFieldsValue()),Qa((Nt=(Rt=(ht=rn.getFieldsValue())==null?void 0:ht.sub_item_banks)==null?void 0:Rt[Ra])==null?void 0:Nt.use_keywords),console.log((qn=(xn=(Kt=rn.getFieldsValue())==null?void 0:Kt.sub_item_banks)==null?void 0:xn[Ra])==null?void 0:qn.use_keywords),console.log(Aa)}})),Ne.createElement(Ae.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),Ne.createElement(Ae.Z,null,Ne.createElement(Te.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"},Ne.createElement(xt.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Aa||!na)&&Ne.createElement(ue.default.List,{name:or,rules:[{validator(ht,Rt){return na?Rt!=null&&Rt.length?(Rt==null?void 0:Rt.reduce((Kt,xn)=>Kt+xn.score,0))>parseFloat(Kn)?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:Rt,remove:Nt})=>Ne.createElement(Ne.Fragment,null,Ne.createElement("div",{className:`${ye.Z.title} mb10`},na?"\u5173\u952E\u8BCD":Ne.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),Ne.createElement(Ge.Z,{align:"middle",className:"font14 mb30"},Ne.createElement(Ae.Z,{flex:1},Ne.createElement(x.default,{value:Vn,onChange:Kt=>{Yn(Kt.target.value)},maxLength:50,allowClear:!0,onPressEnter:Kt=>{var xn,qn,Ma,ga;const er=`${(xn=Kt.target)==null?void 0:xn.value}`,ur=(Ma=(qn=er==null?void 0:er.split("|"))==null?void 0:qn.filter(Dr=>!!Dr))==null?void 0:Ma.map(Dr=>Dr==null?void 0:Dr.trim()),lo=rn.getFieldValue(["sub_item_banks",...or]),ea=((ga=lo==null?void 0:lo.map(Dr=>Dr==null?void 0:Dr.keyword))==null?void 0:ga.flat())||[];for(const Dr of ur)if(ea.includes(Dr)){Re.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}_n(er)&&(Rt({keyword:ur,score:1}),Yn(""))},className:ye.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"})),Ne.createElement(Ae.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),ht.map(Kt=>{var xn=Kt,{key:qn,name:Ma}=xn,ga=Fn(xn,["key","name"]);return Ne.createElement(Ge.Z,{key:qn,className:"mb20",style:{marginRight:148}},Ne.createElement(Ae.Z,{flex:1},Ne.createElement(Ge.Z,{align:"middle",justify:"space-between"},Ne.createElement(ue.default.Item,Bn(Gt({},ga),{name:[Ma,"keyword"]}),Ne.createElement(Xe,{onClose:()=>Nt(Ma)})),na&&Ne.createElement(ue.default.Item,Bn(Gt({},ga),{name:[Ma,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:ye.Z.blankInputNumberWrapper}),Ne.createElement(Me.Z,{className:ye.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),Ne.createElement("div",{onClick:()=>Mn(!0)},Ne.createElement(ue.default.Item,{name:Fr,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Ne.createElement(E.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:En}))))};var mn=ee(67294),Cn=Object.defineProperty,St=Object.defineProperties,vn=Object.getOwnPropertyDescriptors,Nn=Object.getOwnPropertySymbols,ln=Object.prototype.hasOwnProperty,ma=Object.prototype.propertyIsEnumerable,Ut=(en,rn,sn)=>rn in en?Cn(en,rn,{enumerable:!0,configurable:!0,writable:!0,value:sn}):en[rn]=sn,wt=(en,rn)=>{for(var sn in rn||(rn={}))ln.call(rn,sn)&&Ut(en,sn,rn[sn]);if(Nn)for(var sn of Nn(rn))ma.call(rn,sn)&&Ut(en,sn,rn[sn]);return en},Un=(en,rn)=>St(en,vn(rn)),fa=(en,rn)=>{var sn={};for(var na in en)ln.call(en,na)&&rn.indexOf(na)<0&&(sn[na]=en[na]);if(en!=null&&Nn)for(var na of Nn(en))rn.indexOf(na)<0&&ma.call(en,na)&&(sn[na]=en[na]);return sn};const{Panel:wa}=je.default,la=({questionTitlePlaceholder:en,choiceKey:rn,form:sn,withScore:na})=>{const[Ga,Fr]=(0,Ne.useState)([]),_r=or=>{Fr(or)};return mn.createElement("div",{className:ye.Z.wrap},mn.createElement("div",{className:ye.Z.questionTitleEditorWrap},mn.createElement(ue.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},mn.createElement(E.h,{scrollId:"name",watch:!0,height:140,placeholder:en}))),mn.createElement(ue.default.Item,{label:"\u5C0F\u9898",required:!0,labelCol:{span:24}}),mn.createElement(ue.default.List,{name:"sub_item_banks",rules:[{validator(or,Rn){return Rn?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(or,{add:Rn,remove:Ra,move:En})=>{const Mn=sn.getFieldValue("sub_item_banks");return mn.createElement(mn.Fragment,null,mn.createElement(je.default,{className:or.length>0?ye.Z.collapseWrapper:"",bordered:!1,activeKey:Ga,onChange:_r,expandIcon:({isActive:Vn})=>mn.createElement("i",{className:`iconfont icon-weizhankai ${Vn?ye.Z.open:ye.Z.close}`,style:{fontSize:14,transition:"all .2s"}})},or.map((Vn,Yn)=>{var Aa=Vn,{key:Qa,name:Kn}=Aa,ht=fa(Aa,["key","name"]),Rt,Nt,Kt,xn,qn,Ma,ga,er,ur,lo;return mn.createElement(wa,{className:ye.Z.panel,forceRender:!0,header:mn.createElement("div",{className:ye.Z.panelHeader},"\u7B2C",Yn+1,"\u5C0F\u9898",mn.createElement("span",null,"\uFF08",((Rt=Mn==null?void 0:Mn[Kn])==null?void 0:Rt.item_type)=="SINGLE"?"\u5355\u9009\u9898":((Nt=Mn==null?void 0:Mn[Kn])==null?void 0:Nt.item_type)=="MULTIPLE"?"\u591A\u9009\u9898":((Kt=Mn==null?void 0:Mn[Kn])==null?void 0:Kt.item_type)=="COMPLETION"?"\u586B\u7A7A\u9898":((xn=Mn==null?void 0:Mn[Kn])==null?void 0:xn.item_type)=="JUDGMENT"?"\u5224\u65AD\u9898":"\u7B80\u7B54\u9898","\uFF09")),key:Kn,extra:mn.createElement(Ge.Z,{align:"middle",onClick:ea=>ea.stopPropagation()},na&&mn.createElement(Ae.Z,null,mn.createElement(ue.default.Item,Un(wt({},ht),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[Kn,"question_score"],className:ye.Z.blankInputNumberWrapper}),mn.createElement(Me.Z,{className:ye.Z.blankInput,placeholder:"\u8BF7\u8F93\u5165\u5F53\u524D\u5C0F\u9898\u5206\u6570",min:.1,precision:1,max:100,style:{width:150}}))),mn.createElement(Ae.Z,null,mn.createElement(Ge.Z,{align:"middle",className:"pl40",justify:"end"},Yn!==0&&mn.createElement("div",{onClick:()=>{var ea;En(Yn,Yn-1);const Dr=(ea=sn.getFieldValue("sub_item_banks"))==null?void 0:ea.map((Di,Ii)=>(or.map((mr,jn)=>{Ii===jn&&(Di.q_position=Number(mr.name)+1)}),Di));sn.setFieldValue("sub_item_banks",Dr)}},mn.createElement(Te.Z,{title:"\u4E0A\u79FB"},mn.createElement("i",{className:"iconfont icon-shangyi3 c-grey-999 primary-hover"}))),Yn<or.length-1&&mn.createElement("div",{onClick:()=>{var ea;En(Yn,Yn+1);const Dr=(ea=sn.getFieldValue("sub_item_banks"))==null?void 0:ea.map((Di,Ii)=>(or.map((mr,jn)=>{Ii===jn&&(Di.q_position=Number(mr.name)+1)}),Di));sn.setFieldValue("sub_item_banks",Dr)},className:Yn===0?"":"ml15"},mn.createElement(Te.Z,{title:"\u4E0B\u79FB"},mn.createElement("i",{className:"iconfont icon-xiayi3 c-grey-999 primary-hover"}))))),mn.createElement(Ae.Z,null,mn.createElement(Te.Z,{title:"\u5220\u9664"},mn.createElement(se.Z,{className:`${ye.Z.deleteIcon} ml15`,onClick:()=>Ra(Kn)}))))},mn.createElement(ue.default.Item,Un(wt({},ht),{name:Kn}),(((qn=Mn==null?void 0:Mn[Kn])==null?void 0:qn.item_type)=="SINGLE"||((Ma=Mn==null?void 0:Mn[Kn])==null?void 0:Ma.item_type)=="MULTIPLE")&&mn.createElement(b.u,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((ga=Mn==null?void 0:Mn[Kn])==null?void 0:ga.item_type)=="MULTIPLE",form:sn,choiceKey:[Kn,"choices"],titleKey:[Kn,"name"],analysisKey:[Kn,"analysis"],choiceOptionsPath:["sub_item_banks",Kn,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((er=Mn==null?void 0:Mn[Kn])==null?void 0:er.item_type)=="COMPLETION"&&mn.createElement(Ce,{form:sn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:!1,name:Kn,titleKey:[Kn,"name"],analysisKey:[Kn,"analysis"],isOrdered:[Kn,"is_ordered"],answerKey:[Kn,"standard_answers"]}),((ur=Mn==null?void 0:Mn[Kn])==null?void 0:ur.item_type)=="JUDGMENT"&&mn.createElement(Yt,{form:sn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[Kn,"name"],analysisKey:[Kn,"analysis"],choiceKey:[Kn,"choices"]}),((lo=Mn==null?void 0:Mn[Kn])==null?void 0:lo.item_type)=="SUBJECTIVE"&&mn.createElement(vt,{showKeywords:!0,isMustKeyWords:!1,form:sn,titleKey:[Kn,"name"],analysisKey:[Kn,"analysis"],answerTexts:[Kn,"answer_texts"],useKeywords:[Kn,"use_keywords"],keywords:[Kn,"keywords"],indexs:Kn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})),or.length<20&&mn.createElement(Oe.Z,{menu:{items:[{label:mn.createElement("div",{onClick:()=>{Rn({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"SINGLE"}),Fr([or==null?void 0:or.length,...Ga])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:mn.createElement("div",{onClick:()=>{Rn({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"MULTIPLE"}),Fr([or==null?void 0:or.length,...Ga])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:mn.createElement("div",{onClick:()=>{Rn({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",item_type:"JUDGMENT"}),Fr([or==null?void 0:or.length,...Ga])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:mn.createElement("div",{onClick:()=>{Rn({name:"",analysis:"",is_ordered:!0,standard_answers:[],item_type:"COMPLETION",downcase:!0,no_space:!0}),Fr([or==null?void 0:or.length,...Ga])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:mn.createElement("div",{onClick:()=>{Rn({name:"",answer_texts:[],keywords:[],use_keywords:!0,analysis:"",item_type:"SUBJECTIVE"}),Fr([or==null?void 0:or.length,...Ga])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(Vn=>Vn.show).map(Vn=>({label:Vn.label,key:Vn.key}))}},mn.createElement("div",{className:`${ye.Z.addBtn}`},"\u6DFB\u52A0\u5C0F\u9898")))}))};var rr=ee(15312)},48994:function(Bt,Ct,ee){"use strict";ee.d(Ct,{C:function(){return Ce}});var b=ee(67294),ie={recalculation:"recalculation____i9AE",tips:"tips___GoMu8",filter:"filter___Vx7VO",input:"input___OEMMv",operating:"operating___TS9iA",operatingItem:"operatingItem___AT84q"},Be=ee(94184),Fe=ee.n(Be),Ne=ee(84567),je=ee(71230),ue=ee(2453),Ge=ee(83062),Ae=ee(71577),Me=ee(14446),Te=ee(9430),Oe=ee(31795),ye=ee(22150),se=ee(57953),E=ee(28706),a=ee(33170),x=ee(52262),y=ee(63037),z=ee(30001),te=Object.defineProperty,re=Object.defineProperties,oe=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,xe=(Ke,qe,Ue)=>qe in Ke?te(Ke,qe,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):Ke[qe]=Ue,we=(Ke,qe)=>{for(var Ue in qe||(qe={}))pe.call(qe,Ue)&&xe(Ke,Ue,qe[Ue]);if(de)for(var Ue of de(qe))ge.call(qe,Ue)&&xe(Ke,Ue,qe[Ue]);return Ke},Se=(Ke,qe)=>re(Ke,oe(qe)),ve=(Ke,qe,Ue)=>new Promise((Ye,ct)=>{var yt=rt=>{try{an(Ue.next(rt))}catch(jt){ct(jt)}},$t=rt=>{try{an(Ue.throw(rt))}catch(jt){ct(jt)}},an=rt=>rt.done?Ye(rt.value):Promise.resolve(rt.value).then(yt,$t);an((Ue=Ue.apply(Ke,qe)).next())});const Qe=Ne.default.Group,Le=({className:Ke,title:qe,items:Ue=[],value:Ye,onChange:ct})=>{const yt=(Ue==null?void 0:Ue.length)===(Ye==null?void 0:Ye.length),$t=(Ye==null?void 0:Ye.length)>0&&(Ye==null?void 0:Ye.length)<(Ue==null?void 0:Ue.length),an=rt=>{const jt=Ue.map(It=>It.id);ct(rt.target.checked?jt:[])};return b.createElement(je.Z,{align:"middle",className:Ke},!!qe&&b.createElement("div",{className:"mr20",style:{color:"#5F6368"}},qe),b.createElement(Ne.default,{indeterminate:$t,onChange:an,checked:yt},"\u5168\u90E8"),b.createElement(Qe,{value:Ye,onChange:ct},Ue.map(rt=>b.createElement(Ne.default,{className:"ml30 c-black",key:rt.id,value:rt.id},rt.name,b.createElement("span",null,`(${rt.count})`)))))};var Ce=({className:Ke,style:qe,dataSource:Ue})=>{var Ye,ct,yt,$t,an,rt,jt;const[It,hn]=(0,b.useState)({}),[Mt,Yt]=(0,b.useState)(!0),[Re,Wt]=(0,b.useState)(!1),[Sn,xt]=(0,b.useState)(!1),[Et,Lt]=(0,b.useState)(null),[He,Ze]=(0,b.useState)(0),[Ve,gt]=(0,b.useState)({}),[Dt,Gt]=(0,b.useState)(!0),[Bn,Fn]=(0,b.useState)(0),[tn,_n]=(0,b.useState)(0),[Xe,vt]=(0,b.useState)(!1),mn=(0,b.useRef)(null),[Cn,St]=(0,b.useState)(!1),[vn,Nn]=(0,b.useState)(!0),[ln,ma]=(0,b.useState)([]),Ut={page:1,per_page:5,keyword:"",review:[],question_status:[],success_status:[],sort_by:null,direction:null},[wt,Un]=(0,b.useState)(we({},Ut));(0,b.useEffect)(()=>{Ue!=null&&Ue.question_id&&hn(Ue)},[Ue==null?void 0:Ue.question_id]),(0,b.useEffect)(()=>{var Rn;if(((Rn=It==null?void 0:It.exercise_question_resubmit)==null?void 0:Rn.status)==="running"){const Ra=setInterval(()=>{la()},3e3);return()=>clearInterval(Ra)}},[(Ye=It==null?void 0:It.exercise_question_resubmit)==null?void 0:Ye.status]),(0,b.useEffect)(()=>{var Rn;Sn&&(Sn===1&&(wt.question_status=rr.map(Ra=>Ra.value),wt.review=en.map(Ra=>Ra.value)),Sn===2&&(wt.exercise_question_resubmit_id=(Rn=It==null?void 0:It.exercise_question_resubmit)==null?void 0:Rn.id,Et===1&&(wt.success_status=[1]),Et===2&&(wt.success_status=[0])),Un(we({},wt)),fa(wt),_n(It!=null&&It.is_mirror?3:10),Fn(It!=null&&It.is_mirror?1:5))},[Sn]),(0,b.useEffect)(()=>{Cn&&wa()},[Cn]);const fa=Rn=>ve(void 0,null,function*(){Yt(!0);const Ra=yield(0,a.ZP)(`/api/exercise_questions/${It==null?void 0:It.question_id}/resubmit_student_list.json`,{method:"get",params:Rn});(Ra==null?void 0:Ra.status)==0&&(gt(Ra||[]),Ze(Ra==null?void 0:Ra.count)),Yt(!1)}),wa=()=>ve(void 0,null,function*(){Nn(!0);const Rn=yield(0,a.ZP)(`/api/exercise_questions/${It==null?void 0:It.question_id}/resubmit_history.json`,{method:"get"});(Rn==null?void 0:Rn.status)==0&&ma((Rn==null?void 0:Rn.data)||[]),Nn(!1)}),la=()=>ve(void 0,null,function*(){const Rn=yield(0,a.ZP)(`/api/exercise_questions/${It==null?void 0:It.question_id}/resubmit_status.json`,{method:"get"});(Rn==null?void 0:Rn.status)==0&&hn(Se(we({},It),{show_resubmit_history:!0,exercise_question_resubmit:(Rn==null?void 0:Rn.data)||{}}))}),rr=[{label:"\u672A\u8BC4\u6D4B",value:2,color:"#9096A3"},{label:"\u672A\u901A\u5173",value:0,color:"#E30000"},{label:"\u5DF2\u901A\u5173",value:1,color:"#00B187"}],en=[{label:"\u672A\u8BC4\u9605",value:0,color:"#9096A3"},{label:"\u8BC4\u9605\u4E2D",value:2,color:"#FF9D18"},{label:"\u5DF2\u8BC4\u9605",value:1,color:"#3061D0"}],rn=[{label:"\u6210\u529F",value:1,color:"#00B187"},{label:"\u5931\u8D25",value:0,color:"#E30000"}],sn=[{title:"\u5E8F\u53F7",dataIndex:"key",render:(Rn,Ra,En)=>b.createElement("span",{className:"c-black"},En+1+(wt.page-1)*wt.per_page)},{title:"\u59D3\u540D",dataIndex:"user_name",render:Rn=>b.createElement("span",{className:"c-black"},Rn)},{title:"\u5B66\u53F7",dataIndex:"student_id",sorter:!0,render:Rn=>b.createElement("span",{className:"c-grey-666"},Rn||"--")},{title:"\u5206\u73ED",dataIndex:"group_name",render:Rn=>b.createElement("span",{className:"c-black"},Rn)},{title:"\u9898\u76EE\u72B6\u6001",dataIndex:"question_status",render:Rn=>{const{label:Ra,color:En}=rr.find(Mn=>Mn.value===Rn)||{};return b.createElement("span",{style:{color:En}},Ra)}},{title:"\u9898\u76EE\u5F97\u5206",dataIndex:"question_score",sorter:!0,render:Rn=>b.createElement("span",{className:"c-black"},Rn)},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",sorter:!0,render:Rn=>b.createElement("span",{className:"c-black"},Rn)},{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"review",render:Rn=>{const{label:Ra,color:En}=en.find(Mn=>Mn.value===Rn)||{};return b.createElement("span",{style:{color:En}},Ra)}},Sn===2&&{title:"\u91CD\u65B0\u8BC4\u6D4B\u7ED3\u679C",dataIndex:"success_status",render:Rn=>{const{label:Ra,color:En}=rn.find(Mn=>Mn.value===Rn)||{};return b.createElement("span",{style:{color:En}},Ra)}}].filter(Boolean),na=(Rn,Ra,En)=>{wt.page=Rn==null?void 0:Rn.current,wt.per_page=Rn==null?void 0:Rn.pageSize,En!=null&&En.order?(wt.sort_by=En==null?void 0:En.field,wt.direction=(En==null?void 0:En.order)==="ascend"?"asc":"desc"):(wt.sort_by=null,wt.direction=null),Un(we({},wt)),fa(wt)},Ga=()=>{if(!Bn){ue.ZP.warning("\u8BF7\u8F93\u5165\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u5E76\u53D1\u4EBA\u6570");return}vt(!0)},Fr=()=>ve(void 0,null,function*(){var Rn,Ra;if((Rn=mn.current)!=null&&Rn.onVerify())return;Wt(!0);const En=yield(0,a.ZP)(`/api/exercise_questions/${It==null?void 0:It.question_id}/resubmit.json`,{method:"post",body:{keyword:wt.keyword,question_status:wt.question_status,review:wt.review_status,success_status:wt.success_status,use_max_score:Dt,permits:Bn,exercise_question_resubmit_id:Sn===1?null:(Ra=It==null?void 0:It.exercise_question_resubmit)==null?void 0:Ra.id}});(En==null?void 0:En.status)==0&&(yield la(),ue.ZP.success("\u64CD\u4F5C\u6210\u529F"),vt(!1),xt(!1)),Wt(!1)}),_r=(Rn,Ra)=>{wt.page=1,wt[Ra]=Rn,Un(we({},wt)),fa(wt)},or=["","\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()(ie.recalculation,Ke),style:qe},b.createElement(Ge.Z,{title:or[(It==null?void 0:It.disable_resubmit_reason)||0]},b.createElement(Ae.ZP,{disabled:(It==null?void 0:It.disable_resubmit)||((ct=It==null?void 0:It.exercise_question_resubmit)==null?void 0:ct.status)==="running",onClick:()=>xt(1),icon:b.createElement("i",{className:"iconfont icon-zhongxinpingce font14"}),type:"primary",ghost:!0},"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206")),(It==null?void 0:It.show_resubmit_history)&&b.createElement(b.Fragment,null,((yt=It==null?void 0:It.exercise_question_resubmit)==null?void 0:yt.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"},($t=It==null?void 0:It.exercise_question_resubmit)==null?void 0:$t.rate)):b.createElement("div",{className:"c-grey-666"},"\u91CD\u65B0\u8BC4\u6D4B\u6210\u529F",b.createElement("span",{onClick:()=>{xt(2),Lt(1)},className:"current",style:{color:"#3061D0",textDecoration:"underline",margin:"0 3px"}},(an=It==null?void 0:It.exercise_question_resubmit)==null?void 0:an.success_student_count),"\u4EBA\uFF0C\u5931\u8D25",b.createElement("span",{onClick:()=>{xt(2),Lt(2)},className:"current",style:{color:"#E30000",textDecoration:"underline",margin:"0 3px"}},(rt=It==null?void 0:It.exercise_question_resubmit)==null?void 0:rt.fail_count),"\u4EBA"),b.createElement(Ge.Z,{title:"\u64CD\u4F5C\u8BB0\u5F55"},b.createElement("i",{onClick:()=>St(!0),className:"iconfont icon-chakanshenqingjilu c-light-primary current font14"})))),b.createElement(Me.default,{centered:!0,open:!!Sn,title:`\u91CD\u65B0\u8BC4\u6D4B${Sn===1?"\u7B97\u5206":"\u7ED3\u679C"}`,width:870,okText:"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206",onCancel:()=>xt(!1),onOk:Ga,afterClose:()=>{Gt(!0),Lt(null),Un(we({},Ut))}},b.createElement("div",{className:ie.filter},Sn===1&&b.createElement(b.Fragment,null,b.createElement("div",{className:ie.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(Le,{className:"mt10",title:"\u9898\u76EE\u72B6\u6001",items:(Ve==null?void 0:Ve.question_status)||[],value:wt.question_status,onChange:Rn=>_r(Rn,"question_status")}),b.createElement(Le,{className:"mt10",title:"\u8BC4\u9605\u72B6\u6001",items:(Ve==null?void 0:Ve.review_status)||[],value:wt.review,onChange:Rn=>_r(Rn,"review")})),Sn===2&&b.createElement(b.Fragment,null,b.createElement(Le,{className:"mt10",title:"\u91CD\u65B0\u8BC4\u6D4B\u7ED3\u679C",items:(Ve==null?void 0:Ve.success_status)||[],value:wt.success_status,onChange:Rn=>_r(Rn,"success_status")})),b.createElement(z.t7,{className:ie.input,style:{bottom:Sn===1?10:-5},value:wt.keyword,onChange:Rn=>_r(Rn,"keyword"),placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22"})),b.createElement(Te.default,{className:"mt20",columns:sn,scroll:((jt=Ve==null?void 0:Ve.data)==null?void 0:jt.length)>7?{y:300}:{},dataSource:(Ve==null?void 0:Ve.data)||[],loading:Mt,onChange:na,pagination:{total:He,pageSize:wt.per_page,current:wt.page,hideOnSinglePage:!He,showSizeChanger:!0,pageSizeOptions:["5","10","20","50","100"],showQuickJumper:!0,size:"default",showTotal:E.rU}}),b.createElement(je.Z,{justify:"space-between",align:"middle",className:"mt10"},b.createElement(Ne.default,{className:"c-black",checked:Dt,onChange:Rn=>Gt(Rn.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(Oe.Z,{className:"ml10 mr10",value:Bn,max:tn,min:1,precision:0,onChange:Rn=>Fn(Rn)}),"\u4EBA",b.createElement(Ge.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(Me.default,{centered:!0,title:"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206",open:Xe,width:494,zIndex:1001,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:Re,destroyOnClose:!0,onOk:Fr,onCancel:()=>vt(!1)},b.createElement(ye.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:Rn=>mn.current=Rn}))),b.createElement(Me.default,{centered:!0,title:"\u64CD\u4F5C\u8BB0\u5F55",open:Cn,width:710,onCancel:()=>St(!1),footer:null},b.createElement(se.Z,{spinning:vn},b.createElement("div",{className:ie.operating},ln.map((Rn,Ra)=>b.createElement("div",{key:Ra,className:ie.operatingItem},b.createElement("div",{style:{flex:"0 0 180px"},className:"c-grey-666"},Rn==null?void 0:Rn.created_at),b.createElement("div",{className:"c-black"},Rn==null?void 0:Rn.user_name,"\u64CD\u4F5C\u4E86\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206"),(Rn==null?void 0:Rn.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"},Rn==null?void 0:Rn.rate)):b.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u6210\u529F",b.createElement("span",{style:{color:"#3061D0",margin:"0 3px"}},Rn==null?void 0:Rn.success_student_count),"\u4EBA\uFF0C\u5931\u8D25",b.createElement("span",{style:{color:"#E30000",margin:"0 3px"}},Rn==null?void 0:Rn.fail_count),"\u4EBA")))),b.createElement("div",{style:{height:20}}))))}},96332:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return Ge}});var b=ee(67294),ie={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"},Be=ee(14446),Fe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",Ne="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",je=(Ae,Me,Te)=>new Promise((Oe,ye)=>{var se=x=>{try{a(Te.next(x))}catch(y){ye(y)}},E=x=>{try{a(Te.throw(x))}catch(y){ye(y)}},a=x=>x.done?Oe(x.value):Promise.resolve(x.value).then(se,E);a((Te=Te.apply(Ae,Me)).next())}),Ge=({type:Ae,resdata:Me,onok:Te,oktext:Oe,okloading:ye})=>{const[se,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:oe,no_use_num:de,repeat_shixun_num:pe,student_count:ge,total_num:xe,use_num:we}=Me;let Se=x>0||Ae==="exercise";(0,b.useEffect)(()=>{(Me==null?void 0:Me.student_count)>0&&E(!0)},[Me]),console.log("---11",ye),(0,b.useEffect)(()=>{ye||E(!1)},[ye]);const ve=()=>{if(Ae==="exercise"&&y===1)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:ie.orangeColor},ge),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:ie.orangeColor},we),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:ie.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(Ae==="exercise"&&y===2)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:ie.orangeColor},ge),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:ie.orangeColor},we),"\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:ie.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Ae==="shixun"&&y===1)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:ie.orangeColor},ge),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:ie.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Ae==="shixun"&&y===2)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:ie.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:ie.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Ae==="subject"&&y===1)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:ie.orangeColor},ge),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:ie.orangeColor},we),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:ie.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Ae==="subject"&&y===2)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",b.createElement("span",{className:ie.orangeColor},ge)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",b.createElement("span",{className:ie.orangeColor},we)," \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:ie.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Ae==="exercisepush")return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:ie.orangeColor},ge),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",b.createElement("span",{className:ie.orangeColor},we),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",b.createElement("span",{className:ie.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(Ae==="shixunpush"&&y===1)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:ie.orangeColor},ge),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:ie.orangeColor},we),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:ie.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Ae==="shixunpush"&&y===2)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:ie.orangeColor},ge),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",b.createElement("span",{className:ie.orangeColor},we),"\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:ie.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},Qe=()=>{if(Ae==="exercise"||Ae==="subject"||Ae==="exercisepush"||Ae==="shixunpush")return b.createElement("div",{style:{marginTop:20}},re>0&&b.createElement("div",null,b.createElement("span",{className:ie.flex},b.createElement("img",{src:Ne,style:{width:14}}),b.createElement("span",{className:ie.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),b.createElement("div",{className:ie.statusbody},Ae==="exercise"&&b.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:ie.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"),(Ae==="subject"||Ae==="exercisepush")&&b.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Se&&b.createElement("span",{className:ie.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"),Ae==="shixunpush"&&b.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Se&&b.createElement("span",{className:ie.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((Le,ke)=>b.createElement("a",{href:`/shixuns/${Le.identifier}/challenges`,target:"_blank"},"\u300A",Le==null?void 0:Le.name,"\u300B",ke+1!==re&&"\u3001"))))),x>0&&b.createElement("div",{style:{marginTop:20}},b.createElement("span",{className:ie.flex},b.createElement("img",{src:Fe,style:{width:14}}),b.createElement("span",{className:ie.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),b.createElement("div",{className:ie.statusbody},Ae==="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"),(Ae==="subject"||Ae==="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"),Ae==="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((Le,ke)=>b.createElement("a",{href:`/shixuns/${Le.identifier}/challenges`,target:"_blank"},"\u300A",Le==null?void 0:Le.name,"\u300B",ke+1!==x&&"\u3001"))))));if(Ae==="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(Be.default,{open:se,onCancel:()=>{E(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!Se&&"none"}},zIndex:1003,confirmLoading:ye,okText:Se?Oe:"\u6211\u77E5\u9053\u4E86",onOk:()=>je(void 0,null,function*(){Se?yield Te([...a,...oe]):E(!1)})},b.createElement("div",{style:{maxHeight:600,overflow:"auto"}},ve(),Qe()))}},2715:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return je}});var b=ee(67294),ie={btn:"btn___kReTL",redBtn:"redBtn___UFEL0"},Be=ee(94184),Fe=ee.n(Be),je=({className:ue,style:Ge,state:Ae,onClick:Me})=>{var Te,Oe;return b.createElement("div",{onClick:Me,className:Fe()(Ae?(Te=ie)==null?void 0:Te.redBtn:(Oe=ie)==null?void 0:Oe.btn,ue),style:Ge},Ae?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")))}},57444:function(Bt,Ct,ee){"use strict";ee.d(Ct,{h:function(){return re}});var b=ee(67294),ie=ee(11713),Be=ee(22150),Fe=ee(71577),Ne=ee(4631),je=ee.n(Ne),ue=ee(71749),Ge=ee(30483),Ae=Object.defineProperty,Me=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,E=(oe,de,pe)=>de in oe?Ae(oe,de,{enumerable:!0,configurable:!0,writable:!0,value:pe}):oe[de]=pe,a=(oe,de)=>{for(var pe in de||(de={}))ye.call(de,pe)&&E(oe,pe,de[pe]);if(Oe)for(var pe of Oe(de))se.call(de,pe)&&E(oe,pe,de[pe]);return oe},x=(oe,de)=>Me(oe,Te(de));const y=ie.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"]};Ct.Z=({callback:oe,onCancel:de})=>{const[pe,ge]=(0,b.useState)("python");function xe(Se){ge(te[Se][1])}function we(Se){oe(Se)}return b.createElement(Be.default,x(a({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:we,style:{width:500}}),b.createElement(Be.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},b.createElement(ie.default,{getPopupContainer:Se=>Se.parentNode,onChange:xe},Object.keys(te).map(Se=>b.createElement(y,{key:Se,value:Se},te[Se][0])))),b.createElement(Be.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:de},"\u53D6\u6D88")))};function re({value:oe,onChange:de,mode:pe,options:ge={}}){const xe=(0,b.useRef)(),[we,Se]=(0,b.useState)();return(0,b.useEffect)(()=>{if(we){let ve=function(Qe){const Le=Qe.getValue();de&&de(Le)};return we.on("change",ve),()=>{we.off("change",ve)}}},[we,de]),(0,b.useEffect)(()=>{we&&we.setOption("mode",pe)},[we,pe]),(0,b.useEffect)(()=>{we&&(oe!==we.getValue()||oe==="")&&setTimeout(()=>{we.setValue(oe||"")},300)},[we,oe]),(0,b.useEffect)(()=>{if(xe.current&&!we){const ve=je().fromTextArea(xe.current,a({mode:pe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ge));Se(ve)}},[xe.current,we]),b.createElement("div",{className:"my-codemirror-container"},b.createElement("textarea",{ref:xe}))}},35567:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return Kn}});var b=ee(67294),ie=ee(4631),Be=ee.n(ie),Fe=ee(91033),Ne=ee(71749),je=ee(57341),ue=ee(82801),Ge=ee(88386),Ae=ee(49047),Me=ee(80785),Te=ee(85725),Oe=({value:ht="",className:Rt,showTextOnly:Nt,showLines:Kt,style:xn={}})=>{const qn=(0,b.useMemo)(()=>"",[ht]);return b.createElement(b.Fragment,null,b.createElement("div",{dangerouslySetInnerHTML:{__html:qn}}))},ye=ee(67294),se=Object.defineProperty,E=Object.defineProperties,a=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,te=(ht,Rt,Nt)=>Rt in ht?se(ht,Rt,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):ht[Rt]=Nt,re=(ht,Rt)=>{for(var Nt in Rt||(Rt={}))y.call(Rt,Nt)&&te(ht,Nt,Rt[Nt]);if(x)for(var Nt of x(Rt))z.call(Rt,Nt)&&te(ht,Nt,Rt[Nt]);return ht},oe=(ht,Rt)=>E(ht,a(Rt));let de=[{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:Rt,icon:Nt,actionName:Kt,className:xn="",children:qn}){function Ma(){ht(Kt)}return ye.createElement("a",{title:Rt,className:xn,onClick:Ma},ye.createElement("i",{className:`${Nt}`}),qn)}var ge=({watch:ht,showNullButton:Rt,showNullProgramButton:Nt,onActionCallback:Kt,fullScreen:xn,insertTemp:qn,hidetoolBar:Ma,extraUse:ga})=>{const er=[...de,{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 ye.createElement("ul",{className:"markdown-toolbar-container"},!Ma&&er.map((ur,lo)=>ye.createElement("li",{key:lo},ur.actionName?ye.createElement(pe,oe(re({},ur),{onActionCallback:Kt})):ye.createElement("span",{className:"v-line"}))),Rt?ye.createElement("li",null,ye.createElement(pe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Kt},ye.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Nt?ye.createElement(ye.Fragment,null,ye.createElement("li",null,ye.createElement(pe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Kt},ye.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),ye.createElement("li",null,ye.createElement(pe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Kt},ye.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,qn&&ye.createElement("li",null,ye.createElement(pe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${qn}`,onActionCallback:Kt},ye.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),ga&&ye.createElement("li",null,ga),ye.createElement("li",{className:"btn-full-screen"},ye.createElement(pe,{icon:`${xn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:xn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Kt})))},xe=ee(76621),we=ee(22150),Se=ee(69677),ve=ee(71577),Qe=Object.defineProperty,Le=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,Ue=(ht,Rt,Nt)=>Rt in ht?Qe(ht,Rt,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):ht[Rt]=Nt,Ye=(ht,Rt)=>{for(var Nt in Rt||(Rt={}))Ke.call(Rt,Nt)&&Ue(ht,Nt,Rt[Nt]);if(Ce)for(var Nt of Ce(Rt))qe.call(Rt,Nt)&&Ue(ht,Nt,Rt[Nt]);return ht},ct=(ht,Rt)=>Le(ht,ke(Rt));const yt={labelCol:{span:4},wrapperCol:{span:20}};var $t=({callback:ht,onCancel:Rt})=>{function Nt(Kt){ht(Kt)}return b.createElement(we.default,ct(Ye({},yt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Nt,style:{width:500}}),b.createElement(we.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},b.createElement(Se.default,null)),b.createElement(we.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},b.createElement(Se.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:Rt},"\u53D6\u6D88")))},an=ee(57444),rt=ee(70859),jt=ee(14446),It=ee(71230),hn=ee(63205),Mt=ee(67294),Yt=({callback:ht,onCancel:Rt})=>{const Nt=document.createElement("canvas"),Kt=Nt.getContext("2d");Nt.width=1e3,Nt.height=800,Kt.fillStyle="#ffffff",Kt.fillRect(0,0,Nt.width,Nt.height);const xn=Nt.toDataURL("image/png");return Mt.createElement(jt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Mt.createElement(It.Z,{style:{height:"100vh"}},Mt.createElement(hn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:xn,visible:!0,title:String(Date.now())},onOk:qn=>{ht({src:qn.url})},onClose:Rt})))},Re=ee(23495);function Wt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Wt,go.CommandHandler),Wt.prototype.canAlignSelection=function(){var ht=this.diagram;return!(ht===null||ht.isReadOnly||ht.isModelReadOnly||ht.selection.count<2)},Wt.prototype.alignLeft=function(){var ht=this.diagram;ht.startTransaction("aligning left");var Rt=1/0;ht.selection.each(function(Nt){Nt instanceof go.Link||(Rt=Math.min(Nt.position.x,Rt))}),ht.selection.each(function(Nt){Nt instanceof go.Link||Nt.move(new go.Point(Rt,Nt.position.y))}),ht.commitTransaction("aligning left")},Wt.prototype.alignRight=function(){var ht=this.diagram;ht.startTransaction("aligning right");var Rt=-1/0;ht.selection.each(function(Nt){if(!(Nt instanceof go.Link)){var Kt=Nt.actualBounds.x+Nt.actualBounds.width;Rt=Math.max(Kt,Rt)}}),ht.selection.each(function(Nt){Nt instanceof go.Link||Nt.move(new go.Point(Rt-Nt.actualBounds.width,Nt.position.y))}),ht.commitTransaction("aligning right")},Wt.prototype.alignTop=function(){var ht=this.diagram;ht.startTransaction("alignTop");var Rt=1/0;ht.selection.each(function(Nt){Nt instanceof go.Link||(Rt=Math.min(Nt.position.y,Rt))}),ht.selection.each(function(Nt){Nt instanceof go.Link||Nt.move(new go.Point(Nt.position.x,Rt))}),ht.commitTransaction("alignTop")},Wt.prototype.alignBottom=function(){var ht=this.diagram;ht.startTransaction("aligning bottom");var Rt=-1/0;ht.selection.each(function(Nt){if(!(Nt instanceof go.Link)){var Kt=Nt.actualBounds.y+Nt.actualBounds.height;Rt=Math.max(Kt,Rt)}}),ht.selection.each(function(Nt){Nt instanceof go.Link||Nt.move(new go.Point(Nt.actualBounds.x,Rt-Nt.actualBounds.height))}),ht.commitTransaction("aligning bottom")},Wt.prototype.alignCenterX=function(){var ht=this.diagram,Rt=ht.selection.first();if(Rt){ht.startTransaction("aligning Center X");var Nt=Rt.actualBounds.x+Rt.actualBounds.width/2;ht.selection.each(function(Kt){Kt instanceof go.Link||Kt.move(new go.Point(Nt-Kt.actualBounds.width/2,Kt.actualBounds.y))}),ht.commitTransaction("aligning Center X")}},Wt.prototype.alignCenterY=function(){var ht=this.diagram,Rt=ht.selection.first();if(Rt){ht.startTransaction("aligning Center Y");var Nt=Rt.actualBounds.y+Rt.actualBounds.height/2;ht.selection.each(function(Kt){Kt instanceof go.Link||Kt.move(new go.Point(Kt.actualBounds.x,Nt-Kt.actualBounds.height/2))}),ht.commitTransaction("aligning Center Y")}},Wt.prototype.alignColumn=function(ht){var Rt=this.diagram;Rt.startTransaction("align Column"),ht===void 0&&(ht=0),ht=parseFloat(ht);var Nt=new Array;Rt.selection.each(function(ga){ga instanceof go.Link||Nt.push(ga)});for(var Kt=0;Kt<Nt.length-1;Kt++){var xn=Nt[Kt],qn=xn.actualBounds.y+xn.actualBounds.height+ht,Ma=Nt[Kt+1];Ma.move(new go.Point(xn.actualBounds.x,qn))}Rt.commitTransaction("align Column")},Wt.prototype.alignRow=function(ht){ht===void 0&&(ht=0),ht=parseFloat(ht);var Rt=this.diagram;Rt.startTransaction("align Row");var Nt=new Array;Rt.selection.each(function(ga){ga instanceof go.Link||Nt.push(ga)});for(var Kt=0;Kt<Nt.length-1;Kt++){var xn=Nt[Kt],qn=xn.actualBounds.x+xn.actualBounds.width+ht,Ma=Nt[Kt+1];Ma.move(new go.Point(qn,xn.actualBounds.y))}Rt.commitTransaction("align Row")},Wt.prototype.canRotate=function(ht){var Rt=this.diagram;return!(Rt===null||Rt.isReadOnly||Rt.isModelReadOnly||Rt.selection.count<1)},Wt.prototype.rotate=function(ht){ht===void 0&&(ht=90);var Rt=this.diagram;Rt.startTransaction("rotate "+ht.toString());var Rt=this.diagram;Rt.selection.each(function(Nt){Nt instanceof go.Link||Nt instanceof go.Group||(Nt.angle+=ht)}),Rt.commitTransaction("rotate "+ht.toString())},Wt.prototype.pullToFront=function(){var ht=this.diagram;ht.startTransaction("pullToFront");var Rt=new go.Map;ht.selection.each(function(Nt){Rt.set(Nt.layer,0)}),Rt.iteratorKeys.each(function(Nt){var Kt=0;Nt.parts.each(function(xn){if(!xn.isSelected){var qn=xn.zOrder;isNaN(qn)?xn.zOrder=0:Kt=Math.max(Kt,qn)}}),Rt.set(Nt,Kt)}),ht.selection.each(function(Nt){Wt._assignZOrder(Nt,Rt.get(Nt.layer)+1)}),ht.commitTransaction("pullToFront")},Wt.prototype.pushToBack=function(){var ht=this.diagram;ht.startTransaction("pushToBack");var Rt=new go.Map;ht.selection.each(function(Nt){Rt.set(Nt.layer,0)}),Rt.iteratorKeys.each(function(Nt){var Kt=0;Nt.parts.each(function(xn){if(!xn.isSelected){var qn=xn.zOrder;isNaN(qn)?xn.zOrder=0:Kt=Math.min(Kt,qn)}}),Rt.set(Nt,Kt)}),ht.selection.each(function(Nt){Wt._assignZOrder(Nt,Rt.get(Nt.layer)-1-Wt._findGroupDepth(Nt))}),ht.commitTransaction("pushToBack")},Wt._assignZOrder=function(ht,Rt,Nt){Nt===void 0&&(Nt=ht),ht.layer===Nt.layer&&(ht.zOrder=Rt),ht instanceof go.Group&&ht.memberParts.each(function(Kt){Wt._assignZOrder(Kt,Rt+1,Nt)})},Wt._findGroupDepth=function(ht){if(ht instanceof go.Group){var Rt=0;return ht.memberParts.each(function(Nt){Rt=Math.max(Rt,Wt._findGroupDepth(Nt))}),Rt+1}else return 0},Wt.prototype.doKeyDown=function(){var ht=this.diagram;if(ht!==null){var Rt=ht.lastInput;if(Rt.key==="Up"||Rt.key==="Down"||Rt.key==="Left"||Rt.key==="Right"){var Nt=this.arrowKeyBehavior;if(Nt==="none")return;if(Nt==="select"){this._arrowKeySelect();return}else if(Nt==="move"){this._arrowKeyMove();return}else if(Nt==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Wt.prototype._getAllParts=function(){var ht=new Array;return this.diagram.nodes.each(function(Rt){ht.push(Rt)}),this.diagram.parts.each(function(Rt){ht.push(Rt)}),ht},Wt.prototype._arrowKeyMove=function(){var ht=this.diagram,Rt=ht.lastInput,Nt=0,Kt=0;if(Rt.control||Rt.meta)Nt=1,Kt=1;else if(ht.grid!==null){var xn=ht.grid.gridCellSize;Kt=xn.width,Nt=xn.height}ht.startTransaction("arrowKeyMove"),ht.selection.each(function(qn){Rt.key==="Up"?qn.move(new go.Point(qn.actualBounds.x,qn.actualBounds.y-Nt)):Rt.key==="Down"?qn.move(new go.Point(qn.actualBounds.x,qn.actualBounds.y+Nt)):Rt.key==="Left"?qn.move(new go.Point(qn.actualBounds.x-Kt,qn.actualBounds.y)):Rt.key==="Right"&&qn.move(new go.Point(qn.actualBounds.x+Kt,qn.actualBounds.y))}),ht.commitTransaction("arrowKeyMove")},Wt.prototype._arrowKeySelect=function(){var ht=this.diagram,Rt=ht.lastInput,Nt=null;Rt.key==="Up"?Nt=this._findNearestPartTowards(270):Rt.key==="Down"?Nt=this._findNearestPartTowards(90):Rt.key==="Left"?Nt=this._findNearestPartTowards(180):Rt.key==="Right"&&(Nt=this._findNearestPartTowards(0)),Nt!==null&&(Rt.shift?Nt.isSelected=!0:Rt.control||Rt.meta?Nt.isSelected=!Nt.isSelected:ht.select(Nt))},Wt.prototype._findNearestPartTowards=function(ht){var Rt=this.diagram.selection.first();if(Rt===null)return null;for(var Nt=Rt.actualBounds.center,Kt=this._getAllParts(),xn=1/0,qn=Rt,Ma=0;Ma<Kt.length;Ma++){var ga=Kt[Ma];if(ga!==Rt&&ga.canSelect()){var er=ga.actualBounds.center,ur=Nt.directionPoint(er),lo=this._angleCloseness(ur,ht);if(lo<=45){var ea=Nt.distanceSquaredPoint(er);ea*=1+Math.sin(lo*Math.PI/180),ea<xn&&(xn=ea,qn=ga)}}}return qn},Wt.prototype._angleCloseness=function(ht,Rt){return Math.min(Math.abs(Rt-ht),Math.min(Math.abs(Rt+360-ht),Math.abs(Rt-360-ht)))},Wt.prototype._arrowKeyTree=function(){var ht=this.diagram,Rt=ht.selection.first();if(Rt instanceof go.Node){var Nt=ht.lastInput;if(Nt.key==="Right"){if(!Rt.isTreeLeaf)if(!Rt.isTreeExpanded)ht.commandHandler.canExpandTree(Rt)&&ht.commandHandler.expandTree(Rt);else{var Kt=this._sortTreeChildrenByY(Rt).first();Kt!==null&&ht.select(Kt)}}else if(Nt.key==="Left")if(!Rt.isTreeLeaf&&Rt.isTreeExpanded)ht.commandHandler.canCollapseTree(Rt)&&ht.commandHandler.collapseTree(Rt);else{var xn=Rt.findTreeParentNode();xn!==null&&ht.select(xn)}else if(Nt.key==="Up"){var xn=Rt.findTreeParentNode();if(xn!==null){var qn=this._sortTreeChildrenByY(xn),Ma=qn.indexOf(Rt);if(Ma>0){for(var ga=qn.elt(Ma-1);ga!==null&&ga.isTreeExpanded&&!ga.isTreeLeaf;){var er=this._sortTreeChildrenByY(ga);ga=er.last()}ga!==null&&ht.select(ga)}else ht.select(xn)}}else if(Nt.key==="Down")if(Rt.isTreeExpanded&&!Rt.isTreeLeaf){var Kt=this._sortTreeChildrenByY(Rt).first();Kt!==null&&ht.select(Kt)}else for(;Rt!==null;){var xn=Rt.findTreeParentNode();if(xn===null)break;var qn=this._sortTreeChildrenByY(xn),Ma=qn.indexOf(Rt);if(Ma<qn.length-1){ht.select(qn.elt(Ma+1));break}else Rt=xn}var ur=ht.selection.first();ur!==null&&ht.scrollToRect(ur.actualBounds)}},Wt.prototype._sortTreeChildrenByY=function(ht){var Rt=new go.List().addAll(ht.findTreeChildrenNodes());return Rt.sort(function(Nt,Kt){var xn=Nt.location,qn=Kt.location;return xn.y<qn.y?-1:xn.y>qn.y?1:xn.x<qn.x?-1:xn.x>qn.x?1:0}),Rt},Wt.prototype.copyToClipboard=function(ht){go.CommandHandler.prototype.copyToClipboard.call(this,ht),this._lastPasteOffset.set(this.pasteOffset)},Wt.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(Wt.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(Wt.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 Sn=Wt,xt=ee(18023),Et=ee(15746),Lt=ee(33170),He={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ze=ee(67294),Ve=(ht,Rt,Nt)=>new Promise((Kt,xn)=>{var qn=er=>{try{ga(Nt.next(er))}catch(ur){xn(ur)}},Ma=er=>{try{ga(Nt.throw(er))}catch(ur){xn(ur)}},ga=er=>er.done?Kt(er.value):Promise.resolve(er.value).then(qn,Ma);ga((Nt=Nt.apply(ht,Rt)).next())});function gt({onCancel:ht,callback:Rt}){let Nt=(0,b.useRef)(),Kt=(0,b.useRef)(),xn=(0,b.useRef)(),qn=(0,b.useRef)(!1);const Ma=(0,b.useRef)(!1),[ga,er]=(0,b.useState)(0);function ur(){const ea=Re.bx.make,Dr={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"};Nt.current=new Re.S0(Kt.current,{padding:20,grid:ea(Re.s_,"Grid",ea(Re.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ea(Re.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:ka=>{var pr=ka.diagram.commandHandler.addTopLevelParts(ka.diagram.selection,!0);pr||ka.diagram.currentTool.doCancel()},commandHandler:ea(Sn),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:ka=>{var pr=ka.subject;pr.location=pr.location.copy().snapToGridPoint(ka.diagram.grid.gridOrigin,ka.diagram.grid.gridCellSize),setTimeout(()=>{ka.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:ka=>{var pr=ka.subject;setTimeout(()=>{ka.diagram.commandHandler.editTextBlock()})},LinkRelinked:ka=>{var pr=ka.parameter.part;pr.invalidateConnectedLinks();var Fo=ka.subject;ka.diagram.toolManager.linkingTool.isForwards?Fo.toNode.invalidateConnectedLinks():Fo.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Nt.current.nodeTemplate=ea(Re.NB,"Auto",{locationSpot:Re.z6.Center,locationObjectName:"SHAPE",desiredSize:new Re.$u(120,60),minSize:new Re.$u(40,40),resizable:!0,resizeCellSize:new Re.$u(10,10),rotatable:!0},new Re.KX("location","loc",Re.E9.parse).makeTwoWay(Re.E9.stringify),new Re.KX("desiredSize","size",Re.$u.parse).makeTwoWay(Re.$u.stringify),ea(Re.bn,{name:"SHAPE",fill:Dr.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Re.z6.AllSides,toSpot:Re.z6.AllSides},new Re.KX("figure"),new Re.KX("fill"),new Re.KX("stroke","borderColor"),new Re.KX("strokeWidth","thickness"),new Re.KX("strokeDashArray","dash")),ea(Re.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),ea(Re.al,{margin:1,textAlign:"center",overflow:Re.al.OverflowEllipsis,editable:!0},new Re.KX("text").makeTwoWay(),new Re.KX("stroke","color"))),Nt.current.nodeTemplate.toolTip=ea("ToolTip",ea(Re.s_,"Vertical",{maxSize:new Re.$u(200,NaN)},ea(Re.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Re.KX("text")),ea(Re.al,{font:"10pt sans-serif",textAlign:"center"},new Re.KX("text","details"))));function Di(ka,pr){var Fo=(yr,gi)=>{yr.handled=!0,yr.diagram.model.commit(Pi=>{var wi=gi.part.adornedPart,Ni=new Re.E9().setRectSpot(wi.actualBounds,ka);Ni.subtract(wi.location),Ni.scale(2,2),Ni.x+=Math.sign(Ni.x)*130,Ni.y+=Math.sign(Ni.y)*130,Ni.add(wi.location),Ni.snapToGridPoint(yr.diagram.grid.gridOrigin,yr.diagram.grid.gridCellSize);var Ji=Pi.copyNodeData(wi.data);Pi.setGroupKeyForNodeData(Ji,Pi.getGroupKeyForNodeData(wi.data)),Pi.addNodeData(Ji);var Jl={from:wi.key,to:Pi.getKeyForNodeData(Ji)};Pi.addLinkData(Jl);var ll=yr.diagram.findNodeForData(Ji);ll.location=Ni,yr.diagram.select(ll),setTimeout(()=>{yr.diagram.commandHandler.editTextBlock()},20)})};return ea(Re.bn,{figure:pr,alignment:ka,alignmentFocus:ka.opposite(),width:ka.equals(Re.z6.Top)||ka.equals(Re.z6.Bottom)?25:18,height:ka.equals(Re.z6.Top)||ka.equals(Re.z6.Bottom)?18:25,fill:"orange",stroke:Dr.white,strokeWidth:4,mouseEnter:(yr,gi)=>gi.fill="dodgerblue",mouseLeave:(yr,gi)=>gi.fill="orange",isActionable:!0,click:Fo,contextClick:Fo})}function Ii(ka){return ea(Re.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:(pr,Fo)=>Fo.fill="dodgerblue",mouseLeave:(pr,Fo)=>Fo.fill="orange",click:(pr,Fo)=>{pr.diagram.commandHandler.showContextMenu(Fo.part.adornedPart)}},ka||{})}Nt.current.nodeTemplate.selectionAdornmentTemplate=ea(Re.uz,"Spot",ea(Re.Vm,{padding:10}),Di(Re.z6.Top,"TriangleUp"),Di(Re.z6.Left,"TriangleLeft"),Di(Re.z6.Right,"TriangleRight"),Di(Re.z6.Bottom,"TriangleDown"),Ii({alignment:new Re.z6(.75,0)}));function mr(ka,pr){return(Fo,yr)=>{Fo.handled=!0,Fo.diagram.model.commit(gi=>{gi.set(yr.part.adornedPart.data,ka,pr)})}}function jn(ka,pr){return pr||(pr="color"),ea(Re.bn,{width:16,height:16,stroke:"lightgray",fill:ka,margin:1,background:"transparent",mouseEnter:(Fo,yr)=>yr.stroke="dodgerblue",mouseLeave:(Fo,yr)=>yr.stroke="lightgray",click:mr(pr,ka),contextClick:mr(pr,ka)})}function vl(){return[ea("ContextMenuButton",ea(Re.s_,"Horizontal",jn(Dr.white,"fill"),jn(Dr.beige,"fill"),jn(Dr.extralightblue,"fill"),jn(Dr.extralightred,"fill"))),ea("ContextMenuButton",ea(Re.s_,"Horizontal",jn(Dr.lightgray,"fill"),jn(Dr.lightgreen,"fill"),jn(Dr.lightblue,"fill"),jn(Dr.lightred,"fill")))]}function Ho(){return[ea("ContextMenuButton",ea(Re.s_,"Horizontal",jn(Dr.black),jn(Dr.green),jn(Dr.blue),jn(Dr.red))),ea("ContextMenuButton",ea(Re.s_,"Horizontal",jn(Dr.white),jn(Dr.magenta),jn(Dr.purple),jn(Dr.orange)))]}function dl(ka,pr){return pr||(pr="thickness"),ea(Re.bn,"LineH",{width:16,height:16,strokeWidth:ka,margin:1,background:"transparent",mouseEnter:(Fo,yr)=>yr.background="dodgerblue",mouseLeave:(Fo,yr)=>yr.background="transparent",click:mr(pr,ka),contextClick:mr(pr,ka)})}function tl(ka,pr){return pr||(pr="dash"),ea(Re.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:ka,margin:1,background:"transparent",mouseEnter:(Fo,yr)=>yr.background="dodgerblue",mouseLeave:(Fo,yr)=>yr.background="transparent",click:mr(pr,ka),contextClick:mr(pr,ka)})}function nl(){return[ea("ContextMenuButton",ea(Re.s_,"Horizontal",dl(1),dl(2),dl(3),dl(4))),ea("ContextMenuButton",ea(Re.s_,"Horizontal",tl(null),tl([2,4]),tl([4,4])))]}function Oi(ka,pr){return pr||(pr="figure"),ea(Re.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:ka,margin:1,background:"transparent",mouseEnter:(Fo,yr)=>yr.fill="dodgerblue",mouseLeave:(Fo,yr)=>yr.fill="lightgray",click:mr(pr,ka),contextClick:mr(pr,ka)})}Nt.current.nodeTemplate.contextMenu=ea("ContextMenu",ea("ContextMenuButton",ea(Re.s_,"Horizontal",Oi("Rectangle"),Oi("RoundedRectangle"),Oi("Ellipse"),Oi("Diamond"))),ea("ContextMenuButton",ea(Re.s_,"Horizontal",Oi("Parallelogram2"),Oi("ManualOperation"),Oi("Procedure"),Oi("Cylinder1"))),ea("ContextMenuButton",ea(Re.s_,"Horizontal",Oi("Terminator"),Oi("CreateRequest"),Oi("Document"),Oi("TriangleDown"))),vl(),Ho(),nl()),Nt.current.groupTemplate=ea(Re.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Re.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(ka,pr)=>{var Fo=pr.addMembers(pr.diagram.selection,!0);Fo||pr.diagram.currentTool.doCancel()},avoidable:!1},new Re.KX("location","loc",Re.E9.parse).makeTwoWay(Re.E9.stringify),ea(Re.s_,"Auto",{name:"BODY"},ea(Re.bn,{parameter1:10,fill:Dr.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Re.z6.AllSides,toSpot:Re.z6.AllSides},new Re.KX("fill"),new Re.KX("stroke","color"),new Re.KX("strokeWidth","thickness"),new Re.KX("strokeDashArray","dash")),ea(Re.Vm,{background:"transparent",margin:20})),ea(Re.al,{alignment:Re.z6.Top,alignmentFocus:Re.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Re.KX("text"),new Re.KX("stroke","color"))),Nt.current.groupTemplate.selectionAdornmentTemplate=ea(Re.uz,"Spot",ea(Re.s_,"Auto",ea(Re.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),ea(Re.Vm,{margin:1.5})),Ii({alignment:Re.z6.TopRight,alignmentFocus:Re.z6.BottomRight})),Nt.current.groupTemplate.contextMenu=ea("ContextMenu",vl(),Ho(),nl()),Nt.current.linkTemplate=ea(Re.rU,{layerName:"Foreground",routing:Re.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Re.KX("fromSpot","fromSpot",Re.z6.parse),new Re.KX("toSpot","toSpot",Re.z6.parse),new Re.KX("fromShortLength","dir",ka=>ka>=1?10:0),new Re.KX("toShortLength","dir",ka=>ka>=1?10:0),new Re.KX("points").makeTwoWay(),ea(Re.bn,{strokeWidth:2},new Re.KX("stroke","color"),new Re.KX("strokeWidth","thickness"),new Re.KX("strokeDashArray","dash")),ea(Re.bn,{segmentIndex:0,segmentOffset:new Re.E9(15,0),segmentOrientation:Re.rU.OrientAlong,alignmentFocus:Re.z6.Right,figure:"circle",width:10,strokeWidth:0},new Re.KX("fill","color"),new Re.KX("visible","dir",ka=>ka===1)),ea(Re.bn,{segmentIndex:-1,segmentOffset:new Re.E9(-10,6),segmentOrientation:Re.rU.OrientPlus90,alignmentFocus:Re.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Re.KX("fill","color"),new Re.KX("visible","dir",ka=>ka>=1),new Re.KX("width","thickness",ka=>7+3*ka),new Re.KX("height","thickness",ka=>7+3*ka),new Re.KX("segmentOffset","thickness",ka=>new Re.E9(-15,4+1.5*ka))),ea(Re.bn,{segmentIndex:0,segmentOffset:new Re.E9(15,-6),segmentOrientation:Re.rU.OrientMinus90,alignmentFocus:Re.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Re.KX("fill","color"),new Re.KX("visible","dir",ka=>ka===2),new Re.KX("width","thickness",ka=>7+3*ka),new Re.KX("height","thickness",ka=>7+3*ka),new Re.KX("segmentOffset","thickness",ka=>new Re.E9(-15,4+1.5*ka))),ea(Re.al,{alignmentFocus:new Re.z6(0,1,-4,0),editable:!0},new Re.KX("text").makeTwoWay(),new Re.KX("stroke","color"))),Nt.current.linkTemplate.selectionAdornmentTemplate=ea(Re.uz,ea(Re.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:yl(2)},new Re.KX("pathPattern","thickness",yl)),Ii({alignmentFocus:new Re.z6(0,0,-6,-4)}));function yl(ka){return ea(Re.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(ka+4).toString()+" H3"})}function il(ka){var pr="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return ka===0?pr="M0 0 M16 16 M0 8 L16 8":ka===2&&(pr="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),ea(Re.bn,{geometryString:pr,margin:2,background:"transparent",mouseEnter:(Fo,yr)=>yr.background="dodgerblue",mouseLeave:(Fo,yr)=>yr.background="transparent",click:mr("dir",ka),contextClick:mr("dir",ka)})}function pu(ka){var pr=(Fo,yr)=>{Fo.handled=!0,Fo.diagram.model.commit(gi=>{var Pi=yr.part.adornedPart;gi.set(Pi.data,ka?"toSpot":"fromSpot",Re.z6.stringify(Re.z6.AllSides)),(ka?Pi.toNode:Pi.fromNode).invalidateConnectedLinks()})};return ea(Re.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Fo,yr)=>yr.background="dodgerblue",mouseLeave:(Fo,yr)=>yr.background="transparent",click:pr,contextClick:pr})}function da(ka,pr){var Fo=0,yr=Re.z6.RightSide;ka.equals(Re.z6.Top)?(Fo=270,yr=Re.z6.TopSide):ka.equals(Re.z6.Left)?(Fo=180,yr=Re.z6.LeftSide):ka.equals(Re.z6.Bottom)&&(Fo=90,yr=Re.z6.BottomSide),pr||(Fo-=180);var gi=(Pi,wi)=>{Pi.handled=!0,Pi.diagram.model.commit(Ni=>{var Ji=wi.part.adornedPart;Ni.set(Ji.data,pr?"toSpot":"fromSpot",Re.z6.stringify(yr)),(pr?Ji.toNode:Ji.fromNode).invalidateConnectedLinks()})};return ea(Re.bn,{alignment:ka,alignmentFocus:ka.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Fo,background:"transparent",mouseEnter:(Pi,wi)=>wi.background="dodgerblue",mouseLeave:(Pi,wi)=>wi.background="transparent",click:gi,contextClick:gi})}Nt.current.linkTemplate.contextMenu=ea("ContextMenu",Ho(),nl(),ea("ContextMenuButton",ea(Re.s_,"Horizontal",il(0),il(1),il(2))),ea("ContextMenuButton",ea(Re.s_,"Horizontal",ea(Re.s_,"Spot",pu(!1),da(Re.z6.Top,!1),da(Re.z6.Left,!1),da(Re.z6.Right,!1),da(Re.z6.Bottom,!1)),ea(Re.s_,"Spot",{margin:new Re.Zt(0,0,0,2)},pu(!0),da(Re.z6.Top,!0),da(Re.z6.Left,!0),da(Re.z6.Right,!0),da(Re.z6.Bottom,!0)))));const _i=`{ "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 Ei=["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 Ao(ka){return console.log("shapeName:",ka),Ei.indexOf(ka)>=0}var Zo=new Re.YI(xn.current,{maxSelectionCount:1,linkTemplate:ea(Re.rU,{locationSpot:Re.z6.Center,selectionAdornmentTemplate:ea(Re.uz,"Link",{locationSpot:Re.z6.Center},ea(Re.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),ea(Re.bn,{toArrow:"Standard",stroke:null}))},{routing:Re.rU.AvoidsNodes,curve:Re.rU.JumpOver,corner:5,toShortLength:4},new Re.KX("points"),ea(Re.bn,{isPanelMain:!0,strokeWidth:2}),ea(Re.bn,{toArrow:"Standard",stroke:null})),model:new Re.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Re.bn.getFigureGenerators().toArray().map(ka=>({text:"\u672A\u547D\u540D",size:"100 100",figure:ka.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Nt.current.addDiagramListener("TextEdited",function(ka){var pr;const Fo=ka.subject.part;var yr=(pr=document.activeElement)==null?void 0:pr.value;typeof yr=="string"&&yr.trim()===""&&Nt.current.model.commit(function(gi){gi.set(Fo.data,"text","\u672A\u547D\u540D"),Nt.current.commandHandler.stopCommand()},"increment")}),Zo.nodeTemplate=ea(Re.NB,"Auto",{locationSpot:Re.z6.Center},new Re.KX("location","location",Re.E9.parse).makeTwoWay(Re.E9.stringify),ea(Re.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 Re.KX("stroke").makeTwoWay(),new Re.KX("fill").makeTwoWay(),new Re.KX("figure")),ea(Re.al,{margin:new Re.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Re.$u(16,16),maxSize:new Re.$u(10,NaN),textAlign:"center",editable:!0},new Re.KX("key").makeTwoWay())),setTimeout(()=>{Nt.current.grid=ea(Re.s_,"Grid",ea(Re.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ea(Re.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Nt.current.grid.visible=!0,Nt.current.grid.gridCellStroke="darkgray",Nt.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Nt.current,Nt.current}const lo=()=>Ve(this,null,function*(){var ea=Nt.current.makeImage();const Dr=yield(0,Lt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:ea.src}});Rt({src:Dr.url})});return(0,b.useEffect)(()=>(setTimeout(()=>{ur()},500),er(ga+1),()=>{Nt.current=null}),[]),Ze.createElement("div",{ref:Ma,className:qn.current?`${He.maxH60} body-overflow-initial`:"body-overflow-initial"},Ze.createElement(jt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!ga,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ze.createElement(It.Z,null,Ze.createElement(Et.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ze.createElement(Et.Z,{onClick:()=>{var ea,Dr,Di=Nt.current.selection.first();if(qn.current=!qn.current,document.activeElement&&Di){let Ii=(Dr=(ea=document.activeElement)==null?void 0:ea.value)==null?void 0:Dr.trim();typeof Ii=="string"&&Nt.current.model.commit(function(mr){mr.set(Di.data,"text",Ii||"\u672A\u547D\u540D"),Nt.current.commandHandler.stopCommand()},"increment")}er(ga+1)}},Ze.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ht},Ze.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:He.flowChartWrp},Ze.createElement("div",{style:{display:"flex",height:"100%"}},Ze.createElement("div",{style:{width:"300px",height:"100%"}},Ze.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Ze.createElement("div",{style:{height:"calc(100% - 50px)"},className:He.myPaletteDiv,ref:xn})),Ze.createElement("div",{style:{flex:1,position:"relative"}},Ze.createElement("div",{ref:Kt,style:{height:"80vh"}}))),Ze.createElement("div",{className:"tr"},Ze.createElement(ve.ZP,{size:"large",onClick:lo,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Dt=gt,Gt=ee(78045),Bn=ee(31795);const Fn=Gt.ZP.Group,tn={margin:"0 8px"};var _n=({callback:ht,onCancel:Rt})=>{function Nt(Kt){ht(Kt)}return b.createElement(we.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Nt},b.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},b.createElement("span",{style:tn},"\u5355\u5143\u683C\u6570\uFF1A"),b.createElement("span",{style:tn},"\u884C\u6570"),b.createElement(we.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},b.createElement(Bn.Z,null)),b.createElement("span",{style:tn},"\u5217\u6570"),b.createElement(we.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},b.createElement(Bn.Z,null))),b.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},b.createElement("span",{style:tn},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),b.createElement(we.default.Item,{name:"align"},b.createElement(Fn,null,b.createElement(Gt.ZP,{value:"default"},b.createElement("i",{className:"fa fa-align-justify"})),b.createElement(Gt.ZP,{value:"left"},b.createElement("i",{className:"fa fa-align-left"})),b.createElement(Gt.ZP,{value:"center"},b.createElement("i",{className:"fa fa-align-center"})),b.createElement(Gt.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:Rt},"\u53D6\u6D88")))},Xe=ee(47897),vt=ee(61016),mn=ee.n(vt),St=(0,b.forwardRef)(({use3d:ht,width:Rt,height:Nt,callback:Kt,showSaveButton:xn},qn)=>{const Ma=(0,b.useRef)(),ga=(0,b.useRef)(),[er,ur]=(0,b.useState)(!1),lo=(0,b.useRef)({id:Ma,appName:"graphing",width:Rt||1e3,height:Nt||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)(()=>{ga.current=new(mn())(lo.current,!0),window.onload=function(){ga.current.inject("applet_container")}},[]);const ea=()=>{var Dr=window.ggbApplet.getPNGBase64(1,!0,72);return Kt&&Kt(Dr),Dr};return(0,b.useEffect)(()=>{lo.current.appName=er?"3D":"graphing",ga.current.inject("applet_container")},[er]),(0,b.useEffect)(()=>{ur(ht)},[ht]),(0,b.useImperativeHandle)(qn,()=>({getImgData:ea})),b.createElement(b.Fragment,null,b.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Ma}),b.createElement(It.Z,{align:"middle"},b.createElement(Et.Z,{flex:1},b.createElement(Xe.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:er,onChange:Dr=>ur(Dr)})),b.createElement(Et.Z,null,b.createElement(ve.ZP,{size:"large",onClick:ea,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),vn=ee(36527),Nn=ee(25934),ln=ee(2453);const ma="link",Ut="upload-image",wt="add-flowchart",Un="draw-image",fa="add-flowchart",wa="code-block",la="add-table",rr="------------",en={default:rr,left:`:${rr}`,center:`:${rr}:`,right:`${rr}:`};var rn=ee(99914),sn=(ht,Rt,Nt)=>new Promise((Kt,xn)=>{var qn=er=>{try{ga(Nt.next(er))}catch(ur){xn(ur)}},Ma=er=>{try{ga(Nt.throw(er))}catch(ur){xn(ur)}},ga=er=>er.done?Kt(er.value):Promise.resolve(er.value).then(qn,Ma);ga((Nt=Nt.apply(ht,Rt)).next())});function na(){}let Ga=0;const Fr=1e4,_r="\u2581",or="@\u2581\u2581@",Rn="@\u2581@",Ra=`
|
|
**\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`,En=["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 Mn(ht){return/^\d+$/.test(ht)?`${ht}px`:ht}const Yn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Aa={[Yn+"-B"]:"bold",[Yn+"-I"]:"italic"},Qa={[ma]:"\u6DFB\u52A0\u94FE\u63A5",[wa]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Ut]:"\u6DFB\u52A0\u56FE\u7247",[Un]:"\u6DFB\u52A0\u753B\u56FE",[wt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[la]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Kn=({defaultValue:ht="",onChange:Rt,width:Nt="100%",height:Kt=400,miniToolbar:xn=!1,isFocus:qn=!1,watch:Ma,insertTemp:ga,mode:er="markdown",id:ur="markdown-editor-id",showResizeBar:lo=!1,noStorage:ea=!1,showNullButton:Dr=!1,showNullProgramButton:Di=!1,hidetoolBar:Ii=!1,fullScreen:mr=!1,onBlur:jn,onCMBeforeChange:vl,onFullScreen:Ho,className:dl="",disablePaste:tl=!1,disabled:nl=!1,disabledFill:Oi=!1,placeholder:yl="",values:il="",extraUse:pu})=>{const[da,_i]=(0,b.useState)(null),[Ei,Ao]=(0,b.useState)(ht),[Zo,ka]=(0,b.useState)(Ma),[pr,Fo]=(0,b.useState)(mr),[yr,gi]=(0,b.useState)(""),[Pi,wi]=(0,b.useState)(0),[Ni,Ji]=(0,b.useState)(Kt),[Jl,ll]=(0,b.useState)(!1),vu=(0,b.useRef)((0,Nn.Z)()),ou=(0,b.useRef)(!1),vo=(0,b.useRef)(),[hl,Yl]=(0,b.useState)(0),[Xl,al]=(0,b.useState)(0),Gi=(0,b.useRef)(),ql=(0,b.useRef)(),Ll=(0,b.useRef)(),Rl=(0,b.useRef)(),Vt=()=>sn(void 0,null,function*(){var aa;const Xt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:vu.current}});(aa=Xt==null?void 0:Xt.attachments)!=null&&aa.length&&(console.log("cm:",da,Gi),Xt.attachments.map(Wn=>{Wn.content_type.indexOf("image")>-1?da.replaceSelection(``):Wn.content_type.indexOf("video")>-1?da.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Wn.content_type.indexOf("pdf")>-1?da.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Wn.id}?type=${Wn.content_type}&disposition=inline" target="_blank">${Wn.name}</a>`):da.replaceSelection(`[${Wn.name}](${ENV.API_SERVER}/api/attachments/${Wn.id}?type=${Wn.content_type})`)}))});(0,b.useEffect)(()=>{const aa=window.scrollY||window.pageYOffset;Ao(il),da==null||da.setValue(il),window.scrollTo(0,aa)},[il]),(0,b.useEffect)(()=>{Ho==null||Ho(pr)},[pr]),(0,b.useEffect)(()=>{if(Gi.current){let aa=function(Wn,ta){var $a;if(tl){ta.preventDefault();return}const Er=ta.clipboardData;if(Er){const Cr=Er.types.toString(),Qr=Er.items;if(Cr==="Files"||Er.types.indexOf("Files")>-1){if(ta.preventDefault(),er=="stex")return;try{let Br=Qr[1];(($a=Qr[0])==null?void 0:$a.kind)==="file"&&(Br=Qr[0]);const Kr=Br.getAsFile(),Ca=Kr.name.split(".").pop();(0,rt.I)(Kr,Wr=>{var Ko,To,si;Wr.id?((Ko=Kr==null?void 0:Kr.type)==null?void 0:Ko.indexOf("image"))>-1?Xt.replaceSelection(`<img width="100%" src="/api/attachments/${Wr.id}?type=${Wr.content_type})" alt="" />`):((To=Kr==null?void 0:Kr.type)==null?void 0:To.indexOf("video"))>-1?Xt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Wr.id}"></video>`):((si=Kr==null?void 0:Kr.type)==null?void 0:si.indexOf("pdf"))>-1?Xt.replaceSelection(`<a href="/api/attachments/${Wr.id}?type=${Kr.type}&disposition=inline" target="_blank">${Kr.name}</a>`):En.includes(Ca)?Xt.replaceSelection(`<a href="/api/attachments/${Wr.id}?type=office&disposition=inline" target="_blank">${Kr.name}</a>`):Xt.replaceSelection(`[${Kr.name}](/api/attachments/${Wr.id}?type=${Wr.content_type})`):(Wr==null?void 0:Wr.status)===401&&(ln.ZP.warning((Wr==null?void 0:Wr.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Br){ln.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Xt=Be().fromTextArea(Gi.current,{mode:er,lineNumbers:!xn,lineWrapping:!0,value:ht,autoCloseTags:!Di,autoCloseBrackets:!0});return Xt.on("keyup",function(Wn,ta){ta.keyCode===8&&(Wn.getValue()==""?Xt.setOption("placeholder",yl):Xt.setOption("placeholder",null))}),Xt.on("keydown",function(Wn,ta){if(ta.keyCode===8){var $a=bn(Wn);$a&&ta.preventDefault()}}),qn&&Xt.focus(),Xt.on("paste",aa),Xt.on("dragleave",function(Wn,ta){ql.current.classList.remove("mouse-hover-md")}),nl&&Xt.on("beforeChange",function(Wn,ta){(ta.origin==="paste"||ta.origin==="+input")&&ta.cancel()}),_i(Xt),()=>{Xt.off("paste",aa)}}},[]);const qt=(0,b.useCallback)(()=>{if(ql.current)try{}catch(aa){console.log(aa,"---- to set md editor body height")}},[Ni,ql,pr]);(0,b.useEffect)(()=>{function aa(){let Xt=new Fe.Z(Wn=>{for(let ta of Wn)(ta.target.offsetHeight>0||ta.target.offsetWidth>0)&&(qt(),da.setSize("100%","100%"),da.refresh())});return Xt.observe(Gi.current.parentElement),Xt}if(da){const Xt=aa();return()=>{var Wn,ta;(Wn=Gi.current)!=null&&Wn.parentElement&&Xt.unobserve((ta=Gi.current)==null?void 0:ta.parentElement)}}},[da,qt]),(0,b.useEffect)(()=>{if(da){let aa=[];for(const[Xt,Wn]of Object.entries(Aa)){let ta={[Xt]:()=>{et(Wn)}};aa.push(ta),da.addKeyMap(ta)}return vo.current=setInterval(()=>{ou.current&&Vt()},4e3),()=>{clearInterval(vo.current);for(let Xt of aa)da.removeKeyMap(Xt)}}},[da]),(0,b.useEffect)(()=>{mr!==pr&&Fo(mr)},[mr]),(0,rn.Z)(()=>{if(!ea&&Pi>0){let aa=new Date().getTime(),Xt=window.sessionStorage.getItem(ur);aa>=Pi+Fr&&(!Xt||Xt!==Ei)&&(window.sessionStorage.setItem(ur,Ei),ll(!0))}},Fr),(0,b.useEffect)(()=>{ka(Ma)},[da,Ma]),(0,b.useEffect)(()=>{da&&qn&&da.focus()},[da,qn]),(0,b.useEffect)(()=>{if(Zo&&da){let aa=function(Wn){let ta=Wn.target;if(Rl.current){let $a=ta.scrollTop/ta.scrollHeight;Rl.current.scrollTop=Rl.current.scrollHeight*$a}};const Xt=da.getScrollerElement();return Xt.addEventListener("scroll",aa),()=>{Xt.removeEventListener("scroll",aa)}}},[da,Zo]),(0,b.useEffect)(()=>{if(da&&vl){let aa=function(Xt,Wn){vl(Xt,Wn)};return da.on("beforeChange",aa),()=>{da.off("beforeChange",aa)}}},[da,vl]),(0,b.useEffect)(()=>{if(da&&jn){let aa=function(){jn(da.getValue())};return da.on("blur",aa),()=>{da.off("blur",aa)}}},[da,jn]);function bn(aa,Xt){var Wn=aa.getDoc(),ta=Wn.getCursor(),$a=Wn.getLine(ta.line),Er=$a.charAt(ta.ch-1),Cr=$a.lastIndexOf("@\u2581@",ta.ch),Qr=$a.lastIndexOf("@\u2581\u2581@",ta.ch),Br=Cr>Qr?Cr:Qr,Kr=Cr>Qr?3:4;if(or.indexOf(Er)===-1)return null;if(console.log("change1:",Xt,aa,$a,ta,Br,Cr,Qr,Er),Br>=0&&ta.ch-Br<5){var Ca=Br+Kr;return Wn.replaceRange("",{line:ta.line,ch:Br},{line:ta.line,ch:Ca}),{line:ta.line,ch:Ca}}return null}(0,b.useEffect)(()=>{if(da){let aa=function(Xt,Wn){const ta=Xt.getValue();Ao(ta),wi(new Date().getTime()),Xt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Rt&&(Di?Rt(ta,Ha(ta)):Rt(ta))};return da.on("change",aa),()=>{da.off("change",aa)}}},[da,Rt]),(0,b.useEffect)(()=>{if(da)if(ht==null)da.setValue(""),Ao("");else{const aa=window.scrollY||window.pageYOffset;ht!==da.getValue()&&(da.setValue(ht),Ao(ht),da.setCursor(nl?1:da.lineCount(),0),window.scrollTo(0,aa))}},[da,ht]);const et=(0,b.useCallback)(aa=>{const Xt=da.getCursor(),Wn=da.getSelection();let ta=Wn.split(`
|
|
`);switch(aa){case"bold":return da.replaceSelection("**"+Wn+"**"),Wn===""&&da.setCursor(Xt.line,Xt.ch+2),da.focus();case"italic":return da.replaceSelection("*"+Wn+"*"),Wn===""&&da.setCursor(Xt.line,Xt.ch+1),da.focus();case"code":return da.replaceSelection("`"+Wn+"`"),Wn===""&&da.setCursor(Xt.line,Xt.ch+1),da.focus();case"inline-latex":return gi("inline-latex"),da.focus();case"latex":return da.replaceSelection("```latex\n"+Wn+"\n```"),da.setCursor(Xt.line+1,Wn.length+1),da.focus();case"line-break":return da.replaceSelection(`<br/>
|
|
`),da.focus();case"list-ul":return Wn===""?da.replaceSelection("- "+Wn):da.replaceSelection(ta.map($a=>$a===""?"":`- ${$a}`).join(`
|
|
`)),da.focus();case"list-ol":return Wn===""?da.replaceSelection("1. "+Wn):da.replaceSelection(ta.map(($a,Er)=>$a===""?"":`${Er+1}. ${$a}`).join(`
|
|
`)),da.focus();case"add-null-ch":return Wn===""&&da.setCursor(Xt.line,Xt.ch),da.replaceSelection(_r),da.focus();case"add-signal":return Wn===""&&da.setCursor(Xt.line,Xt.ch),da.replaceSelection(Rn),da.focus();case"add-multiple":return Wn===""&&da.setCursor(Xt.line,Xt.ch),da.replaceSelection(or),da.focus();case"inster-template-1":return Wn===""&&da.setCursor(Xt.line,Xt.ch),da.replaceSelection(Ra),da.focus();case"eraser":return da.setValue(""),da.focus();case"trigger-watch":return ka(!Zo),da.focus();case"trigger-full-screen":return Fo(!pr),da.focus();case ma:gi(ma);return;case wa:gi(wa);return;case Ut:gi(Ut);return;case Un:gi(Un);return;case"maths-latex":gi("maths-latex");return;case wt:gi(wt);return;case la:gi(la);return;default:throw new Error}},[da,Zo,pr]),Pn=(0,b.useCallback)((aa,Xt)=>{var Wn,ta,$a,Er,Cr,Qr;switch(gi(""),yr){case ma:const{title:Ko,link:To}=aa;return da.replaceSelection(`[${Ko}](${To})`),da.focus();case wa:const{language:si,content:Wo}=aa;return da.replaceSelection(["```"+si,Wo,"```"].join(`
|
|
`)),da.focus();case"maths-latex":for(var Br=atob(aa),Kr=new Uint8Array(Br.length),Ca=0;Ca<Br.length;Ca++)Kr[Ca]=Br.charCodeAt(Ca);var Wr=new Blob([Kr],{type:"image/png"});(0,rt.I)(Wr,ai=>{ai.id?da.replaceSelection(``):(ai==null?void 0:ai.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":da.replaceSelection("`$$"+aa+"$$`");break;case Ut:case Un:case fa:const{src:di,alt:uo}=aa,ti=Xt,Fi=($a=(ta=(Wn=ti==null?void 0:ti.name)==null?void 0:Wn.split("."))==null?void 0:ta.pop)==null?void 0:$a.call(ta);return((Er=ti==null?void 0:ti.type)==null?void 0:Er.indexOf("image"))>-1||!(ti!=null&&ti.type)?ti.align||ti.width?da.replaceSelection(`<p style="text-align:${ti.align||"initial"}"><img width="${ti.width?ti.width+"%":"initial"}" src="${di}" alt="${uo||""}" /></p>`):da.replaceSelection(`<img width="100%" src="${di}" alt="${uo||""}" />`):((Cr=ti==null?void 0:ti.type)==null?void 0:Cr.indexOf("video"))>-1?da.replaceSelection(`<video width="100%" controls src="${di}"></video>`):((Qr=ti==null?void 0:ti.type)==null?void 0:Qr.indexOf("pdf"))>-1?da.replaceSelection(`<a href="${di}?type=${ti.type}&disposition=inline" target="_blank">${ti.name}</a>`):En.includes(Fi)?da.replaceSelection(`<a href="${di}?type=office&disposition=inline" target="_blank">${ti.name}</a>`):da.replaceSelection(`[${ti.name}](${di})`),da.focus();case la:const{row:Li,col:cl,align:Al}=aa;let Hi=`
|
|
`;for(let ai=0;ai<Li;ai++){let bl=[],Ml=[];for(let Zl=0;Zl<cl;Zl++)ai===1&&Ml.push(en[Al]),bl.push(" ");ai===1&&(Hi+=`| ${Ml.join(" | ")} |
|
|
`),Hi+=`| ${bl.join(cl===1?"":" | ")} |
|
|
`}return da.replaceSelection(Hi+`
|
|
`),da.focus();default:throw new Error}},[da,yr]),ha=(0,b.useMemo)(()=>{switch(yr){case ma:return b.createElement($t,{callback:Pn,onCancel:Sa});case wa:return b.createElement(an.Z,{callback:Pn,onCancel:Sa});case Ut:return b.createElement(rt.Z,{callback:Pn,onCancel:Sa});case wt:return b.createElement(Dt,{callback:Pn,onCancel:Sa});case la:return b.createElement(_n,{callback:Pn,onCancel:Sa});case"maths-latex":return b.createElement(St,{showSaveButton:!0,callback:Pn});case"inline-latex":return b.createElement(vn.Z,{showSaveButton:!0,callback:Pn});default:return null}},[yr]);function Sa(){gi("")}(0,b.useEffect)(()=>{if(Ll.current){let aa=function(Cr){$a=!0,Er=Cr.pageY},Xt=function(){$a=!1},Wn=function(Cr){if($a){let Qr=Cr.pageY-Er;Qr<0&&(Qr=0),Qr>300&&(Qr=300);let Br=Kt+Qr+"px";Ji(Br)}},ta=Ll.current,$a=!1,Er=0;return ta.addEventListener("mousedown",aa),document.addEventListener("mousemove",Wn),document.addEventListener("mouseup",Xt),()=>{ta.removeEventListener("mousedown",aa),document.removeEventListener("mousemove",Wn),document.removeEventListener("mouseup",Xt)}}},[da,Ll]),(0,b.useEffect)(()=>{Ji(Kt)},[Kt]);const on=Mn(Nt),Dn=Mn(Ni),un={width:on,height:Dn},oa=(0,b.useMemo)(()=>{if(Pi){let aa=new Date(Pi),Xt=aa.getHours(),Wn=aa.getMinutes(),ta=aa.getSeconds();return Xt=Xt<10?"0"+Xt:Xt,Wn=Wn<10?"0"+Wn:Wn,ta=ta<10?"0"+ta:ta,`${Xt}:${Wn}:${ta}`}return 0},[Pi]),Ha=aa=>{const Xt=[];if(Di){let Wn=-1;aa=aa.replace(/(@▁▁@|@▁@)/g,function(ta,$a,Er){Xt.push({multiLine:ta!==Rn})})}return Xt};function gr(){window.sessionStorage.removeItem(ur),ll(!1),wi(0)}function ar(){ll(!1),wi(0),da.setValue(window.sessionStorage.getItem(ur))}(0,b.useEffect)(()=>{Qa[yr]&&yr!==Un&&yr!==wt&&setTimeout(()=>{const aa=document.getElementsByClassName("markdown-popup-form")[0],Xt=window.innerWidth/2-aa.offsetWidth/2,Wn=window.innerHeight/2-aa.offsetHeight/2;Yl(Xt),al(Wn)},0)},[yr]);const br=aa=>{aa.preventDefault();const Xt=aa.clientX-hl,Wn=aa.clientY-Xl;document.body.onmousemove=ta=>{let $a=ta.clientX-Xt,Er=ta.clientY-Wn;const Cr=document.getElementsByClassName("markdown-popup-form")[0],Qr=window.innerWidth-Cr.offsetWidth,Br=window.innerHeight-Cr.offsetHeight;$a=Math.max(0,Math.min($a,Qr)),Er=Math.max(0,Math.min(Er,Br)),_a(ta.clientX,ta.clientY,Xt,Wn)&&(Yl($a),al(Er))},document.body.onmouseup=function(){document.body.onmousemove=null}},_a=(aa,Xt,Wn,ta)=>{const $a=document.body.clientHeight,Er=document.body.clientWidth;return aa<20&&Wn>aa||aa>Er-20&&Wn<aa||Xt<20&&ta>Xt||Xt>$a-20&&ta<Xt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return b.createElement(b.Fragment,null,b.createElement("div",{className:"markdown-editor-wrapper",ref:ql},b.createElement("div",{className:`markdown-editor-container ${dl} ${Zo?"on-preview":""} ${xn?"mini":""} ${pr?"full-screen":""}`,style:un},b.createElement(ge,{insertTemp:ga,watch:Zo,fullScreen:pr,showNullButton:Dr,showNullProgramButton:Di,onActionCallback:et,hidetoolBar:Ii,extraUse:pu}),b.createElement("div",{className:"markdown-editor-body"},b.createElement("div",{className:"codemirror-container"},b.createElement("textarea",{ref:Gi,placeholder:yl})),Zo?b.createElement("div",{ref:Rl,className:"preview-container"},er==="stex"&&b.createElement(Oe,{value:Ei}),er!=="stex"&&b.createElement(Te.Z,{disabledFill:Oi,showProgramFill:Di,value:Ei})):null))),lo?b.createElement("a",{ref:Ll,className:"editor-resize"}):null,yr===Un&&b.createElement(Yt,{callback:Pn,onCancel:Sa}),yr===wt&&b.createElement(Dt,{callback:Pn,onCancel:Sa}),b.createElement(xe.Z,null,Qa[yr]&&yr!==Un&&yr!==wt?b.createElement(jt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:hl,top:Xl},title:b.createElement("div",{style:{cursor:"move"},onMouseDown:br},Qa[yr]),open:!0,onCancel:Sa,footer:null,destroyOnClose:!0,width:yr===wt?"1200px":null,height:yr===wt?"80vh":null,className:"markdown-popup-form"},ha):null))}},70859:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return pe},I:function(){return xe}});var b=ee(22150),ie=ee(2453),Be=ee(69677),Fe=ee(93421),Ne=ee(31795),je=ee(78045),ue=ee(71577),Ge=ee(15476),Ae=ee(67294),Me=ee(52262),Te=ee(67294),Oe=Object.defineProperty,ye=Object.defineProperties,se=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,y=(we,Se,ve)=>Se in we?Oe(we,Se,{enumerable:!0,configurable:!0,writable:!0,value:ve}):we[Se]=ve,z=(we,Se)=>{for(var ve in Se||(Se={}))a.call(Se,ve)&&y(we,ve,Se[ve]);if(E)for(var ve of E(Se))x.call(Se,ve)&&y(we,ve,Se[ve]);return we},te=(we,Se)=>ye(we,se(Se));const{useForm:re}=b.default,oe={width:280,marginRight:10},de={labelCol:{span:5},wrapperCol:{span:19}};var pe=({callback:we,onCancel:Se})=>{const[ve]=re();let Qe=(0,Ae.useRef)();function Le(Ke){Qe.current.width=ve.getFieldValue("width"),Qe.current.align=ve.getFieldValue("align"),we(Ke,Qe.current)}function ke(Ke,qe){if(Ke.status===-1){ie.ZP.error(Ke.message);return}ve.setFieldsValue({src:`/api/attachments/${Ke.id}`,type:qe.type})}function Ce(Ke){let qe=Ke.target.files[0];Qe.current=qe,xe(qe,ke)}return Te.createElement(b.default,te(z({form:ve},de),{className:"upload-image-panel",onFinish:Le,style:{width:470,overflow:"hidden"}}),Te.createElement(b.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Te.createElement("div",{className:"flex-container"},Te.createElement(b.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Te.createElement(Be.default,{style:oe})),Te.createElement(ge,{onFileChange:Ce}))),Te.createElement(b.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Te.createElement(Be.default,{style:{width:264}})),Te.createElement(b.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Te.createElement(Fe.Z,null,Te.createElement(b.default.Item,{name:"width",style:{margin:0}},Te.createElement(Ne.Z,{style:{width:264}})),Te.createElement("span",{className:"ml8"},"%"))),Te.createElement(b.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Te.createElement(je.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"}]})),Te.createElement("aside",null,Te.createElement(b.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Te.createElement(ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Te.createElement(ue.ZP,{type:"default",onClick:Se},"\u53D6\u6D88"))))};function ge({onFileChange:we}){return Te.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Te.createElement("input",{type:"file",onChange:we}))}function xe(we,Se){if(!we)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Me.bg)())throw ie.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",we),ve.append("file_param_name","editormd-image-file"),ve.append("byxhr","true");var Qe=new window.XMLHttpRequest;Qe.withCredentials=!0,Qe.addEventListener("load",function(Le){Se(JSON.parse(Le.target.responseText),we)},!1),Qe.addEventListener("error",function(Le){console.error(Le)},!1),Qe.open("POST",`${Ge.KI}/api/attachments.json`),Qe.send(ve)}},76621:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return Be}});var b=ee(67294),ie=ee(73935);class Be extends b.Component{constructor(Ne){super(Ne);const je=window.document;this.node=je.createElement("div"),je.body.appendChild(this.node)}render(){const{children:Ne}=this.props;return(0,ie.createPortal)(Ne,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},9897:function(Bt,Ct,ee){"use strict";ee.d(Ct,{i:function(){return oe},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"},ie=ee(57953),Be=ee(83062),Fe=ee(94184),Ne=ee.n(Fe),je=ee(28706),ue=ee(26194),Ge=ee(52262),Ae="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/GJMcZvDyq5NJjrsz2cbuTrNPuLCgTGIXLFZ6IDa5wPeCZSwUuXoMN6h8huPOfUCeVXxklc1xQxpbAENGDwSSdHcBQFJgmbGrbpAEyHVtprvjCE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2S1VJkCA5YpLHrII0hM0krdrAhIPmHu2KBDc0B8A13yCnV1Vx1XsIxQ2SyK+VUHnYmTvZpmAguRt+hbk7T5C06SL3rJzeS+JgsJq7R0tDts5doBpXt0zSZrPZDuXGsUGiDNZjoMRmnNz1cjLVawDFru3Zc+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=ee(67294);const oe=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Ae,swimg:Me},{name:"101\u8BA1\u5212",ptimg:Te,swimg:Oe},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:ye,swimg:se},{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:xe=[],col:we=4,right:Se,bottom:ve=23,precision:Qe=0,wrapWidth:Le=1200,trackEventItems:ke,loading:Ce,onRemove:Ke=()=>{},isCurrent:qe=!0,showAlias:Ue=!1})=>{const Ye=Math.floor((Le-(we-1)*Se)/we),ct=[{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(yt=>(window.ENV==="build"&&(yt.ptimg=`/react/build${yt.ptimg}`,yt.swimg=`/react/build${yt.swimg}`),yt));return re.createElement(ie.Z,{spinning:Ce},re.createElement("div",{className:Ne()(b.list,ge)},!!(xe!=null&&xe.length)&&(xe==null?void 0:xe.map((yt,$t)=>{var an;const{name:rt,id:jt,identifier:It,featured:hn,school_name:Mt,image_url:Yt,excellent:Re,is_plan:Wt}=yt;return re.createElement("div",{key:jt,className:b.wrap,style:{width:Ye,marginRight:(1+$t)%we===0?0:Se+Qe,marginBottom:ve}},re.createElement("a",{className:b.li,onClick:Sn=>{Sn.preventDefault(),Sn.stopPropagation(),ke&&(0,je.L9)([ke]),(0,je.xg)(`/paths/${It}`)}},re.createElement("div",{className:b.img},re.createElement("img",{className:b.cover,src:`${Yt}`}),qe&&(0,Ge.bg)()&&(yt==null?void 0:yt.studying)&&re.createElement("div",{className:`${b.movebq} user-path-items`,onClick:Sn=>{Sn.stopPropagation(),Ke(yt)}},re.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),re.createElement("span",{className:"c-red"},"\u79FB\u9664")),(an=yt==null?void 0:yt.subject_tags)==null?void 0:an.map((Sn,xt)=>{var Et,Lt;if(xt===0){const Ze=(Et=ct.find(Ve=>Ve.name==Sn))==null?void 0:Et.swimg;return re.createElement("img",{className:b.sign,src:Ze,style:{left:"-4px"}})}const He=(Lt=ct.find(Ze=>Ze.name==Sn))==null?void 0:Lt.ptimg;return re.createElement("img",{className:b.sign,src:He,style:{left:`${48+52*(xt-1)+2*xt}px`}})}),re.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(yt==null?void 0:yt.excellent)&&re.createElement("div",{className:b.bq},"\u5F00\u653E\u8BFE\u7A0B"))),re.createElement("div",{className:b.name},re.createElement(Be.Z,{title:Ue&&(yt!=null&&yt.excellent_alias_name)?re.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${rt}`,re.createElement("br",null),re.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${yt==null?void 0:yt.excellent_alias_name}`)):rt},re.createElement("span",{className:b.e},Ue&&(yt==null?void 0:yt.excellent_alias_name)||rt))),re.createElement("div",{className:b.tags},re.createElement("div",null,re.createElement(Be.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},re.createElement("span",null,re.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),re.createElement("span",null,yt.stages_count))),re.createElement(Be.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,yt.members_count)))))))})),!xe.length&&re.createElement(ue.Z,null)))}},30001:function(Bt,Ct,ee){"use strict";ee.d(Ct,{jL:function(){return Ne},w9:function(){return yt},QD:function(){return vn},cQ:function(){return Ke.Z},op:function(){return _n},O5:function(){return Ra},_b:function(){return Un},t7:function(){return y},Gi:function(){return hn},YG:function(){return jt},qp:function(){return Te},vr:function(){return ma},qE:function(){return mn},Je:function(){return re},wb:function(){return Ce},cq:function(){return xt},tp:function(){return se}});var b=ee(67294),ie={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"},Be="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezR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iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Ne=({dataSource:En=[],img:Mn,imgWidth:Vn=346,title:Yn,sunTitle:Aa,bannerExtraContent:Qa})=>b.createElement("div",{className:ie.banner},b.createElement("div",{className:ie.content},b.createElement("aside",null,b.createElement("p",null,b.createElement("b",null,Yn),b.createElement("span",null,Aa)),En.length>0&&b.createElement("div",{className:ie.btns},En.map((Kn,ht)=>b.createElement("div",{key:ht,onClick:Kn.click},Kn.name,Kn.sign?b.createElement("img",{src:Be,width:39}):null))),Qa),Mn&&b.createElement("img",{style:{marginTop:33,marginRight:38},src:Mn,width:Vn}))),je={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=ee(94184),Ge=ee.n(ue),Ae=ee(96486),Te=({dataSource:En=[],value:Mn,onChange:Vn,onTitleChange:Yn,className:Aa,title:Qa,titleWidth:Kn=41,style:ht={},fontColor:Rt="#6A7283",showCount:Nt})=>{const[Kt,xn]=(0,b.useState)(0),[qn,Ma]=(0,b.useState)(!1),ga=(0,b.useRef)(null),er=(0,b.useRef)(null);return(0,b.useEffect)(()=>{var ur;En.length!==0&&(((ur=ga==null?void 0:ga.current)==null?void 0:ur.clientHeight)>97?xn(1):xn(0)),En.length===0&&xn(0),Ma(!1)},[En]),b.createElement("div",{className:Ge()(je.row,Aa),style:ht},b.createElement("div",{onClick:(0,Ae.throttle)(()=>Yn==null?void 0:Yn(),2e3),style:{width:Kn,marginTop:qn?12:4},className:`${je.title} ${Yn?"current":""}`},Qa),b.createElement("div",{className:qn?`${je.tagsWrap} ${je.tagsBorderWrap}`:je.tagsWrap},b.createElement("div",{className:je.bar,ref:er,style:Kt>0?{height:Kt===1?97:"auto",overflow:Kt===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},b.createElement("div",{className:je.tag,ref:ga},En==null?void 0:En.map(ur=>b.createElement("span",{onClick:()=>Vn(ur.id),key:ur.id,style:{color:Rt},className:Mn===ur.id?je.active:""},b.createElement("span",{title:ur.name,className:je.name},ur.name),!!Nt&&b.createElement("span",{className:je.num},ur.count))))),!!Kt&&b.createElement(b.Fragment,null,Kt===1?b.createElement("div",{onClick:()=>{var ur;xn(2),((ur=ga==null?void 0:ga.current)==null?void 0:ur.clientHeight)>245?Ma(!0):Ma(!1)},className:je.action},"\u5C55\u5F00",b.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):b.createElement("div",{onClick:()=>{er.current.scrollTop=0,xn(1),Ma(!1)},className:je.action},"\u6536\u8D77",b.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Oe={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"},se=({dataSource:En=[],value:Mn,onChange:Vn,className:Yn,style:Aa={}})=>b.createElement("div",{style:Aa,className:Ge()(Oe.tabs,Yn)},En.map(Qa=>b.createElement("span",{onClick:()=>Vn(Qa.id),className:Mn===Qa.id?Oe.active:"",key:Qa.id},Qa.name))),E={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"},a=ee(69677),y=({dataSource:En=[],value:Mn="",onChange:Vn,onInputChange:Yn=()=>{},className:Aa,style:Qa={},placeholder:Kn,allowClear:ht=!1})=>{var Rt;const[Nt,Kt]=(0,b.useState)(""),[xn,qn]=(0,b.useState)("");(0,b.useEffect)(()=>{var er;let ur=Mn;(er=JSON.stringify(Mn))!=null&&er.includes("{")&&(Kt(Mn.id),ur=Mn.value||"");try{qn(decodeURIComponent(ur||""))}catch(lo){qn(decodeURIComponent(ur||""))}},[Mn]);const Ma=()=>{Vn(encodeURIComponent(xn),Nt||null)},ga=er=>{er!==Nt&&(Kt(er),Vn(encodeURIComponent(xn),er))};return b.createElement("div",{className:Ge()(E.input,Aa),style:Qa},!!En.length&&b.createElement("div",{className:E.dropdown},b.createElement("div",{className:E.text},(Rt=En.find(er=>er.id===Nt))==null?void 0:Rt.name,b.createElement("i",{className:"iconfont icon-zhankai4"}),b.createElement("b",{className:E.b1}),b.createElement("b",{className:E.b2})),b.createElement("div",{className:E.menu},En.map((er,ur)=>b.createElement("div",{key:ur,onClick:()=>ga(er.id)},er.name)))),b.createElement(a.default,{onPressEnter:Ma,value:xn,onChange:er=>{qn(er.target.value),Yn(encodeURIComponent(er.target.value),Nt||null)},bordered:!1,placeholder:Kn}),b.createElement("i",{onClick:Ma,className:"iconfont icon-sousuo9 font14 pl10 current"}))},z={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"},re=({value:En,onChange:Mn,className:Vn,total:Yn,pageSize:Aa,style:Qa={}})=>{const Kn=En<2,ht=En>=Math.ceil(Yn/Aa);return Yn<=Aa?b.createElement(b.Fragment,null):b.createElement("div",{className:Ge()(z.quickPager,Vn),style:Qa},b.createElement("div",{onClick:()=>{Kn||Mn(En-1,"prev")},className:Kn?z.disabled:""},"\u4E0A\u4E00\u9875"),b.createElement("div",{onClick:()=>{ht||Mn(En+1,"next")},className:ht?z.disabled:""},"\u4E0B\u4E00\u9875"))},oe={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"},de=ee(57953),pe=ee(83062),ge=ee(12604),xe=ee(11320),we=ee(28706),Se=ee(96908),ve=ee(57177),Qe=ee(81378),Le=ee(26194),Ce=({className:En,dataSource:Mn=[],col:Vn=4,right:Yn,bottom:Aa=23,precision:Qa=0,wrapWidth:Kn=1200,trackEventItems:ht,loading:Rt})=>{const Nt=Math.floor((Kn-(Vn-1)*Yn)/Vn);return b.createElement(de.Z,{spinning:Rt},b.createElement("div",{className:Ge()(oe.list,En)},!!Mn.length&&Mn.map((Kt,xn)=>{const{name:qn,id:Ma,identifier:ga,power:er,cover_image_id:ur,pic:lo}=Kt;return b.createElement("div",{className:oe.wrap,key:Ma,style:{width:Nt,marginRight:(1+xn)%Vn===0?0:Yn+Qa,marginBottom:Aa}},b.createElement("a",{target:"_blank",href:`/shixuns/${ga}/challenges`,className:oe.li,onClick:ea=>{ea.preventDefault(),ht&&(0,we.L9)([ht]),er&&(0,we.xg)(`/shixuns/${ga}/challenges`)}},b.createElement("div",{className:oe.img},b.createElement("img",{className:oe.cover,src:`${lo}`}),Kt.is_jupyter&&b.createElement("img",{className:oe.sign,src:Se}),Kt.is_jupyter_lab&&b.createElement("img",{className:oe.sign,src:ve}),Kt.is_unity_3d&&b.createElement("img",{className:oe.sign,src:Qe})),b.createElement("div",{className:oe.name},b.createElement(pe.Z,{title:qn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},b.createElement("span",{className:oe.e},qn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),b.createElement("div",{className:oe.tags},b.createElement(pe.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),b.createElement("span",null,Kt.challenges_count))),!!Kt.myshixuns_count&&b.createElement(pe.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,Kt.myshixuns_count))),b.createElement(pe.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},b.createElement("span",null,b.createElement("span",null,Kt.level))),b.createElement("div",{className:oe.rate},b.createElement(ge.Z,{allowHalf:!0,disabled:!0,defaultValue:Kt.score_info}),b.createElement("span",null,"\xA0",Kt.score_info?`${Kt.score_info}\u5206`:"5\u5206")))),!er&&b.createElement("div",{className:oe.lockWrap},b.createElement("img",{src:`${xe.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")))}),!Mn.length&&b.createElement(Le.Z,null)))},Ke=ee(9897),qe={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"},Ue="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/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2Wvb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NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Ye=ee(67294),yt=({className:En,dataSource:Mn=[],col:Vn=4,right:Yn,bottom:Aa=23,precision:Qa=0,wrapWidth:Kn=1200,trackEventItems:ht,loading:Rt})=>{const Nt=Math.floor((Kn-(Vn-1)*Yn)/Vn);return Ye.createElement(de.Z,{spinning:Rt},Ye.createElement("div",{className:Ge()(qe.list,En)},!!Mn.length&&Mn.map((Kt,xn)=>{const{subject_identifier:qn,id:Ma,identifier:ga,power:er}=Kt,ur=Kt.is_public!=0&&Kt.is_public;return Ye.createElement("div",{className:qe.wrap,key:Ma,style:{width:Nt,marginRight:(1+xn)%Vn===0?0:Yn+Qa,marginBottom:Aa}},Ye.createElement("a",{className:qe.li,onClick:lo=>{lo.preventDefault(),ht&&(0,we.L9)([ht]),(0,we.xg)(Kt.first_category_url)}},Ye.createElement("div",{className:qe.top},Ye.createElement(pe.Z,{title:Kt.name},Ye.createElement("div",{className:qe.name},Kt.name)),Ye.createElement("img",{className:qe.img,src:xe.Z.IMG_SERVER+"/images/"+Kt.avatar_url}),Ye.createElement("div",{className:qe.text,title:Kt.creator},Kt.creator),qn&&Ye.createElement("div",{className:qe.btns},Ye.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Ye.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),ur&&Ye.createElement("div",{className:qe.sign},"\u516C\u5F00")),Ye.createElement("div",{className:qe.bottom},Kt.visits>0&&Ye.createElement(pe.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Ye.createElement("span",null,Ye.createElement("i",{className:"iconfont icon-liulanyan"}),Ye.createElement("span",null,Kt.visits))),Kt.course_members_count>0&&Ye.createElement(pe.Z,{title:"\u6210\u5458",placement:"bottom"},Ye.createElement("span",null,Ye.createElement("i",{className:"iconfont icon-chengyuan"}),Kt.course_members_count)),Kt.tasks_count>0&&Ye.createElement(pe.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Ye.createElement("span",null,Ye.createElement("i",{className:"iconfont icon-zuoye"}),Kt.tasks_count)),Kt.is_end?Ye.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Ye.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Kt.is_accessible&&Ye.createElement("div",{className:qe.lockWrap},Ye.createElement("img",{src:`${xe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Ye.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Mn.length&&Ye.createElement(Le.Z,null)))},$t={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"},an=ee(35973),jt=({dataSource:En=[],value:Mn,onChange:Vn,className:Yn,style:Aa={},tabBarExtraContent:Qa})=>b.createElement("div",{className:Ge()($t.tabs,Yn),style:Aa},b.createElement("div",{className:$t.tabsWrap},En.map((Kn,ht)=>b.createElement("aside",{className:$t.tab,onClick:()=>{Vn(Kn.id),Kn.link&&an.history.push(Kn.link)},key:ht},b.createElement("div",{className:Mn===Kn.id?$t.active:""},Kn.name),(Kn==null?void 0:Kn.resetCount)==null&&(Kn==null?void 0:Kn.total)!==void 0&&b.createElement("span",null,"\uFF08",Kn==null?void 0:Kn.total,"\uFF09"),(Kn==null?void 0:Kn.resetCount)!==void 0&&(Kn==null?void 0:Kn.total)!==void 0&&b.createElement(pe.Z,{title:(Kn==null?void 0:Kn.tip)!=null?Kn==null?void 0:Kn.tip:""},b.createElement("span",{style:{color:"#9096A3"}},"\uFF08",b.createElement("span",{style:{color:"#000"}},Kn==null?void 0:Kn.resetCount),"/",b.createElement("span",null,Kn==null?void 0:Kn.total),"\uFF09"))))),b.createElement("div",{className:$t.tabBar},Qa)),hn=({className:En,style:Mn={},children:Vn})=>b.createElement("div",{className:Ge()(En),style:Mn},Vn),Mt={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"},Yt=ee(85418),Re=ee(68508);const Wt=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var xt=({sortValue:En,dropValue:Mn,className:Vn,onSort:Yn,onDrop:Aa,dataSource:Qa=Wt})=>{var Kn;return b.createElement("div",{className:Ge()(Mt.orderWrap,Vn)},b.createElement(Yt.Z,{dropdownRender:()=>b.createElement(Re.default,null,Qa.map((ht,Rt)=>b.createElement(Re.default.Item,{key:Rt,onClick:()=>Aa(ht.id)},ht.name)))},b.createElement("span",{className:Mt.orderTextWrap},(Kn=Qa.find(ht=>Mn===ht.id))==null?void 0:Kn.name)),b.createElement("span",{className:Mt.orderIconWrap},b.createElement("span",{className:Mt.orderAsc},b.createElement("i",{className:En==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Mt.cursorPointer} ${Mt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Mt.cursorPointer}`,onClick:()=>Yn(En==="asc"?"desc":"asc")})),b.createElement("span",{className:Mt.orderDesc},b.createElement("i",{className:En==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Mt.cursorPointer} ${Mt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Mt.cursorPointer}`,onClick:()=>Yn(En==="asc"?"desc":"asc")}))))},Et={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"},Lt=ee(71577),He=Object.defineProperty,Ze=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,Dt=(En,Mn,Vn)=>Mn in En?He(En,Mn,{enumerable:!0,configurable:!0,writable:!0,value:Vn}):En[Mn]=Vn,Gt=(En,Mn)=>{for(var Vn in Mn||(Mn={}))Ve.call(Mn,Vn)&&Dt(En,Vn,Mn[Vn]);if(Ze)for(var Vn of Ze(Mn))gt.call(Mn,Vn)&&Dt(En,Vn,Mn[Vn]);return En},Bn=(En,Mn)=>{var Vn={};for(var Yn in En)Ve.call(En,Yn)&&Mn.indexOf(Yn)<0&&(Vn[Yn]=En[Yn]);if(En!=null&&Ze)for(var Yn of Ze(En))Mn.indexOf(Yn)<0&>.call(En,Yn)&&(Vn[Yn]=En[Yn]);return Vn},Fn=(En,Mn,Vn)=>new Promise((Yn,Aa)=>{var Qa=Rt=>{try{ht(Vn.next(Rt))}catch(Nt){Aa(Nt)}},Kn=Rt=>{try{ht(Vn.throw(Rt))}catch(Nt){Aa(Nt)}},ht=Rt=>Rt.done?Yn(Rt.value):Promise.resolve(Rt.value).then(Qa,Kn);ht((Vn=Vn.apply(En,Mn)).next())}),_n=En=>{var Mn=En,{className:Vn,style:Yn,children:Aa,loading:Qa=!1,openLoading:Kn,onClick:ht=()=>{},size:Rt="middle",shape:Nt="round"}=Mn,Kt=Bn(Mn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[xn,qn]=(0,b.useState)(!1);return b.createElement(Lt.ZP,Gt({onClick:(0,Ae.throttle)(Ma=>Fn(void 0,null,function*(){Kn&&qn(!0);try{yield ht(Ma)}catch(ga){console.log("error",ga)}Kn&&qn(!1)}),2e3,{leading:!0,trailing:!1}),className:Ge()(Et.btn,Et[`${Rt}-${Nt}`],Vn),style:Yn,size:Rt,shape:Nt,loading:xn||Qa},Kt),Aa)},Xe={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"},mn=({className:En,style:Mn,children:Vn=null,onClick:Yn,title:Aa})=>b.createElement("div",{className:Ge()(Xe.head,En),style:Mn},b.createElement("span",{className:"primary-hover",onClick:Yn},b.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),b.createElement("b",{title:Aa},Aa),b.createElement("div",{className:Xe.node},Vn)),Cn={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"},vn=({confirmShow:En=!0,confirmTitle:Mn,confirmClick:Vn,cancelShow:Yn=!0,cancelTitle:Aa,cancelClick:Qa,className:Kn,style:ht,confirmLoading:Rt=!1})=>b.createElement("div",{className:Ge()(Cn.btns,Kn),style:ht},En&&b.createElement(Lt.ZP,{loading:Rt,onClick:Vn,type:"primary",className:Cn.confirm},Mn),Yn&&b.createElement(Lt.ZP,{onClick:Qa,className:Cn.cancel},Aa)),Nn={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"},ma=({className:En,style:Mn={},LeftContent:Vn,children:Yn,RightContent:Aa})=>b.createElement("div",{className:Ge()(Nn.fixedBottom,En),style:Mn},b.createElement("div",{className:Nn.wrap},b.createElement("div",{className:Nn.left},Vn),b.createElement("div",{className:Nn.center},Yn),b.createElement("div",{className:Nn.right},Aa))),Ut={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"},Un=({className:En,style:Mn={},dataSource:Vn=[]})=>b.createElement("div",{className:Ge()(Ut.crumbs,En),style:Mn},Vn.map((Yn,Aa)=>Aa<Vn.length-1?b.createElement(b.Fragment,{key:Aa},Yn.path||Yn.onClick?b.createElement("span",{className:Ut.hover,onClick:Yn!=null&&Yn.onClick?Yn.onClick:()=>an.history.push(Yn.path)},Yn.name):b.createElement("span",null,Yn.name),b.createElement("span",null,"\xA0",">","\xA0")):b.createElement("span",{key:Aa,style:{color:"#5F6368"}},Yn.name))),fa=ee(55054),wa=Object.defineProperty,la=Object.defineProperties,rr=Object.getOwnPropertyDescriptors,en=Object.getOwnPropertySymbols,rn=Object.prototype.hasOwnProperty,sn=Object.prototype.propertyIsEnumerable,na=(En,Mn,Vn)=>Mn in En?wa(En,Mn,{enumerable:!0,configurable:!0,writable:!0,value:Vn}):En[Mn]=Vn,Ga=(En,Mn)=>{for(var Vn in Mn||(Mn={}))rn.call(Mn,Vn)&&na(En,Vn,Mn[Vn]);if(en)for(var Vn of en(Mn))sn.call(Mn,Vn)&&na(En,Vn,Mn[Vn]);return En},Fr=(En,Mn)=>la(En,rr(Mn)),_r=(En,Mn)=>{var Vn={};for(var Yn in En)rn.call(En,Yn)&&Mn.indexOf(Yn)<0&&(Vn[Yn]=En[Yn]);if(En!=null&&en)for(var Yn of en(En))Mn.indexOf(Yn)<0&&sn.call(En,Yn)&&(Vn[Yn]=En[Yn]);return Vn};const{Countdown:or}=fa.default;var Ra=En=>{var Mn=En,{onChange:Vn}=Mn,Yn=_r(Mn,["onChange"]);const[Aa,Qa]=(0,b.useState)(null);(0,b.useEffect)(()=>{typeof Aa=="number"&&Aa>=0&&Vn(Aa)},[Aa]);const Kn=ht=>{const Rt=Math.floor(ht/1e3);Qa(Rt)};return b.createElement(or,Fr(Ga({},Yn),{onChange:Kn}))}},99914:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return ie}});var b=ee(67294);function ie(Be,Fe){const Ne=(0,b.useRef)();(0,b.useEffect)(()=>{Ne.current=Be}),(0,b.useEffect)(()=>{function je(){Ne.current()}if(Fe!==null){let ue=setInterval(je,Fe);return()=>clearInterval(ue)}},[Fe])}},96707:function(Bt,Ct,ee){"use strict";ee.d(Ct,{h:function(){return b}});var b=(ie=>(ie[ie.NOMATCH=-1]="NOMATCH",ie[ie.OK=0]="OK",ie[ie.TIMEOUT=2]="TIMEOUT",ie[ie.PODFAILURE=3]="PODFAILURE",ie[ie.COMPILEFAILURE=4]="COMPILEFAILURE",ie[ie.EXECUTEFAILURE=5]="EXECUTEFAILURE",ie[ie.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",ie))(b||{})},88742:function(Bt,Ct,ee){"use strict";ee.d(Ct,{H7:function(){return E},MK:function(){return se},MU:function(){return Me},X6:function(){return Oe},bM:function(){return Ae},fi:function(){return a},fu:function(){return Ge},n4:function(){return x},rX:function(){return ye},vl:function(){return y},zO:function(){return Te}});var b=ee(33170),ie=Object.defineProperty,Be=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,je=(z,te,re)=>te in z?ie(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)&&je(z,re,te[re]);if(Be)for(var re of Be(te))Ne.call(te,re)&&je(z,re,te[re]);return z};function Ge(z,te){return(0,b.U2)(`myproblems/${z}.json`,ue({hidePopLogin:!0},te||{}))}function Ae(z,te){return(0,b.v_)(`myproblems/${z}/code_submit.json`,te)}function Me(z,te){return(0,b.v_)(`myproblems/${z}/code_debug.json`,te)}function Te(z,te){return te.language&&(te.language=encodeURIComponent(te.language)),(0,b.U2)(`myproblems/${z}/submit_records.json`,te)}function Oe(z){return(0,b.U2)("myproblems/record_detail.json",{id:z})}function ye(z,te){return(0,b.U2)(`myproblems/${z}/result.json`,{mode:te})}function se(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)}},38884:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return lu}});var b=ee(67294),ie={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"},Be=ee(22150),Fe=ee(83062),Ne=ee(71577),je=ee(14446),ue=ee(31795),Ge=ee(2453),Ae=ee(69677),Me=ee(96074),Te=ee(84567),Oe=ee(71230),ye=ee(15746),se=ee(28452),E=ee(55241),a=Object.defineProperty,x=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,te=(Je,ot,mt)=>ot in Je?a(Je,ot,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Je[ot]=mt,re=(Je,ot)=>{for(var mt in ot||(ot={}))y.call(ot,mt)&&te(Je,mt,ot[mt]);if(x)for(var mt of x(ot))z.call(ot,mt)&&te(Je,mt,ot[mt]);return Je};const oe=Je=>React.createElement("svg",re({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},Je),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 de="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTRFNkZEIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0iTTEzLjgwOCAxMS40NDhhLjU1OC41NTggMCAwIDEgMCAuNzg4bC0xLjU2NCAxLjU2NWEuNTU4LjU1OCAwIDEgMS0uNzg5LS43OWwxLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDAgMSAuNzkgMFptOS44ODIgMi40NjJhLjU1OC41NTggMCAwIDEtLjc4OSAwbC0xLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDEgMSAuNzg5LS43ODlsMS41NjQgMS41NjRhLjU1Ni41NTYgMCAwIDEgMCAuNzg4WiIgZmlsbD0iIzY2NzhFQiIvPjxwYXRoIGQ9Ik0yMS43NTMgMjEuNzA3YTUuOTM3IDUuOTM3IDAgMSAwLTguNTguMDE1bC0uOTM3LjkzNmEuNTU4LjU1OCAwIDEgMCAuNzg5Ljc4OGwuOTk1LS45OTRhNS45MSA1LjkxIDAgMCAwIDMuNDM2IDEuMDk1YzEuMjg3IDAgMi40OC0uNDEgMy40NTItMS4xMDZsLjk5Mi45OTJhLjU1OC41NTggMCAxIDAgLjc4OS0uNzg5bC0uOTM2LS45MzdaIiBmaWxsPSIjNjY3OEVCIi8+PHBhdGggZD0ibTIwLjg1OCAxOC45NS0zLjAyNC0xLjc0NXYtMi4wNTRhLjU1OC41NTggMCAxIDAtMS4xMTcgMHYyLjM1MWMwIC4wNjQuMDExLjEyNi4wMzEuMTg0YS41NTEuNTUxIDAgMCAwIC4yNTguMzNsMy4yOTMgMS45YS41NTcuNTU3IDAgMCAwIC41NTktLjk2NloiIGZpbGw9IiNGRkYiLz48L2c+PC9nPjwvc3ZnPg==",pe=ee(85725),ge=ee(35973),xe=ee(28706),we=ee(33170),Se=Object.defineProperty,ve=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,ke=(Je,ot,mt)=>ot in Je?Se(Je,ot,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Je[ot]=mt,Ce=(Je,ot)=>{for(var mt in ot||(ot={}))Qe.call(ot,mt)&&ke(Je,mt,ot[mt]);if(ve)for(var mt of ve(ot))Le.call(ot,mt)&&ke(Je,mt,ot[mt]);return Je};const Ke=Je=>React.createElement("svg",Ce({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},Je),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 qe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIgZmlsbD0iI0VBRjNGNCIvPjxwYXRoIGQ9Ik0yNS45MDUgMTUuMzdhLjc3NS43NzUgMCAwIDAtLjYyNi0uNTI5bC00LjgxNC0uNy0yLjE1Mi00LjM2MmEuNzc2Ljc3NiAwIDAgMC0xLjM5MiAwbC0yLjE1MyA0LjM2My00LjgxNC42OTlhLjc3NS43NzUgMCAwIDAtLjQzIDEuMzIzbDMuNDg0IDMuMzk2LS44MjMgNC43OTRhLjc3Ny43NzcgMCAwIDAgMS4xMjYuODE4bDQuMzA2LTIuMjY0IDQuMzA1IDIuMjY0YS43NzguNzc4IDAgMCAwIC44MTctLjA1OS43NzcuNzc3IDAgMCAwIC4zMS0uNzU5bC0uODIzLTQuNzk0IDMuNDgzLTMuMzk2YS43NzcuNzc3IDAgMCAwIC4xOTYtLjc5NVoiIGZpbGw9IiMyMUMwQTYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvZz48L3N2Zz4=",Ue=Object.defineProperty,Ye=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,$t=(Je,ot,mt)=>ot in Je?Ue(Je,ot,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Je[ot]=mt,an=(Je,ot)=>{for(var mt in ot||(ot={}))ct.call(ot,mt)&&$t(Je,mt,ot[mt]);if(Ye)for(var mt of Ye(ot))yt.call(ot,mt)&&$t(Je,mt,ot[mt]);return Je};const rt=Je=>React.createElement("svg",an({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},Je),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 jt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTdGM0ZGIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGw9IiM0QzZGRkYiIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0ibTIzLjcxOSAxMy4zMjUtNC4wOTgtMy45NGMtLjA5Ny0uMTMtLjIyNS0uMTYyLS4zNTUtLjE2Mi0uMTI5IDAtLjI1OC4wNjQtLjM4Ny4xNjFsLTcuNTUgNy43NTNjLS4wNjUuMDY1LS4wOTguMTYyLS4xMy4yMjdsLTEuMDMyIDUuNDI3Yy0uMDMzLjE5NC4wMzIuMzIzLjE2LjQ4NC4xMy4xMy4yMjcuMTYyLjM4OS4xNjJoLjA5Nmw0Ljc3Ni0xLjA5OWMuMDk3LS4wMzIuMTk0LS4wNjQuMjU4LS4xNjFsNy44NDEtOC4xMDhjLjE5NC0uMTYyLjE5NC0uNTE3LjAzMy0uNzQ0aC0uMDAxWm0tOC4xIDguMDQ0YS41MzQuNTM0IDAgMCAxLS4zODYuMTYyLjU2LjU2IDAgMCAxLS4zODgtLjE2MmwtMy0yLjgxYy0uMjI2LS4xOTQtLjIyNi0uNTE3LS4wMzMtLjc0My4xOTQtLjIyNy41MTctLjIyNy43NDMtLjAzM2wzIDIuODExYy4yNTkuMjI2LjI5MS41NS4wNjUuNzc2Wk0xNyAyMi45Mmg2Ljg0NHYxLjA1NUgxN3oiLz48L2c+PC9nPjwvc3ZnPg==",It=ee(14375),hn=ee(35567),Mt=ee(35566),Yt=ee(73646),Re={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"},Wt=ee(67294),Sn=Object.defineProperty,xt=Object.defineProperties,Et=Object.getOwnPropertyDescriptors,Lt=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Ve=(Je,ot,mt)=>ot in Je?Sn(Je,ot,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Je[ot]=mt,gt=(Je,ot)=>{for(var mt in ot||(ot={}))He.call(ot,mt)&&Ve(Je,mt,ot[mt]);if(Lt)for(var mt of Lt(ot))Ze.call(ot,mt)&&Ve(Je,mt,ot[mt]);return Je},Dt=(Je,ot)=>xt(Je,Et(ot)),Gt=(Je,ot)=>{var mt={};for(var At in Je)He.call(Je,At)&&ot.indexOf(At)<0&&(mt[At]=Je[At]);if(Je!=null&&Lt)for(var At of Lt(Je))ot.indexOf(At)<0&&Ze.call(Je,At)&&(mt[At]=Je[At]);return mt};const Bn=null,Fn=(Je,ot)=>{var mt=Je,{globalSetting:At,loading:gn,dispatch:Gn,isEdit:Fa,editData:ca}=mt,$n=Gt(mt,["globalSetting","loading","dispatch","isEdit","editData"]);const[cn,ua]=(0,b.useState)(""),[Ka,qr]=(0,b.useState)(""),[$r,ya]=(0,b.useState)([]),[Ba,Zn]=(0,b.useState)(""),[Xn,dr]=(0,b.useState)(),[he,Ee]=(0,b.useState)(!1),[We,$e]=(0,b.useState)({}),[at,ft]=(0,b.useState)([]);(0,b.useEffect)(()=>{!ca||!Fa||(ua(ca==null?void 0:ca.name),qr(ca==null?void 0:ca.analysis),dr(ca==null?void 0:ca.is_ordered),$e(ca),Ee(!0))},[ca]),(0,b.useEffect)(()=>{if(!he)return;const Ln=ca==null?void 0:ca.standard_answer.map(Ia=>Ia==null?void 0:Ia.answer_text);ya(Ln);const ia=ca==null?void 0:ca.standard_answer.map(Ia=>Ia==null?void 0:Ia.score);ft(ia),Ee(!1)},[he]),(0,b.useImperativeHandle)(ot,()=>({onSave:Ht,Clear:yn}));const Ht=()=>{let Ln=[],ia=!1;return cn?($r.forEach((Ia,Oa)=>{Ln.push({position:Oa+1,answer_text:[],score:at[Oa]}),Ia==null||Ia.forEach((sr,wr)=>{Ln[Oa].answer_text.push(sr),(!sr||!(0,xe.eR)(sr,1e4))&&(Zn(`${Oa}-${wr}`),Ge.ZP.info(sr?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),ia=!0)})}),ia?!1:(Ln==null?void 0:Ln.length)>20?(Ge.ZP.warning("\u586B\u7A7A\u9898\u6807\u51C6\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A/\u4E0D\u80FD\u8D85\u8FC720\u4E2A\uFF01"),!1):{name:cn,analysis:Ka,standard_answers:Ln,is_ordered:Xn,downcase:We==null?void 0:We.downcase,no_space:We==null?void 0:We.no_space,use_blank_score:We==null?void 0:We.use_blank_score}):(Ge.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1)},yn=()=>{ua(""),qr(""),ya([]),dr(!1)},An=(Ln,ia,Ia)=>{const Oa=$r.slice();if(ia&&Oa.splice(Ln,ia),Ia)for(let sr=0;sr<Ia;sr++)Oa.splice(Ln+sr,0,[""]);ya(Oa)},Jn=(Ln,ia,Ia)=>{Zn("");let Oa=$r.slice();Oa[Ln][ia]=Ia,ya(Oa)},On=Ln=>{let ia=$r.slice();ia[Ln]=[...ia[Ln],""],ya(ia)},pa=(Ln,ia)=>{let Ia=$r.slice();if(!Ia[Ln][ia]){Ia[Ln]=Ia[Ln].filter((Oa,sr)=>sr!==ia),ya(Ia);return}je.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:Re.modal,onOk:()=>{Ia[Ln]=Ia[Ln].filter((Oa,sr)=>sr!==ia),ya(Ia)}})},Ua=Ln=>{je.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:Re.modal,onOk:()=>{let ia=$r.slice();ia=$r.filter((Ia,Oa)=>Ln!==Oa),ya(ia)}})};return Wt.createElement("section",{className:Re.wrap},Wt.createElement("p",{className:Re.titleWrap},Wt.createElement("span",{className:Re.required},"*"),Wt.createElement("span",{className:Re.title},"\u9898\u5E72\uFF1A")),Wt.createElement("div",null,Wt.createElement(Mt.Z,{id:"completion-question-tittle",placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE",height:155,defaultValue:cn,onChange:Ln=>ua(Ln),showNullButton:!0,onPlaceholderChange:An})),Wt.createElement("div",{className:"mt20"},$r.map((Ln,ia)=>Wt.createElement("div",{style:{display:"flex"}},Wt.createElement("div",{style:{flex:1}},Wt.createElement(Yt.Z,{key:ia,answers:Ln,index:ia,flex:1,is_md:!0,activeOptionErrorIndex:Ba,onAnswerChange:Jn,addChildAnswer:On,deleteChildAnswer:pa,deleteChildAnswermain:Ua})),We.use_blank_score&&Wt.createElement("div",{style:{display:"flex",alignItems:"center",width:"165px"}},Wt.createElement("span",{style:{color:"red",margin:"auto 5px auto 10px"}},"*"),"\u5206\u503C\uFF1A",Wt.createElement(ue.Z,{style:{width:"100px"},size:"large",defaultValue:at[ia],onBlur:Ia=>{at[ia]=Ia.target.value,ft([...at])}}))))),Wt.createElement("div",null,Wt.createElement(Te.default,{className:`${Re.color333} font14 mt20`,checked:We.use_blank_score,onChange:Ln=>$e(Dt(gt({},We),{use_blank_score:Ln.target.checked}))},"\u5224\u5206\u65F6\u6309\u7A7A\u7ED9\u5206"),Wt.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")),Wt.createElement("div",null,Wt.createElement(Te.default,{className:`${Re.color333} font14 mt20`,checked:We.downcase,onChange:Ln=>$e(Dt(gt({},We),{downcase:Ln.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Wt.createElement("div",null,Wt.createElement(Te.default,{className:`${Re.color333} font14 mt20`,checked:We.no_space,onChange:Ln=>$e(Dt(gt({},We),{no_space:Ln.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),Wt.createElement("div",{className:"mt20"},($r==null?void 0:$r.length)>1&&Wt.createElement("span",null,Wt.createElement(Te.default,{checked:Xn,onChange:Ln=>dr(Ln.target.checked),className:`${Re.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),Wt.createElement("span",{className:`${Re.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"))),Wt.createElement("p",{className:Re.titleWrap},Wt.createElement("span",{className:Re.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),Wt.createElement(hn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Ka,onChange:Ln=>qr(Ln)}))};var tn=(0,ge.connect)(({loading:Je,globalSetting:ot})=>({globalSetting:ot,loading:Je.effects}),null,null,{forwardRef:!0})((0,b.forwardRef)(Fn)),_n=ee(78045),Xe=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,mn=Object.prototype.propertyIsEnumerable,Cn=(Je,ot)=>{var mt={};for(var At in Je)vt.call(Je,At)&&ot.indexOf(At)<0&&(mt[At]=Je[At]);if(Je!=null&&Xe)for(var At of Xe(Je))ot.indexOf(At)<0&&mn.call(Je,At)&&(mt[At]=Je[At]);return mt};const St=null,vn=(Je,ot)=>{var mt=Je,{globalSetting:At,loading:gn,editData:Gn,dispatch:Fa,onRef:ca=()=>{},isEdit:$n}=mt,cn=Cn(mt,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[ua,Ka]=(0,b.useState)(),[qr,$r]=(0,b.useState)(""),[ya,Ba]=(0,b.useState)("");(0,b.useEffect)(()=>{if(!Gn||!$n)return;$r(Gn==null?void 0:Gn.name),Ba(Gn==null?void 0:Gn.analysis);const dr=Gn==null?void 0:Gn.choices.find(he=>he.is_answer);Ka(dr.choice_text==="\u6B63\u786E"?"0":"1")},[Gn]),(0,b.useImperativeHandle)(ot,()=>({onSave:Zn,Clear:Xn}));const Zn=()=>qr?ua?{name:qr,choices:[{choice_text:"\u6B63\u786E",is_answer:ua==="0"?1:0},{choice_text:"\u9519\u8BEF",is_answer:ua==="1"?1:0}],analysis:ya}:(Ge.ZP.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),!1):(Ge.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1),Xn=()=>{$r(""),Ba(""),Ka("")};return b.createElement("section",{className:Re.wrap},b.createElement("p",{className:Re.titleWrap},b.createElement("span",{className:Re.required},"*"),b.createElement("span",{className:Re.title},"\u9898\u5E72\uFF1A")),b.createElement(hn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:qr,onChange:dr=>$r(dr)}),b.createElement("p",{className:Re.titleWrap},b.createElement("span",{className:Re.required},"*"),b.createElement("span",{className:Re.title},"\u7B54\u6848\u9009\u9879\uFF1A",b.createElement("span",{className:Re.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),b.createElement(_n.ZP.Group,{buttonStyle:"solid",value:ua,onChange:dr=>Ka(dr.target.value)},b.createElement(_n.ZP.Button,{value:"0",className:`${Re.radio} mr40`},"\u6B63\u786E"),b.createElement(_n.ZP.Button,{value:"1",className:Re.radio},"\u9519\u8BEF")),b.createElement("p",{className:Re.titleWrap},b.createElement("span",{className:Re.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),b.createElement(hn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:ya,onChange:dr=>Ba(dr)}))};var Nn=(0,ge.connect)(({loading:Je,globalSetting:ot})=>({globalSetting:ot,loading:Je.effects}),null,null,{forwardRef:!0})((0,b.forwardRef)(vn)),ln=Object.getOwnPropertySymbols,ma=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable,wt=(Je,ot)=>{var mt={};for(var At in Je)ma.call(Je,At)&&ot.indexOf(At)<0&&(mt[At]=Je[At]);if(Je!=null&&ln)for(var At of ln(Je))ot.indexOf(At)<0&&Ut.call(Je,At)&&(mt[At]=Je[At]);return mt};const Un=null,fa=(Je,ot)=>{var mt=Je,{globalSetting:At,loading:gn,editData:Gn,dispatch:Fa,onRef:ca=()=>{},isEdit:$n}=mt,cn=wt(mt,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[ua,Ka]=(0,b.useState)([]);(0,b.useEffect)(()=>{var Ba;if(!Gn||!$n)return;const Zn=(Ba=Gn==null?void 0:Gn.shixun)==null?void 0:Ba.challenges.map(Xn=>({id:Xn==null?void 0:Xn.id,score:Xn.score}));Ka(Zn)},[Gn]),(0,b.useImperativeHandle)(ot,()=>({onSave:qr,Clear:$r}));const qr=()=>({challenges:[...ua]}),$r=()=>{Ka([])};console.log("editData--",Gn);const ya=Ba=>{var Zn,Xn;return b.createElement("div",null,(Xn=(Zn=Ba==null?void 0:Ba.shixun)==null?void 0:Zn.challenges)==null?void 0:Xn.map((dr,he)=>{var Ee;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",he+1,"\u5173"),b.createElement(Fe.Z,{key:he,title:dr==null?void 0:dr.challenge_name},b.createElement("span",null,(0,xe.Pq)(dr==null?void 0:dr.challenge_name,44)))),b.createElement("p",{style:{marginBottom:0}},b.createElement("span",{className:Re.required},"*"),b.createElement("span",{className:Re.title},"\u5206\u503C\uFF1A"),b.createElement(ue.Z,{precision:1,min:1,max:100,className:Re.baseFormItem,style:{width:176},value:(Ee=ua.find(We=>We.id===dr.id))==null?void 0:Ee.score,onChange:We=>{ua.find($e=>$e.id===dr.id).score=We,Ka([...ua])}})))}),b.createElement("div",{style:{clear:"both"}}))};return b.createElement("section",{className:Re.wrap},b.createElement(pe.Z,{style:{paddingRight:10},className:Re.titleHtml,value:`${Gn==null?void 0:Gn.position}\u3001${Gn==null?void 0:Gn.name}`}),b.createElement("p",{style:{marginBottom:"10px",marginTop:"25px"}},b.createElement("span",{className:Re.required},"*"),b.createElement("span",{className:Re.title},"\u5173\u5361")),ya(Gn))};var wa=(0,ge.connect)(({loading:Je,globalSetting:ot})=>({globalSetting:ot,loading:Je.effects}),null,null,{forwardRef:!0})((0,b.forwardRef)(fa)),la=Object.getOwnPropertySymbols,rr=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable,rn=(Je,ot)=>{var mt={};for(var At in Je)rr.call(Je,At)&&ot.indexOf(At)<0&&(mt[At]=Je[At]);if(Je!=null&&la)for(var At of la(Je))ot.indexOf(At)<0&&en.call(Je,At)&&(mt[At]=Je[At]);return mt};const sn=["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"],na=(Je,ot)=>{var mt=Je,{editData:At,globalSetting:gn,loading:Gn,dispatch:Fa,onRef:ca=()=>{},isEdit:$n}=mt,cn=rn(mt,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[ua,Ka]=(0,b.useState)([]),[qr,$r]=(0,b.useState)(),[ya,Ba]=(0,b.useState)([]),[Zn,Xn]=(0,b.useState)(""),[dr,he]=(0,b.useState)("");(0,b.useEffect)(()=>{Ka(["","","",""])},[]),(0,b.useEffect)(()=>{if(!At||!$n)return;Xn(At==null?void 0:At.name),he(At==null?void 0:At.analysis),Ka(At==null?void 0:At.choices.map(at=>at.choice_text));const $e=[];At==null||At.choices.map((at,ft)=>{at.is_answer&&$e.push(ft)}),Ba($e)},[At]),(0,b.useImperativeHandle)(ot,()=>({onSave:Ee,Clear:We}));const Ee=()=>{if(!Zn)return Ge.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const $e=ua.findIndex(ft=>!ft);if($e>-1)return Ge.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${sn[$e]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!ya.length)return Ge.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(ya.length<2)return Ge.ZP.info("\u591A\u9009\u9898\u6700\u5C0F\u6B63\u786E\u9009\u9879\u4E3A2\u4E2A"),!1;const at=ua.map((ft,Ht)=>({choice_text:ft,is_answer:ya.includes(Ht)?1:0}));return{name:Zn,choices:at,analysis:dr}},We=()=>{Ka(["","","",""]),Xn(""),he(""),Ba("")};return b.createElement("section",{className:Re.wrap},b.createElement("p",{className:Re.titleWrap},b.createElement("span",{className:Re.required},"*"),b.createElement("span",{className:Re.title},"\u9898\u5E72\uFF1A")),b.createElement(hn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Zn,onChange:$e=>Xn($e)}),b.createElement("p",{className:Re.titleWrap},b.createElement("span",{className:Re.required},"*"),b.createElement("span",{className:Re.title},"\u7B54\u6848\u9009\u9879\uFF1A",b.createElement("span",{className:Re.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),ua.map(($e,at)=>b.createElement("div",{className:Re.choiceWrap,key:at},b.createElement(Fe.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},b.createElement("div",{className:`${Re.answer} ${ya.includes(at)?Re.activeAnswer:""}`,onClick:()=>{ya.includes(at)?Ba(ya.filter(ft=>ft!==at)):Ba([...ya,at])}},sn[at])),b.createElement("div",{className:Re.editorWrap},qr===at?b.createElement(hn.Z,{id:`single-question-option-${at}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:$e,onChange:ft=>{ua[at]=ft,Ka(ua)}}):b.createElement("div",{className:Re.htmlWrap,onClick:()=>$r(at)},b.createElement(pe.Z,{value:$e}))),at>1&&b.createElement(Fe.Z,{title:"\u5220\u9664"},b.createElement("i",{className:`${Re.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{Ka(ua.filter((ft,Ht)=>Ht!==at)),ya.includes(at)?Ba(ya.filter(ft=>ft!==at)):Ba([...ya,at])}})),at<7&&at===ua.length-1&&b.createElement(Fe.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},b.createElement("i",{className:`${Re.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>Ka([...ua,""])})))),b.createElement("p",{className:Re.titleWrap},b.createElement("span",{className:Re.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),b.createElement(hn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:dr,onChange:$e=>he($e)}))};var Ga=(0,ge.connect)(({loading:Je,globalSetting:ot})=>({globalSetting:ot,loading:Je.effects}),null,null,{forwardRef:!0})((0,b.forwardRef)(na)),Fr=Object.getOwnPropertySymbols,_r=Object.prototype.hasOwnProperty,or=Object.prototype.propertyIsEnumerable,Rn=(Je,ot)=>{var mt={};for(var At in Je)_r.call(Je,At)&&ot.indexOf(At)<0&&(mt[At]=Je[At]);if(Je!=null&&Fr)for(var At of Fr(Je))ot.indexOf(At)<0&&or.call(Je,At)&&(mt[At]=Je[At]);return mt};const Ra=["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"],En=(Je,ot)=>{var mt=Je,{editData:At,globalSetting:gn,loading:Gn,dispatch:Fa,onRef:ca=()=>{},isEdit:$n}=mt,cn=Rn(mt,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[ua,Ka]=(0,b.useState)([]),[qr,$r]=(0,b.useState)(),[ya,Ba]=(0,b.useState)(),[Zn,Xn]=(0,b.useState)(""),[dr,he]=(0,b.useState)("");(0,b.useEffect)(()=>{Ka(["","","",""])},[]),(0,b.useEffect)(()=>{if(!At||!$n)return;const $e=[],at=[];At==null||At.choices.forEach((ft,Ht)=>{$e.push(ft.choice_text),ft.is_answer&&at.push(Ht)}),Xn(At==null?void 0:At.name),he(At==null?void 0:At.analysis),Ka($e),Ba(at)},[At]),(0,b.useImperativeHandle)(ot,()=>({onSave:Ee,Clear:We}));const Ee=()=>{if(!Zn)return Ge.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const $e=ua.findIndex(ft=>!ft);if($e>-1)return Ge.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Ra[$e]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!Array.isArray(ya))return Ge.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 at=ua.map((ft,Ht)=>({choice_text:ft,is_answer:ya.includes(Ht)?1:0}));return{name:Zn,choices:at,analysis:dr}},We=()=>{Ka(["","","",""]),Xn(""),he(""),Ba("")};return b.createElement("section",{className:Re.wrap},b.createElement("p",{className:Re.titleWrap},b.createElement("span",{className:Re.required},"*"),b.createElement("span",{className:Re.title},"\u9898\u5E72\uFF1A")),b.createElement(hn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Zn,onChange:$e=>Xn($e)}),b.createElement("p",{className:Re.titleWrap},b.createElement("span",{className:Re.required},"*"),b.createElement("span",{className:Re.title},"\u7B54\u6848\u9009\u9879\uFF1A",b.createElement("span",{className:Re.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),ua.map(($e,at)=>b.createElement("div",{className:Re.choiceWrap,key:at},b.createElement(Fe.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},b.createElement("div",{className:`${Re.answer} ${ya!=null&&ya.includes(at)?Re.activeAnswer:""}`,onClick:()=>Ba([at])},Ra[at])),b.createElement("div",{className:Re.editorWrap},qr===at?b.createElement(hn.Z,{id:`single-question-option-${at}`,watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:$e,onChange:ft=>{ua[at]=ft,Ka(ua)}}):b.createElement("div",{className:Re.htmlWrap,onClick:()=>$r(at)},b.createElement(pe.Z,{value:$e}))),at>1&&b.createElement(Fe.Z,{title:"\u5220\u9664"},b.createElement("i",{className:`${Re.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{Ka(ua.filter((ft,Ht)=>Ht!==at)),at===ya&&Ba(null)}})),at<7&&at===ua.length-1&&b.createElement(Fe.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},b.createElement("i",{className:`${Re.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>Ka([...ua,""])})))),b.createElement("p",{className:Re.titleWrap},b.createElement("span",{className:Re.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),b.createElement(hn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:dr,onChange:$e=>he($e)}))};var Mn=(0,ge.connect)(({loading:Je,globalSetting:ot})=>({globalSetting:ot,loading:Je.effects}),null,null,{forwardRef:!0})((0,b.forwardRef)(En)),Vn=ee(66309),Yn=ee(47897),Aa=ee(17663),Qa=ee(67294),Kn=Object.defineProperty,ht=Object.defineProperties,Rt=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertySymbols,Kt=Object.prototype.hasOwnProperty,xn=Object.prototype.propertyIsEnumerable,qn=(Je,ot,mt)=>ot in Je?Kn(Je,ot,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Je[ot]=mt,Ma=(Je,ot)=>{for(var mt in ot||(ot={}))Kt.call(ot,mt)&&qn(Je,mt,ot[mt]);if(Nt)for(var mt of Nt(ot))xn.call(ot,mt)&&qn(Je,mt,ot[mt]);return Je},ga=(Je,ot)=>ht(Je,Rt(ot)),er=(Je,ot)=>{var mt={};for(var At in Je)Kt.call(Je,At)&&ot.indexOf(At)<0&&(mt[At]=Je[At]);if(Je!=null&&Nt)for(var At of Nt(Je))ot.indexOf(At)<0&&xn.call(Je,At)&&(mt[At]=Je[At]);return mt},ur=(Je,ot,mt)=>new Promise((At,gn)=>{var Gn=$n=>{try{ca(mt.next($n))}catch(cn){gn(cn)}},Fa=$n=>{try{ca(mt.throw($n))}catch(cn){gn(cn)}},ca=$n=>$n.done?At($n.value):Promise.resolve($n.value).then(Gn,Fa);ca((mt=mt.apply(Je,ot)).next())});const lo=Je=>{if(!Je)return!1;if(/^s*$/.test(Je)||Je.trim()===""){Ge.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let ot=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 Je==="|"?(Ge.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},ea=({value:Je=[],onClose:ot})=>Qa.createElement(Vn.default,{closable:!0,onClose:ot,className:Re.keywordTag},Qa.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Je.join(" \u6216 "))),Dr=(Je,ot)=>{var mt=Je,{editData:At,globalSetting:gn,loading:Gn,dispatch:Fa,onRef:ca=()=>{},isEdit:$n}=mt,cn=er(mt,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[ua,Ka]=(0,b.useState)(""),[qr,$r]=(0,b.useState)(""),[ya,Ba]=(0,b.useState)(""),[Zn,Xn]=(0,b.useState)(""),[dr]=Be.default.useForm(),he=Be.default.useWatch("use_keywords",dr);(0,b.useEffect)(()=>{var at;!At||!$n||(Ka(At==null?void 0:At.name),$r(At==null?void 0:At.analysis),Ba((at=At==null?void 0:At.answer_texts)==null?void 0:at[0]),dr.setFieldsValue(Ma({},At)))},[At]),(0,b.useImperativeHandle)(ot,()=>({onSave:Ee,Clear:We}));const Ee=()=>ur(void 0,null,function*(){if(!ua)return Ge.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield dr.validateFields()}catch(ft){Ge.ZP.error(ft.errorFields[0].errors[0]);return}const at=dr.getFieldsValue();return console.log(at,"values"),Ma({name:ua,answer_texts:[ya],analysis:qr},at)}),We=()=>{Ka(""),$r(""),Ba(""),dr.resetFields()},$e=At==null?void 0:At.score;return Qa.createElement("section",{className:Re.wrap},Qa.createElement("p",{className:Re.titleWrap},Qa.createElement("span",{className:Re.required},"*"),Qa.createElement("span",{className:Re.title},"\u9898\u5E72\uFF1A")),Qa.createElement(hn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ua,onChange:at=>Ka(at)}),Qa.createElement("p",{className:Re.titleWrap},Qa.createElement("span",{className:Re.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),Qa.createElement(hn.Z,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:ya,onChange:at=>Ba(at)}),Qa.createElement("p",{className:Re.titleWrap},Qa.createElement("span",{className:Re.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),Qa.createElement(hn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:qr,onChange:at=>$r(at)}),Qa.createElement(Be.default,{form:dr,size:"large",onFinishFailed:at=>ur(void 0,null,function*(){var ft,Ht;Ge.ZP.error(at.errorFields[0].errors[0]),dr.scrollToField((Ht=(ft=at==null?void 0:at.errorFields)==null?void 0:ft[0])==null?void 0:Ht.name,{behavior:"smooth",block:"center"})})},Qa.createElement(Oe.Z,{align:"middle",className:"mb30 mt20"},Qa.createElement(Be.default.Item,{noStyle:!0,name:"use_keywords",valuePropName:"checked"},Qa.createElement(Yn.Z,null)),Qa.createElement(ye.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),Qa.createElement(ye.Z,null,Qa.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"},Qa.createElement(Aa.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),he&&Qa.createElement(Be.default.List,{name:"keywords",rules:[{validator(at,ft){return ft!=null&&ft.length?(ft==null?void 0:ft.reduce((yn,An)=>yn+An.score,0))>parseFloat($e)?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"))}}]},(at,{add:ft,remove:Ht})=>Qa.createElement(Qa.Fragment,null,Qa.createElement("div",{className:"mb10"},"\u5173\u952E\u8BCD"),Qa.createElement(Oe.Z,{align:"middle",className:"font14 mb30"},Qa.createElement(ye.Z,{flex:1},Qa.createElement(Ae.default,{value:Zn,onChange:yn=>{Xn(yn.target.value)},maxLength:50,allowClear:!0,onPressEnter:yn=>{var An,Jn,On,pa;const Ua=`${(An=yn.target)==null?void 0:An.value}`,Ln=(On=(Jn=Ua==null?void 0:Ua.split("|"))==null?void 0:Jn.filter(Oa=>!!Oa))==null?void 0:On.map(Oa=>Oa==null?void 0:Oa.trim()),ia=dr.getFieldValue("keywords"),Ia=((pa=ia==null?void 0:ia.map(Oa=>Oa==null?void 0:Oa.keyword))==null?void 0:pa.flat())||[];for(const Oa of Ln)if(Ia.includes(Oa)){Ge.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}lo(Ua)&&(ft({keyword:Ln,score:1}),Xn(""))},className:Re.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"})),Qa.createElement(ye.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),at.map(yn=>{var An=yn,{key:Jn,name:On}=An,pa=er(An,["key","name"]);return Qa.createElement(Oe.Z,{key:Jn,style:{marginRight:148}},Qa.createElement(ye.Z,{flex:1},Qa.createElement(Oe.Z,{align:"middle",justify:"space-between"},Qa.createElement(Be.default.Item,ga(Ma({},pa),{name:[On,"keyword"]}),Qa.createElement(ea,{onClose:()=>Ht(On)})),Qa.createElement(Be.default.Item,ga(Ma({},pa),{name:[On,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),Qa.createElement(ue.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))})))))};var Di=(0,ge.connect)(({loading:Je,globalSetting:ot})=>({globalSetting:ot,loading:Je.effects}),null,null,{forwardRef:!0})((0,b.forwardRef)(Dr)),Ii=ee(47221),mr={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"},jn=ee(40043),vl=ee(24018),Ho=Object.defineProperty,dl=Object.defineProperties,tl=Object.getOwnPropertyDescriptors,nl=Object.getOwnPropertySymbols,Oi=Object.prototype.hasOwnProperty,yl=Object.prototype.propertyIsEnumerable,il=(Je,ot,mt)=>ot in Je?Ho(Je,ot,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Je[ot]=mt,pu=(Je,ot)=>{for(var mt in ot||(ot={}))Oi.call(ot,mt)&&il(Je,mt,ot[mt]);if(nl)for(var mt of nl(ot))yl.call(ot,mt)&&il(Je,mt,ot[mt]);return Je},da=(Je,ot)=>dl(Je,tl(ot)),_i=(Je,ot)=>{var mt={};for(var At in Je)Oi.call(Je,At)&&ot.indexOf(At)<0&&(mt[At]=Je[At]);if(Je!=null&&nl)for(var At of nl(Je))ot.indexOf(At)<0&&yl.call(Je,At)&&(mt[At]=Je[At]);return mt};const Ei=Je=>{var ot=Je,{value:mt,onChange:At,scrollId:gn}=ot,Gn=_i(ot,["value","onChange","scrollId"]);return b.createElement("div",{id:gn||""},b.createElement(hn.Z,da(pu({},Gn),{defaultValue:mt,onChange:(Fa,ca)=>{ca!=null&&ca.length?At(Fa,ca):At(Fa)}})))},Ao=({value:Je,onChange:ot,placeholder:mt,height:At=140,isEdit:gn})=>gn?b.createElement(hn.Z,{watch:!0,isFocus:!0,height:At,placeholder:mt,defaultValue:Je,onChange:ot}):b.createElement("div",{style:{cursor:"pointer"}},Je?b.createElement(pe.Z,{className:mr.inputBorder,value:Je}):b.createElement("div",{className:`${mr.inputBorder} ${mr.placeholder}`},mt));var Zo=ee(67294),ka=Object.defineProperty,pr=Object.defineProperties,Fo=Object.getOwnPropertyDescriptors,yr=Object.getOwnPropertySymbols,gi=Object.prototype.hasOwnProperty,Pi=Object.prototype.propertyIsEnumerable,wi=(Je,ot,mt)=>ot in Je?ka(Je,ot,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Je[ot]=mt,Ni=(Je,ot)=>{for(var mt in ot||(ot={}))gi.call(ot,mt)&&wi(Je,mt,ot[mt]);if(yr)for(var mt of yr(ot))Pi.call(ot,mt)&&wi(Je,mt,ot[mt]);return Je},Ji=(Je,ot)=>pr(Je,Fo(ot)),Jl=(Je,ot)=>{var mt={};for(var At in Je)gi.call(Je,At)&&ot.indexOf(At)<0&&(mt[At]=Je[At]);if(Je!=null&&yr)for(var At of yr(Je))ot.indexOf(At)<0&&Pi.call(Je,At)&&(mt[At]=Je[At]);return mt};const ll=["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"],vu=({value:Je,onChange:ot,choiceTextKey:mt,answerKey:At,index:gn,isEdit:Gn,setInputActive:Fa,form:ca,choiceOptionsPath:$n,allowChangeMode:cn,showAddIcon:ua,addItem:Ka,deleteItem:qr})=>{const $r=(Je==null?void 0:Je[At])===!0,ya=()=>{const Zn=ca.getFieldValue($n);ca.setFieldValue($n,Zn.map(Xn=>Ji(Ni({},Xn),{[At]:!1})))},Ba=()=>{$r?ot(Ji(Ni({},Je),{[At]:!1})):(cn||ya(),ot(Ji(Ni({},Je),{[At]:!0})))};return Zo.createElement(Oe.Z,{className:mr.choiceWrap,align:"middle",wrap:!1},Zo.createElement(ye.Z,{onClick:Ba,className:`${mr.choiceIndex} ${$r?mr.activeAnswer:""}`},ll[gn]),Zo.createElement(ye.Z,{flex:1,className:`${mr.editorWrap} ml15`,onClick:Fa},Zo.createElement(Ao,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Gn,value:Je==null?void 0:Je[mt],onChange:Zn=>{ot(Ji(Ni({},Je),{[mt]:Zn}))}})),Zo.createElement(ye.Z,{flex:"0 0 auto",className:"ml15"},Zo.createElement("div",{onClick:Ba,className:`${mr.setAnswerBtn} ${$r?mr.activeAnswer:""}`},$r?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),Zo.createElement(ye.Z,{className:mr.actionWrapper},Zo.createElement(Fe.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},Zo.createElement(jn.Z,{className:mr.addIcon,onClick:Ka,style:{visibility:ua?"visible":"hidden"}})),Zo.createElement(Fe.Z,{title:"\u5220\u9664"},Zo.createElement(vl.Z,{className:mr.deleteIcon,onClick:qr,style:{visibility:gn>1?"visible":"hidden"}}))))},ou=({questionTitlePlaceholder:Je,titleKey:ot,choiceKey:mt,analysisKey:At,choiceTextKey:gn,answerKey:Gn,choiceOptionsPath:Fa,allowChangeMode:ca=!0,form:$n,showAnalysis:cn=!0})=>{const[ua,Ka]=(0,b.useState)(),[qr,$r]=(0,b.useState)(!1);return Zo.createElement("div",{className:mr.wrap},Zo.createElement("div",{className:mr.questionTitleEditorWrap},Zo.createElement(Be.default.Item,{label:"\u9898\u5E72",name:ot,labelCol:{span:24},rules:[{required:!0}]},Zo.createElement(Ei,{scrollId:Array.isArray(ot)?ot.join("_"):`${ot}`,watch:!0,height:140,placeholder:Je}))),Zo.createElement(Be.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),Zo.createElement(Be.default.List,{name:mt,rules:[{validator(ya,Ba){const Zn=Ba.some(dr=>dr[Gn]),Xn=Ba.findIndex(dr=>{var he;return((he=dr[gn])==null?void 0:he.length)<=0});return Xn!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${ll[Xn]}\u9009\u9879\u7684\u5185\u5BB9`)):Zn?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(ya,{add:Ba,remove:Zn})=>Zo.createElement("div",{id:Array.isArray(Fa)?Fa.join("_"):`${Fa}`},ya.map((Xn,dr)=>{var he=Xn,{key:Ee,name:We}=he,$e=Jl(he,["key","name"]);const at=ua===Ee,ft=()=>{Ka(Ee)},Ht=dr<7&&dr===ya.length-1,yn=()=>Ba({[gn]:"",[Gn]:0}),An=()=>Zn(We);return Zo.createElement(Be.default.Item,Ji(Ni({},$e),{key:Ee,name:We,noStyle:!0}),Zo.createElement(vu,{choiceTextKey:gn,answerKey:Gn,index:dr,isEdit:at,setInputActive:ft,form:$n,choiceOptionsPath:Fa,allowChangeMode:ca,showAddIcon:Ht,addItem:yn,deleteItem:An}))}),ya.length<8&&Zo.createElement("div",{className:`${mr.addBtn} mb30`,onClick:()=>Ba({[gn]:"",[Gn]:0})},"\u6DFB\u52A0\u9009\u9879"))),cn&&Zo.createElement("div",{onClick:()=>$r(!0)},Zo.createElement(Be.default.Item,{name:At,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Zo.createElement(Ao,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:qr}))))};var vo=ee(67294),hl=Object.defineProperty,Yl=Object.defineProperties,Xl=Object.getOwnPropertyDescriptors,al=Object.getOwnPropertySymbols,Gi=Object.prototype.hasOwnProperty,ql=Object.prototype.propertyIsEnumerable,Ll=(Je,ot,mt)=>ot in Je?hl(Je,ot,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Je[ot]=mt,Rl=(Je,ot)=>{for(var mt in ot||(ot={}))Gi.call(ot,mt)&&Ll(Je,mt,ot[mt]);if(al)for(var mt of al(ot))ql.call(ot,mt)&&Ll(Je,mt,ot[mt]);return Je},Vt=(Je,ot)=>Yl(Je,Xl(ot)),qt=(Je,ot)=>{var mt={};for(var At in Je)Gi.call(Je,At)&&ot.indexOf(At)<0&&(mt[At]=Je[At]);if(Je!=null&&al)for(var At of al(Je))ot.indexOf(At)<0&&ql.call(Je,At)&&(mt[At]=Je[At]);return mt};const bn=({value:Je,onChange:ot})=>{const mt=gn=>{je.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:mr.modal,onOk:()=>{const Gn=[...Je];Gn.splice(gn,1),ot(Gn)}})},At=()=>{const gn=[...Je];gn.push(""),ot(gn)};return vo.createElement(Oe.Z,{align:"middle",className:"ml20",gutter:[40,20]},Je==null?void 0:Je.map((gn,Gn)=>vo.createElement(ye.Z,{key:`${gn}_${Gn}`,className:mr.blankWrapper},vo.createElement(Ae.default,{className:mr.blankInput,defaultValue:gn,maxLength:1e3,onBlur:Fa=>{const ca=[...Je],$n=Fa.target.value.trim();ca[Gn]=$n,ot(ca)}}),vo.createElement(Fe.Z,{title:"\u5220\u9664"},vo.createElement(vl.Z,{className:mr.deleteIcon,style:{marginLeft:15,visibility:Gn>0?"visible":"hidden"},onClick:()=>mt(Gn)})))),vo.createElement(ye.Z,null,vo.createElement("div",{className:`${mr.addBtn}`,onClick:()=>{At()}},"\u65B0\u589E\u7B54\u6848")))},et=({value:Je=!0,onChange:ot})=>vo.createElement(Yn.Z,{checked:!Je,onChange:mt=>{ot(!mt)}}),Pn="\u2581",ha=({questionTitlePlaceholder:Je,form:ot,name:mt,scoreByBlank:At="use_blank_score",answerKey:gn,titleKey:Gn="name",analysisKey:Fa="analysis",isOrdered:ca="is_ordered"})=>{var $n,cn;const[ua,Ka]=(0,b.useState)(!1),qr=(Ee,We)=>{const $e=We.line;let at=0;for(let Ht=0;Ht<$e;Ht++)at+=Ee.getLine(Ht).split(Pn).length-1;const ft=Ee.getLine($e).substring(0,We.ch);return at+=ft.split(Pn).length-1,at},$r=(Ee,We,$e,at)=>{const ft=Ee.getRange(We.from,We.to);let Ht=0;if(We.text.forEach(yn=>{Ht+=yn.split(Pn).length-1}),We.origin!=="setValue"){if(ft&&ft.indexOf(Pn)!==-1){const yn=ft.split(Pn).length-1,An=qr(Ee,We.from);if(console.log(`\u5220\u9664${yn}\u4E2A\uFF0C \u524D\u9762\u6709${An}\u4E2A\uFF0C\u65B0\u589E${Ht}\u4E2A`),yn>1){const Jn=Array.from({length:yn},(On,pa)=>An+pa);at(Jn)}else at(An)}else if(Ht>0){const yn=qr(Ee,We.from);console.log(`\u65B0\u589E${Ht}\u4E2A\uFF0C\u4E4B\u524D\u6709${yn}\u4E2A`),$e(Ht,yn)}}},ya=()=>{const Ee=ot.getFieldValue(["sub_item_banks",...gn]);ot.setFieldValue(["sub_item_banks",...gn],Ee==null?void 0:Ee.map((We,$e)=>Vt(Rl({},We),{position:$e+1})))},Ba=(0,b.useRef)(),Zn=(Ee,We)=>{for(let $e=0;$e<Ee;$e++)Ba.current({position:null,answer_text:[""]},We+$e);ya()},Xn=(0,b.useRef)(),dr=Ee=>{Xn.current(Ee),ya()},he=(cn=($n=ot.getFieldValue("sub_item_banks"))==null?void 0:$n[gn==null?void 0:gn[0]])==null?void 0:cn[gn==null?void 0:gn[1]];return vo.createElement("div",{className:mr.wrap},vo.createElement("div",{className:mr.questionTitleEditorWrap},vo.createElement(Be.default.Item,{label:"\u9898\u5E72",name:Gn,labelCol:{span:24},rules:[{required:!0}]},vo.createElement(Ei,{scrollId:"name",watch:!0,height:140,placeholder:Je,showNullButton:!0,onCMBeforeChange:(Ee,We)=>{$r(Ee,We,Zn,dr)}}))),vo.createElement(Be.default.List,{name:gn,rules:[{validator(Ee,We){if((We==null?void 0:We.length)===0)return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const $e of We){const{answer_text:at}=$e||{};if(at!=null&&at.some(ft=>(ft==null?void 0:ft.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Ee,{add:We,remove:$e},{errors:at})=>(Ba.current=We,Xn.current=$e,vo.createElement(vo.Fragment,null,vo.createElement(Be.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),Ee.map((ft,Ht)=>{var yn=ft,{key:An,name:Jn}=yn,On=qt(yn,["key","name"]);return vo.createElement(Oe.Z,{className:"mb20",key:An,align:"middle",wrap:!1},vo.createElement(ye.Z,{flex:"0 0 auto",className:`${mr.blankIndex}`},"\u586B\u7A7A\u9879",Ht+1),vo.createElement(ye.Z,{flex:1},vo.createElement(Oe.Z,{align:"top",justify:"space-between",wrap:!1},vo.createElement(ye.Z,null,vo.createElement(Be.default.Item,Vt(Rl({},On),{name:[Jn,"answer_text"],noStyle:!0}),vo.createElement(bn,null))),(ot==null?void 0:ot.getFieldValue(["sub_item_banks",...At]))&&vo.createElement(ye.Z,{flex:"224px"},vo.createElement(Be.default.Item,Vt(Rl({},On),{name:[Jn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:mr.blankInputNumberWrapper}),vo.createElement(ue.Z,{className:mr.blankInput,min:.1,max:100,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),vo.createElement(Be.default.Item,Vt(Rl({},On),{name:[Jn,"position"],noStyle:!0}),vo.createElement(Ae.default,{type:"hidden"}))))})))),vo.createElement(Oe.Z,{align:"middle"},vo.createElement(Be.default.Item,{name:[mt,"downcase"],valuePropName:"checked"},vo.createElement(Yn.Z,null)),vo.createElement(ye.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),vo.createElement(Oe.Z,{align:"middle"},vo.createElement(Be.default.Item,{name:[mt,"no_space"],valuePropName:"checked"},vo.createElement(Yn.Z,null)),vo.createElement(ye.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(he==null?void 0:he.length)>1&&vo.createElement(Oe.Z,{align:"middle",className:(he==null?void 0:he.length)>1?"mb30":`${mr.hide}`},vo.createElement(Be.default.Item,{name:ca},vo.createElement(et,null)),vo.createElement(ye.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")),vo.createElement("div",{onClick:()=>Ka(!0)},vo.createElement(Be.default.Item,{name:Fa,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},vo.createElement(Ao,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ua}))))};var Sa=Object.defineProperty,on=Object.defineProperties,Dn=Object.getOwnPropertyDescriptors,un=Object.getOwnPropertySymbols,oa=Object.prototype.hasOwnProperty,Ha=Object.prototype.propertyIsEnumerable,gr=(Je,ot,mt)=>ot in Je?Sa(Je,ot,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Je[ot]=mt,ar=(Je,ot)=>{for(var mt in ot||(ot={}))oa.call(ot,mt)&&gr(Je,mt,ot[mt]);if(un)for(var mt of un(ot))Ha.call(ot,mt)&&gr(Je,mt,ot[mt]);return Je},br=(Je,ot)=>on(Je,Dn(ot)),_a=(Je,ot)=>{var mt={};for(var At in Je)oa.call(Je,At)&&ot.indexOf(At)<0&&(mt[At]=Je[At]);if(Je!=null&&un)for(var At of un(Je))ot.indexOf(At)<0&&Ha.call(Je,At)&&(mt[At]=Je[At]);return mt};const aa={\u6B63\u786E:"T",\u9519\u8BEF:"F"},Xt=({value:Je,onChange:ot,form:mt,choiceKey:At})=>{const gn=(Je==null?void 0:Je.is_answer)===!0,Gn=Je==null?void 0:Je.choice_text,Fa=()=>{var ca;const $n=(ca=mt==null?void 0:mt.getFieldValue(["sub_item_banks",...At]))==null?void 0:ca.map(cn=>({choice_text:cn==null?void 0:cn.choice_text,is_answer:!1}));mt==null||mt.setFieldValue(["sub_item_banks",...At],$n),ot(br(ar({},Je),{is_answer:!0}))};return b.createElement(Oe.Z,{className:mr.choiceWrap,align:"middle",wrap:!1},b.createElement(ye.Z,{onClick:Fa,className:`${mr.choiceIndex} ${mr.judgementIndex} ${gn?mr.activeAnswer:""}`},aa[Gn]),b.createElement(ye.Z,{flex:1,className:`${mr.editorWrap} ml15`},b.createElement("div",{className:`${mr.inputBorder} ${mr.placeholder} ${gn?mr.activeJudgementAnswer:""}`},Gn)),b.createElement(ye.Z,{flex:"0 0 auto",className:"ml15"},b.createElement("div",{onClick:Fa,className:`${mr.setAnswerBtn} ${gn?mr.activeAnswer:""}`},gn?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},Wn=({questionTitlePlaceholder:Je,choiceKey:ot="choices",form:mt,titleKey:At="name",analysisKey:gn="analysis"})=>{const[Gn,Fa]=(0,b.useState)(!1);return b.createElement("div",{className:mr.wrap},b.createElement("div",{className:mr.questionTitleEditorWrap},b.createElement(Be.default.Item,{label:"\u9898\u5E72",name:At,labelCol:{span:24},rules:[{required:!0}]},b.createElement(Ei,{scrollId:"name",watch:!0,height:140,placeholder:Je}))),b.createElement(Be.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},b.createElement(Be.default.List,{name:ot,rules:[{validator(ca,$n){return $n.some(ua=>(ua==null?void 0:ua.is_answer)===!0)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},ca=>b.createElement("div",{id:"choices"},ca.map($n=>{var cn=$n,{key:ua,name:Ka}=cn,qr=_a(cn,["key","name"]);return b.createElement(Be.default.Item,br(ar({},qr),{key:ua,name:Ka,noStyle:!0}),b.createElement(Xt,{form:mt,choiceKey:ot}))})))),b.createElement("div",{onClick:()=>Fa(!0)},b.createElement(Be.default.Item,{name:gn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(Ao,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Gn}))))};var ta=Object.defineProperty,$a=Object.defineProperties,Er=Object.getOwnPropertyDescriptors,Cr=Object.getOwnPropertySymbols,Qr=Object.prototype.hasOwnProperty,Br=Object.prototype.propertyIsEnumerable,Kr=(Je,ot,mt)=>ot in Je?ta(Je,ot,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Je[ot]=mt,Ca=(Je,ot)=>{for(var mt in ot||(ot={}))Qr.call(ot,mt)&&Kr(Je,mt,ot[mt]);if(Cr)for(var mt of Cr(ot))Br.call(ot,mt)&&Kr(Je,mt,ot[mt]);return Je},Wr=(Je,ot)=>$a(Je,Er(ot)),Ko=(Je,ot)=>{var mt={};for(var At in Je)Qr.call(Je,At)&&ot.indexOf(At)<0&&(mt[At]=Je[At]);if(Je!=null&&Cr)for(var At of Cr(Je))ot.indexOf(At)<0&&Br.call(Je,At)&&(mt[At]=Je[At]);return mt};const To=Je=>{var ot=Je,{value:mt,onChange:At}=ot,gn=Ko(ot,["value","onChange"]);const Gn=Fa=>{At([Fa])};return b.createElement(hn.Z,Wr(Ca({},gn),{defaultValue:mt==null?void 0:mt[0],onChange:Gn}))},si=Je=>{if(!Je)return!1;let ot=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 Je==="|"?(Ge.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Wo=({value:Je=[],onClose:ot})=>b.createElement(Vn.default,{closable:!0,onClose:ot,className:mr.keywordTag},Je==null?void 0:Je.join(" \u6216 ")),di=({questionTitlePlaceholder:Je,form:ot,showKeywords:mt,isMustKeyWords:At=mt,titleKey:gn="name",analysisKey:Gn="analysis",answerTexts:Fa="answer_texts",keywords:ca="keywords",useKeywords:$n="use_keywords",indexs:cn})=>{const[ua,Ka]=(0,b.useState)(!1),[qr,$r]=(0,b.useState)(""),ya=Be.default.useWatch("sub_item_banks",ot),{use_keywords:Ba,score:Zn}=(ya==null?void 0:ya[cn])||{};return console.log(Ba,Zn,"itemValues"),b.createElement("div",{className:mr.wrap},b.createElement("div",{className:mr.questionTitleEditorWrap},b.createElement(Be.default.Item,{label:"\u9898\u5E72",name:gn,labelCol:{span:24},rules:[{required:!0}]},b.createElement(Ei,{scrollId:"name",watch:!0,height:140,placeholder:Je}))),b.createElement(Be.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:Fa,labelCol:{span:24}},b.createElement(To,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),mt&&!At&&b.createElement(Be.default.Item,{hidden:!0,name:$n,valuePropName:"checked"},b.createElement(Yn.Z,{defaultChecked:!0})),mt&&At&&b.createElement(Oe.Z,{align:"middle",className:"mb30"},b.createElement(Be.default.Item,{name:$n,valuePropName:"checked"},b.createElement(Yn.Z,null)),b.createElement(ye.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),b.createElement(ye.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(Aa.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Ba||!At)&&b.createElement(Be.default.List,{name:ca,rules:[{validator(Xn,dr){return At?dr!=null&&dr.length?(dr==null?void 0:dr.reduce((Ee,We)=>Ee+We.score,0))>parseFloat(Zn)?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()}}]},(Xn,{add:dr,remove:he})=>b.createElement(b.Fragment,null,b.createElement("div",{className:`${mr.title} mb10`},At?"\u5173\u952E\u8BCD":b.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),b.createElement(Oe.Z,{align:"middle",className:"font14 mb30"},b.createElement(ye.Z,{flex:1},b.createElement(Ae.default,{value:qr,onChange:Ee=>{$r(Ee.target.value)},maxLength:50,allowClear:!0,onPressEnter:Ee=>{var We,$e,at,ft;const Ht=`${(We=Ee.target)==null?void 0:We.value}`,yn=(at=($e=Ht==null?void 0:Ht.split("|"))==null?void 0:$e.filter(On=>!!On))==null?void 0:at.map(On=>On==null?void 0:On.trim()),An=ot.getFieldValue(["sub_item_banks",...ca]),Jn=((ft=An==null?void 0:An.map(On=>On==null?void 0:On.keyword))==null?void 0:ft.flat())||[];for(const On of yn)if(Jn.includes(On)){Ge.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}si(Ht)&&(dr({keyword:yn,score:1}),$r(""))},className:mr.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(ye.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Xn.map(Ee=>{var We=Ee,{key:$e,name:at}=We,ft=Ko(We,["key","name"]);return b.createElement(Oe.Z,{key:$e,className:"mb20",style:{marginRight:148}},b.createElement(ye.Z,{flex:1},b.createElement(Oe.Z,{align:"middle",justify:"space-between"},b.createElement(Be.default.Item,Wr(Ca({},ft),{name:[at,"keyword"]}),b.createElement(Wo,{onClose:()=>he(at)})),At&&b.createElement(Be.default.Item,Wr(Ca({},ft),{name:[at,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:mr.blankInputNumberWrapper}),b.createElement(ue.Z,{className:mr.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),b.createElement("div",{onClick:()=>Ka(!0)},b.createElement(Be.default.Item,{name:Gn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(Ao,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ua}))))};var uo=ee(67294),ti=Object.defineProperty,Fi=Object.defineProperties,Li=Object.getOwnPropertyDescriptors,cl=Object.getOwnPropertySymbols,Al=Object.prototype.hasOwnProperty,Hi=Object.prototype.propertyIsEnumerable,ai=(Je,ot,mt)=>ot in Je?ti(Je,ot,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Je[ot]=mt,bl=(Je,ot)=>{for(var mt in ot||(ot={}))Al.call(ot,mt)&&ai(Je,mt,ot[mt]);if(cl)for(var mt of cl(ot))Hi.call(ot,mt)&&ai(Je,mt,ot[mt]);return Je},Ml=(Je,ot)=>Fi(Je,Li(ot)),Zl=(Je,ot)=>{var mt={};for(var At in Je)Al.call(Je,At)&&ot.indexOf(At)<0&&(mt[At]=Je[At]);if(Je!=null&&cl)for(var At of cl(Je))ot.indexOf(At)<0&&Hi.call(Je,At)&&(mt[At]=Je[At]);return mt},Tl=(Je,ot,mt)=>new Promise((At,gn)=>{var Gn=$n=>{try{ca(mt.next($n))}catch(cn){gn(cn)}},Fa=$n=>{try{ca(mt.throw($n))}catch(cn){gn(cn)}},ca=$n=>$n.done?At($n.value):Promise.resolve($n.value).then(Gn,Fa);ca((mt=mt.apply(Je,ot)).next())});const{Panel:Cl}=Ii.default,hu=null,Dl=(Je,ot)=>{var mt=Je,{globalSetting:At,loading:gn,dispatch:Gn,editData:Fa,onRef:ca=()=>{},isEdit:$n}=mt,cn=Zl(mt,["globalSetting","loading","dispatch","editData","onRef","isEdit"]);const[ua,Ka]=(0,b.useState)(""),[qr,$r]=(0,b.useState)([]),[ya]=Be.default.useForm();(0,b.useEffect)(()=>{!Fa||!$n||(Ka(Fa==null?void 0:Fa.name),$r(Fa==null?void 0:Fa.sub_item_banks),ya.setFieldsValue(bl({},Fa)))},[Fa]),(0,b.useEffect)(()=>{$r(ya.getFieldValue("sub_item_banks"))},[Be.default.useWatch("sub_item_banks",ya)]),(0,b.useImperativeHandle)(ot,()=>({onSave:Ba,Clear:Zn}));const Ba=()=>Tl(void 0,null,function*(){if(!ua)return Ge.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield ya.validateFields()}catch($e){return console.log($e,"errInfo"),Ge.ZP.error($e.errorFields[0].errors[0]),!1}const We=qr.map($e=>bl({id:$e.id>1?$e.id:null},$e));return{name:ua,sub_item_banks:We}}),Zn=()=>{Ka(""),$r([])},Xn={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"},dr=({value:We})=>uo.createElement("div",{style:{textAlign:"center",color:"#DF3065",margin:"0 5px"}},We),[he,Ee]=(0,b.useState)();return uo.createElement("section",{className:Re.wrap},uo.createElement("p",{className:Re.titleWrap},uo.createElement("span",{className:Re.required},"*"),uo.createElement("span",{className:Re.title},"\u9898\u5E72\uFF1A")),uo.createElement(hn.Z,{id:"combination-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ua,onChange:We=>Ka(We)}),uo.createElement(Be.default,{form:ya,autoComplete:"off"},uo.createElement(Be.default.List,{name:"sub_item_banks",rules:[{validator(We,$e){return $e?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(We,{add:$e,remove:at})=>{const ft=ya.getFieldValue("sub_item_banks");return uo.createElement(uo.Fragment,null,uo.createElement(Ii.default,{className:We.length>0?Re.collapseWrapper:"",bordered:!1,expandIcon:({isActive:Ht})=>uo.createElement("i",{className:`iconfont icon-weizhankai ${Ht?Re.open:Re.close}`,style:{fontSize:14,transition:"all .2s"}})},We.map((Ht,yn)=>{var An=Ht,{key:Jn,name:On}=An,pa=Zl(An,["key","name"]),Ua,Ln,ia,Ia,Oa,sr,wr,zr,Zr,yo,vr,Or;return uo.createElement(Cl,{className:Re.panel,forceRender:!0,header:uo.createElement("div",{className:Re.panelHeader},"\u7B2C",yn+1,"\u5C0F\u9898",uo.createElement("span",null,"\uFF08",Xn[(Ua=ft==null?void 0:ft[On])==null?void 0:Ua.item_type],"\uFF09")),extra:uo.createElement(Oe.Z,{align:"middle",onClick:Gr=>Gr.stopPropagation(),style:{display:"flex",alignItems:"center"}},((Ln=ft==null?void 0:ft[On])==null?void 0:Ln.item_type)=="completion"&&uo.createElement(Be.default.Item,Ml(bl({},pa),{name:[On,"score"],className:Re.blankInputNumberWrapper,style:{marginBottom:0}}),((ia=ft==null?void 0:ft[On])==null?void 0:ia.item_type)=="completion"&&uo.createElement("div",{style:{display:"flex",alignItems:"center",color:"#191919"}},"\u5171",uo.createElement(dr,{value:(Ia=ft==null?void 0:ft[On])==null?void 0:Ia.score}),"\u5206")),((Oa=ft==null?void 0:ft[On])==null?void 0:Oa.item_type)=="completion"&&uo.createElement(uo.Fragment,null,uo.createElement(_n.ZP.Group,{defaultValue:(sr=ft==null?void 0:ft[On])==null?void 0:sr.use_blank_score,className:Re.scoreByBlankRadio,style:{marginRight:10},optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}],onChange:Gr=>{var lr;console.log(ya.getFieldsValue()),ya==null||ya.setFieldValue(["sub_item_banks",On,"use_blank_score"],(lr=Gr==null?void 0:Gr.target)==null?void 0:lr.value),Ee(new Date)}}),uo.createElement(Fe.Z,{overlayInnerStyle:{width:460},title:uo.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",uo.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")},uo.createElement("i",{className:"icon-tishixiaowenhao font18 c-3061d0"})))),key:Jn},uo.createElement(Be.default.Item,Ml(bl({},pa),{name:On}),(((wr=ft==null?void 0:ft[On])==null?void 0:wr.item_type)=="single"||((zr=ft==null?void 0:ft[On])==null?void 0:zr.item_type)=="multiple")&&uo.createElement(ou,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((Zr=ft==null?void 0:ft[On])==null?void 0:Zr.item_type)!="single",form:ya,choiceKey:[On,"choices"],titleKey:[On,"name"],analysisKey:[On,"analysis"],choiceOptionsPath:["sub_item_banks",On,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((yo=ft==null?void 0:ft[On])==null?void 0:yo.item_type)=="completion"&&uo.createElement(ha,{form:ya,name:On,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:[On,"use_blank_score"],titleKey:[On,"name"],analysisKey:[On,"analysis"],isOrdered:[On,"is_ordered"],answerKey:[On,"standard_answer"],key:he}),((vr=ft==null?void 0:ft[On])==null?void 0:vr.item_type)=="judgement"&&uo.createElement(Wn,{form:ya,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[On,"name"],analysisKey:[On,"analysis"],choiceKey:[On,"choices"]}),((Or=ft==null?void 0:ft[On])==null?void 0:Or.item_type)=="subjective"&&uo.createElement(di,{showKeywords:!0,form:ya,titleKey:[On,"name"],analysisKey:[On,"analysis"],answerTexts:[On,"answer_texts"],useKeywords:[On,"use_keywords"],keywords:[On,"keywords"],indexs:On,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})))})))};var iu=(0,ge.connect)(({loading:Je,globalSetting:ot})=>({globalSetting:ot,loading:Je.effects}),null,null,{forwardRef:!0})((0,b.forwardRef)(Dl)),Nl=ee(60580),Kl=ee(85546),Wl=ee(11713),Su=ee(9430),it={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"},ut=ee(30001),kt=ee(99678),Tn=ee(89779),kn=ee(9343),nn=ee(26194),dn=ee(20670),Zt=({open:Je,onCancel:ot,onOk:mt})=>{const At=(0,kt.g)(),[gn,Gn,Fa,ca]=(0,kn.U)(Tn.Gm,{page:1,limit:10,keyword:"",diff:"",shixun_publish_status:"",discipline_id:"",sub_discipline_id:"",type:0,include_shixuns:!0,item_type:"SHIXUN"}),[$n,cn]=(0,b.useState)(!1);(0,b.useEffect)(()=>{Je&&Fa({page:1,limit:10,type:0},!0).then(ya=>{(ya==null?void 0:ya.shixuns_count)===0&&cn(!0)})},[Je]);const[ua,Ka]=(0,b.useState)([]),[qr,$r]=(0,b.useState)([]);return b.createElement(je.default,{title:"\u9009\u62E9\u5B9E\u8BAD\u9898",open:Je,width:948,centered:!0,closable:!0,onCancel:ot,onOk:()=>mt(qr),destroyOnClose:!0},b.createElement(Oe.Z,{justify:"space-between",className:"mb20",style:{maxHeight:650}},b.createElement(ye.Z,null,b.createElement(Kl.Z,{style:{width:160},size:"large",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:At,onChange:ya=>{Fa({page:1,discipline_id:ya==null?void 0:ya[0],sub_discipline_id:ya==null?void 0:ya[1]})}}),b.createElement(Wl.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:ya=>Fa({page:1,diff:ya})}),b.createElement(Wl.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:ya=>Fa({page:1,shixun_publish_status:ya})})),b.createElement(ut.t7,{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",style:{width:290},onChange:ya=>{Fa({keyword:ya,page:1})}})),$n?b.createElement("div",null,b.createElement(nn.Z,{customText:"\u6682\u65E0\u6570\u636E",ButtonText:"\u524D\u5F80\u5B9E\u8DF5\u9879\u76EE\u5E93\uFF0C\u6DFB\u52A0\u66F4\u591A\u8BD5\u9898>",ButtonClick:()=>(0,xe.xg)("/shixuns")})):b.createElement(Su.default,{loading:Gn,rowKey:"id",columns:[{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"30%",ellipsis:{showTitle:!0},render:(ya,Ba)=>b.createElement("div",{style:{display:"flex",alignItems:"center"}},b.createElement("div",{className:Ba!=null&&Ba.high_resources_consume?it.title:"",title:ya||"--"},b.createElement(pe.Z,{key:1,showLines:1,showTextOnly:!0,value:ya||"--"})),(Ba==null?void 0:Ba.high_resources_consume)&&b.createElement(dn.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u96BE\u5EA6",dataIndex:"level"},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",render:(ya,Ba,Zn)=>b.createElement("span",null,ya||"- -")},{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(Aa.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",width:100,render:(ya,Ba,Zn)=>b.createElement("span",null,ya||"- -")},{title:"\u64CD\u4F5C",render(ya,Ba){const{title:Zn,challenge_names:Xn,author_name:dr,identifier:he,author_school_name:Ee,study_count:We}=Ba||{};return b.createElement("div",null,b.createElement("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:()=>{je.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:Zn,style:{marginBottom:18}}),b.createElement("div",{className:it.challengeNameWrapper},Xn.map(($e,at)=>b.createElement("div",{className:it.challengeName,key:at},"\u7B2C",(0,xe.EM)(at+1),"\u9898\xA0",$e))),b.createElement(Oe.Z,{className:it.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},b.createElement(ye.Z,{className:it.shixunInfoWrapper},b.createElement("span",null,"\u521B\u5EFA\u8005"),b.createElement("span",{className:it.shixunInfo},dr.split("\u3001")[0]),b.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),b.createElement("span",{className:it.shixunInfo},Ee),b.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{className:it.shixunInfo},We)),b.createElement(Ne.ZP,{type:"primary",className:it.btnToDetail,onClick:()=>(0,xe.xg)(`/shixuns/${he}/challenges?exercise=true`)},b.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),(Ba==null?void 0:Ba.shixun_tag_num)===1&&b.createElement("a",{target:"_blank",href:`/shixuns/${Ba==null?void 0:Ba.identifier}/challenges`,style:{marginLeft:10}},"\u53BB\u53D1\u5E03"))}}],dataSource:ca==null?void 0:ca.items,rowSelection:{type:"radio",selectedRowKeys:ua,preserveSelectedRowKeys:!0,getCheckboxProps:ya=>({disabled:ya.shixun_tag_num===1}),onChange(ya,Ba){var Zn,Xn,dr;console.log(ya),Ka(ya);const he=[];for(const We of qr)ya.includes(We.id)&&he.push(We);const Ee=he.map(We=>We.id);for(const We of Ba)We&&ya.includes(We.id)&&!Ee.includes(We.id)&&he.push({id:We.id,difficulty:We.level,identifier:We.identifier,name:We.name,real_name:(Zn=We==null?void 0:We.author_name)==null?void 0:Zn.split("\u3001")[0],school_name:We.author_school_name,challenge_names:We.challenge_names,challenges:(Xn=We.challenge_names)==null?void 0:Xn.map(($e,at)=>({subject:$e,id:at,score:5})),score:((dr=We.challenge_names)==null?void 0:dr.length)*5,study_count:We.study_count,challenges_count:We.challenges_count});$r(he)}},pagination:{current:gn.page,pageSize:gn.limit,total:ca==null?void 0:ca.items_count,showTotal:ya=>b.createElement("span",null,"\u5171\xA0",b.createElement("span",{style:{color:"#165DFF"}},ya),"\xA0\u6761\u6570\u636E"),showQuickJumper:!0,onChange(ya,Ba){Fa({page:ya,limit:Ba})},size:"default"},scroll:{y:400}}))},In=ee(96332),xa=ee(93686),Xr=(Je,ot,mt)=>new Promise((At,gn)=>{var Gn=$n=>{try{ca(mt.next($n))}catch(cn){gn(cn)}},Fa=$n=>{try{ca(mt.throw($n))}catch(cn){gn(cn)}},ca=$n=>$n.done?At($n.value):Promise.resolve($n.value).then(Gn,Fa);ca((mt=mt.apply(Je,ot)).next())}),$o=({visible:Je,getdata:ot,onCancel:mt,onRandomExchange:At,selectFromProblemSet:gn,questionParams:Gn})=>{const[Fa,ca]=(0,b.useState)(!1),[$n,cn]=(0,b.useState)(!1),[ua,Ka]=(0,b.useState)({}),qr=(0,ge.useParams)(),[$r,ya]=(0,b.useState)(),Ba=(Zn,Xn)=>Xr(void 0,null,function*(){cn(!0);const dr=yield(0,we.ZP)(`/api/exercises/${qr.categoryId}/toggle_random_question.json`,{method:"post",body:{question_id:Gn.id,item_bank_id:Zn,shixuns_info:[{id:Zn,is_copy:Xn!=1,is_use:Xn!=1}]}});cn(!1),dr!=null&&dr.status||(Ge.ZP.info("\u6362\u9898\u6210\u529F"),mt(),ot())});return b.createElement(je.default,{title:"\u8BF7\u9009\u62E9\u66FF\u6362\u65B9\u5F0F",open:Je,onCancel:mt,centered:!0,maskClosable:!0,footer:null},b.createElement(Oe.Z,{justify:"center",className:"pb20"},b.createElement(Nl.Z,{onClick:At},"\u968F\u673A\u66F4\u6362"),(Gn==null?void 0:Gn.type)!=="PRACTICAL"&&b.createElement(Ne.ZP,{style:{marginLeft:24},onClick:gn},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9"),(Gn==null?void 0:Gn.type)==="PRACTICAL"&&b.createElement(Ne.ZP,{style:{marginLeft:24},onClick:()=>{ca(!0)}},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9")),b.createElement(Zt,{open:Fa,onCancel:()=>ca(!1),onOk:Zn=>Xr(void 0,null,function*(){if(console.log("----selectedRows",Zn,qr),(Zn==null?void 0:Zn.length)<=0){Ge.ZP.info("\u8BF7\u9009\u62E9\u5B9E\u8BAD");return}let Xn=Zn==null?void 0:Zn.map(he=>he==null?void 0:he.id),dr=yield(0,xa.Tr)({id:[...Xn],course_id:qr.coursesId,type:"shixun"});(dr==null?void 0:dr.student_count)===0?Ba(Xn==null?void 0:Xn[0],1):(ya(Xn),Ka(dr)),ca(!1)})}),b.createElement(In.Z,{resdata:ua,type:"shixun",okloading:$n,oktext:(ua==null?void 0:ua.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Zn=>Xr(void 0,null,function*(){Ba($r==null?void 0:$r[0],2)})}))},Uo=ee(30351),fr=ee(19575),Wa=ee(2715),Ea=ee(48994),so=ee(52810),ho=Object.defineProperty,Vo=Object.defineProperties,Jo=Object.getOwnPropertyDescriptors,co=Object.getOwnPropertySymbols,Yo=Object.prototype.hasOwnProperty,Po=Object.prototype.propertyIsEnumerable,ir=(Je,ot,mt)=>ot in Je?ho(Je,ot,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Je[ot]=mt,ko=(Je,ot)=>{for(var mt in ot||(ot={}))Yo.call(ot,mt)&&ir(Je,mt,ot[mt]);if(co)for(var mt of co(ot))Po.call(ot,mt)&&ir(Je,mt,ot[mt]);return Je},Xo=(Je,ot)=>Vo(Je,Jo(ot)),hi=(Je,ot,mt)=>new Promise((At,gn)=>{var Gn=$n=>{try{ca(mt.next($n))}catch(cn){gn(cn)}},Fa=$n=>{try{ca(mt.throw($n))}catch(cn){gn(cn)}},ca=$n=>$n.done?At($n.value):Promise.resolve($n.value).then(Gn,Fa);ca((mt=mt.apply(Je,ot)).next())}),lu=({data:Je,submit:ot,goBack:mt,loading:At,onTypeScore:gn,editPreview:Gn=!1,onSkipExamination:Fa,selectValue:ca,onExchange:$n,getdata:cn,handleMarkWrongQuestion:ua})=>{var Ka,qr,$r,ya,Ba,Zn,Xn,dr,he,Ee,We;const $e=(0,b.useRef)(),[at,ft]=(0,b.useState)(null),[Ht,yn]=(0,b.useState)(!1),[An,Jn]=(0,b.useState)(!1),On=(0,b.useRef)(),[pa]=Be.default.useForm(),Ua=(0,ge.useParams)(),[Ln,ia]=(0,b.useState)(!1);(0,b.useEffect)(()=>{yn(!0)},[]),(0,b.useEffect)(()=>{Gn||(0,xe.Dk)("\u8BD5\u5377\u9884\u89C8")},[Gn]);const Ia=["\u5BB9\u6613","\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],Oa={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"},sr={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"},wr=Ft=>{var Pa;const Ir=[];return b.createElement(b.Fragment,null,b.createElement("aside",{className:ie.single},(Pa=Ft==null?void 0:Ft.choices)==null?void 0:Pa.map((ra,wn)=>(ra.is_answer&&Ir.push(so.k4[wn]),b.createElement("ul",{key:wn},b.createElement("li",null,so.k4[wn],"\u3001"),b.createElement("li",null,b.createElement(pe.Z,{value:ra.choice_text})))))),b.createElement("div",{className:ie.analysis},b.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",Ir.join(""),b.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",Ia[Ft.difficulty])),b.createElement("aside",null,b.createElement("span",{className:ie.text},"\u89E3\u6790:"),b.createElement(pe.Z,{value:Ft.analysis?Ft.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:"),`${(Ft==null?void 0:Ft.discipline_name)||"--"}/${Ft==null?void 0:Ft.sub_discipline_name}`),b.createElement(Fe.Z,{title:Ft==null?void 0:Ft.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:"),Ft==null?void 0:Ft.tag_discipline_name)))))},zr=(Ft,Pa)=>{var Ir;const ra=(Ir=Ft==null?void 0:Ft.standard_answer)==null?void 0:Ir.map((wn,Rr)=>{var Ya;return b.createElement("div",{key:Rr},`\u7B54\u6848\uFF08\u586B\u7A7A${wn==null?void 0:wn.position}\uFF09\uFF1A${(Ya=wn==null?void 0:wn.answer_text)==null?void 0:Ya.join("\u3001")}`)});return b.createElement(b.Fragment,null,b.createElement("div",{className:ie.analysis},b.createElement("div",{style:{display:"flex"}},b.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),b.createElement("div",null,ra)),b.createElement("aside",null,b.createElement("span",{className:ie.text},"\u89E3\u6790:"),b.createElement(pe.Z,{value:Ft.analysis?Ft.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:"),Pa?`${(Pa==null?void 0:Pa.discipline_name)||"--"}/${Pa==null?void 0:Pa.sub_discipline_name}`:`${(Ft==null?void 0:Ft.discipline_name)||"--"}/${Ft==null?void 0:Ft.sub_discipline_name}`),b.createElement(Fe.Z,{title:Pa?Pa==null?void 0:Pa.tag_discipline_name:Ft==null?void 0:Ft.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:"),Pa?Pa==null?void 0:Pa.tag_discipline_name:Ft==null?void 0:Ft.tag_discipline_name)))))},Zr=Ft=>{var Pa;const Ir=(Pa=Ft==null?void 0:Ft.standard_answer)==null?void 0:Pa.map((ra,wn)=>b.createElement("div",{key:wn},`\u7B54\u6848\uFF08\u586B\u7A7A${(ra==null?void 0:ra.position)||(ra==null?void 0:ra.exercise_choice_id)}\uFF09\uFF1A${ra==null?void 0:ra.answer_text}`));return b.createElement(b.Fragment,null,b.createElement("div",{className:ie.analysis},b.createElement("div",{style:{display:"flex"}},b.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),b.createElement("div",null,Ir)),b.createElement("aside",null,b.createElement("span",{className:ie.text},"\u89E3\u6790:"),b.createElement(pe.Z,{value:Ft.analysis?Ft.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:"),`${(Ft==null?void 0:Ft.discipline_name)||"--"}/${Ft==null?void 0:Ft.sub_discipline_name}`),b.createElement(Fe.Z,{title:Ft==null?void 0:Ft.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:"),Ft==null?void 0:Ft.tag_discipline_name)))))},yo=(Ft,Pa)=>{var Ir;return b.createElement("div",{className:ie.analysis},b.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",(Ir=Ft==null?void 0:Ft.answer_texts)==null?void 0:Ir[0]),b.createElement("aside",null,b.createElement("span",{className:ie.text},"\u89E3\u6790:"),b.createElement(pe.Z,{value:Ft.analysis?Ft.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:"),Pa?`${(Pa==null?void 0:Pa.discipline_name)||"--"}/${Pa==null?void 0:Pa.sub_discipline_name}`:`${(Ft==null?void 0:Ft.discipline_name)||"--"}/${Ft==null?void 0:Ft.sub_discipline_name}`),b.createElement(Fe.Z,{title:Pa?Pa==null?void 0:Pa.tag_discipline_name:Ft==null?void 0:Ft.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:"),Pa?Pa==null?void 0:Pa.tag_discipline_name:Ft==null?void 0:Ft.tag_discipline_name))))},vr=Ft=>{var Pa,Ir;return b.createElement("div",{className:ie.analysis},b.createElement("aside",null,b.createElement("span",{className:ie.text},"\u9884\u671F\u8F93\u51FA:"),b.createElement(pe.Z,{value:(Pa=Ft==null?void 0:Ft.program_attr)==null?void 0:Pa.description})),b.createElement("div",{style:{marginTop:20}},"\u6B63\u786E\u7B54\u6848\uFF1A",((Ir=Ft==null?void 0:Ft.program_attr)==null?void 0:Ir.answer_text)||"--"),b.createElement("aside",null,b.createElement("span",{className:ie.text},"\u89E3\u6790:"),b.createElement(pe.Z,{value:Ft.analysis?Ft.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:"),`${(Ft==null?void 0:Ft.discipline_name)||"--"}/${Ft==null?void 0:Ft.sub_discipline_name}`),b.createElement(Fe.Z,{title:Ft==null?void 0:Ft.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:"),Ft==null?void 0:Ft.tag_discipline_name))))},Or=(Ft,Pa)=>{var Ir;return b.createElement("div",null,(Ir=Ft==null?void 0:Ft.sub_item_banks)==null?void 0:Ir.map((ra,wn)=>{var Rr,Ya;const Xa=[];return b.createElement(b.Fragment,null,b.createElement("div",{style:{marginLeft:25,fontSize:"16px",color:"#333",paddingTop:"15px"}},Pa+1+"."+(wn+1),"\uFF08",Oa[ra.item_type]||sr[ra.item_type],"\uFF09",ra.name),(ra.item_type=="SINGLE"||ra.item_type=="MULTIPLE"||ra.item_type=="JUDGMENT"||ra.item_type=="single"||ra.item_type=="multiple"||ra.item_type=="judgement")&&b.createElement(b.Fragment,null,b.createElement("aside",{className:ie.single},(Rr=ra==null?void 0:ra.choices)==null?void 0:Rr.map((Ta,oo)=>(Ta.is_answer&&Xa.push(so.k4[oo]),b.createElement("ul",{key:oo},b.createElement("li",null,so.k4[oo],"\u3001"),b.createElement("li",null,b.createElement(pe.Z,{value:Ta.choice_text})))))),b.createElement("div",{className:ie.analysis},b.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",Xa.join(""),b.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",Ia[ra.difficulty])),b.createElement("aside",null,b.createElement("span",{className:ie.text},"\u89E3\u6790:"),b.createElement(pe.Z,{value:ra.analysis?ra.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:"),`${(Ft==null?void 0:Ft.discipline_name)||"--"}/${Ft==null?void 0:Ft.sub_discipline_name}`),b.createElement(Fe.Z,{title:Ft==null?void 0:Ft.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:"),Ft==null?void 0:Ft.tag_discipline_name))))),(ra.item_type=="COMPLETION"||ra.item_type=="completion")&&zr(ra,Ft),(ra.item_type=="SUBJECTIVE"||ra.item_type=="subjective")&&yo(ra,Ft),((Ya=Je==null?void 0:Je.exam)==null?void 0:Ya.exercise_status)===3&&b.createElement("div",{className:"flex gap-20px mt20"},b.createElement(Wa.Z,{state:ra==null?void 0:ra.is_wrong,onClick:()=>{ua==null||ua({value:Xo(ko({},ra),{question_id:ra==null?void 0:ra.id,question_score:ra==null?void 0:ra.score})})}}),ra.item_type=="single"&&b.createElement(Ne.ZP,{style:{color:"#3061D0"},onClick:()=>{mo({value:ra})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848")))}))},Gr=Ft=>{var Pa,Ir,ra;return b.createElement("div",{style:{marginTop:"12px"}},(Ir=(Pa=Ft==null?void 0:Ft.shixun)==null?void 0:Pa.challenges)==null?void 0:Ir.map((wn,Rr)=>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",Rr+1,"\u5173"),b.createElement(Fe.Z,{key:Rr,title:wn==null?void 0:wn.challenge_name},b.createElement("span",null,(0,xe.Pq)(wn==null?void 0:wn.challenge_name,44)))),Gn&&b.createElement("div",null,"\u5206\u503C\uFF1A",wn.score,"\u5206"))),b.createElement(ge.Link,{style:{float:"right"},target:"_blank",to:`/shixuns/${(ra=Ft==null?void 0:Ft.shixun)==null?void 0:ra.identifier}/challenges`},"\u5B9E\u8BAD\u8BE6\u60C5"),b.createElement("div",{style:{clear:"both"}}))},lr=Ft=>{let Pa=Ft.questions_score/Ft.questions_count;je.default.confirm({icon:null,centered:!0,title:"\u5206\u6570\u8BBE\u7F6E",content:b.createElement("div",{className:ie.modalColumn},b.createElement("div",{className:ie.modalRow,style:{justifyContent:"flex-start"}},b.createElement("sup",{className:ie.sup},"*"),b.createElement("span",null,Ft==null?void 0:Ft.name,"\uFF1A"),b.createElement(ue.Z,{min:0,precision:1,defaultValue:Pa,onChange:Ir=>{Pa=Ir}}),b.createElement("span",{className:"ml5"},"\u5206/\u9898"))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>hi(void 0,null,function*(){var Ir;if(!Pa)return Ge.ZP.warning("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A\u6216\u4E3A0"),Promise.reject();const ra={type:Ft==null?void 0:Ft.type,score:Pa,scoreTotal:Number((Ir=Pa*Ft.questions_count)==null?void 0:Ir.toFixed(1))};gn(ra)})})},Lr=()=>{let Ft="";je.default.confirm({icon:null,centered:!0,title:"\u4FDD\u5B58\u8BD5\u5377",content:b.createElement("div",{className:ie.modalColumn},b.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20"},b.createElement("img",{style:{marginRight:5},src:It.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:ie.modalRow,style:{marginTop:20}},b.createElement("sup",{className:ie.sup},"*"),b.createElement("span",{style:{flexShrink:0}},"\u8BD5\u5377\u540D\u79F0\uFF1A"),b.createElement(Ae.default,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",min:0,maxLength:60,defaultValue:Ft,onChange:Pa=>{Ft=Pa.target.value}}))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>hi(void 0,null,function*(){var Pa;if(!Ft)return Ge.ZP.warning("\u8BD5\u5377\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Promise.reject();const Ir=[],ra=[],wn=[],Rr=[];(Pa=Je==null?void 0:Je.questionList)==null||Pa.forEach(Xa=>{var Ta;(Ta=Xa.questions)==null||Ta.forEach(oo=>{let xr=Xa.questions_score/Xa.questions_count;xr=xr&&xr.toFixed(1),Xa.type==="COMBINATION"&&wn.push({id:oo.id,sub_item_bank_ids:oo.sub_item_banks.map(zo=>zo.id)}),Xa.type==="PRACTICAL"?Rr.push(oo.id):(Ir.push(oo.id),ra.push(xr))})}),console.log("-----",wn),yield ot({item_bank_ids:Ir,item_bank_scores:ra,name:Ft,combination_item_banks:wn,shixun_ids:Rr})})})},Ur=(Ft,Pa,Ir,ra)=>{var wn;const Rr=`${location.pathname}${location.search}`,Ya=(wn=ra.questions)==null?void 0:wn.map(Xa=>Xa==null?void 0:Xa.id);if(Rr.includes("exercise"))On.current={id:Ft,ids:Ya,type:Pa,index:Ir},Jn(!0);else{let Xa=je.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:()=>hi(void 0,null,function*(){Xa.update({cancelButtonProps:{disabled:!0}}),yield $n({single_question_id:Ft,seleted_item_bank_ids:Ya},{type:Pa,index:Ir}),Xa.update({cancelButtonProps:{disabled:!1}}),Ge.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u8BD5\u9898")})})}},Oo=Ft=>{var Pa;const Ir=(Pa=Ft.questions)==null?void 0:Pa.map(Rr=>Rr==null?void 0:Rr.id),ra=Ft.name;let wn=je.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:`\u786E\u8BA4\u66F4\u6362${ra}\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F`,cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>hi(void 0,null,function*(){wn.update({cancelButtonProps:{disabled:!0}}),yield $n({seleted_item_bank_ids:Ir},{type:Ft.type}),wn.update({cancelButtonProps:{disabled:!1}}),Ge.ZP.success(`\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210${ra}\u8BD5\u9898`)})})},Do=()=>{let Ft=je.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:()=>hi(void 0,null,function*(){Ft.update({cancelButtonProps:{disabled:!0}}),yield $n(),Ft.update({cancelButtonProps:{disabled:!1}}),Ge.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u6574\u5F20\u8BD5\u9898")})})},bo=Ft=>{console.log(Ft,"key"),Fa(Ft-1)},Lo=(Ft,Pa)=>{var Ir,ra;if(Pa==="SINGLE")return b.createElement(b.Fragment,null,b.createElement(Mn,{ref:$e,editData:Ft,isEdit:!0}),b.createElement(Me.Z,null));if(Pa==="MULTIPLE")return b.createElement(b.Fragment,null,b.createElement(Ga,{ref:$e,editData:Ft,isEdit:!0}),b.createElement(Me.Z,null));if(Pa==="JUDGMENT")return b.createElement(b.Fragment,null,b.createElement(Nn,{ref:$e,editData:Ft,isEdit:!0}),b.createElement(Me.Z,null));if(Pa==="COMPLETION")return b.createElement(b.Fragment,null,b.createElement(tn,{ref:$e,editData:Ft,isEdit:!0}),b.createElement(Me.Z,null));if(Pa==="SUBJECTIVE")return b.createElement(b.Fragment,null,b.createElement(Di,{ref:$e,editData:Ft,isEdit:!0}),b.createElement(Me.Z,null));if(Pa==="COMBINATION")return b.createElement(b.Fragment,null,b.createElement(iu,{ref:$e,editData:Ft,isEdit:!0}),b.createElement(Me.Z,null));if(Pa==="BPROGRAM")return b.createElement(b.Fragment,null,b.createElement(Be.default,{form:pa,style:{marginTop:20},onFinishFailed:wn=>{var Rr,Ya;wn.errorFields[0].name.includes("standard_answers")?Ge.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):Ge.ZP.error(wn.errorFields[0].errors[0]),pa.scrollToField((Ya=(Rr=wn==null?void 0:wn.errorFields)==null?void 0:Rr[0])==null?void 0:Ya.name,{behavior:"smooth",block:"center"})},onFinish:wn=>hi(void 0,null,function*(){var Rr;let Ya=Xo(ko({question_score:Ft.score},wn),{question_type:8,hack:Xo(ko({},wn.hack),{difficult:Ft.program_attr.difficult}),hack_codes:Xo(ko({},wn.hack_codes),{code:fr.Base64.encode((Rr=wn.hack_codes)==null?void 0:Rr.code)})});Ln&&(Ya.is_cover=1);const Xa=yield(0,we.ZP)(`/api/exercise_questions/${Ft.id}.json`,{method:"put",body:Ya});(Xa==null?void 0:Xa.status)===0&&(Ge.ZP.success("\u7F16\u8F91\u6210\u529F"),bo(ca+1)),ft(null)})},b.createElement(Uo.tc,{form:pa,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:!1,hackidentifier:(Ir=Ft==null?void 0:Ft.program_attr)==null?void 0:Ir.identifier,answerKey:"standard_answers"}),b.createElement(Me.Z,null)));if(Pa==="PROGRAM"&&ge.history.push(`/problems/${(ra=Ft==null?void 0:Ft.program_attr)==null?void 0:ra.identifier}/edit?type=exercises&express_id=${Ua.categoryId}&question_id=${Ft==null?void 0:Ft.id}&score=${Ft==null?void 0:Ft.score}&callback_url=${location.pathname}&select=${ca}&exercise=true`),Pa==="PRACTICAL")return b.createElement(b.Fragment,null,b.createElement(wa,{ref:$e,editData:Ft,isEdit:!0}),b.createElement(Me.Z,null))},Co=(Ft,Pa)=>hi(void 0,null,function*(){var Ir,ra,wn,Rr,Ya,Xa;const Ta=yield(Ir=$e.current)==null?void 0:Ir.onSave();if(!Ta)return;const oo=va=>{const Mr=va.map(Eo=>Eo.choice_text.trim().replace(/^\s+|\s+$/g,""));return new Set(Mr).size!==Mr.length},xr={question_score:Pa.score,analysis:Ta.analysis};if(Ft==="SINGLE"||Ft==="MULTIPLE"||Ft==="JUDGMENT"){if(Ft!=="JUDGMENT"&&oo(Ta==null?void 0:Ta.choices)){Ge.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}const va=[],Mr=[];xr.question_type=Ft==="JUDGMENT"?2:1,xr.question_title=Ta==null?void 0:Ta.name,(ra=Ta==null?void 0:Ta.choices)==null||ra.forEach((fo,Eo)=>{va.push(fo.choice_text),fo!=null&&fo.is_answer&&Mr.push(Eo+1)}),xr.question_choices=va,xr.standard_answers=Mr}if(Ft==="COMPLETION"){let va=(wn=Ta==null?void 0:Ta.standard_answers)==null?void 0:wn.map((Eo,jo)=>(Eo==null?void 0:Eo.score)<=0?jo+1:null).filter(Eo=>Eo!==null);if((va==null?void 0:va.length)>0)return Ge.ZP.warning(`\u7B2C${va.join("\u3001")}\u9879\u7684\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A`),!1;let Mr=(Rr=Ta==null?void 0:Ta.standard_answers)==null?void 0:Rr.reduce((Eo,jo)=>Eo+(Number(jo==null?void 0:jo.score)||0),0);if(parseFloat(Mr.toFixed(2))!=(xr==null?void 0:xr.question_score))return Ge.ZP.warning("\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BE5\u5C0F\u9898\u5206\u503C\uFF01"),!1;xr.is_ordered=Ta.is_ordered,xr.question_title=Ta==null?void 0:Ta.name,xr.use_blank_score=Ta==null?void 0:Ta.use_blank_score,xr.question_type=3;const fo=[];(Ya=Ta==null?void 0:Ta.standard_answers)==null||Ya.forEach((Eo,jo)=>{fo.push({choice_id:Eo.position,answer_text:Eo.answer_text,score:Eo.score})}),xr.standard_answers=fo,xr.downcase=Ta==null?void 0:Ta.downcase,xr.no_space=Ta==null?void 0:Ta.no_space}if(Ft==="SUBJECTIVE"&&(console.log("editorData"),console.log(Ta),xr.question_title=Ta==null?void 0:Ta.name,xr.question_type=4,xr.answer_texts=Ta==null?void 0:Ta.answer_texts,xr.use_keywords=Ta==null?void 0:Ta.use_keywords,xr.keywords=Ta==null?void 0:Ta.keywords),Ft==="COMBINATION"){xr.question_title=Ta==null?void 0:Ta.name,xr.question_type=7;try{xr.sub_questions=(Xa=Ta==null?void 0:Ta.sub_item_banks)==null?void 0:Xa.map((va,Mr)=>{var fo,Eo,jo;if((va==null?void 0:va.item_type)=="single"||(va==null?void 0:va.item_type)=="multiple"){if(oo(va==null?void 0:va.choices))throw new Error(`\u7B2C${Mr+1}\u5C0F\u9898\u9009\u9879\u5185\u5BB9\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58`);const fi=[],Bi=[];return(fo=va==null?void 0:va.choices)==null||fo.forEach((ni,Zi)=>{fi.push(ni.choice_text),ni!=null&&ni.is_answer&&Bi.push(Zi+1)}),{id:va.id,question_id:va.id,question_title:va.name,difficulty:va.difficulty,question_type:(va==null?void 0:va.item_type)=="single"?0:(va==null?void 0:va.item_type)=="multiple"?1:2,question_choices:fi,standard_answers:Bi,analysis:va.analysis,question_score:va==null?void 0:va.score}}else if((va==null?void 0:va.item_type)=="completion"){let fi=(Eo=va==null?void 0:va.standard_answer)==null?void 0:Eo.reduce((ni,Zi)=>ni+(Number(Zi==null?void 0:Zi.score)||0),0);if(parseFloat(fi.toFixed(2))!=(va==null?void 0:va.score))throw new Error("\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BE5\u5C0F\u9898\u5206\u503C\uFF01");const Bi=[];return(jo=va==null?void 0:va.standard_answer)==null||jo.forEach((ni,Zi)=>{Bi.push({choice_id:ni.position,answer_text:ni.answer_text,score:ni.score})}),{id:va.id,question_id:va.id,is_ordered:va.is_ordered,question_title:va.name,difficulty:va.difficulty,question_type:3,standard_answers:Bi,use_blank_score:va.use_blank_score,analysis:va.analysis,downcase:va==null?void 0:va.downcase,no_space:va==null?void 0:va.no_space,question_score:va==null?void 0:va.score}}else if((va==null?void 0:va.item_type)=="subjective")return{id:va.id,question_id:va.id,question_title:va.name,question_type:4,difficulty:va.difficulty,answer_texts:va==null?void 0:va.answer_texts,analysis:va.analysis,question_score:va==null?void 0:va.score,use_keywords:va.use_keywords,keywords:va==null?void 0:va.keywords}})}catch(va){Ge.ZP.warning(va.message);return}delete xr.analysis}let zo=!1;(Pa==null?void 0:Pa.is_my)===1&&(zo=yield new Promise((Mr,fo)=>{je.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:()=>{Mr(!0)},onCancel:()=>{Mr(!1)}})})),zo&&(xr.is_cover=1);const Bo=Ft!=="PRACTICAL"?yield(0,we.ZP)(`/api/exercise_questions/${Pa.id}.json`,{method:"put",body:xr}):yield(0,we.ZP)(`/api/exercise_questions/${Pa.id}/update_shixun_score.json`,{method:"post",body:ko({},Ta)});(Bo==null?void 0:Bo.status)===0&&(Ge.ZP.success("\u7F16\u8F91\u6210\u529F"),bo(ca+1),ft(null))}),ro=()=>hi(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,we.ZP)(`/api/exercises/${Ua.categoryId}/sync_random_question.json`,{method:"post"})).status===0&&(yield Fa(ca),Ge.ZP.success("\u66F4\u65B0\u6210\u529F")),(0,ge.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1}})}),mo=({value:Ft}={})=>{var Pa;const Ir=[];let ra=[];const wn=(Pa=Ft==null?void 0:Ft.choices)==null?void 0:Pa.map((Ya,Xa)=>{var Ta;const oo=Xa+1;return Ya!=null&&Ya.is_answer&&(Ir.push(oo),ra.push(oo)),{value:oo,label:b.createElement(pe.Z,{className:"c-black font14",value:`${(Ta=so.k4)==null?void 0:Ta[Xa]}. ${Ya==null?void 0:Ya.choice_text}`}),disabled:Ya==null?void 0:Ya.origin_standard_answer}}),Rr=je.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 ",Ir==null?void 0:Ir.map(Ya=>{var Xa;return(Xa=so.k4)==null?void 0:Xa[Ya-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(Te.default.Group,{className:"flex-col mt20",options:wn,defaultValue:ra,onChange:Ya=>{ra=Ya}})),onOk:()=>hi(void 0,null,function*(){const Ya=yield(0,we.ZP)(`/api/exercises/${Ua.categoryId}/questions/${Ft==null?void 0:Ft.id}/add_standard_answers.json`,{method:"put",body:{standard_answer:ra}});(Ya==null?void 0:Ya.status)===0&&(Ge.ZP.success("\u4FEE\u6539\u6210\u529F"),bo(ca+1))})})},xo=(Ka=Je==null?void 0:Je.questionList)==null?void 0:Ka.reduce((Ft,Pa)=>Ft+Number(Pa.questions_score),0),mi=Gn&&((qr=Je==null?void 0:Je.exam)==null?void 0:qr.exercise_status)!==1;return b.createElement("section",{className:ie.wrap},b.createElement("div",{id:"id_left_preview",className:ie.left,onMouseEnter:Ft=>{const Pa=document.getElementById("id_left_preview");Pa.style.overflowY="auto"},onMouseLeave:Ft=>{const Pa=document.getElementById("id_left_preview");Pa.style.overflowY="hidden"}},b.createElement("div",{className:ie.title},b.createElement("div",{className:"body-overflow-initial"},b.createElement("b",null),b.createElement("span",null,"\u7B54\u9898\u5361"))),b.createElement("div",{className:ie.total},b.createElement("div",null,b.createElement("img",{src:qe}),b.createElement("span",null,"\u9898\u6570(\u9053)"),b.createElement("aside",null,Je==null?void 0:Je.all_questions_count)),b.createElement("div",{className:"mr30 ml30"},b.createElement("img",{src:jt}),b.createElement("span",null,"\u603B\u5206(\u5206)"),b.createElement("aside",null,xo&&xo.toFixed(1))),b.createElement("div",null,b.createElement("img",{src:de}),b.createElement("span",null,"\u65F6\u957F(\u5206)"),b.createElement("aside",null,(($r=Je==null?void 0:Je.exam)==null?void 0:$r.time)===-1||((ya=Je==null?void 0:Je.exam)==null?void 0:ya.time)===null?"\u4E0D\u9650":(Ba=Je==null?void 0:Je.exam)==null?void 0:Ba.time))),(Zn=Je==null?void 0:Je.questionList)==null?void 0:Zn.map((Ft,Pa)=>{var Ir;return b.createElement("div",{className:ie.list,key:Pa},b.createElement("div",{className:ie.name},b.createElement("b",null),b.createElement("span",null,Ft.name)),b.createElement("aside",null,b.createElement("div",null,"\u5171",b.createElement("span",{className:ie.b},Ft.questions_count),"\u9898 ",b.createElement("span",{className:ie.l},"|"),"\u5171",b.createElement("span",{className:ie.r},Ft.questions_score),"\u5206"),b.createElement("div",{className:ie.answerSheet},(Ir=Ft==null?void 0:Ft.questions)==null?void 0:Ir.map((ra,wn)=>b.createElement("div",{onClick:()=>{const Rr=`Anchor_${ra==null?void 0:ra.id}`;let Ya=document.getElementById(Rr);Ya&&setTimeout(()=>Ya.scrollIntoView({block:"center",behavior:"smooth"}))},key:ra==null?void 0:ra.id,className:ie.tag},wn+1)))))})),b.createElement("div",{className:ie.right},b.createElement("div",{className:ie.examName,id:"examName"},b.createElement("div",{className:ie.name},b.createElement(Fe.Z,{title:(Xn=Je==null?void 0:Je.exam)==null?void 0:Xn.name,getPopupContainer:Ft=>Ft.parentNode},b.createElement("span",{className:ie.t},(dr=Je==null?void 0:Je.exam)==null?void 0:dr.name))),Gn&&((he=Je==null?void 0:Je.exam)==null?void 0:he.exercise_status)===1&&b.createElement(ut.op,{openLoading:!0,shape:"default",onClick:()=>{je.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:()=>{ro()}})},type:"primary"},"\u66F4\u65B0\u8BD5\u5377"),!Gn&&b.createElement(Ne.ZP,{onClick:Do,type:"primary"},"\u968F\u673A\u66F4\u6362")),b.createElement("div",{className:ie.topWarp},(Ee=Je==null?void 0:Je.questionList)==null?void 0:Ee.map((Ft,Pa)=>{var Ir,ra;return b.createElement(b.Fragment,{key:Pa},b.createElement("div",{className:ie.head,style:Pa===0?{border:0,marginTop:-16}:{}},b.createElement("div",{className:ie.name},b.createElement("b",null),b.createElement("span",null,Ft.name)),b.createElement("div",{className:ie.so},"\u5171",b.createElement("span",{className:ie.b},Ft.questions_count," "),"\u9898 ",Ft.type==="COMBINATION"&&`\uFF08\u5305\u542B${(Ir=Ft==null?void 0:Ft.questions)==null?void 0:Ir.map(wn=>{var Rr;return(Rr=wn==null?void 0:wn.sub_item_banks)==null?void 0:Rr.length}).reduce((wn,Rr)=>wn+Rr)}\u5C0F\u9898\uFF09`,b.createElement("span",{className:ie.l},"|"),"\u5171",b.createElement("span",{className:ie.r},Ft.questions_score),"\u5206"),!Gn&&b.createElement("div",{className:ie.btn},b.createElement(Ne.ZP,{onClick:()=>{lr(Ft)},type:"primary",ghost:!0,className:"mr20"},"\u8BBE\u7F6E\u5F97\u5206"),b.createElement(Ne.ZP,{onClick:()=>Oo(Ft),type:"primary",ghost:!0},"\u968F\u673A\u66F4\u6362"))),(ra=Ft==null?void 0:Ft.questions)==null?void 0:ra.map((wn,Rr)=>{var Ya,Xa,Ta,oo;return at===(wn==null?void 0:wn.id)?b.createElement("div",{id:`Anchor_${wn==null?void 0:wn.id}`,className:ie.content,style:{padding:0,marginTop:24},key:wn==null?void 0:wn.id},b.createElement("div",{style:{float:"right",marginTop:`${(Ft==null?void 0:Ft.type)==="PRACTICAL"?"-2px":"-6px"}`}},b.createElement(Ne.ZP,{onClick:()=>ft(null),className:"mr20",type:"primary",ghost:!0},"\u53D6\u6D88"),b.createElement(Ne.ZP,{onClick:()=>{Co(Ft==null?void 0:Ft.type,wn)},type:"primary"},"\u4FDD\u5B58")),Lo(wn,Ft.type)):b.createElement("div",{id:`Anchor_${wn==null?void 0:wn.id}`,className:ie.content,key:wn==null?void 0:wn.id},b.createElement("div",{className:ie.titleWrap},(wn==null?void 0:wn.item_type)==="bprogram"?b.createElement(pe.Z,{style:{paddingRight:10},value:Rr+1+"\u3001"+((Ya=wn==null?void 0:wn.program_attr)==null?void 0:Ya.description)}):b.createElement(pe.Z,{style:{paddingRight:10},className:ie.titleHtml,value:Rr+1+`\u3001${(wn==null?void 0:wn.item_type)==="combination"?"\uFF08\u9898\u5E72\uFF09":""}`+(wn==null?void 0:wn.name)}),Gn&&b.createElement(Ne.ZP,{onClick:()=>{var xr,zo,Bo;if(at){Ge.ZP.warning("\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898");return}pa.setFieldsValue({standard_answers:wn==null?void 0:wn.standard_answer,hack:ko(ko({},wn),wn==null?void 0:wn.program_attr),hack_codes:Xo(ko({},wn==null?void 0:wn.program_attr),{code:fr.Base64.decode(((xr=wn==null?void 0:wn.program_attr)==null?void 0:xr.code)||"")}),hack_sets:ko({},(zo=wn==null?void 0:wn.hack_sets)==null?void 0:zo[0])}),(wn==null?void 0:wn.item_type)=="program"?ge.history.push(`/problems/newedit/${(Bo=wn==null?void 0:wn.program_attr)==null?void 0:Bo.identifier}?type=exercises&express_id=${Ua.categoryId}&question_id=${wn==null?void 0:wn.id}&score=${wn==null?void 0:wn.score}&exercise=true&callback_url=/classrooms/${Ua.coursesId}/exercise/${Ua.categoryId}/detail?random=true`):ft(wn==null?void 0:wn.id)},type:"primary",style:{marginLeft:"auto"},ghost:!0},"\u7F16\u8F91"),!mi&&b.createElement(Ne.ZP,{disabled:mi,className:"ml20",onClick:()=>Ur(wn==null?void 0:wn.id,Ft.type,Rr,Ft),type:"primary",ghost:!0},"\u6362\u4E00\u9898")),(wn==null?void 0:wn.item_type)==="bprogram"&&b.createElement(pe.Z,{style:{paddingRight:10,paddingLeft:25},showProgramFill:!0,disabledFill:!0,className:ie.titleHtml,value:fr.Base64.decode(((Xa=wn==null?void 0:wn.program_attr)==null?void 0:Xa.code)||"")}),(Ft.type==="SINGLE"||Ft.type==="JUDGMENT"||Ft.type==="MULTIPLE")&&wr(wn),Ft.type==="COMPLETION"&&zr(wn),Ft.type==="SUBJECTIVE"&&yo(wn),Ft.type==="PROGRAM"&&vr(wn),Ft.type==="BPROGRAM"&&Zr(wn),Ft.type==="COMBINATION"&&Or(wn,Rr),Ft.type==="PRACTICAL"&&Gr(wn),b.createElement(Oe.Z,{className:"mt20",wrap:!1,align:"middle",gutter:20},((Ta=Je==null?void 0:Je.exam)==null?void 0:Ta.exercise_status)===3&&!["PROGRAM","BPROGRAM","PRACTICAL","COMBINATION"].includes(Ft.type)&&b.createElement(ye.Z,null,b.createElement(Wa.Z,{state:wn==null?void 0:wn.is_wrong,onClick:()=>{ua==null||ua({value:Xo(ko({},wn),{question_id:wn==null?void 0:wn.id,question_score:wn==null?void 0:wn.score})})}})),["PROGRAM","BPROGRAM","PRACTICAL"].includes(Ft.type)&&(wn==null?void 0:wn.show_resubmit)&&b.createElement(ye.Z,null,b.createElement(Ea.C,{dataSource:Xo(ko({},wn),{question_id:wn==null?void 0:wn.id})})),((oo=Je==null?void 0:Je.exam)==null?void 0:oo.exercise_status)===3&&["SINGLE"].includes(Ft.type)&&b.createElement(ye.Z,null,b.createElement(Ne.ZP,{style:{color:"#3061D0"},onClick:()=>{mo({value:wn})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848"))))}))}))),Gn?b.createElement(ut.vr,null,b.createElement(se.Z,{showTotal:xe.rU,total:(We=Je==null?void 0:Je.exam)==null?void 0:We.total_num,pageSize:1,current:ca+1,showSizeChanger:!1,onChange:bo,showQuickJumper:!1,hideOnSinglePage:!1})):b.createElement(ut.vr,{LeftContent:b.createElement(ut.op,{onClick:mt,shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u8FD4\u56DE"),RightContent:b.createElement(Oe.Z,{align:"middle"},b.createElement(E.Z,{color:"#55575D",overlayClassName:ie.popover,open:Ht,getPopupContainer:Ft=>Ft==null?void 0:Ft.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(ut.op,{onMouseEnter:()=>yn(!0),onMouseLeave:()=>yn(!1),onClick:()=>Lr(),shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u4FDD\u5B58")),b.createElement(ut.op,{shape:"default",type:"primary",onClick:()=>ot(),style:{height:38,marginLeft:20}},"\u63D0\u4EA4"))}),b.createElement($o,{visible:An,questionParams:On.current,getdata:cn,onRandomExchange:()=>hi(void 0,null,function*(){const Ft=On.current;yield $n({single_question_id:Ft.id,seleted_item_bank_ids:Ft.ids},{type:Ft.type,index:Ft.index}),Jn(!1)}),selectFromProblemSet:()=>{const Ft=On.current,Pa=`${location.pathname}${location.search}`;Pa.includes("exercise")&&ge.history.push(`/paperlibrary/exchangequestion?type=exercise&qid=${Ft.id}&qtype=${Ft.type}&exerciseid=${Ua.categoryId}&from=${Pa}`)},onCancel:()=>{Jn(!1)}}))}},83292:function(Bt,Ct,ee){"use strict";ee.r(Ct),ee.d(Ct,{default:function(){return Su}});var b=ee(67294),ie={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"},Be=ee(2453),Fe=ee(22150),Ne=ee(85673),je=ee(35973),ue=ee(40950),Ge=ee(57953),Ae=ee(69677),Me=ee(85546),Te=ee(78045),Oe=ee(71230),ye=ee(31795),se=ee(71577),E=ee(33170),a=Object.defineProperty,x=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,te=(it,ut,kt)=>ut in it?a(it,ut,{enumerable:!0,configurable:!0,writable:!0,value:kt}):it[ut]=kt,re=(it,ut)=>{for(var kt in ut||(ut={}))y.call(ut,kt)&&te(it,kt,ut[kt]);if(x)for(var kt of x(ut))z.call(ut,kt)&&te(it,kt,ut[kt]);return it},oe=(it,ut,kt)=>new Promise((Tn,kn)=>{var nn=Zt=>{try{_t(kt.next(Zt))}catch(In){kn(In)}},dn=Zt=>{try{_t(kt.throw(Zt))}catch(In){kn(In)}},_t=Zt=>Zt.done?Tn(Zt.value):Promise.resolve(Zt.value).then(nn,dn);_t((kt=kt.apply(it,ut)).next())});function de(it){return oe(this,null,function*(){return(0,E.ZP)(`/api/examination_banks/${it}/edit_random_exam_new.json`,{method:"get"})})}function pe(it,ut){return oe(this,null,function*(){return(0,E.ZP)(`/api/examination_banks/${it}/update_random_exam.json`,{method:"post",body:ut})})}function ge(it){return oe(this,null,function*(){return(0,E.ZP)("/api/examination_banks/create_random_exam.json",{method:"post",body:it})})}function xe(it){return oe(this,null,function*(){return(0,E.ZP)("/api/disciplines.json",{method:"get",params:it})})}function we(it){return oe(this,null,function*(){return(0,E.ZP)("/api/item_banks/item_difficulty_count.json",{method:"get",params:it})})}function Se(it,ut){return oe(this,null,function*(){return(0,E.ZP)(`/api/examination_banks/${it}/set_item_type_score.json`,{method:"post",body:ut})})}function ve(it,ut){return oe(this,null,function*(){return(0,E.ZP)(`/api/exercises/${it}/set_item_type_score.json`,{method:"post",body:ut})})}function Qe(it,ut){return oe(this,null,function*(){return(0,E.ZP)(`/api/examination_banks/${it}/delete_item_type.json`,{method:"post",body:ut})})}function Le(it,ut){return oe(this,null,function*(){return(0,E.ZP)(`/api/exercises/${it}/delete_item_type.json`,{method:"post",body:ut})})}function ke(it){return oe(this,null,function*(){return(0,E.ZP)("/api/examination_banks/preview_random_questions.json",{method:"post",body:it})})}function Ce(it){return oe(this,null,function*(){return(0,E.ZP)("/api/examination_banks/toggle_random_questions.json",{method:"post",body:it})})}function Ke(it){return oe(this,null,function*(){return(0,E.ZP)("/api/examination_banks/save_question_list.json",{method:"post",body:it})})}function qe(it){return oe(this,null,function*(){return(0,E.ZP)(`/api/exercises/${it.categoryId}/edit.json`,{method:"get",params:re({},it)})})}var Ue=(it=>(it.OnlyFileFolder="1",it.OnlyKnowledge="2",it.OnlyDifficulty="3",it.FileFolderAndDiff="4",it.FileFolderAndKnowledge="5",it.KnowledgeAndDiff="6",it.All="7",it.Shixun="8",it))(Ue||{}),Ye=ee(96486),ct=Object.defineProperty,yt=Object.defineProperties,$t=Object.getOwnPropertyDescriptors,an=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,It=(it,ut,kt)=>ut in it?ct(it,ut,{enumerable:!0,configurable:!0,writable:!0,value:kt}):it[ut]=kt,hn=(it,ut)=>{for(var kt in ut||(ut={}))rt.call(ut,kt)&&It(it,kt,ut[kt]);if(an)for(var kt of an(ut))jt.call(ut,kt)&&It(it,kt,ut[kt]);return it},Mt=(it,ut)=>yt(it,$t(ut)),Yt=(it=>(it[it.FileFolder=1]="FileFolder",it[it.Difficulty=2]="Difficulty",it[it.Knowledge=3]="Knowledge",it))(Yt||{});const Re=(0,b.createContext)(null),Wt={[Ue.OnlyFileFolder]:[1],[Ue.OnlyKnowledge]:[3],[Ue.OnlyDifficulty]:[2],[Ue.FileFolderAndDiff]:[1,2],[Ue.FileFolderAndKnowledge]:[1,3],[Ue.KnowledgeAndDiff]:[3,2],[Ue.All]:[3,2,1]},Sn=(it,ut)=>{if(it.length!==ut.length)return!1;for(const kt of ut)if(!it.includes(kt))return!1;return!0},xt=it=>{for(const[ut,kt]of Object.entries(Wt))if(Sn(it,kt))return ut},Et={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"},Lt={1:{label:"\u7B80\u5355",color:"#46B70E"},2:{label:"\u9002\u4E2D",color:"#165DFF"},3:{label:"\u56F0\u96BE",color:"#EE6F1A"}},He=it=>it&&parseFloat(it.toFixed(1)),Ze=(it,ut)=>{var kt,Tn,kn;switch(ut.type){case"init":return ut.payload;case"updateBaseInfo":return Mt(hn({},it),{examination_bank:ut.payload});case"deleteQuestionType":{const{item_types:nn}=it,dn=nn.filter(_t=>_t.item_type!==ut.payload);return it.examination_bank.question_count=He(dn.reduce((_t,Zt)=>_t+Zt.item_bank_count,0)),it.examination_bank.total_score=He(dn.reduce((_t,Zt)=>_t+Zt.total_score,0)),Mt(hn({},it),{item_types:dn})}case"setQuestionType":{const{item_types:nn=[]}=it,dn=nn.map(Zt=>Zt.item_type),_t=nn.filter(Zt=>ut.payload.includes(Zt.item_type));for(const Zt of ut.payload)dn.includes(Zt)||(Zt==="PRACTICAL"?_t.push({item_type:Zt,contents:[],item_banks:[],item_bank_count:0,item_bank_num:0,item_type_text:Et[Zt],random_rule_type:Ue.Shixun,score:0,total_score:0}):_t.push({item_type:Zt,contents:[],item_bank_count:0,item_type_text:Et[Zt],score:0,total_score:0}));return Mt(hn({},it),{item_types:_t})}case"updateItemTypes":return Mt(hn({},it),{item_types:ut.payload});case"deleteRule":{const nn=(0,Ye.cloneDeep)(it),dn=nn.item_types.find(Zt=>Zt.item_type===ut.payload.itemType),_t=dn.contents.find(Zt=>Zt.id===ut.payload.id&&Zt.is_share==ut.payload.is_share);return dn.contents=dn.contents.filter(Zt=>Zt!==_t),((kt=dn.contents)==null?void 0:kt.length)===0&&(dn.random_rule_type=[]),dn.item_bank_count-=_t==null?void 0:_t.quanlity,nn.examination_bank.question_count-=_t==null?void 0:_t.quanlity,dn.total_score-=(_t==null?void 0:_t.quanlity)*dn.score,nn.examination_bank.total_score-=(_t==null?void 0:_t.quanlity)*dn.score,dn.total_score=He(dn.total_score),nn.examination_bank.total_score=He(nn.examination_bank.total_score),nn.contents=dn.contents,nn}case"changeQuestionNum":{const nn=(0,Ye.cloneDeep)(it),dn=nn.item_types.find(Xr=>Xr.item_type===ut.payload.itemType),_t=(Tn=dn==null?void 0:dn.contents)==null?void 0:Tn.find(Xr=>Xr.id===ut.payload.id);if(ut.payload.itemType==="PRACTICAL")return ut.payload.num&&(nn.examination_bank.question_count=nn.examination_bank.question_count-dn.item_bank_count+ut.payload.num,nn.examination_bank.total_score=He(nn.examination_bank.total_score-dn.total_score+ut.payload.num*dn.score)),ut.payload.score&&(nn.examination_bank.total_score=He(nn.examination_bank.total_score-dn.total_score+ut.payload.num*dn.score)),dn.item_bank_count=ut.payload.num,dn.total_score=He(dn.item_bank_count*dn.score),nn;nn.examination_bank.question_count=nn.examination_bank.question_count-(_t==null?void 0:_t.quanlity)+ut.payload.num;const Zt=dn.contents.find(Xr=>Xr.id===ut.payload.id&&Xr.teacher_group_id===ut.payload.teacher_group_id);Zt.quanlity=ut.payload.num;let In=0,xa=0;for(const Xr of dn.contents)In+=Xr==null?void 0:Xr.quanlity,xa+=(Xr==null?void 0:Xr.quanlity)*dn.score;return nn.examination_bank.total_score=He(nn.examination_bank.total_score-dn.total_score+xa),dn.item_bank_count=In,dn.total_score=He(xa),nn}case"changeQuestionScore":{const nn=(0,Ye.cloneDeep)(it),dn=nn.item_types.find(_t=>_t.item_type===ut.payload.itemType);return dn.score=ut.payload.score,dn.total_score=He(dn.item_bank_count*dn.score),nn.examination_bank.total_score=He(nn.item_types.reduce((_t,Zt)=>_t+Zt.total_score,0)),nn}case"editRule":{const nn=(0,Ye.cloneDeep)(it),dn=nn.item_types.find(_t=>_t.item_type===ut.payload.itemType);return dn.contents=ut.payload.tableData.map(_t=>Mt(hn({},_t),{item_type:ut.payload.itemType,random_rule_type:ut.payload.randomRuleType})),dn.random_rule_type=ut.payload.randomRuleType,dn.item_bank_count=dn.contents.reduce((_t,Zt)=>_t+(Zt==null?void 0:Zt.quanlity),0),dn.score=dn.score||1,dn.total_score=He(dn.item_bank_count*dn.score),nn.examination_bank.question_count=nn.item_types.reduce((_t,Zt)=>_t+Zt.item_bank_count,0),nn.examination_bank.total_score=He(nn.item_types.reduce((_t,Zt)=>_t+Zt.total_score,0)),nn}case"addShixun":{const nn=(0,Ye.cloneDeep)(it),dn=nn.item_types.find(_t=>_t.item_type==="PRACTICAL");return dn.item_banks=ut.payload.shixunList,nn.examination_bank.question_count=nn.examination_bank.question_count+1,dn.item_bank_num=dn.item_banks.length,dn.item_bank_count=dn.item_bank_count||1,dn.score=dn.score||1,dn.total_score=dn.total_score||dn.score*dn.item_bank_count,nn.examination_bank.total_score=(kn=nn==null?void 0:nn.item_types)==null?void 0:kn.map(_t=>_t.total_score).reduce((_t,Zt)=>_t+Zt),nn}case"deleteShixunQuestion":{const nn=(0,Ye.cloneDeep)(it),dn=nn.item_types.find(_t=>_t.item_type==="PRACTICAL");return dn.item_banks=dn.item_banks.filter(_t=>_t.id!==ut.payload.shixunId),dn.item_bank_num-=1,dn.item_bank_count>dn.item_bank_num&&(dn.item_bank_count-=1,dn.total_score-=dn.score,dn.total_score=He(dn.total_score)),nn}}};var Ve=ee(99640),gt=Object.defineProperty,Dt=Object.defineProperties,Gt=Object.getOwnPropertyDescriptors,Bn=Object.getOwnPropertySymbols,Fn=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable,_n=(it,ut,kt)=>ut in it?gt(it,ut,{enumerable:!0,configurable:!0,writable:!0,value:kt}):it[ut]=kt,Xe=(it,ut)=>{for(var kt in ut||(ut={}))Fn.call(ut,kt)&&_n(it,kt,ut[kt]);if(Bn)for(var kt of Bn(ut))tn.call(ut,kt)&&_n(it,kt,ut[kt]);return it},vt=(it,ut)=>Dt(it,Gt(ut)),mn=(it,ut,kt)=>new Promise((Tn,kn)=>{var nn=Zt=>{try{_t(kt.next(Zt))}catch(In){kn(In)}},dn=Zt=>{try{_t(kt.throw(Zt))}catch(In){kn(In)}},_t=Zt=>Zt.done?Tn(Zt.value):Promise.resolve(Zt.value).then(nn,dn);_t((kt=kt.apply(it,ut)).next())}),St=({courseOptions:it,setCurrentKey:ut,loading:kt,form:Tn})=>{const{data:kn,disabled:nn,dispatch:dn}=(0,b.useContext)(Re),_t=(0,je.useParams)(),Zt=(0,b.useRef)(!0),[In,xa]=(0,b.useState)(!1),Xr=(0,b.useMemo)(()=>{var Nr,$o,Uo,fr,Wa;if(!it.length||!kn)return;const Ea=(Nr=kn==null?void 0:kn.examination_bank)==null?void 0:Nr.sub_discipline_id,so=(($o=kn==null?void 0:kn.examination_bank)==null?void 0:$o.time)===-1?void 0:Zt.current?_t.id?(Uo=kn==null?void 0:kn.examination_bank)==null?void 0:Uo.time:((fr=kn==null?void 0:kn.examination_bank)==null?void 0:fr.time)||60:(Wa=kn==null?void 0:kn.examination_bank)==null?void 0:Wa.time;Zt.current=!1;let ho=[];for(const Vo of it)for(const Jo of Vo.children)Jo.value===Ea&&(ho=[Vo.value,Jo.value]);return vt(Xe({},kn.examination_bank),{time:so,course:ho})},[kn,it]);return(0,b.useEffect)(()=>{Tn.setFieldsValue(Xe({},Xr))},[Xr]),b.createElement(Ge.Z,{spinning:kt,size:"large",style:{position:"fixed",maxHeight:"100vh"},className:"mt30"},b.createElement("div",{className:ie.formWrap},b.createElement(Fe.default,{form:Tn,autoComplete:"off",colon:!1,labelCol:{span:4},wrapperCol:{span:20},initialValues:Xr||{difficulty:2,time:60},onValuesChange:(Nr,$o)=>{const{course:Uo=[]}=$o,fr=vt(Xe({},$o),{sub_discipline_id:Uo[1]||0});dn({type:"updateBaseInfo",payload:fr})}},b.createElement(Fe.default.Item,{name:"name",label:"\u8BD5\u5377\u540D\u79F0",className:ie.baseLineHeight,rules:[{required:!0,validator:(Nr,$o)=>{var Uo;return((Uo=$o==null?void 0:$o.replaceAll(" ",""))==null?void 0:Uo.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0")}}]},b.createElement(Ae.default,{maxLength:60,className:ie.baseFormItem,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",showCount:!0})),b.createElement(Fe.default.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B",name:"course",className:ie.baseLineHeight},b.createElement(Me.Z,{className:ie.baseFormItem,disabled:nn,size:"large",allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:it,dropdownMenuColumnStyle:{padding:"8px 12px",fontSize:14}})),b.createElement("div",{className:ie.concat},"\u6CA1\u6709\u5408\u9002\u7684\u65B9\u5411&\u8BFE\u7A0B\uFF1F",b.createElement("span",{onClick:()=>xa(!0)},"\u8054\u7CFB\u6559\u7814\u52A9\u7406")),b.createElement(Fe.default.Item,{label:"\u96BE\u5EA6",name:"difficulty",className:ie.radioBtnWrapper,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6"}]},b.createElement(Te.ZP.Group,{disabled:nn,className:ie.radiogroup},b.createElement(Te.ZP.Button,{className:ie.easy,value:1},"\u7B80\u5355"),b.createElement(Te.ZP.Button,{className:ie.medium,value:2},"\u9002\u4E2D"),b.createElement(Te.ZP.Button,{className:ie.hard,value:3},"\u56F0\u96BE"))),b.createElement(Fe.default.Item,{label:"\u7B54\u9898\u65F6\u957F",className:ie.baseLineHeight},b.createElement(Oe.Z,{align:"middle"},b.createElement(Fe.default.Item,{name:"time",noStyle:!0},b.createElement(ye.Z,{className:ie.baseFormItem,min:1,disabled:nn,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(Ae.default.TextArea,{rows:6,disabled:nn,maxLength:65535,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u987B\u77E5"})))),b.createElement("div",{className:ie.fixedBottom},b.createElement(se.ZP,{className:`${ie.cancelBtn} mr5`,onClick:()=>{_t.id||window.location.href.indexOf("randompaper")>-1?je.history.push("/paperlibrary"):je.history.push(`/classrooms/${_t.coursesId}/exercise`)}},"\u53D6\u6D88"),b.createElement(se.ZP,{className:`${ie.confirmBtn} ml15`,type:"primary",size:"large",onClick:()=>mn(void 0,null,function*(){if(yield Tn.validateFields(),!_t.id&&!_t.coursesId){const Nr=yield ge(kn);Nr.status===0&&(je.history.replace(`/randompaper/edit/${Nr==null?void 0:Nr.examination_bank_id}?type=settings`),ut("settings"))}else ut("settings")})},"\u4E0B\u4E00\u6B65")),b.createElement(Ve.Z,{open:In,onCancel:()=>{xa(!1)}}))},vn=ee(14446),Nn=ee(15746),ln={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"},ma=ee(26194),Ut=ee(30001),wt=ee(84567);const Un=[{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 wa=({open:it,onCancel:ut,onOk:kt})=>{const{data:Tn,dispatch:kn}=(0,b.useContext)(Re);(0,b.useEffect)(()=>{if(it){const{item_types:_t}=Tn||{};dn(_t==null?void 0:_t.map(Zt=>Zt.item_type))}},[it,Tn]);const[nn,dn]=(0,b.useState)([]);return b.createElement(vn.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:it,onCancel:ut,onOk:()=>kt(nn)},b.createElement(wt.default.Group,{value:nn,onChange:_t=>dn(_t)},b.createElement(Oe.Z,{gutter:[0,20]},Un.map(_t=>b.createElement(Nn.Z,{key:_t.value,span:6},b.createElement(wt.default,{value:_t.value},_t.label))))))},la=ee(9430),rr=Object.defineProperty,en=Object.getOwnPropertySymbols,rn=Object.prototype.hasOwnProperty,sn=Object.prototype.propertyIsEnumerable,na=(it,ut,kt)=>ut in it?rr(it,ut,{enumerable:!0,configurable:!0,writable:!0,value:kt}):it[ut]=kt,Ga=(it,ut)=>{for(var kt in ut||(ut={}))rn.call(ut,kt)&&na(it,kt,ut[kt]);if(en)for(var kt of en(ut))sn.call(ut,kt)&&na(it,kt,ut[kt]);return it},_r=({open:it,onCancel:ut,onOk:kt})=>{const{data:Tn}=(0,b.useContext)(Re),[kn,nn]=(0,b.useState)();console.log("--xxx-",kn),(0,b.useEffect)(()=>{it&&nn((0,Ye.cloneDeep)(Tn))},[it,Tn]);const dn=(0,b.useMemo)(()=>{var _t;let Zt;return Zt=(_t=kn==null?void 0:kn.item_types)==null?void 0:_t.map(In=>In.total_score).reduce((In,xa)=>parseFloat(In)+parseFloat(xa)),Zt==null?void 0:Zt.toFixed(1)},[kn]);return it?b.createElement(vn.default,{title:"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C",open:it,width:640,centered:!0,closable:!0,onCancel:ut,onOk:()=>{kt(kn)}},b.createElement("div",{className:"c-black mb20"},"\u603B\u5206",b.createElement("span",{className:"ml10 c-light-primary"},dn)),b.createElement(la.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,Zt){const{score:In,item_type:xa}=Zt;return b.createElement("div",{style:{color:"#9096A3"}},"\u6BCF",((Zt==null?void 0:Zt.item_type)==="PRACTICAL","\u9898"),b.createElement(ye.Z,{precision:1,size:"large",className:"ml10 mr10",min:.1,disabled:(Zt==null?void 0:Zt.item_bank_count)===0,max:100,onChange:Xr=>{const Nr=kn,$o=Nr.item_types.find(fr=>fr.item_type===xa);$o.score=Number(Xr);const Uo=Xr*$o.item_bank_count;$o.total_score=Uo&&Number(Uo.toFixed(1)),Nr.examination_bank.total_score=Nr.item_types.reduce((fr,Wa)=>Number(fr)+Number(Wa.total_score),0),nn(Ga({},Nr))}}),"\u5206")}}],className:ln.setScoreModalTable,dataSource:kn==null?void 0:kn.item_types,rowKey:"item_type",pagination:!1})):null},or=ee(66368),Rn=ee(11713),Ra=ee(79870),En="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAtFJREFUWEftWL9rU1EYPffFpCCKEEEJVUQHB10qAUHFHwguDg4ORRDq4uDg4CBIJ6GD0D/B3UEFJ5cugjbQChIqokWKClVrFDGIg2B8yZX3Xl/z/O5LzvfyKhTJXV7g/jrfOfc797sx1toCNnAzQ4A51RkymJNA/CcMvpoYhf0xDWtPwqICWEKM+QSYGgojt3Hw3mweFjmD9YlR+N8WAJSdjYwBrAWCb1oL+jzvMbzSFKoPBgLKAc6dugPbuRDtHzAXgGEMxmjjsXEAYr4MMOw2DcA8wcjWG6g+XOEAZ8c+wNpKtCXZMI+WMn6DJrbsOMQBPtrr9ySM4ZX9LEApkOfd5QBntvvhuhqFswKOz2/wDQWSZ9o0FADLfji5fBTYPwmUduYVMmV+IrLWF2DpFtCcizDTu3hmFeCBKaC4LR2cJpvjMZrwfn8HFm8qATan/bWslWckq6SuTyWcIfi5allrkmsY/DoZSZzanCwQo0REAwTIJf583e9txNIWic9p5E2OCQilZ7BxzY/8L60RSqRkcgnHqKXERgFw5eq/80EagIbB91cSPigilMabNWmYD6okXr7cZdABIAE7Gv6dpfIuZxJDI/G7S32ymJx6CoDP50ny5mIXIJPQ2Y8kEVVEw+DSeCKLWbkldlQA6JZwaZe9BuDr8xkAZjU6Pp5LvHiu9xmkWej6Wt8KXOK1VuGDL89272IaMLv6yAID3cUvzvS5SZyQyZOAZZl7hrnEz0/rjZoxzAhOyUEOcOFEH6MWhDGCWAApPs8B1o/p68GsANgbRVVRPzu8fvVg5gA0xcLTsV/wCtF/iKz6cABkfBfL+Z12m0t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ei43iPSQJ8r6xiVocv4JBwJ79K5WtEOx0Tny0XdD8QfXPT0f0+dmWvKWAHfbqoe8b1MafGpKN0xiLn2r2z+X0GS6JyeW5o5VmPhfIW2b2y5xduDh44CABFqhUBa9nP1xGWw1dqoRUcy8M6JD6CF7mVLbDqOW1uF5vjpeK+YfEYQkCWYYZc4HQyxU+6Veqeme1Jpuc4t4CNFqdcY9g1yzbX2/WL+QCM9QLhzstl90/S1fUdg2FgWQT6EVLbNHpThjNhaa8Hz6e7DgcFVbPTxwNcrk9JgqH9bBkCWYDZPh7uNmWanuhVfhIVaIwOjUzeNfLZ141XPdbcpNX4F/ikyqlsA/6bwAAAABJRU5ErkJggg==",Aa={ruleCheckBox:"ruleCheckBox___Onj2f",folderAreaWrapper:"folderAreaWrapper___ut2mr",folderAreaHeader:"folderAreaHeader___fOIDA",folderWrapper:"folderWrapper___IpJ50",folderIcon:"folderIcon___zBoRM",shareFolderIcon:"shareFolderIcon____5s3p",treeNodeItem:"treeNodeItem___quqla",treeNodeDifficulty:"treeNodeDifficulty___en0gk"},Qa=ee(38244),Kn=Object.defineProperty,ht=Object.defineProperties,Rt=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertySymbols,Kt=Object.prototype.hasOwnProperty,xn=Object.prototype.propertyIsEnumerable,qn=(it,ut,kt)=>ut in it?Kn(it,ut,{enumerable:!0,configurable:!0,writable:!0,value:kt}):it[ut]=kt,Ma=(it,ut)=>{for(var kt in ut||(ut={}))Kt.call(ut,kt)&&qn(it,kt,ut[kt]);if(Nt)for(var kt of Nt(ut))xn.call(ut,kt)&&qn(it,kt,ut[kt]);return it},ga=(it,ut)=>ht(it,Rt(ut)),er=(it,ut,kt)=>new Promise((Tn,kn)=>{var nn=Zt=>{try{_t(kt.next(Zt))}catch(In){kn(In)}},dn=Zt=>{try{_t(kt.throw(Zt))}catch(In){kn(In)}},_t=Zt=>Zt.done?Tn(Zt.value):Promise.resolve(Zt.value).then(nn,dn);_t((kt=kt.apply(it,ut)).next())});const ur=(it,ut,kt)=>it.map(Tn=>Tn.key===ut?Ma(Ma({},Tn),kt):Tn.children?ga(Ma({},Tn),{children:ur(Tn.children,ut,kt)}):Tn),lo={\u7B80\u5355:1,\u9002\u4E2D:2,\u56F0\u96BE:3},ea=(it,ut,kt)=>it.map(Tn=>{var kn;const nn=Tn==null?void 0:Tn.tag_disciplines.map(_t=>{const Zt=_t==null?void 0:_t.difficulty_count.map(In=>({label:In==null?void 0:In.name,value:lo[In.name]}));return{title:xt(ut)===Ue.All&&Zt.length>0?b.createElement(Oe.Z,{justify:"space-between"},b.createElement(Nn.Z,null,`${_t.name}\uFF08${_t.child_count}\uFF09`),b.createElement(Nn.Z,null,b.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),b.createElement(Fe.default.Item,{noStyle:!0,name:[`${Tn.id}_${_t.id}`,"diffValue"]},b.createElement(wt.default.Group,{style:{columnGap:12},options:Zt})),b.createElement(Fe.default.Item,{noStyle:!0,name:[`${Tn.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:[`${Tn.id}_${_t.id}`,"extra"],initialValue:ga(Ma({},Tn),{type:kt})},b.createElement("input",{type:"hidden"})))):`${_t.name}\uFF08${_t.child_count}\uFF09`,key:`${Tn.id}_${_t.id}`,name:_t.name,parentName:Tn.name,item_banks_count:_t.child_count,icon:null,isLeaf:!0,checkable:xt(ut)===Ue.FileFolderAndKnowledge,disableCheckbox:_t.child_count===0}}),dn=Tn==null?void 0:Tn.difficulty_count.map(_t=>({label:_t==null?void 0:_t.name,value:lo[_t.name]}));return{title:xt(ut)===Ue.FileFolderAndDiff&&dn.length>0?b.createElement(Oe.Z,{justify:"space-between"},b.createElement(Nn.Z,null,`${Tn.name}\uFF08${Tn.item_banks_count}\uFF09`),b.createElement(Nn.Z,null,b.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),b.createElement(Fe.default.Item,{noStyle:!0,name:[`${Tn.id}`,"diffValue"]},b.createElement(wt.default.Group,{style:{columnGap:12},options:dn})),b.createElement(Fe.default.Item,{noStyle:!0,name:[`${Tn.id}`,"diffNum"],initialValue:Tn==null?void 0:Tn.difficulty_count},b.createElement("input",{type:"hidden"})),b.createElement(Fe.default.Item,{noStyle:!0,name:[`${Tn.id}`,"extra"],initialValue:ga(Ma({},Tn),{type:kt})},b.createElement("input",{type:"hidden"})))):`${Tn.name}\uFF08${Tn.item_banks_count}\uFF09`,key:`${Tn.id}`,name:Tn.name,item_banks_count:Tn.item_banks_count,icon:_t=>_t.expanded?kt==="0"?b.createElement("img",{src:Mn,className:Aa.folderIcon}):b.createElement("img",{src:Vn,className:Aa.shareFolderIcon}):kt==="0"?b.createElement("img",{src:En,className:Aa.folderIcon}):b.createElement("img",{src:Yn,className:Aa.shareFolderIcon}),isLeaf:!Tn.have_child&&!((kn=Tn.tag_disciplines)!=null&&kn.length),checkable:xt(ut)===Ue.OnlyFileFolder,disableCheckbox:Tn.item_banks_count===0,children:Tn.children.length?xt(ut)===Ue.All||xt(ut)===Ue.FileFolderAndKnowledge?[...ea(Tn.children,ut,kt),...nn]:ea(Tn.children,ut,kt):[]}}),Dr=(it,ut,kt)=>it.map(Tn=>{var kn;const nn=Tn==null?void 0:Tn.tag_disciplines.map(_t=>{console.log("tagItem:",_t);const Zt=_t==null?void 0:_t.difficulty_count.map(In=>({label:In==null?void 0:In.name,value:lo[In.name]}));return{title:xt(ut)===Ue.All&&Zt.length>0?b.createElement(Oe.Z,{justify:"space-between"},b.createElement(Nn.Z,null,`${_t.name}\uFF08${_t.child_count}\uFF09`),b.createElement(Nn.Z,null,b.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),b.createElement(Fe.default.Item,{noStyle:!0,name:[`${Tn.id}_${_t.id}`,"diffValue"]},b.createElement(wt.default.Group,{style:{columnGap:12},options:Zt})),b.createElement(Fe.default.Item,{noStyle:!0,name:[`${Tn.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:[`${Tn.id}_${_t.id}`,"extra"],initialValue:ga(Ma({},Tn),{type:kt})},b.createElement("input",{type:"hidden"})))):`${_t.name}\uFF08${_t.child_count}\uFF09`,key:`${Tn.id}_${_t.id}`,name:_t.name,parentName:Tn.name,item_banks_count:_t.child_count,icon:null,isLeaf:!0,checkable:xt(ut)===Ue.FileFolderAndKnowledge,disableCheckbox:_t.child_count===0}}),dn=Tn==null?void 0:Tn.difficulty_count.map(_t=>({label:_t==null?void 0:_t.name,value:lo[_t.name]}));return{title:xt(ut)===Ue.FileFolderAndDiff&&dn.length>0?b.createElement(Oe.Z,{justify:"space-between"},b.createElement(Nn.Z,null,`${Tn.name}\uFF08${Tn.item_banks_count}\uFF09`),b.createElement(Nn.Z,null,b.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),b.createElement(Fe.default.Item,{noStyle:!0,name:[`${Tn.id}`,"diffValue"]},b.createElement(wt.default.Group,{style:{columnGap:12},options:dn})),b.createElement(Fe.default.Item,{noStyle:!0,name:[`${Tn.id}`,"diffNum"],initialValue:Tn==null?void 0:Tn.difficulty_count},b.createElement("input",{type:"hidden"})),b.createElement(Fe.default.Item,{noStyle:!0,name:[`${Tn.id}`,"extra"],initialValue:ga(Ma({},Tn),{type:kt})},b.createElement("input",{type:"hidden"})))):`${Tn.name}\uFF08${Tn.item_banks_count}\uFF09`,key:`${Tn.id}`,name:Tn.name,item_banks_count:Tn.item_banks_count,icon:_t=>_t.expanded?kt==="0"?b.createElement("img",{src:Mn,className:Aa.folderIcon}):b.createElement("img",{src:Vn,className:Aa.shareFolderIcon}):kt==="0"?b.createElement("img",{src:En,className:Aa.folderIcon}):b.createElement("img",{src:Yn,className:Aa.shareFolderIcon}),isLeaf:!Tn.have_child&&!((kn=Tn.tag_disciplines)!=null&&kn.length),checkable:xt(ut)===Ue.OnlyFileFolder,disableCheckbox:Tn.item_banks_count===0,children:[...Dr(Tn.children,ut,kt),...nn]}});var Ii=({ruleValue:it,defaultData:ut,setSelectData:kt,currentItemType:Tn,selectData:kn})=>{const[nn,dn]=(0,b.useState)("1"),[_t,Zt]=(0,b.useState)(!0),[In]=Fe.default.useForm(),[xa,Xr]=(0,b.useState)([]),[Nr,$o]=(0,b.useState)("all"),Uo=(gn,Gn,Fa)=>{const{checkedNodes:ca}=Gn;console.log("type:",Fa,ca,kn),Fa==="0"?(Wa(gn),xt(it)===Ue.OnlyFileFolder?(kt($n=>ga(Ma({},$n),{my:ca.map(cn=>({id:cn.key,group_id:cn.key,group_name:cn.name,item_bank_num:cn.item_banks_count,folderType:"0",quanlity:1}))})),At(ca.reduce(($n,cn)=>$n+cn.item_banks_count,0))):(console.log(ca),kt($n=>ga(Ma({},$n),{my:ca.map(cn=>{const[ua,Ka]=cn.key.split("_");return{id:cn.key,tag_discipline_name:cn.name,group_id:ua,tag_discipline_id:Ka,folderType:"0",group_name:cn.parentName,item_bank_num:cn.item_banks_count,quanlity:1}})})),At(ca.reduce(($n,cn)=>$n+cn.item_banks_count,0)))):(so(gn),xt(it)===Ue.OnlyFileFolder?kt($n=>(console.log("pre:",$n),ga(Ma({},$n),{public:ca.map(cn=>({id:cn.key==="0"?"00":cn.key,teacher_group_name:cn.name,teacher_group_id:cn.key,folderType:"3",item_bank_num:cn.item_banks_count,quanlity:1}))}))):kt($n=>ga(Ma({},$n),{public:ca.map(cn=>{const[ua,Ka]=cn.key.split("_");return{id:cn.key==="0"?"00":cn.key,tag_discipline_name:cn.name,teacher_group_id:ua,tag_discipline_id:Ka,folderType:"3",teacher_group_name:cn.parentName,item_bank_num:cn.item_banks_count,quanlity:1}})})),At(ca.reduce(($n,cn)=>$n+cn.item_banks_count,0)))},[fr,Wa]=(0,b.useState)([]),[Ea,so]=(0,b.useState)([]),[ho,Vo]=(0,b.useState)([]),[Jo,co]=(0,b.useState)([]),[Yo,Po]=(0,b.useState)([]),[ir,ko]=(0,b.useState)([]),[Xo,hi]=(0,b.useState)(!1),[rl,lu]=(0,b.useState)(!1);function Je(){return er(this,null,function*(){let gn=yield(0,E.ZP)("/api/teach_group_shares.json",{method:"get"});gn&&Xr(gn==null?void 0:gn.groups)})}(0,b.useEffect)(()=>{Je()},[]);const ot=gn=>er(void 0,null,function*(){var Gn,Fa,ca,$n,cn,ua,Ka,qr,$r,ya,Ba,Zn;gn.type==="0"?hi(!0):lu(!0);const Xn=yield(0,Qa.ex)(gn);gn.type==="0"?hi(!1):lu(!1),gn.type==="0"?Po(Xn):ko(Xn);const dr=(Gn=Xn.navigation[0])==null?void 0:Gn.difficulty_count.map(Ee=>({label:Ee==null?void 0:Ee.name,value:lo[Ee.name]})),he=(Fa=Xn.navigation[0])==null?void 0:Fa.tag_disciplines.map(Ee=>{const We=Ee==null?void 0:Ee.difficulty_count.map($e=>({label:$e==null?void 0:$e.name,value:lo[$e.name]}));return{title:xt(it)===Ue.All&&We.length>0?b.createElement(Oe.Z,{justify:"space-between",style:{color:"#232B40"}},b.createElement(Nn.Z,null,`${Ee.name}\uFF08${Ee.child_count}\uFF09`),b.createElement(Nn.Z,null,b.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),b.createElement(Fe.default.Item,{noStyle:!0,name:[`0_${Ee.id}`,"diffValue"]},b.createElement(wt.default.Group,{style:{columnGap:12},options:We})),b.createElement(Fe.default.Item,{noStyle:!0,name:[`0_${Ee.id}`,"diffNum"],initialValue:Ee==null?void 0:Ee.difficulty_count},b.createElement("input",{type:"hidden"})),b.createElement(Fe.default.Item,{noStyle:!0,name:[`0_${Ee.id}`,"extra"],initialValue:{tag_discipline_name:Ee.name,name:"\u6839\u76EE\u5F55",type:gn.type}},b.createElement("input",{type:"hidden"})))):b.createElement("span",{style:{color:"#232B40"}},Ee.name,"\uFF08",Ee.child_count,"\uFF09"),key:`0_${Ee.id}`,name:Ee.name,parentName:"\u6839\u76EE\u5F55",item_banks_count:Ee.child_count,icon:null,isLeaf:!0,checkable:xt(it)===Ue.FileFolderAndKnowledge,disableCheckbox:Ee.child_count===0}});if(gn.type==="0"){const Ee=ea(Xn.data,it,"0"),We=Dr(Xn.data,it,"0");console.log("normalChildren2:",We),Vo([{title:xt(it)===Ue.FileFolderAndDiff?b.createElement(Oe.Z,{justify:"space-between",style:{color:"#232B40"}},b.createElement(Nn.Z,null,`\u6839\u76EE\u5F55\uFF08${(ca=Xn.navigation[0])==null?void 0:ca.child_count}\uFF09`),b.createElement(Nn.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(wt.default.Group,{style:{columnGap:12},options:dr})),b.createElement(Fe.default.Item,{noStyle:!0,name:["0","diffNum"],initialValue:($n=Xn.navigation[0])==null?void 0:$n.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${(cn=Xn.navigation[0])==null?void 0:cn.child_count}\uFF09`),key:"0",name:"\u6839\u76EE\u5F55",item_banks_count:(ua=Xn.navigation[0])==null?void 0:ua.child_count,disabled:!(((Ka=Xn.navigation[0])==null?void 0:Ka.child_count)>0),checkable:xt(it)===Ue.OnlyFileFolder,icon:$e=>$e.expanded?b.createElement("img",{src:Mn,className:Aa.folderIcon}):b.createElement("img",{src:En,className:Aa.folderIcon}),isLeaf:!1,children:xt(it)===Ue.OnlyFileFolder||xt(it)===Ue.FileFolderAndDiff?Ee:[...We,...he]}])}else{const Ee=ea(Xn.data,it,"3");co([{title:xt(it)===Ue.FileFolderAndDiff?b.createElement(Oe.Z,{justify:"space-between"},b.createElement(Nn.Z,null,`\u6839\u76EE\u5F55\uFF08${(qr=Xn.navigation[0])==null?void 0:qr.child_count}\uFF09`),b.createElement(Nn.Z,null,b.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),b.createElement(Fe.default.Item,{noStyle:!0,name:["0","diffValue"]},b.createElement(wt.default.Group,{style:{columnGap:12},options:dr})),b.createElement(Fe.default.Item,{noStyle:!0,name:["0","diffNum"],initialValue:($r=Xn.navigation[0])==null?void 0:$r.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${(ya=Xn.navigation[0])==null?void 0:ya.child_count}\uFF09`),key:"0",name:"\u6839\u76EE\u5F55",item_banks_count:(Ba=Xn.navigation[0])==null?void 0:Ba.child_count,checkable:xt(it)===Ue.OnlyFileFolder,icon:We=>We.expanded?b.createElement("img",{src:Vn,className:Aa.shareFolderIcon}):b.createElement("img",{src:Yn,className:Aa.shareFolderIcon}),isLeaf:!1,disabled:!(((Zn=Xn.navigation[0])==null?void 0:Zn.child_count)>0),children:xt(it)===Ue.OnlyFileFolder||xt(it)===Ue.FileFolderAndDiff?Ee:[...Ee,...he]}])}});(0,b.useEffect)(()=>{nn==="1"?ot({type:"0",group_id:0,item_type:Tn,show_children:!0}):nn==="2"&&ot({type:"3",except_mine:!0,item_type:Tn,show_children:!0,teach_group_id:Nr==="all"?"":Nr})},[it,nn,Nr]),(0,b.useEffect)(()=>{var gn,Gn,Fa,ca,$n,cn,ua,Ka,qr,$r,ya,Ba;console.log("selectData-active:",kn,ut,nn),nn==="1"?(Wa((gn=kn==null?void 0:kn.my)==null?void 0:gn.map(Zn=>Zn.id)),At(((Fa=(Gn=kn==null?void 0:kn.my)==null?void 0:Gn.reduce)==null?void 0:Fa.call(Gn,(Zn,Xn)=>Zn+Xn.item_bank_num,0))||0)):nn==="2"&&(so((ca=kn==null?void 0:kn.public)==null?void 0:ca.map(Zn=>Zn.id)),At(((cn=($n=kn==null?void 0:kn.public)==null?void 0:$n.reduce)==null?void 0:cn.call($n,(Zn,Xn)=>Zn+Xn.item_bank_num,0))||0)),xt(it)===Ue.All&&(nn==="1"?(Wa((ua=kn==null?void 0:kn.my)==null?void 0:ua.map(Zn=>Zn.id)),At((kn==null?void 0:kn.filter(Zn=>!Zn.is_share).reduce((Zn,Xn)=>Zn+Xn.item_bank_num,0))||0),(Ka=kn==null?void 0:kn.filter(Zn=>!Zn.is_share))==null||Ka.forEach(Zn=>{const Xn=In.getFieldValue([`${Zn.group_id||0}_${Zn.tag_discipline_id}`,"diffValue"])||[];console.log("prev:",Xn),Xn!=null&&Xn.includes[Zn.difficulty]||In.setFieldValue([`${Zn.group_id||0}_${Zn.tag_discipline_id}`,"diffValue"],Array.from(new Set([...Xn,Zn.difficulty])))})):nn==="2"&&(so((qr=kn==null?void 0:kn.public)==null?void 0:qr.map(Zn=>Zn.id)),At((kn==null?void 0:kn.filter(Zn=>!!Zn.is_share).reduce((Zn,Xn)=>Zn+Xn.item_bank_num,0))||0),($r=kn==null?void 0:kn.filter(Zn=>!!Zn.is_share))==null||$r.forEach(Zn=>{const Xn=In.getFieldValue([`${Zn.teacher_group_id||0}_${Zn.tag_discipline_id}`,"diffValue"])||[];Xn!=null&&Xn.includes[Zn.difficulty]||In.setFieldValue([`${Zn.teacher_group_id||0}_${Zn.tag_discipline_id}`,"diffValue"],Array.from(new Set([...Xn,Zn.difficulty])))}))),xt(it)===Ue.FileFolderAndDiff&&(In.resetFields(),setTimeout(()=>{kt(kn)},300),nn==="1"?(At((kn==null?void 0:kn.filter(Zn=>!Zn.is_share).reduce((Zn,Xn)=>Zn+Xn.item_bank_num,0))||0),(ya=kn==null?void 0:kn.filter(Zn=>!Zn.is_share))==null||ya.forEach(Zn=>{const Xn=In.getFieldValue([`${Zn.group_id}`,"diffValue"])||[];console.log("prev:",Xn),Xn!=null&&Xn.includes[Zn.difficulty]||In.setFieldValue([`${Zn.group_id}`,"diffValue"],Array.from(new Set([...Xn,Zn.difficulty])))})):(At((kn==null?void 0:kn.filter(Zn=>!!Zn.is_share).reduce((Zn,Xn)=>Zn+Xn.item_bank_num,0))||0),(Ba=kn==null?void 0:kn.filter(Zn=>!!Zn.is_share))==null||Ba.forEach(Zn=>{const Xn=In.getFieldValue([`${Zn.teacher_group_id}`,"diffValue"])||[];Xn!=null&&Xn.includes[Zn.difficulty]||In.setFieldValue([`${Zn.teacher_group_id}`,"diffValue"],Array.from(new Set([...Xn,Zn.difficulty])))})))},[nn]),console.log("1111111111:",fr,Ea),(0,b.useEffect)(()=>{setTimeout(()=>{var gn,Gn,Fa,ca,$n;switch(xt(it)){case Ue.OnlyFileFolder:{const cn=[],ua=[];for(const Ka of kn.my||[])cn.push(Ka);for(const Ka of kn.public||[])ua.push(Ka);Wa(cn.map(Ka=>`${Ka.group_id}`)),so(ua.map(Ka=>`${Ka.teacher_group_id}`)),At(nn==="1"?cn.reduce((Ka,qr)=>Ka+qr.item_bank_num,0):ua.reduce((Ka,qr)=>Ka+qr.item_bank_num,0));break}case Ue.FileFolderAndKnowledge:{const cn=[],ua=[];for(const Ka of(kn==null?void 0:kn.my)||[])cn.push(Ka);for(const Ka of(kn==null?void 0:kn.public)||[])ua.push(Ka);At((gn=nn==="1"?cn:ua)==null?void 0:gn.reduce((Ka,qr)=>Ka+qr.item_bank_num,0)),Wa(cn.map(Ka=>`${Ka.group_id}_${Ka.tag_discipline_id}`)),so(ua.map(Ka=>`${Ka.teacher_group_id}_${Ka.tag_discipline_id}`));break}case Ue.All:{nn==="1"?(At((kn==null?void 0:kn.filter(cn=>!cn.is_share).reduce((cn,ua)=>cn+ua.item_bank_num,0))||0),(Gn=kn==null?void 0:kn.filter(cn=>!cn.is_share))==null||Gn.forEach(cn=>{const ua=In.getFieldValue([`${cn.group_id||0}_${cn.tag_discipline_id}`,"diffValue"])||[];console.log("prev:",ua,cn.difficulty,cn),ua!=null&&ua.includes[cn.difficulty]||In.setFieldValue([`${cn.group_id||0}_${cn.tag_discipline_id}`,"diffValue"],Array.from(new Set([...ua,cn.difficulty])))})):(At((kn==null?void 0:kn.filter(cn=>!!cn.is_share).reduce((cn,ua)=>cn+ua.item_bank_num,0))||0),(Fa=kn==null?void 0:kn.filter(cn=>!!cn.is_share))==null||Fa.forEach(cn=>{const ua=In.getFieldValue([`${cn.group_id||0}_${cn.tag_discipline_id}`,"diffValue"])||[];console.log("prev:",ua,cn.difficulty,cn),ua!=null&&ua.includes[cn.difficulty]||In.setFieldValue([`${cn.group_id||0}_${cn.tag_discipline_id}`,"diffValue"],Array.from(new Set([...ua,cn.difficulty])))}));break}case Ue.FileFolderAndDiff:{nn==="1"?(At((kn==null?void 0:kn.filter(cn=>!cn.is_share).reduce((cn,ua)=>cn+ua.item_bank_num,0))||0),(ca=kn==null?void 0:kn.filter(cn=>!cn.is_share))==null||ca.forEach(cn=>{const ua=In.getFieldValue([`${cn.group_id}`,"diffValue"])||[];console.log("prev:",ua,cn.difficulty),ua!=null&&ua.includes[cn.difficulty]||In.setFieldValue([`${cn.group_id}`,"diffValue"],Array.from(new Set([...ua,cn.difficulty])))})):(At((kn==null?void 0:kn.filter(cn=>!!cn.is_share).reduce((cn,ua)=>cn+ua.item_bank_num,0))||0),($n=kn==null?void 0:kn.filter(cn=>!!cn.is_share))==null||$n.forEach(cn=>{const ua=In.getFieldValue([`${cn.group_id}`,"diffValue"])||[];ua!=null&&ua.includes[cn.difficulty]||In.setFieldValue([`${cn.group_id}`,"diffValue"],Array.from(new Set([...ua,cn.difficulty])))}));break}}},800)},[ut,it,ho,Jo]);const[mt,At]=(0,b.useState)(0);return b.createElement(Fe.default,{form:In,onValuesChange:(gn,Gn)=>er(void 0,null,function*(){var Fa,ca,$n,cn;console.log("onValuesChange:",Gn,gn);let ua=0;if(xt(it)===Ue.FileFolderAndDiff){const Ka=yield In.getFieldValue(),qr=[],$r=[];for(const Ba of Object.keys(Ka))if((ca=(Fa=Ka[Ba])==null?void 0:Fa.diffValue)!=null&&ca.length&&Ba!=="null"&&Ba!==null){const Zn=Ka[Ba];qr.push(Ma({id:Ba},Zn))}const ya={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"};qr.map(Ba=>{var Zn,Xn,dr,he,Ee;Ba.id==0&&(Ba.diffNum=nn==="1"?(Xn=(Zn=Yo==null?void 0:Yo.navigation)==null?void 0:Zn[0])==null?void 0:Xn.difficulty_count:(he=(dr=ir==null?void 0:ir.navigation)==null?void 0:dr[0])==null?void 0:he.difficulty_count),(Ee=Ba==null?void 0:Ba.diffValue)==null||Ee.map(We=>{var $e,at,ft,Ht,yn;const An={group_name:(($e=Ba.extra)==null?void 0:$e.name)||"",teacher_group_name:"",id:`${Ba.id}_${We}`,group_id:Ba.id,difficulty:We,item_bank_num:(Ht=(ft=(at=Ba.diffNum)==null?void 0:at.filter(Jn=>Jn.name===ya[We]))==null?void 0:ft[0])==null?void 0:Ht.value};nn==="2"&&(An.is_share=!0,An.teacher_group_id=Ba.id,An.teacher_group_name=(yn=Ba.extra)==null?void 0:yn.name),$r.push(An)})}),ua=$r.reduce((Ba,Zn)=>Ba+Zn.item_bank_num,0),kt([...$r,...kn==null?void 0:kn.filter(Ba=>nn==="1"?Ba.is_share:!Ba.is_share)])}else if(xt(it)===Ue.All){const Ka=[];for(const qr of Object.keys(Gn)){const{diffNum:$r=[],diffValue:ya=[],extra:Ba={}}=Gn[qr];console.log("---",Ba);const[Zn,Xn]=qr.split("_");let dr=(cn=($n=Ba.tag_disciplines)==null?void 0:$n.filter(he=>parseInt(he.id)===parseInt(Xn)))==null?void 0:cn[0];ya.forEach(he=>{var Ee;const We={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"},$e=(Ee=$r==null?void 0:$r.find(ft=>ft.name===We[he]))==null?void 0:Ee.value,at={group_name:"",teacher_group_name:"",tag_discipline_name:(dr==null?void 0:dr.name)||Ba.tag_discipline_name,id:`${qr}_${he}`,group_id:Zn,is_share:!!(dr!=null&&dr.is_share||(Ba==null?void 0:Ba.type)==="3"),tag_discipline_id:Xn,difficulty:he,item_bank_num:$e};ua+=$e,Ba.type==="0"?at.group_name=Ba.name:at.teacher_group_name=Ba.name,nn==="2"&&(at.is_share=!0,at.teacher_group_id=Ba.id||0,at.teacher_group_name=Ba.name),$e>0&&Ka.push(at)})}kt([...Ka,...kn==null?void 0:kn.filter(qr=>nn==="1"?qr.is_share:!qr.is_share)])}At(ua)})},b.createElement(or.default,{destroyInactiveTabPane:!0,activeKey:nn,onChange:gn=>dn(gn),style:{minHeight:260},tabBarExtraContent:{right:nn==="2"&&(xa==null?void 0:xa.length)>0&&b.createElement(Rn.default,{onChange:gn=>{$o(gn)},value:Nr,style:{width:120}},b.createElement(Rn.default.Option,{key:"all",value:"all"},"\u5168\u90E8"),xa==null?void 0:xa.map(gn=>b.createElement(Rn.default.Option,{key:gn==null?void 0:gn.group_id,value:gn==null?void 0:gn.group_id},gn==null?void 0:gn.name)))},items:[{key:"1",label:"\u6211\u521B\u5EFA\u7684",children:(ho==null?void 0:ho.length)===0?b.createElement(Ge.Z,{spinning:Xo},b.createElement(ma.Z,{ButtonTwo:b.createElement("a",{target:"_blank",href:"/problemset"},"\u524D\u5F80\u9898\u5E93\uFF0C\u65B0\u589E\u66F4\u591A\u8BD5\u9898",">")})):b.createElement("div",{className:Aa.folderAreaWrapper},b.createElement(Oe.Z,{justify:"space-between",align:"middle",className:Aa.folderAreaHeader},b.createElement("span",null,"\u6587\u4EF6\u5939"),b.createElement("span",{className:"mr20"},"\u5DF2\u9009",b.createElement("span",{style:{color:"#3061D0"}}," ",mt," "),"\u9898")),b.createElement(Ge.Z,{spinning:Xo},b.createElement("div",{style:{minHeight:200}},ho.length>0&&b.createElement(Ra.default,{checkable:!0,className:Aa.folderWrapper,rootStyle:{paddingLeft:15,paddingRight:0,paddingTop:10},selectable:!1,onCheck:(gn,Gn)=>Uo(gn,Gn,"0"),checkedKeys:fr,checkStrictly:!0,treeData:ho,showIcon:!0,blockNode:!0,defaultExpandAll:!0}))))},{key:"2",label:"\u56E2\u961F\u5171\u4EAB",children:(Jo==null?void 0:Jo.length)===0?b.createElement(Ge.Z,{spinning:rl},b.createElement(ma.Z,{ButtonTwo:b.createElement("a",{target:"_blank",href:"/problemset"},"\u524D\u5F80\u9898\u5E93\uFF0C\u65B0\u589E\u66F4\u591A\u8BD5\u9898",">")})):b.createElement("div",{className:Aa.folderAreaWrapper},b.createElement(Oe.Z,{justify:"space-between",align:"middle",className:Aa.folderAreaHeader},b.createElement("span",null,"\u6587\u4EF6\u5939"),b.createElement("span",{className:"mr20"},"\u5DF2\u9009",b.createElement("span",{style:{color:"#3061D0"}}," ",mt||0," "),"\u9898")),b.createElement(Ge.Z,{spinning:rl},b.createElement("div",{style:{minHeight:200}},(Jo==null?void 0:Jo.length)>0&&b.createElement(Ra.default,{checkable:!0,className:Aa.folderWrapper,selectable:!1,rootStyle:{paddingLeft:15,paddingRight:0,paddingTop:10},onCheck:(gn,Gn)=>Uo(gn,Gn,"3"),checkedKeys:Ea,checkStrictly:!0,treeData:Jo,showIcon:!0,blockNode:!0,defaultExpandAll:!0}))))}]}))},mr=ee(53430),jn=ee(9343),vl=Object.defineProperty,Ho=Object.defineProperties,dl=Object.getOwnPropertyDescriptors,tl=Object.getOwnPropertySymbols,nl=Object.prototype.hasOwnProperty,Oi=Object.prototype.propertyIsEnumerable,yl=(it,ut,kt)=>ut in it?vl(it,ut,{enumerable:!0,configurable:!0,writable:!0,value:kt}):it[ut]=kt,il=(it,ut)=>{for(var kt in ut||(ut={}))nl.call(ut,kt)&&yl(it,kt,ut[kt]);if(tl)for(var kt of tl(ut))Oi.call(ut,kt)&&yl(it,kt,ut[kt]);return it},pu=(it,ut)=>Ho(it,dl(ut)),da=(it,ut,kt)=>new Promise((Tn,kn)=>{var nn=Zt=>{try{_t(kt.next(Zt))}catch(In){kn(In)}},dn=Zt=>{try{_t(kt.throw(Zt))}catch(In){kn(In)}},_t=Zt=>Zt.done?Tn(Zt.value):Promise.resolve(Zt.value).then(nn,dn);_t((kt=kt.apply(it,ut)).next())});const _i={\u7B80\u5355:1,\u9002\u4E2D:2,\u56F0\u96BE:3};var Ao=({ruleValue:it,setSelectData:ut,currentItemType:kt,defaultData:Tn,isFirst:kn})=>{const[nn,dn]=(0,b.useState)([]),[_t,Zt,In,xa]=(0,jn.U)(xe,{source:"question",page:1,per_page:10,group_id:0,keyword:"",group_type:0,clazz:"ItemBanksGroup",sub_discipline_id:void 0,item_type:kt,show_children:!0});(0,b.useEffect)(()=>{da(void 0,null,function*(){const Ea=yield In({},!0);dn((0,mr.L)(Ea.disciplines))})},[]),console.log(Tn),(0,b.useEffect)(()=>{if(kn)switch(xt(it)){case Ue.OnlyKnowledge:{fr(Tn.map(Ea=>Ea.tag_discipline_id));break}case Ue.KnowledgeAndDiff:{const Ea=new Map;Tn.forEach(so=>{so&&(Ea.has(so.tag_discipline_id)?Ea.set(so.tag_discipline_id,[...Ea.get(so.tag_discipline_id),so.difficulty]):Ea.set(so.tag_discipline_id,[so.difficulty]))});for(const[so,ho]of Ea.entries())Xr.setFieldValue([so,"diff"],ho);break}}},[Tn,it,kn]);const[Xr]=Fe.default.useForm(),Nr=(0,b.useMemo)(()=>{const Ea=[];let so="",ho="";const Vo={};for(const Jo of(xa==null?void 0:xa.disciplines)||[]){so=Jo.name;for(const co of Jo.sub_disciplines){ho=co.name;for(const Yo of co.tag_disciplines){const Po={sub_discipline_name:`${so}&${ho}`,sub_discipline_id:co.id,tag_discipline_name:Yo.name,id:Yo.id,item_bank_num:Yo.total_count,difficulty_count:Yo.difficulty_count,tag_discipline_id:Yo.id};Ea.push(Po)}}}return Ea},[xa,Tn]),$o=[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",show:!0,render:(Ea,so)=>{const{item_bank_num:ho}=so;return b.createElement("div",null,Ea,`(${ho})`)}},{title:"\u65B9\u5411&\u8BFE\u7A0B",dataIndex:"sub_discipline_name",ellipsis:!0,show:!0},{title:"\u96BE\u5EA6",width:"35%",show:it.includes(Yt.Difficulty),render:(Ea,so)=>{const{id:ho,difficulty_count:Vo,total_count:Jo,sub_discipline_name:co,tag_discipline_name:Yo}=so;return b.createElement(b.Fragment,null,b.createElement(Fe.default.Item,{name:[ho,"diff"],noStyle:!0},b.createElement(wt.default.Group,{style:{columnGap:12},options:Vo.map(Po=>({label:Po.name,value:_i[Po.name]}))})),b.createElement(Fe.default.Item,{name:[ho,"extra"],initialValue:{difficulty_count:Vo,total_count:Jo,sub_discipline_name:co,tag_discipline_name:Yo},noStyle:!0},b.createElement("input",{type:"hidden"})))}}].filter(Ea=>Ea.show),[Uo,fr]=(0,b.useState)([]),Wa=(0,b.useRef)(new Map);return b.createElement("div",{style:{marginTop:12}},b.createElement(Oe.Z,{className:"mb20",align:"middle",gutter:20},b.createElement(Nn.Z,null,b.createElement(Me.Z,{placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",size:"large",style:{width:240},options:nn,onChange:Ea=>{In({sub_discipline_id:Ea==null?void 0:Ea[1]})}})),b.createElement(Nn.Z,null,b.createElement(Ut.t7,{style:{width:300},placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0\u8FDB\u884C\u641C\u7D22",value:_t.keyword,onChange:Ea=>In({keyword:Ea})}))),b.createElement(Fe.default,{form:Xr,onValuesChange:(Ea,so)=>{var ho;console.log(so),Wa.current.clear();for(const Vo of Object.keys(so)){const Jo={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"},co=so[Vo],{difficulty_count:Yo,total_count:Po}=co.extra||{};(ho=co==null?void 0:co.diff)==null||ho.forEach(ir=>{var ko;const Xo=(ko=Yo==null?void 0:Yo.find(rl=>rl.name===Jo[ir]))==null?void 0:ko.value,hi=pu(il({},co.extra),{id:`${Vo}_${ir}`,difficulty:ir,item_bank_num:Xo,tag_discipline_id:Vo});Xo>0&&Wa.current.set(`${Vo}_${ir}`,hi)})}ut([...Wa.current.values()])}},(Nr==null?void 0:Nr.length)===0?b.createElement(ma.Z,{ButtonTwo:b.createElement("a",{target:"_blank",href:"/problemset"},"\u524D\u5F80\u9898\u5E93\uFF0C\u65B0\u589E\u66F4\u591A\u8BD5\u9898",">")}):b.createElement(la.default,{rowSelection:xt(it)===Ue.OnlyKnowledge?{preserveSelectedRowKeys:!0,type:"checkbox",onChange(Ea,so){console.log("table-selectedRowKeys:",Ea,so),fr(Ea),ut(so)},getCheckboxProps:Ea=>({disabled:Ea.item_bank_num===0}),selectedRowKeys:Uo}:void 0,columns:$o,dataSource:Nr,loading:Zt,scroll:{y:480},rowKey:"id",pagination:!1})))},Zo=Object.defineProperty,ka=Object.defineProperties,pr=Object.getOwnPropertyDescriptors,Fo=Object.getOwnPropertySymbols,yr=Object.prototype.hasOwnProperty,gi=Object.prototype.propertyIsEnumerable,Pi=(it,ut,kt)=>ut in it?Zo(it,ut,{enumerable:!0,configurable:!0,writable:!0,value:kt}):it[ut]=kt,wi=(it,ut)=>{for(var kt in ut||(ut={}))yr.call(ut,kt)&&Pi(it,kt,ut[kt]);if(Fo)for(var kt of Fo(ut))gi.call(ut,kt)&&Pi(it,kt,ut[kt]);return it},Ni=(it,ut)=>ka(it,pr(ut)),Ji=(it,ut,kt)=>new Promise((Tn,kn)=>{var nn=Zt=>{try{_t(kt.next(Zt))}catch(In){kn(In)}},dn=Zt=>{try{_t(kt.throw(Zt))}catch(In){kn(In)}},_t=Zt=>Zt.done?Tn(Zt.value):Promise.resolve(Zt.value).then(nn,dn);_t((kt=kt.apply(it,ut)).next())});const Jl={\u7B80\u5355:1,\u9002\u4E2D:2,\u56F0\u96BE:3};var vu=({open:it,onCancel:ut,setVisibleModalType:kt,currentItemType:Tn})=>{var kn;const{data:nn,dispatch:dn}=(0,b.useContext)(Re),[_t,Zt]=(0,b.useState)([]),[In,xa]=(0,b.useState)(),Xr=(kn=nn==null?void 0:nn.item_types)==null?void 0:kn.find(ho=>ho.item_type===Tn);(0,b.useEffect)(()=>{var ho,Vo,Jo;if(it){const co=(ho=nn==null?void 0:nn.item_types)==null?void 0:ho.find(Yo=>Yo.item_type===Tn);if((co==null?void 0:co.random_rule_type)!==Ue.Shixun){const Yo=Wt[co==null?void 0:co.random_rule_type]||[];Zt(Yo);const Po=(Jo=(Vo=nn==null?void 0:nn.item_types)==null?void 0:Vo.find(ir=>ir.item_type===Tn))==null?void 0:Jo.contents;switch(console.log("----xxx",xt(Yo)),xt(Yo)){case Ue.OnlyDifficulty:{fr(Po.map(ir=>ir.difficulty));break}case Ue.OnlyFileFolder:{fr({my:Po==null?void 0:Po.filter(ir=>parseInt(ir.teacher_group_id)!=="NaN"&&!ir.teacher_group_id&&ir.teacher_group_id!==0),public:Po==null?void 0:Po.filter(ir=>parseInt(ir.teacher_group_id)>=0)}),xa({my:Po==null?void 0:Po.filter(ir=>parseInt(ir.teacher_group_id)!=="NaN"&&!ir.teacher_group_id&&ir.teacher_group_id!==0),public:Po==null?void 0:Po.filter(ir=>parseInt(ir.teacher_group_id)>=0)});break}case Ue.FileFolderAndKnowledge:{fr({my:Po==null?void 0:Po.filter(ir=>parseInt(ir.teacher_group_id)!=="NaN"&&!ir.teacher_group_id&&ir.teacher_group_id!==0),public:Po==null?void 0:Po.filter(ir=>parseInt(ir.teacher_group_id)>=0)}),xa({my:Po==null?void 0:Po.filter(ir=>parseInt(ir.teacher_group_id)!=="NaN"&&!ir.teacher_group_id&&ir.teacher_group_id!==0),public:Po==null?void 0:Po.filter(ir=>parseInt(ir.teacher_group_id)>=0)});break}case Ue.FileFolderAndDiff:{fr(Po),xa(Po);break}case Ue.All:{fr(Po),xa(Po);break}default:fr(Po)}}}},[it]);const[Nr,$o]=(0,b.useState)([]);(0,b.useEffect)(()=>{it&&we({item_type:Tn}).then(ho=>{ho.status===0&&$o(ho.data)})},[it]),(0,b.useEffect)(()=>{console.log("selectData",In)},[In]);const[Uo,fr]=(0,b.useState)(),[Wa,Ea]=(0,b.useState)(!0);console.log("isFirst:",Wa);const so=ho=>{Zt(ho),xa([]),fr([]),Ea(!1)};return b.createElement(vn.default,{title:"\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219",width:948,closable:!0,centered:!0,open:it,onCancel:ut,destroyOnClose:!0,onOk:()=>Ji(void 0,null,function*(){var ho,Vo,Jo,co,Yo,Po,ir;if(In===void 0){kt("");return}if(Object.prototype.toString.call(In)==="[object Object]"&&!((ho=In.my)!=null&&ho.length)&&!((Vo=In.public)!=null&&Vo.length)){Be.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}if(!Object.keys(In).length&&!(In!=null&&In.length)){Be.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}const ko=xt(_t);switch(ko){case Ue.OnlyFileFolder:{dn({type:"editRule",payload:{itemType:Tn,tableData:[...In.my||[],...In.public||[]],randomRuleType:ko}});break}case Ue.OnlyDifficulty:{const Xo=(co=(Jo=nn==null?void 0:nn.item_types)==null?void 0:Jo.find(rl=>rl.item_type===Tn))==null?void 0:co.contents;let hi=[{},{value:(Yo=Nr.find(rl=>rl.name==="\u7B80\u5355"))==null?void 0:Yo.value},{value:(Po=Nr.find(rl=>rl.name==="\u9002\u4E2D"))==null?void 0:Po.value},{value:(ir=Nr.find(rl=>rl.name==="\u56F0\u96BE"))==null?void 0:ir.value}];dn({type:"editRule",payload:{itemType:Tn,tableData:In.map((rl,lu)=>{var Je,ot,mt,At;return{difficulty:rl,id:lu,quanlity:((ot=(Je=Xo==null?void 0:Xo.filter(gn=>gn.id===lu))==null?void 0:Je[0])==null?void 0:ot.quanlity)||1,item_bank_num:(Nr==null?void 0:Nr.length)===1?(mt=Nr[0])==null?void 0:mt.value:(At=hi==null?void 0:hi[rl])==null?void 0:At.value}}),randomRuleType:ko}});break}case Ue.OnlyKnowledge:{dn({type:"editRule",payload:{itemType:Tn,tableData:In.map(Xo=>Ni(wi({},Xo),{quanlity:Xo.quanlity||1})),randomRuleType:ko}});break}case Ue.KnowledgeAndDiff:{dn({type:"editRule",payload:{itemType:Tn,tableData:In.map(Xo=>Ni(wi({},Xo),{quanlity:Xo.quanlity||1})),randomRuleType:ko}});break}case Ue.FileFolderAndDiff:{dn({type:"editRule",payload:{itemType:Tn,tableData:In.map(Xo=>Ni(wi({},Xo),{quanlity:Xo.quanlity||1})),randomRuleType:ko}});break}case Ue.FileFolderAndKnowledge:{dn({type:"editRule",payload:{itemType:Tn,tableData:[...In.my||[],...In.public||[]],randomRuleType:ko}});break}case Ue.All:{dn({type:"editRule",payload:{itemType:Tn,tableData:In.map(Xo=>Ni(wi({},Xo),{quanlity:Xo.quanlity||1})),randomRuleType:ko}});break}}kt("")})},b.createElement(wt.default.Group,{className:`${Aa.ruleCheckBox}`,style:{marginBottom:8},value:_t,onChange:ho=>{var Vo;_t!=null&&_t.length&&((Vo=Xr==null?void 0:Xr.contents)==null?void 0:Vo.length)>0?vn.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:()=>so(ho)}):so(ho)},options:[{label:"\u6307\u5B9A\u6587\u4EF6\u5939\u62BD\u9898",value:Yt.FileFolder},{label:"\u6307\u5B9A\u96BE\u5EA6\u62BD\u9898",value:Yt.Difficulty},{label:"\u6307\u5B9A\u77E5\u8BC6\u70B9\u62BD\u9898",value:Yt.Knowledge}]}),_t.includes(Yt.FileFolder)?b.createElement(Ii,{defaultData:Uo,selectData:In,ruleValue:_t,setSelectData:xa,currentItemType:Tn}):_t.includes(Yt.Knowledge)?b.createElement(Ao,{defaultData:Uo,isFirst:Wa,ruleValue:_t,setSelectData:xa,currentItemType:Tn}):_t.includes(Yt.Difficulty)?b.createElement("div",{style:{marginTop:12}},b.createElement("span",{className:"mr20",style:{color:"#666"}},"\u96BE\u5EA6"),b.createElement(wt.default.Group,{style:{columnGap:12},options:Nr.map(ho=>({label:ho.name,value:Jl[ho.name]})),value:In||Uo,onChange:ho=>xa(ho)})):null)},vo=({open:it,onCancel:ut,setVisibleModalType:kt,currentItemType:Tn})=>it?b.createElement(vu,{open:it,onCancel:ut,setVisibleModalType:kt,currentItemType:Tn}):null,hl=ee(83062),Yl=ee(99678),Xl=ee(89779),al=ee(85725),Gi=ee(28706),ql=ee(17663),Ll=ee(20670),Vt=({open:it,onCancel:ut,onOk:kt})=>{const{data:Tn}=(0,b.useContext)(Re),kn=(0,Yl.g)(),[nn,dn,_t,Zt]=(0,jn.U)(Xl.Gm,{page:1,limit:10,keyword:"",diff:"",shixun_publish_status:"",discipline_id:"",sub_discipline_id:"",type:0,include_shixuns:!0,item_type:"SHIXUN"}),[In,xa]=(0,b.useState)(!1);(0,b.useEffect)(()=>{if(it){_t({page:1,limit:10,type:0},!0).then(Wa=>{(Wa==null?void 0:Wa.shixuns_count)===0&&xa(!0)});const fr=Tn.item_types.find(Wa=>Wa.item_type==="PRACTICAL");Nr(fr.item_banks.map(Wa=>Wa.id)),Uo(fr.item_banks)}},[it,Tn]);const[Xr,Nr]=(0,b.useState)([]),[$o,Uo]=(0,b.useState)([]);return b.createElement(vn.default,{title:"\u9009\u62E9\u5B9E\u8BAD\u9898",open:it,width:948,centered:!0,closable:!0,onCancel:ut,onOk:()=>kt($o),destroyOnClose:!0},b.createElement(Oe.Z,{justify:"space-between",className:"mb20",style:{maxHeight:650}},b.createElement(Nn.Z,null,b.createElement(Me.Z,{style:{width:160},size:"large",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:kn,onChange:fr=>{_t({page:1,discipline_id:fr==null?void 0:fr[0],sub_discipline_id:fr==null?void 0:fr[1]})}}),b.createElement(Rn.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:fr=>_t({page:1,diff:fr})}),b.createElement(Rn.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:fr=>_t({page:1,shixun_publish_status:fr})})),b.createElement(Ut.t7,{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",style:{width:290},onChange:fr=>{_t({keyword:fr,page:1})}})),In?b.createElement("div",null,b.createElement(ma.Z,{customText:"\u6682\u65E0\u6570\u636E",ButtonText:"\u524D\u5F80\u5B9E\u8DF5\u9879\u76EE\u5E93\uFF0C\u6DFB\u52A0\u66F4\u591A\u8BD5\u9898>",ButtonClick:()=>(0,Gi.xg)("/shixuns")})):b.createElement(la.default,{loading:dn,rowKey:"id",columns:[{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"30%",ellipsis:{showTitle:!0},render:(fr,Wa)=>b.createElement("div",{style:{display:"flex",alignItems:"center"}},b.createElement("div",{className:Wa!=null&&Wa.high_resources_consume?ln.title:"",title:fr||"--"},b.createElement(al.Z,{key:1,showLines:1,showTextOnly:!0,value:fr||"--"})),(Wa==null?void 0:Wa.high_resources_consume)&&b.createElement(Ll.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u96BE\u5EA6",dataIndex:"level"},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",render:(fr,Wa,Ea)=>b.createElement("span",null,fr||"- -")},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"study_count"},{title:b.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",b.createElement(hl.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},b.createElement(ql.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",width:100,render:(fr,Wa,Ea)=>b.createElement("span",null,fr||"- -")},{title:"\u64CD\u4F5C",render(fr,Wa){const{title:Ea,challenge_names:so,author_name:ho,identifier:Vo,author_school_name:Jo,study_count:co}=Wa||{};return b.createElement("div",null,b.createElement("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:()=>{vn.default.confirm({title:"\u9898\u76EE\u8BE6\u60C5",closable:!0,width:1e3,centered:!0,icon:null,footer:null,content:b.createElement("div",null,b.createElement(al.Z,{value:Ea,style:{marginBottom:18}}),b.createElement("div",{className:ln.challengeNameWrapper},so.map((Yo,Po)=>b.createElement("div",{className:ln.challengeName,key:Po},"\u7B2C",(0,Gi.EM)(Po+1),"\u9898\xA0",Yo))),b.createElement(Oe.Z,{className:ln.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},b.createElement(Nn.Z,{className:ln.shixunInfoWrapper},b.createElement("span",null,"\u521B\u5EFA\u8005"),b.createElement("span",{className:ln.shixunInfo},ho.split("\u3001")[0]),b.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),b.createElement("span",{className:ln.shixunInfo},Jo),b.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{className:ln.shixunInfo},co)),b.createElement(se.ZP,{type:"primary",className:ln.btnToDetail,onClick:()=>(0,Gi.xg)(`/shixuns/${Vo}/challenges?exercise=true`)},b.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),(Wa==null?void 0:Wa.shixun_tag_num)===1&&b.createElement("a",{target:"_blank",href:`/shixuns/${Wa==null?void 0:Wa.identifier}/challenges`,style:{marginLeft:10}},"\u53BB\u53D1\u5E03"))}}],dataSource:Zt==null?void 0:Zt.items,rowSelection:{selectedRowKeys:Xr,preserveSelectedRowKeys:!0,getCheckboxProps:fr=>({disabled:fr.shixun_tag_num===1}),onChange(fr,Wa){var Ea,so,ho;console.log(fr),Nr(fr);const Vo=[];for(const co of $o)fr.includes(co.id)&&Vo.push(co);const Jo=Vo.map(co=>co.id);for(const co of Wa)co&&fr.includes(co.id)&&!Jo.includes(co.id)&&Vo.push({id:co.id,difficulty:co.level,identifier:co.identifier,name:co.name,real_name:(Ea=co==null?void 0:co.author_name)==null?void 0:Ea.split("\u3001")[0],school_name:co.author_school_name,challenge_names:co.challenge_names,challenges:(so=co.challenge_names)==null?void 0:so.map((Yo,Po)=>({subject:Yo,id:Po,score:5})),score:((ho=co.challenge_names)==null?void 0:ho.length)*5,study_count:co.study_count,challenges_count:co.challenges_count});Uo(Vo)}},pagination:{current:nn.page,pageSize:nn.limit,total:Zt==null?void 0:Zt.items_count,showTotal:fr=>b.createElement("span",null,"\u5171\xA0",b.createElement("span",{style:{color:"#165DFF"}},fr),"\xA0\u6761\u6570\u636E"),showQuickJumper:!0,onChange(fr,Wa){_t({page:fr,limit:Wa})},size:"default"},scroll:{y:400}}))},qt=ee(66012),bn=ee(67294),et=Object.defineProperty,Pn=Object.defineProperties,ha=Object.getOwnPropertyDescriptors,Sa=Object.getOwnPropertySymbols,on=Object.prototype.hasOwnProperty,Dn=Object.prototype.propertyIsEnumerable,un=(it,ut,kt)=>ut in it?et(it,ut,{enumerable:!0,configurable:!0,writable:!0,value:kt}):it[ut]=kt,oa=(it,ut)=>{for(var kt in ut||(ut={}))on.call(ut,kt)&&un(it,kt,ut[kt]);if(Sa)for(var kt of Sa(ut))Dn.call(ut,kt)&&un(it,kt,ut[kt]);return it},Ha=(it,ut)=>Pn(it,ha(ut)),ar=({onDelete:it,list:ut,onSelect:kt})=>{const[Tn,kn]=(0,b.useState)(!1),{dispatch:nn,disabled:dn}=(0,b.useContext)(Re),_t=(Nr,$o,Uo)=>{const fr=Array.from(Nr),[Wa]=fr.splice($o,1);return fr.splice(Uo,0,Wa),fr},[Zt,In]=(0,b.useState)(null),[xa,Xr]=(0,b.useState)(!1);return bn.createElement(qt.Z5,{onDragStart:()=>{Xr(!0)},onDragEnd:Nr=>{if(Xr(!1),!Nr.destination)return;const $o=_t(ut,Nr.source.index,Nr.destination.index);nn({type:"updateItemTypes",payload:$o})}},bn.createElement(qt.bK,{droppableId:"droppable"},(Nr,$o)=>bn.createElement("div",Ha(oa({},Nr.droppableProps),{ref:Nr.innerRef}),bn.createElement(Ge.Z,{spinning:Tn},ut.map((Uo,fr)=>bn.createElement(qt._l,{key:fr,draggableId:fr.toString(),index:fr,isDragDisabled:Zt!==Uo.item_type},(Wa,Ea)=>bn.createElement(Oe.Z,Ha(oa(oa({align:"middle",wrap:!1,ref:Wa.innerRef},Wa.draggableProps),Wa.dragHandleProps),{className:`${ln.dragItem} ${xa?ln.dragging:""}`}),bn.createElement(Nn.Z,{className:ln.contentArea,onClick:()=>{kt(Uo.item_type),(0,Gi.k3)()}},bn.createElement("span",{className:ln.blackText},(0,Gi.EM)(fr+1),"\u3001\u3010",Uo.item_type_text,"\u3011"),bn.createElement(hl.Z,{title:`\uFF08${Uo.item_bank_count}\u5C0F\u9898\uFF0C\u5171${parseFloat(Uo.total_score).toFixed(1)}\u5206\uFF09`},bn.createElement("span",{className:ln.greyText},`\uFF08${Uo.item_bank_count}\u5C0F\u9898\uFF0C\u5171${parseFloat(Uo.total_score).toFixed(1)}\u5206\uFF09`))),!dn&&bn.createElement(bn.Fragment,null,bn.createElement(hl.Z,{title:"\u957F\u6309\u53EF\u8FDB\u884C\u62D6\u62FD\u6392\u5E8F",open:Zt===Uo.item_type&&!xa},bn.createElement("div",{style:{cursor:"grab"},className:`${ln.iconWrapper} ${xa?ln.hidden:""}`,onMouseEnter:()=>{In(Uo.item_type)},onMouseLeave:()=>In(null)},bn.createElement("i",{className:`iconfont icon-tuodong1 ${ln.dragIcon}`}))),bn.createElement(hl.Z,{title:"\u5220\u9664"},bn.createElement("div",{className:`${ln.iconWrapper} ${xa?ln.hidden:""}`,style:{cursor:"pointer"},onClick:()=>it(Uo.item_type)},bn.createElement("i",{className:`iconfont icon-shanchu12 ${ln.deleteIcon}`})))))))),Nr.placeholder)))},br=ee(12845),_a={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"},aa=ee(73631),Xt=ee(31328);const Wn=(it,ut,kt,Tn)=>{const kn={[Ue.OnlyDifficulty]:[{title:"\u96BE\u5EA6",key:"difficulty",render(nn,dn){const{difficulty:_t}=dn;return b.createElement("span",{style:{color:Lt[_t].color}},Lt[_t].label)}}],[Ue.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(nn,dn){return`${nn}`}}],[Ue.OnlyFileFolder]:[{title:"\u6587\u4EF6\u5939",render(nn,dn,_t){const{group_name:Zt,teacher_group_name:In}=dn,xa=Zt||In,Xr=In?Xt:aa;return b.createElement("div",{style:{display:"flex"}},b.createElement("img",{src:Xr,className:_a.folderIcon})," ",b.createElement(hl.Z,{title:xa},b.createElement("span",{className:_a.titles},xa)))}},{title:"\u7C7B\u578B",render(nn,dn){const{teacher_group_name:_t}=dn;return b.createElement("span",null,_t?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}}],[Ue.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(nn,dn){const{difficulty:_t}=dn;return b.createElement("span",{style:{color:Lt[_t].color}},Lt[_t].label)}}],[Ue.FileFolderAndKnowledge]:[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",ellipsis:!0},{title:"\u6587\u4EF6\u5939",render(nn,dn){const{group_name:_t,teacher_group_name:Zt}=dn,In=_t||Zt,xa=Zt?Xt:aa;return b.createElement("div",{style:{display:"flex"}},b.createElement("img",{src:xa,className:_a.folderIcon})," ",b.createElement(hl.Z,{title:In},b.createElement("span",{className:_a.titles},In)))}},{title:"\u7C7B\u578B",render(nn,dn){const{teacher_group_name:_t}=dn;return b.createElement("span",null,_t?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}}],[Ue.FileFolderAndDiff]:[{title:"\u6587\u4EF6\u5939",render(nn,dn){const{group_name:_t,teacher_group_name:Zt}=dn,In=_t||Zt,xa=Zt?Xt:aa;return b.createElement("div",{style:{display:"flex"}},b.createElement("img",{src:xa,className:_a.folderIcon})," ",b.createElement(hl.Z,{title:In},b.createElement("span",{className:_a.titles},In)))}},{title:"\u7C7B\u578B",render(nn,dn){const{teacher_group_name:_t}=dn;return b.createElement("span",null,_t?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}},{title:"\u96BE\u5EA6",key:"difficulty",render(nn,dn){const{difficulty:_t}=dn;return b.createElement("span",{style:{color:Lt[_t].color}},Lt[_t].label)}}],[Ue.All]:[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",ellipsis:!0},{title:"\u6587\u4EF6\u5939",render(nn,dn){const{group_name:_t,teacher_group_name:Zt,teacher_group_id:In}=dn,xa=_t||Zt,Xr=In||In===0?Xt:aa;return b.createElement("div",{style:{display:"flex"}},b.createElement("img",{src:Xr,className:_a.folderIcon})," ",b.createElement(hl.Z,{title:xa},b.createElement("span",{className:_a.titles},xa)))}},{title:"\u7C7B\u578B",render(nn,dn){const{teacher_group_id:_t}=dn;return b.createElement("span",null,_t||_t===0?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}},{title:"\u96BE\u5EA6",key:"difficulty",render(nn,dn){const{difficulty:_t}=dn;return b.createElement("span",{style:{color:Lt[_t].color}},Lt[_t].label)}}],[Ue.Shixun]:[]};for(const nn of Object.values(kn))nn.push({title:"\u62BD\u9898\u6570\u91CF",key:"quanlity",render(dn,_t){const{item_bank_num:Zt,quanlity:In,id:xa,teacher_group_id:Xr}=_t||{};return b.createElement(Oe.Z,{align:"middle"},b.createElement(ye.Z,{disabled:Tn,min:1,max:Zt,size:"large",precision:0,value:In,onChange:Nr=>{ut({type:"changeQuestionNum",payload:{itemType:kt,id:xa,num:Nr,teacher_group_id:Xr}})}}),b.createElement("span",{className:"ml10 font14",style:{color:"#333333"}},"/",Zt))}},{title:"\u64CD\u4F5C",key:"action",align:"right",render(dn,_t){const{id:Zt,is_share:In}=_t;return Tn?b.createElement("span",{className:"cursorNotAllowed c-grey-999"},"\u5220\u9664"):b.createElement("span",{className:_a.deleteBtn,onClick:()=>{ut({type:"deleteRule",payload:{itemType:kt,id:Zt,is_share:In}})}},"\u5220\u9664")}});return kn[it]},ta=({setVisibleModalType:it})=>{var ut,kt,Tn,kn;const{data:nn,dispatch:dn,disabled:_t}=(0,b.useContext)(Re),Zt=(ut=nn==null?void 0:nn.item_types)==null?void 0:ut.find(In=>In.item_type==="PRACTICAL");return b.createElement(br.Z,{className:_a.timelineWrapper,items:[{children:b.createElement("div",{style:{transform:"translateY(-4px)"}},b.createElement(Oe.Z,{className:"mb20",align:"middle",justify:"space-between"},b.createElement(Nn.Z,null,b.createElement("span",{className:_a.title},"\u9898\u5E93\u9009\u9898"),b.createElement("span",{className:_a.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(Ut.op,{style:{width:102},onClick:()=>it("selectShixun")},"\u4ECE\u9898\u5E93\u9009\u62E9")),((kt=Zt==null?void 0:Zt.item_banks)==null?void 0:kt.length)===0?b.createElement(ma.Z,{customText:"\u6682\u65E0\u5F85\u62BD\u8BD5\u9898\uFF0C\u8BF7\u5148\u4ECE\u9898\u5E93\u8FDB\u884C\u9009\u62E9\uFF5E"}):b.createElement(la.default,{rowKey:"id",className:"mb10",columns:[{title:"\u5E8F\u53F7",width:60,render(In,xa,Xr){return b.createElement("span",null,Xr+1)}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"40%",ellipsis:{showTitle:!0},render:(In,xa)=>b.createElement("div",{style:{display:"flex",alignItems:"center"}},b.createElement("div",{className:xa!=null&&xa.high_resources_consume?_a.q_title:"",title:In||"--"},b.createElement(al.Z,{key:1,showLines:1,showTextOnly:!0,value:In})),(xa==null?void 0:xa.high_resources_consume)&&b.createElement(Ll.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:(In,xa,Xr)=>b.createElement("span",null,In||"- -")},{title:"\u96BE\u5EA6",dataIndex:"difficulty"},{title:"\u64CD\u4F5C",align:"right",width:180,render(In,xa,Xr){const{id:Nr,identifier:$o,name:Uo,challenge_names:fr=[],real_name:Wa,school_name:Ea,study_count:so,challenges:ho=[]}=xa||{};return b.createElement("div",null,b.createElement("span",{style:{color:"#165DFF",cursor:"pointer",marginLeft:20},onClick:()=>{vn.default.confirm({title:"\u9898\u76EE\u8BE6\u60C5",closable:!0,width:1e3,centered:!0,icon:null,footer:null,content:b.createElement("div",null,b.createElement(al.Z,{value:Uo,style:{marginBottom:18}}),b.createElement("div",{className:_a.challengeNameWrapper},ho==null?void 0:ho.map((Vo,Jo)=>b.createElement("div",{className:_a.challengeName,key:Jo},"\u7B2C",(0,Gi.EM)(Jo+1),"\u9898\xA0",Vo==null?void 0:Vo.subject))),b.createElement(Oe.Z,{className:_a.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},b.createElement(Nn.Z,{className:_a.shixunInfoWrapper},b.createElement("span",null,"\u521B\u5EFA\u8005"),b.createElement("span",{className:_a.shixunInfo},Wa),b.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),b.createElement("span",{className:_a.shixunInfo},Ea),b.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{className:_a.shixunInfo},so)),b.createElement(se.ZP,{type:"primary",className:_a.btnToDetail,onClick:()=>(0,Gi.xg)(`/shixuns/${$o}/challenges?exercise=true`)},b.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),!_t&&b.createElement("span",{onClick:()=>{dn({type:"deleteShixunQuestion",payload:{shixunId:Nr}})},className:`ml20 ${_a.deleteBtn}`},"\u5220\u9664"))}}],dataSource:(Zt==null?void 0:Zt.item_banks)||[],pagination:!1}))},{children:b.createElement(Oe.Z,{style:{transform:(Tn=Zt==null?void 0:Zt.item_banks)!=null&&Tn.length?"translateY(-8px)":"none"},align:"middle",justify:"space-between"},b.createElement("span",{className:_a.title},"\u5DF2\u9009\u5B9E\u8BAD\u9898\u4E2D\u968F\u673A\u62BD\u9898"),!!((kn=Zt==null?void 0:Zt.item_banks)!=null&&kn.length)&&b.createElement(Nn.Z,null,b.createElement(Oe.Z,{align:"middle"},b.createElement("span",{className:_a.normalText},"\u62BD\u9898\u6570\u91CF"),b.createElement(ye.Z,{min:0,disabled:_t,max:Zt==null?void 0:Zt.item_bank_num,size:"large",precision:0,className:"ml10 mr10",value:(Zt==null?void 0:Zt.item_bank_count)||1,onChange:In=>dn({type:"changeQuestionNum",payload:{num:In||1,itemType:"PRACTICAL"}})}),b.createElement("span",{className:`${_a.normalText} mr30`},"/",Zt==null?void 0:Zt.item_bank_num),b.createElement("span",{className:_a.normalText},"\u6BCF\u9898\u5206\u503C"),b.createElement(ye.Z,{disabled:_t,min:0,max:100,precision:1,size:"large",precision:1,className:"ml10 mr10",value:Zt==null?void 0:Zt.score,onChange:In=>dn({type:"changeQuestionScore",payload:{score:In,itemType:"PRACTICAL"}})}),b.createElement("span",{className:_a.normalText},"\u5206"))))}]})};var Er=({setVisibleModalType:it,currentItemType:ut,onDelete:kt})=>{var Tn,kn;const nn=(0,je.useParams)(),{data:dn,dispatch:_t,disabled:Zt}=(0,b.useContext)(Re),In=((Tn=dn==null?void 0:dn.item_types)==null?void 0:Tn.findIndex(Xr=>Xr.item_type===ut))+1,xa=(kn=dn==null?void 0:dn.item_types)==null?void 0:kn.find(Xr=>Xr.item_type===ut);return b.createElement("div",{className:_a.questionDetailWrapper},b.createElement(Oe.Z,{justify:"space-between",align:"middle",className:"mb30"},b.createElement(Nn.Z,null,b.createElement("span",{className:_a.questionTitle},`${(0,Gi.EM)(In)}\u3001${xa==null?void 0:xa.item_type_text}`),b.createElement("span",{className:_a.questionScoreInfo},"\uFF08",b.createElement("span",{style:{color:"#3061D0"}},xa==null?void 0:xa.item_bank_count),"\u5C0F\u9898 ",b.createElement("span",null,"\uFF0C\u5171",b.createElement("span",{style:{color:"#3061D0"}},xa==null?void 0:xa.total_score),"\u5206"),"\uFF09")),!Zt&&b.createElement("i",{className:`iconfont icon-shanchutimu ${_a.deleteIcon}`,onClick:()=>kt(ut)})),ut==="PRACTICAL"?b.createElement(ta,{setVisibleModalType:it}):b.createElement(b.Fragment,null,(xa==null?void 0:xa.contents.length)===0?b.createElement(ma.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:(nn==null?void 0:nn.id)&&b.createElement(Oe.Z,{justify:"center",className:"mt30"},b.createElement(Ut.op,{style:{width:136,marginTop:-10},onClick:()=>it("rule")},"\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219"))}):b.createElement(b.Fragment,null,b.createElement(Oe.Z,{justify:"space-between",align:"middle",className:"mb20"},b.createElement(Nn.Z,null,b.createElement(Oe.Z,{align:"middle"},b.createElement("span",{className:`${_a.normalText}`},"\u6BCF\u9898\u5206\u503C"),b.createElement(ye.Z,{disabled:Zt,size:"large",className:"ml10 mr10",min:.1,max:100,value:xa==null?void 0:xa.score,precision:1,onChange:Xr=>_t({type:"changeQuestionScore",payload:{score:Xr,itemType:ut}})}),b.createElement("span",{className:_a.normalText},"\u5206"))),(nn==null?void 0:nn.id)&&b.createElement(Ut.op,{onClick:()=>it("rule")},"\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219")),b.createElement(la.default,{columns:Wn(xa==null?void 0:xa.random_rule_type,_t,ut,Zt),dataSource:xa==null?void 0:xa.contents,pagination:!1,rowKey:"id"}))))},Cr=ee(60580),Qr=ee(15835),Br=ee(52262),Kr=ee(32637),Ca=ee(67294),Wr=Object.defineProperty,Ko=Object.defineProperties,To=Object.getOwnPropertyDescriptors,si=Object.getOwnPropertySymbols,Wo=Object.prototype.hasOwnProperty,di=Object.prototype.propertyIsEnumerable,uo=(it,ut,kt)=>ut in it?Wr(it,ut,{enumerable:!0,configurable:!0,writable:!0,value:kt}):it[ut]=kt,ti=(it,ut)=>{for(var kt in ut||(ut={}))Wo.call(ut,kt)&&uo(it,kt,ut[kt]);if(si)for(var kt of si(ut))di.call(ut,kt)&&uo(it,kt,ut[kt]);return it},Fi=(it,ut)=>Ko(it,To(ut)),Li=(it,ut,kt)=>new Promise((Tn,kn)=>{var nn=Zt=>{try{_t(kt.next(Zt))}catch(In){kn(In)}},dn=Zt=>{try{_t(kt.throw(Zt))}catch(In){kn(In)}},_t=Zt=>Zt.done?Tn(Zt.value):Promise.resolve(Zt.value).then(nn,dn);_t((kt=kt.apply(it,ut)).next())}),Al=({})=>{var it,ut,kt,Tn,kn,nn,dn,_t,Zt,In,xa,Xr,Nr,$o,Uo;const[fr]=(0,je.useSearchParams)(),Wa=(0,je.useParams)(),{data:Ea,dispatch:so,setPreview:ho,getData:Vo,handlePreview:Jo,disabled:co}=(0,b.useContext)(Re),[Yo,Po]=(0,b.useState)(""),[ir,ko]=(0,b.useState)((ut=(it=Ea==null?void 0:Ea.item_types)==null?void 0:it[0])==null?void 0:ut.item_type),[Xo,hi]=(0,b.useState)(!0),[rl,lu]=(0,b.useState)(!1),Je=(gn,Gn)=>Li(void 0,null,function*(){var Fa,ca,$n,cn,ua,Ka;const qr=Ea.item_types.map(Xn=>Xn.item_type_text),$r=(Fa=Ea==null?void 0:Ea.item_types)==null?void 0:Fa.filter(Xn=>{var dr,he;return((dr=Xn.contents)==null?void 0:dr.length)>0||((he=Xn==null?void 0:Xn.item_banks)==null?void 0:he.length)>0});if(Ea.sort_by_item_type=qr,!((ca=Ea.item_types)!=null&&ca.length)){Be.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}if(($r==null?void 0:$r.length)===0){Be.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}let ya=()=>Li(void 0,null,function*(){const Xn=(0,Ye.cloneDeep)(Ea),{item_types:dr}=Xn||{};Xn.item_types=dr.filter(Ee=>Ee.item_type===ir),(yield pe(Wa.id||Wa.categoryId,Xn)).status===0&&(ko(Gn),Be.ZP.success("\u4FDD\u5B58\u6210\u529F"),gn||je.history.push("/paperlibrary"))}),Ba=(cn=($n=Ea==null?void 0:Ea.item_types)==null?void 0:$n.filter(Xn=>Xn.item_type_text==="\u5B9E\u8BAD\u9898")[0])==null?void 0:cn.item_banks,Zn=0;Ba==null||Ba.map(Xn=>{Xn.high_resources_consume&&(Zn=Zn+1)}),console.log(Zn),Zn>0?vn.default.info({centered:!0,icon:null,width:600,okText:"\u6211\u77E5\u9053\u4E86",title:"\u63D0\u793A",content:Ca.createElement("div",null,Ca.createElement("div",{className:ln.tipcontent},Ca.createElement("div",null,Ca.createElement("div",{className:ln.name},"\u60A8\u597D\uFF01",(ua=(0,Br.eY)())==null?void 0:ua.username,"\uFF08",(Ka=(0,Br.eY)())==null?void 0:Ka.login,"\uFF09\uFF1A"),Ca.createElement("div",{className:ln.tip},"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",Ca.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"),Ca.createElement("div",{className:ln.info},Ca.createElement("i",{className:"iconfont icon-xunifangzhenti1 mr10 font26"}),Ca.createElement("span",{className:"mr10",style:{color:"#6A7283"}},"\u9AD8\u6D88\u8017\u5B9E\u9A8C"),Ca.createElement("span",{style:{color:"#232B40"}},`${Zn}\u4E2A`))),Ca.createElement("div",null,Ca.createElement("div",{className:ln.img},Ca.createElement("img",{src:Kr,width:"124px",height:"124px"})),Ca.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")))),onOk:()=>{ya()}}):ya()}),ot=(gn,Gn,Fa,ca=!1)=>Li(void 0,null,function*(){console.log(Ea);const $n=Fi(ti(ti({},Ea.exercise),Wa),{exerciseId:Wa.categoryId,sort_by_item_type:Ea.sort_by_item_type,difficulty:Ea.examination_bank.difficulty,exam_notes:Ea.examination_bank.exam_notes,exercise_name:Ea.examination_bank.name,time:Ea.examination_bank.time,changed_item_type:ir,item_types:Ea.item_types,changed_item_type:ir,sub_discipline_id:Ea.examination_bank.sub_discipline_id});(!gn||Gn===1)&&($n.is_reset=1);const cn=yield(0,Qr.wy)($n);return cn.status===0&&(ca||Be.ZP.success("\u4FEE\u6539\u6210\u529F "),ko(Fa),gn||je.history.push(`/classrooms/${Wa.coursesId}/exercise/${Wa.categoryId}/detail?random=true`)),cn}),mt=gn=>{vn.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,closable:!0,content:Ca.createElement("div",null,"\u786E\u8BA4\u5220\u9664\u8BE5\u9898\u578B\uFF1F"),onOk:()=>Li(void 0,null,function*(){var Gn,Fa,ca,$n;if(Wa.id){if((yield Qe(Wa.id,{item_type:[gn]})).status!==0)return}else{const cn=yield Le(Wa.categoryId,{item_type:[gn]});if(Vo(),cn.status!==0)return}if(so({type:"deleteQuestionType",payload:gn}),gn===ir){const cn=Ze(Ea,{type:"deleteQuestionType",payload:gn});ko(cn.item_types.length?cn.item_types[0].item_type:(Fa=(Gn=Ea==null?void 0:Ea.item_types)==null?void 0:Gn[0])==null?void 0:Fa.item_type)}else ko(($n=(ca=Ea==null?void 0:Ea.item_types)==null?void 0:ca[0])==null?void 0:$n.item_type)})})};(0,b.useEffect)(()=>{var gn;(gn=Ea==null?void 0:Ea.examination_bank)!=null&&gn.name&&hi(!1),(0,Gi.Dk)("\u968F\u673A\u7EC4\u5377")},[(kt=Ea==null?void 0:Ea.examination_bank)==null?void 0:kt.name]);const At=()=>Li(void 0,null,function*(){var gn;let Gn=yield ot(!0,1,ir,!0);if((Gn==null?void 0:Gn.status)===0){const Fa=yield(0,E.ZP)(`/api/exercises/${Wa==null?void 0:Wa.categoryId}/simulate_start_answer.json`,{method:"get",params:{coursesId:Wa==null?void 0:Wa.coursesId,categoryId:Wa==null?void 0:Wa.categoryId}});(Fa==null?void 0:Fa.status)!=-1&&window.open(`/classrooms/${Wa.coursesId}/exercise/${Wa.categoryId}/${(gn=(0,Br.eY)())==null?void 0:gn.login}/initate_answer`)}});return Ca.createElement("div",{className:ln.questionInfo},Ca.createElement("div",{className:"tc mb20"},Ca.createElement(ue.VP,{defaultValue:(Tn=Ea==null?void 0:Ea.examination_bank)==null?void 0:Tn.name,onFinish:gn=>Li(void 0,null,function*(){return so({type:"updateBaseInfo",payload:Fi(ti({},Ea.examination_bank),{name:gn})}),(0,Qr.wy)({exercise_name:gn,exerciseId:Wa==null?void 0:Wa.categoryId}),!0})})),Ca.createElement(Oe.Z,{justify:"center",className:"mb20"},Ca.createElement(Nn.Z,{className:"mr30"},Ca.createElement("span",{className:ln.label},"\u7B54\u9898\u65F6\u957F"),Ca.createElement("span",null,((kn=Ea==null?void 0:Ea.examination_bank)==null?void 0:kn.time)===-1?"\u4E0D\u9650":((nn=Ea==null?void 0:Ea.examination_bank)==null?void 0:nn.time)||"\u4E0D\u9650")),Ca.createElement(Nn.Z,{className:"mr30"},Ca.createElement("span",{className:ln.label},"\u96BE\u5EA6"),Ca.createElement("span",null,(_t=Lt[`${(dn=Ea==null?void 0:Ea.examination_bank)==null?void 0:dn.difficulty}`])==null?void 0:_t.label)),Ca.createElement(Nn.Z,{className:"mr30"},Ca.createElement("span",{className:ln.label},"\u8BD5\u9898\u603B\u6570"),Ca.createElement("span",null,((Zt=Ea==null?void 0:Ea.examination_bank)==null?void 0:Zt.question_count)||0)),Ca.createElement(Nn.Z,null,Ca.createElement("span",{className:ln.label},"\u603B\u5206"),Ca.createElement("span",null,((xa=(In=Ea==null?void 0:Ea.examination_bank)==null?void 0:In.total_score)==null?void 0:xa.toFixed(1))||0))),Ca.createElement("div",{className:ln.content,style:{border:((Xr=Ea==null?void 0:Ea.item_types)==null?void 0:Xr.length)<=0&&"none"}},((Nr=Ea==null?void 0:Ea.item_types)==null?void 0:Nr.length)>0?Ca.createElement(Oe.Z,{wrap:!1},Ca.createElement(Nn.Z,{flex:"260px",className:ln.leftPart},!co&&Ca.createElement(Oe.Z,{className:"mb20"},Ca.createElement(Ut.op,{style:{margin:"0 15px",borderRadius:2},onClick:()=>Po("setScore")},"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C"),(Wa==null?void 0:Wa.id)&&Ca.createElement(Ut.op,{shape:"default",onClick:()=>Po("questionType")},"\u6DFB\u52A0\u9898\u578B")),Ca.createElement(ar,{list:Ea.item_types,onSelect:gn=>Li(void 0,null,function*(){if(gn===ir)return;hi(!0);const Gn=Ea.item_types.find(Fa=>Fa.item_type===ir);if(ir!=="PRACTICAL"&&Gn.contents.length>0&&(Wa!=null&&Wa.id)){const Fa=(0,Ye.cloneDeep)(Ea),{item_types:ca}=Fa||{};Fa.item_types=ca.filter($n=>$n.item_type===ir);try{(yield pe(Wa.id||Wa.categoryId,Fa)).status===0&&ko(gn)}catch($n){}}else Wa.categoryId?ot(!0,2,gn):Je(!0,gn);hi(!1)}),onDelete:mt})),Ca.createElement(Nn.Z,{flex:1,className:ln.rightPart},Ca.createElement(Ge.Z,{spinning:Xo},Ca.createElement(Er,{setVisibleModalType:Po,currentItemType:ir,onDelete:mt})))):Ca.createElement(ma.Z,{customText:"\u8BF7\u5148\u8BBE\u7F6E\u8BD5\u5377\u9898\u578B",styles:{margin:"70px auto"},ButtonTwo:Ca.createElement(Oe.Z,{justify:"center",className:"mt20"},(Wa==null?void 0:Wa.id)&&Ca.createElement(Ut.op,{style:{width:88},onClick:()=>Po("questionType")},"\u6DFB\u52A0\u9898\u578B"))})),!!(Wa!=null&&Wa.id)&&Ca.createElement("div",{className:ln.fixedBottom},Ca.createElement(Cr.Z,{className:`${ln.previewBtn} mr20`,onClick:()=>Li(void 0,null,function*(){var gn,Gn;const Fa=(gn=Ea==null?void 0:Ea.item_types)==null?void 0:gn.filter(ca=>{var $n,cn;return(($n=ca.contents)==null?void 0:$n.length)>0||((cn=ca==null?void 0:ca.item_banks)==null?void 0:cn.length)>0});if(!((Gn=Ea.item_types)!=null&&Gn.length)){Be.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}if((Fa==null?void 0:Fa.length)===0){Be.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}yield Je(!0,ir),Jo()})},"\u8BD5\u5377\u9884\u89C8"),Ca.createElement(Cr.Z,{type:"primary",className:ln.confirmBtn,onClick:()=>Je()},Ca.createElement("i",{className:"iconfont icon-baocun1 mr5"}),"\u4FDD\u5B58\u8BD5\u5377")),!!(Wa!=null&&Wa.categoryId)&&Ca.createElement("div",{className:ln.fixedBottom,style:{justifyContent:(($o=Ea==null?void 0:Ea.exercise)==null?void 0:$o.exercise_status)!==1?"end":"center"}},Ca.createElement(Cr.Z,{className:`${ln.previewBtn} mr20`,onClick:()=>Li(void 0,null,function*(){var gn,Gn;document.body.scrollIntoView(),je.history.push(`/classrooms/${Wa.coursesId}/exercise/${(gn=Ea==null?void 0:Ea.exercise)==null?void 0:gn.id}/detail?random=${(Gn=Ea==null?void 0:Ea.exercise)==null?void 0:Gn.is_random}`)})},"\u8FD4\u56DE"),((Uo=Ea==null?void 0:Ea.exercise)==null?void 0:Uo.exercise_status)===1&&Ca.createElement(Cr.Z,{className:`${ln.previewBtn} mr20`,onClick:At},"\u6A21\u62DF\u8003\u8BD5"),(Ea==null?void 0:Ea.exercise.exercise_status)===1&&Ca.createElement(Cr.Z,{type:"primary",className:ln.confirmBtn,onClick:()=>ot()},"\u63D0\u4EA4")),Ca.createElement(wa,{open:Yo==="questionType",onCancel:()=>Po(""),onOk:gn=>Li(void 0,null,function*(){var Gn,Fa;const ca=[],$n=Ze(Ea,{type:"setQuestionType",payload:gn}),cn=((Gn=$n==null?void 0:$n.item_types)==null?void 0:Gn.map(ua=>ua.item_type))||[];for(const ua of((Fa=Ea==null?void 0:Ea.item_types)==null?void 0:Fa.map(Ka=>Ka.item_type))||[])cn.includes(ua)||ca.push(ua);Wa.id&&ca.length>0&&(yield Qe(Wa.id,{item_type:ca})).status!==0||(so({type:"setQuestionType",payload:gn}),ko(ir||$n.item_types[0].item_type),Po(""))})}),Ca.createElement(_r,{open:Yo==="setScore",onCancel:()=>{Po("")},onOk:gn=>Li(void 0,null,function*(){console.log("---newData",gn);const Gn=gn.item_types.map(Fa=>({item_type:Fa.item_type,score:Fa.score}));Wa.id?(yield Se(Wa.id,{score_settings:Gn})).status===0&&so({type:"init",payload:gn}):(yield ve(Wa.categoryId,{score_settings:Gn})).status===0&&so({type:"init",payload:gn}),Po("")})}),Ca.createElement(vo,{open:Yo==="rule",onCancel:()=>Po(""),currentItemType:ir,setVisibleModalType:Po}),fr.get("type")==="settings"&&Ca.createElement(Vt,{open:Yo==="selectShixun",onCancel:()=>Po(""),onOk:gn=>{if(console.log(gn),(gn==null?void 0:gn.length)<=0){Be.ZP.info("\u5B9E\u8BAD\u6570\u4E0D\u80FD\u4E3A0");return}so({type:"addShixun",payload:{shixunList:[...gn]}}),Po("")}}))},Hi=ee(38884),ai=ee(67294),bl=Object.defineProperty,Ml=Object.defineProperties,Zl=Object.getOwnPropertyDescriptors,Tl=Object.getOwnPropertySymbols,Cl=Object.prototype.hasOwnProperty,hu=Object.prototype.propertyIsEnumerable,Dl=(it,ut,kt)=>ut in it?bl(it,ut,{enumerable:!0,configurable:!0,writable:!0,value:kt}):it[ut]=kt,iu=(it,ut)=>{for(var kt in ut||(ut={}))Cl.call(ut,kt)&&Dl(it,kt,ut[kt]);if(Tl)for(var kt of Tl(ut))hu.call(ut,kt)&&Dl(it,kt,ut[kt]);return it},Nl=(it,ut)=>Ml(it,Zl(ut)),Kl=(it,ut,kt)=>new Promise((Tn,kn)=>{var nn=Zt=>{try{_t(kt.next(Zt))}catch(In){kn(In)}},dn=Zt=>{try{_t(kt.throw(Zt))}catch(In){kn(In)}},_t=Zt=>Zt.done?Tn(Zt.value):Promise.resolve(Zt.value).then(nn,dn);_t((kt=kt.apply(it,ut)).next())}),Su=()=>{var it,ut,kt,Tn;const[kn,nn]=(0,b.useState)("baseInfo"),dn=(0,je.useDispatch)();(0,b.useEffect)(()=>{dn({type:"globalSetting/footerToggle",payload:!1})},[]);const _t=(0,je.useParams)(),Zt=!!(_t.id||_t.categoryId),[In]=(0,je.useSearchParams)();(0,b.useEffect)(()=>{In.get("type")==="settings"&&nn("settings")},[]);const[xa,Xr]=(0,b.useReducer)(Ze,null),[Nr,$o]=(0,b.useState)(!1),Uo=()=>Kl(void 0,null,function*(){$o(!0);let ir;_t.categoryId?ir=yield qe(_t):ir=yield de(_t.id),$o(!1),ir.status===0&&Xr({type:"init",payload:ir})});(0,b.useEffect)(()=>{Zt?Uo():Xr({type:"init",payload:{examination_bank:{difficulty:2}}})},[_t]);const[fr,Wa]=(0,b.useState)(""),Ea=(ir,ko)=>Kl(void 0,null,function*(){var Xo,hi,rl,lu;const Je=(Xo=xa==null?void 0:xa.item_types)==null?void 0:Xo.filter(At=>{var gn;return((gn=At==null?void 0:At.item_type)==null?void 0:gn.toUpperCase())===(ko==null?void 0:ko.type)}),ot={sort_by_item_type:xa.sort_by_item_type,difficulty:xa.examination_bank.difficulty,exam_notes:xa.examination_bank.exam_notes,name:xa.examination_bank.name,time:xa.examination_bank.time,item_types:xa.item_types};if(ir!==void 0&&!(ir!=null&&ir.single_question_id)){ot.seleted_item_bank_ids=ir==null?void 0:ir.seleted_item_bank_ids,ot.item_types=Je;const At=yield Ce(ot);if((At==null?void 0:At.status)===0){let gn=(0,Ye.cloneDeep)(co.data);gn.questionList=(hi=gn==null?void 0:gn.questionList)==null?void 0:hi.map(Gn=>{var Fa;return Gn.type===ko.type?Nl(iu({},Gn),{questions:((Fa=At==null?void 0:At.questions)==null?void 0:Fa.questions)||[]}):Gn}),Yo({show:!0,data:gn})}return}if(ir!==void 0&&(ir!=null&&ir.single_question_id)){ot.seleted_item_bank_ids=ir==null?void 0:ir.seleted_item_bank_ids,ot.single_question_id=ir==null?void 0:ir.single_question_id,ot.item_types=Je;const At=yield Ce(ot);if((At==null?void 0:At.status)===0){let gn=(0,Ye.cloneDeep)(co.data);gn.questionList=(rl=gn==null?void 0:gn.questionList)==null?void 0:rl.map(Gn=>{var Fa,ca;if(Gn.type===ko.type){const $n=(0,Ye.cloneDeep)(Gn==null?void 0:Gn.questions);return $n.splice(ko.index,1,(ca=(Fa=At==null?void 0:At.questions)==null?void 0:Fa.questions)==null?void 0:ca[0]),console.log(Gn==null?void 0:Gn.questions,$n,ko.index,"new_questions"),Nl(iu({},Gn),{questions:$n})}return Gn}),Yo({show:!0,data:gn})}return}const mt=yield ke(ot);if((mt==null?void 0:mt.status)===0){const At=(0,Gi.ad)(mt);let gn=[];(lu=xa==null?void 0:xa.item_types)==null||lu.forEach(Gn=>{var Fa;const ca=(Fa=At==null?void 0:At.questionList)==null?void 0:Fa.find($n=>Gn.item_type===$n.type);gn.push(ca)}),console.log(xa,"sortList"),gn=(0,Ye.compact)(gn),At.questionList=gn,Yo({show:!0,data:At}),Wa(new Date)}}),so=ir=>{var ko;let Xo=(0,Ye.cloneDeep)(co.data);Xo.questionList=(ko=Xo==null?void 0:Xo.questionList)==null?void 0:ko.map(hi=>hi.type===ir.type?Nl(iu({},hi),{questions_score:ir.scoreTotal}):hi),Xr({type:"changeQuestionScore",payload:{score:ir.score,itemType:ir.type}}),Yo({show:!0,data:Xo})},ho=ir=>Kl(void 0,null,function*(){const ko={sort_by_item_type:xa.sort_by_item_type,difficulty:xa.examination_bank.difficulty,exam_notes:xa.examination_bank.exam_notes,name:xa.examination_bank.name,time:xa.examination_bank.time,item_types:xa.item_types,sub_discipline_id:xa.examination_bank.sub_discipline_id};if(ir){(yield Ke(iu(iu({},ko),ir))).status===0&&Be.ZP.success("\u4FDD\u5B58\u6210\u529F");return}(yield pe(_t.id,ko)).status===0&&(Be.ZP.success("\u63D0\u4EA4\u6210\u529F"),je.history.push("/paperlibrary?defaultActiveKey=0"))}),Vo=(0,Yl.g)(),[Jo]=Fe.default.useForm(),[co,Yo]=(0,b.useState)({show:!1,data:{}}),Po=!!((it=xa==null?void 0:xa.exercise)!=null&&it.exercise_status)&&((ut=xa==null?void 0:xa.exercise)==null?void 0:ut.exercise_status)!==1;return ai.createElement(Re.Provider,{value:{data:xa,disabled:Po,dispatch:Xr,setPreview:Yo,getData:Uo,handlePreview:Ea}},co.show?ai.createElement(Hi.Z,{key:fr,data:co.data,onExchange:Ea,onTypeScore:so,submit:ho,goBack:()=>Yo({show:!1,data:{}})}):ai.createElement("div",{className:ie.wrapper},ai.createElement("div",{className:"edu-container"},ai.createElement(Ne.Z,{className:ie.breadCrumbWrapper,separator:">",items:_t!=null&&_t.categoryId?[{title:ai.createElement(je.Link,{to:`/classrooms/${_t.coursesId}/exercise`},(Tn=(kt=(0,Br.eY)())==null?void 0:kt.course)==null?void 0:Tn.course_name)},{title:ai.createElement(je.Link,{to:`/classrooms/${_t.coursesId}/exercise`},"\u8BD5\u5377\u5217\u8868")},{title:"\u7F16\u8F91\u8BD5\u5377"}]:[{title:ai.createElement(je.Link,{to:"/paperlibrary"},"\u8BD5\u5377\u5E93")},{title:"\u968F\u673A\u7EC4\u5377"}]}),ai.createElement(ue.d4,{activeKey:kn,tabs:[{key:"baseInfo",label:"\u8BD5\u5377\u57FA\u7840\u4FE1\u606F"},{key:"settings",label:"\u7EC4\u5377\u914D\u7F6E"}],onChange:ir=>Kl(void 0,null,function*(){if(ir==="settings"&&(yield Jo.validateFields(),!Zt)){const ko=yield ge(xa);ko.status===0&&je.history.replace(`/randompaper/edit/${ko==null?void 0:ko.examination_bank_id}?type=settings`)}nn(ir)})}),kn==="baseInfo"&&ai.createElement(St,{courseOptions:Vo,setCurrentKey:nn,loading:Nr,form:Jo}),ai.createElement("div",{style:{display:kn==="settings"?"block":"none"}},xa&&ai.createElement(Al,null)))))}},99640:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return Me}});var b=ee(14446),ie={ul:"ul___TdfYY"},Be=ee(32637),Fe=ee(67294),Ne=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,Ge=(Te,Oe)=>{var ye={};for(var se in Te)je.call(Te,se)&&Oe.indexOf(se)<0&&(ye[se]=Te[se]);if(Te!=null&&Ne)for(var se of Ne(Te))Oe.indexOf(se)<0&&ue.call(Te,se)&&(ye[se]=Te[se]);return ye},Me=Te=>{var Oe=Te,{open:ye,onCancel:se}=Oe,E=Ge(Oe,["open","onCancel"]);return Fe.createElement(b.default,{centered:!0,open:ye,title:Fe.createElement("div",{style:{fontWeight:"bold"}},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"),width:"696px",onCancel:se,footer:null},Fe.createElement("div",null,Fe.createElement("div",{className:"tc"},Fe.createElement("img",{className:"mt10",src:Be,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:ie.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\u5934\u6B4C\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")))))}},99678:function(Bt,Ct,ee){"use strict";ee.d(Ct,{g:function(){return Ne}});var b=ee(67294),ie=ee(56443),Be=ee(53430),Fe=(je,ue,Ge)=>new Promise((Ae,Me)=>{var Te=se=>{try{ye(Ge.next(se))}catch(E){Me(E)}},Oe=se=>{try{ye(Ge.throw(se))}catch(E){Me(E)}},ye=se=>se.done?Ae(se.value):Promise.resolve(se.value).then(Te,Oe);ye((Ge=Ge.apply(je,ue)).next())});const Ne=()=>{const[je,ue]=(0,b.useState)([]);return(0,b.useEffect)(()=>{Fe(void 0,null,function*(){const Ae=yield(0,ie.d1)({source:"question"});Ae!=null&&Ae.disciplines&&ue((0,Be.L)(Ae==null?void 0:Ae.disciplines))})},[]),je}},9343:function(Bt,Ct,ee){"use strict";ee.d(Ct,{U:function(){return Ae}});var b=ee(67294),ie=Object.defineProperty,Be=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,je=(Me,Te,Oe)=>Te in Me?ie(Me,Te,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Me[Te]=Oe,ue=(Me,Te)=>{for(var Oe in Te||(Te={}))Fe.call(Te,Oe)&&je(Me,Oe,Te[Oe]);if(Be)for(var Oe of Be(Te))Ne.call(Te,Oe)&&je(Me,Oe,Te[Oe]);return Me},Ge=(Me,Te,Oe)=>new Promise((ye,se)=>{var E=y=>{try{x(Oe.next(y))}catch(z){se(z)}},a=y=>{try{x(Oe.throw(y))}catch(z){se(z)}},x=y=>y.done?ye(y.value):Promise.resolve(y.value).then(E,a);x((Oe=Oe.apply(Me,Te)).next())});function Ae(Me,Te){const[Oe,ye]=(0,b.useState)(Te),[se,E]=(0,b.useState)(!1),[a,x]=(0,b.useState)();return[Oe,se,(z,te=!1)=>Ge(this,null,function*(){const re=te?Te:ue(ue({},Oe),z);E(!0),ye(re);const oe=yield Me(re);return E(!1),x(oe),oe}),a]}},38780:function(Bt,Ct){"use strict";function ee(){const b=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ie=1;ie<arguments.length;ie++){const Be=ie<0||arguments.length<=ie?void 0:arguments[ie];Be&&Object.keys(Be).forEach(Fe=>{const Ne=Be[Fe];Ne!==void 0&&(b[Fe]=Ne)})}return b}Ct.Z=ee},81643:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return b}});const b=ie=>ie?typeof ie=="function"?ie():ie:null},66367:function(Bt,Ct,ee){"use strict";ee.d(Ct,{F:function(){return b},Z:function(){return ie}});function b(Be){return Be!=null&&Be===Be.window}function ie(Be,Fe){var Ne,je;if(typeof window=="undefined")return 0;const ue=Fe?"scrollTop":"scrollLeft";let Ge=0;return b(Be)?Ge=Be[Fe?"pageYOffset":"pageXOffset"]:Be instanceof Document?Ge=Be.documentElement[ue]:(Be instanceof HTMLElement||Be)&&(Ge=Be[ue]),Be&&!b(Be)&&typeof Ge!="number"&&(Ge=(je=((Ne=Be.ownerDocument)!==null&&Ne!==void 0?Ne:Be).documentElement)===null||je===void 0?void 0:je[ue]),Ge}},57838:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return ie}});var b=ee(67294);function ie(){const[,Be]=b.useReducer(Fe=>Fe+1,0);return Be}},58375:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return Fe}});var b=ee(96523);function ie(Ne,je,ue,Ge){const Ae=ue-je;return Ne/=Ge/2,Ne<1?Ae/2*Ne*Ne*Ne+je:Ae/2*((Ne-=2)*Ne*Ne+2)+je}var Be=ee(66367);function Fe(Ne){let je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ue=()=>window,callback:Ge,duration:Ae=450}=je,Me=ue(),Te=(0,Be.Z)(Me,!0),Oe=Date.now(),ye=()=>{const E=Date.now()-Oe,a=ie(E>Ae?Ae:E,Te,Ne,Ae);(0,Be.F)(Me)?Me.scrollTo(window.pageXOffset,a):Me instanceof Document||Me.constructor.name==="HTMLDocument"?Me.documentElement.scrollTop=a:Me.scrollTop=a,E<Ae?(0,b.Z)(ye):typeof Ge=="function"&&Ge()};(0,b.Z)(ye)}},85673:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return ke}});var b=ee(94184),ie=ee.n(b),Be=ee(37419),Fe=ee(1337),Ne=ee(67294),je=ee(96159),ue=ee(53124),Ge=ee(42922),Ae=ee(35874);const Me=Ce=>{let{children:Ke}=Ce;const{getPrefixCls:qe}=Ne.useContext(ue.E_),Ue=qe("breadcrumb");return Ne.createElement("li",{className:`${Ue}-separator`,"aria-hidden":"true"},Ke===""?Ke:Ke||"/")};Me.__ANT_BREADCRUMB_SEPARATOR=!0;var Te=Me,Oe=function(Ce,Ke){var qe={};for(var Ue in Ce)Object.prototype.hasOwnProperty.call(Ce,Ue)&&Ke.indexOf(Ue)<0&&(qe[Ue]=Ce[Ue]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Ue=Object.getOwnPropertySymbols(Ce);Ye<Ue.length;Ye++)Ke.indexOf(Ue[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Ue[Ye])&&(qe[Ue[Ye]]=Ce[Ue[Ye]]);return qe};function ye(Ce,Ke){if(Ce.title===void 0||Ce.title===null)return null;const qe=Object.keys(Ke).join("|");return typeof Ce.title=="object"?Ce.title:String(Ce.title).replace(new RegExp(`:(${qe})`,"g"),(Ue,Ye)=>Ke[Ye]||Ue)}function se(Ce,Ke,qe,Ue){if(qe==null)return null;const{className:Ye,onClick:ct}=Ke,yt=Oe(Ke,["className","onClick"]),$t=Object.assign(Object.assign({},(0,Fe.Z)(yt,{data:!0,aria:!0})),{onClick:ct});return Ue!==void 0?Ne.createElement("a",Object.assign({},$t,{className:ie()(`${Ce}-link`,Ye),href:Ue}),qe):Ne.createElement("span",Object.assign({},$t,{className:ie()(`${Ce}-link`,Ye)}),qe)}function E(Ce,Ke){return(Ue,Ye,ct,yt,$t)=>{if(Ke)return Ke(Ue,Ye,ct,yt);const an=ye(Ue,Ye);return se(Ce,Ue,an,$t)}}var a=function(Ce,Ke){var qe={};for(var Ue in Ce)Object.prototype.hasOwnProperty.call(Ce,Ue)&&Ke.indexOf(Ue)<0&&(qe[Ue]=Ce[Ue]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Ue=Object.getOwnPropertySymbols(Ce);Ye<Ue.length;Ye++)Ke.indexOf(Ue[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Ue[Ye])&&(qe[Ue[Ye]]=Ce[Ue[Ye]]);return qe};const x=Ce=>{const{prefixCls:Ke,separator:qe="/",children:Ue,menu:Ye,overlay:ct,dropdownProps:yt,href:$t}=Ce,rt=(jt=>{if(Ye||ct){const It=Object.assign({},yt);if(Ye){const hn=Ye||{},{items:Mt}=hn,Yt=a(hn,["items"]);It.menu=Object.assign(Object.assign({},Yt),{items:Mt==null?void 0:Mt.map((Re,Wt)=>{var{key:Sn,title:xt,label:Et,path:Lt}=Re,He=a(Re,["key","title","label","path"]);let Ze=Et!=null?Et:xt;return Lt&&(Ze=Ne.createElement("a",{href:`${$t}${Lt}`},Ze)),Object.assign(Object.assign({},He),{key:Sn!=null?Sn:Wt,label:Ze})})})}else ct&&(It.overlay=ct);return Ne.createElement(Ae.Z,Object.assign({placement:"bottom"},It),Ne.createElement("span",{className:`${Ke}-overlay-link`},jt,Ne.createElement(Ge.Z,null)))}return jt})(Ue);return rt!=null?Ne.createElement(Ne.Fragment,null,Ne.createElement("li",null,rt),qe&&Ne.createElement(Te,null,qe)):null},y=Ce=>{const{prefixCls:Ke,children:qe,href:Ue}=Ce,Ye=a(Ce,["prefixCls","children","href"]),{getPrefixCls:ct}=Ne.useContext(ue.E_),yt=ct("breadcrumb",Ke);return Ne.createElement(x,Object.assign({},Ye,{prefixCls:yt}),se(yt,Ye,qe,Ue))};y.__ANT_BREADCRUMB_ITEM=!0;var z=y,te=ee(14747),re=ee(67968),oe=ee(45503);const de=Ce=>{const{componentCls:Ke,iconCls:qe}=Ce;return{[Ke]:Object.assign(Object.assign({},(0,te.Wf)(Ce)),{color:Ce.itemColor,fontSize:Ce.fontSize,[qe]:{fontSize:Ce.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Ce.linkColor,transition:`color ${Ce.motionDurationMid}`,padding:`0 ${Ce.paddingXXS}px`,borderRadius:Ce.borderRadiusSM,height:Ce.lineHeight*Ce.fontSize,display:"inline-block",marginInline:-Ce.marginXXS,"&:hover":{color:Ce.linkHoverColor,backgroundColor:Ce.colorBgTextHover}},(0,te.Qy)(Ce)),"li:last-child":{color:Ce.lastItemColor},[`${Ke}-separator`]:{marginInline:Ce.separatorMargin,color:Ce.separatorColor},[`${Ke}-link`]:{[`
|
|
> ${qe} + span,
|
|
> ${qe} + a
|
|
`]:{marginInlineStart:Ce.marginXXS}},[`${Ke}-overlay-link`]:{borderRadius:Ce.borderRadiusSM,height:Ce.lineHeight*Ce.fontSize,display:"inline-block",padding:`0 ${Ce.paddingXXS}px`,marginInline:-Ce.marginXXS,[`> ${qe}`]:{marginInlineStart:Ce.marginXXS,fontSize:Ce.fontSizeIcon},"&:hover":{color:Ce.linkHoverColor,backgroundColor:Ce.colorBgTextHover,a:{color:Ce.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Ce.componentCls}-rtl`]:{direction:"rtl"}})}};var pe=(0,re.Z)("Breadcrumb",Ce=>{const Ke=(0,oe.TS)(Ce,{});return[de(Ke)]},Ce=>({itemColor:Ce.colorTextDescription,lastItemColor:Ce.colorText,iconFontSize:Ce.fontSize,linkColor:Ce.colorTextDescription,linkHoverColor:Ce.colorText,separatorColor:Ce.colorTextDescription,separatorMargin:Ce.marginXS})),ge=function(Ce,Ke){var qe={};for(var Ue in Ce)Object.prototype.hasOwnProperty.call(Ce,Ue)&&Ke.indexOf(Ue)<0&&(qe[Ue]=Ce[Ue]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Ue=Object.getOwnPropertySymbols(Ce);Ye<Ue.length;Ye++)Ke.indexOf(Ue[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Ue[Ye])&&(qe[Ue[Ye]]=Ce[Ue[Ye]]);return qe};function xe(Ce){const{breadcrumbName:Ke,children:qe}=Ce,Ue=ge(Ce,["breadcrumbName","children"]),Ye=Object.assign({title:Ke},Ue);return qe&&(Ye.menu={items:qe.map(ct=>{var{breadcrumbName:yt}=ct,$t=ge(ct,["breadcrumbName"]);return Object.assign(Object.assign({},$t),{title:yt})})}),Ye}function we(Ce,Ke){return(0,Ne.useMemo)(()=>Ce||(Ke?Ke.map(xe):null),[Ce,Ke])}var Se=function(Ce,Ke){var qe={};for(var Ue in Ce)Object.prototype.hasOwnProperty.call(Ce,Ue)&&Ke.indexOf(Ue)<0&&(qe[Ue]=Ce[Ue]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Ue=Object.getOwnPropertySymbols(Ce);Ye<Ue.length;Ye++)Ke.indexOf(Ue[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Ue[Ye])&&(qe[Ue[Ye]]=Ce[Ue[Ye]]);return qe};const ve=(Ce,Ke)=>{if(Ke===void 0)return Ke;let qe=(Ke||"").replace(/^\//,"");return Object.keys(Ce).forEach(Ue=>{qe=qe.replace(`:${Ue}`,Ce[Ue])}),qe},Qe=Ce=>{const{prefixCls:Ke,separator:qe="/",style:Ue,className:Ye,rootClassName:ct,routes:yt,items:$t,children:an,itemRender:rt,params:jt={}}=Ce,It=Se(Ce,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:hn,direction:Mt,breadcrumb:Yt}=Ne.useContext(ue.E_);let Re;const Wt=hn("breadcrumb",Ke),[Sn,xt]=pe(Wt),Et=we($t,yt),Lt=E(Wt,rt);if(Et&&Et.length>0){const Ve=[],gt=$t||yt;Re=Et.map((Dt,Gt)=>{const{path:Bn,key:Fn,type:tn,menu:_n,overlay:Xe,onClick:vt,className:mn,separator:Cn,dropdownProps:St}=Dt,vn=ve(jt,Bn);vn!==void 0&&Ve.push(vn);const Nn=Fn!=null?Fn:Gt;if(tn==="separator")return Ne.createElement(Te,{key:Nn},Cn);const ln={},ma=Gt===Et.length-1;_n?ln.menu=_n:Xe&&(ln.overlay=Xe);let{href:Ut}=Dt;return Ve.length&&vn!==void 0&&(Ut=`#/${Ve.join("/")}`),Ne.createElement(x,Object.assign({key:Nn},ln,(0,Fe.Z)(Dt,{data:!0,aria:!0}),{className:mn,dropdownProps:St,href:Ut,separator:ma?"":qe,onClick:vt,prefixCls:Wt}),Lt(Dt,jt,gt,Ve,Ut))})}else if(an){const Ve=(0,Be.Z)(an).length;Re=(0,Be.Z)(an).map((gt,Dt)=>{if(!gt)return gt;const Gt=Dt===Ve-1;return(0,je.Tm)(gt,{separator:Gt?"":qe,key:Dt})})}const He=ie()(Wt,Yt==null?void 0:Yt.className,{[`${Wt}-rtl`]:Mt==="rtl"},Ye,ct,xt),Ze=Object.assign(Object.assign({},Yt==null?void 0:Yt.style),Ue);return Sn(Ne.createElement("nav",Object.assign({className:He,style:Ze},It),Ne.createElement("ol",null,Re)))};Qe.Item=z,Qe.Separator=Te;var Le=Qe,ke=Le},85546:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return dr}});var b=ee(74902),ie=ee(67294),Be=ee(22751),Fe=ee(3407),Ne=ee(91034),je=ee(94184),ue=ee.n(je),Ge=ee(87462),Ae=ee(97685),Me=ee(45987),Te=ee(4942),Oe=ee(1413),ye=ee(71002);function se(he){var Ee=ie.useRef();Ee.current=he;var We=ie.useCallback(function(){for(var $e,at=arguments.length,ft=new Array(at),Ht=0;Ht<at;Ht++)ft[Ht]=arguments[Ht];return($e=Ee.current)===null||$e===void 0?void 0:$e.call.apply($e,[Ee].concat(ft))},[]);return We}function E(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var a=E()?ie.useLayoutEffect:ie.useEffect,x=a,y=function(Ee,We){var $e=ie.useRef(!0);a(function(){if(!$e.current)return Ee()},We),a(function(){return $e.current=!1,function(){$e.current=!0}},[])};function z(he){var Ee=ie.useRef(!1),We=ie.useState(he),$e=(0,Ae.Z)(We,2),at=$e[0],ft=$e[1];ie.useEffect(function(){return Ee.current=!1,function(){Ee.current=!0}},[]);function Ht(yn,An){An&&Ee.current||ft(yn)}return[at,Ht]}function te(he){return he!==void 0}function re(he,Ee){var We=Ee||{},$e=We.defaultValue,at=We.value,ft=We.onChange,Ht=We.postState,yn=z(function(){return te(at)?at:te($e)?typeof $e=="function"?$e():$e:typeof he=="function"?he():he}),An=(0,Ae.Z)(yn,2),Jn=An[0],On=An[1],pa=at!==void 0?at:Jn,Ua=Ht?Ht(pa):pa,Ln=se(ft),ia=z([pa]),Ia=(0,Ae.Z)(ia,2),Oa=Ia[0],sr=Ia[1];y(function(){var zr=Oa[0];Jn!==zr&&Ln(Jn,zr)},[Oa]),y(function(){te(at)||On(at)},[at]);var wr=se(function(zr,Zr){On(zr,Zr),sr([pa],Zr)});return[Ua,wr]}var oe={};function de(he,Ee){}function pe(he,Ee){}function ge(){oe={}}function xe(he,Ee,We){!Ee&&!oe[We]&&(he(!1,We),oe[We]=!0)}function we(he,Ee){xe(de,he,Ee)}function Se(he,Ee){xe(pe,he,Ee)}var ve=we,Qe=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var he=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(he)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(he==null?void 0:he.substr(0,4))},Le={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Ee){var We=Ee.keyCode;if(Ee.altKey&&!Ee.ctrlKey||Ee.metaKey||We>=Le.F1&&We<=Le.F12)return!1;switch(We){case Le.ALT:case Le.CAPS_LOCK:case Le.CONTEXT_MENU:case Le.CTRL:case Le.DOWN:case Le.END:case Le.ESC:case Le.HOME:case Le.INSERT:case Le.LEFT:case Le.MAC_FF_META:case Le.META:case Le.NUMLOCK:case Le.NUM_CENTER:case Le.PAGE_DOWN:case Le.PAGE_UP:case Le.PAUSE:case Le.PRINT_SCREEN:case Le.RIGHT:case Le.SHIFT:case Le.UP:case Le.WIN_KEY:case Le.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ee){if(Ee>=Le.ZERO&&Ee<=Le.NINE||Ee>=Le.NUM_ZERO&&Ee<=Le.NUM_MULTIPLY||Ee>=Le.A&&Ee<=Le.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ee===0)return!0;switch(Ee){case Le.SPACE:case Le.QUESTION_MARK:case Le.NUM_PLUS:case Le.NUM_MINUS:case Le.NUM_PERIOD:case Le.NUM_DIVISION:case Le.SEMICOLON:case Le.DASH:case Le.EQUALS:case Le.COMMA:case Le.PERIOD:case Le.SLASH:case Le.APOSTROPHE:case Le.SINGLE_QUOTE:case Le.OPEN_SQUARE_BRACKET:case Le.BACKSLASH:case Le.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ke=Le,Ce=ee(16357);function Ke(he,Ee,We){var $e=ie.useRef({});return(!("value"in $e.current)||We($e.current.condition,Ee))&&($e.current.value=he(),$e.current.condition=Ee),$e.current.value}function qe(he,Ee){typeof he=="function"?he(Ee):(0,ye.Z)(he)==="object"&&he&&"current"in he&&(he.current=Ee)}function Ue(){for(var he=arguments.length,Ee=new Array(he),We=0;We<he;We++)Ee[We]=arguments[We];var $e=Ee.filter(function(at){return at});return $e.length<=1?$e[0]:function(at){Ee.forEach(function(ft){qe(ft,at)})}}function Ye(){for(var he=arguments.length,Ee=new Array(he),We=0;We<he;We++)Ee[We]=arguments[We];return Ke(function(){return Ue.apply(void 0,Ee)},Ee,function($e,at){return $e.length===at.length&&$e.every(function(ft,Ht){return ft===at[Ht]})})}function ct(he){var Ee,We,$e=isMemo(he)?he.type.type:he.type;return!(typeof $e=="function"&&!((Ee=$e.prototype)!==null&&Ee!==void 0&&Ee.render)||typeof he=="function"&&!((We=he.prototype)!==null&&We!==void 0&&We.render))}var yt=function(Ee){var We=Ee.className,$e=Ee.customizeIcon,at=Ee.customizeIconProps,ft=Ee.onMouseDown,Ht=Ee.onClick,yn=Ee.children,An;return typeof $e=="function"?An=$e(at):An=$e,ie.createElement("span",{className:We,onMouseDown:function(On){On.preventDefault(),ft&&ft(On)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Ht,"aria-hidden":!0},An!==void 0?An:ie.createElement("span",{className:ue()(We.split(/\s+/).map(function(Jn){return"".concat(Jn,"-icon")}))},yn))},$t=yt;function an(he,Ee,We,$e,at){var ft=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Ht=arguments.length>6?arguments[6]:void 0,yn=arguments.length>7?arguments[7]:void 0,An=ie.useMemo(function(){if((0,ye.Z)($e)==="object")return $e.clearIcon;if(at)return at},[$e,at]),Jn=ie.useMemo(function(){return!!(!ft&&$e&&(We.length||Ht)&&!(yn==="combobox"&&Ht===""))},[$e,ft,We.length,Ht,yn]);return{allowClear:Jn,clearIcon:ie.createElement($t,{className:"".concat(he,"-clear"),onMouseDown:Ee,customizeIcon:An},"\xD7")}}var rt=ie.createContext(null);function jt(){return ie.useContext(rt)}function It(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ee=ie.useState(!1),We=(0,Ae.Z)(Ee,2),$e=We[0],at=We[1],ft=ie.useRef(null),Ht=function(){window.clearTimeout(ft.current)};ie.useEffect(function(){return Ht},[]);var yn=function(Jn,On){Ht(),ft.current=window.setTimeout(function(){at(Jn),On&&On()},he)};return[$e,yn,Ht]}function hn(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ee=ie.useRef(null),We=ie.useRef(null);ie.useEffect(function(){return function(){window.clearTimeout(We.current)}},[]);function $e(at){(at||Ee.current===null)&&(Ee.current=at),window.clearTimeout(We.current),We.current=window.setTimeout(function(){Ee.current=null},he)}return[function(){return Ee.current},$e]}function Mt(he,Ee,We,$e){var at=ie.useRef(null);at.current={open:Ee,triggerOpen:We,customizedTrigger:$e},ie.useEffect(function(){function ft(Ht){var yn;if(!((yn=at.current)!==null&&yn!==void 0&&yn.customizedTrigger)){var An=Ht.target;An.shadowRoot&&Ht.composed&&(An=Ht.composedPath()[0]||An),at.current.open&&he().filter(function(Jn){return Jn}).every(function(Jn){return!Jn.contains(An)&&Jn!==An})&&at.current.triggerOpen(!1)}}return window.addEventListener("mousedown",ft),function(){return window.removeEventListener("mousedown",ft)}},[])}var Yt=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
summary tabIndex target title type useMap value width wmode wrap`,Re=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Wt="".concat(Yt," ").concat(Re).split(/[\s\n]+/),Sn="aria-",xt="data-";function Et(he,Ee){return he.indexOf(Ee)===0}function Lt(he){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,We;Ee===!1?We={aria:!0,data:!0,attr:!0}:Ee===!0?We={aria:!0}:We=(0,Oe.Z)({},Ee);var $e={};return Object.keys(he).forEach(function(at){(We.aria&&(at==="role"||Et(at,Sn))||We.data&&Et(at,xt)||We.attr&&Wt.includes(at))&&($e[at]=he[at])}),$e}var He=ee(48555);function Ze(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ve=Ze()?ie.useLayoutEffect:ie.useEffect,gt=function(Ee,We){var $e=ie.useRef(!0);Ve(function(){return Ee($e.current)},We),Ve(function(){return $e.current=!1,function(){$e.current=!0}},[])},Dt=function(Ee,We){gt(function($e){if(!$e)return Ee()},We)},Gt=gt,Bn=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Fn=void 0;function tn(he,Ee){var We=he.prefixCls,$e=he.invalidate,at=he.item,ft=he.renderItem,Ht=he.responsive,yn=he.responsiveDisabled,An=he.registerSize,Jn=he.itemKey,On=he.className,pa=he.style,Ua=he.children,Ln=he.display,ia=he.order,Ia=he.component,Oa=Ia===void 0?"div":Ia,sr=(0,Me.Z)(he,Bn),wr=Ht&&!Ln;function zr(Gr){An(Jn,Gr)}ie.useEffect(function(){return function(){zr(null)}},[]);var Zr=ft&&at!==Fn?ft(at):Ua,yo;$e||(yo={opacity:wr?0:1,height:wr?0:Fn,overflowY:wr?"hidden":Fn,order:Ht?ia:Fn,pointerEvents:wr?"none":Fn,position:wr?"absolute":Fn});var vr={};wr&&(vr["aria-hidden"]=!0);var Or=ie.createElement(Oa,(0,Ge.Z)({className:ue()(!$e&&We,On),style:(0,Oe.Z)((0,Oe.Z)({},yo),pa)},vr,sr,{ref:Ee}),Zr);return Ht&&(Or=ie.createElement(He.Z,{onResize:function(lr){var Lr=lr.offsetWidth;zr(Lr)},disabled:yn},Or)),Or}var _n=ie.forwardRef(tn);_n.displayName="Item";var Xe=_n;function vt(he){var Ee=ie.useRef();Ee.current=he;var We=ie.useCallback(function(){for(var $e,at=arguments.length,ft=new Array(at),Ht=0;Ht<at;Ht++)ft[Ht]=arguments[Ht];return($e=Ee.current)===null||$e===void 0?void 0:$e.call.apply($e,[Ee].concat(ft))},[]);return We}var mn=ee(73935),Cn=function(Ee){return+setTimeout(Ee,16)},St=function(Ee){return clearTimeout(Ee)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Cn=function(Ee){return window.requestAnimationFrame(Ee)},St=function(Ee){return window.cancelAnimationFrame(Ee)});var vn=0,Nn=new Map;function ln(he){Nn.delete(he)}var ma=function(Ee){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;vn+=1;var $e=vn;function at(ft){if(ft===0)ln($e),Ee();else{var Ht=Cn(function(){at(ft-1)});Nn.set($e,Ht)}}return at(We),$e};ma.cancel=function(he){var Ee=Nn.get(he);return ln(Ee),St(Ee)};var Ut=ma;function wt(he){if(typeof MessageChannel=="undefined")Ut(he);else{var Ee=new MessageChannel;Ee.port1.onmessage=function(){return he()},Ee.port2.postMessage(void 0)}}function Un(){var he=ie.useRef(null),Ee=function($e){he.current||(he.current=[],wt(function(){(0,mn.unstable_batchedUpdates)(function(){he.current.forEach(function(at){at()}),he.current=null})})),he.current.push($e)};return Ee}function fa(he,Ee){var We=ie.useState(Ee),$e=(0,Ae.Z)(We,2),at=$e[0],ft=$e[1],Ht=vt(function(yn){he(function(){ft(yn)})});return[at,Ht]}var wa=ie.createContext(null),la=["component"],rr=["className"],en=["className"],rn=function(Ee,We){var $e=ie.useContext(wa);if(!$e){var at=Ee.component,ft=at===void 0?"div":at,Ht=(0,Me.Z)(Ee,la);return ie.createElement(ft,(0,Ge.Z)({},Ht,{ref:We}))}var yn=$e.className,An=(0,Me.Z)($e,rr),Jn=Ee.className,On=(0,Me.Z)(Ee,en);return ie.createElement(wa.Provider,{value:null},ie.createElement(Xe,(0,Ge.Z)({ref:We,className:ue()(yn,Jn)},An,On)))},sn=ie.forwardRef(rn);sn.displayName="RawItem";var na=sn,Ga=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Fr="responsive",_r="invalidate";function or(he){return"+ ".concat(he.length," ...")}function Rn(he,Ee){var We=he.prefixCls,$e=We===void 0?"rc-overflow":We,at=he.data,ft=at===void 0?[]:at,Ht=he.renderItem,yn=he.renderRawItem,An=he.itemKey,Jn=he.itemWidth,On=Jn===void 0?10:Jn,pa=he.ssr,Ua=he.style,Ln=he.className,ia=he.maxCount,Ia=he.renderRest,Oa=he.renderRawRest,sr=he.suffix,wr=he.component,zr=wr===void 0?"div":wr,Zr=he.itemComponent,yo=he.onVisibleChange,vr=(0,Me.Z)(he,Ga),Or=pa==="full",Gr=Un(),lr=fa(Gr,null),Lr=(0,Ae.Z)(lr,2),Ur=Lr[0],Oo=Lr[1],Do=Ur||0,bo=fa(Gr,new Map),Lo=(0,Ae.Z)(bo,2),Co=Lo[0],ro=Lo[1],mo=fa(Gr,0),xo=(0,Ae.Z)(mo,2),mi=xo[0],Ft=xo[1],Pa=fa(Gr,0),Ir=(0,Ae.Z)(Pa,2),ra=Ir[0],wn=Ir[1],Rr=fa(Gr,0),Ya=(0,Ae.Z)(Rr,2),Xa=Ya[0],Ta=Ya[1],oo=(0,ie.useState)(null),xr=(0,Ae.Z)(oo,2),zo=xr[0],Bo=xr[1],va=(0,ie.useState)(null),Mr=(0,Ae.Z)(va,2),fo=Mr[0],Eo=Mr[1],jo=ie.useMemo(function(){return fo===null&&Or?Number.MAX_SAFE_INTEGER:fo||0},[fo,Ur]),fi=(0,ie.useState)(!1),Bi=(0,Ae.Z)(fi,2),ni=Bi[0],Zi=Bi[1],gl="".concat($e,"-item"),zl=Math.max(mi,ra),Ki=ia===Fr,Ri=ft.length&&Ki,ml=ia===_r,qi=Ri||typeof ia=="number"&&ft.length>ia,Wi=(0,ie.useMemo)(function(){var Ro=ft;return Ri?Ur===null&&Or?Ro=ft:Ro=ft.slice(0,Math.min(ft.length,Do/On)):typeof ia=="number"&&(Ro=ft.slice(0,ia)),Ro},[ft,On,Ur,ia,Ri]),xl=(0,ie.useMemo)(function(){return Ri?ft.slice(jo+1):ft.slice(Wi.length)},[ft,Wi,Ri,jo]),Sl=(0,ie.useCallback)(function(Ro,Va){var jr;return typeof An=="function"?An(Ro):(jr=An&&(Ro==null?void 0:Ro[An]))!==null&&jr!==void 0?jr:Va},[An]),uu=(0,ie.useCallback)(Ht||function(Ro){return Ro},[Ht]);function eu(Ro,Va,jr){fo===Ro&&(Va===void 0||Va===zo)||(Eo(Ro),jr||(Zi(Ro<ft.length-1),yo==null||yo(Ro)),Va!==void 0&&Bo(Va))}function Nu(Ro,Va){Oo(Va.clientWidth)}function Eu(Ro,Va){ro(function(jr){var eo=new Map(jr);return Va===null?eo.delete(Ro):eo.set(Ro,Va),eo})}function tu(Ro,Va){wn(Va),Ft(ra)}function xu(Ro,Va){Ta(Va)}function jl(Ro){return Co.get(Sl(Wi[Ro],Ro))}Gt(function(){if(Do&&typeof zl=="number"&&Wi){var Ro=Xa,Va=Wi.length,jr=Va-1;if(!Va){eu(0,null);return}for(var eo=0;eo<Va;eo+=1){var wo=jl(eo);if(Or&&(wo=wo||0),wo===void 0){eu(eo-1,void 0,!0);break}if(Ro+=wo,jr===0&&Ro<=Do||eo===jr-1&&Ro+jl(jr)<=Do){eu(jr,null);break}else if(Ro+zl>Do){eu(eo-1,Ro-wo-Xa+ra);break}}sr&&jl(0)+Xa>Do&&Bo(null)}},[Do,Co,ra,Xa,Sl,Wi]);var wu=ni&&!!xl.length,Iu={};zo!==null&&Ri&&(Iu={position:"absolute",left:zo,top:0});var Ti={prefixCls:gl,responsive:Ri,component:Zr,invalidate:ml},yi=yn?function(Ro,Va){var jr=Sl(Ro,Va);return ie.createElement(wa.Provider,{key:jr,value:(0,Oe.Z)((0,Oe.Z)({},Ti),{},{order:Va,item:Ro,itemKey:jr,registerSize:Eu,display:Va<=jo})},yn(Ro,Va))}:function(Ro,Va){var jr=Sl(Ro,Va);return ie.createElement(Xe,(0,Ge.Z)({},Ti,{order:Va,key:jr,item:Ro,renderItem:uu,itemKey:jr,registerSize:Eu,display:Va<=jo}))},Ai,Gl={order:wu?jo:Number.MAX_SAFE_INTEGER,className:"".concat(gl,"-rest"),registerSize:tu,display:wu};if(Oa)Oa&&(Ai=ie.createElement(wa.Provider,{value:(0,Oe.Z)((0,Oe.Z)({},Ti),Gl)},Oa(xl)));else{var ul=Ia||or;Ai=ie.createElement(Xe,(0,Ge.Z)({},Ti,Gl),typeof ul=="function"?ul(xl):ul)}var Ul=ie.createElement(zr,(0,Ge.Z)({className:ue()(!ml&&$e,Ln),style:Ua,ref:Ee},vr),Wi.map(yi),qi?Ai:null,sr&&ie.createElement(Xe,(0,Ge.Z)({},Ti,{responsive:Ki,responsiveDisabled:!Ri,order:jo,className:"".concat(gl,"-suffix"),registerSize:xu,display:!0,style:Iu}),sr));return Ki&&(Ul=ie.createElement(He.Z,{onResize:Nu,disabled:!Ri},Ul)),Ul}var Ra=ie.forwardRef(Rn);Ra.displayName="Overflow",Ra.Item=na,Ra.RESPONSIVE=Fr,Ra.INVALIDATE=_r;var En=Ra,Mn=En,Vn=function(Ee,We){var $e,at,ft=Ee.prefixCls,Ht=Ee.id,yn=Ee.inputElement,An=Ee.disabled,Jn=Ee.tabIndex,On=Ee.autoFocus,pa=Ee.autoComplete,Ua=Ee.editable,Ln=Ee.activeDescendantId,ia=Ee.value,Ia=Ee.maxLength,Oa=Ee.onKeyDown,sr=Ee.onMouseDown,wr=Ee.onChange,zr=Ee.onPaste,Zr=Ee.onCompositionStart,yo=Ee.onCompositionEnd,vr=Ee.open,Or=Ee.attrs,Gr=yn||ie.createElement("input",null),lr=Gr,Lr=lr.ref,Ur=lr.props,Oo=Ur.onKeyDown,Do=Ur.onChange,bo=Ur.onMouseDown,Lo=Ur.onCompositionStart,Co=Ur.onCompositionEnd,ro=Ur.style;return"maxLength"in Gr.props,Gr=ie.cloneElement(Gr,(0,Oe.Z)((0,Oe.Z)((0,Oe.Z)({type:"search"},Ur),{},{id:Ht,ref:Ue(We,Lr),disabled:An,tabIndex:Jn,autoComplete:pa||"off",autoFocus:On,className:ue()("".concat(ft,"-selection-search-input"),($e=Gr)===null||$e===void 0||(at=$e.props)===null||at===void 0?void 0:at.className),role:"combobox","aria-label":"Search","aria-expanded":vr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Ht,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ht,"_list"),"aria-activedescendant":vr?Ln:void 0},Or),{},{value:Ua?ia:"",maxLength:Ia,readOnly:!Ua,unselectable:Ua?null:"on",style:(0,Oe.Z)((0,Oe.Z)({},ro),{},{opacity:Ua?null:0}),onKeyDown:function(xo){Oa(xo),Oo&&Oo(xo)},onMouseDown:function(xo){sr(xo),bo&&bo(xo)},onChange:function(xo){wr(xo),Do&&Do(xo)},onCompositionStart:function(xo){Zr(xo),Lo&&Lo(xo)},onCompositionEnd:function(xo){yo(xo),Co&&Co(xo)},onPaste:zr})),Gr},Yn=ie.forwardRef(Vn);Yn.displayName="Input";var Aa=Yn;function Qa(he){return Array.isArray(he)?he:he!==void 0?[he]:[]}var Kn=typeof window!="undefined"&&window.document&&window.document.documentElement,ht=Kn;function Rt(he){return he!=null}function Nt(he){return!he&&he!==0}function Kt(he){return["string","number"].includes((0,ye.Z)(he))}function xn(he){var Ee=void 0;return he&&(Kt(he.title)?Ee=he.title.toString():Kt(he.label)&&(Ee=he.label.toString())),Ee}function qn(he,Ee){ht?ie.useLayoutEffect(he,Ee):ie.useEffect(he,Ee)}function Ma(he){var Ee;return(Ee=he.key)!==null&&Ee!==void 0?Ee:he.value}var ga=function(Ee){Ee.preventDefault(),Ee.stopPropagation()},er=function(Ee){var We=Ee.id,$e=Ee.prefixCls,at=Ee.values,ft=Ee.open,Ht=Ee.searchValue,yn=Ee.autoClearSearchValue,An=Ee.inputRef,Jn=Ee.placeholder,On=Ee.disabled,pa=Ee.mode,Ua=Ee.showSearch,Ln=Ee.autoFocus,ia=Ee.autoComplete,Ia=Ee.activeDescendantId,Oa=Ee.tabIndex,sr=Ee.removeIcon,wr=Ee.maxTagCount,zr=Ee.maxTagTextLength,Zr=Ee.maxTagPlaceholder,yo=Zr===void 0?function(Bo){return"+ ".concat(Bo.length," ...")}:Zr,vr=Ee.tagRender,Or=Ee.onToggleOpen,Gr=Ee.onRemove,lr=Ee.onInputChange,Lr=Ee.onInputPaste,Ur=Ee.onInputKeyDown,Oo=Ee.onInputMouseDown,Do=Ee.onInputCompositionStart,bo=Ee.onInputCompositionEnd,Lo=ie.useRef(null),Co=(0,ie.useState)(0),ro=(0,Ae.Z)(Co,2),mo=ro[0],xo=ro[1],mi=(0,ie.useState)(!1),Ft=(0,Ae.Z)(mi,2),Pa=Ft[0],Ir=Ft[1],ra="".concat($e,"-selection"),wn=ft||pa==="multiple"&&yn===!1||pa==="tags"?Ht:"",Rr=pa==="tags"||pa==="multiple"&&yn===!1||Ua&&(ft||Pa);qn(function(){xo(Lo.current.scrollWidth)},[wn]);function Ya(Bo,va,Mr,fo,Eo){return ie.createElement("span",{className:ue()("".concat(ra,"-item"),(0,Te.Z)({},"".concat(ra,"-item-disabled"),Mr)),title:xn(Bo)},ie.createElement("span",{className:"".concat(ra,"-item-content")},va),fo&&ie.createElement($t,{className:"".concat(ra,"-item-remove"),onMouseDown:ga,onClick:Eo,customizeIcon:sr},"\xD7"))}function Xa(Bo,va,Mr,fo,Eo){var jo=function(Bi){ga(Bi),Or(!ft)};return ie.createElement("span",{onMouseDown:jo},vr({label:va,value:Bo,disabled:Mr,closable:fo,onClose:Eo}))}function Ta(Bo){var va=Bo.disabled,Mr=Bo.label,fo=Bo.value,Eo=!On&&!va,jo=Mr;if(typeof zr=="number"&&(typeof Mr=="string"||typeof Mr=="number")){var fi=String(jo);fi.length>zr&&(jo="".concat(fi.slice(0,zr),"..."))}var Bi=function(Zi){Zi&&Zi.stopPropagation(),Gr(Bo)};return typeof vr=="function"?Xa(fo,jo,va,Eo,Bi):Ya(Bo,jo,va,Eo,Bi)}function oo(Bo){var va=typeof yo=="function"?yo(Bo):yo;return Ya({title:va},va,!1)}var xr=ie.createElement("div",{className:"".concat(ra,"-search"),style:{width:mo},onFocus:function(){Ir(!0)},onBlur:function(){Ir(!1)}},ie.createElement(Aa,{ref:An,open:ft,prefixCls:$e,id:We,inputElement:null,disabled:On,autoFocus:Ln,autoComplete:ia,editable:Rr,activeDescendantId:Ia,value:wn,onKeyDown:Ur,onMouseDown:Oo,onChange:lr,onPaste:Lr,onCompositionStart:Do,onCompositionEnd:bo,tabIndex:Oa,attrs:Lt(Ee,!0)}),ie.createElement("span",{ref:Lo,className:"".concat(ra,"-search-mirror"),"aria-hidden":!0},wn,"\xA0")),zo=ie.createElement(Mn,{prefixCls:"".concat(ra,"-overflow"),data:at,renderItem:Ta,renderRest:oo,suffix:xr,itemKey:Ma,maxCount:wr});return ie.createElement(ie.Fragment,null,zo,!at.length&&!wn&&ie.createElement("span",{className:"".concat(ra,"-placeholder")},Jn))},ur=er,lo=function(Ee){var We=Ee.inputElement,$e=Ee.prefixCls,at=Ee.id,ft=Ee.inputRef,Ht=Ee.disabled,yn=Ee.autoFocus,An=Ee.autoComplete,Jn=Ee.activeDescendantId,On=Ee.mode,pa=Ee.open,Ua=Ee.values,Ln=Ee.placeholder,ia=Ee.tabIndex,Ia=Ee.showSearch,Oa=Ee.searchValue,sr=Ee.activeValue,wr=Ee.maxLength,zr=Ee.onInputKeyDown,Zr=Ee.onInputMouseDown,yo=Ee.onInputChange,vr=Ee.onInputPaste,Or=Ee.onInputCompositionStart,Gr=Ee.onInputCompositionEnd,lr=Ee.title,Lr=ie.useState(!1),Ur=(0,Ae.Z)(Lr,2),Oo=Ur[0],Do=Ur[1],bo=On==="combobox",Lo=bo||Ia,Co=Ua[0],ro=Oa||"";bo&&sr&&!Oo&&(ro=sr),ie.useEffect(function(){bo&&Do(!1)},[bo,sr]);var mo=On!=="combobox"&&!pa&&!Ia?!1:!!ro,xo=lr===void 0?xn(Co):lr,mi=function(){if(Co)return null;var Pa=mo?{visibility:"hidden"}:void 0;return ie.createElement("span",{className:"".concat($e,"-selection-placeholder"),style:Pa},Ln)};return ie.createElement(ie.Fragment,null,ie.createElement("span",{className:"".concat($e,"-selection-search")},ie.createElement(Aa,{ref:ft,prefixCls:$e,id:at,open:pa,inputElement:We,disabled:Ht,autoFocus:yn,autoComplete:An,editable:Lo,activeDescendantId:Jn,value:ro,onKeyDown:zr,onMouseDown:Zr,onChange:function(Pa){Do(!0),yo(Pa)},onPaste:vr,onCompositionStart:Or,onCompositionEnd:Gr,tabIndex:ia,attrs:Lt(Ee,!0),maxLength:bo?wr:void 0})),!bo&&Co?ie.createElement("span",{className:"".concat($e,"-selection-item"),title:xo,style:mo?{visibility:"hidden"}:void 0},Co.label):null,mi())},ea=lo;function Dr(he){return![ke.ESC,ke.SHIFT,ke.BACKSPACE,ke.TAB,ke.WIN_KEY,ke.ALT,ke.META,ke.WIN_KEY_RIGHT,ke.CTRL,ke.SEMICOLON,ke.EQUALS,ke.CAPS_LOCK,ke.CONTEXT_MENU,ke.F1,ke.F2,ke.F3,ke.F4,ke.F5,ke.F6,ke.F7,ke.F8,ke.F9,ke.F10,ke.F11,ke.F12].includes(he)}var Di=function(Ee,We){var $e=(0,ie.useRef)(null),at=(0,ie.useRef)(!1),ft=Ee.prefixCls,Ht=Ee.open,yn=Ee.mode,An=Ee.showSearch,Jn=Ee.tokenWithEnter,On=Ee.autoClearSearchValue,pa=Ee.onSearch,Ua=Ee.onSearchSubmit,Ln=Ee.onToggleOpen,ia=Ee.onInputKeyDown,Ia=Ee.domRef;ie.useImperativeHandle(We,function(){return{focus:function(){$e.current.focus()},blur:function(){$e.current.blur()}}});var Oa=hn(0),sr=(0,Ae.Z)(Oa,2),wr=sr[0],zr=sr[1],Zr=function(ro){var mo=ro.which;(mo===ke.UP||mo===ke.DOWN)&&ro.preventDefault(),ia&&ia(ro),mo===ke.ENTER&&yn==="tags"&&!at.current&&!Ht&&(Ua==null||Ua(ro.target.value)),Dr(mo)&&Ln(!0)},yo=function(){zr(!0)},vr=(0,ie.useRef)(null),Or=function(ro){pa(ro,!0,at.current)!==!1&&Ln(!0)},Gr=function(){at.current=!0},lr=function(ro){at.current=!1,yn!=="combobox"&&Or(ro.target.value)},Lr=function(ro){var mo=ro.target.value;if(Jn&&vr.current&&/[\r\n]/.test(vr.current)){var xo=vr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");mo=mo.replace(xo,vr.current)}vr.current=null,Or(mo)},Ur=function(ro){var mo=ro.clipboardData,xo=mo.getData("text");vr.current=xo},Oo=function(ro){var mo=ro.target;if(mo!==$e.current){var xo=document.body.style.msTouchAction!==void 0;xo?setTimeout(function(){$e.current.focus()}):$e.current.focus()}},Do=function(ro){var mo=wr();ro.target!==$e.current&&!mo&&yn!=="combobox"&&ro.preventDefault(),(yn!=="combobox"&&(!An||!mo)||!Ht)&&(Ht&&On!==!1&&pa("",!0,!1),Ln())},bo={inputRef:$e,onInputKeyDown:Zr,onInputMouseDown:yo,onInputChange:Lr,onInputPaste:Ur,onInputCompositionStart:Gr,onInputCompositionEnd:lr},Lo=yn==="multiple"||yn==="tags"?ie.createElement(ur,(0,Ge.Z)({},Ee,bo)):ie.createElement(ea,(0,Ge.Z)({},Ee,bo));return ie.createElement("div",{ref:Ia,className:"".concat(ft,"-selector"),onClick:Oo,onMouseDown:Do},Lo)},Ii=ie.forwardRef(Di);Ii.displayName="Selector";var mr=Ii,jn=ee(62709),vl=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Ho=function(Ee){var We=Ee===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:We,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:We,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:We,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:We,adjustY:1},htmlRegion:"scroll"}}},dl=function(Ee,We){var $e=Ee.prefixCls,at=Ee.disabled,ft=Ee.visible,Ht=Ee.children,yn=Ee.popupElement,An=Ee.animation,Jn=Ee.transitionName,On=Ee.dropdownStyle,pa=Ee.dropdownClassName,Ua=Ee.direction,Ln=Ua===void 0?"ltr":Ua,ia=Ee.placement,Ia=Ee.builtinPlacements,Oa=Ee.dropdownMatchSelectWidth,sr=Ee.dropdownRender,wr=Ee.dropdownAlign,zr=Ee.getPopupContainer,Zr=Ee.empty,yo=Ee.getTriggerDOMNode,vr=Ee.onPopupVisibleChange,Or=Ee.onPopupMouseEnter,Gr=(0,Me.Z)(Ee,vl),lr="".concat($e,"-dropdown"),Lr=yn;sr&&(Lr=sr(yn));var Ur=ie.useMemo(function(){return Ia||Ho(Oa)},[Ia,Oa]),Oo=An?"".concat(lr,"-").concat(An):Jn,Do=typeof Oa=="number",bo=ie.useMemo(function(){return Do?null:Oa===!1?"minWidth":"width"},[Oa,Do]),Lo=On;Do&&(Lo=(0,Oe.Z)((0,Oe.Z)({},Lo),{},{width:Oa}));var Co=ie.useRef(null);return ie.useImperativeHandle(We,function(){return{getPopupElement:function(){return Co.current}}}),ie.createElement(jn.Z,(0,Ge.Z)({},Gr,{showAction:vr?["click"]:[],hideAction:vr?["click"]:[],popupPlacement:ia||(Ln==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ur,prefixCls:lr,popupTransitionName:Oo,popup:ie.createElement("div",{ref:Co,onMouseEnter:Or},Lr),stretch:bo,popupAlign:wr,popupVisible:ft,getPopupContainer:zr,popupClassName:ue()(pa,(0,Te.Z)({},"".concat(lr,"-empty"),Zr)),popupStyle:Lo,getTriggerDOMNode:yo,onPopupVisibleChange:vr}),Ht)},tl=ie.forwardRef(dl);tl.displayName="SelectTrigger";var nl=tl,Oi=ee(84506);function yl(he,Ee){var We=he.key,$e;return"value"in he&&($e=he.value),We!=null?We:$e!==void 0?$e:"rc-index-key-".concat(Ee)}function il(he,Ee){var We=he||{},$e=We.label,at=We.value,ft=We.options,Ht=We.groupLabel,yn=$e||(Ee?"children":"label");return{label:yn,value:at||"value",options:ft||"options",groupLabel:Ht||yn}}function pu(he){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},We=Ee.fieldNames,$e=Ee.childrenAsData,at=[],ft=il(We,!1),Ht=ft.label,yn=ft.value,An=ft.options,Jn=ft.groupLabel;function On(pa,Ua){pa.forEach(function(Ln){if(Ua||!(An in Ln)){var ia=Ln[yn];at.push({key:yl(Ln,at.length),groupOption:Ua,data:Ln,label:Ln[Ht],value:ia})}else{var Ia=Ln[Jn];Ia===void 0&&$e&&(Ia=Ln.label),at.push({key:yl(Ln,at.length),group:!0,data:Ln,label:Ia}),On(Ln[An],!0)}})}return On(he,!1),at}function da(he){var Ee=(0,Oe.Z)({},he);return"props"in Ee||Object.defineProperty(Ee,"props",{get:function(){return ve(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ee}}),Ee}function _i(he,Ee){if(!Ee||!Ee.length)return null;var We=!1;function $e(ft,Ht){var yn=(0,Oi.Z)(Ht),An=yn[0],Jn=yn.slice(1);if(!An)return[ft];var On=ft.split(An);return We=We||On.length>1,On.reduce(function(pa,Ua){return[].concat((0,b.Z)(pa),(0,b.Z)($e(Ua,Jn)))},[]).filter(function(pa){return pa})}var at=$e(he,Ee);return We?at:null}var Ei=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Ao=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Zo(he){return he==="tags"||he==="multiple"}var ka=ie.forwardRef(function(he,Ee){var We,$e,at=he.id,ft=he.prefixCls,Ht=he.className,yn=he.showSearch,An=he.tagRender,Jn=he.direction,On=he.omitDomProps,pa=he.displayValues,Ua=he.onDisplayValuesChange,Ln=he.emptyOptions,ia=he.notFoundContent,Ia=ia===void 0?"Not Found":ia,Oa=he.onClear,sr=he.mode,wr=he.disabled,zr=he.loading,Zr=he.getInputElement,yo=he.getRawInputElement,vr=he.open,Or=he.defaultOpen,Gr=he.onDropdownVisibleChange,lr=he.activeValue,Lr=he.onActiveValueChange,Ur=he.activeDescendantId,Oo=he.searchValue,Do=he.autoClearSearchValue,bo=he.onSearch,Lo=he.onSearchSplit,Co=he.tokenSeparators,ro=he.allowClear,mo=he.suffixIcon,xo=he.clearIcon,mi=he.OptionList,Ft=he.animation,Pa=he.transitionName,Ir=he.dropdownStyle,ra=he.dropdownClassName,wn=he.dropdownMatchSelectWidth,Rr=he.dropdownRender,Ya=he.dropdownAlign,Xa=he.placement,Ta=he.builtinPlacements,oo=he.getPopupContainer,xr=he.showAction,zo=xr===void 0?[]:xr,Bo=he.onFocus,va=he.onBlur,Mr=he.onKeyUp,fo=he.onKeyDown,Eo=he.onMouseDown,jo=(0,Me.Z)(he,Ei),fi=Zo(sr),Bi=(yn!==void 0?yn:fi)||sr==="combobox",ni=(0,Oe.Z)({},jo);Ao.forEach(function(ba){delete ni[ba]}),On==null||On.forEach(function(ba){delete ni[ba]});var Zi=ie.useState(!1),gl=(0,Ae.Z)(Zi,2),zl=gl[0],Ki=gl[1];ie.useEffect(function(){Ki(Qe())},[]);var Ri=ie.useRef(null),ml=ie.useRef(null),qi=ie.useRef(null),Wi=ie.useRef(null),xl=ie.useRef(null),Sl=It(),uu=(0,Ae.Z)(Sl,3),eu=uu[0],Nu=uu[1],Eu=uu[2];ie.useImperativeHandle(Ee,function(){var ba,sa;return{focus:(ba=Wi.current)===null||ba===void 0?void 0:ba.focus,blur:(sa=Wi.current)===null||sa===void 0?void 0:sa.blur,scrollTo:function(tr){var Sr;return(Sr=xl.current)===null||Sr===void 0?void 0:Sr.scrollTo(tr)}}});var tu=ie.useMemo(function(){var ba;if(sr!=="combobox")return Oo;var sa=(ba=pa[0])===null||ba===void 0?void 0:ba.value;return typeof sa=="string"||typeof sa=="number"?String(sa):""},[Oo,sr,pa]),xu=sr==="combobox"&&typeof Zr=="function"&&Zr()||null,jl=typeof yo=="function"&&yo(),wu=Ye(ml,jl==null||(We=jl.props)===null||We===void 0?void 0:We.ref),Iu=ie.useState(!1),Ti=(0,Ae.Z)(Iu,2),yi=Ti[0],Ai=Ti[1];x(function(){Ai(!0)},[]);var Gl=re(!1,{defaultValue:Or,value:vr}),ul=(0,Ae.Z)(Gl,2),Ul=ul[0],Ro=ul[1],Va=yi?Ul:!1,jr=!Ia&&Ln;(wr||jr&&Va&&sr==="combobox")&&(Va=!1);var eo=jr?!1:Va,wo=ie.useCallback(function(ba){var sa=ba!==void 0?ba:!Va;wr||(Ro(sa),Va!==sa&&(Gr==null||Gr(sa)))},[wr,Va,Ro,Gr]),Mi=ie.useMemo(function(){return(Co||[]).some(function(ba){return[`
|
|
`,`\r
|
|
`].includes(ba)})},[Co]),zi=function(sa,La,tr){var Sr=!0,io=sa;Lr==null||Lr(null);var Jr=tr?null:_i(sa,Co);return sr!=="combobox"&&Jr&&(io="",Lo==null||Lo(Jr),wo(!1),Sr=!1),bo&&tu!==io&&bo(io,{source:La?"typing":"effect"}),Sr},wl=function(sa){!sa||!sa.trim()||bo(sa,{source:"submit"})};ie.useEffect(function(){!Va&&!fi&&sr!=="combobox"&&zi("",!1,!1)},[Va]),ie.useEffect(function(){Ul&&wr&&Ro(!1),wr&&Nu(!1)},[wr]);var kl=hn(),Ou=(0,Ae.Z)(kl,2),ce=Ou[0],fe=Ou[1],De=function(sa){var La=ce(),tr=sa.which;if(tr===ke.ENTER&&(sr!=="combobox"&&sa.preventDefault(),Va||wo(!0)),fe(!!tu),tr===ke.BACKSPACE&&!La&&fi&&!tu&&pa.length){for(var Sr=(0,b.Z)(pa),io=null,Jr=Sr.length-1;Jr>=0;Jr-=1){var Hr=Sr[Jr];if(!Hr.disabled){Sr.splice(Jr,1),io=Hr;break}}io&&Ua(Sr,{type:"remove",values:[io]})}for(var Io=arguments.length,Go=new Array(Io>1?Io-1:0),ri=1;ri<Io;ri++)Go[ri-1]=arguments[ri];if(Va&&xl.current){var oi;(oi=xl.current).onKeyDown.apply(oi,[sa].concat(Go))}fo==null||fo.apply(void 0,[sa].concat(Go))},ze=function(sa){for(var La=arguments.length,tr=new Array(La>1?La-1:0),Sr=1;Sr<La;Sr++)tr[Sr-1]=arguments[Sr];if(Va&&xl.current){var io;(io=xl.current).onKeyUp.apply(io,[sa].concat(tr))}Mr==null||Mr.apply(void 0,[sa].concat(tr))},tt=function(sa){var La=pa.filter(function(tr){return tr!==sa});Ua(La,{type:"remove",values:[sa]})},nt=ie.useRef(!1),bt=function(){Nu(!0),wr||(Bo&&!nt.current&&Bo.apply(void 0,arguments),zo.includes("focus")&&wo(!0)),nt.current=!0},zt=function(){Nu(!1,function(){nt.current=!1,wo(!1)}),!wr&&(tu&&(sr==="tags"?bo(tu,{source:"submit"}):sr==="multiple"&&bo("",{source:"blur"})),va&&va.apply(void 0,arguments))},Ot=[];ie.useEffect(function(){return function(){Ot.forEach(function(ba){return clearTimeout(ba)}),Ot.splice(0,Ot.length)}},[]);var Qt=function(sa){var La,tr=sa.target,Sr=(La=qi.current)===null||La===void 0?void 0:La.getPopupElement();if(Sr&&Sr.contains(tr)){var io=setTimeout(function(){var Go=Ot.indexOf(io);if(Go!==-1&&Ot.splice(Go,1),Eu(),!zl&&!Sr.contains(document.activeElement)){var ri;(ri=Wi.current)===null||ri===void 0||ri.focus()}});Ot.push(io)}for(var Jr=arguments.length,Hr=new Array(Jr>1?Jr-1:0),Io=1;Io<Jr;Io++)Hr[Io-1]=arguments[Io];Eo==null||Eo.apply(void 0,[sa].concat(Hr))},fn=ie.useState({}),Jt=(0,Ae.Z)(fn,2),Hn=Jt[1];function zn(){Hn({})}var Qn;jl&&(Qn=function(sa){wo(sa)}),Mt(function(){var ba;return[Ri.current,(ba=qi.current)===null||ba===void 0?void 0:ba.getPopupElement()]},eo,wo,!!jl);var za=ie.useMemo(function(){return(0,Oe.Z)((0,Oe.Z)({},he),{},{notFoundContent:Ia,open:Va,triggerOpen:eo,id:at,showSearch:Bi,multiple:fi,toggleOpen:wo})},[he,Ia,eo,Va,at,Bi,fi,wo]),Da=!!mo||zr,ja;Da&&(ja=ie.createElement($t,{className:ue()("".concat(ft,"-arrow"),(0,Te.Z)({},"".concat(ft,"-arrow-loading"),zr)),customizeIcon:mo,customizeIconProps:{loading:zr,searchValue:tu,open:Va,focused:eu,showSearch:Bi}}));var Na=function(){var sa;Oa==null||Oa(),(sa=Wi.current)===null||sa===void 0||sa.focus(),Ua([],{type:"clear",values:pa}),zi("",!1,!1)},qa=an(ft,Na,pa,ro,xo,wr,tu,sr),Tr=qa.allowClear,hr=qa.clearIcon,Pr=ie.createElement(mi,{ref:xl}),So=ue()(ft,Ht,($e={},(0,Te.Z)($e,"".concat(ft,"-focused"),eu),(0,Te.Z)($e,"".concat(ft,"-multiple"),fi),(0,Te.Z)($e,"".concat(ft,"-single"),!fi),(0,Te.Z)($e,"".concat(ft,"-allow-clear"),ro),(0,Te.Z)($e,"".concat(ft,"-show-arrow"),Da),(0,Te.Z)($e,"".concat(ft,"-disabled"),wr),(0,Te.Z)($e,"".concat(ft,"-loading"),zr),(0,Te.Z)($e,"".concat(ft,"-open"),Va),(0,Te.Z)($e,"".concat(ft,"-customize-input"),xu),(0,Te.Z)($e,"".concat(ft,"-show-search"),Bi),$e)),No=ie.createElement(nl,{ref:qi,disabled:wr,prefixCls:ft,visible:eo,popupElement:Pr,animation:Ft,transitionName:Pa,dropdownStyle:Ir,dropdownClassName:ra,direction:Jn,dropdownMatchSelectWidth:wn,dropdownRender:Rr,dropdownAlign:Ya,placement:Xa,builtinPlacements:Ta,getPopupContainer:oo,empty:Ln,getTriggerDOMNode:function(){return ml.current},onPopupVisibleChange:Qn,onPopupMouseEnter:zn},jl?ie.cloneElement(jl,{ref:wu}):ie.createElement(mr,(0,Ge.Z)({},he,{domRef:ml,prefixCls:ft,inputElement:xu,ref:Wi,id:at,showSearch:Bi,autoClearSearchValue:Do,mode:sr,activeDescendantId:Ur,tagRender:An,values:pa,open:Va,onToggleOpen:wo,activeValue:lr,searchValue:tu,onSearch:zi,onSearchSubmit:wl,onRemove:tt,tokenWithEnter:Mi}))),cr;return jl?cr=No:cr=ie.createElement("div",(0,Ge.Z)({className:So},ni,{ref:Ri,onMouseDown:Qt,onKeyDown:De,onKeyUp:ze,onFocus:bt,onBlur:zt}),eu&&!Va&&ie.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(pa.map(function(ba){var sa=ba.label,La=ba.value;return["number","string"].includes((0,ye.Z)(sa))?sa:La}).join(", "))),No,ja,Tr&&hr),ie.createElement(rt.Provider,{value:za},cr)}),pr=ka,Fo=function(he,Ee){var We=ie.useRef({values:new Map,options:new Map}),$e=ie.useMemo(function(){var ft=We.current,Ht=ft.values,yn=ft.options,An=he.map(function(pa){if(pa.label===void 0){var Ua;return(0,Oe.Z)((0,Oe.Z)({},pa),{},{label:(Ua=Ht.get(pa.value))===null||Ua===void 0?void 0:Ua.label})}return pa}),Jn=new Map,On=new Map;return An.forEach(function(pa){Jn.set(pa.value,pa),On.set(pa.value,Ee.get(pa.value)||yn.get(pa.value))}),We.current.values=Jn,We.current.options=On,An},[he,Ee]),at=ie.useCallback(function(ft){return Ee.get(ft)||We.current.options.get(ft)},[Ee]);return[$e,at]};function yr(he,Ee){return Qa(he).join("").toUpperCase().includes(Ee)}var gi=function(he,Ee,We,$e,at){return ie.useMemo(function(){if(!We||$e===!1)return he;var ft=Ee.options,Ht=Ee.label,yn=Ee.value,An=[],Jn=typeof $e=="function",On=We.toUpperCase(),pa=Jn?$e:function(Ln,ia){return at?yr(ia[at],On):ia[ft]?yr(ia[Ht!=="children"?Ht:"label"],On):yr(ia[yn],On)},Ua=Jn?function(Ln){return da(Ln)}:function(Ln){return Ln};return he.forEach(function(Ln){if(Ln[ft]){var ia=pa(We,Ua(Ln));if(ia)An.push(Ln);else{var Ia=Ln[ft].filter(function(Oa){return pa(We,Ua(Oa))});Ia.length&&An.push((0,Oe.Z)((0,Oe.Z)({},Ln),{},(0,Te.Z)({},ft,Ia)))}return}pa(We,Ua(Ln))&&An.push(Ln)}),An},[he,$e,at,We,Ee])},Pi=0,wi=E();function Ni(){var he;return wi?(he=Pi,Pi+=1):he="TEST_OR_SSR",he}function Ji(he){var Ee=ie.useState(),We=(0,Ae.Z)(Ee,2),$e=We[0],at=We[1];return ie.useEffect(function(){at("rc_select_".concat(Ni()))},[]),he||$e}function Jl(he){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},We=[];return ie.Children.forEach(he,function($e){$e==null&&!Ee.keepEmpty||(Array.isArray($e)?We=We.concat(Jl($e)):(0,Ce.isFragment)($e)&&$e.props?We=We.concat(Jl($e.props.children,Ee)):We.push($e))}),We}var ll=["children","value"],vu=["children"];function ou(he){var Ee=he,We=Ee.key,$e=Ee.props,at=$e.children,ft=$e.value,Ht=(0,Me.Z)($e,ll);return(0,Oe.Z)({key:We,value:ft!==void 0?ft:We,children:at},Ht)}function vo(he){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Jl(he).map(function(We,$e){if(!ie.isValidElement(We)||!We.type)return null;var at=We,ft=at.type.isSelectOptGroup,Ht=at.key,yn=at.props,An=yn.children,Jn=(0,Me.Z)(yn,vu);return Ee||!ft?ou(We):(0,Oe.Z)((0,Oe.Z)({key:"__RC_SELECT_GRP__".concat(Ht===null?$e:Ht,"__"),label:Ht},Jn),{},{options:vo(An)})}).filter(function(We){return We})}function hl(he,Ee,We,$e,at){return ie.useMemo(function(){var ft=he,Ht=!he;Ht&&(ft=vo(Ee));var yn=new Map,An=new Map,Jn=function(Ua,Ln,ia){ia&&typeof ia=="string"&&Ua.set(Ln[ia],Ln)};function On(pa){for(var Ua=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ln=0;Ln<pa.length;Ln+=1){var ia=pa[Ln];!ia[We.options]||Ua?(yn.set(ia[We.value],ia),Jn(An,ia,We.label),Jn(An,ia,$e),Jn(An,ia,at)):On(ia[We.options],!0)}}return On(ft),{options:ft,valueOptions:yn,labelOptions:An}},[he,Ee,We,$e,at])}function Yl(he){var Ee=ie.useRef();Ee.current=he;var We=ie.useCallback(function(){return Ee.current.apply(Ee,arguments)},[]);return We}var Xl=function(){return null};Xl.isSelectOptGroup=!0;var al=Xl,Gi=function(){return null};Gi.isSelectOption=!0;var ql=Gi;function Ll(he,Ee){var We=(0,Oe.Z)({},he);return Array.isArray(Ee)&&Ee.forEach(function($e){delete We[$e]}),We}var Rl=ee(73299),Vt=ie.createContext(null),qt=Vt;function bn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var et=["disabled","title","children","style","className"];function Pn(he){return typeof he=="string"||typeof he=="number"}var ha=function(Ee,We){var $e=jt(),at=$e.prefixCls,ft=$e.id,Ht=$e.open,yn=$e.multiple,An=$e.mode,Jn=$e.searchValue,On=$e.toggleOpen,pa=$e.notFoundContent,Ua=$e.onPopupScroll,Ln=ie.useContext(qt),ia=Ln.flattenOptions,Ia=Ln.onActiveValue,Oa=Ln.defaultActiveFirstOption,sr=Ln.onSelect,wr=Ln.menuItemSelectedIcon,zr=Ln.rawValues,Zr=Ln.fieldNames,yo=Ln.virtual,vr=Ln.direction,Or=Ln.listHeight,Gr=Ln.listItemHeight,lr="".concat(at,"-item"),Lr=Ke(function(){return ia},[Ht,ia],function(Ya,Xa){return Xa[0]&&Ya[1]!==Xa[1]}),Ur=ie.useRef(null),Oo=function(Xa){Xa.preventDefault()},Do=function(Xa){Ur.current&&Ur.current.scrollTo(typeof Xa=="number"?{index:Xa}:Xa)},bo=function(Xa){for(var Ta=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,oo=Lr.length,xr=0;xr<oo;xr+=1){var zo=(Xa+xr*Ta+oo)%oo,Bo=Lr[zo],va=Bo.group,Mr=Bo.data;if(!va&&!Mr.disabled)return zo}return-1},Lo=ie.useState(function(){return bo(0)}),Co=(0,Ae.Z)(Lo,2),ro=Co[0],mo=Co[1],xo=function(Xa){var Ta=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;mo(Xa);var oo={source:Ta?"keyboard":"mouse"},xr=Lr[Xa];if(!xr){Ia(null,-1,oo);return}Ia(xr.value,Xa,oo)};(0,ie.useEffect)(function(){xo(Oa!==!1?bo(0):-1)},[Lr.length,Jn]);var mi=ie.useCallback(function(Ya){return zr.has(Ya)&&An!=="combobox"},[An,(0,b.Z)(zr).toString(),zr.size]);(0,ie.useEffect)(function(){var Ya=setTimeout(function(){if(!yn&&Ht&&zr.size===1){var Ta=Array.from(zr)[0],oo=Lr.findIndex(function(xr){var zo=xr.data;return zo.value===Ta});oo!==-1&&(xo(oo),Do(oo))}});if(Ht){var Xa;(Xa=Ur.current)===null||Xa===void 0||Xa.scrollTo(void 0)}return function(){return clearTimeout(Ya)}},[Ht,Jn,ia.length]);var Ft=function(Xa){Xa!==void 0&&sr(Xa,{selected:!zr.has(Xa)}),yn||On(!1)};if(ie.useImperativeHandle(We,function(){return{onKeyDown:function(Xa){var Ta=Xa.which,oo=Xa.ctrlKey;switch(Ta){case ke.N:case ke.P:case ke.UP:case ke.DOWN:{var xr=0;if(Ta===ke.UP?xr=-1:Ta===ke.DOWN?xr=1:bn()&&oo&&(Ta===ke.N?xr=1:Ta===ke.P&&(xr=-1)),xr!==0){var zo=bo(ro+xr,xr);Do(zo),xo(zo,!0)}break}case ke.ENTER:{var Bo=Lr[ro];Bo&&!Bo.data.disabled?Ft(Bo.value):Ft(void 0),Ht&&Xa.preventDefault();break}case ke.ESC:On(!1),Ht&&Xa.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Xa){Do(Xa)}}}),Lr.length===0)return ie.createElement("div",{role:"listbox",id:"".concat(ft,"_list"),className:"".concat(lr,"-empty"),onMouseDown:Oo},pa);var Pa=Object.keys(Zr).map(function(Ya){return Zr[Ya]}),Ir=function(Xa){return Xa.label};function ra(Ya,Xa){var Ta=Ya.group;return{role:Ta?"presentation":"option",id:"".concat(ft,"_list_").concat(Xa)}}var wn=function(Xa){var Ta=Lr[Xa];if(!Ta)return null;var oo=Ta.data||{},xr=oo.value,zo=Ta.group,Bo=Lt(oo,!0),va=Ir(Ta);return Ta?ie.createElement("div",(0,Ge.Z)({"aria-label":typeof va=="string"&&!zo?va:null},Bo,{key:Xa},ra(Ta,Xa),{"aria-selected":mi(xr)}),xr):null},Rr={role:"listbox",id:"".concat(ft,"_list")};return ie.createElement(ie.Fragment,null,yo&&ie.createElement("div",(0,Ge.Z)({},Rr,{style:{height:0,width:0,overflow:"hidden"}}),wn(ro-1),wn(ro),wn(ro+1)),ie.createElement(Rl.Z,{itemKey:"key",ref:Ur,data:Lr,height:Or,itemHeight:Gr,fullHeight:!1,onMouseDown:Oo,onScroll:Ua,virtual:yo,direction:vr,innerProps:yo?null:Rr},function(Ya,Xa){var Ta,oo=Ya.group,xr=Ya.groupOption,zo=Ya.data,Bo=Ya.label,va=Ya.value,Mr=zo.key;if(oo){var fo,Eo=(fo=zo.title)!==null&&fo!==void 0?fo:Pn(Bo)?Bo.toString():void 0;return ie.createElement("div",{className:ue()(lr,"".concat(lr,"-group")),title:Eo},Bo!==void 0?Bo:Mr)}var jo=zo.disabled,fi=zo.title,Bi=zo.children,ni=zo.style,Zi=zo.className,gl=(0,Me.Z)(zo,et),zl=Ll(gl,Pa),Ki=mi(va),Ri="".concat(lr,"-option"),ml=ue()(lr,Ri,Zi,(Ta={},(0,Te.Z)(Ta,"".concat(Ri,"-grouped"),xr),(0,Te.Z)(Ta,"".concat(Ri,"-active"),ro===Xa&&!jo),(0,Te.Z)(Ta,"".concat(Ri,"-disabled"),jo),(0,Te.Z)(Ta,"".concat(Ri,"-selected"),Ki),Ta)),qi=Ir(Ya),Wi=!wr||typeof wr=="function"||Ki,xl=typeof qi=="number"?qi:qi||va,Sl=Pn(xl)?xl.toString():void 0;return fi!==void 0&&(Sl=fi),ie.createElement("div",(0,Ge.Z)({},Lt(zl),yo?{}:ra(Ya,Xa),{"aria-selected":Ki,className:ml,title:Sl,onMouseMove:function(){ro===Xa||jo||xo(Xa)},onClick:function(){jo||Ft(va)},style:ni}),ie.createElement("div",{className:"".concat(Ri,"-content")},xl),ie.isValidElement(wr)||Ki,Wi&&ie.createElement($t,{className:"".concat(lr,"-option-state"),customizeIcon:wr,customizeIconProps:{isSelected:Ki}},Ki?"\u2713":null))}))},Sa=ie.forwardRef(ha);Sa.displayName="OptionList";var on=Sa;function Dn(he){var Ee=he.mode,We=he.options,$e=he.children,at=he.backfill,ft=he.allowClear,Ht=he.placeholder,yn=he.getInputElement,An=he.showSearch,Jn=he.onSearch,On=he.defaultOpen,pa=he.autoFocus,Ua=he.labelInValue,Ln=he.value,ia=he.inputValue,Ia=he.optionLabelProp,Oa=isMultiple(Ee),sr=An!==void 0?An:Oa||Ee==="combobox",wr=We||convertChildrenToData($e);if(warning(Ee!=="tags"||wr.every(function(vr){return!vr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ee==="tags"||Ee==="combobox"){var zr=wr.some(function(vr){return vr.options?vr.options.some(function(Or){return typeof("value"in Or?Or.value:Or.key)=="number"}):typeof("value"in vr?vr.value:vr.key)=="number"});warning(!zr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ee!=="combobox"||!Ia,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ee==="combobox"||!at,"`backfill` only works with `combobox` mode."),warning(Ee==="combobox"||!yn,"`getInputElement` only work with `combobox` mode."),noteOnce(Ee!=="combobox"||!yn||!ft||!Ht,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Jn&&!sr&&Ee!=="combobox"&&Ee!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!On||pa,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ln!=null){var Zr=toArray(Ln);warning(!Ua||Zr.every(function(vr){return _typeof(vr)==="object"&&("key"in vr||"value"in vr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Oa||Array.isArray(Ln),"`value` should be array when `mode` is `multiple` or `tags`")}if($e){var yo=null;toNodeArray($e).some(function(vr){if(!React.isValidElement(vr)||!vr.type)return!1;var Or=vr,Gr=Or.type;if(Gr.isSelectOption)return!1;if(Gr.isSelectOptGroup){var lr=toNodeArray(vr.props.children).every(function(Lr){return!React.isValidElement(Lr)||!vr.type||Lr.type.isSelectOption?!0:(yo=Lr.type,!1)});return!lr}return yo=Gr,!0}),yo&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(yo.displayName||yo.name||yo,"`.")),warning(ia===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function un(he,Ee){if(he){var We=function $e(at){for(var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ht=0;Ht<at.length;Ht++){var yn=at[Ht];if(yn[Ee==null?void 0:Ee.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!ft&&Array.isArray(yn[Ee==null?void 0:Ee.options])&&$e(yn[Ee==null?void 0:Ee.options],!0))break}};We(he)}}var oa=null,Ha=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],gr=["inputValue"];function ar(he){return!he||(0,ye.Z)(he)!=="object"}var br=ie.forwardRef(function(he,Ee){var We=he.id,$e=he.mode,at=he.prefixCls,ft=at===void 0?"rc-select":at,Ht=he.backfill,yn=he.fieldNames,An=he.inputValue,Jn=he.searchValue,On=he.onSearch,pa=he.autoClearSearchValue,Ua=pa===void 0?!0:pa,Ln=he.onSelect,ia=he.onDeselect,Ia=he.dropdownMatchSelectWidth,Oa=Ia===void 0?!0:Ia,sr=he.filterOption,wr=he.filterSort,zr=he.optionFilterProp,Zr=he.optionLabelProp,yo=he.options,vr=he.children,Or=he.defaultActiveFirstOption,Gr=he.menuItemSelectedIcon,lr=he.virtual,Lr=he.direction,Ur=he.listHeight,Oo=Ur===void 0?200:Ur,Do=he.listItemHeight,bo=Do===void 0?20:Do,Lo=he.value,Co=he.defaultValue,ro=he.labelInValue,mo=he.onChange,xo=(0,Me.Z)(he,Ha),mi=Ji(We),Ft=Zo($e),Pa=!!(!yo&&vr),Ir=ie.useMemo(function(){return sr===void 0&&$e==="combobox"?!1:sr},[sr,$e]),ra=ie.useMemo(function(){return il(yn,Pa)},[JSON.stringify(yn),Pa]),wn=re("",{value:Jn!==void 0?Jn:An,postState:function(jr){return jr||""}}),Rr=(0,Ae.Z)(wn,2),Ya=Rr[0],Xa=Rr[1],Ta=hl(yo,vr,ra,zr,Zr),oo=Ta.valueOptions,xr=Ta.labelOptions,zo=Ta.options,Bo=ie.useCallback(function(Va){var jr=Qa(Va);return jr.map(function(eo){var wo,Mi,zi,wl,kl;if(ar(eo))wo=eo;else{var Ou;zi=eo.key,Mi=eo.label,wo=(Ou=eo.value)!==null&&Ou!==void 0?Ou:zi}var ce=oo.get(wo);if(ce){var fe;if(Mi===void 0&&(Mi=ce==null?void 0:ce[Zr||ra.label]),zi===void 0&&(zi=(fe=ce==null?void 0:ce.key)!==null&&fe!==void 0?fe:wo),wl=ce==null?void 0:ce.disabled,kl=ce==null?void 0:ce.title,0)var De}return{label:Mi,value:wo,key:zi,disabled:wl,title:kl}})},[ra,Zr,oo]),va=re(Co,{value:Lo}),Mr=(0,Ae.Z)(va,2),fo=Mr[0],Eo=Mr[1],jo=ie.useMemo(function(){var Va,jr=Bo(fo);return $e==="combobox"&&Nt((Va=jr[0])===null||Va===void 0?void 0:Va.value)?[]:jr},[fo,Bo,$e]),fi=Fo(jo,oo),Bi=(0,Ae.Z)(fi,2),ni=Bi[0],Zi=Bi[1],gl=ie.useMemo(function(){if(!$e&&ni.length===1){var Va=ni[0];if(Va.value===null&&(Va.label===null||Va.label===void 0))return[]}return ni.map(function(jr){var eo;return(0,Oe.Z)((0,Oe.Z)({},jr),{},{label:(eo=jr.label)!==null&&eo!==void 0?eo:jr.value})})},[$e,ni]),zl=ie.useMemo(function(){return new Set(ni.map(function(Va){return Va.value}))},[ni]);ie.useEffect(function(){if($e==="combobox"){var Va,jr=(Va=ni[0])===null||Va===void 0?void 0:Va.value;Xa(Rt(jr)?String(jr):"")}},[ni]);var Ki=Yl(function(Va,jr){var eo,wo=jr!=null?jr:Va;return eo={},(0,Te.Z)(eo,ra.value,Va),(0,Te.Z)(eo,ra.label,wo),eo}),Ri=ie.useMemo(function(){if($e!=="tags")return zo;var Va=(0,b.Z)(zo),jr=function(wo){return oo.has(wo)};return(0,b.Z)(ni).sort(function(eo,wo){return eo.value<wo.value?-1:1}).forEach(function(eo){var wo=eo.value;jr(wo)||Va.push(Ki(wo,eo.label))}),Va},[Ki,zo,oo,ni,$e]),ml=gi(Ri,ra,Ya,Ir,zr),qi=ie.useMemo(function(){return $e!=="tags"||!Ya||ml.some(function(Va){return Va[zr||"value"]===Ya})||ml.some(function(Va){return Va[ra.value]===Ya})?ml:[Ki(Ya)].concat((0,b.Z)(ml))},[Ki,zr,$e,ml,Ya,ra]),Wi=ie.useMemo(function(){return wr?(0,b.Z)(qi).sort(function(Va,jr){return wr(Va,jr)}):qi},[qi,wr]),xl=ie.useMemo(function(){return pu(Wi,{fieldNames:ra,childrenAsData:Pa})},[Wi,ra,Pa]),Sl=function(jr){var eo=Bo(jr);if(Eo(eo),mo&&(eo.length!==ni.length||eo.some(function(zi,wl){var kl;return((kl=ni[wl])===null||kl===void 0?void 0:kl.value)!==(zi==null?void 0:zi.value)}))){var wo=ro?eo:eo.map(function(zi){return zi.value}),Mi=eo.map(function(zi){return da(Zi(zi.value))});mo(Ft?wo:wo[0],Ft?Mi:Mi[0])}},uu=ie.useState(null),eu=(0,Ae.Z)(uu,2),Nu=eu[0],Eu=eu[1],tu=ie.useState(0),xu=(0,Ae.Z)(tu,2),jl=xu[0],wu=xu[1],Iu=Or!==void 0?Or:$e!=="combobox",Ti=ie.useCallback(function(Va,jr){var eo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},wo=eo.source,Mi=wo===void 0?"keyboard":wo;wu(jr),Ht&&$e==="combobox"&&Va!==null&&Mi==="keyboard"&&Eu(String(Va))},[Ht,$e]),yi=function(jr,eo,wo){var Mi=function(){var nt,bt=Zi(jr);return[ro?{label:bt==null?void 0:bt[ra.label],value:jr,key:(nt=bt==null?void 0:bt.key)!==null&&nt!==void 0?nt:jr}:jr,da(bt)]};if(eo&&Ln){var zi=Mi(),wl=(0,Ae.Z)(zi,2),kl=wl[0],Ou=wl[1];Ln(kl,Ou)}else if(!eo&&ia&&wo!=="clear"){var ce=Mi(),fe=(0,Ae.Z)(ce,2),De=fe[0],ze=fe[1];ia(De,ze)}},Ai=Yl(function(Va,jr){var eo,wo=Ft?jr.selected:!0;wo?eo=Ft?[].concat((0,b.Z)(ni),[Va]):[Va]:eo=ni.filter(function(Mi){return Mi.value!==Va}),Sl(eo),yi(Va,wo),$e==="combobox"?Eu(""):(!Zo||Ua)&&(Xa(""),Eu(""))}),Gl=function(jr,eo){Sl(jr);var wo=eo.type,Mi=eo.values;(wo==="remove"||wo==="clear")&&Mi.forEach(function(zi){yi(zi.value,!1,wo)})},ul=function(jr,eo){if(Xa(jr),Eu(null),eo.source==="submit"){var wo=(jr||"").trim();if(wo){var Mi=Array.from(new Set([].concat((0,b.Z)(zl),[wo])));Sl(Mi),yi(wo,!0),Xa("")}return}eo.source!=="blur"&&($e==="combobox"&&Sl(jr),On==null||On(jr))},Ul=function(jr){var eo=jr;$e!=="tags"&&(eo=jr.map(function(Mi){var zi=xr.get(Mi);return zi==null?void 0:zi.value}).filter(function(Mi){return Mi!==void 0}));var wo=Array.from(new Set([].concat((0,b.Z)(zl),(0,b.Z)(eo))));Sl(wo),wo.forEach(function(Mi){yi(Mi,!0)})},Ro=ie.useMemo(function(){var Va=lr!==!1&&Oa!==!1;return(0,Oe.Z)((0,Oe.Z)({},Ta),{},{flattenOptions:xl,onActiveValue:Ti,defaultActiveFirstOption:Iu,onSelect:Ai,menuItemSelectedIcon:Gr,rawValues:zl,fieldNames:ra,virtual:Va,direction:Lr,listHeight:Oo,listItemHeight:bo,childrenAsData:Pa})},[Ta,xl,Ti,Iu,Ai,Gr,zl,ra,lr,Oa,Oo,bo,Pa]);return ie.createElement(qt.Provider,{value:Ro},ie.createElement(pr,(0,Ge.Z)({},xo,{id:mi,prefixCls:ft,ref:Ee,omitDomProps:gr,mode:$e,displayValues:gl,onDisplayValuesChange:Gl,direction:Lr,searchValue:Ya,onSearch:ul,autoClearSearchValue:Ua,onSearchSplit:Ul,dropdownMatchSelectWidth:Oa,OptionList:on,emptyOptions:!xl.length,activeValue:Nu,activeDescendantId:"".concat(mi,"_list_").concat(jl)})))}),_a=br;_a.Option=ql,_a.OptGroup=al;var aa=null,Xt=null,Wn=ee(17341);function ta(he){var Ee=ie.useRef(!1),We=ie.useState(he),$e=(0,Ae.Z)(We,2),at=$e[0],ft=$e[1];ie.useEffect(function(){return Ee.current=!1,function(){Ee.current=!0}},[]);function Ht(yn,An){An&&Ee.current||ft(yn)}return[at,Ht]}function $a(he){return he!==void 0}function Er(he,Ee){var We=Ee||{},$e=We.defaultValue,at=We.value,ft=We.onChange,Ht=We.postState,yn=ta(function(){return $a(at)?at:$a($e)?typeof $e=="function"?$e():$e:typeof he=="function"?he():he}),An=(0,Ae.Z)(yn,2),Jn=An[0],On=An[1],pa=at!==void 0?at:Jn,Ua=Ht?Ht(pa):pa,Ln=vt(ft),ia=ta([pa]),Ia=(0,Ae.Z)(ia,2),Oa=Ia[0],sr=Ia[1];Dt(function(){var zr=Oa[0];Jn!==zr&&Ln(Jn,zr)},[Oa]),Dt(function(){$a(at)||On(at)},[at]);var wr=vt(function(zr,Zr){On(zr,Zr),sr([pa],Zr)});return[Ua,wr]}var Cr=ie.createContext(null),Qr=Cr,Br="__rc_cascader_search_mark__",Kr=function(Ee,We,$e){var at=$e.label;return We.some(function(ft){return String(ft[at]).toLowerCase().includes(Ee.toLowerCase())})},Ca=function(Ee,We,$e,at){return We.map(function(ft){return ft[at.label]}).join(" / ")},Wr=function(he,Ee,We,$e,at,ft){var Ht=at.filter,yn=Ht===void 0?Kr:Ht,An=at.render,Jn=An===void 0?Ca:An,On=at.limit,pa=On===void 0?50:On,Ua=at.sort;return ie.useMemo(function(){var Ln=[];if(!he)return[];function ia(Ia,Oa){var sr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Ia.forEach(function(wr){if(!(!Ua&&pa!==!1&&pa>0&&Ln.length>=pa)){var zr=[].concat((0,b.Z)(Oa),[wr]),Zr=wr[We.children],yo=sr||wr.disabled;if((!Zr||Zr.length===0||ft)&&yn(he,zr,{label:We.label})){var vr;Ln.push((0,Oe.Z)((0,Oe.Z)({},wr),{},(vr={disabled:yo},(0,Te.Z)(vr,We.label,Jn(he,zr,$e,We)),(0,Te.Z)(vr,Br,zr),(0,Te.Z)(vr,We.children,void 0),vr)))}Zr&&ia(wr[We.children],zr,yo)}})}return ia(Ee,[]),Ua&&Ln.sort(function(Ia,Oa){return Ua(Ia[Br],Oa[Br],he,We)}),pa!==!1&&pa>0?Ln.slice(0,pa):Ln},[he,Ee,We,$e,Jn,ft,yn,Ua,pa])},Ko="__RC_CASCADER_SPLIT__",To="SHOW_PARENT",si="SHOW_CHILD";function Wo(he){return he.join(Ko)}function di(he){return he.map(Wo)}function uo(he){return he.split(Ko)}function ti(he){var Ee=he||{},We=Ee.label,$e=Ee.value,at=Ee.children,ft=$e||"value";return{label:We||"label",value:ft,key:ft,children:at||"children"}}function Fi(he,Ee){var We,$e;return(We=he.isLeaf)!==null&&We!==void 0?We:!(($e=he[Ee.children])!==null&&$e!==void 0&&$e.length)}function Li(he){var Ee=he.parentElement;if(Ee){var We=he.offsetTop-Ee.offsetTop;We-Ee.scrollTop<0?Ee.scrollTo({top:We}):We+he.offsetHeight-Ee.scrollTop>Ee.offsetHeight&&Ee.scrollTo({top:We+he.offsetHeight-Ee.offsetHeight})}}function cl(he,Ee){return he.map(function(We){var $e;return($e=We[Br])===null||$e===void 0?void 0:$e.map(function(at){return at[Ee.value]})})}function Al(he,Ee,We){var $e=new Set(he),at=Ee();return he.filter(function(ft){var Ht=at[ft],yn=Ht?Ht.parent:null,An=Ht?Ht.children:null;return Ht&&Ht.node.disabled?!0:We===si?!(An&&An.some(function(Jn){return Jn.key&&$e.has(Jn.key)})):!(yn&&!yn.node.disabled&&$e.has(yn.key))})}function Hi(he,Ee,We){for(var $e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,at=Ee,ft=[],Ht=function(){var Jn,On,pa,Ua=he[yn],Ln=(Jn=at)===null||Jn===void 0?void 0:Jn.findIndex(function(Ia){var Oa=Ia[We.value];return $e?String(Oa)===String(Ua):Oa===Ua}),ia=Ln!==-1?(On=at)===null||On===void 0?void 0:On[Ln]:null;ft.push({value:(pa=ia==null?void 0:ia[We.value])!==null&&pa!==void 0?pa:Ua,index:Ln,option:ia}),at=ia==null?void 0:ia[We.children]},yn=0;yn<he.length;yn+=1)Ht();return ft}var ai=function(he,Ee,We,$e,at){return ie.useMemo(function(){var ft=at||function(Ht){var yn=$e?Ht.slice(-1):Ht,An=" / ";return yn.every(function(Jn){return["string","number"].includes((0,ye.Z)(Jn))})?yn.join(An):yn.reduce(function(Jn,On,pa){var Ua=ie.isValidElement(On)?ie.cloneElement(On,{key:pa}):On;return pa===0?[Ua]:[].concat((0,b.Z)(Jn),[An,Ua])},[])};return he.map(function(Ht){var yn,An,Jn=Hi(Ht,Ee,We),On=ft(Jn.map(function(Ua){var Ln,ia=Ua.option,Ia=Ua.value;return(Ln=ia==null?void 0:ia[We.label])!==null&&Ln!==void 0?Ln:Ia}),Jn.map(function(Ua){var Ln=Ua.option;return Ln})),pa=Wo(Ht);return{label:On,value:pa,key:pa,valueCells:Ht,disabled:(yn=Jn[Jn.length-1])===null||yn===void 0||(An=yn.option)===null||An===void 0?void 0:An.disabled}})},[he,Ee,We,at,$e])},bl=ee(1089),Ml=function(he,Ee){var We=ie.useRef({options:null,info:null}),$e=ie.useCallback(function(){return We.current.options!==he&&(We.current.options=he,We.current.info=(0,bl.I8)(he,{fieldNames:Ee,initWrapper:function(ft){return(0,Oe.Z)((0,Oe.Z)({},ft),{},{pathKeyEntities:{}})},processEntity:function(ft,Ht){var yn=ft.nodes.map(function(An){return An[Ee.value]}).join(Ko);Ht.pathKeyEntities[yn]=ft,ft.key=yn}})),We.current.info.pathKeyEntities},[Ee,he]);return $e},Zl=function(he,Ee){return ie.useCallback(function(We){var $e=[],at=[];return We.forEach(function(ft){var Ht=Hi(ft,he,Ee);Ht.every(function(yn){return yn.option})?at.push(ft):$e.push(ft)}),[at,$e]},[he,Ee])},Tl={},Cl=[],hu=function(Ee){Cl.push(Ee)};function Dl(he,Ee){if(0)var We}function iu(he,Ee){if(0)var We}function Nl(){Tl={}}function Kl(he,Ee,We){!Ee&&!Tl[We]&&(he(!1,We),Tl[We]=!0)}function Wl(he,Ee){Kl(Dl,he,Ee)}function Su(he,Ee){Kl(iu,he,Ee)}Wl.preMessage=hu,Wl.resetWarned=Nl,Wl.noteOnce=Su;var it=null;function ut(he){return ie.useMemo(function(){if(!he)return[!1,{}];var Ee={matchInputWidth:!0,limit:50};return he&&(0,ye.Z)(he)==="object"&&(Ee=(0,Oe.Z)((0,Oe.Z)({},Ee),he)),Ee.limit<=0&&delete Ee.limit,[!0,Ee]},[he])}var kt=ie.memo(function(he){var Ee=he.children;return Ee},function(he,Ee){return!Ee.open}),Tn=kt;function kn(he){var Ee,We=he.prefixCls,$e=he.checked,at=he.halfChecked,ft=he.disabled,Ht=he.onClick,yn=he.disableCheckbox,An=ie.useContext(Qr),Jn=An.checkable,On=typeof Jn!="boolean"?Jn:null;return ie.createElement("span",{className:ue()("".concat(We),(Ee={},(0,Te.Z)(Ee,"".concat(We,"-checked"),$e),(0,Te.Z)(Ee,"".concat(We,"-indeterminate"),!$e&&at),(0,Te.Z)(Ee,"".concat(We,"-disabled"),ft||yn),Ee)),onClick:Ht},On)}var nn="__cascader_fix_label__";function dn(he){var Ee=he.prefixCls,We=he.multiple,$e=he.options,at=he.activeValue,ft=he.prevValuePath,Ht=he.onToggleOpen,yn=he.onSelect,An=he.onActive,Jn=he.checkedSet,On=he.halfCheckedSet,pa=he.loadingKeys,Ua=he.isSelectable,Ln=he.searchValue,ia="".concat(Ee,"-menu"),Ia="".concat(Ee,"-menu-item"),Oa=ie.useContext(Qr),sr=Oa.fieldNames,wr=Oa.changeOnSelect,zr=Oa.expandTrigger,Zr=Oa.expandIcon,yo=Oa.loadingIcon,vr=Oa.dropdownMenuColumnStyle,Or=zr==="hover",Gr=ie.useMemo(function(){return $e.map(function(lr){var Lr,Ur=lr.disabled,Oo=lr.disableCheckbox,Do=lr[Br],bo=(Lr=lr[nn])!==null&&Lr!==void 0?Lr:lr[sr.label],Lo=lr[sr.value],Co=Fi(lr,sr),ro=Do?Do.map(function(Pa){return Pa[sr.value]}):[].concat((0,b.Z)(ft),[Lo]),mo=Wo(ro),xo=pa.includes(mo),mi=Jn.has(mo),Ft=On.has(mo);return{disabled:Ur,label:bo,value:Lo,isLeaf:Co,isLoading:xo,checked:mi,halfChecked:Ft,option:lr,disableCheckbox:Oo,fullPath:ro,fullPathKey:mo}})},[$e,Jn,sr,On,pa,ft]);return ie.createElement("ul",{className:ia,role:"menu"},Gr.map(function(lr){var Lr,Ur=lr.disabled,Oo=lr.label,Do=lr.value,bo=lr.isLeaf,Lo=lr.isLoading,Co=lr.checked,ro=lr.halfChecked,mo=lr.option,xo=lr.fullPath,mi=lr.fullPathKey,Ft=lr.disableCheckbox,Pa=function(){if(!(Ur||Ln)){var Rr=(0,b.Z)(xo);Or&&bo&&Rr.pop(),An(Rr)}},Ir=function(){Ua(mo)&&yn(xo,bo)},ra;return typeof mo.title=="string"?ra=mo.title:typeof Oo=="string"&&(ra=Oo),ie.createElement("li",{key:mi,className:ue()(Ia,(Lr={},(0,Te.Z)(Lr,"".concat(Ia,"-expand"),!bo),(0,Te.Z)(Lr,"".concat(Ia,"-active"),at===Do||at===mi),(0,Te.Z)(Lr,"".concat(Ia,"-disabled"),Ur),(0,Te.Z)(Lr,"".concat(Ia,"-loading"),Lo),Lr)),style:vr,role:"menuitemcheckbox",title:ra,"aria-checked":Co,"data-path-key":mi,onClick:function(){Pa(),!Ft&&(!We||bo)&&Ir()},onDoubleClick:function(){wr&&Ht(!1)},onMouseEnter:function(){Or&&Pa()},onMouseDown:function(Rr){Rr.preventDefault()}},We&&ie.createElement(kn,{prefixCls:"".concat(Ee,"-checkbox"),checked:Co,halfChecked:ro,disabled:Ur||Ft,disableCheckbox:Ft,onClick:function(Rr){Ft||(Rr.stopPropagation(),Ir())}}),ie.createElement("div",{className:"".concat(Ia,"-content")},Oo),!Lo&&Zr&&!bo&&ie.createElement("div",{className:"".concat(Ia,"-expand-icon")},Zr),Lo&&yo&&ie.createElement("div",{className:"".concat(Ia,"-loading-icon")},yo))}))}var _t=function(){var he=jt(),Ee=he.multiple,We=he.open,$e=ie.useContext(Qr),at=$e.values,ft=ie.useState([]),Ht=(0,Ae.Z)(ft,2),yn=Ht[0],An=Ht[1];return ie.useEffect(function(){if(We&&!Ee){var Jn=at[0];An(Jn||[])}},[We]),[yn,An]},Zt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Ee){var We=Ee.keyCode;if(Ee.altKey&&!Ee.ctrlKey||Ee.metaKey||We>=Zt.F1&&We<=Zt.F12)return!1;switch(We){case Zt.ALT:case Zt.CAPS_LOCK:case Zt.CONTEXT_MENU:case Zt.CTRL:case Zt.DOWN:case Zt.END:case Zt.ESC:case Zt.HOME:case Zt.INSERT:case Zt.LEFT:case Zt.MAC_FF_META:case Zt.META:case Zt.NUMLOCK:case Zt.NUM_CENTER:case Zt.PAGE_DOWN:case Zt.PAGE_UP:case Zt.PAUSE:case Zt.PRINT_SCREEN:case Zt.RIGHT:case Zt.SHIFT:case Zt.UP:case Zt.WIN_KEY:case Zt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ee){if(Ee>=Zt.ZERO&&Ee<=Zt.NINE||Ee>=Zt.NUM_ZERO&&Ee<=Zt.NUM_MULTIPLY||Ee>=Zt.A&&Ee<=Zt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ee===0)return!0;switch(Ee){case Zt.SPACE:case Zt.QUESTION_MARK:case Zt.NUM_PLUS:case Zt.NUM_MINUS:case Zt.NUM_PERIOD:case Zt.NUM_DIVISION:case Zt.SEMICOLON:case Zt.DASH:case Zt.EQUALS:case Zt.COMMA:case Zt.PERIOD:case Zt.SLASH:case Zt.APOSTROPHE:case Zt.SINGLE_QUOTE:case Zt.OPEN_SQUARE_BRACKET:case Zt.BACKSLASH:case Zt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},In=Zt,xa=function(he,Ee,We,$e,at,ft){var Ht=jt(),yn=Ht.direction,An=Ht.searchValue,Jn=Ht.toggleOpen,On=Ht.open,pa=yn==="rtl",Ua=ie.useMemo(function(){for(var vr=-1,Or=Ee,Gr=[],lr=[],Lr=$e.length,Ur=cl(Ee,We),Oo=function(mo){var xo=Or.findIndex(function(mi,Ft){return(Ur[Ft]?Wo(Ur[Ft]):mi[We.value])===$e[mo]});if(xo===-1)return"break";vr=xo,Gr.push(vr),lr.push($e[mo]),Or=Or[vr][We.children]},Do=0;Do<Lr&⩔Do+=1){var bo=Oo(Do);if(bo==="break")break}for(var Lo=Ee,Co=0;Co<Gr.length-1;Co+=1)Lo=Lo[Gr[Co]][We.children];return[lr,vr,Lo,Ur]},[$e,We,Ee]),Ln=(0,Ae.Z)(Ua,4),ia=Ln[0],Ia=Ln[1],Oa=Ln[2],sr=Ln[3],wr=function(Or){at(Or)},zr=function(Or){var Gr=Oa.length,lr=Ia;lr===-1&&Or<0&&(lr=Gr);for(var Lr=0;Lr<Gr;Lr+=1){lr=(lr+Or+Gr)%Gr;var Ur=Oa[lr];if(Ur&&!Ur.disabled){var Oo=ia.slice(0,-1).concat(sr[lr]?Wo(sr[lr]):Ur[We.value]);wr(Oo);return}}},Zr=function(){if(ia.length>1){var Or=ia.slice(0,-1);wr(Or)}else Jn(!1)},yo=function(){var Or,Gr=((Or=Oa[Ia])===null||Or===void 0?void 0:Or[We.children])||[],lr=Gr.find(function(Ur){return!Ur.disabled});if(lr){var Lr=[].concat((0,b.Z)(ia),[lr[We.value]]);wr(Lr)}};ie.useImperativeHandle(he,function(){return{onKeyDown:function(Or){var Gr=Or.which;switch(Gr){case In.UP:case In.DOWN:{var lr=0;Gr===In.UP?lr=-1:Gr===In.DOWN&&(lr=1),lr!==0&&zr(lr);break}case In.LEFT:{if(An)break;pa?yo():Zr();break}case In.RIGHT:{if(An)break;pa?Zr():yo();break}case In.BACKSPACE:{An||Zr();break}case In.ENTER:{if(ia.length){var Lr=Oa[Ia],Ur=(Lr==null?void 0:Lr[Br])||[];Ur.length?ft(Ur.map(function(Oo){return Oo[We.value]}),Ur[Ur.length-1]):ft(ia,Oa[Ia])}break}case In.ESC:Jn(!1),On&&Or.stopPropagation()}},onKeyUp:function(){}}})},Xr=ie.forwardRef(function(he,Ee){var We,$e,at,ft,Ht=jt(),yn=Ht.prefixCls,An=Ht.multiple,Jn=Ht.searchValue,On=Ht.toggleOpen,pa=Ht.notFoundContent,Ua=Ht.direction,Ln=Ht.open,ia=ie.useRef(),Ia=Ua==="rtl",Oa=ie.useContext(Qr),sr=Oa.options,wr=Oa.values,zr=Oa.halfValues,Zr=Oa.fieldNames,yo=Oa.changeOnSelect,vr=Oa.onSelect,Or=Oa.searchOptions,Gr=Oa.dropdownPrefixCls,lr=Oa.loadData,Lr=Oa.expandTrigger,Ur=Gr||yn,Oo=ie.useState([]),Do=(0,Ae.Z)(Oo,2),bo=Do[0],Lo=Do[1],Co=function(Mr){if(!(!lr||Jn)){var fo=Hi(Mr,sr,Zr),Eo=fo.map(function(Bi){var ni=Bi.option;return ni}),jo=Eo[Eo.length-1];if(jo&&!Fi(jo,Zr)){var fi=Wo(Mr);Lo(function(Bi){return[].concat((0,b.Z)(Bi),[fi])}),lr(Eo)}}};ie.useEffect(function(){bo.length&&bo.forEach(function(va){var Mr=uo(va),fo=Hi(Mr,sr,Zr,!0).map(function(jo){var fi=jo.option;return fi}),Eo=fo[fo.length-1];(!Eo||Eo[Zr.children]||Fi(Eo,Zr))&&Lo(function(jo){return jo.filter(function(fi){return fi!==va})})})},[sr,bo,Zr]);var ro=ie.useMemo(function(){return new Set(di(wr))},[wr]),mo=ie.useMemo(function(){return new Set(di(zr))},[zr]),xo=_t(),mi=(0,Ae.Z)(xo,2),Ft=mi[0],Pa=mi[1],Ir=function(Mr){Pa(Mr),Co(Mr)},ra=function(Mr){var fo=Mr.disabled,Eo=Fi(Mr,Zr);return!fo&&(Eo||yo||An)},wn=function(Mr,fo){var Eo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;vr(Mr),!An&&(fo||yo&&(Lr==="hover"||Eo))&&On(!1)},Rr=ie.useMemo(function(){return Jn?Or:sr},[Jn,Or,sr]),Ya=ie.useMemo(function(){for(var va=[{options:Rr}],Mr=Rr,fo=cl(Mr,Zr),Eo=function(){var ni=Ft[jo],Zi=Mr.find(function(zl,Ki){return(fo[Ki]?Wo(fo[Ki]):zl[Zr.value])===ni}),gl=Zi==null?void 0:Zi[Zr.children];if(!(gl!=null&&gl.length))return"break";Mr=gl,va.push({options:gl})},jo=0;jo<Ft.length;jo+=1){var fi=Eo();if(fi==="break")break}return va},[Rr,Ft,Zr]),Xa=function(Mr,fo){ra(fo)&&wn(Mr,Fi(fo,Zr),!0)};xa(Ee,Rr,Zr,Ft,Ir,Xa),ie.useEffect(function(){for(var va=0;va<Ft.length;va+=1){var Mr,fo=Ft.slice(0,va+1),Eo=Wo(fo),jo=(Mr=ia.current)===null||Mr===void 0?void 0:Mr.querySelector('li[data-path-key="'.concat(Eo.replace(/\\{0,2}"/g,'\\"'),'"]'));jo&&Li(jo)}},[Ft]);var Ta=!((We=Ya[0])!==null&&We!==void 0&&($e=We.options)!==null&&$e!==void 0&&$e.length),oo=[(at={},(0,Te.Z)(at,Zr.value,"__EMPTY__"),(0,Te.Z)(at,nn,pa),(0,Te.Z)(at,"disabled",!0),at)],xr=(0,Oe.Z)((0,Oe.Z)({},he),{},{multiple:!Ta&&An,onSelect:wn,onActive:Ir,onToggleOpen:On,checkedSet:ro,halfCheckedSet:mo,loadingKeys:bo,isSelectable:ra}),zo=Ta?[{options:oo}]:Ya,Bo=zo.map(function(va,Mr){var fo=Ft.slice(0,Mr),Eo=Ft[Mr];return ie.createElement(dn,(0,Ge.Z)({key:Mr},xr,{searchValue:Jn,prefixCls:Ur,options:va.options,prevValuePath:fo,activeValue:Eo}))});return ie.createElement(Tn,{open:Ln},ie.createElement("div",{className:ue()("".concat(Ur,"-menus"),(ft={},(0,Te.Z)(ft,"".concat(Ur,"-menu-empty"),Ta),(0,Te.Z)(ft,"".concat(Ur,"-rtl"),Ia),ft)),ref:ia},Bo))}),Nr=Xr;function $o(he){var Ee=he.onPopupVisibleChange,We=he.popupVisible,$e=he.popupClassName,at=he.popupPlacement;warning(!Ee,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(We===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning($e===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(at===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Uo(he,Ee){if(he){var We=function $e(at){for(var ft=0;ft<at.length;ft++){var Ht=at[ft];if(Ht[Ee==null?void 0:Ee.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(Ht[Ee==null?void 0:Ee.children])&&$e(Ht[Ee==null?void 0:Ee.children]))return!0}};We(he)}}var fr=null,Wa=["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 Ea(he){return Array.isArray(he)&&Array.isArray(he[0])}function so(he){return he?Ea(he)?he:(he.length===0?[]:[he]).map(function(Ee){return Array.isArray(Ee)?Ee:[Ee]}):[]}var ho=ie.forwardRef(function(he,Ee){var We=he.id,$e=he.prefixCls,at=$e===void 0?"rc-cascader":$e,ft=he.fieldNames,Ht=he.defaultValue,yn=he.value,An=he.changeOnSelect,Jn=he.onChange,On=he.displayRender,pa=he.checkable,Ua=he.autoClearSearchValue,Ln=Ua===void 0?!0:Ua,ia=he.searchValue,Ia=he.onSearch,Oa=he.showSearch,sr=he.expandTrigger,wr=he.options,zr=he.dropdownPrefixCls,Zr=he.loadData,yo=he.popupVisible,vr=he.open,Or=he.popupClassName,Gr=he.dropdownClassName,lr=he.dropdownMenuColumnStyle,Lr=he.popupPlacement,Ur=he.placement,Oo=he.onDropdownVisibleChange,Do=he.onPopupVisibleChange,bo=he.expandIcon,Lo=bo===void 0?">":bo,Co=he.loadingIcon,ro=he.children,mo=he.dropdownMatchSelectWidth,xo=mo===void 0?!1:mo,mi=he.showCheckedStrategy,Ft=mi===void 0?To:mi,Pa=(0,Me.Z)(he,Wa),Ir=Ji(We),ra=!!pa,wn=Er(Ht,{value:yn,postState:so}),Rr=(0,Ae.Z)(wn,2),Ya=Rr[0],Xa=Rr[1],Ta=ie.useMemo(function(){return ti(ft)},[JSON.stringify(ft)]),oo=ie.useMemo(function(){return wr||[]},[wr]),xr=Ml(oo,Ta),zo=ie.useCallback(function(Ti){var yi=xr();return Ti.map(function(Ai){var Gl=yi[Ai].nodes;return Gl.map(function(ul){return ul[Ta.value]})})},[xr,Ta]),Bo=Er("",{value:ia,postState:function(yi){return yi||""}}),va=(0,Ae.Z)(Bo,2),Mr=va[0],fo=va[1],Eo=function(yi,Ai){fo(yi),Ai.source!=="blur"&&Ia&&Ia(yi)},jo=ut(Oa),fi=(0,Ae.Z)(jo,2),Bi=fi[0],ni=fi[1],Zi=Wr(Mr,oo,Ta,zr||at,ni,An),gl=Zl(oo,Ta),zl=ie.useMemo(function(){var Ti=gl(Ya),yi=(0,Ae.Z)(Ti,2),Ai=yi[0],Gl=yi[1];if(!ra||!Ya.length)return[Ai,[],Gl];var ul=di(Ai),Ul=xr(),Ro=(0,Wn.S)(ul,!0,Ul),Va=Ro.checkedKeys,jr=Ro.halfCheckedKeys;return[zo(Va),zo(jr),Gl]},[ra,Ya,xr,zo,gl]),Ki=(0,Ae.Z)(zl,3),Ri=Ki[0],ml=Ki[1],qi=Ki[2],Wi=ie.useMemo(function(){var Ti=di(Ri),yi=Al(Ti,xr,Ft);return[].concat((0,b.Z)(qi),(0,b.Z)(zo(yi)))},[Ri,xr,zo,qi,Ft]),xl=ai(Wi,oo,Ta,ra,On),Sl=vt(function(Ti){if(Xa(Ti),Jn){var yi=so(Ti),Ai=yi.map(function(Ul){return Hi(Ul,oo,Ta).map(function(Ro){return Ro.option})}),Gl=ra?yi:yi[0],ul=ra?Ai:Ai[0];Jn(Gl,ul)}}),uu=vt(function(Ti){if((!ra||Ln)&&fo(""),!ra)Sl(Ti);else{var yi=Wo(Ti),Ai=di(Ri),Gl=di(ml),ul=Ai.includes(yi),Ul=qi.some(function(kl){return Wo(kl)===yi}),Ro=Ri,Va=qi;if(Ul&&!ul)Va=qi.filter(function(kl){return Wo(kl)!==yi});else{var jr=ul?Ai.filter(function(kl){return kl!==yi}):[].concat((0,b.Z)(Ai),[yi]),eo=xr(),wo;if(ul){var Mi=(0,Wn.S)(jr,{checked:!1,halfCheckedKeys:Gl},eo);wo=Mi.checkedKeys}else{var zi=(0,Wn.S)(jr,!0,eo);wo=zi.checkedKeys}var wl=Al(wo,xr,Ft);Ro=zo(wl)}Sl([].concat((0,b.Z)(Va),(0,b.Z)(Ro)))}}),eu=function(yi,Ai){if(Ai.type==="clear"){Sl([]);return}var Gl=Ai.values[0],ul=Gl.valueCells;uu(ul)},Nu=vr!==void 0?vr:yo,Eu=Gr||Or,tu=Ur||Lr,xu=function(yi){Oo==null||Oo(yi),Do==null||Do(yi)},jl=ie.useMemo(function(){return{options:oo,fieldNames:Ta,values:Ri,halfValues:ml,changeOnSelect:An,onSelect:uu,checkable:pa,searchOptions:Zi,dropdownPrefixCls:zr,loadData:Zr,expandTrigger:sr,expandIcon:Lo,loadingIcon:Co,dropdownMenuColumnStyle:lr}},[oo,Ta,Ri,ml,An,uu,pa,Zi,zr,Zr,sr,Lo,Co,lr]),wu=!(Mr?Zi:oo).length,Iu=Mr&&ni.matchInputWidth||wu?{}:{minWidth:"auto"};return ie.createElement(Qr.Provider,{value:jl},ie.createElement(pr,(0,Ge.Z)({},Pa,{ref:Ee,id:Ir,prefixCls:at,autoClearSearchValue:Ln,dropdownMatchSelectWidth:xo,dropdownStyle:Iu,displayValues:xl,onDisplayValuesChange:eu,mode:ra?"multiple":void 0,searchValue:Mr,onSearch:Eo,showSearch:Bi,OptionList:Nr,emptyOptions:wu,open:Nu,dropdownClassName:Eu,placement:tu,onDropdownVisibleChange:xu,getRawInputElement:function(){return ro}})))});ho.SHOW_PARENT=To,ho.SHOW_CHILD=si;var Vo=ho,Jo=Vo,co=ee(10366),Yo=ee(33603),Po=ee(8745),ir=ee(9708),ko=ee(53124),Xo=ee(88258),hi=ee(98866),rl=ee(98675),lu=ee(65223),Je=ee(87244),ot=ee(13458),mt=ee(78642),At=ee(46163),gn=ee(4173),Gn=ee(63185),Fa=ee(14747),ca=ee(80110),$n=ee(67968);const cn=he=>{const{prefixCls:Ee,componentCls:We,antCls:$e}=he,at=`${We}-menu-item`,ft=`
|
|
&${at}-expand ${at}-expand-icon,
|
|
${at}-loading-icon
|
|
`;return[{[We]:{width:he.controlWidth}},{[`${We}-dropdown`]:[(0,Gn.C2)(`${Ee}-checkbox`,he),{[`&${$e}-select-dropdown`]:{padding:0}},{[We]:{"&-checkbox":{top:0,marginInlineEnd:he.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${We}-menu-empty`]:{[`${We}-menu`]:{width:"100%",height:"auto",[at]:{color:he.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:he.controlItemWidth,height:he.dropdownHeight,margin:0,padding:he.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${he.lineWidth}px ${he.lineType} ${he.colorSplit}`},"&-item":Object.assign(Object.assign({},Fa.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:he.optionPadding,lineHeight:he.lineHeight,cursor:"pointer",transition:`all ${he.motionDurationMid}`,borderRadius:he.borderRadiusSM,"&:hover":{background:he.controlItemBgHover},"&-disabled":{color:he.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[ft]:{color:he.colorTextDisabled}},[`&-active:not(${at}-disabled)`]:{"&, &:hover":{fontWeight:he.optionSelectedFontWeight,backgroundColor:he.optionSelectedBg}},"&-content":{flex:"auto"},[ft]:{marginInlineStart:he.paddingXXS,color:he.colorTextDescription,fontSize:he.fontSizeIcon},"&-keyword":{color:he.colorHighlight}})}}}]},{[`${We}-dropdown-rtl`]:{direction:"rtl"}},(0,ca.c)(he)]};var ua=(0,$n.Z)("Cascader",he=>[cn(he)],he=>{const Ee=Math.round((he.controlHeight-he.fontSize*he.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:he.controlItemBgActive,optionSelectedFontWeight:he.fontWeightStrong,optionPadding:`${Ee}px ${he.paddingSM}px`,menuPadding:he.paddingXXS}}),Ka=function(he,Ee){var We={};for(var $e in he)Object.prototype.hasOwnProperty.call(he,$e)&&Ee.indexOf($e)<0&&(We[$e]=he[$e]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,$e=Object.getOwnPropertySymbols(he);at<$e.length;at++)Ee.indexOf($e[at])<0&&Object.prototype.propertyIsEnumerable.call(he,$e[at])&&(We[$e[at]]=he[$e[at]]);return We};const{SHOW_CHILD:qr,SHOW_PARENT:$r}=Jo;function ya(he,Ee,We){const $e=he.toLowerCase().split(Ee).reduce((Ht,yn,An)=>An===0?[yn]:[].concat((0,b.Z)(Ht),[Ee,yn]),[]),at=[];let ft=0;return $e.forEach((Ht,yn)=>{const An=ft+Ht.length;let Jn=he.slice(ft,An);ft=An,yn%2===1&&(Jn=ie.createElement("span",{className:`${We}-menu-item-keyword`,key:`separator-${yn}`},Jn)),at.push(Jn)}),at}const Ba=(he,Ee,We,$e)=>{const at=[],ft=he.toLowerCase();return Ee.forEach((Ht,yn)=>{yn!==0&&at.push(" / ");let An=Ht[$e.label];const Jn=typeof An;(Jn==="string"||Jn==="number")&&(An=ya(String(An),ft,We)),at.push(An)}),at},Zn=ie.forwardRef((he,Ee)=>{const{prefixCls:We,size:$e,disabled:at,className:ft,rootClassName:Ht,multiple:yn,bordered:An=!0,transitionName:Jn,choiceTransitionName:On="",popupClassName:pa,dropdownClassName:Ua,expandIcon:Ln,placement:ia,showSearch:Ia,allowClear:Oa=!0,notFoundContent:sr,direction:wr,getPopupContainer:zr,status:Zr,showArrow:yo,builtinPlacements:vr,style:Or}=he,Gr=Ka(he,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),lr=(0,co.Z)(Gr,["suffixIcon"]),{getPopupContainer:Lr,getPrefixCls:Ur,renderEmpty:Oo,direction:Do,popupOverflow:bo,cascader:Lo}=ie.useContext(ko.E_),Co=wr||Do,ro=Co==="rtl",{status:mo,hasFeedback:xo,isFormItemInput:mi,feedbackIcon:Ft}=ie.useContext(lu.aM),Pa=(0,ir.F)(mo,Zr),Ir=sr||(Oo==null?void 0:Oo("Cascader"))||ie.createElement(Xo.Z,{componentName:"Cascader"}),ra=Ur(),wn=Ur("select",We),Rr=Ur("cascader",We),[Ya,Xa]=(0,Je.Z)(wn),[Ta]=ua(Rr),{compactSize:oo,compactItemClassnames:xr}=(0,gn.ri)(wn,wr),zo=ue()(pa||Ua,`${Rr}-dropdown`,{[`${Rr}-dropdown-rtl`]:Co==="rtl"},Ht,Xa),Bo=ie.useMemo(()=>{if(!Ia)return Ia;let qi={render:Ba};return typeof Ia=="object"&&(qi=Object.assign(Object.assign({},qi),Ia)),qi},[Ia]),va=(0,rl.Z)(qi=>{var Wi;return(Wi=$e!=null?$e:oo)!==null&&Wi!==void 0?Wi:qi}),Mr=ie.useContext(hi.Z),fo=at!=null?at:Mr;let Eo=Ln;Ln||(Eo=ro?ie.createElement(Be.Z,null):ie.createElement(Ne.Z,null));const jo=ie.createElement("span",{className:`${wn}-menu-item-loading-icon`},ie.createElement(Fe.Z,{spin:!0})),fi=ie.useMemo(()=>yn?ie.createElement("span",{className:`${Rr}-checkbox-inner`}):!1,[yn]),Bi=(0,mt.Z)(he.suffixIcon,yo),{suffixIcon:ni,removeIcon:Zi,clearIcon:gl}=(0,At.Z)(Object.assign(Object.assign({},he),{hasFeedback:xo,feedbackIcon:Ft,showSuffixIcon:Bi,multiple:yn,prefixCls:wn,componentName:"Cascader"})),zl=ie.useMemo(()=>ia!==void 0?ia:ro?"bottomRight":"bottomLeft",[ia,ro]),Ki=(0,ot.Z)(vr,bo),Ri=Oa===!0?{clearIcon:gl}:Oa,ml=ie.createElement(Jo,Object.assign({prefixCls:wn,className:ue()(!We&&Rr,{[`${wn}-lg`]:va==="large",[`${wn}-sm`]:va==="small",[`${wn}-rtl`]:ro,[`${wn}-borderless`]:!An,[`${wn}-in-form-item`]:mi},(0,ir.Z)(wn,Pa,xo),xr,Lo==null?void 0:Lo.className,ft,Ht,Xa),disabled:fo,style:Object.assign(Object.assign({},Lo==null?void 0:Lo.style),Or)},lr,{builtinPlacements:Ki,direction:Co,placement:zl,notFoundContent:Ir,allowClear:Ri,showSearch:Bo,expandIcon:Eo,suffixIcon:ni,removeIcon:Zi,loadingIcon:jo,checkable:fi,dropdownClassName:zo,dropdownPrefixCls:We||Rr,choiceTransitionName:(0,Yo.m)(ra,"",On),transitionName:(0,Yo.m)(ra,"slide-up",Jn),getPopupContainer:zr||Lr,ref:Ee}));return Ta(Ya(ml))}),Xn=(0,Po.Z)(Zn);Zn.SHOW_PARENT=$r,Zn.SHOW_CHILD=qr,Zn._InternalPanelDoNotUseOrYouWillBeFired=Xn;var dr=Zn},84567:function(Bt,Ct,ee){"use strict";ee.d(Ct,{default:function(){return pe}});var b=ee(94184),ie=ee.n(b),Be=ee(95860),Fe=ee(67294),Ne=ee(53124),je=ee(98866),ue=ee(65223),Ae=Fe.createContext(null),Me=ee(63185),Te=ee(45353),Oe=ee(92429),ye=function(ge,xe){var we={};for(var Se in ge)Object.prototype.hasOwnProperty.call(ge,Se)&&xe.indexOf(Se)<0&&(we[Se]=ge[Se]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Se=Object.getOwnPropertySymbols(ge);ve<Se.length;ve++)xe.indexOf(Se[ve])<0&&Object.prototype.propertyIsEnumerable.call(ge,Se[ve])&&(we[Se[ve]]=ge[Se[ve]]);return we};const se=(ge,xe)=>{var we;const{prefixCls:Se,className:ve,rootClassName:Qe,children:Le,indeterminate:ke=!1,style:Ce,onMouseEnter:Ke,onMouseLeave:qe,skipGroup:Ue=!1,disabled:Ye}=ge,ct=ye(ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:yt,direction:$t,checkbox:an}=Fe.useContext(Ne.E_),rt=Fe.useContext(Ae),{isFormItemInput:jt}=Fe.useContext(ue.aM),It=Fe.useContext(je.Z),hn=(we=(rt==null?void 0:rt.disabled)||Ye)!==null&&we!==void 0?we:It,Mt=Fe.useRef(ct.value);Fe.useEffect(()=>{rt==null||rt.registerValue(ct.value)},[]),Fe.useEffect(()=>{if(!Ue)return ct.value!==Mt.current&&(rt==null||rt.cancelValue(Mt.current),rt==null||rt.registerValue(ct.value),Mt.current=ct.value),()=>rt==null?void 0:rt.cancelValue(ct.value)},[ct.value]);const Yt=yt("checkbox",Se),[Re,Wt]=(0,Me.ZP)(Yt),Sn=Object.assign({},ct);rt&&!Ue&&(Sn.onChange=function(){ct.onChange&&ct.onChange.apply(ct,arguments),rt.toggleOption&&rt.toggleOption({label:Le,value:ct.value})},Sn.name=rt.name,Sn.checked=rt.value.includes(ct.value));const xt=ie()(`${Yt}-wrapper`,{[`${Yt}-rtl`]:$t==="rtl",[`${Yt}-wrapper-checked`]:Sn.checked,[`${Yt}-wrapper-disabled`]:hn,[`${Yt}-wrapper-in-form-item`]:jt},an==null?void 0:an.className,ve,Qe,Wt),Et=ie()({[`${Yt}-indeterminate`]:ke},Oe.A,Wt),Lt=ke?"mixed":void 0;return Re(Fe.createElement(Te.Z,{component:"Checkbox",disabled:hn},Fe.createElement("label",{className:xt,style:Object.assign(Object.assign({},an==null?void 0:an.style),Ce),onMouseEnter:Ke,onMouseLeave:qe},Fe.createElement(Be.Z,Object.assign({"aria-checked":Lt},Sn,{prefixCls:Yt,className:Et,disabled:hn,ref:xe})),Le!==void 0&&Fe.createElement("span",null,Le))))};var a=Fe.forwardRef(se),x=ee(74902),y=ee(10366),z=function(ge,xe){var we={};for(var Se in ge)Object.prototype.hasOwnProperty.call(ge,Se)&&xe.indexOf(Se)<0&&(we[Se]=ge[Se]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Se=Object.getOwnPropertySymbols(ge);ve<Se.length;ve++)xe.indexOf(Se[ve])<0&&Object.prototype.propertyIsEnumerable.call(ge,Se[ve])&&(we[Se[ve]]=ge[Se[ve]]);return we};const te=(ge,xe)=>{const{defaultValue:we,children:Se,options:ve=[],prefixCls:Qe,className:Le,rootClassName:ke,style:Ce,onChange:Ke}=ge,qe=z(ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Ue,direction:Ye}=Fe.useContext(Ne.E_),[ct,yt]=Fe.useState(qe.value||we||[]),[$t,an]=Fe.useState([]);Fe.useEffect(()=>{"value"in qe&&yt(qe.value||[])},[qe.value]);const rt=Fe.useMemo(()=>ve.map(He=>typeof He=="string"||typeof He=="number"?{label:He,value:He}:He),[ve]),jt=He=>{an(Ze=>Ze.filter(Ve=>Ve!==He))},It=He=>{an(Ze=>[].concat((0,x.Z)(Ze),[He]))},hn=He=>{const Ze=ct.indexOf(He.value),Ve=(0,x.Z)(ct);Ze===-1?Ve.push(He.value):Ve.splice(Ze,1),"value"in qe||yt(Ve),Ke==null||Ke(Ve.filter(gt=>$t.includes(gt)).sort((gt,Dt)=>{const Gt=rt.findIndex(Fn=>Fn.value===gt),Bn=rt.findIndex(Fn=>Fn.value===Dt);return Gt-Bn}))},Mt=Ue("checkbox",Qe),Yt=`${Mt}-group`,[Re,Wt]=(0,Me.ZP)(Mt),Sn=(0,y.Z)(qe,["value","disabled"]),xt=ve.length?rt.map(He=>Fe.createElement(a,{prefixCls:Mt,key:He.value.toString(),disabled:"disabled"in He?He.disabled:qe.disabled,value:He.value,checked:ct.includes(He.value),onChange:He.onChange,className:`${Yt}-item`,style:He.style,title:He.title},He.label)):Se,Et={toggleOption:hn,value:ct,disabled:qe.disabled,name:qe.name,registerValue:It,cancelValue:jt},Lt=ie()(Yt,{[`${Yt}-rtl`]:Ye==="rtl"},Le,ke,Wt);return Re(Fe.createElement("div",Object.assign({className:Lt,style:Ce},Sn,{ref:xe}),Fe.createElement(Ae.Provider,{value:Et},xt)))},re=Fe.forwardRef(te);var oe=Fe.memo(re);const de=a;de.Group=oe,de.__ANT_CHECKBOX=!0;var pe=de},63185:function(Bt,Ct,ee){"use strict";ee.d(Ct,{C2:function(){return Ne}});var b=ee(14747),ie=ee(45503),Be=ee(67968);const Fe=je=>{const{checkboxCls:ue}=je,Ge=`${ue}-wrapper`;return[{[`${ue}-group`]:Object.assign(Object.assign({},(0,b.Wf)(je)),{display:"inline-flex",flexWrap:"wrap",columnGap:je.marginXS,[`> ${je.antCls}-row`]:{flex:1}}),[Ge]:Object.assign(Object.assign({},(0,b.Wf)(je)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ge}`]:{marginInlineStart:0},[`&${Ge}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ue]:Object.assign(Object.assign({},(0,b.Wf)(je)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:je.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)(je))},[`${ue}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:je.checkboxSize,height:je.checkboxSize,direction:"ltr",backgroundColor:je.colorBgContainer,border:`${je.lineWidth}px ${je.lineType} ${je.colorBorder}`,borderRadius:je.borderRadiusSM,borderCollapse:"separate",transition:`all ${je.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:je.checkboxSize/14*5,height:je.checkboxSize/14*8,border:`${je.lineWidthBold}px solid ${je.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${je.motionDurationFast} ${je.motionEaseInBack}, opacity ${je.motionDurationFast}`}},"& + span":{paddingInlineStart:je.paddingXS,paddingInlineEnd:je.paddingXS}})},{[`
|
|
${Ge}:not(${Ge}-disabled),
|
|
${ue}:not(${ue}-disabled)
|
|
`]:{[`&:hover ${ue}-inner`]:{borderColor:je.colorPrimary}},[`${Ge}:not(${Ge}-disabled)`]:{[`&:hover ${ue}-checked:not(${ue}-disabled) ${ue}-inner`]:{backgroundColor:je.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ue}-checked:not(${ue}-disabled):after`]:{borderColor:je.colorPrimaryHover}}},{[`${ue}-checked`]:{[`${ue}-inner`]:{backgroundColor:je.colorPrimary,borderColor:je.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${je.motionDurationMid} ${je.motionEaseOutBack} ${je.motionDurationFast}`}}},[`
|
|
${Ge}-checked:not(${Ge}-disabled),
|
|
${ue}-checked:not(${ue}-disabled)
|
|
`]:{[`&:hover ${ue}-inner`]:{backgroundColor:je.colorPrimaryHover,borderColor:"transparent"}}},{[ue]:{"&-indeterminate":{[`${ue}-inner`]:{backgroundColor:je.colorBgContainer,borderColor:je.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:je.fontSizeLG/2,height:je.fontSizeLG/2,backgroundColor:je.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Ge}-disabled`]:{cursor:"not-allowed"},[`${ue}-disabled`]:{[`&, ${ue}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ue}-inner`]:{background:je.colorBgContainerDisabled,borderColor:je.colorBorder,"&:after":{borderColor:je.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:je.colorTextDisabled},[`&${ue}-indeterminate ${ue}-inner::after`]:{background:je.colorTextDisabled}}}]};function Ne(je,ue){const Ge=(0,ie.TS)(ue,{checkboxCls:`.${je}`,checkboxSize:ue.controlInteractiveSize});return[Fe(Ge)]}Ct.ZP=(0,Be.Z)("Checkbox",(je,ue)=>{let{prefixCls:Ge}=ue;return[Ne(Ge,je)]})},47221:function(Bt,Ct,ee){"use strict";ee.d(Ct,{default:function(){return Sn}});var b=ee(91034),ie=ee(94184),Be=ee.n(ie),Fe=ee(97685),Ne=ee(74902),je=ee(71002),ue=ee(21770),Ge=ee(80334),Ae=ee(67294),Me=ee(87462),Te=ee(45987),Oe=ee(50344),ye=ee(4942),se=ee(62874),E=ee(15105),a=Ae.forwardRef(function(xt,Et){var Lt,He=xt.prefixCls,Ze=xt.forceRender,Ve=xt.className,gt=xt.style,Dt=xt.children,Gt=xt.isActive,Bn=xt.role,Fn=Ae.useState(Gt||Ze),tn=(0,Fe.Z)(Fn,2),_n=tn[0],Xe=tn[1];return Ae.useEffect(function(){(Ze||Gt)&&Xe(!0)},[Ze,Gt]),_n?Ae.createElement("div",{ref:Et,className:Be()("".concat(He,"-content"),(Lt={},(0,ye.Z)(Lt,"".concat(He,"-content-active"),Gt),(0,ye.Z)(Lt,"".concat(He,"-content-inactive"),!Gt),Lt),Ve),style:gt,role:Bn},Ae.createElement("div",{className:"".concat(He,"-content-box")},Dt)):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=Ae.forwardRef(function(xt,Et){var Lt,He,Ze=xt.showArrow,Ve=Ze===void 0?!0:Ze,gt=xt.headerClass,Dt=xt.isActive,Gt=xt.onItemClick,Bn=xt.forceRender,Fn=xt.className,tn=xt.prefixCls,_n=xt.collapsible,Xe=xt.accordion,vt=xt.panelKey,mn=xt.extra,Cn=xt.header,St=xt.expandIcon,vn=xt.openMotion,Nn=xt.destroyInactivePanel,ln=xt.children,ma=(0,Te.Z)(xt,y),Ut=_n==="disabled",wt=_n==="header",Un=_n==="icon",fa=mn!=null&&typeof mn!="boolean",wa=function(){Gt==null||Gt(vt)},la=function(Ga){(Ga.key==="Enter"||Ga.keyCode===E.Z.ENTER||Ga.which===E.Z.ENTER)&&wa()},rr=typeof St=="function"?St(xt):Ae.createElement("i",{className:"arrow"});rr&&(rr=Ae.createElement("div",{className:"".concat(tn,"-expand-icon"),onClick:["header","icon"].includes(_n)?wa:void 0},rr));var en=Be()((Lt={},(0,ye.Z)(Lt,"".concat(tn,"-item"),!0),(0,ye.Z)(Lt,"".concat(tn,"-item-active"),Dt),(0,ye.Z)(Lt,"".concat(tn,"-item-disabled"),Ut),Lt),Fn),rn=Be()(gt,(He={},(0,ye.Z)(He,"".concat(tn,"-header"),!0),(0,ye.Z)(He,"".concat(tn,"-header-collapsible-only"),wt),(0,ye.Z)(He,"".concat(tn,"-icon-collapsible-only"),Un),He)),sn={className:rn,"aria-expanded":Dt,"aria-disabled":Ut,onKeyDown:la};return!wt&&!Un&&(sn.onClick=wa,sn.role=Xe?"tab":"button",sn.tabIndex=Ut?-1:0),Ae.createElement("div",(0,Me.Z)({},ma,{ref:Et,className:en}),Ae.createElement("div",sn,Ve&&rr,Ae.createElement("span",{className:"".concat(tn,"-header-text"),onClick:_n==="header"?wa:void 0},Cn),fa&&Ae.createElement("div",{className:"".concat(tn,"-extra")},mn)),Ae.createElement(se.Z,(0,Me.Z)({visible:Dt,leavedClassName:"".concat(tn,"-content-hidden")},vn,{forceRender:Bn,removeOnLeave:Nn}),function(na,Ga){var Fr=na.className,_r=na.style;return Ae.createElement(x,{ref:Ga,prefixCls:tn,className:Fr,style:_r,isActive:Dt,forceRender:Bn,role:Xe?"tabpanel":void 0},ln)}))}),te=z,re=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],oe=function(Et,Lt){var He=Lt.prefixCls,Ze=Lt.accordion,Ve=Lt.collapsible,gt=Lt.destroyInactivePanel,Dt=Lt.onItemClick,Gt=Lt.activeKey,Bn=Lt.openMotion,Fn=Lt.expandIcon;return Et.map(function(tn,_n){var Xe=tn.children,vt=tn.label,mn=tn.key,Cn=tn.collapsible,St=tn.onItemClick,vn=tn.destroyInactivePanel,Nn=(0,Te.Z)(tn,re),ln=String(mn!=null?mn:_n),ma=Cn!=null?Cn:Ve,Ut=vn!=null?vn:gt,wt=function(wa){ma!=="disabled"&&(Dt(wa),St==null||St(wa))},Un=!1;return Ze?Un=Gt[0]===ln:Un=Gt.indexOf(ln)>-1,Ae.createElement(te,(0,Me.Z)({},Nn,{prefixCls:He,key:ln,panelKey:ln,isActive:Un,accordion:Ze,openMotion:Bn,expandIcon:Fn,header:vt,collapsible:ma,onItemClick:wt,destroyInactivePanel:Ut}),Xe)})},de=function(Et,Lt,He){if(!Et)return null;var Ze=He.prefixCls,Ve=He.accordion,gt=He.collapsible,Dt=He.destroyInactivePanel,Gt=He.onItemClick,Bn=He.activeKey,Fn=He.openMotion,tn=He.expandIcon,_n=Et.key||String(Lt),Xe=Et.props,vt=Xe.header,mn=Xe.headerClass,Cn=Xe.destroyInactivePanel,St=Xe.collapsible,vn=Xe.onItemClick,Nn=!1;Ve?Nn=Bn[0]===_n:Nn=Bn.indexOf(_n)>-1;var ln=St!=null?St:gt,ma=function(Un){ln!=="disabled"&&(Gt(Un),vn==null||vn(Un))},Ut={key:_n,panelKey:_n,header:vt,headerClass:mn,isActive:Nn,prefixCls:Ze,destroyInactivePanel:Cn!=null?Cn:Dt,openMotion:Fn,accordion:Ve,children:Et.props.children,onItemClick:ma,expandIcon:tn,collapsible:ln};return typeof Et.type=="string"?Et:(Object.keys(Ut).forEach(function(wt){typeof Ut[wt]=="undefined"&&delete Ut[wt]}),Ae.cloneElement(Et,Ut))};function pe(xt,Et,Lt){return Array.isArray(xt)?oe(xt,Lt):(0,Oe.Z)(Et).map(function(He,Ze){return de(He,Ze,Lt)})}var ge=pe;function xe(xt){var Et=xt;if(!Array.isArray(Et)){var Lt=(0,je.Z)(Et);Et=Lt==="number"||Lt==="string"?[Et]:[]}return Et.map(function(He){return String(He)})}var we=Ae.forwardRef(function(xt,Et){var Lt=xt.prefixCls,He=Lt===void 0?"rc-collapse":Lt,Ze=xt.destroyInactivePanel,Ve=Ze===void 0?!1:Ze,gt=xt.style,Dt=xt.accordion,Gt=xt.className,Bn=xt.children,Fn=xt.collapsible,tn=xt.openMotion,_n=xt.expandIcon,Xe=xt.activeKey,vt=xt.defaultActiveKey,mn=xt.onChange,Cn=xt.items,St=Be()(He,Gt),vn=(0,ue.Z)([],{value:Xe,onChange:function(fa){return mn==null?void 0:mn(fa)},defaultValue:vt,postState:xe}),Nn=(0,Fe.Z)(vn,2),ln=Nn[0],ma=Nn[1],Ut=function(fa){return ma(function(){if(Dt)return ln[0]===fa?[]:[fa];var wa=ln.indexOf(fa),la=wa>-1;return la?ln.filter(function(rr){return rr!==fa}):[].concat((0,Ne.Z)(ln),[fa])})};(0,Ge.ZP)(!Bn,"`children` will be removed in next major version. Please use `items` instead.");var wt=ge(Cn,Bn,{prefixCls:He,accordion:Dt,openMotion:tn,expandIcon:_n,collapsible:Fn,destroyInactivePanel:Ve,onItemClick:Ut,activeKey:ln});return Ae.createElement("div",{ref:Et,className:St,style:gt,role:Dt?"tablist":void 0},wt)}),Se=Object.assign(we,{Panel:te}),ve=Se,Qe=Se.Panel,Le=ee(37419),ke=ee(10366),Ce=ee(33603),Ke=ee(96159),qe=ee(53124),Ue=ee(98675),ct=Ae.forwardRef((xt,Et)=>{const{getPrefixCls:Lt}=Ae.useContext(qe.E_),{prefixCls:He,className:Ze,showArrow:Ve=!0}=xt,gt=Lt("collapse",He),Dt=Be()({[`${gt}-no-arrow`]:!Ve},Ze);return Ae.createElement(ve.Panel,Object.assign({ref:Et},xt,{prefixCls:gt,className:Dt}))}),yt=ee(14747),$t=ee(33507),an=ee(67968),rt=ee(45503);const jt=xt=>{const{componentCls:Et,contentBg:Lt,padding:He,headerBg:Ze,headerPadding:Ve,collapseHeaderPaddingSM:gt,collapseHeaderPaddingLG:Dt,collapsePanelBorderRadius:Gt,lineWidth:Bn,lineType:Fn,colorBorder:tn,colorText:_n,colorTextHeading:Xe,colorTextDisabled:vt,fontSize:mn,fontSizeLG:Cn,lineHeight:St,marginSM:vn,paddingSM:Nn,paddingLG:ln,paddingXS:ma,motionDurationSlow:Ut,fontSizeIcon:wt,contentPadding:Un}=xt,fa=`${Bn}px ${Fn} ${tn}`;return{[Et]:Object.assign(Object.assign({},(0,yt.Wf)(xt)),{backgroundColor:Ze,border:fa,borderBottom:0,borderRadius:`${Gt}px`,"&-rtl":{direction:"rtl"},[`& > ${Et}-item`]:{borderBottom:fa,"&:last-child":{[`
|
|
&,
|
|
& > ${Et}-header`]:{borderRadius:`0 0 ${Gt}px ${Gt}px`}},[`> ${Et}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:Ve,color:Xe,lineHeight:St,cursor:"pointer",transition:`all ${Ut}, visibility 0s`,[`> ${Et}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${Et}-expand-icon`]:{height:mn*St,display:"flex",alignItems:"center",paddingInlineEnd:vn},[`${Et}-arrow`]:Object.assign(Object.assign({},(0,yt.Ro)()),{fontSize:wt,svg:{transition:`transform ${Ut}`}}),[`${Et}-header-text`]:{marginInlineEnd:"auto"}},[`${Et}-header-collapsible-only`]:{cursor:"default",[`${Et}-header-text`]:{flex:"none",cursor:"pointer"}},[`${Et}-icon-collapsible-only`]:{cursor:"default",[`${Et}-expand-icon`]:{cursor:"pointer"}}},[`${Et}-content`]:{color:_n,backgroundColor:Lt,borderTop:fa,[`& > ${Et}-content-box`]:{padding:Un},"&-hidden":{display:"none"}},"&-small":{[`> ${Et}-item`]:{[`> ${Et}-header`]:{padding:gt,paddingInlineStart:ma,[`> ${Et}-expand-icon`]:{marginInlineStart:Nn-ma}},[`> ${Et}-content > ${Et}-content-box`]:{padding:Nn}}},"&-large":{[`> ${Et}-item`]:{fontSize:Cn,[`> ${Et}-header`]:{padding:Dt,paddingInlineStart:He,[`> ${Et}-expand-icon`]:{height:Cn*St,marginInlineStart:ln-He}},[`> ${Et}-content > ${Et}-content-box`]:{padding:ln}}},[`${Et}-item:last-child`]:{[`> ${Et}-content`]:{borderRadius:`0 0 ${Gt}px ${Gt}px`}},[`& ${Et}-item-disabled > ${Et}-header`]:{"\n &,\n & > .arrow\n ":{color:vt,cursor:"not-allowed"}},[`&${Et}-icon-position-end`]:{[`& > ${Et}-item`]:{[`> ${Et}-header`]:{[`${Et}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:vn}}}}})}},It=xt=>{const{componentCls:Et}=xt,Lt=`> ${Et}-item > ${Et}-header ${Et}-arrow svg`;return{[`${Et}-rtl`]:{[Lt]:{transform:"rotate(180deg)"}}}},hn=xt=>{const{componentCls:Et,headerBg:Lt,paddingXXS:He,colorBorder:Ze}=xt;return{[`${Et}-borderless`]:{backgroundColor:Lt,border:0,[`> ${Et}-item`]:{borderBottom:`1px solid ${Ze}`},[`
|
|
> ${Et}-item:last-child,
|
|
> ${Et}-item:last-child ${Et}-header
|
|
`]:{borderRadius:0},[`> ${Et}-item:last-child`]:{borderBottom:0},[`> ${Et}-item > ${Et}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${Et}-item > ${Et}-content > ${Et}-content-box`]:{paddingTop:He}}}},Mt=xt=>{const{componentCls:Et,paddingSM:Lt}=xt;return{[`${Et}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${Et}-item`]:{borderBottom:0,[`> ${Et}-content`]:{backgroundColor:"transparent",border:0,[`> ${Et}-content-box`]:{paddingBlock:Lt}}}}}};var Yt=(0,an.Z)("Collapse",xt=>{const Et=(0,rt.TS)(xt,{collapseHeaderPaddingSM:`${xt.paddingXS}px ${xt.paddingSM}px`,collapseHeaderPaddingLG:`${xt.padding}px ${xt.paddingLG}px`,collapsePanelBorderRadius:xt.borderRadiusLG});return[jt(Et),hn(Et),Mt(Et),It(Et),(0,$t.Z)(Et)]},xt=>({headerPadding:`${xt.paddingSM}px ${xt.padding}px`,headerBg:xt.colorFillAlter,contentPadding:`${xt.padding}px 16px`,contentBg:xt.colorBgContainer})),Wt=Object.assign(Ae.forwardRef((xt,Et)=>{const{getPrefixCls:Lt,direction:He,collapse:Ze}=Ae.useContext(qe.E_),{prefixCls:Ve,className:gt,rootClassName:Dt,style:Gt,bordered:Bn=!0,ghost:Fn,size:tn,expandIconPosition:_n="start",children:Xe,expandIcon:vt}=xt,mn=(0,Ue.Z)(fa=>{var wa;return(wa=tn!=null?tn:fa)!==null&&wa!==void 0?wa:"middle"}),Cn=Lt("collapse",Ve),St=Lt(),[vn,Nn]=Yt(Cn),ln=Ae.useMemo(()=>_n==="left"?"start":_n==="right"?"end":_n,[_n]),ma=function(){let fa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const wa=vt?vt(fa):Ae.createElement(b.Z,{rotate:fa.isActive?90:void 0});return(0,Ke.Tm)(wa,()=>({className:Be()(wa.props.className,`${Cn}-arrow`)}))},Ut=Be()(`${Cn}-icon-position-${ln}`,{[`${Cn}-borderless`]:!Bn,[`${Cn}-rtl`]:He==="rtl",[`${Cn}-ghost`]:!!Fn,[`${Cn}-${mn}`]:mn!=="middle"},Ze==null?void 0:Ze.className,gt,Dt,Nn),wt=Object.assign(Object.assign({},(0,Ce.Z)(St)),{motionAppear:!1,leavedClassName:`${Cn}-content-hidden`}),Un=Ae.useMemo(()=>Xe?(0,Le.Z)(Xe).map((fa,wa)=>{var la,rr;if(!((la=fa.props)===null||la===void 0)&&la.disabled){const en=(rr=fa.key)!==null&&rr!==void 0?rr:String(wa),{disabled:rn,collapsible:sn}=fa.props,na=Object.assign(Object.assign({},(0,ke.Z)(fa.props,["disabled"])),{key:en,collapsible:sn!=null?sn:rn?"disabled":void 0});return(0,Ke.Tm)(fa,na)}return fa}):null,[Xe]);return vn(Ae.createElement(ve,Object.assign({ref:Et,openMotion:wt},(0,ke.Z)(xt,["rootClassName"]),{expandIcon:ma,prefixCls:Cn,className:Ut,style:Object.assign(Object.assign({},Ze==null?void 0:Ze.style),Gt)}),Un))}),{Panel:ct}),Sn=Wt},96074:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return Oe}});var b=ee(94184),ie=ee.n(b),Be=ee(67294),Fe=ee(53124),Ne=ee(14747),je=ee(67968),ue=ee(45503);const Ge=ye=>{const{componentCls:se,sizePaddingEdgeHorizontal:E,colorSplit:a,lineWidth:x,textPaddingInline:y,orientationMargin:z,verticalMarginInline:te}=ye;return{[se]:Object.assign(Object.assign({},(0,Ne.Wf)(ye)),{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:`${ye.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${se}-with-text`]:{display:"flex",alignItems:"center",margin:`${ye.dividerHorizontalWithTextGutterMargin}px 0`,color:ye.colorTextHeading,fontWeight:500,fontSize:ye.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${se}-with-text-left`]:{"&::before":{width:`${z*100}%`},"&::after":{width:`${100-z*100}%`}},[`&-horizontal${se}-with-text-right`]:{"&::before":{width:`${100-z*100}%`},"&::after":{width:`${z*100}%`}},[`${se}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:y},"&-dashed":{background:"none",borderColor:a,borderStyle:"dashed",borderWidth:`${x}px 0 0`},[`&-horizontal${se}-with-text${se}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${se}-dashed`]:{borderInlineStartWidth:x,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${se}-with-text`]:{color:ye.colorText,fontWeight:"normal",fontSize:ye.fontSize},[`&-horizontal${se}-with-text-left${se}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${se}-inner-text`]:{paddingInlineStart:E}},[`&-horizontal${se}-with-text-right${se}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${se}-inner-text`]:{paddingInlineEnd:E}}})}};var Ae=(0,je.Z)("Divider",ye=>{const se=(0,ue.TS)(ye,{dividerHorizontalWithTextGutterMargin:ye.margin,dividerHorizontalGutterMargin:ye.marginLG,sizePaddingEdgeHorizontal:0});return[Ge(se)]},ye=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:ye.marginXS})),Me=function(ye,se){var E={};for(var a in ye)Object.prototype.hasOwnProperty.call(ye,a)&&se.indexOf(a)<0&&(E[a]=ye[a]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,a=Object.getOwnPropertySymbols(ye);x<a.length;x++)se.indexOf(a[x])<0&&Object.prototype.propertyIsEnumerable.call(ye,a[x])&&(E[a[x]]=ye[a[x]]);return E},Oe=ye=>{const{getPrefixCls:se,direction:E,divider:a}=Be.useContext(Fe.E_),{prefixCls:x,type:y="horizontal",orientation:z="center",orientationMargin:te,className:re,rootClassName:oe,children:de,dashed:pe,plain:ge,style:xe}=ye,we=Me(ye,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Se=se("divider",x),[ve,Qe]=Ae(Se),Le=z.length>0?`-${z}`:z,ke=!!de,Ce=z==="left"&&te!=null,Ke=z==="right"&&te!=null,qe=ie()(Se,a==null?void 0:a.className,Qe,`${Se}-${y}`,{[`${Se}-with-text`]:ke,[`${Se}-with-text${Le}`]:ke,[`${Se}-dashed`]:!!pe,[`${Se}-plain`]:!!ge,[`${Se}-rtl`]:E==="rtl",[`${Se}-no-default-orientation-margin-left`]:Ce,[`${Se}-no-default-orientation-margin-right`]:Ke},re,oe),Ue=Be.useMemo(()=>typeof te=="number"?te:/^\d+$/.test(te)?Number(te):te,[te]),Ye=Object.assign(Object.assign({},Ce&&{marginLeft:Ue}),Ke&&{marginRight:Ue});return ve(Be.createElement("div",Object.assign({className:qe,style:Object.assign(Object.assign({},a==null?void 0:a.style),xe)},we,{role:"separator"}),de&&y!=="vertical"&&Be.createElement("span",{className:`${Se}-inner-text`,style:Ye},de)))}},35874:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return Ze}});var b=ee(67294),ie=ee(91034),Be=ee(94184),Fe=ee.n(Be),Ne=ee(87462),je=ee(4942),ue=ee(97685),Ge=ee(45987),Ae=ee(62709),Me=ee(71002),Te=ee(12060);function Oe(Ve,gt,Dt){var Gt=React.useRef({});return(!("value"in Gt.current)||Dt(Gt.current.condition,gt))&&(Gt.current.value=Ve(),Gt.current.condition=gt),Gt.current.value}function ye(Ve,gt){typeof Ve=="function"?Ve(gt):(0,Me.Z)(Ve)==="object"&&Ve&&"current"in Ve&&(Ve.current=gt)}function se(){for(var Ve=arguments.length,gt=new Array(Ve),Dt=0;Dt<Ve;Dt++)gt[Dt]=arguments[Dt];var Gt=gt.filter(function(Bn){return Bn});return Gt.length<=1?Gt[0]:function(Bn){gt.forEach(function(Fn){ye(Fn,Bn)})}}function E(){for(var Ve=arguments.length,gt=new Array(Ve),Dt=0;Dt<Ve;Dt++)gt[Dt]=arguments[Dt];return useMemo(function(){return se.apply(void 0,gt)},gt,function(Gt,Bn){return Gt.length===Bn.length&&Gt.every(function(Fn,tn){return Fn===Bn[tn]})})}function a(Ve){var gt,Dt,Gt=(0,Te.isMemo)(Ve)?Ve.type.type:Ve.type;return!(typeof Gt=="function"&&!((gt=Gt.prototype)!==null&>!==void 0&>.render)||typeof Ve=="function"&&!((Dt=Ve.prototype)!==null&&Dt!==void 0&&Dt.render))}var x={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(gt){var Dt=gt.keyCode;if(gt.altKey&&!gt.ctrlKey||gt.metaKey||Dt>=x.F1&&Dt<=x.F12)return!1;switch(Dt){case x.ALT:case x.CAPS_LOCK:case x.CONTEXT_MENU:case x.CTRL:case x.DOWN:case x.END:case x.ESC:case x.HOME:case x.INSERT:case x.LEFT:case x.MAC_FF_META:case x.META:case x.NUMLOCK:case x.NUM_CENTER:case x.PAGE_DOWN:case x.PAGE_UP:case x.PAUSE:case x.PRINT_SCREEN:case x.RIGHT:case x.SHIFT:case x.UP:case x.WIN_KEY:case x.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(gt){if(gt>=x.ZERO&><=x.NINE||gt>=x.NUM_ZERO&><=x.NUM_MULTIPLY||gt>=x.A&><=x.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&>===0)return!0;switch(gt){case x.SPACE:case x.QUESTION_MARK:case x.NUM_PLUS:case x.NUM_MINUS:case x.NUM_PERIOD:case x.NUM_DIVISION:case x.SEMICOLON:case x.DASH:case x.EQUALS:case x.COMMA:case x.PERIOD:case x.SLASH:case x.APOSTROPHE:case x.SINGLE_QUOTE:case x.OPEN_SQUARE_BRACKET:case x.BACKSLASH:case x.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},y=x,z=function(gt){return+setTimeout(gt,16)},te=function(gt){return clearTimeout(gt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(z=function(gt){return window.requestAnimationFrame(gt)},te=function(gt){return window.cancelAnimationFrame(gt)});var re=0,oe=new Map;function de(Ve){oe.delete(Ve)}var pe=function(gt){var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;re+=1;var Gt=re;function Bn(Fn){if(Fn===0)de(Gt),gt();else{var tn=z(function(){Bn(Fn-1)});oe.set(Gt,tn)}}return Bn(Dt),Gt};pe.cancel=function(Ve){var gt=oe.get(Ve);return de(gt),te(gt)};var ge=pe,xe=y.ESC,we=y.TAB;function Se(Ve){var gt=Ve.visible,Dt=Ve.triggerRef,Gt=Ve.onVisibleChange,Bn=Ve.autoFocus,Fn=Ve.overlayRef,tn=b.useRef(!1),_n=function(){if(gt){var Cn,St;(Cn=Dt.current)===null||Cn===void 0||(St=Cn.focus)===null||St===void 0||St.call(Cn),Gt==null||Gt(!1)}},Xe=function(){var Cn;return(Cn=Fn.current)!==null&&Cn!==void 0&&Cn.focus?(Fn.current.focus(),tn.current=!0,!0):!1},vt=function(Cn){switch(Cn.keyCode){case xe:_n();break;case we:{var St=!1;tn.current||(St=Xe()),St?Cn.preventDefault():_n();break}}};b.useEffect(function(){return gt?(window.addEventListener("keydown",vt),Bn&&ge(Xe,3),function(){window.removeEventListener("keydown",vt),tn.current=!1}):function(){tn.current=!1}},[gt])}var ve=(0,b.forwardRef)(function(Ve,gt){var Dt=Ve.overlay,Gt=Ve.arrow,Bn=Ve.prefixCls,Fn=(0,b.useMemo)(function(){var _n;return typeof Dt=="function"?_n=Dt():_n=Dt,_n},[Dt]),tn=se(gt,Fn==null?void 0:Fn.ref);return b.createElement(b.Fragment,null,Gt&&b.createElement("div",{className:"".concat(Bn,"-arrow")}),b.cloneElement(Fn,{ref:a(Fn)?tn:void 0}))}),Qe=ve,Le={adjustX:1,adjustY:1},ke=[0,0],Ce={topLeft:{points:["bl","tl"],overflow:Le,offset:[0,-4],targetOffset:ke},top:{points:["bc","tc"],overflow:Le,offset:[0,-4],targetOffset:ke},topRight:{points:["br","tr"],overflow:Le,offset:[0,-4],targetOffset:ke},bottomLeft:{points:["tl","bl"],overflow:Le,offset:[0,4],targetOffset:ke},bottom:{points:["tc","bc"],overflow:Le,offset:[0,4],targetOffset:ke},bottomRight:{points:["tr","br"],overflow:Le,offset:[0,4],targetOffset:ke}},Ke=Ce,qe=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Ue(Ve,gt){var Dt,Gt=Ve.arrow,Bn=Gt===void 0?!1:Gt,Fn=Ve.prefixCls,tn=Fn===void 0?"rc-dropdown":Fn,_n=Ve.transitionName,Xe=Ve.animation,vt=Ve.align,mn=Ve.placement,Cn=mn===void 0?"bottomLeft":mn,St=Ve.placements,vn=St===void 0?Ke:St,Nn=Ve.getPopupContainer,ln=Ve.showAction,ma=Ve.hideAction,Ut=Ve.overlayClassName,wt=Ve.overlayStyle,Un=Ve.visible,fa=Ve.trigger,wa=fa===void 0?["hover"]:fa,la=Ve.autoFocus,rr=Ve.overlay,en=Ve.children,rn=Ve.onVisibleChange,sn=(0,Ge.Z)(Ve,qe),na=b.useState(),Ga=(0,ue.Z)(na,2),Fr=Ga[0],_r=Ga[1],or="visible"in Ve?Un:Fr,Rn=b.useRef(null),Ra=b.useRef(null),En=b.useRef(null);b.useImperativeHandle(gt,function(){return Rn.current});var Mn=function(Kt){_r(Kt),rn==null||rn(Kt)};Se({visible:or,triggerRef:En,onVisibleChange:Mn,autoFocus:la,overlayRef:Ra});var Vn=function(Kt){var xn=Ve.onOverlayClick;_r(!1),xn&&xn(Kt)},Yn=function(){return b.createElement(Qe,{ref:Ra,overlay:rr,prefixCls:tn,arrow:Bn})},Aa=function(){return typeof rr=="function"?Yn:Yn()},Qa=function(){var Kt=Ve.minOverlayWidthMatchTrigger,xn=Ve.alignPoint;return"minOverlayWidthMatchTrigger"in Ve?Kt:!xn},Kn=function(){var Kt=Ve.openClassName;return Kt!==void 0?Kt:"".concat(tn,"-open")},ht=b.cloneElement(en,{className:Fe()((Dt=en.props)===null||Dt===void 0?void 0:Dt.className,or&&Kn()),ref:a(en)?se(En,en.ref):void 0}),Rt=ma;return!Rt&&wa.indexOf("contextMenu")!==-1&&(Rt=["click"]),b.createElement(Ae.Z,(0,Ne.Z)({builtinPlacements:vn},sn,{prefixCls:tn,ref:Rn,popupClassName:Fe()(Ut,(0,je.Z)({},"".concat(tn,"-show-arrow"),Bn)),popupStyle:wt,action:wa,showAction:ln,hideAction:Rt,popupPlacement:Cn,popupAlign:vt,popupTransitionName:_n,popupAnimation:Xe,popupVisible:or,stretch:Qa()?"minWidth":"",popup:Aa(),onPopupVisibleChange:Mn,onPopupClick:Vn,getPopupContainer:Nn}),ht)}var Ye=b.forwardRef(Ue),ct=Ye,yt=ee(60276),$t=ee(5663),an=ee(10366),rt=ee(80636),jt=ee(8745),It=ee(96159),hn=ee(53124),Mt=ee(68508),Yt=ee(76529),Re=ee(46605),Wt=ee(66748);const Sn=null,xt=Ve=>{const{menu:gt,arrow:Dt,prefixCls:Gt,children:Bn,trigger:Fn,disabled:tn,dropdownRender:_n,getPopupContainer:Xe,overlayClassName:vt,rootClassName:mn,open:Cn,onOpenChange:St,visible:vn,onVisibleChange:Nn,mouseEnterDelay:ln=.15,mouseLeaveDelay:ma=.1,autoAdjustOverflow:Ut=!0,placement:wt="",overlay:Un,transitionName:fa}=Ve,{getPopupContainer:wa,getPrefixCls:la,direction:rr}=b.useContext(hn.E_),en=b.useMemo(()=>{const ht=la();return fa!==void 0?fa:wt.includes("top")?`${ht}-slide-down`:`${ht}-slide-up`},[la,wt,fa]),rn=b.useMemo(()=>wt?wt.includes("Center")?wt.slice(0,wt.indexOf("Center")):wt:rr==="rtl"?"bottomRight":"bottomLeft",[wt,rr]),sn=la("dropdown",Gt),[na,Ga]=(0,Wt.Z)(sn),[,Fr]=(0,Re.Z)(),_r=b.Children.only(Bn),or=(0,It.Tm)(_r,{className:Fe()(`${sn}-trigger`,{[`${sn}-rtl`]:rr==="rtl"},_r.props.className),disabled:tn}),Rn=tn?[]:Fn;let Ra;Rn&&Rn.includes("contextMenu")&&(Ra=!0);const[En,Mn]=(0,$t.Z)(!1,{value:Cn!=null?Cn:vn}),Vn=(0,yt.useEvent)(ht=>{St==null||St(ht),Nn==null||Nn(ht),Mn(ht)}),Yn=Fe()(vt,mn,Ga,{[`${sn}-rtl`]:rr==="rtl"}),Aa=(0,rt.Z)({arrowPointAtCenter:typeof Dt=="object"&&Dt.pointAtCenter,autoAdjustOverflow:Ut,offset:Fr.marginXXS,arrowWidth:Dt?Fr.sizePopupArrow:0,borderRadius:Fr.borderRadius}),Qa=b.useCallback(()=>{Mn(!1)},[]),Kn=()=>{let ht;return gt!=null&>.items?ht=b.createElement(Mt.default,Object.assign({},gt)):typeof Un=="function"?ht=Un():ht=Un,_n&&(ht=_n(ht)),ht=b.Children.only(typeof ht=="string"?b.createElement("span",null,ht):ht),b.createElement(Yt.J,{prefixCls:`${sn}-menu`,expandIcon:b.createElement("span",{className:`${sn}-menu-submenu-arrow`},b.createElement(ie.Z,{className:`${sn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Qa,validator:Rt=>{let{mode:Nt}=Rt}},ht)};return na(b.createElement(ct,Object.assign({alignPoint:Ra},(0,an.Z)(Ve,["rootClassName"]),{mouseEnterDelay:ln,mouseLeaveDelay:ma,visible:En,builtinPlacements:Aa,arrow:!!Dt,overlayClassName:Yn,prefixCls:sn,getPopupContainer:Xe||wa,transitionName:en,trigger:Rn,overlay:Kn,placement:rn,onVisibleChange:Vn}),or))};function Et(Ve){return Object.assign(Object.assign({},Ve),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Lt=(0,jt.Z)(xt,"dropdown",Ve=>Ve,Et),He=Ve=>b.createElement(Lt,Object.assign({},Ve),b.createElement("span",null));xt._InternalPanelDoNotUseOrYouWillBeFired=He;var Ze=xt},85418:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return E}});var b=ee(35874),ie=ee(94184),Be=ee.n(ie),Fe=ee(67294),Ne=ee(25877),je=ee(71577),ue=ee(53124),Ge=ee(93421),Ae=ee(4173),Me=ee(66748),Te=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 Oe=a=>{const{getPopupContainer:x,getPrefixCls:y,direction:z}=Fe.useContext(ue.E_),{prefixCls:te,type:re="default",danger:oe,disabled:de,loading:pe,onClick:ge,htmlType:xe,children:we,className:Se,menu:ve,arrow:Qe,autoFocus:Le,overlay:ke,trigger:Ce,align:Ke,open:qe,onOpenChange:Ue,placement:Ye,getPopupContainer:ct,href:yt,icon:$t=Fe.createElement(Ne.Z,null),title:an,buttonsRender:rt=tn=>tn,mouseEnterDelay:jt,mouseLeaveDelay:It,overlayClassName:hn,overlayStyle:Mt,destroyPopupOnHide:Yt,dropdownRender:Re}=a,Wt=Te(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"]),Sn=y("dropdown",te),xt=`${Sn}-button`,[Et,Lt]=(0,Me.Z)(Sn),He={menu:ve,arrow:Qe,autoFocus:Le,align:Ke,disabled:de,trigger:de?[]:Ce,onOpenChange:Ue,getPopupContainer:ct||x,mouseEnterDelay:jt,mouseLeaveDelay:It,overlayClassName:hn,overlayStyle:Mt,destroyPopupOnHide:Yt,dropdownRender:Re},{compactSize:Ze,compactItemClassnames:Ve}=(0,Ae.ri)(Sn,z),gt=Be()(xt,Ve,Se,Lt);"overlay"in a&&(He.overlay=ke),"open"in a&&(He.open=qe),"placement"in a?He.placement=Ye:He.placement=z==="rtl"?"bottomLeft":"bottomRight";const Dt=Fe.createElement(je.ZP,{type:re,danger:oe,disabled:de,loading:pe,onClick:ge,htmlType:xe,href:yt,title:an},we),Gt=Fe.createElement(je.ZP,{type:re,danger:oe,icon:$t}),[Bn,Fn]=rt([Dt,Gt]);return Et(Fe.createElement(Ge.Z.Compact,Object.assign({className:gt,size:Ze,block:!0},Wt),Bn,Fe.createElement(b.Z,Object.assign({},He),Fn)))};Oe.__ANT_BUTTON=!0;var ye=Oe;const se=b.Z;se.Button=ye;var E=se},66748:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return Te}});var b=ee(14747),ie=ee(67771),Be=ee(33297),Fe=ee(50438),Ne=ee(97414),je=ee(67968),ue=ee(45503),Ae=Oe=>{const{componentCls:ye,menuCls:se,colorError:E,colorTextLightSolid:a}=Oe,x=`${se}-item`;return{[`${ye}, ${ye}-menu-submenu`]:{[`${se} ${x}`]:{[`&${x}-danger:not(${x}-disabled)`]:{color:E,"&:hover":{color:a,backgroundColor:E}}}}}};const Me=Oe=>{const{componentCls:ye,menuCls:se,zIndexPopup:E,dropdownArrowDistance:a,sizePopupArrow:x,antCls:y,iconCls:z,motionDurationMid:te,dropdownPaddingVertical:re,fontSize:oe,dropdownEdgeChildPadding:de,colorTextDisabled:pe,fontSizeIcon:ge,controlPaddingHorizontal:xe,colorBgElevated:we}=Oe;return[{[ye]:Object.assign(Object.assign({},(0,b.Wf)(Oe)),{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}},[`${ye}-wrap`]:{position:"relative",[`${y}-btn > ${z}-down`]:{fontSize:ge},[`${z}-down::before`]:{transition:`transform ${te}`}},[`${ye}-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${ye}-placement-bottomLeft,
|
|
&${y}-slide-down-appear${y}-slide-down-appear-active${ye}-placement-bottomLeft,
|
|
&${y}-slide-down-enter${y}-slide-down-enter-active${ye}-placement-bottom,
|
|
&${y}-slide-down-appear${y}-slide-down-appear-active${ye}-placement-bottom,
|
|
&${y}-slide-down-enter${y}-slide-down-enter-active${ye}-placement-bottomRight,
|
|
&${y}-slide-down-appear${y}-slide-down-appear-active${ye}-placement-bottomRight`]:{animationName:ie.fJ},[`&${y}-slide-up-enter${y}-slide-up-enter-active${ye}-placement-topLeft,
|
|
&${y}-slide-up-appear${y}-slide-up-appear-active${ye}-placement-topLeft,
|
|
&${y}-slide-up-enter${y}-slide-up-enter-active${ye}-placement-top,
|
|
&${y}-slide-up-appear${y}-slide-up-appear-active${ye}-placement-top,
|
|
&${y}-slide-up-enter${y}-slide-up-enter-active${ye}-placement-topRight,
|
|
&${y}-slide-up-appear${y}-slide-up-appear-active${ye}-placement-topRight`]:{animationName:ie.Qt},[`&${y}-slide-down-leave${y}-slide-down-leave-active${ye}-placement-bottomLeft,
|
|
&${y}-slide-down-leave${y}-slide-down-leave-active${ye}-placement-bottom,
|
|
&${y}-slide-down-leave${y}-slide-down-leave-active${ye}-placement-bottomRight`]:{animationName:ie.Uw},[`&${y}-slide-up-leave${y}-slide-up-leave-active${ye}-placement-topLeft,
|
|
&${y}-slide-up-leave${y}-slide-up-leave-active${ye}-placement-top,
|
|
&${y}-slide-up-leave${y}-slide-up-leave-active${ye}-placement-topRight`]:{animationName:ie.ly}})},(0,Ne.ZP)(Oe,{colorBg:we,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${ye} ${se}`]:{position:"relative",margin:0},[`${se}-submenu-popup`]:{position:"absolute",zIndex:E,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${ye}, ${ye}-menu-submenu`]:{[se]:Object.assign(Object.assign({padding:de,listStyleType:"none",backgroundColor:we,backgroundClip:"padding-box",borderRadius:Oe.borderRadiusLG,outline:"none",boxShadow:Oe.boxShadowSecondary},(0,b.Qy)(Oe)),{[`${se}-item-group-title`]:{padding:`${re}px ${xe}px`,color:Oe.colorTextDescription,transition:`all ${te}`},[`${se}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${se}-item-icon`]:{minWidth:oe,marginInlineEnd:Oe.marginXS,fontSize:Oe.fontSizeSM},[`${se}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${te}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${se}-item, ${se}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${re}px ${xe}px`,color:Oe.colorText,fontWeight:"normal",fontSize:oe,lineHeight:Oe.lineHeight,cursor:"pointer",transition:`all ${te}`,borderRadius:Oe.borderRadiusSM,"&:hover, &-active":{backgroundColor:Oe.controlItemBgHover}},(0,b.Qy)(Oe)),{"&-selected":{color:Oe.colorPrimary,backgroundColor:Oe.controlItemBgActive,"&:hover, &-active":{backgroundColor:Oe.controlItemBgActiveHover}},"&-disabled":{color:pe,cursor:"not-allowed","&:hover":{color:pe,backgroundColor:we,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Oe.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Oe.colorSplit},[`${ye}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Oe.paddingXS,[`${ye}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Oe.colorTextDescription,fontSize:ge,fontStyle:"normal"}}}),[`${se}-item-group-list`]:{margin:`0 ${Oe.marginXS}px`,padding:0,listStyle:"none"},[`${se}-submenu-title`]:{paddingInlineEnd:xe+Oe.fontSizeSM},[`${se}-submenu-vertical`]:{position:"relative"},[`${se}-submenu${se}-submenu-disabled ${ye}-menu-submenu-title`]:{[`&, ${ye}-menu-submenu-arrow-icon`]:{color:pe,backgroundColor:we,cursor:"not-allowed"}},[`${se}-submenu-selected ${ye}-menu-submenu-title`]:{color:Oe.colorPrimary}})}},[(0,ie.oN)(Oe,"slide-up"),(0,ie.oN)(Oe,"slide-down"),(0,Be.Fm)(Oe,"move-up"),(0,Be.Fm)(Oe,"move-down"),(0,Fe._y)(Oe,"zoom-big")]]};var Te=(0,je.Z)("Dropdown",(Oe,ye)=>{let{rootPrefixCls:se}=ye;const{marginXXS:E,sizePopupArrow:a,controlHeight:x,fontSize:y,lineHeight:z,paddingXXS:te,componentCls:re,borderRadiusLG:oe}=Oe,de=(x-y*z)/2,{dropdownArrowOffset:pe}=(0,Ne.fS)({contentRadius:oe}),ge=(0,ue.TS)(Oe,{menuCls:`${re}-menu`,rootPrefixCls:se,dropdownArrowDistance:a/2+E,dropdownArrowOffset:pe,dropdownPaddingVertical:de,dropdownEdgeChildPadding:te});return[Me(ge),Ae(ge)]},Oe=>({zIndexPopup:Oe.zIndexPopupBase+50}))},25378:function(Bt,Ct,ee){"use strict";var b=ee(67294),ie=ee(14075),Be=ee(57838),Fe=ee(74443);function Ne(){let je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ue=(0,b.useRef)({}),Ge=(0,Be.Z)(),Ae=(0,Fe.ZP)();return(0,ie.Z)(()=>{const Me=Ae.subscribe(Te=>{ue.current=Te,je&&Ge()});return()=>Ae.unsubscribe(Me)},[]),ue.current}Ct.Z=Ne},71322:function(Bt,Ct,ee){"use strict";ee.d(Ct,{D:function(){return z},Z:function(){return oe}});var b=ee(87462),ie=ee(67294),Be={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=Be,Ne=ee(74643),je=function(pe,ge){return ie.createElement(Ne.Z,(0,b.Z)({},pe,{ref:ge,icon:Fe}))},ue=ie.forwardRef(je),Ge=ee(22751),Ae=ee(91034),Me=ee(94184),Te=ee.n(Me),Oe=ee(10366),se=de=>!isNaN(parseFloat(de))&&isFinite(de),E=ee(53124),a=ee(84321),x=function(de,pe){var ge={};for(var xe in de)Object.prototype.hasOwnProperty.call(de,xe)&&pe.indexOf(xe)<0&&(ge[xe]=de[xe]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,xe=Object.getOwnPropertySymbols(de);we<xe.length;we++)pe.indexOf(xe[we])<0&&Object.prototype.propertyIsEnumerable.call(de,xe[we])&&(ge[xe[we]]=de[xe[we]]);return ge};const y={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=ie.createContext({}),te=(()=>{let de=0;return function(){let pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return de+=1,`${pe}${de}`}})();var oe=ie.forwardRef((de,pe)=>{const{prefixCls:ge,className:xe,trigger:we,children:Se,defaultCollapsed:ve=!1,theme:Qe="dark",style:Le={},collapsible:ke=!1,reverseArrow:Ce=!1,width:Ke=200,collapsedWidth:qe=80,zeroWidthTriggerStyle:Ue,breakpoint:Ye,onCollapse:ct,onBreakpoint:yt}=de,$t=x(de,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:an}=(0,ie.useContext)(a.Gs),[rt,jt]=(0,ie.useState)("collapsed"in de?de.collapsed:ve),[It,hn]=(0,ie.useState)(!1);(0,ie.useEffect)(()=>{"collapsed"in de&&jt(de.collapsed)},[de.collapsed]);const Mt=(Et,Lt)=>{"collapsed"in de||jt(Et),ct==null||ct(Et,Lt)},Yt=(0,ie.useRef)();Yt.current=Et=>{hn(Et.matches),yt==null||yt(Et.matches),rt!==Et.matches&&Mt(Et.matches,"responsive")},(0,ie.useEffect)(()=>{function Et(He){return Yt.current(He)}let Lt;if(typeof window!="undefined"){const{matchMedia:He}=window;if(He&&Ye&&Ye in y){Lt=He(`(max-width: ${y[Ye]})`);try{Lt.addEventListener("change",Et)}catch(Ze){Lt.addListener(Et)}Et(Lt)}}return()=>{try{Lt==null||Lt.removeEventListener("change",Et)}catch(He){Lt==null||Lt.removeListener(Et)}}},[Ye]),(0,ie.useEffect)(()=>{const Et=te("ant-sider-");return an.addSider(Et),()=>an.removeSider(Et)},[]);const Re=()=>{Mt(!rt,"clickTrigger")},{getPrefixCls:Wt}=(0,ie.useContext)(E.E_),Sn=()=>{const Et=Wt("layout-sider",ge),Lt=(0,Oe.Z)($t,["collapsed"]),He=rt?qe:Ke,Ze=se(He)?`${He}px`:String(He),Ve=parseFloat(String(qe||0))===0?ie.createElement("span",{onClick:Re,className:Te()(`${Et}-zero-width-trigger`,`${Et}-zero-width-trigger-${Ce?"right":"left"}`),style:Ue},we||ie.createElement(ue,null)):null,Gt={expanded:Ce?ie.createElement(Ae.Z,null):ie.createElement(Ge.Z,null),collapsed:Ce?ie.createElement(Ge.Z,null):ie.createElement(Ae.Z,null)}[rt?"collapsed":"expanded"],Bn=we!==null?Ve||ie.createElement("div",{className:`${Et}-trigger`,onClick:Re,style:{width:Ze}},we||Gt):null,Fn=Object.assign(Object.assign({},Le),{flex:`0 0 ${Ze}`,maxWidth:Ze,minWidth:Ze,width:Ze}),tn=Te()(Et,`${Et}-${Qe}`,{[`${Et}-collapsed`]:!!rt,[`${Et}-has-trigger`]:ke&&we!==null&&!Ve,[`${Et}-below`]:!!It,[`${Et}-zero-width`]:parseFloat(Ze)===0},xe);return ie.createElement("aside",Object.assign({className:tn},Lt,{style:Fn,ref:pe}),ie.createElement("div",{className:`${Et}-children`},Se),ke||It&&Ve?Bn:null)},xt=ie.useMemo(()=>({siderCollapsed:rt}),[rt]);return ie.createElement(z.Provider,{value:xt},Sn())})},84321:function(Bt,Ct,ee){"use strict";ee.d(Ct,{VY:function(){return te},$_:function(){return z},h4:function(){return y},Gs:function(){return ye},ZP:function(){return re}});var b=ee(74902),ie=ee(94184),Be=ee.n(ie),Fe=ee(10366),Ne=ee(67294),je=ee(53124),ue=ee(67968),Ae=oe=>{const{componentCls:de,bodyBg:pe,lightSiderBg:ge,lightTriggerBg:xe,lightTriggerColor:we}=oe;return{[`${de}-sider-light`]:{background:ge,[`${de}-sider-trigger`]:{color:we,background:xe},[`${de}-sider-zero-width-trigger`]:{color:we,background:xe,border:`1px solid ${pe}`,borderInlineStart:0}}}};const Me=oe=>{const{antCls:de,componentCls:pe,colorText:ge,triggerColor:xe,footerBg:we,triggerBg:Se,headerHeight:ve,headerPadding:Qe,headerColor:Le,footerPadding:ke,triggerHeight:Ce,zeroTriggerHeight:Ke,zeroTriggerWidth:qe,motionDurationMid:Ue,motionDurationSlow:Ye,fontSize:ct,borderRadius:yt,bodyBg:$t,headerBg:an,siderBg:rt}=oe;return{[pe]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:$t,"&, *":{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:rt,transition:`all ${Ue}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${de}-menu${de}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ce},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ce,color:xe,lineHeight:`${Ce}px`,textAlign:"center",background:Se,cursor:"pointer",transition:`all ${Ue}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:ve,insetInlineEnd:-qe,zIndex:1,width:qe,height:Ke,color:xe,fontSize:oe.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:rt,borderStartStartRadius:0,borderStartEndRadius:yt,borderEndEndRadius:yt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ye} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ye}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-qe,borderStartStartRadius:yt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:yt}}}}},Ae(oe)),{"&-rtl":{direction:"rtl"}}),[`${pe}-header`]:{height:ve,padding:Qe,color:Le,lineHeight:`${ve}px`,background:an,[`${de}-menu`]:{lineHeight:"inherit"}},[`${pe}-footer`]:{padding:ke,color:ge,fontSize:ct,background:we},[`${pe}-content`]:{flex:"auto",minHeight:0}}};var Te=(0,ue.Z)("Layout",oe=>[Me(oe)],oe=>{const{colorBgLayout:de,controlHeight:pe,controlHeightLG:ge,colorText:xe,controlHeightSM:we,marginXXS:Se,colorTextLightSolid:ve,colorBgContainer:Qe}=oe,Le=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:de,colorBgTrigger:"#002140",bodyBg:de,headerBg:"#001529",headerHeight:pe*2,headerPadding:`0 ${Le}px`,headerColor:xe,footerPadding:`${we}px ${Le}px`,footerBg:de,siderBg:"#001529",triggerHeight:ge+Se*2,triggerBg:"#002140",triggerColor:ve,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:Qe,lightTriggerBg:Qe,lightTriggerColor:xe}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Oe=function(oe,de){var pe={};for(var ge in oe)Object.prototype.hasOwnProperty.call(oe,ge)&&de.indexOf(ge)<0&&(pe[ge]=oe[ge]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,ge=Object.getOwnPropertySymbols(oe);xe<ge.length;xe++)de.indexOf(ge[xe])<0&&Object.prototype.propertyIsEnumerable.call(oe,ge[xe])&&(pe[ge[xe]]=oe[ge[xe]]);return pe};const ye=Ne.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function se(oe){let{suffixCls:de,tagName:pe,displayName:ge}=oe;return xe=>Ne.forwardRef((Se,ve)=>Ne.createElement(xe,Object.assign({ref:ve,suffixCls:de,tagName:pe},Se)))}const E=Ne.forwardRef((oe,de)=>{const{prefixCls:pe,suffixCls:ge,className:xe,tagName:we}=oe,Se=Oe(oe,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ve}=Ne.useContext(je.E_),Qe=ve("layout",pe),[Le,ke]=Te(Qe),Ce=ge?`${Qe}-${ge}`:Qe;return Le(Ne.createElement(we,Object.assign({className:Be()(pe||Ce,xe,ke),ref:de},Se)))}),a=Ne.forwardRef((oe,de)=>{const{direction:pe}=Ne.useContext(je.E_),[ge,xe]=Ne.useState([]),{prefixCls:we,className:Se,rootClassName:ve,children:Qe,hasSider:Le,tagName:ke,style:Ce}=oe,Ke=Oe(oe,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),qe=(0,Fe.Z)(Ke,["suffixCls"]),{getPrefixCls:Ue,layout:Ye}=Ne.useContext(je.E_),ct=Ue("layout",we),[yt,$t]=Te(ct),an=Be()(ct,{[`${ct}-has-sider`]:typeof Le=="boolean"?Le:ge.length>0,[`${ct}-rtl`]:pe==="rtl"},Ye==null?void 0:Ye.className,Se,ve,$t),rt=Ne.useMemo(()=>({siderHook:{addSider:jt=>{xe(It=>[].concat((0,b.Z)(It),[jt]))},removeSider:jt=>{xe(It=>It.filter(hn=>hn!==jt))}}}),[]);return yt(Ne.createElement(ye.Provider,{value:rt},Ne.createElement(ke,Object.assign({ref:de,className:an,style:Object.assign(Object.assign({},Ye==null?void 0:Ye.style),Ce)},qe),Qe)))}),x=se({tagName:"div",displayName:"Layout"})(a),y=se({suffixCls:"header",tagName:"header",displayName:"Header"})(E),z=se({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(E),te=se({suffixCls:"content",tagName:"main",displayName:"Content"})(E);var re=x},76529:function(Bt,Ct,ee){"use strict";ee.d(Ct,{J:function(){return je}});var b=ee(67294),ie=ee(4173),Be=ee(60276),Fe=function(ue,Ge){var Ae={};for(var Me in ue)Object.prototype.hasOwnProperty.call(ue,Me)&&Ge.indexOf(Me)<0&&(Ae[Me]=ue[Me]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,Me=Object.getOwnPropertySymbols(ue);Te<Me.length;Te++)Ge.indexOf(Me[Te])<0&&Object.prototype.propertyIsEnumerable.call(ue,Me[Te])&&(Ae[Me[Te]]=ue[Me[Te]]);return Ae};const Ne=b.createContext(null),je=b.forwardRef((ue,Ge)=>{const{children:Ae}=ue,Me=Fe(ue,["children"]),Te=b.useContext(Ne),Oe=b.useMemo(()=>Object.assign(Object.assign({},Te),Me),[Te,Me.prefixCls,Me.mode,Me.selectable]);return b.createElement(Ne.Provider,{value:Oe},b.createElement(ie.BR,null,(0,Be.supportNodeRef)(Ae)?b.cloneElement(Ae,{ref:Ge}):Ae))});Ct.Z=Ne},68508:function(Bt,Ct,ee){"use strict";ee.d(Ct,{default:function(){return Et}});var b=ee(78595),ie=ee(67294),Be=ee(71322),Fe=ee(94184),Ne=ee.n(Fe),je=ee(53124),ue=function(Lt,He){var Ze={};for(var Ve in Lt)Object.prototype.hasOwnProperty.call(Lt,Ve)&&He.indexOf(Ve)<0&&(Ze[Ve]=Lt[Ve]);if(Lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,Ve=Object.getOwnPropertySymbols(Lt);gt<Ve.length;gt++)He.indexOf(Ve[gt])<0&&Object.prototype.propertyIsEnumerable.call(Lt,Ve[gt])&&(Ze[Ve[gt]]=Lt[Ve[gt]]);return Ze},Ae=Lt=>{const{prefixCls:He,className:Ze,dashed:Ve}=Lt,gt=ue(Lt,["prefixCls","className","dashed"]),{getPrefixCls:Dt}=ie.useContext(je.E_),Gt=Dt("menu",He),Bn=Ne()({[`${Gt}-item-divider-dashed`]:!!Ve},Ze);return ie.createElement(b.iz,Object.assign({className:Bn},gt))},Me=ee(37419),Te=ee(10366),Oe=ee(83062),ye=ee(96159),E=(0,ie.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=Lt=>{var He;const{className:Ze,children:Ve,icon:gt,title:Dt,danger:Gt}=Lt,{prefixCls:Bn,firstLevel:Fn,direction:tn,disableMenuItemTitleTooltip:_n,inlineCollapsed:Xe}=ie.useContext(E),vt=ln=>{const ma=ie.createElement("span",{className:`${Bn}-title-content`},Ve);return(!gt||(0,ye.l$)(Ve)&&Ve.type==="span")&&Ve&&ln&&Fn&&typeof Ve=="string"?ie.createElement("div",{className:`${Bn}-inline-collapsed-noicon`},Ve.charAt(0)):ma},{siderCollapsed:mn}=ie.useContext(Be.D);let Cn=Dt;typeof Dt=="undefined"?Cn=Fn?Ve:"":Dt===!1&&(Cn="");const St={title:Cn};!mn&&!Xe&&(St.title=null,St.open=!1);const vn=(0,Me.Z)(Ve).length;let Nn=ie.createElement(b.ck,Object.assign({},(0,Te.Z)(Lt,["title","icon","danger"]),{className:Ne()({[`${Bn}-item-danger`]:Gt,[`${Bn}-item-only-child`]:(gt?vn+1:vn)===1},Ze),title:typeof Dt=="string"?Dt:void 0}),(0,ye.Tm)(gt,{className:Ne()((0,ye.l$)(gt)?(He=gt.props)===null||He===void 0?void 0:He.className:"",`${Bn}-item-icon`)}),vt(Xe));return _n||(Nn=ie.createElement(Oe.Z,Object.assign({},St,{placement:tn==="rtl"?"left":"right",overlayClassName:`${Bn}-inline-collapsed-tooltip`}),Nn)),Nn},z=Lt=>{var He;const{popupClassName:Ze,icon:Ve,title:gt,theme:Dt}=Lt,Gt=ie.useContext(E),{prefixCls:Bn,inlineCollapsed:Fn,theme:tn}=Gt,_n=(0,b.Xl)();let Xe;if(!Ve)Xe=Fn&&!_n.length&>&&typeof gt=="string"?ie.createElement("div",{className:`${Bn}-inline-collapsed-noicon`},gt.charAt(0)):ie.createElement("span",{className:`${Bn}-title-content`},gt);else{const mn=(0,ye.l$)(gt)&>.type==="span";Xe=ie.createElement(ie.Fragment,null,(0,ye.Tm)(Ve,{className:Ne()((0,ye.l$)(Ve)?(He=Ve.props)===null||He===void 0?void 0:He.className:"",`${Bn}-item-icon`)}),mn?gt:ie.createElement("span",{className:`${Bn}-title-content`},gt))}const vt=ie.useMemo(()=>Object.assign(Object.assign({},Gt),{firstLevel:!1}),[Gt]);return ie.createElement(E.Provider,{value:vt},ie.createElement(b.Wd,Object.assign({},(0,Te.Z)(Lt,["icon"]),{title:Xe,popupClassName:Ne()(Bn,Ze,`${Bn}-${Dt||tn}`)})))},te=ee(25877),re=ee(60276),oe=ee(33603),de=ee(76529),pe=function(Lt,He){var Ze={};for(var Ve in Lt)Object.prototype.hasOwnProperty.call(Lt,Ve)&&He.indexOf(Ve)<0&&(Ze[Ve]=Lt[Ve]);if(Lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,Ve=Object.getOwnPropertySymbols(Lt);gt<Ve.length;gt++)He.indexOf(Ve[gt])<0&&Object.prototype.propertyIsEnumerable.call(Lt,Ve[gt])&&(Ze[Ve[gt]]=Lt[Ve[gt]]);return Ze};function ge(Lt){return(Lt||[]).map((He,Ze)=>{if(He&&typeof He=="object"){const Ve=He,{label:gt,children:Dt,key:Gt,type:Bn}=Ve,Fn=pe(Ve,["label","children","key","type"]),tn=Gt!=null?Gt:`tmp-${Ze}`;return Dt||Bn==="group"?Bn==="group"?ie.createElement(b.BW,Object.assign({key:tn},Fn,{title:gt}),ge(Dt)):ie.createElement(z,Object.assign({key:tn},Fn,{title:gt}),ge(Dt)):Bn==="divider"?ie.createElement(Ae,Object.assign({key:tn},Fn)):ie.createElement(x,Object.assign({key:tn},Fn),gt)}return null}).filter(He=>He)}function xe(Lt){return ie.useMemo(()=>Lt&&ge(Lt),[Lt])}var we=ee(84780),Se=ee(14747),ve=ee(33507),Qe=ee(67771),Le=ee(50438),ke=ee(67968),Ce=ee(45503),qe=Lt=>{const{componentCls:He,motionDurationSlow:Ze,horizontalLineHeight:Ve,colorSplit:gt,lineWidth:Dt,lineType:Gt,itemPaddingInline:Bn}=Lt;return{[`${He}-horizontal`]:{lineHeight:Ve,border:0,borderBottom:`${Dt}px ${Gt} ${gt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${He}-item, ${He}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Bn},[`> ${He}-item:hover,
|
|
> ${He}-item-active,
|
|
> ${He}-submenu ${He}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${He}-item, ${He}-submenu-title`]:{transition:[`border-color ${Ze}`,`background ${Ze}`].join(",")},[`${He}-submenu-arrow`]:{display:"none"}}}},Ye=Lt=>{let{componentCls:He,menuArrowOffset:Ze}=Lt;return{[`${He}-rtl`]:{direction:"rtl"},[`${He}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${He}-rtl${He}-vertical,
|
|
${He}-submenu-rtl ${He}-vertical`]:{[`${He}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Ze})`},"&::after":{transform:`rotate(45deg) translateY(${Ze})`}}}}};const ct=Lt=>Object.assign({},(0,Se.oN)(Lt));var $t=(Lt,He)=>{const{componentCls:Ze,itemColor:Ve,itemSelectedColor:gt,groupTitleColor:Dt,itemBg:Gt,subMenuItemBg:Bn,itemSelectedBg:Fn,activeBarHeight:tn,activeBarWidth:_n,activeBarBorderWidth:Xe,motionDurationSlow:vt,motionEaseInOut:mn,motionEaseOut:Cn,itemPaddingInline:St,motionDurationMid:vn,itemHoverColor:Nn,lineType:ln,colorSplit:ma,itemDisabledColor:Ut,dangerItemColor:wt,dangerItemHoverColor:Un,dangerItemSelectedColor:fa,dangerItemActiveBg:wa,dangerItemSelectedBg:la,itemHoverBg:rr,itemActiveBg:en,menuSubMenuBg:rn,horizontalItemSelectedColor:sn,horizontalItemSelectedBg:na,horizontalItemBorderRadius:Ga,horizontalItemHoverBg:Fr,popupBg:_r}=Lt;return{[`${Ze}-${He}, ${Ze}-${He} > ${Ze}`]:{color:Ve,background:Gt,[`&${Ze}-root:focus-visible`]:Object.assign({},ct(Lt)),[`${Ze}-item-group-title`]:{color:Dt},[`${Ze}-submenu-selected`]:{[`> ${Ze}-submenu-title`]:{color:gt}},[`${Ze}-item-disabled, ${Ze}-submenu-disabled`]:{color:`${Ut} !important`},[`${Ze}-item:not(${Ze}-item-selected):not(${Ze}-submenu-selected)`]:{[`&:hover, > ${Ze}-submenu-title:hover`]:{color:Nn}},[`&:not(${Ze}-horizontal)`]:{[`${Ze}-item:not(${Ze}-item-selected)`]:{"&:hover":{backgroundColor:rr},"&:active":{backgroundColor:en}},[`${Ze}-submenu-title`]:{"&:hover":{backgroundColor:rr},"&:active":{backgroundColor:en}}},[`${Ze}-item-danger`]:{color:wt,[`&${Ze}-item:hover`]:{[`&:not(${Ze}-item-selected):not(${Ze}-submenu-selected)`]:{color:Un}},[`&${Ze}-item:active`]:{background:wa}},[`${Ze}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ze}-item-selected`]:{color:gt,[`&${Ze}-item-danger`]:{color:fa},"a, a:hover":{color:"inherit"}},[`& ${Ze}-item-selected`]:{backgroundColor:Fn,[`&${Ze}-item-danger`]:{backgroundColor:la}},[`${Ze}-item, ${Ze}-submenu-title`]:{[`&:not(${Ze}-item-disabled):focus-visible`]:Object.assign({},ct(Lt))},[`&${Ze}-submenu > ${Ze}`]:{backgroundColor:rn},[`&${Ze}-popup > ${Ze}`]:{backgroundColor:_r},[`&${Ze}-horizontal`]:Object.assign(Object.assign({},He==="dark"?{borderBottom:0}:{}),{[`> ${Ze}-item, > ${Ze}-submenu`]:{top:Xe,marginTop:-Xe,marginBottom:0,borderRadius:Ga,"&::after":{position:"absolute",insetInline:St,bottom:0,borderBottom:`${tn}px solid transparent`,transition:`border-color ${vt} ${mn}`,content:'""'},"&:hover, &-active, &-open":{background:Fr,"&::after":{borderBottomWidth:tn,borderBottomColor:sn}},"&-selected":{color:sn,backgroundColor:na,"&:hover":{backgroundColor:na},"&::after":{borderBottomWidth:tn,borderBottomColor:sn}}}}),[`&${Ze}-root`]:{[`&${Ze}-inline, &${Ze}-vertical`]:{borderInlineEnd:`${Xe}px ${ln} ${ma}`}},[`&${Ze}-inline`]:{[`${Ze}-sub${Ze}-inline`]:{background:Bn},[`${Ze}-item, ${Ze}-submenu-title`]:Xe&&_n?{width:`calc(100% + ${Xe}px)`}:{},[`${Ze}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${_n}px solid ${gt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${vn} ${Cn}`,`opacity ${vn} ${Cn}`].join(","),content:'""'},[`&${Ze}-item-danger`]:{"&::after":{borderInlineEndColor:fa}}},[`${Ze}-selected, ${Ze}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${vn} ${mn}`,`opacity ${vn} ${mn}`].join(",")}}}}}};const an=Lt=>{const{componentCls:He,itemHeight:Ze,itemMarginInline:Ve,padding:gt,menuArrowSize:Dt,marginXS:Gt,itemMarginBlock:Bn}=Lt,Fn=gt+Dt+Gt;return{[`${He}-item`]:{position:"relative",overflow:"hidden"},[`${He}-item, ${He}-submenu-title`]:{height:Ze,lineHeight:`${Ze}px`,paddingInline:gt,overflow:"hidden",textOverflow:"ellipsis",marginInline:Ve,marginBlock:Bn,width:`calc(100% - ${Ve*2}px)`},[`> ${He}-item,
|
|
> ${He}-submenu > ${He}-submenu-title`]:{height:Ze,lineHeight:`${Ze}px`},[`${He}-item-group-list ${He}-submenu-title,
|
|
${He}-submenu-title`]:{paddingInlineEnd:Fn}}};var jt=Lt=>{const{componentCls:He,iconCls:Ze,itemHeight:Ve,colorTextLightSolid:gt,dropdownWidth:Dt,controlHeightLG:Gt,motionDurationMid:Bn,motionEaseOut:Fn,paddingXL:tn,itemMarginInline:_n,fontSizeLG:Xe,motionDurationSlow:vt,paddingXS:mn,boxShadowSecondary:Cn,collapsedWidth:St,collapsedIconSize:vn}=Lt,Nn={height:Ve,lineHeight:`${Ve}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[He]:{"&-inline, &-vertical":Object.assign({[`&${He}-root`]:{boxShadow:"none"}},an(Lt))},[`${He}-submenu-popup`]:{[`${He}-vertical`]:Object.assign(Object.assign({},an(Lt)),{boxShadow:Cn})}},{[`${He}-submenu-popup ${He}-vertical${He}-sub`]:{minWidth:Dt,maxHeight:`calc(100vh - ${Gt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${He}-inline`]:{width:"100%",[`&${He}-root`]:{[`${He}-item, ${He}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${vt}`,`background ${vt}`,`padding ${Bn} ${Fn}`].join(","),[`> ${He}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${He}-sub${He}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${He}-submenu > ${He}-submenu-title`]:Nn,[`& ${He}-item-group-title`]:{paddingInlineStart:tn}},[`${He}-item`]:Nn}},{[`${He}-inline-collapsed`]:{width:St,[`&${He}-root`]:{[`${He}-item, ${He}-submenu ${He}-submenu-title`]:{[`> ${He}-inline-collapsed-noicon`]:{fontSize:Xe,textAlign:"center"}}},[`> ${He}-item,
|
|
> ${He}-item-group > ${He}-item-group-list > ${He}-item,
|
|
> ${He}-item-group > ${He}-item-group-list > ${He}-submenu > ${He}-submenu-title,
|
|
> ${He}-submenu > ${He}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Xe/2}px - ${_n}px)`,textOverflow:"clip",[`
|
|
${He}-submenu-arrow,
|
|
${He}-submenu-expand-icon
|
|
`]:{opacity:0},[`${He}-item-icon, ${Ze}`]:{margin:0,fontSize:vn,lineHeight:`${Ve}px`,"+ span":{display:"inline-block",opacity:0}}},[`${He}-item-icon, ${Ze}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${He}-item-icon, ${Ze}`]:{display:"none"},"a, a:hover":{color:gt}},[`${He}-item-group-title`]:Object.assign(Object.assign({},Se.vS),{paddingInline:mn})}}]};const It=Lt=>{const{componentCls:He,motionDurationSlow:Ze,motionDurationMid:Ve,motionEaseInOut:gt,motionEaseOut:Dt,iconCls:Gt,iconSize:Bn,iconMarginInlineEnd:Fn}=Lt;return{[`${He}-item, ${He}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ze}`,`background ${Ze}`,`padding ${Ze} ${gt}`].join(","),[`${He}-item-icon, ${Gt}`]:{minWidth:Bn,fontSize:Bn,transition:[`font-size ${Ve} ${Dt}`,`margin ${Ze} ${gt}`,`color ${Ze}`].join(","),"+ span":{marginInlineStart:Fn,opacity:1,transition:[`opacity ${Ze} ${gt}`,`margin ${Ze}`,`color ${Ze}`].join(",")}},[`${He}-item-icon`]:Object.assign({},(0,Se.Ro)()),[`&${He}-item-only-child`]:{[`> ${Gt}, > ${He}-item-icon`]:{marginInlineEnd:0}}},[`${He}-item-disabled, ${He}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${He}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},hn=Lt=>{const{componentCls:He,motionDurationSlow:Ze,motionEaseInOut:Ve,borderRadius:gt,menuArrowSize:Dt,menuArrowOffset:Gt}=Lt;return{[`${He}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Lt.margin,width:Dt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ze} ${Ve}, opacity ${Ze}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Dt*.6,height:Dt*.15,backgroundColor:"currentcolor",borderRadius:gt,transition:[`background ${Ze} ${Ve}`,`transform ${Ze} ${Ve}`,`top ${Ze} ${Ve}`,`color ${Ze} ${Ve}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Gt})`},"&::after":{transform:`rotate(-45deg) translateY(${Gt})`}}}}},Mt=Lt=>{const{antCls:He,componentCls:Ze,fontSize:Ve,motionDurationSlow:gt,motionDurationMid:Dt,motionEaseInOut:Gt,paddingXS:Bn,padding:Fn,colorSplit:tn,lineWidth:_n,zIndexPopup:Xe,borderRadiusLG:vt,subMenuItemBorderRadius:mn,menuArrowSize:Cn,menuArrowOffset:St,lineType:vn,menuPanelMaskInset:Nn,groupTitleLineHeight:ln,groupTitleFontSize:ma}=Lt;return[{"":{[`${Ze}`]:Object.assign(Object.assign({},(0,Se.dF)()),{"&-hidden":{display:"none"}})},[`${Ze}-submenu-hidden`]:{display:"none"}},{[Ze]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Se.Wf)(Lt)),(0,Se.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Ve,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${gt} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Ze}-item`]:{flex:"none"}},[`${Ze}-item, ${Ze}-submenu, ${Ze}-submenu-title`]:{borderRadius:Lt.itemBorderRadius},[`${Ze}-item-group-title`]:{padding:`${Bn}px ${Fn}px`,fontSize:ma,lineHeight:ln,transition:`all ${gt}`},[`&-horizontal ${Ze}-submenu`]:{transition:[`border-color ${gt} ${Gt}`,`background ${gt} ${Gt}`].join(",")},[`${Ze}-submenu, ${Ze}-submenu-inline`]:{transition:[`border-color ${gt} ${Gt}`,`background ${gt} ${Gt}`,`padding ${Dt} ${Gt}`].join(",")},[`${Ze}-submenu ${Ze}-sub`]:{cursor:"initial",transition:[`background ${gt} ${Gt}`,`padding ${gt} ${Gt}`].join(",")},[`${Ze}-title-content`]:{transition:`color ${gt}`},[`${Ze}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ze}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:tn,borderStyle:vn,borderWidth:0,borderTopWidth:_n,marginBlock:_n,padding:0,"&-dashed":{borderStyle:"dashed"}}}),It(Lt)),{[`${Ze}-item-group`]:{[`${Ze}-item-group-list`]:{margin:0,padding:0,[`${Ze}-item, ${Ze}-submenu-title`]:{paddingInline:`${Ve*2}px ${Fn}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Xe,borderRadius:vt,boxShadow:"none",transformOrigin:"0 0",[`&${Ze}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Nn}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Nn},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:Lt.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Lt.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Lt.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Lt.paddingXS},[`> ${Ze}`]:Object.assign(Object.assign(Object.assign({borderRadius:vt},It(Lt)),hn(Lt)),{[`${Ze}-item, ${Ze}-submenu > ${Ze}-submenu-title`]:{borderRadius:mn},[`${Ze}-submenu-title::after`]:{transition:`transform ${gt} ${Gt}`}})}}),hn(Lt)),{[`&-inline-collapsed ${Ze}-submenu-arrow,
|
|
&-inline ${Ze}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${St})`},"&::after":{transform:`rotate(45deg) translateX(-${St})`}},[`${Ze}-submenu-open${Ze}-submenu-inline > ${Ze}-submenu-title > ${Ze}-submenu-arrow`]:{transform:`translateY(-${Cn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${St})`},"&::before":{transform:`rotate(45deg) translateX(${St})`}}})},{[`${He}-layout-header`]:{[Ze]:{lineHeight:"inherit"}}}]};var Yt=(Lt,He)=>(0,ke.Z)("Menu",Ve=>{if(He===!1)return[];const{colorBgElevated:gt,colorPrimary:Dt,colorTextLightSolid:Gt,controlHeightLG:Bn,fontSize:Fn,darkItemColor:tn,darkDangerItemColor:_n,darkItemBg:Xe,darkSubMenuItemBg:vt,darkItemSelectedColor:mn,darkItemSelectedBg:Cn,darkDangerItemSelectedBg:St,darkItemHoverBg:vn,darkGroupTitleColor:Nn,darkItemHoverColor:ln,darkItemDisabledColor:ma,darkDangerItemHoverColor:Ut,darkDangerItemSelectedColor:wt,darkDangerItemActiveBg:Un}=Ve,fa=Fn/7*5,wa=(0,Ce.TS)(Ve,{menuArrowSize:fa,menuHorizontalHeight:Bn*1.15,menuArrowOffset:`${fa*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:gt}),la=(0,Ce.TS)(wa,{itemColor:tn,itemHoverColor:ln,groupTitleColor:Nn,itemSelectedColor:mn,itemBg:Xe,popupBg:Xe,subMenuItemBg:vt,itemActiveBg:"transparent",itemSelectedBg:Cn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:vn,itemDisabledColor:ma,dangerItemColor:_n,dangerItemHoverColor:Ut,dangerItemSelectedColor:wt,dangerItemActiveBg:Un,dangerItemSelectedBg:St,menuSubMenuBg:vt,horizontalItemSelectedColor:Gt,horizontalItemSelectedBg:Dt});return[Mt(wa),qe(wa),jt(wa),$t(wa,"light"),$t(la,"dark"),Ye(wa),(0,ve.Z)(wa),(0,Qe.oN)(wa,"slide-up"),(0,Qe.oN)(wa,"slide-down"),(0,Le._y)(wa,"zoom-big")]},Ve=>{const{colorPrimary:gt,colorError:Dt,colorTextDisabled:Gt,colorErrorBg:Bn,colorText:Fn,colorTextDescription:tn,colorBgContainer:_n,colorFillAlter:Xe,colorFillContent:vt,lineWidth:mn,lineWidthBold:Cn,controlItemBgActive:St,colorBgTextHover:vn,controlHeightLG:Nn,lineHeight:ln,colorBgElevated:ma,marginXXS:Ut,padding:wt,fontSize:Un,controlHeightSM:fa,fontSizeLG:wa,colorTextLightSolid:la,colorErrorHover:rr}=Ve,en=new we.C(la).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Ve.zIndexPopupBase+50,radiusItem:Ve.borderRadiusLG,itemBorderRadius:Ve.borderRadiusLG,radiusSubMenuItem:Ve.borderRadiusSM,subMenuItemBorderRadius:Ve.borderRadiusSM,colorItemText:Fn,itemColor:Fn,colorItemTextHover:Fn,itemHoverColor:Fn,colorItemTextHoverHorizontal:gt,horizontalItemHoverColor:gt,colorGroupTitle:tn,groupTitleColor:tn,colorItemTextSelected:gt,itemSelectedColor:gt,colorItemTextSelectedHorizontal:gt,horizontalItemSelectedColor:gt,colorItemBg:_n,itemBg:_n,colorItemBgHover:vn,itemHoverBg:vn,colorItemBgActive:vt,itemActiveBg:St,colorSubItemBg:Xe,subMenuItemBg:Xe,colorItemBgSelected:St,itemSelectedBg:St,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Cn,activeBarHeight:Cn,colorActiveBarBorderSize:mn,activeBarBorderWidth:mn,colorItemTextDisabled:Gt,itemDisabledColor:Gt,colorDangerItemText:Dt,dangerItemColor:Dt,colorDangerItemTextHover:Dt,dangerItemHoverColor:Dt,colorDangerItemTextSelected:Dt,dangerItemSelectedColor:Dt,colorDangerItemBgActive:Bn,dangerItemActiveBg:Bn,colorDangerItemBgSelected:Bn,dangerItemSelectedBg:Bn,itemMarginInline:Ve.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Nn,groupTitleLineHeight:ln,collapsedWidth:Nn*2,popupBg:ma,itemMarginBlock:Ut,itemPaddingInline:wt,horizontalLineHeight:`${Nn*1.15}px`,iconSize:Un,iconMarginInlineEnd:fa-Un,collapsedIconSize:wa,groupTitleFontSize:Un,darkItemDisabledColor:new we.C(la).setAlpha(.25).toRgbString(),darkItemColor:en,darkDangerItemColor:Dt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:la,darkItemSelectedBg:gt,darkDangerItemSelectedBg:Dt,darkItemHoverBg:"transparent",darkGroupTitleColor:en,darkItemHoverColor:la,darkDangerItemHoverColor:rr,darkDangerItemSelectedColor:la,darkDangerItemActiveBg:Dt}},{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"]]})(Lt),Re=function(Lt,He){var Ze={};for(var Ve in Lt)Object.prototype.hasOwnProperty.call(Lt,Ve)&&He.indexOf(Ve)<0&&(Ze[Ve]=Lt[Ve]);if(Lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,Ve=Object.getOwnPropertySymbols(Lt);gt<Ve.length;gt++)He.indexOf(Ve[gt])<0&&Object.prototype.propertyIsEnumerable.call(Lt,Ve[gt])&&(Ze[Ve[gt]]=Lt[Ve[gt]]);return Ze},Sn=(0,ie.forwardRef)((Lt,He)=>{var Ze,Ve;const gt=ie.useContext(de.Z),Dt=gt||{},{getPrefixCls:Gt,getPopupContainer:Bn,direction:Fn,menu:tn}=ie.useContext(je.E_),_n=Gt(),{prefixCls:Xe,className:vt,style:mn,theme:Cn="light",expandIcon:St,_internalDisableMenuItemTitleTooltip:vn,inlineCollapsed:Nn,siderCollapsed:ln,items:ma,children:Ut,rootClassName:wt,mode:Un,selectable:fa,onClick:wa,overflowedIndicatorPopupClassName:la}=Lt,rr=Re(Lt,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),en=(0,Te.Z)(rr,["collapsedWidth"]),rn=xe(ma)||Ut;(Ze=Dt.validator)===null||Ze===void 0||Ze.call(Dt,{mode:Un});const sn=(0,re.useEvent)(function(){var Yn;wa==null||wa.apply(void 0,arguments),(Yn=Dt.onClick)===null||Yn===void 0||Yn.call(Dt)}),na=Dt.mode||Un,Ga=fa!=null?fa:Dt.selectable,Fr=ie.useMemo(()=>ln!==void 0?ln:Nn,[Nn,ln]),_r={horizontal:{motionName:`${_n}-slide-up`},inline:(0,oe.Z)(_n),other:{motionName:`${_n}-zoom-big`}},or=Gt("menu",Xe||Dt.prefixCls),[Rn,Ra]=Yt(or,!gt),En=Ne()(`${or}-${Cn}`,tn==null?void 0:tn.className,vt);let Mn;if(typeof St=="function")Mn=St;else if(St===null||St===!1)Mn=null;else if(Dt.expandIcon===null||Dt.expandIcon===!1)Mn=null;else{const Yn=St!=null?St:Dt.expandIcon;Mn=(0,ye.Tm)(Yn,{className:Ne()(`${or}-submenu-expand-icon`,(0,ye.l$)(Yn)?(Ve=Yn.props)===null||Ve===void 0?void 0:Ve.className:"")})}const Vn=ie.useMemo(()=>({prefixCls:or,inlineCollapsed:Fr||!1,direction:Fn,firstLevel:!0,theme:Cn,mode:na,disableMenuItemTitleTooltip:vn}),[or,Fr,Fn,vn,Cn]);return Rn(ie.createElement(de.Z.Provider,{value:null},ie.createElement(E.Provider,{value:Vn},ie.createElement(b.ZP,Object.assign({getPopupContainer:Bn,overflowedIndicator:ie.createElement(te.Z,null),overflowedIndicatorPopupClassName:Ne()(or,`${or}-${Cn}`,la),mode:na,selectable:Ga,onClick:sn},en,{inlineCollapsed:Fr,style:Object.assign(Object.assign({},tn==null?void 0:tn.style),mn),className:En,prefixCls:or,direction:Fn,defaultMotions:_r,expandIcon:Mn,ref:He,rootClassName:Ne()(wt,Ra)}),rn))))});const xt=(0,ie.forwardRef)((Lt,He)=>{const Ze=(0,ie.useRef)(null),Ve=ie.useContext(Be.D);return(0,ie.useImperativeHandle)(He,()=>({menu:Ze.current,focus:gt=>{var Dt;(Dt=Ze.current)===null||Dt===void 0||Dt.focus(gt)}})),ie.createElement(Sn,Object.assign({ref:Ze},Lt,Ve))});xt.Item=x,xt.SubMenu=z,xt.Divider=Ae,xt.ItemGroup=b.BW;var Et=xt},28452:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return _n}});var b=ee(87462),ie=ee(67294),Be={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=Be,Ne=ee(74643),je=function(vt,mn){return ie.createElement(Ne.Z,(0,b.Z)({},vt,{ref:mn,icon:Fe}))},ue=ie.forwardRef(je),Ge=ee(81893),Ae=ee(22751),Me=ee(91034),Te=ee(94184),Oe=ee.n(Te),ye=ee(4942),se=ee(1413),E=ee(15671),a=ee(43144),x=ee(60136),y=ee(51630),z=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
summary tabIndex target title type useMap value width wmode wrap`,te=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,re="".concat(z," ").concat(te).split(/[\s\n]+/),oe="aria-",de="data-";function pe(Xe,vt){return Xe.indexOf(vt)===0}function ge(Xe){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,mn;vt===!1?mn={aria:!0,data:!0,attr:!0}:vt===!0?mn={aria:!0}:mn=(0,se.Z)({},vt);var Cn={};return Object.keys(Xe).forEach(function(St){(mn.aria&&(St==="role"||pe(St,oe))||mn.data&&pe(St,de)||mn.attr&&re.includes(St))&&(Cn[St]=Xe[St])}),Cn}var xe={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},we=xe,Se=ee(81626),ve=function(Xe){(0,x.Z)(mn,Xe);var vt=(0,y.Z)(mn);function mn(){var Cn;(0,E.Z)(this,mn);for(var St=arguments.length,vn=new Array(St),Nn=0;Nn<St;Nn++)vn[Nn]=arguments[Nn];return Cn=vt.call.apply(vt,[this].concat(vn)),Cn.state={goInputText:""},Cn.getValidValue=function(){var ln=Cn.state.goInputText;return!ln||Number.isNaN(ln)?void 0:Number(ln)},Cn.buildOptionText=function(ln){return"".concat(ln," ").concat(Cn.props.locale.items_per_page)},Cn.changeSize=function(ln){Cn.props.changeSize(Number(ln))},Cn.handleChange=function(ln){Cn.setState({goInputText:ln.target.value})},Cn.handleBlur=function(ln){var ma=Cn.props,Ut=ma.goButton,wt=ma.quickGo,Un=ma.rootPrefixCls,fa=Cn.state.goInputText;Ut||fa===""||(Cn.setState({goInputText:""}),!(ln.relatedTarget&&(ln.relatedTarget.className.indexOf("".concat(Un,"-item-link"))>=0||ln.relatedTarget.className.indexOf("".concat(Un,"-item"))>=0))&&wt(Cn.getValidValue()))},Cn.go=function(ln){var ma=Cn.state.goInputText;ma!==""&&(ln.keyCode===we.ENTER||ln.type==="click")&&(Cn.setState({goInputText:""}),Cn.props.quickGo(Cn.getValidValue()))},Cn}return(0,a.Z)(mn,[{key:"getPageSizeOptions",value:function(){var St=this.props,vn=St.pageSize,Nn=St.pageSizeOptions;return Nn.some(function(ln){return ln.toString()===vn.toString()})?Nn:Nn.concat([vn.toString()]).sort(function(ln,ma){var Ut=Number.isNaN(Number(ln))?0:Number(ln),wt=Number.isNaN(Number(ma))?0:Number(ma);return Ut-wt})}},{key:"render",value:function(){var St=this,vn=this.props,Nn=vn.pageSize,ln=vn.locale,ma=vn.rootPrefixCls,Ut=vn.changeSize,wt=vn.quickGo,Un=vn.goButton,fa=vn.selectComponentClass,wa=vn.buildOptionText,la=vn.selectPrefixCls,rr=vn.disabled,en=this.state.goInputText,rn="".concat(ma,"-options"),sn=fa,na=null,Ga=null,Fr=null;if(!Ut&&!wt)return null;var _r=this.getPageSizeOptions();if(Ut&&sn){var or=_r.map(function(Rn,Ra){return ie.createElement(sn.Option,{key:Ra,value:Rn.toString()},(wa||St.buildOptionText)(Rn))});na=ie.createElement(sn,{disabled:rr,prefixCls:la,showSearch:!1,className:"".concat(rn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Nn||_r[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Ra){return Ra.parentNode},"aria-label":ln.page_size,defaultOpen:!1},or)}return wt&&(Un&&(Fr=typeof Un=="boolean"?ie.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:rr,className:"".concat(rn,"-quick-jumper-button")},ln.jump_to_confirm):ie.createElement("span",{onClick:this.go,onKeyUp:this.go},Un)),Ga=ie.createElement("div",{className:"".concat(rn,"-quick-jumper")},ln.jump_to,ie.createElement("input",{disabled:rr,type:"text",value:en,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":ln.page}),ln.page,Fr)),ie.createElement("li",{className:"".concat(rn)},na,Ga)}}]),mn}(ie.Component);ve.defaultProps={pageSizeOptions:["10","20","50","100"]};var Qe=ve,Le=function(vt){var mn,Cn=vt.rootPrefixCls,St=vt.page,vn=vt.active,Nn=vt.className,ln=vt.showTitle,ma=vt.onClick,Ut=vt.onKeyPress,wt=vt.itemRender,Un="".concat(Cn,"-item"),fa=Oe()(Un,"".concat(Un,"-").concat(St),(mn={},(0,ye.Z)(mn,"".concat(Un,"-active"),vn),(0,ye.Z)(mn,"".concat(Un,"-disabled"),!St),(0,ye.Z)(mn,vt.className,Nn),mn)),wa=function(){ma(St)},la=function(rn){Ut(rn,ma,St)},rr=wt(St,"page",ie.createElement("a",{rel:"nofollow"},St));return rr?ie.createElement("li",{title:ln?St.toString():null,className:fa,onClick:wa,onKeyPress:la,tabIndex:0},rr):null},ke=Le;function Ce(){}function Ke(Xe){var vt=Number(Xe);return typeof vt=="number"&&!Number.isNaN(vt)&&isFinite(vt)&&Math.floor(vt)===vt}var qe=function(vt,mn,Cn){return Cn};function Ue(Xe,vt,mn){var Cn=typeof Xe=="undefined"?vt.pageSize:Xe;return Math.floor((mn.total-1)/Cn)+1}var Ye=function(Xe){(0,x.Z)(mn,Xe);var vt=(0,y.Z)(mn);function mn(Cn){var St;(0,E.Z)(this,mn),St=vt.call(this,Cn),St.paginationNode=ie.createRef(),St.getJumpPrevPage=function(){return Math.max(1,St.state.current-(St.props.showLessItems?3:5))},St.getJumpNextPage=function(){return Math.min(Ue(void 0,St.state,St.props),St.state.current+(St.props.showLessItems?3:5))},St.getItemIcon=function(Ut,wt){var Un=St.props.prefixCls,fa=Ut||ie.createElement("button",{type:"button","aria-label":wt,className:"".concat(Un,"-item-link")});return typeof Ut=="function"&&(fa=ie.createElement(Ut,(0,se.Z)({},St.props))),fa},St.isValid=function(Ut){var wt=St.props.total;return Ke(Ut)&&Ut!==St.state.current&&Ke(wt)&&wt>0},St.shouldDisplayQuickJumper=function(){var Ut=St.props,wt=Ut.showQuickJumper,Un=Ut.total,fa=St.state.pageSize;return Un<=fa?!1:wt},St.handleKeyDown=function(Ut){(Ut.keyCode===we.ARROW_UP||Ut.keyCode===we.ARROW_DOWN)&&Ut.preventDefault()},St.handleKeyUp=function(Ut){var wt=St.getValidValue(Ut),Un=St.state.currentInputValue;wt!==Un&&St.setState({currentInputValue:wt}),Ut.keyCode===we.ENTER?St.handleChange(wt):Ut.keyCode===we.ARROW_UP?St.handleChange(wt-1):Ut.keyCode===we.ARROW_DOWN&&St.handleChange(wt+1)},St.handleBlur=function(Ut){var wt=St.getValidValue(Ut);St.handleChange(wt)},St.changePageSize=function(Ut){var wt=St.state.current,Un=Ue(Ut,St.state,St.props);wt=wt>Un?Un:wt,Un===0&&(wt=St.state.current),typeof Ut=="number"&&("pageSize"in St.props||St.setState({pageSize:Ut}),"current"in St.props||St.setState({current:wt,currentInputValue:wt})),St.props.onShowSizeChange(wt,Ut),"onChange"in St.props&&St.props.onChange&&St.props.onChange(wt,Ut)},St.handleChange=function(Ut){var wt=St.props,Un=wt.disabled,fa=wt.onChange,wa=St.state,la=wa.pageSize,rr=wa.current,en=wa.currentInputValue;if(St.isValid(Ut)&&!Un){var rn=Ue(void 0,St.state,St.props),sn=Ut;return Ut>rn?sn=rn:Ut<1&&(sn=1),"current"in St.props||St.setState({current:sn}),sn!==en&&St.setState({currentInputValue:sn}),fa(sn,la),sn}return rr},St.prev=function(){St.hasPrev()&&St.handleChange(St.state.current-1)},St.next=function(){St.hasNext()&&St.handleChange(St.state.current+1)},St.jumpPrev=function(){St.handleChange(St.getJumpPrevPage())},St.jumpNext=function(){St.handleChange(St.getJumpNextPage())},St.hasPrev=function(){return St.state.current>1},St.hasNext=function(){return St.state.current<Ue(void 0,St.state,St.props)},St.runIfEnter=function(Ut,wt){if(Ut.key==="Enter"||Ut.charCode===13){for(var Un=arguments.length,fa=new Array(Un>2?Un-2:0),wa=2;wa<Un;wa++)fa[wa-2]=arguments[wa];wt.apply(void 0,fa)}},St.runIfEnterPrev=function(Ut){St.runIfEnter(Ut,St.prev)},St.runIfEnterNext=function(Ut){St.runIfEnter(Ut,St.next)},St.runIfEnterJumpPrev=function(Ut){St.runIfEnter(Ut,St.jumpPrev)},St.runIfEnterJumpNext=function(Ut){St.runIfEnter(Ut,St.jumpNext)},St.handleGoTO=function(Ut){(Ut.keyCode===we.ENTER||Ut.type==="click")&&St.handleChange(St.state.currentInputValue)},St.renderPrev=function(Ut){var wt=St.props,Un=wt.prevIcon,fa=wt.itemRender,wa=fa(Ut,"prev",St.getItemIcon(Un,"prev page")),la=!St.hasPrev();return(0,ie.isValidElement)(wa)?(0,ie.cloneElement)(wa,{disabled:la}):wa},St.renderNext=function(Ut){var wt=St.props,Un=wt.nextIcon,fa=wt.itemRender,wa=fa(Ut,"next",St.getItemIcon(Un,"next page")),la=!St.hasNext();return(0,ie.isValidElement)(wa)?(0,ie.cloneElement)(wa,{disabled:la}):wa};var vn=Cn.onChange!==Ce,Nn="current"in Cn;Nn&&!vn&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var ln=Cn.defaultCurrent;"current"in Cn&&(ln=Cn.current);var ma=Cn.defaultPageSize;return"pageSize"in Cn&&(ma=Cn.pageSize),ln=Math.min(ln,Ue(ma,void 0,Cn)),St.state={current:ln,currentInputValue:ln,pageSize:ma},St}return(0,a.Z)(mn,[{key:"componentDidUpdate",value:function(St,vn){var Nn=this.props.prefixCls;if(vn.current!==this.state.current&&this.paginationNode.current){var ln=this.paginationNode.current.querySelector(".".concat(Nn,"-item-").concat(vn.current));if(ln&&document.activeElement===ln){var ma;ln==null||(ma=ln.blur)===null||ma===void 0||ma.call(ln)}}}},{key:"getValidValue",value:function(St){var vn=St.target.value,Nn=Ue(void 0,this.state,this.props),ln=this.state.currentInputValue,ma;return vn===""?ma=vn:Number.isNaN(Number(vn))?ma=ln:vn>=Nn?ma=Nn:ma=Number(vn),ma}},{key:"getShowSizeChanger",value:function(){var St=this.props,vn=St.showSizeChanger,Nn=St.total,ln=St.totalBoundaryShowSizeChanger;return typeof vn!="undefined"?vn:Nn>ln}},{key:"render",value:function(){var St=this.props,vn=St.prefixCls,Nn=St.className,ln=St.style,ma=St.disabled,Ut=St.hideOnSinglePage,wt=St.total,Un=St.locale,fa=St.showQuickJumper,wa=St.showLessItems,la=St.showTitle,rr=St.showTotal,en=St.simple,rn=St.itemRender,sn=St.showPrevNextJumpers,na=St.jumpPrevIcon,Ga=St.jumpNextIcon,Fr=St.selectComponentClass,_r=St.selectPrefixCls,or=St.pageSizeOptions,Rn=this.state,Ra=Rn.current,En=Rn.pageSize,Mn=Rn.currentInputValue;if(Ut===!0&&wt<=En)return null;var Vn=Ue(void 0,this.state,this.props),Yn=[],Aa=null,Qa=null,Kn=null,ht=null,Rt=null,Nt=fa&&fa.goButton,Kt=wa?1:2,xn=Ra-1>0?Ra-1:0,qn=Ra+1<Vn?Ra+1:Vn,Ma=ge(this.props,{aria:!0,data:!0}),ga=rr&&ie.createElement("li",{className:"".concat(vn,"-total-text")},rr(wt,[wt===0?0:(Ra-1)*En+1,Ra*En>wt?wt:Ra*En]));if(en){Nt&&(typeof Nt=="boolean"?Rt=ie.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Un.jump_to_confirm):Rt=ie.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Nt),Rt=ie.createElement("li",{title:la?"".concat(Un.jump_to).concat(Ra,"/").concat(Vn):null,className:"".concat(vn,"-simple-pager")},Rt));var er=this.renderPrev(xn);return ie.createElement("ul",(0,b.Z)({className:Oe()(vn,"".concat(vn,"-simple"),(0,ye.Z)({},"".concat(vn,"-disabled"),ma),Nn),style:ln,ref:this.paginationNode},Ma),ga,er?ie.createElement("li",{title:la?Un.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Oe()("".concat(vn,"-prev"),(0,ye.Z)({},"".concat(vn,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},er):null,ie.createElement("li",{title:la?"".concat(Ra,"/").concat(Vn):null,className:"".concat(vn,"-simple-pager")},ie.createElement("input",{type:"text",value:Mn,disabled:ma,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ie.createElement("span",{className:"".concat(vn,"-slash")},"/"),Vn),ie.createElement("li",{title:la?Un.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Oe()("".concat(vn,"-next"),(0,ye.Z)({},"".concat(vn,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(qn)),Rt)}if(Vn<=3+Kt*2){var ur={locale:Un,rootPrefixCls:vn,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:la,itemRender:rn};Vn||Yn.push(ie.createElement(ke,(0,b.Z)({},ur,{key:"noPager",page:1,className:"".concat(vn,"-item-disabled")})));for(var lo=1;lo<=Vn;lo+=1){var ea=Ra===lo;Yn.push(ie.createElement(ke,(0,b.Z)({},ur,{key:lo,page:lo,active:ea})))}}else{var Dr=wa?Un.prev_3:Un.prev_5,Di=wa?Un.next_3:Un.next_5,Ii=rn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(na,"prev page")),mr=rn(this.getJumpNextPage(),"jump-next",this.getItemIcon(Ga,"next page"));sn&&(Aa=Ii?ie.createElement("li",{title:la?Dr:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Oe()("".concat(vn,"-jump-prev"),(0,ye.Z)({},"".concat(vn,"-jump-prev-custom-icon"),!!na))},Ii):null,Qa=mr?ie.createElement("li",{title:la?Di:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Oe()("".concat(vn,"-jump-next"),(0,ye.Z)({},"".concat(vn,"-jump-next-custom-icon"),!!Ga))},mr):null),ht=ie.createElement(ke,{locale:Un,last:!0,rootPrefixCls:vn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Vn,page:Vn,active:!1,showTitle:la,itemRender:rn}),Kn=ie.createElement(ke,{locale:Un,rootPrefixCls:vn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:la,itemRender:rn});var jn=Math.max(1,Ra-Kt),vl=Math.min(Ra+Kt,Vn);Ra-1<=Kt&&(vl=1+Kt*2),Vn-Ra<=Kt&&(jn=Vn-Kt*2);for(var Ho=jn;Ho<=vl;Ho+=1){var dl=Ra===Ho;Yn.push(ie.createElement(ke,{locale:Un,rootPrefixCls:vn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Ho,page:Ho,active:dl,showTitle:la,itemRender:rn}))}Ra-1>=Kt*2&&Ra!==3&&(Yn[0]=(0,ie.cloneElement)(Yn[0],{className:"".concat(vn,"-item-after-jump-prev")}),Yn.unshift(Aa)),Vn-Ra>=Kt*2&&Ra!==Vn-2&&(Yn[Yn.length-1]=(0,ie.cloneElement)(Yn[Yn.length-1],{className:"".concat(vn,"-item-before-jump-next")}),Yn.push(Qa)),jn!==1&&Yn.unshift(Kn),vl!==Vn&&Yn.push(ht)}var tl=!this.hasPrev()||!Vn,nl=!this.hasNext()||!Vn,Oi=this.renderPrev(xn),yl=this.renderNext(qn);return ie.createElement("ul",(0,b.Z)({className:Oe()(vn,Nn,(0,ye.Z)({},"".concat(vn,"-disabled"),ma)),style:ln,ref:this.paginationNode},Ma),ga,Oi?ie.createElement("li",{title:la?Un.prev_page:null,onClick:this.prev,tabIndex:tl?null:0,onKeyPress:this.runIfEnterPrev,className:Oe()("".concat(vn,"-prev"),(0,ye.Z)({},"".concat(vn,"-disabled"),tl)),"aria-disabled":tl},Oi):null,Yn,yl?ie.createElement("li",{title:la?Un.next_page:null,onClick:this.next,tabIndex:nl?null:0,onKeyPress:this.runIfEnterNext,className:Oe()("".concat(vn,"-next"),(0,ye.Z)({},"".concat(vn,"-disabled"),nl)),"aria-disabled":nl},yl):null,ie.createElement(Qe,{disabled:ma,locale:Un,rootPrefixCls:vn,selectComponentClass:Fr,selectPrefixCls:_r,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ra,pageSize:En,pageSizeOptions:or,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Nt}))}}],[{key:"getDerivedStateFromProps",value:function(St,vn){var Nn={};if("current"in St&&(Nn.current=St.current,St.current!==vn.current&&(Nn.currentInputValue=Nn.current)),"pageSize"in St&&St.pageSize!==vn.pageSize){var ln=vn.current,ma=Ue(St.pageSize,vn,St);ln=ln>ma?ma:ln,"current"in St||(Nn.current=ln,Nn.currentInputValue=ln),Nn.pageSize=St.pageSize}return Nn}}]),mn}(ie.Component);Ye.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Ce,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Ce,locale:Se.Z,style:{},itemRender:qe,totalBoundaryShowSizeChanger:50};var ct=Ye,yt=ee(62906),$t=ee(53124),an=ee(98675),rt=ee(25378),jt=ee(10110),It=ee(11713);const hn=Xe=>ie.createElement(It.default,Object.assign({},Xe,{showSearch:!0,size:"small"})),Mt=Xe=>ie.createElement(It.default,Object.assign({},Xe,{showSearch:!0,size:"middle"}));hn.Option=It.default.Option,Mt.Option=It.default.Option;var Yt=ee(47673),Re=ee(14747),Wt=ee(67968),Sn=ee(45503);const xt=Xe=>{const{componentCls:vt}=Xe;return{[`${vt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${vt}-item-link`]:{color:Xe.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${vt}-item-link`]:{color:Xe.colorTextDisabled,cursor:"not-allowed"}}},[`&${vt}-disabled`]:{cursor:"not-allowed",[`${vt}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Xe.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Xe.colorBorder,backgroundColor:Xe.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Xe.itemActiveBgDisabled},a:{color:Xe.itemActiveColorDisabled}}},[`${vt}-item-link`]:{color:Xe.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${vt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${vt}-simple-pager`]:{color:Xe.colorTextDisabled},[`${vt}-jump-prev, ${vt}-jump-next`]:{[`${vt}-item-link-icon`]:{opacity:0},[`${vt}-item-ellipsis`]:{opacity:1}}},[`&${vt}-simple`]:{[`${vt}-prev, ${vt}-next`]:{[`&${vt}-disabled ${vt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Et=Xe=>{const{componentCls:vt}=Xe;return{[`&${vt}-mini ${vt}-total-text, &${vt}-mini ${vt}-simple-pager`]:{height:Xe.itemSizeSM,lineHeight:`${Xe.itemSizeSM}px`},[`&${vt}-mini ${vt}-item`]:{minWidth:Xe.itemSizeSM,height:Xe.itemSizeSM,margin:0,lineHeight:`${Xe.itemSizeSM-2}px`},[`&${vt}-mini:not(${vt}-disabled) ${vt}-item:not(${vt}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Xe.colorBgTextHover},"&:active":{backgroundColor:Xe.colorBgTextActive}},[`&${vt}-mini ${vt}-prev, &${vt}-mini ${vt}-next`]:{minWidth:Xe.itemSizeSM,height:Xe.itemSizeSM,margin:0,lineHeight:`${Xe.itemSizeSM}px`},[`&${vt}-mini:not(${vt}-disabled)`]:{[`${vt}-prev, ${vt}-next`]:{[`&:hover ${vt}-item-link`]:{backgroundColor:Xe.colorBgTextHover},[`&:active ${vt}-item-link`]:{backgroundColor:Xe.colorBgTextActive},[`&${vt}-disabled:hover ${vt}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
&${vt}-mini ${vt}-prev ${vt}-item-link,
|
|
&${vt}-mini ${vt}-next ${vt}-item-link
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Xe.itemSizeSM,lineHeight:`${Xe.itemSizeSM}px`}},[`&${vt}-mini ${vt}-jump-prev, &${vt}-mini ${vt}-jump-next`]:{height:Xe.itemSizeSM,marginInlineEnd:0,lineHeight:`${Xe.itemSizeSM}px`},[`&${vt}-mini ${vt}-options`]:{marginInlineStart:Xe.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Xe.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Xe.itemSizeSM,lineHeight:`${Xe.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Yt.x0)(Xe)),{width:Xe.paginationMiniQuickJumperInputWidth,height:Xe.controlHeightSM})}}}},Lt=Xe=>{const{componentCls:vt}=Xe;return{[`
|
|
&${vt}-simple ${vt}-prev,
|
|
&${vt}-simple ${vt}-next
|
|
`]:{height:Xe.itemSizeSM,lineHeight:`${Xe.itemSizeSM}px`,verticalAlign:"top",[`${vt}-item-link`]:{height:Xe.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Xe.colorBgTextHover},"&:active":{backgroundColor:Xe.colorBgTextActive},"&::after":{height:Xe.itemSizeSM,lineHeight:`${Xe.itemSizeSM}px`}}},[`&${vt}-simple ${vt}-simple-pager`]:{display:"inline-block",height:Xe.itemSizeSM,marginInlineEnd:Xe.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Xe.marginXS,padding:`0 ${Xe.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Xe.itemInputBg,border:`${Xe.lineWidth}px ${Xe.lineType} ${Xe.colorBorder}`,borderRadius:Xe.borderRadius,outline:"none",transition:`border-color ${Xe.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Xe.colorPrimary},"&:focus":{borderColor:Xe.colorPrimaryHover,boxShadow:`${Xe.inputOutlineOffset}px 0 ${Xe.controlOutlineWidth}px ${Xe.controlOutline}`},"&[disabled]":{color:Xe.colorTextDisabled,backgroundColor:Xe.colorBgContainerDisabled,borderColor:Xe.colorBorder,cursor:"not-allowed"}}}}},He=Xe=>{const{componentCls:vt}=Xe;return{[`${vt}-jump-prev, ${vt}-jump-next`]:{outline:0,[`${vt}-item-container`]:{position:"relative",[`${vt}-item-link-icon`]:{color:Xe.colorPrimary,fontSize:Xe.fontSizeSM,opacity:0,transition:`all ${Xe.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${vt}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Xe.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Xe.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Xe.paginationEllipsisTextIndent,opacity:1,transition:`all ${Xe.motionDurationMid}`}},"&:hover":{[`${vt}-item-link-icon`]:{opacity:1},[`${vt}-item-ellipsis`]:{opacity:0}}},[`
|
|
${vt}-prev,
|
|
${vt}-jump-prev,
|
|
${vt}-jump-next
|
|
`]:{marginInlineEnd:Xe.marginXS},[`
|
|
${vt}-prev,
|
|
${vt}-next,
|
|
${vt}-jump-prev,
|
|
${vt}-jump-next
|
|
`]:{display:"inline-block",minWidth:Xe.itemSize,height:Xe.itemSize,color:Xe.colorText,fontFamily:Xe.fontFamily,lineHeight:`${Xe.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Xe.borderRadius,cursor:"pointer",transition:`all ${Xe.motionDurationMid}`},[`${vt}-prev, ${vt}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Xe.colorText,cursor:"pointer",userSelect:"none"},[`${vt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Xe.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Xe.lineWidth}px ${Xe.lineType} transparent`,borderRadius:Xe.borderRadius,outline:"none",transition:`all ${Xe.motionDurationMid}`},[`&:hover ${vt}-item-link`]:{backgroundColor:Xe.colorBgTextHover},[`&:active ${vt}-item-link`]:{backgroundColor:Xe.colorBgTextActive},[`&${vt}-disabled:hover`]:{[`${vt}-item-link`]:{backgroundColor:"transparent"}}},[`${vt}-slash`]:{marginInlineEnd:Xe.paginationSlashMarginInlineEnd,marginInlineStart:Xe.paginationSlashMarginInlineStart},[`${vt}-options`]:{display:"inline-block",marginInlineStart:Xe.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Xe.controlHeight,marginInlineStart:Xe.marginXS,lineHeight:`${Xe.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Yt.ik)(Xe)),{width:Xe.controlHeightLG*1.25,height:Xe.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Xe.marginXS,marginInlineEnd:Xe.marginXS})}}}},Ze=Xe=>{const{componentCls:vt}=Xe;return{[`${vt}-item`]:{display:"inline-block",minWidth:Xe.itemSize,height:Xe.itemSize,marginInlineEnd:Xe.marginXS,fontFamily:Xe.fontFamily,lineHeight:`${Xe.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Xe.lineWidth}px ${Xe.lineType} transparent`,borderRadius:Xe.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Xe.paginationItemPaddingInline}px`,color:Xe.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${vt}-item-active)`]:{"&:hover":{transition:`all ${Xe.motionDurationMid}`,backgroundColor:Xe.colorBgTextHover},"&:active":{backgroundColor:Xe.colorBgTextActive}},"&-active":{fontWeight:Xe.fontWeightStrong,backgroundColor:Xe.itemActiveBg,borderColor:Xe.colorPrimary,a:{color:Xe.colorPrimary},"&:hover":{borderColor:Xe.colorPrimaryHover},"&:hover a":{color:Xe.colorPrimaryHover}}}}},Ve=Xe=>{const{componentCls:vt}=Xe;return{[vt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Re.Wf)(Xe)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${vt}-total-text`]:{display:"inline-block",height:Xe.itemSize,marginInlineEnd:Xe.marginXS,lineHeight:`${Xe.itemSize-2}px`,verticalAlign:"middle"}}),Ze(Xe)),He(Xe)),Lt(Xe)),Et(Xe)),xt(Xe)),{[`@media only screen and (max-width: ${Xe.screenLG}px)`]:{[`${vt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Xe.screenSM}px)`]:{[`${vt}-options`]:{display:"none"}}}),[`&${Xe.componentCls}-rtl`]:{direction:"rtl"}}},gt=Xe=>{const{componentCls:vt}=Xe;return{[`${vt}${vt}-disabled:not(${vt}-mini)`]:{"&, &:hover":{[`${vt}-item-link`]:{borderColor:Xe.colorBorder}},"&:focus-visible":{[`${vt}-item-link`]:{borderColor:Xe.colorBorder}},[`${vt}-item, ${vt}-item-link`]:{backgroundColor:Xe.colorBgContainerDisabled,borderColor:Xe.colorBorder,[`&:hover:not(${vt}-item-active)`]:{backgroundColor:Xe.colorBgContainerDisabled,borderColor:Xe.colorBorder,a:{color:Xe.colorTextDisabled}},[`&${vt}-item-active`]:{backgroundColor:Xe.itemActiveBgDisabled}},[`${vt}-prev, ${vt}-next`]:{"&:hover button":{backgroundColor:Xe.colorBgContainerDisabled,borderColor:Xe.colorBorder,color:Xe.colorTextDisabled},[`${vt}-item-link`]:{backgroundColor:Xe.colorBgContainerDisabled,borderColor:Xe.colorBorder}}},[`${vt}:not(${vt}-mini)`]:{[`${vt}-prev, ${vt}-next`]:{"&:hover button":{borderColor:Xe.colorPrimaryHover,backgroundColor:Xe.itemBg},[`${vt}-item-link`]:{backgroundColor:Xe.itemLinkBg,borderColor:Xe.colorBorder},[`&:hover ${vt}-item-link`]:{borderColor:Xe.colorPrimary,backgroundColor:Xe.itemBg,color:Xe.colorPrimary},[`&${vt}-disabled`]:{[`${vt}-item-link`]:{borderColor:Xe.colorBorder,color:Xe.colorTextDisabled}}},[`${vt}-item`]:{backgroundColor:Xe.itemBg,border:`${Xe.lineWidth}px ${Xe.lineType} ${Xe.colorBorder}`,[`&:hover:not(${vt}-item-active)`]:{borderColor:Xe.colorPrimary,backgroundColor:Xe.itemBg,a:{color:Xe.colorPrimary}},"&-active":{borderColor:Xe.colorPrimary}}}}},Dt=Xe=>{const{componentCls:vt}=Xe;return{[`${vt}:not(${vt}-disabled)`]:{[`${vt}-item`]:Object.assign({},(0,Re.Qy)(Xe)),[`${vt}-jump-prev, ${vt}-jump-next`]:{"&:focus-visible":Object.assign({[`${vt}-item-link-icon`]:{opacity:1},[`${vt}-item-ellipsis`]:{opacity:0}},(0,Re.oN)(Xe))},[`${vt}-prev, ${vt}-next`]:{[`&:focus-visible ${vt}-item-link`]:Object.assign({},(0,Re.oN)(Xe))}}}};var Gt=(0,Wt.Z)("Pagination",Xe=>{const vt=(0,Sn.TS)(Xe,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Xe.marginXXS/2,paginationMiniQuickJumperInputWidth:Xe.controlHeightLG*1.1,paginationItemPaddingInline:Xe.marginXXS*1.5,paginationEllipsisLetterSpacing:Xe.marginXXS/2,paginationSlashMarginInlineStart:Xe.marginXXS,paginationSlashMarginInlineEnd:Xe.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Yt.e5)(Xe),(0,Yt.TM)(Xe));return[Ve(vt),Dt(vt),Xe.wireframe&>(vt)]},Xe=>({itemBg:Xe.colorBgContainer,itemSize:Xe.controlHeight,itemSizeSM:Xe.controlHeightSM,itemActiveBg:Xe.colorBgContainer,itemLinkBg:Xe.colorBgContainer,itemActiveColorDisabled:Xe.colorTextDisabled,itemActiveBgDisabled:Xe.controlItemBgActiveDisabled,itemInputBg:Xe.colorBgContainer,miniOptionsSizeChangerTop:0})),Bn=function(Xe,vt){var mn={};for(var Cn in Xe)Object.prototype.hasOwnProperty.call(Xe,Cn)&&vt.indexOf(Cn)<0&&(mn[Cn]=Xe[Cn]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,Cn=Object.getOwnPropertySymbols(Xe);St<Cn.length;St++)vt.indexOf(Cn[St])<0&&Object.prototype.propertyIsEnumerable.call(Xe,Cn[St])&&(mn[Cn[St]]=Xe[Cn[St]]);return mn},tn=Xe=>{const{prefixCls:vt,selectPrefixCls:mn,className:Cn,rootClassName:St,style:vn,size:Nn,locale:ln,selectComponentClass:ma,responsive:Ut,showSizeChanger:wt}=Xe,Un=Bn(Xe,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:fa}=(0,rt.Z)(Ut),{getPrefixCls:wa,direction:la,pagination:rr={}}=ie.useContext($t.E_),en=wa("pagination",vt),[rn,sn]=Gt(en),na=wt!=null?wt:rr.showSizeChanger,Ga=ie.useMemo(()=>{const Vn=ie.createElement("span",{className:`${en}-item-ellipsis`},"\u2022\u2022\u2022"),Yn=ie.createElement("button",{className:`${en}-item-link`,type:"button",tabIndex:-1},la==="rtl"?ie.createElement(Me.Z,null):ie.createElement(Ae.Z,null)),Aa=ie.createElement("button",{className:`${en}-item-link`,type:"button",tabIndex:-1},la==="rtl"?ie.createElement(Ae.Z,null):ie.createElement(Me.Z,null)),Qa=ie.createElement("a",{className:`${en}-item-link`},ie.createElement("div",{className:`${en}-item-container`},la==="rtl"?ie.createElement(Ge.Z,{className:`${en}-item-link-icon`}):ie.createElement(ue,{className:`${en}-item-link-icon`}),Vn)),Kn=ie.createElement("a",{className:`${en}-item-link`},ie.createElement("div",{className:`${en}-item-container`},la==="rtl"?ie.createElement(ue,{className:`${en}-item-link-icon`}):ie.createElement(Ge.Z,{className:`${en}-item-link-icon`}),Vn));return{prevIcon:Yn,nextIcon:Aa,jumpPrevIcon:Qa,jumpNextIcon:Kn}},[la,en]),[Fr]=(0,jt.Z)("Pagination",yt.Z),_r=Object.assign(Object.assign({},Fr),ln),or=(0,an.Z)(Nn),Rn=or==="small"||!!(fa&&!or&&Ut),Ra=wa("select",mn),En=Oe()({[`${en}-mini`]:Rn,[`${en}-rtl`]:la==="rtl"},rr==null?void 0:rr.className,Cn,St,sn),Mn=Object.assign(Object.assign({},rr==null?void 0:rr.style),vn);return rn(ie.createElement(ct,Object.assign({},Ga,Un,{style:Mn,prefixCls:en,selectPrefixCls:Ra,className:En,selectComponentClass:ma||(Rn?hn:Mt),locale:_r,showSizeChanger:na})))},_n=tn},66330:function(Bt,Ct,ee){"use strict";ee.d(Ct,{t5:function(){return Me}});var b=ee(94184),ie=ee.n(b),Be=ee(92419),Fe=ee(67294),Ne=ee(53124),je=ee(81643),ue=ee(20136),Ge=function(Oe,ye){var se={};for(var E in Oe)Object.prototype.hasOwnProperty.call(Oe,E)&&ye.indexOf(E)<0&&(se[E]=Oe[E]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,E=Object.getOwnPropertySymbols(Oe);a<E.length;a++)ye.indexOf(E[a])<0&&Object.prototype.propertyIsEnumerable.call(Oe,E[a])&&(se[E[a]]=Oe[E[a]]);return se};const Ae=(Oe,ye,se)=>{if(!(!ye&&!se))return Fe.createElement(Fe.Fragment,null,ye&&Fe.createElement("div",{className:`${Oe}-title`},(0,je.Z)(ye)),Fe.createElement("div",{className:`${Oe}-inner-content`},(0,je.Z)(se)))},Me=Oe=>{const{hashId:ye,prefixCls:se,className:E,style:a,placement:x="top",title:y,content:z,children:te}=Oe;return Fe.createElement("div",{className:ie()(ye,se,`${se}-pure`,`${se}-placement-${x}`,E),style:a},Fe.createElement("div",{className:`${se}-arrow`}),Fe.createElement(Be.G,Object.assign({},Oe,{className:ye,prefixCls:se}),te||Ae(se,y,z)))},Te=Oe=>{const{prefixCls:ye}=Oe,se=Ge(Oe,["prefixCls"]),{getPrefixCls:E}=Fe.useContext(Ne.E_),a=E("popover",ye),[x,y]=(0,ue.Z)(a);return x(Fe.createElement(Me,Object.assign({},se,{prefixCls:a,hashId:y})))};Ct.ZP=Te},55241:function(Bt,Ct,ee){"use strict";var b=ee(94184),ie=ee.n(b),Be=ee(67294),Fe=ee(81643),Ne=ee(33603),je=ee(53124),ue=ee(83062),Ge=ee(66330),Ae=ee(20136),Me=function(ye,se){var E={};for(var a in ye)Object.prototype.hasOwnProperty.call(ye,a)&&se.indexOf(a)<0&&(E[a]=ye[a]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,a=Object.getOwnPropertySymbols(ye);x<a.length;x++)se.indexOf(a[x])<0&&Object.prototype.propertyIsEnumerable.call(ye,a[x])&&(E[a[x]]=ye[a[x]]);return E};const Te=ye=>{let{title:se,content:E,prefixCls:a}=ye;return Be.createElement(Be.Fragment,null,se&&Be.createElement("div",{className:`${a}-title`},(0,Fe.Z)(se)),Be.createElement("div",{className:`${a}-inner-content`},(0,Fe.Z)(E)))},Oe=Be.forwardRef((ye,se)=>{const{prefixCls:E,title:a,content:x,overlayClassName:y,placement:z="top",trigger:te="hover",mouseEnterDelay:re=.1,mouseLeaveDelay:oe=.1,overlayStyle:de={}}=ye,pe=Me(ye,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:ge}=Be.useContext(je.E_),xe=ge("popover",E),[we,Se]=(0,Ae.Z)(xe),ve=ge(),Qe=ie()(y,Se);return we(Be.createElement(ue.Z,Object.assign({placement:z,trigger:te,mouseEnterDelay:re,mouseLeaveDelay:oe,overlayStyle:de},pe,{prefixCls:xe,overlayClassName:Qe,ref:se,overlay:a||x?Be.createElement(Te,{prefixCls:xe,title:a,content:x}):null,transitionName:(0,Ne.m)(ve,"zoom-big",pe.transitionName),"data-popover-inject":!0})))});Oe._InternalPanelDoNotUseOrYouWillBeFired=Ge.ZP,Ct.Z=Oe},20136:function(Bt,Ct,ee){"use strict";var b=ee(14747),ie=ee(50438),Be=ee(97414),Fe=ee(8796),Ne=ee(67968),je=ee(45503);const ue=Me=>{const{componentCls:Te,popoverColor:Oe,minWidth:ye,fontWeightStrong:se,popoverPadding:E,boxShadowSecondary:a,colorTextHeading:x,borderRadiusLG:y,zIndexPopup:z,marginXS:te,colorBgElevated:re,popoverBg:oe}=Me;return[{[Te]:Object.assign(Object.assign({},(0,b.Wf)(Me)),{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"},[`${Te}-content`]:{position:"relative"},[`${Te}-inner`]:{backgroundColor:oe,backgroundClip:"padding-box",borderRadius:y,boxShadow:a,padding:E},[`${Te}-title`]:{minWidth:ye,marginBottom:te,color:x,fontWeight:se},[`${Te}-inner-content`]:{color:Oe}})},(0,Be.ZP)(Me,{colorBg:"var(--antd-arrow-background-color)"}),{[`${Te}-pure`]:{position:"relative",maxWidth:"none",margin:Me.sizePopupArrow,display:"inline-block",[`${Te}-content`]:{display:"inline-block"}}}]},Ge=Me=>{const{componentCls:Te}=Me;return{[Te]:Fe.i.map(Oe=>{const ye=Me[`${Oe}6`];return{[`&${Te}-${Oe}`]:{"--antd-arrow-background-color":ye,[`${Te}-inner`]:{backgroundColor:ye},[`${Te}-arrow`]:{background:"transparent"}}}})}},Ae=Me=>{const{componentCls:Te,lineWidth:Oe,lineType:ye,colorSplit:se,paddingSM:E,controlHeight:a,fontSize:x,lineHeight:y,padding:z}=Me,te=a-Math.round(x*y),re=te/2,oe=te/2-Oe,de=z;return{[Te]:{[`${Te}-inner`]:{padding:0},[`${Te}-title`]:{margin:0,padding:`${re}px ${de}px ${oe}px`,borderBottom:`${Oe}px ${ye} ${se}`},[`${Te}-inner-content`]:{padding:`${E}px ${de}px`}}}};Ct.Z=(0,Ne.Z)("Popover",Me=>{const{colorBgElevated:Te,colorText:Oe,wireframe:ye}=Me,se=(0,je.TS)(Me,{popoverPadding:12,popoverBg:Te,popoverColor:Oe});return[ue(se),Ge(se),ye&&Ae(se),(0,ie._y)(se,"zoom-big")]},Me=>({width:177,minWidth:177,zIndexPopup:Me.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},12604:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return Ye}});var b=ee(87462),ie=ee(67294),Be={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=Be,Ne=ee(74643),je=function(yt,$t){return ie.createElement(Ne.Z,(0,b.Z)({},yt,{ref:$t,icon:Fe}))},ue=ie.forwardRef(je),Ge=ee(94184),Ae=ee.n(Ge),Me=ee(4942),Te=ee(97685),Oe=ee(45987),ye=ee(21770),se=ee(15105),E=ee(64217);function a(ct,yt){var $t=ct.disabled,an=ct.prefixCls,rt=ct.character,jt=ct.characterRender,It=ct.index,hn=ct.count,Mt=ct.value,Yt=ct.allowHalf,Re=ct.focused,Wt=ct.onHover,Sn=ct.onClick,xt=function(Gt){Wt(Gt,It)},Et=function(Gt){Sn(Gt,It)},Lt=function(Gt){Gt.keyCode===se.Z.ENTER&&Sn(Gt,It)},He=It+1,Ze=new Set([an]);Mt===0&&It===0&&Re?Ze.add("".concat(an,"-focused")):Yt&&Mt+.5>=He&&Mt<He?(Ze.add("".concat(an,"-half")),Ze.add("".concat(an,"-active")),Re&&Ze.add("".concat(an,"-focused"))):(He<=Mt?Ze.add("".concat(an,"-full")):Ze.add("".concat(an,"-zero")),He===Mt&&Re&&Ze.add("".concat(an,"-focused")));var Ve=typeof rt=="function"?rt(ct):rt,gt=ie.createElement("li",{className:Ae()(Array.from(Ze)),ref:yt},ie.createElement("div",{onClick:$t?null:Et,onKeyDown:$t?null:Lt,onMouseMove:$t?null:xt,role:"radio","aria-checked":Mt>It?"true":"false","aria-posinset":It+1,"aria-setsize":hn,tabIndex:$t?-1:0},ie.createElement("div",{className:"".concat(an,"-first")},Ve),ie.createElement("div",{className:"".concat(an,"-second")},Ve)));return jt&&(gt=jt(gt,ct)),gt}var x=ie.forwardRef(a);function y(){var ct=ie.useRef({});function yt(an){return ct.current[an]}function $t(an){return function(rt){ct.current[an]=rt}}return[yt,$t]}function z(ct){var yt=ct.pageXOffset,$t="scrollLeft";if(typeof yt!="number"){var an=ct.document;yt=an.documentElement[$t],typeof yt!="number"&&(yt=an.body[$t])}return yt}function te(ct){var yt,$t,an=ct.ownerDocument,rt=an.body,jt=an&&an.documentElement,It=ct.getBoundingClientRect();return yt=It.left,$t=It.top,yt-=jt.clientLeft||rt.clientLeft||0,$t-=jt.clientTop||rt.clientTop||0,{left:yt,top:$t}}function re(ct){var yt=te(ct),$t=ct.ownerDocument,an=$t.defaultView||$t.parentWindow;return yt.left+=z(an),yt.left}var oe=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function de(ct,yt){var $t,an=ct.prefixCls,rt=an===void 0?"rc-rate":an,jt=ct.className,It=ct.defaultValue,hn=ct.value,Mt=ct.count,Yt=Mt===void 0?5:Mt,Re=ct.allowHalf,Wt=Re===void 0?!1:Re,Sn=ct.allowClear,xt=Sn===void 0?!0:Sn,Et=ct.character,Lt=Et===void 0?"\u2605":Et,He=ct.characterRender,Ze=ct.disabled,Ve=ct.direction,gt=Ve===void 0?"ltr":Ve,Dt=ct.tabIndex,Gt=Dt===void 0?0:Dt,Bn=ct.autoFocus,Fn=ct.onHoverChange,tn=ct.onChange,_n=ct.onFocus,Xe=ct.onBlur,vt=ct.onKeyDown,mn=ct.onMouseLeave,Cn=(0,Oe.Z)(ct,oe),St=y(),vn=(0,Te.Z)(St,2),Nn=vn[0],ln=vn[1],ma=ie.useRef(null),Ut=function(){if(!Ze){var xn;(xn=ma.current)===null||xn===void 0||xn.focus()}};ie.useImperativeHandle(yt,function(){return{focus:Ut,blur:function(){if(!Ze){var xn;(xn=ma.current)===null||xn===void 0||xn.blur()}}}});var wt=(0,ye.Z)(It||0,{value:hn}),Un=(0,Te.Z)(wt,2),fa=Un[0],wa=Un[1],la=(0,ye.Z)(null),rr=(0,Te.Z)(la,2),en=rr[0],rn=rr[1],sn=function(xn,qn){var Ma=gt==="rtl",ga=xn+1;if(Wt){var er=Nn(xn),ur=re(er),lo=er.clientWidth;(Ma&&qn-ur>lo/2||!Ma&&qn-ur<lo/2)&&(ga-=.5)}return ga},na=function(xn){wa(xn),tn==null||tn(xn)},Ga=ie.useState(!1),Fr=(0,Te.Z)(Ga,2),_r=Fr[0],or=Fr[1],Rn=function(){or(!0),_n==null||_n()},Ra=function(){or(!1),Xe==null||Xe()},En=ie.useState(null),Mn=(0,Te.Z)(En,2),Vn=Mn[0],Yn=Mn[1],Aa=function(xn,qn){var Ma=sn(qn,xn.pageX);Ma!==en&&(Yn(Ma),rn(null)),Fn==null||Fn(Ma)},Qa=function(xn){Ze||(Yn(null),rn(null),Fn==null||Fn(void 0)),xn&&(mn==null||mn(xn))},Kn=function(xn,qn){var Ma=sn(qn,xn.pageX),ga=!1;xt&&(ga=Ma===fa),Qa(),na(ga?0:Ma),rn(ga?Ma:null)},ht=function(xn){var qn=xn.keyCode,Ma=gt==="rtl",ga=fa;qn===se.Z.RIGHT&&ga<Yt&&!Ma?(Wt?ga+=.5:ga+=1,na(ga),xn.preventDefault()):qn===se.Z.LEFT&&ga>0&&!Ma||qn===se.Z.RIGHT&&ga>0&&Ma?(Wt?ga-=.5:ga-=1,na(ga),xn.preventDefault()):qn===se.Z.LEFT&&ga<Yt&&Ma&&(Wt?ga+=.5:ga+=1,na(ga),xn.preventDefault()),vt==null||vt(xn)};ie.useEffect(function(){Bn&&!Ze&&Ut()},[]);var Rt=new Array(Yt).fill(0).map(function(Kt,xn){return ie.createElement(x,{ref:ln(xn),index:xn,count:Yt,disabled:Ze,prefixCls:"".concat(rt,"-star"),allowHalf:Wt,value:Vn===null?fa:Vn,onClick:Kn,onHover:Aa,key:Kt||xn,character:Lt,characterRender:He,focused:_r})}),Nt=Ae()(rt,jt,($t={},(0,Me.Z)($t,"".concat(rt,"-disabled"),Ze),(0,Me.Z)($t,"".concat(rt,"-rtl"),gt==="rtl"),$t));return ie.createElement("ul",(0,b.Z)({className:Nt,onMouseLeave:Qa,tabIndex:Ze?-1:Gt,onFocus:Ze?null:Rn,onBlur:Ze?null:Ra,onKeyDown:Ze?null:ht,ref:ma,role:"radiogroup"},(0,E.Z)(Cn,{aria:!0,data:!0,attr:!0})),Rt)}var pe=ie.forwardRef(de),ge=pe,xe=ee(53124),we=ee(83062),Se=ee(14747),ve=ee(67968),Qe=ee(45503);const Le=ct=>{const{componentCls:yt}=ct;return{[`${yt}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:ct.marginXS},"> div":{transition:`all ${ct.motionDurationMid}, outline 0s`,"&:hover":{transform:ct.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${ct.lineWidth}px dashed ${ct.starColor}`,transform:ct.starHoverScale}},"&-first, &-second":{color:ct.starBg,transition:`all ${ct.motionDurationMid}`,userSelect:"none",[ct.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${yt}-star-first, &-half ${yt}-star-second`]:{opacity:1},[`&-half ${yt}-star-first, &-full ${yt}-star-second`]:{color:"inherit"}}}},ke=ct=>({[`&-rtl${ct.componentCls}`]:{direction:"rtl"}}),Ce=ct=>{const{componentCls:yt}=ct;return{[yt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Se.Wf)(ct)),{display:"inline-block",margin:0,padding:0,color:ct.starColor,fontSize:ct.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${yt} ${yt}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Le(ct)),{[`+ ${yt}-text`]:{display:"inline-block",marginInlineStart:ct.marginXS,fontSize:ct.fontSize}}),ke(ct))}};var Ke=(0,ve.Z)("Rate",ct=>{const yt=(0,Qe.TS)(ct,{});return[Ce(yt)]},ct=>({starColor:ct.yellow6,starSize:ct.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:ct.colorFillContent})),qe=function(ct,yt){var $t={};for(var an in ct)Object.prototype.hasOwnProperty.call(ct,an)&&yt.indexOf(an)<0&&($t[an]=ct[an]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,an=Object.getOwnPropertySymbols(ct);rt<an.length;rt++)yt.indexOf(an[rt])<0&&Object.prototype.propertyIsEnumerable.call(ct,an[rt])&&($t[an[rt]]=ct[an[rt]]);return $t},Ye=ie.forwardRef((ct,yt)=>{const{prefixCls:$t,className:an,rootClassName:rt,style:jt,tooltips:It,character:hn=ie.createElement(ue,null)}=ct,Mt=qe(ct,["prefixCls","className","rootClassName","style","tooltips","character"]),Yt=(Ze,Ve)=>{let{index:gt}=Ve;return It?ie.createElement(we.Z,{title:It[gt]},Ze):Ze},{getPrefixCls:Re,direction:Wt,rate:Sn}=ie.useContext(xe.E_),xt=Re("rate",$t),[Et,Lt]=Ke(xt),He=Object.assign(Object.assign({},Sn==null?void 0:Sn.style),jt);return Et(ie.createElement(ge,Object.assign({ref:yt,character:hn,characterRender:Yt},Mt,{className:Ae()(an,rt,Lt,Sn==null?void 0:Sn.className),style:He,prefixCls:xt,direction:Wt})))})},46303:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return Lt}});var b=ee(94184),ie=ee.n(b),Be=ee(67294),Fe=ee(53124),Ne=ee(10366),ue=He=>{const{prefixCls:Ze,className:Ve,style:gt,size:Dt,shape:Gt}=He,Bn=ie()({[`${Ze}-lg`]:Dt==="large",[`${Ze}-sm`]:Dt==="small"}),Fn=ie()({[`${Ze}-circle`]:Gt==="circle",[`${Ze}-square`]:Gt==="square",[`${Ze}-round`]:Gt==="round"}),tn=Be.useMemo(()=>typeof Dt=="number"?{width:Dt,height:Dt,lineHeight:`${Dt}px`}:{},[Dt]);return Be.createElement("span",{className:ie()(Ze,Bn,Fn,Ve),style:Object.assign(Object.assign({},tn),gt)})},Ge=ee(45930),Ae=ee(67968),Me=ee(45503);const Te=new Ge.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Oe=He=>({height:He,lineHeight:`${He}px`}),ye=He=>Object.assign({width:He},Oe(He)),se=He=>({background:He.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Te,animationDuration:He.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),E=He=>Object.assign({width:He*5,minWidth:He*5},Oe(He)),a=He=>{const{skeletonAvatarCls:Ze,gradientFromColor:Ve,controlHeight:gt,controlHeightLG:Dt,controlHeightSM:Gt}=He;return{[`${Ze}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ve},ye(gt)),[`${Ze}${Ze}-circle`]:{borderRadius:"50%"},[`${Ze}${Ze}-lg`]:Object.assign({},ye(Dt)),[`${Ze}${Ze}-sm`]:Object.assign({},ye(Gt))}},x=He=>{const{controlHeight:Ze,borderRadiusSM:Ve,skeletonInputCls:gt,controlHeightLG:Dt,controlHeightSM:Gt,gradientFromColor:Bn}=He;return{[`${gt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Bn,borderRadius:Ve},E(Ze)),[`${gt}-lg`]:Object.assign({},E(Dt)),[`${gt}-sm`]:Object.assign({},E(Gt))}},y=He=>Object.assign({width:He},Oe(He)),z=He=>{const{skeletonImageCls:Ze,imageSizeBase:Ve,gradientFromColor:gt,borderRadiusSM:Dt}=He;return{[`${Ze}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:gt,borderRadius:Dt},y(Ve*2)),{[`${Ze}-path`]:{fill:"#bfbfbf"},[`${Ze}-svg`]:Object.assign(Object.assign({},y(Ve)),{maxWidth:Ve*4,maxHeight:Ve*4}),[`${Ze}-svg${Ze}-svg-circle`]:{borderRadius:"50%"}}),[`${Ze}${Ze}-circle`]:{borderRadius:"50%"}}},te=(He,Ze,Ve)=>{const{skeletonButtonCls:gt}=He;return{[`${Ve}${gt}-circle`]:{width:Ze,minWidth:Ze,borderRadius:"50%"},[`${Ve}${gt}-round`]:{borderRadius:Ze}}},re=He=>Object.assign({width:He*2,minWidth:He*2},Oe(He)),oe=He=>{const{borderRadiusSM:Ze,skeletonButtonCls:Ve,controlHeight:gt,controlHeightLG:Dt,controlHeightSM:Gt,gradientFromColor:Bn}=He;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Ve}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Bn,borderRadius:Ze,width:gt*2,minWidth:gt*2},re(gt))},te(He,gt,Ve)),{[`${Ve}-lg`]:Object.assign({},re(Dt))}),te(He,Dt,`${Ve}-lg`)),{[`${Ve}-sm`]:Object.assign({},re(Gt))}),te(He,Gt,`${Ve}-sm`))},de=He=>{const{componentCls:Ze,skeletonAvatarCls:Ve,skeletonTitleCls:gt,skeletonParagraphCls:Dt,skeletonButtonCls:Gt,skeletonInputCls:Bn,skeletonImageCls:Fn,controlHeight:tn,controlHeightLG:_n,controlHeightSM:Xe,gradientFromColor:vt,padding:mn,marginSM:Cn,borderRadius:St,titleHeight:vn,blockRadius:Nn,paragraphLiHeight:ln,controlHeightXS:ma,paragraphMarginTop:Ut}=He;return{[`${Ze}`]:{display:"table",width:"100%",[`${Ze}-header`]:{display:"table-cell",paddingInlineEnd:mn,verticalAlign:"top",[`${Ve}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:vt},ye(tn)),[`${Ve}-circle`]:{borderRadius:"50%"},[`${Ve}-lg`]:Object.assign({},ye(_n)),[`${Ve}-sm`]:Object.assign({},ye(Xe))},[`${Ze}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${gt}`]:{width:"100%",height:vn,background:vt,borderRadius:Nn,[`+ ${Dt}`]:{marginBlockStart:Xe}},[`${Dt}`]:{padding:0,"> li":{width:"100%",height:ln,listStyle:"none",background:vt,borderRadius:Nn,"+ li":{marginBlockStart:ma}}},[`${Dt}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Ze}-content`]:{[`${gt}, ${Dt} > li`]:{borderRadius:St}}},[`${Ze}-with-avatar ${Ze}-content`]:{[`${gt}`]:{marginBlockStart:Cn,[`+ ${Dt}`]:{marginBlockStart:Ut}}},[`${Ze}${Ze}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},oe(He)),a(He)),x(He)),z(He)),[`${Ze}${Ze}-block`]:{width:"100%",[`${Gt}`]:{width:"100%"},[`${Bn}`]:{width:"100%"}},[`${Ze}${Ze}-active`]:{[`
|
|
${gt},
|
|
${Dt} > li,
|
|
${Ve},
|
|
${Gt},
|
|
${Bn},
|
|
${Fn}
|
|
`]:Object.assign({},se(He))}}};var pe=(0,Ae.Z)("Skeleton",He=>{const{componentCls:Ze}=He,Ve=(0,Me.TS)(He,{skeletonAvatarCls:`${Ze}-avatar`,skeletonTitleCls:`${Ze}-title`,skeletonParagraphCls:`${Ze}-paragraph`,skeletonButtonCls:`${Ze}-button`,skeletonInputCls:`${Ze}-input`,skeletonImageCls:`${Ze}-image`,imageSizeBase:He.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${He.gradientFromColor} 25%, ${He.gradientToColor} 37%, ${He.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[de(Ve)]},He=>{const{colorFillContent:Ze,colorFill:Ve}=He,gt=Ze,Dt=Ve;return{color:gt,colorGradientEnd:Dt,gradientFromColor:gt,gradientToColor:Dt,titleHeight:He.controlHeight/2,blockRadius:He.borderRadiusSM,paragraphMarginTop:He.marginLG+He.marginXXS,paragraphLiHeight:He.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),xe=He=>{const{prefixCls:Ze,className:Ve,rootClassName:gt,active:Dt,shape:Gt="circle",size:Bn="default"}=He,{getPrefixCls:Fn}=Be.useContext(Fe.E_),tn=Fn("skeleton",Ze),[_n,Xe]=pe(tn),vt=(0,Ne.Z)(He,["prefixCls","className"]),mn=ie()(tn,`${tn}-element`,{[`${tn}-active`]:Dt},Ve,gt,Xe);return _n(Be.createElement("div",{className:mn},Be.createElement(ue,Object.assign({prefixCls:`${tn}-avatar`,shape:Gt,size:Bn},vt))))},Se=He=>{const{prefixCls:Ze,className:Ve,rootClassName:gt,active:Dt,block:Gt=!1,size:Bn="default"}=He,{getPrefixCls:Fn}=Be.useContext(Fe.E_),tn=Fn("skeleton",Ze),[_n,Xe]=pe(tn),vt=(0,Ne.Z)(He,["prefixCls"]),mn=ie()(tn,`${tn}-element`,{[`${tn}-active`]:Dt,[`${tn}-block`]:Gt},Ve,gt,Xe);return _n(Be.createElement("div",{className:mn},Be.createElement(ue,Object.assign({prefixCls:`${tn}-button`,size:Bn},vt))))};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 Le=He=>{const{prefixCls:Ze,className:Ve,rootClassName:gt,style:Dt,active:Gt}=He,{getPrefixCls:Bn}=Be.useContext(Fe.E_),Fn=Bn("skeleton",Ze),[tn,_n]=pe(Fn),Xe=ie()(Fn,`${Fn}-element`,{[`${Fn}-active`]:Gt},Ve,gt,_n);return tn(Be.createElement("div",{className:Xe},Be.createElement("div",{className:ie()(`${Fn}-image`,Ve),style:Dt},Be.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Fn}-image-svg`},Be.createElement("path",{d:ve,className:`${Fn}-image-path`})))))},Ce=He=>{const{prefixCls:Ze,className:Ve,rootClassName:gt,active:Dt,block:Gt,size:Bn="default"}=He,{getPrefixCls:Fn}=Be.useContext(Fe.E_),tn=Fn("skeleton",Ze),[_n,Xe]=pe(tn),vt=(0,Ne.Z)(He,["prefixCls"]),mn=ie()(tn,`${tn}-element`,{[`${tn}-active`]:Dt,[`${tn}-block`]:Gt},Ve,gt,Xe);return _n(Be.createElement("div",{className:mn},Be.createElement(ue,Object.assign({prefixCls:`${tn}-input`,size:Bn},vt))))},Ke=ee(87462),qe={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"},Ue=qe,Ye=ee(74643),ct=function(Ze,Ve){return Be.createElement(Ye.Z,(0,Ke.Z)({},Ze,{ref:Ve,icon:Ue}))},yt=Be.forwardRef(ct),an=He=>{const{prefixCls:Ze,className:Ve,rootClassName:gt,style:Dt,active:Gt,children:Bn}=He,{getPrefixCls:Fn}=Be.useContext(Fe.E_),tn=Fn("skeleton",Ze),[_n,Xe]=pe(tn),vt=ie()(tn,`${tn}-element`,{[`${tn}-active`]:Gt},Xe,Ve,gt),mn=Bn!=null?Bn:Be.createElement(yt,null);return _n(Be.createElement("div",{className:vt},Be.createElement("div",{className:ie()(`${tn}-image`,Ve),style:Dt},mn)))},rt=ee(74902),It=He=>{const Ze=Fn=>{const{width:tn,rows:_n=2}=He;if(Array.isArray(tn))return tn[Fn];if(_n-1===Fn)return tn},{prefixCls:Ve,className:gt,style:Dt,rows:Gt}=He,Bn=(0,rt.Z)(Array(Gt)).map((Fn,tn)=>Be.createElement("li",{key:tn,style:{width:Ze(tn)}}));return Be.createElement("ul",{className:ie()(Ve,gt),style:Dt},Bn)},Mt=He=>{let{prefixCls:Ze,className:Ve,width:gt,style:Dt}=He;return Be.createElement("h3",{className:ie()(Ze,Ve),style:Object.assign({width:gt},Dt)})};function Yt(He){return He&&typeof He=="object"?He:{}}function Re(He,Ze){return He&&!Ze?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Wt(He,Ze){return!He&&Ze?{width:"38%"}:He&&Ze?{width:"50%"}:{}}function Sn(He,Ze){const Ve={};return(!He||!Ze)&&(Ve.width="61%"),!He&&Ze?Ve.rows=3:Ve.rows=2,Ve}const xt=He=>{const{prefixCls:Ze,loading:Ve,className:gt,rootClassName:Dt,style:Gt,children:Bn,avatar:Fn=!1,title:tn=!0,paragraph:_n=!0,active:Xe,round:vt}=He,{getPrefixCls:mn,direction:Cn,skeleton:St}=Be.useContext(Fe.E_),vn=mn("skeleton",Ze),[Nn,ln]=pe(vn);if(Ve||!("loading"in He)){const ma=!!Fn,Ut=!!tn,wt=!!_n;let Un;if(ma){const la=Object.assign(Object.assign({prefixCls:`${vn}-avatar`},Re(Ut,wt)),Yt(Fn));Un=Be.createElement("div",{className:`${vn}-header`},Be.createElement(ue,Object.assign({},la)))}let fa;if(Ut||wt){let la;if(Ut){const en=Object.assign(Object.assign({prefixCls:`${vn}-title`},Wt(ma,wt)),Yt(tn));la=Be.createElement(Mt,Object.assign({},en))}let rr;if(wt){const en=Object.assign(Object.assign({prefixCls:`${vn}-paragraph`},Sn(ma,Ut)),Yt(_n));rr=Be.createElement(It,Object.assign({},en))}fa=Be.createElement("div",{className:`${vn}-content`},la,rr)}const wa=ie()(vn,{[`${vn}-with-avatar`]:ma,[`${vn}-active`]:Xe,[`${vn}-rtl`]:Cn==="rtl",[`${vn}-round`]:vt},St==null?void 0:St.className,gt,Dt,ln);return Nn(Be.createElement("div",{className:wa,style:Object.assign(Object.assign({},St==null?void 0:St.style),Gt)},Un,fa))}return typeof Bn!="undefined"?Bn:null};xt.Button=Se,xt.Avatar=xe,xt.Input=Ce,xt.Image=Le,xt.Node=an;var Et=xt,Lt=Et},55054:function(Bt,Ct,ee){"use strict";ee.d(Ct,{default:function(){return pe}});var b=ee(67294),ie=ee(57838),Be=ee(96159),Fe=ee(94184),Ne=ee.n(Fe),je=ee(53124),ue=ee(46303),Ae=ge=>{const{value:xe,formatter:we,precision:Se,decimalSeparator:ve,groupSeparator:Qe="",prefixCls:Le}=ge;let ke;if(typeof we=="function")ke=we(xe);else{const Ce=String(xe),Ke=Ce.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Ke||Ce==="-")ke=Ce;else{const qe=Ke[1];let Ue=Ke[2]||"0",Ye=Ke[4]||"";Ue=Ue.replace(/\B(?=(\d{3})+(?!\d))/g,Qe),typeof Se=="number"&&(Ye=Ye.padEnd(Se,"0").slice(0,Se>0?Se:0)),Ye&&(Ye=`${ve}${Ye}`),ke=[b.createElement("span",{key:"int",className:`${Le}-content-value-int`},qe,Ue),Ye&&b.createElement("span",{key:"decimal",className:`${Le}-content-value-decimal`},Ye)]}}return b.createElement("span",{className:`${Le}-content-value`},ke)},Me=ee(14747),Te=ee(67968),Oe=ee(45503);const ye=ge=>{const{componentCls:xe,marginXXS:we,padding:Se,colorTextDescription:ve,titleFontSize:Qe,colorTextHeading:Le,contentFontSize:ke,fontFamily:Ce}=ge;return{[`${xe}`]:Object.assign(Object.assign({},(0,Me.Wf)(ge)),{[`${xe}-title`]:{marginBottom:we,color:ve,fontSize:Qe},[`${xe}-skeleton`]:{paddingTop:Se},[`${xe}-content`]:{color:Le,fontSize:ke,fontFamily:Ce,[`${xe}-content-value`]:{display:"inline-block",direction:"ltr"},[`${xe}-content-prefix, ${xe}-content-suffix`]:{display:"inline-block"},[`${xe}-content-prefix`]:{marginInlineEnd:we},[`${xe}-content-suffix`]:{marginInlineStart:we}}})}};var se=(0,Te.Z)("Statistic",ge=>{const xe=(0,Oe.TS)(ge,{});return[ye(xe)]},ge=>{const{fontSizeHeading3:xe,fontSize:we}=ge;return{titleFontSize:we,contentFontSize:xe}}),a=ge=>{const{prefixCls:xe,className:we,rootClassName:Se,style:ve,valueStyle:Qe,value:Le=0,title:ke,valueRender:Ce,prefix:Ke,suffix:qe,loading:Ue=!1,onMouseEnter:Ye,onMouseLeave:ct,decimalSeparator:yt=".",groupSeparator:$t=","}=ge,{getPrefixCls:an,direction:rt,statistic:jt}=b.useContext(je.E_),It=an("statistic",xe),[hn,Mt]=se(It),Yt=b.createElement(Ae,Object.assign({decimalSeparator:yt,groupSeparator:$t,prefixCls:It},ge,{value:Le})),Re=Ne()(It,{[`${It}-rtl`]:rt==="rtl"},jt==null?void 0:jt.className,we,Se,Mt);return hn(b.createElement("div",{className:Re,style:Object.assign(Object.assign({},jt==null?void 0:jt.style),ve),onMouseEnter:Ye,onMouseLeave:ct},ke&&b.createElement("div",{className:`${It}-title`},ke),b.createElement(ue.Z,{paragraph:!1,loading:Ue,className:`${It}-skeleton`},b.createElement("div",{style:Qe,className:`${It}-content`},Ke&&b.createElement("span",{className:`${It}-content-prefix`},Ke),Ce?Ce(Yt):Yt,qe&&b.createElement("span",{className:`${It}-content-suffix`},qe)))))};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,xe){let we=ge;const Se=/\[[^\]]*]/g,ve=(xe.match(Se)||[]).map(Ce=>Ce.slice(1,-1)),Qe=xe.replace(Se,"[]"),Le=x.reduce((Ce,Ke)=>{let[qe,Ue]=Ke;if(Ce.includes(qe)){const Ye=Math.floor(we/Ue);return we-=Ye*Ue,Ce.replace(new RegExp(`${qe}+`,"g"),ct=>{const yt=ct.length;return Ye.toString().padStart(yt,"0")})}return Ce},Qe);let ke=0;return Le.replace(Se,()=>{const Ce=ve[ke];return ke+=1,Ce})}function z(ge,xe){const{format:we=""}=xe,Se=new Date(ge).getTime(),ve=Date.now(),Qe=Math.max(Se-ve,0);return y(Qe,we)}const te=1e3/30;function re(ge){return new Date(ge).getTime()}const oe=ge=>{const{value:xe,format:we="HH:mm:ss",onChange:Se,onFinish:ve}=ge,Qe=(0,ie.Z)(),Le=b.useRef(null),ke=()=>{ve==null||ve(),Le.current&&(clearInterval(Le.current),Le.current=null)},Ce=()=>{const Ue=re(xe);Ue>=Date.now()&&(Le.current=setInterval(()=>{Qe(),Se==null||Se(Ue-Date.now()),Ue<Date.now()&&ke()},te))};b.useEffect(()=>(Ce(),()=>{Le.current&&(clearInterval(Le.current),Le.current=null)}),[xe]);const Ke=(Ue,Ye)=>z(Ue,Object.assign(Object.assign({},Ye),{format:we})),qe=Ue=>(0,Be.Tm)(Ue,{title:void 0});return b.createElement(a,Object.assign({},ge,{valueRender:qe,formatter:Ke}))};var de=b.memo(oe);a.Countdown=de;var pe=a},49867:function(Bt,Ct,ee){"use strict";ee.d(Ct,{N:function(){return b}});const b=ie=>({color:ie.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${ie.motionDurationSlow}`,"&:focus, &:hover":{color:ie.colorLinkHover},"&:active":{color:ie.colorLinkActive}})},9430:function(Bt,Ct,ee){"use strict";ee.d(Ct,{default:function(){return Ou}});var b={},ie="rc-table-internal-hook",Be=ee(97685),Fe=ee(66680),Ne=ee(8410),je=ee(91881),ue=ee(67294),Ge=ee(73935);function Ae(ce){var fe=ue.createContext(void 0),De=function(tt){var nt=tt.value,bt=tt.children,zt=ue.useRef(nt);zt.current=nt;var Ot=ue.useState(function(){return{getValue:function(){return zt.current},listeners:new Set}}),Qt=(0,Be.Z)(Ot,1),fn=Qt[0];return(0,Ne.Z)(function(){(0,Ge.unstable_batchedUpdates)(function(){fn.listeners.forEach(function(Jt){Jt(nt)})})},[nt]),ue.createElement(fe.Provider,{value:fn},bt)};return{Context:fe,Provider:De,defaultValue:ce}}function Me(ce,fe){var De=(0,Fe.Z)(typeof fe=="function"?fe:function(Jt){if(fe===void 0)return Jt;if(!Array.isArray(fe))return Jt[fe];var Hn={};return fe.forEach(function(zn){Hn[zn]=Jt[zn]}),Hn}),ze=ue.useContext(ce==null?void 0:ce.Context),tt=ze||{},nt=tt.listeners,bt=tt.getValue,zt=ue.useRef();zt.current=De(ze?bt():ce==null?void 0:ce.defaultValue);var Ot=ue.useState({}),Qt=(0,Be.Z)(Ot,2),fn=Qt[1];return(0,Ne.Z)(function(){if(!ze)return;function Jt(Hn){var zn=De(Hn);(0,je.Z)(zt.current,zn,!0)||fn({})}return nt.add(Jt),function(){nt.delete(Jt)}},[ze]),zt.current}var Te=ee(87462),Oe=ee(42550);function ye(){var ce=ue.createContext(null);function fe(){return ue.useContext(ce)}function De(tt,nt){var bt=(0,Oe.Yr)(tt),zt=function(Qt,fn){var Jt=bt?{ref:fn}:{},Hn=ue.useRef(0),zn=ue.useRef(Qt),Qn=fe();return Qn!==null?ue.createElement(tt,(0,Te.Z)({},Qt,Jt)):((!nt||nt(zn.current,Qt))&&(Hn.current+=1),zn.current=Qt,ue.createElement(ce.Provider,{value:Hn.current},ue.createElement(tt,(0,Te.Z)({},Qt,Jt))))};return bt?ue.forwardRef(zt):zt}function ze(tt,nt){var bt=(0,Oe.Yr)(tt),zt=function(Qt,fn){var Jt=bt?{ref:fn}:{};return fe(),ue.createElement(tt,(0,Te.Z)({},Qt,Jt))};return bt?ue.memo(ue.forwardRef(zt),nt):ue.memo(zt,nt)}return{makeImmutable:De,responseImmutable:ze,useImmutableMark:fe}}var se=ye(),E=se.makeImmutable,a=se.responseImmutable,x=se.useImmutableMark,y=ye(),z=y.makeImmutable,te=y.responseImmutable,re=y.useImmutableMark,oe=Ae(),de=oe;function pe(ce,fe){var De=ue.useRef(0);De.current+=1;var ze=ue.useRef(ce),tt=[];Object.keys(ce||{}).map(function(bt){var zt;(ce==null?void 0:ce[bt])!==((zt=ze.current)===null||zt===void 0?void 0:zt[bt])&&tt.push(bt)}),ze.current=ce;var nt=ue.useRef([]);return tt.length&&(nt.current=tt),ue.useDebugValue(De.current),ue.useDebugValue(nt.current.join(", ")),fe&&console.log("".concat(fe,":"),De.current,nt.current),De.current}var ge=null,xe=ue.memo(function(){var ce=pe();return ue.createElement("h1",null,"Render Times: ",ce)});xe.displayName="RenderBlock";var we=ee(71002),Se=ee(1413),ve=ee(4942),Qe=ee(94184),Le=ee.n(Qe);function ke(ce,fe,De){var ze=ue.useRef({});return(!("value"in ze.current)||De(ze.current.condition,fe))&&(ze.current.value=ce(),ze.current.condition=fe),ze.current.value}var Ce={},Ke=[],qe=function(fe){Ke.push(fe)};function Ue(ce,fe){if(0)var De}function Ye(ce,fe){if(0)var De}function ct(){Ce={}}function yt(ce,fe,De){!fe&&!Ce[De]&&(ce(!1,De),Ce[De]=!0)}function $t(ce,fe){yt(Ue,ce,fe)}function an(ce,fe){yt(Ye,ce,fe)}$t.preMessage=qe,$t.resetWarned=ct,$t.noteOnce=an;var rt=$t;function jt(ce,fe){var De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ze=new Set;function tt(nt,bt){var zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Ot=ze.has(nt);if(rt(!Ot,"Warning: There may be circular references"),Ot)return!1;if(nt===bt)return!0;if(De&&zt>1)return!1;ze.add(nt);var Qt=zt+1;if(Array.isArray(nt)){if(!Array.isArray(bt)||nt.length!==bt.length)return!1;for(var fn=0;fn<nt.length;fn++)if(!tt(nt[fn],bt[fn],Qt))return!1;return!0}if(nt&&bt&&(0,we.Z)(nt)==="object"&&(0,we.Z)(bt)==="object"){var Jt=Object.keys(nt);return Jt.length!==Object.keys(bt).length?!1:Jt.every(function(Hn){return tt(nt[Hn],bt[Hn],Qt)})}return!1}return tt(ce,fe)}var It=jt;function hn(ce,fe){for(var De=ce,ze=0;ze<fe.length;ze+=1){if(De==null)return;De=De[fe[ze]]}return De}var Mt=ue.createContext({renderWithProps:!1}),Yt=Mt,Re="RC_TABLE_KEY";function Wt(ce){return ce==null?[]:Array.isArray(ce)?ce:[ce]}function Sn(ce){var fe=[],De={};return ce.forEach(function(ze){for(var tt=ze||{},nt=tt.key,bt=tt.dataIndex,zt=nt||Wt(bt).join("-")||Re;De[zt];)zt="".concat(zt,"_next");De[zt]=!0,fe.push(zt)}),fe}function xt(ce){return ce!=null}function Et(ce){return ce&&(0,we.Z)(ce)==="object"&&!Array.isArray(ce)&&!ue.isValidElement(ce)}function Lt(ce,fe,De,ze,tt,nt){var bt=ue.useContext(Yt),zt=re(),Ot=ke(function(){if(xt(ze))return[ze];var Qt=fe==null||fe===""?[]:Array.isArray(fe)?fe:[fe],fn=hn(ce,Qt),Jt=fn,Hn=void 0;if(tt){var zn=tt(fn,ce,De);Et(zn)?(Jt=zn.children,Hn=zn.props,bt.renderWithProps=!0):Jt=zn}return[Jt,Hn]},[zt,ce,ze,fe,tt,De],function(Qt,fn){if(nt){var Jt=(0,Be.Z)(Qt,2),Hn=Jt[1],zn=(0,Be.Z)(fn,2),Qn=zn[1];return nt(Qn,Hn)}return bt.renderWithProps?!0:!It(Qt,fn,!0)});return Ot}function He(ce,fe,De,ze){var tt=ce+fe-1;return ce<=ze&&tt>=De}function Ze(ce,fe){return Me(de,function(De){var ze=He(ce,fe||1,De.hoverStartRow,De.hoverEndRow);return[ze,De.onHover]})}var Ve=function(fe){var De=fe.ellipsis,ze=fe.rowType,tt=fe.children,nt,bt=De===!0?{showTitle:!0}:De;return bt&&(bt.showTitle||ze==="header")&&(typeof tt=="string"||typeof tt=="number"?nt=tt.toString():ue.isValidElement(tt)&&typeof tt.props.children=="string"&&(nt=tt.props.children)),nt};function gt(ce){var fe,De,ze,tt,nt,bt,zt,Ot,Qt=ce.component,fn=ce.children,Jt=ce.ellipsis,Hn=ce.scope,zn=ce.prefixCls,Qn=ce.className,za=ce.align,Da=ce.record,ja=ce.render,Na=ce.dataIndex,qa=ce.renderIndex,Tr=ce.shouldCellUpdate,hr=ce.index,Pr=ce.rowType,So=ce.colSpan,No=ce.rowSpan,cr=ce.fixLeft,ba=ce.fixRight,sa=ce.firstFixLeft,La=ce.lastFixLeft,tr=ce.firstFixRight,Sr=ce.lastFixRight,io=ce.appendNode,Jr=ce.additionalProps,Hr=Jr===void 0?{}:Jr,Io=ce.isSticky,Go="".concat(zn,"-cell"),ri=Me(de,["supportSticky","allColumnsFixedLeft"]),oi=ri.supportSticky,el=ri.allColumnsFixedLeft,Ui=Lt(Da,Na,qa,fn,ja,Tr),_o=(0,Be.Z)(Ui,2),fl=_o[0],ui=_o[1],Vi={},ji=typeof cr=="number"&&oi,nu=typeof ba=="number"&&oi;ji&&(Vi.position="sticky",Vi.left=cr),nu&&(Vi.position="sticky",Vi.right=ba);var po=(fe=(De=(ze=ui==null?void 0:ui.colSpan)!==null&&ze!==void 0?ze:Hr.colSpan)!==null&&De!==void 0?De:So)!==null&&fe!==void 0?fe:1,no=(tt=(nt=(bt=ui==null?void 0:ui.rowSpan)!==null&&bt!==void 0?bt:Hr.rowSpan)!==null&&nt!==void 0?nt:No)!==null&&tt!==void 0?tt:1,ao=Ze(hr,no),Vr=(0,Be.Z)(ao,2),pi=Vr[0],kr=Vr[1],Mo=function(pl){var su;Da&&kr(hr,hr+no-1),Hr==null||(su=Hr.onMouseEnter)===null||su===void 0||su.call(Hr,pl)},ii=function(pl){var su;Da&&kr(-1,-1),Hr==null||(su=Hr.onMouseLeave)===null||su===void 0||su.call(Hr,pl)};if(po===0||no===0)return null;var li=(zt=Hr.title)!==null&&zt!==void 0?zt:Ve({rowType:Pr,ellipsis:Jt,children:fl}),Vl=Le()(Go,Qn,(Ot={},(0,ve.Z)(Ot,"".concat(Go,"-fix-left"),ji&&oi),(0,ve.Z)(Ot,"".concat(Go,"-fix-left-first"),sa&&oi),(0,ve.Z)(Ot,"".concat(Go,"-fix-left-last"),La&&oi),(0,ve.Z)(Ot,"".concat(Go,"-fix-left-all"),La&&el&&oi),(0,ve.Z)(Ot,"".concat(Go,"-fix-right"),nu&&oi),(0,ve.Z)(Ot,"".concat(Go,"-fix-right-first"),tr&&oi),(0,ve.Z)(Ot,"".concat(Go,"-fix-right-last"),Sr&&oi),(0,ve.Z)(Ot,"".concat(Go,"-ellipsis"),Jt),(0,ve.Z)(Ot,"".concat(Go,"-with-append"),io),(0,ve.Z)(Ot,"".concat(Go,"-fix-sticky"),(ji||nu)&&Io&&oi),(0,ve.Z)(Ot,"".concat(Go,"-row-hover"),!ui&&pi),Ot),Hr.className,ui==null?void 0:ui.className),_l={};za&&(_l.textAlign=za);var Pu=(0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)({},Vi),Hr.style),_l),ui==null?void 0:ui.style),sl=fl;return(0,we.Z)(sl)==="object"&&!Array.isArray(sl)&&!ue.isValidElement(sl)&&(sl=null),Jt&&(La||tr)&&(sl=ue.createElement("span",{className:"".concat(Go,"-content")},sl)),ue.createElement(Qt,(0,Te.Z)({},ui,Hr,{className:Vl,style:Pu,title:li,scope:Hn,onMouseEnter:Mo,onMouseLeave:ii,colSpan:po!==1?po:null,rowSpan:no!==1?no:null}),io,sl)}var Dt=ue.memo(gt);function Gt(ce,fe,De,ze,tt,nt){var bt=De[ce]||{},zt=De[fe]||{},Ot,Qt;bt.fixed==="left"?Ot=ze.left[tt==="rtl"?fe:ce]:zt.fixed==="right"&&(Qt=ze.right[tt==="rtl"?ce:fe]);var fn=!1,Jt=!1,Hn=!1,zn=!1,Qn=De[fe+1],za=De[ce-1],Da=!(nt!=null&&nt.children);if(tt==="rtl"){if(Ot!==void 0){var ja=za&&za.fixed==="left";zn=!ja&&Da}else if(Qt!==void 0){var Na=Qn&&Qn.fixed==="right";Hn=!Na&&Da}}else if(Ot!==void 0){var qa=Qn&&Qn.fixed==="left";fn=!qa&&Da}else if(Qt!==void 0){var Tr=za&&za.fixed==="right";Jt=!Tr&&Da}return{fixLeft:Ot,fixRight:Qt,lastFixLeft:fn,firstFixRight:Jt,lastFixRight:Hn,firstFixLeft:zn,isSticky:ze.isSticky}}var Bn=ue.createContext({}),Fn=Bn;function tn(ce){var fe=ce.className,De=ce.index,ze=ce.children,tt=ce.colSpan,nt=tt===void 0?1:tt,bt=ce.rowSpan,zt=ce.align,Ot=Me(de,["prefixCls","direction"]),Qt=Ot.prefixCls,fn=Ot.direction,Jt=ue.useContext(Fn),Hn=Jt.scrollColumnIndex,zn=Jt.stickyOffsets,Qn=Jt.flattenColumns,za=Jt.columns,Da=De+nt-1,ja=Da+1===Hn?nt+1:nt,Na=Gt(De,De+ja-1,Qn,zn,fn,za==null?void 0:za[De]);return ue.createElement(Dt,(0,Te.Z)({className:fe,index:De,component:"td",prefixCls:Qt,record:null,dataIndex:null,align:zt,colSpan:ja,rowSpan:bt,render:function(){return ze}},Na))}var _n=ee(45987),Xe=["children"];function vt(ce){var fe=ce.children,De=(0,_n.Z)(ce,Xe);return ue.createElement("tr",De,fe)}function mn(ce){var fe=ce.children;return fe}mn.Row=vt,mn.Cell=tn;var Cn=mn;function St(ce){var fe=ce.children,De=ce.stickyOffsets,ze=ce.flattenColumns,tt=ce.columns,nt=Me(de,"prefixCls"),bt=ze.length-1,zt=ze[bt],Ot=ue.useMemo(function(){return{stickyOffsets:De,flattenColumns:ze,scrollColumnIndex:zt!=null&&zt.scrollbar?bt:null,columns:tt}},[zt,ze,bt,De,tt]);return ue.createElement(Fn.Provider,{value:Ot},ue.createElement("tfoot",{className:"".concat(nt,"-summary")},fe))}var vn=te(St),Nn=Cn;function ln(ce){var fe=ue.useRef();fe.current=ce;var De=ue.useCallback(function(){for(var ze,tt=arguments.length,nt=new Array(tt),bt=0;bt<tt;bt++)nt[bt]=arguments[bt];return(ze=fe.current)===null||ze===void 0?void 0:ze.call.apply(ze,[fe].concat(nt))},[]);return De}function ma(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ut=ma()?ue.useLayoutEffect:ue.useEffect,wt=function(fe,De){var ze=React.useRef(!0);Ut(function(){return fe(ze.current)},De),Ut(function(){return ze.current=!1,function(){ze.current=!0}},[])},Un=function(fe,De){wt(function(ze){if(!ze)return fe()},De)},fa=null;function wa(ce){var fe=React.useRef(!1),De=React.useState(ce),ze=_slicedToArray(De,2),tt=ze[0],nt=ze[1];React.useEffect(function(){return fe.current=!1,function(){fe.current=!0}},[]);function bt(zt,Ot){Ot&&fe.current||nt(zt)}return[tt,bt]}function la(ce){return ce!==void 0}function rr(ce,fe){var De=fe||{},ze=De.defaultValue,tt=De.value,nt=De.onChange,bt=De.postState,zt=useState(function(){return la(tt)?tt:la(ze)?typeof ze=="function"?ze():ze:typeof ce=="function"?ce():ce}),Ot=_slicedToArray(zt,2),Qt=Ot[0],fn=Ot[1],Jt=tt!==void 0?tt:Qt,Hn=bt?bt(Jt):Jt,zn=useEvent(nt),Qn=useState([Jt]),za=_slicedToArray(Qn,2),Da=za[0],ja=za[1];useLayoutUpdateEffect(function(){var qa=Da[0];Qt!==qa&&zn(Qt,qa)},[Da]),useLayoutUpdateEffect(function(){la(tt)||fn(tt)},[tt]);var Na=useEvent(function(qa,Tr){fn(qa,Tr),ja([Jt],Tr)});return[Hn,Na]}var en=ee(35110);function rn(ce,fe){typeof ce=="function"?ce(fe):(0,we.Z)(ce)==="object"&&ce&&"current"in ce&&(ce.current=fe)}function sn(){for(var ce=arguments.length,fe=new Array(ce),De=0;De<ce;De++)fe[De]=arguments[De];var ze=fe.filter(function(tt){return tt});return ze.length<=1?ze[0]:function(tt){fe.forEach(function(nt){rn(nt,tt)})}}function na(){for(var ce=arguments.length,fe=new Array(ce),De=0;De<ce;De++)fe[De]=arguments[De];return useMemo(function(){return sn.apply(void 0,fe)},fe,function(ze,tt){return ze.length!==tt.length||ze.every(function(nt,bt){return nt!==tt[bt]})})}function Ga(ce){var fe,De,ze=isMemo(ce)?ce.type.type:ce.type;return!(typeof ze=="function"&&!((fe=ze.prototype)!==null&&fe!==void 0&&fe.render)||typeof ce=="function"&&!((De=ce.prototype)!==null&&De!==void 0&&De.render))}function Fr(ce){return!isValidElement(ce)||isFragment(ce)?!1:Ga(ce)}function _r(ce,fe,De,ze){if(!fe.length)return De;var tt=_toArray(fe),nt=tt[0],bt=tt.slice(1),zt;return!ce&&typeof nt=="number"?zt=[]:Array.isArray(ce)?zt=_toConsumableArray(ce):zt=_objectSpread({},ce),ze&&De===void 0&&bt.length===1?delete zt[nt][bt[0]]:zt[nt]=_r(zt[nt],bt,De,ze),zt}function or(ce,fe,De){var ze=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return fe.length&&ze&&De===void 0&&!get(ce,fe.slice(0,-1))?ce:_r(ce,fe,De,ze)}function Rn(ce){return _typeof(ce)==="object"&&ce!==null&&Object.getPrototypeOf(ce)===Object.prototype}function Ra(ce){return Array.isArray(ce)?[]:{}}var En=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Mn(){for(var ce=arguments.length,fe=new Array(ce),De=0;De<ce;De++)fe[De]=arguments[De];var ze=Ra(fe[0]);return fe.forEach(function(tt){function nt(bt,zt){var Ot=new Set(zt),Qt=get(tt,bt),fn=Array.isArray(Qt);if(fn||Rn(Qt)){if(!Ot.has(Qt)){Ot.add(Qt);var Jt=get(ze,bt);fn?ze=or(ze,bt,[]):(!Jt||_typeof(Jt)!=="object")&&(ze=or(ze,bt,Ra(Qt))),En(Qt).forEach(function(Hn){nt([].concat(_toConsumableArray(bt),[Hn]),Ot)})}}else ze=or(ze,bt,Qt)}nt([])}),ze}var Vn=ee(48555),Yn=function(ce){if(!ce)return!1;if(ce instanceof Element){if(ce.offsetParent)return!0;if(ce.getBBox){var fe=ce.getBBox(),De=fe.width,ze=fe.height;if(De||ze)return!0}if(ce.getBoundingClientRect){var tt=ce.getBoundingClientRect(),nt=tt.width,bt=tt.height;if(nt||bt)return!0}}return!1},Aa=function(fe){if(ma()&&window.document.documentElement){var De=Array.isArray(fe)?fe:[fe],ze=window.document.documentElement;return De.some(function(tt){return tt in ze.style})}return!1},Qa=function(fe,De){if(!Aa(fe))return!1;var ze=document.createElement("div"),tt=ze.style[fe];return ze.style[fe]=De,ze.style[fe]!==tt};function Kn(ce,fe){return!Array.isArray(ce)&&fe!==void 0?Qa(ce,fe):Aa(ce)}var ht;function Rt(ce){if(typeof document=="undefined")return 0;if(ce||ht===void 0){var fe=document.createElement("div");fe.style.width="100%",fe.style.height="200px";var De=document.createElement("div"),ze=De.style;ze.position="absolute",ze.top="0",ze.left="0",ze.pointerEvents="none",ze.visibility="hidden",ze.width="200px",ze.height="150px",ze.overflow="hidden",De.appendChild(fe),document.body.appendChild(De);var tt=fe.offsetWidth;De.style.overflow="scroll";var nt=fe.offsetWidth;tt===nt&&(nt=De.clientWidth),document.body.removeChild(De),ht=tt-nt}return ht}function Nt(ce){var fe=ce.match(/^(.*)px$/),De=Number(fe==null?void 0:fe[1]);return Number.isNaN(De)?Rt():De}function Kt(ce){if(typeof document=="undefined"||!ce||!(ce instanceof Element))return{width:0,height:0};var fe=getComputedStyle(ce,"::-webkit-scrollbar"),De=fe.width,ze=fe.height;return{width:Nt(De),height:Nt(ze)}}var xn=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
summary tabIndex target title type useMap value width wmode wrap`,qn=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Ma="".concat(xn," ").concat(qn).split(/[\s\n]+/),ga="aria-",er="data-";function ur(ce,fe){return ce.indexOf(fe)===0}function lo(ce){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,De;fe===!1?De={aria:!0,data:!0,attr:!0}:fe===!0?De={aria:!0}:De=(0,Se.Z)({},fe);var ze={};return Object.keys(ce).forEach(function(tt){(De.aria&&(tt==="role"||ur(tt,ga))||De.data&&ur(tt,er)||De.attr&&Ma.includes(tt))&&(ze[tt]=ce[tt])}),ze}function ea(ce,fe,De,ze,tt,nt,bt){ce.push({record:fe,indent:De,index:bt});var zt=nt(fe),Ot=tt==null?void 0:tt.has(zt);if(fe&&Array.isArray(fe[ze])&&Ot)for(var Qt=0;Qt<fe[ze].length;Qt+=1)ea(ce,fe[ze][Qt],De+1,ze,tt,nt,Qt)}function Dr(ce,fe,De,ze){var tt=ue.useMemo(function(){if(De!=null&&De.size){for(var nt=[],bt=0;bt<(ce==null?void 0:ce.length);bt+=1){var zt=ce[bt];ea(nt,zt,0,fe,De,ze,bt)}return nt}return ce==null?void 0:ce.map(function(Ot,Qt){return{record:Ot,indent:0,index:Qt}})},[ce,fe,De,ze]);return tt}function Di(ce){var fe=ce.prefixCls,De=ce.children,ze=ce.component,tt=ce.cellComponent,nt=ce.className,bt=ce.expanded,zt=ce.colSpan,Ot=ce.isEmpty,Qt=Me(de,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),fn=Qt.scrollbarSize,Jt=Qt.fixHeader,Hn=Qt.fixColumn,zn=Qt.componentWidth,Qn=Qt.horizonScroll,za=De;return(Ot?Qn&&zn:Hn)&&(za=ue.createElement("div",{style:{width:zn-(Jt?fn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(fe,"-expanded-row-fixed")},za)),ue.createElement(ze,{className:nt,style:{display:bt?null:"none"}},ue.createElement(Dt,{component:tt,prefixCls:fe,colSpan:zt},za))}var Ii=Di;function mr(ce,fe,De,ze){var tt=Me(de,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),nt=tt.flattenColumns,bt=tt.expandableType,zt=tt.expandedKeys,Ot=tt.childrenColumnName,Qt=tt.onTriggerExpand,fn=tt.rowExpandable,Jt=tt.onRow,Hn=tt.expandRowByClick,zn=tt.rowClassName,Qn=bt==="nest",za=bt==="row"&&(!fn||fn(ce)),Da=za||Qn,ja=zt&&zt.has(fe),Na=Ot&&ce&&ce[Ot],qa=ln(Qt),Tr=Jt==null?void 0:Jt(ce,De),hr=Tr==null?void 0:Tr.onClick,Pr=function(ba){Hn&&Da&&Qt(ce,ba);for(var sa=arguments.length,La=new Array(sa>1?sa-1:0),tr=1;tr<sa;tr++)La[tr-1]=arguments[tr];hr==null||hr.apply(void 0,[ba].concat(La))},So;typeof zn=="string"?So=zn:typeof zn=="function"&&(So=zn(ce,De,ze));var No=Sn(nt);return(0,Se.Z)((0,Se.Z)({},tt),{},{columnsKey:No,nestExpandable:Qn,expanded:ja,hasNestChildren:Na,record:ce,onTriggerExpand:qa,rowSupportExpand:za,expandable:Da,rowProps:(0,Se.Z)((0,Se.Z)({},Tr),{},{className:Le()(So,Tr==null?void 0:Tr.className),onClick:Pr})})}function jn(ce,fe,De,ze,tt){var nt=ce.record,bt=ce.prefixCls,zt=ce.columnsKey,Ot=ce.fixedInfoList,Qt=ce.expandIconColumnIndex,fn=ce.nestExpandable,Jt=ce.indentSize,Hn=ce.expandIcon,zn=ce.expanded,Qn=ce.hasNestChildren,za=ce.onTriggerExpand,Da=zt[De],ja=Ot[De],Na;De===(Qt||0)&&fn&&(Na=ue.createElement(ue.Fragment,null,ue.createElement("span",{style:{paddingLeft:"".concat(Jt*ze,"px")},className:"".concat(bt,"-row-indent indent-level-").concat(ze)}),Hn({prefixCls:bt,expanded:zn,expandable:Qn,record:nt,onExpand:za})));var qa;return fe.onCell&&(qa=fe.onCell(nt,tt)),{key:Da,fixedInfo:ja,appendCellNode:Na,additionalCellProps:qa||{}}}function vl(ce){var fe=ce.className,De=ce.style,ze=ce.record,tt=ce.index,nt=ce.renderIndex,bt=ce.rowKey,zt=ce.indent,Ot=zt===void 0?0:zt,Qt=ce.rowComponent,fn=ce.cellComponent,Jt=ce.scopeCellComponent,Hn=mr(ze,bt,tt,Ot),zn=Hn.prefixCls,Qn=Hn.flattenColumns,za=Hn.expandedRowClassName,Da=Hn.expandedRowRender,ja=Hn.rowProps,Na=Hn.expanded,qa=Hn.rowSupportExpand,Tr=ue.useState(!1),hr=(0,Be.Z)(Tr,2),Pr=hr[0],So=hr[1];ue.useEffect(function(){Na&&So(!0)},[Na]);var No=ue.createElement(Qt,(0,Te.Z)({},ja,{"data-row-key":bt,className:Le()(fe,"".concat(zn,"-row"),"".concat(zn,"-row-level-").concat(Ot),ja==null?void 0:ja.className),style:(0,Se.Z)((0,Se.Z)({},De),ja==null?void 0:ja.style)}),Qn.map(function(La,tr){var Sr=La.render,io=La.dataIndex,Jr=La.className,Hr=jn(Hn,La,tr,Ot,tt),Io=Hr.key,Go=Hr.fixedInfo,ri=Hr.appendCellNode,oi=Hr.additionalCellProps;return ue.createElement(Dt,(0,Te.Z)({className:Jr,ellipsis:La.ellipsis,align:La.align,scope:La.rowScope,component:La.rowScope?Jt:fn,prefixCls:zn,key:Io,record:ze,index:tt,renderIndex:nt,dataIndex:io,render:Sr,shouldCellUpdate:La.shouldCellUpdate},Go,{appendNode:ri,additionalProps:oi}))})),cr;if(qa&&(Pr||Na)){var ba=Da(ze,tt,Ot+1,Na),sa=za&&za(ze,tt,Ot);cr=ue.createElement(Ii,{expanded:Na,className:Le()("".concat(zn,"-expanded-row"),"".concat(zn,"-expanded-row-level-").concat(Ot+1),sa),prefixCls:zn,component:Qt,cellComponent:fn,colSpan:Qn.length,isEmpty:!1},ba)}return ue.createElement(ue.Fragment,null,No,cr)}vl.displayName="BodyRow";var Ho=te(vl);function dl(ce){var fe=ce.columnKey,De=ce.onColumnResize,ze=ue.useRef();return ue.useEffect(function(){ze.current&&De(fe,ze.current.offsetWidth)},[]),ue.createElement(Vn.Z,{data:fe},ue.createElement("td",{ref:ze,style:{padding:0,border:0,height:0}},ue.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function tl(ce){var fe=ce.prefixCls,De=ce.columnsKey,ze=ce.onColumnResize;return ue.createElement("tr",{"aria-hidden":"true",className:"".concat(fe,"-measure-row"),style:{height:0,fontSize:0}},ue.createElement(Vn.Z.Collection,{onBatchResize:function(nt){nt.forEach(function(bt){var zt=bt.data,Ot=bt.size;ze(zt,Ot.offsetWidth)})}},De.map(function(tt){return ue.createElement(dl,{key:tt,columnKey:tt,onColumnResize:ze})})))}function nl(ce){var fe=ce.data,De=ce.measureColumnWidth,ze=Me(de,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),tt=ze.prefixCls,nt=ze.getComponent,bt=ze.onColumnResize,zt=ze.flattenColumns,Ot=ze.getRowKey,Qt=ze.expandedKeys,fn=ze.childrenColumnName,Jt=ze.emptyNode,Hn=Dr(fe,fn,Qt,Ot),zn=ue.useRef({renderWithProps:!1}),Qn=nt(["body","wrapper"],"tbody"),za=nt(["body","row"],"tr"),Da=nt(["body","cell"],"td"),ja=nt(["body","cell"],"th"),Na;fe.length?Na=Hn.map(function(Tr,hr){var Pr=Tr.record,So=Tr.indent,No=Tr.index,cr=Ot(Pr,hr);return ue.createElement(Ho,{key:cr,rowKey:cr,record:Pr,index:hr,renderIndex:No,rowComponent:za,cellComponent:Da,scopeCellComponent:ja,getRowKey:Ot,indent:So})}):Na=ue.createElement(Ii,{expanded:!0,className:"".concat(tt,"-placeholder"),prefixCls:tt,component:za,cellComponent:Da,colSpan:zt.length,isEmpty:!0},Jt);var qa=Sn(zt);return ue.createElement(Yt.Provider,{value:zn.current},ue.createElement(Qn,{className:"".concat(tt,"-tbody")},De&&ue.createElement(tl,{prefixCls:tt,columnsKey:qa,onColumnResize:bt}),Na))}nl.displayName="Body";var Oi=te(nl),yl=["expandable"],il="RC_TABLE_INTERNAL_COL_DEFINE";function pu(ce){var fe=ce.expandable,De=(0,_n.Z)(ce,yl),ze;return"expandable"in ce?ze=(0,Se.Z)((0,Se.Z)({},De),fe):ze=De,ze.showExpandColumn===!1&&(ze.expandIconColumnIndex=-1),ze}var da=["columnType"];function _i(ce){for(var fe=ce.colWidths,De=ce.columns,ze=ce.columCount,tt=[],nt=ze||De.length,bt=!1,zt=nt-1;zt>=0;zt-=1){var Ot=fe[zt],Qt=De&&De[zt],fn=Qt&&Qt[il];if(Ot||fn||bt){var Jt=fn||{},Hn=Jt.columnType,zn=(0,_n.Z)(Jt,da);tt.unshift(ue.createElement("col",(0,Te.Z)({key:zt,style:{width:Ot}},zn))),bt=!0}}return ue.createElement("colgroup",null,tt)}var Ei=_i,Ao=ee(74902),Zo=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ka(ce,fe){return(0,ue.useMemo)(function(){for(var De=[],ze=0;ze<fe;ze+=1){var tt=ce[ze];if(tt!==void 0)De[ze]=tt;else return null}return De},[ce.join("_"),fe])}var pr=ue.forwardRef(function(ce,fe){var De=ce.className,ze=ce.noData,tt=ce.columns,nt=ce.flattenColumns,bt=ce.colWidths,zt=ce.columCount,Ot=ce.stickyOffsets,Qt=ce.direction,fn=ce.fixHeader,Jt=ce.stickyTopOffset,Hn=ce.stickyBottomOffset,zn=ce.stickyClassName,Qn=ce.onScroll,za=ce.maxContentScroll,Da=ce.children,ja=(0,_n.Z)(ce,Zo),Na=Me(de,["prefixCls","scrollbarSize","isSticky"]),qa=Na.prefixCls,Tr=Na.scrollbarSize,hr=Na.isSticky,Pr=hr&&!fn?0:Tr,So=ue.useRef(null),No=ue.useCallback(function(Jr){rn(fe,Jr),rn(So,Jr)},[]);ue.useEffect(function(){var Jr;function Hr(Io){var Go=Io,ri=Go.currentTarget,oi=Go.deltaX;oi&&(Qn({currentTarget:ri,scrollLeft:ri.scrollLeft+oi}),Io.preventDefault())}return(Jr=So.current)===null||Jr===void 0||Jr.addEventListener("wheel",Hr),function(){var Io;(Io=So.current)===null||Io===void 0||Io.removeEventListener("wheel",Hr)}},[]);var cr=ue.useMemo(function(){return nt.every(function(Jr){return Jr.width})},[nt]),ba=nt[nt.length-1],sa={fixed:ba?ba.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(qa,"-cell-scrollbar")}}},La=(0,ue.useMemo)(function(){return Pr?[].concat((0,Ao.Z)(tt),[sa]):tt},[Pr,tt]),tr=(0,ue.useMemo)(function(){return Pr?[].concat((0,Ao.Z)(nt),[sa]):nt},[Pr,nt]),Sr=(0,ue.useMemo)(function(){var Jr=Ot.right,Hr=Ot.left;return(0,Se.Z)((0,Se.Z)({},Ot),{},{left:Qt==="rtl"?[].concat((0,Ao.Z)(Hr.map(function(Io){return Io+Pr})),[0]):Hr,right:Qt==="rtl"?Jr:[].concat((0,Ao.Z)(Jr.map(function(Io){return Io+Pr})),[0]),isSticky:hr})},[Pr,Ot,hr]),io=ka(bt,zt);return ue.createElement("div",{style:(0,Se.Z)({overflow:"hidden"},hr?{top:Jt,bottom:Hn}:{}),ref:No,className:Le()(De,(0,ve.Z)({},zn,!!zn))},ue.createElement("table",{style:{tableLayout:"fixed",visibility:ze||io?null:"hidden"}},(!ze||!za||cr)&&ue.createElement(Ei,{colWidths:io?[].concat((0,Ao.Z)(io),[Pr]):[],columCount:zt+1,columns:tr}),Da((0,Se.Z)((0,Se.Z)({},ja),{},{stickyOffsets:Sr,columns:La,flattenColumns:tr}))))});pr.displayName="FixedHolder";var Fo=ue.memo(pr);function yr(ce){var fe=ce.cells,De=ce.stickyOffsets,ze=ce.flattenColumns,tt=ce.rowComponent,nt=ce.cellComponent,bt=ce.tdCellComponent,zt=ce.onHeaderRow,Ot=ce.index,Qt=Me(de,["prefixCls","direction"]),fn=Qt.prefixCls,Jt=Qt.direction,Hn;zt&&(Hn=zt(fe.map(function(Qn){return Qn.column}),Ot));var zn=Sn(fe.map(function(Qn){return Qn.column}));return ue.createElement(tt,Hn,fe.map(function(Qn,za){var Da=Qn.column,ja=Gt(Qn.colStart,Qn.colEnd,ze,De,Jt,Da),Na;return Da&&Da.onHeaderCell&&(Na=Qn.column.onHeaderCell(Da)),ue.createElement(Dt,(0,Te.Z)({},Qn,{scope:Da.title?Qn.colSpan>1?"colgroup":"col":null,ellipsis:Da.ellipsis,align:Da.align,component:Da.title?nt:bt,prefixCls:fn,key:zn[za]},ja,{additionalProps:Na,rowType:"header"}))}))}yr.displayName="HeaderRow";var gi=yr;function Pi(ce){var fe=[];function De(bt,zt){var Ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;fe[Ot]=fe[Ot]||[];var Qt=zt,fn=bt.filter(Boolean).map(function(Jt){var Hn={key:Jt.key,className:Jt.className||"",children:Jt.title,column:Jt,colStart:Qt},zn=1,Qn=Jt.children;return Qn&&Qn.length>0&&(zn=De(Qn,Qt,Ot+1).reduce(function(za,Da){return za+Da},0),Hn.hasSubColumns=!0),"colSpan"in Jt&&(zn=Jt.colSpan),"rowSpan"in Jt&&(Hn.rowSpan=Jt.rowSpan),Hn.colSpan=zn,Hn.colEnd=Hn.colStart+zn-1,fe[Ot].push(Hn),Qt+=zn,zn});return fn}De(ce,0);for(var ze=fe.length,tt=function(zt){fe[zt].forEach(function(Ot){!("rowSpan"in Ot)&&!Ot.hasSubColumns&&(Ot.rowSpan=ze-zt)})},nt=0;nt<ze;nt+=1)tt(nt);return fe}function wi(ce){var fe=ce.stickyOffsets,De=ce.columns,ze=ce.flattenColumns,tt=ce.onHeaderRow,nt=Me(de,["prefixCls","getComponent"]),bt=nt.prefixCls,zt=nt.getComponent,Ot=ue.useMemo(function(){return Pi(De)},[De]),Qt=zt(["header","wrapper"],"thead"),fn=zt(["header","row"],"tr"),Jt=zt(["header","cell"],"th"),Hn=zt(["header","cell"],"td");return ue.createElement(Qt,{className:"".concat(bt,"-thead")},Ot.map(function(zn,Qn){var za=ue.createElement(gi,{key:Qn,flattenColumns:ze,cells:zn,stickyOffsets:fe,rowComponent:fn,cellComponent:Jt,tdCellComponent:Hn,onHeaderRow:tt,index:Qn});return za}))}var Ni=te(wi);function Ji(ce){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},De=[];return ue.Children.forEach(ce,function(ze){ze==null&&!fe.keepEmpty||(Array.isArray(ze)?De=De.concat(Ji(ze)):(0,en.isFragment)(ze)&&ze.props?De=De.concat(Ji(ze.props.children,fe)):De.push(ze))}),De}function Jl(ce){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof fe=="number"?fe:fe.endsWith("%")?ce*parseFloat(fe)/100:null}function ll(ce,fe){return ue.useMemo(function(){if(fe&&fe>0){var De=0,ze=0;ce.forEach(function(Qt){var fn=Jl(fe,Qt.width);fn?De+=fn:ze+=1});var tt=fe-De,nt=ze,bt=tt/ze,zt=0,Ot=ce.map(function(Qt){var fn=(0,Se.Z)({},Qt),Jt=Jl(fe,fn.width);if(Jt)fn.width=Jt;else{var Hn=Math.floor(bt);fn.width=nt===1?tt:Hn,tt-=Hn,nt-=1}return zt+=fn.width,fn});return[Ot,zt]}return[ce,fe]},[ce,fe])}var vu=["children"],ou=["fixed"];function vo(ce){return Ji(ce).filter(function(fe){return ue.isValidElement(fe)}).map(function(fe){var De=fe.key,ze=fe.props,tt=ze.children,nt=(0,_n.Z)(ze,vu),bt=(0,Se.Z)({key:De},nt);return tt&&(bt.children=vo(tt)),bt})}function hl(ce){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return ce.filter(function(De){return De&&(0,we.Z)(De)==="object"}).reduce(function(De,ze,tt){var nt=ze.fixed,bt=nt===!0?"left":nt,zt="".concat(fe,"-").concat(tt),Ot=ze.children;return Ot&&Ot.length>0?[].concat((0,Ao.Z)(De),(0,Ao.Z)(hl(Ot,zt).map(function(Qt){return(0,Se.Z)({fixed:bt},Qt)}))):[].concat((0,Ao.Z)(De),[(0,Se.Z)((0,Se.Z)({key:zt},ze),{},{fixed:bt})])},[])}function Yl(ce){for(var fe=!0,De=0;De<ce.length;De+=1){var ze=ce[De];if(fe&&ze.fixed!=="left")fe=!1;else if(!fe&&ze.fixed==="left"){warning(!1,"Index ".concat(De-1," of `columns` missing `fixed='left'` prop."));break}}for(var tt=!0,nt=ce.length-1;nt>=0;nt-=1){var bt=ce[nt];if(tt&&bt.fixed!=="right")tt=!1;else if(!tt&&bt.fixed==="right"){warning(!1,"Index ".concat(nt+1," of `columns` missing `fixed='right'` prop."));break}}}function Xl(ce){return ce.map(function(fe){var De=fe.fixed,ze=(0,_n.Z)(fe,ou),tt=De;return De==="left"?tt="right":De==="right"&&(tt="left"),(0,Se.Z)({fixed:tt},ze)})}function al(ce,fe){var De=ce.prefixCls,ze=ce.columns,tt=ce.children,nt=ce.expandable,bt=ce.expandedKeys,zt=ce.columnTitle,Ot=ce.getRowKey,Qt=ce.onTriggerExpand,fn=ce.expandIcon,Jt=ce.rowExpandable,Hn=ce.expandIconColumnIndex,zn=ce.direction,Qn=ce.expandRowByClick,za=ce.columnWidth,Da=ce.fixed,ja=ce.scrollWidth,Na=ue.useMemo(function(){return ze||vo(tt)},[ze,tt]),qa=ue.useMemo(function(){if(nt){var ba,sa=Na.slice();if(!sa.includes(b)){var La=Hn||0;La>=0&&sa.splice(La,0,b)}var tr=sa.indexOf(b);sa=sa.filter(function(Hr,Io){return Hr!==b||Io===tr});var Sr=Na[tr],io;(Da==="left"||Da)&&!Hn?io="left":(Da==="right"||Da)&&Hn===Na.length?io="right":io=Sr?Sr.fixed:null;var Jr=(ba={},(0,ve.Z)(ba,il,{className:"".concat(De,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,ve.Z)(ba,"title",zt),(0,ve.Z)(ba,"fixed",io),(0,ve.Z)(ba,"className","".concat(De,"-row-expand-icon-cell")),(0,ve.Z)(ba,"width",za),(0,ve.Z)(ba,"render",function(Io,Go,ri){var oi=Ot(Go,ri),el=bt.has(oi),Ui=Jt?Jt(Go):!0,_o=fn({prefixCls:De,expanded:el,expandable:Ui,record:Go,onExpand:Qt});return Qn?ue.createElement("span",{onClick:function(ui){return ui.stopPropagation()}},_o):_o}),ba);return sa.map(function(Hr){return Hr===b?Jr:Hr})}return Na.filter(function(Hr){return Hr!==b})},[nt,Na,Ot,bt,fn,zn]),Tr=ue.useMemo(function(){var ba=qa;return fe&&(ba=fe(ba)),ba.length||(ba=[{render:function(){return null}}]),ba},[fe,qa,zn]),hr=ue.useMemo(function(){return zn==="rtl"?Xl(hl(Tr)):hl(Tr)},[Tr,zn,ja]),Pr=ll(hr,ja),So=(0,Be.Z)(Pr,2),No=So[0],cr=So[1];return[Tr,No,cr]}var Gi=al;function ql(ce){var fe,De=ce.prefixCls,ze=ce.record,tt=ce.onExpand,nt=ce.expanded,bt=ce.expandable,zt="".concat(De,"-row-expand-icon");if(!bt)return ue.createElement("span",{className:Le()(zt,"".concat(De,"-row-spaced"))});var Ot=function(fn){tt(ze,fn),fn.stopPropagation()};return ue.createElement("span",{className:Le()(zt,(fe={},(0,ve.Z)(fe,"".concat(De,"-row-expanded"),nt),(0,ve.Z)(fe,"".concat(De,"-row-collapsed"),!nt),fe)),onClick:Ot})}function Ll(ce,fe,De){var ze=[];function tt(nt){(nt||[]).forEach(function(bt,zt){ze.push(fe(bt,zt)),tt(bt[De])})}return tt(ce),ze}function Rl(ce,fe,De){var ze=pu(ce),tt=ze.expandIcon,nt=ze.expandedRowKeys,bt=ze.defaultExpandedRowKeys,zt=ze.defaultExpandAllRows,Ot=ze.expandedRowRender,Qt=ze.onExpand,fn=ze.onExpandedRowsChange,Jt=ze.childrenColumnName,Hn=tt||ql,zn=Jt||"children",Qn=ue.useMemo(function(){return Ot?"row":ce.expandable&&ce.internalHooks===ie&&ce.expandable.__PARENT_RENDER_ICON__||fe.some(function(hr){return hr&&(0,we.Z)(hr)==="object"&&hr[zn]})?"nest":!1},[!!Ot,fe]),za=ue.useState(function(){return bt||(zt?Ll(fe,De,zn):[])}),Da=(0,Be.Z)(za,2),ja=Da[0],Na=Da[1],qa=ue.useMemo(function(){return new Set(nt||ja||[])},[nt,ja]),Tr=ue.useCallback(function(hr){var Pr=De(hr,fe.indexOf(hr)),So,No=qa.has(Pr);No?(qa.delete(Pr),So=(0,Ao.Z)(qa)):So=[].concat((0,Ao.Z)(qa),[Pr]),Na(So),Qt&&Qt(!No,hr),fn&&fn(So)},[De,qa,fe,Qt,fn]);return[ze,Qn,qa,Hn,zn,Tr]}function Vt(ce,fe,De,ze){var tt=ce.map(function(nt,bt){return Gt(bt,bt,ce,fe,De,ze==null?void 0:ze[bt])});return ke(function(){return tt},[tt],function(nt,bt){return!It(nt,bt)})}function qt(ce){var fe=(0,ue.useRef)(ce),De=(0,ue.useState)({}),ze=(0,Be.Z)(De,2),tt=ze[1],nt=(0,ue.useRef)(null),bt=(0,ue.useRef)([]);function zt(Ot){bt.current.push(Ot);var Qt=Promise.resolve();nt.current=Qt,Qt.then(function(){if(nt.current===Qt){var fn=bt.current,Jt=fe.current;bt.current=[],fn.forEach(function(Hn){fe.current=Hn(fe.current)}),nt.current=null,Jt!==fe.current&&tt({})}})}return(0,ue.useEffect)(function(){return function(){nt.current=null}},[]),[fe.current,zt]}function bn(ce){var fe=(0,ue.useRef)(ce||null),De=(0,ue.useRef)();function ze(){window.clearTimeout(De.current)}function tt(bt){fe.current=bt,ze(),De.current=window.setTimeout(function(){fe.current=null,De.current=void 0},100)}function nt(){return fe.current}return(0,ue.useEffect)(function(){return ze},[]),[tt,nt]}function et(){var ce=ue.useState(-1),fe=(0,Be.Z)(ce,2),De=fe[0],ze=fe[1],tt=ue.useState(-1),nt=(0,Be.Z)(tt,2),bt=nt[0],zt=nt[1],Ot=ue.useCallback(function(Qt,fn){ze(Qt),zt(fn)},[]);return[De,bt,Ot]}var Pn=ma()?window:null;function ha(ce,fe){var De=(0,we.Z)(ce)==="object"?ce:{},ze=De.offsetHeader,tt=ze===void 0?0:ze,nt=De.offsetSummary,bt=nt===void 0?0:nt,zt=De.offsetScroll,Ot=zt===void 0?0:zt,Qt=De.getContainer,fn=Qt===void 0?function(){return Pn}:Qt,Jt=fn()||Pn;return ue.useMemo(function(){var Hn=!!ce;return{isSticky:Hn,stickyClassName:Hn?"".concat(fe,"-sticky-holder"):"",offsetHeader:tt,offsetSummary:bt,offsetScroll:Ot,container:Jt}},[Ot,tt,bt,fe,Jt])}function Sa(ce,fe,De){var ze=(0,ue.useMemo)(function(){for(var tt=[],nt=[],bt=0,zt=0,Ot=0;Ot<fe;Ot+=1)if(De==="rtl"){nt[Ot]=zt,zt+=ce[Ot]||0;var Qt=fe-Ot-1;tt[Qt]=bt,bt+=ce[Qt]||0}else{tt[Ot]=bt,bt+=ce[Ot]||0;var fn=fe-Ot-1;nt[fn]=zt,zt+=ce[fn]||0}return{left:tt,right:nt}},[ce,fe,De]);return ze}var on=Sa;function Dn(ce){var fe=ce.className,De=ce.children;return ue.createElement("div",{className:fe},De)}var un=Dn;function oa(ce,fe,De,ze){var tt=Ge.unstable_batchedUpdates?function(bt){Ge.unstable_batchedUpdates(De,bt)}:De;return ce!=null&&ce.addEventListener&&ce.addEventListener(fe,tt,ze),{remove:function(){ce!=null&&ce.removeEventListener&&ce.removeEventListener(fe,tt,ze)}}}var Ha=/margin|padding|width|height|max|min|offset/,gr={left:!0,top:!0},ar={cssFloat:1,styleFloat:1,float:1};function br(ce){return ce.nodeType===1?ce.ownerDocument.defaultView.getComputedStyle(ce,null):{}}function _a(ce,fe,De){if(fe=fe.toLowerCase(),De==="auto"){if(fe==="height")return ce.offsetHeight;if(fe==="width")return ce.offsetWidth}return fe in gr||(gr[fe]=Ha.test(fe)),gr[fe]?parseFloat(De)||0:De}function aa(ce,fe){var De=arguments.length,ze=br(ce);return fe=ar[fe]?"cssFloat"in ce.style?"cssFloat":"styleFloat":fe,De===1?ze:_a(ce,fe,ze[fe]||ce.style[fe])}function Xt(ce,fe,De){var ze=arguments.length;if(fe=ar[fe]?"cssFloat"in ce.style?"cssFloat":"styleFloat":fe,ze===3)return typeof De=="number"&&Ha.test(fe)&&(De="".concat(De,"px")),ce.style[fe]=De,De;for(var tt in fe)fe.hasOwnProperty(tt)&&Xt(ce,tt,fe[tt]);return br(ce)}function Wn(ce){return ce===document.body?document.documentElement.clientWidth:ce.offsetWidth}function ta(ce){return ce===document.body?window.innerHeight||document.documentElement.clientHeight:ce.offsetHeight}function $a(){var ce=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),fe=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:ce,height:fe}}function Er(){var ce=document.documentElement.clientWidth,fe=window.innerHeight||document.documentElement.clientHeight;return{width:ce,height:fe}}function Cr(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Qr(ce){var fe=ce.getBoundingClientRect(),De=document.documentElement;return{left:fe.left+(window.pageXOffset||De.scrollLeft)-(De.clientLeft||document.body.clientLeft||0),top:fe.top+(window.pageYOffset||De.scrollTop)-(De.clientTop||document.body.clientTop||0)}}var Br=function(fe,De){var ze,tt,nt=fe.scrollBodyRef,bt=fe.onScroll,zt=fe.offsetScroll,Ot=fe.container,Qt=Me(de,"prefixCls"),fn=((ze=nt.current)===null||ze===void 0?void 0:ze.scrollWidth)||0,Jt=((tt=nt.current)===null||tt===void 0?void 0:tt.clientWidth)||0,Hn=fn&&Jt*(Jt/fn),zn=ue.useRef(),Qn=qt({scrollLeft:0,isHiddenScrollBar:!1}),za=(0,Be.Z)(Qn,2),Da=za[0],ja=za[1],Na=ue.useRef({delta:0,x:0}),qa=ue.useState(!1),Tr=(0,Be.Z)(qa,2),hr=Tr[0],Pr=Tr[1],So=function(){Pr(!1)},No=function(tr){tr.persist(),Na.current.delta=tr.pageX-Da.scrollLeft,Na.current.x=0,Pr(!0),tr.preventDefault()},cr=function(tr){var Sr,io=tr||((Sr=window)===null||Sr===void 0?void 0:Sr.event),Jr=io.buttons;if(!hr||Jr===0){hr&&Pr(!1);return}var Hr=Na.current.x+tr.pageX-Na.current.x-Na.current.delta;Hr<=0&&(Hr=0),Hr+Hn>=Jt&&(Hr=Jt-Hn),bt({scrollLeft:Hr/Jt*(fn+2)}),Na.current.x=tr.pageX},ba=function(){if(nt.current){var tr=Qr(nt.current).top,Sr=tr+nt.current.offsetHeight,io=Ot===window?document.documentElement.scrollTop+window.innerHeight:Qr(Ot).top+Ot.clientHeight;Sr-Rt()<=io||tr>=io-zt?ja(function(Jr){return(0,Se.Z)((0,Se.Z)({},Jr),{},{isHiddenScrollBar:!0})}):ja(function(Jr){return(0,Se.Z)((0,Se.Z)({},Jr),{},{isHiddenScrollBar:!1})})}},sa=function(tr){ja(function(Sr){return(0,Se.Z)((0,Se.Z)({},Sr),{},{scrollLeft:tr/fn*Jt||0})})};return ue.useImperativeHandle(De,function(){return{setScrollLeft:sa}}),ue.useEffect(function(){var La=oa(document.body,"mouseup",So,!1),tr=oa(document.body,"mousemove",cr,!1);return ba(),function(){La.remove(),tr.remove()}},[Hn,hr]),ue.useEffect(function(){var La=oa(Ot,"scroll",ba,!1),tr=oa(window,"resize",ba,!1);return function(){La.remove(),tr.remove()}},[Ot]),ue.useEffect(function(){Da.isHiddenScrollBar||ja(function(La){var tr=nt.current;return tr?(0,Se.Z)((0,Se.Z)({},La),{},{scrollLeft:tr.scrollLeft/tr.scrollWidth*tr.clientWidth}):La})},[Da.isHiddenScrollBar]),fn<=Jt||!Hn||Da.isHiddenScrollBar?null:ue.createElement("div",{style:{height:Rt(),width:Jt,bottom:zt},className:"".concat(Qt,"-sticky-scroll")},ue.createElement("div",{onMouseDown:No,ref:zn,className:Le()("".concat(Qt,"-sticky-scroll-bar"),(0,ve.Z)({},"".concat(Qt,"-sticky-scroll-bar-active"),hr)),style:{width:"".concat(Hn,"px"),transform:"translate3d(".concat(Da.scrollLeft,"px, 0, 0)")}}))},Kr=ue.forwardRef(Br);function Ca(ce){return null}var Wr=Ca;function Ko(ce){return null}var To=Ko,si="rc-table",Wo=[],di={};function uo(){return"No Data"}function ti(ce){var fe,De=(0,Se.Z)({rowKey:"key",prefixCls:si,emptyText:uo},ce),ze=De.prefixCls,tt=De.className,nt=De.rowClassName,bt=De.style,zt=De.data,Ot=De.rowKey,Qt=De.scroll,fn=De.tableLayout,Jt=De.direction,Hn=De.title,zn=De.footer,Qn=De.summary,za=De.caption,Da=De.id,ja=De.showHeader,Na=De.components,qa=De.emptyText,Tr=De.onRow,hr=De.onHeaderRow,Pr=De.internalHooks,So=De.transformColumns,No=De.internalRefs,cr=De.tailor,ba=De.sticky,sa=zt||Wo,La=!!sa.length,tr=Pr===ie,Sr=ue.useCallback(function(Ci,$i){return hn(Na,Ci)||$i},[Na]),io=ue.useMemo(function(){return typeof Ot=="function"?Ot:function(Ci){var $i=Ci&&Ci[Ot];return $i}},[Ot]),Jr=Sr(["body"]),Hr=et(),Io=(0,Be.Z)(Hr,3),Go=Io[0],ri=Io[1],oi=Io[2],el=Rl(De,sa,io),Ui=(0,Be.Z)(el,6),_o=Ui[0],fl=Ui[1],ui=Ui[2],Vi=Ui[3],ji=Ui[4],nu=Ui[5],po=Qt==null?void 0:Qt.x,no=ue.useState(0),ao=(0,Be.Z)(no,2),Vr=ao[0],pi=ao[1],kr=Gi((0,Se.Z)((0,Se.Z)((0,Se.Z)({},De),_o),{},{expandable:!!_o.expandedRowRender,columnTitle:_o.columnTitle,expandedKeys:ui,getRowKey:io,onTriggerExpand:nu,expandIcon:Vi,expandIconColumnIndex:_o.expandIconColumnIndex,direction:Jt,scrollWidth:tr&&cr&&typeof po=="number"?po:null}),tr?So:null),Mo=(0,Be.Z)(kr,3),ii=Mo[0],li=Mo[1],Vl=Mo[2],_l=Vl!=null?Vl:po,Pu=ue.useMemo(function(){return{columns:ii,flattenColumns:li}},[ii,li]),sl=ue.useRef(),yu=ue.useRef(),pl=ue.useRef(),su=ue.useRef(),Uu=ue.useRef(),Si=ue.useState(!1),bi=(0,Be.Z)(Si,2),Yi=bi[0],El=bi[1],ol=ue.useState(!1),qo=(0,Be.Z)(ol,2),Ql=qo[0],Il=qo[1],du=qt(new Map),Fu=(0,Be.Z)(du,2),Bu=Fu[0],Vu=Fu[1],Mu=Sn(li),bu=Mu.map(function(Ci){return Bu.get(Ci)}),Ol=ue.useMemo(function(){return bu},[bu.join("_")]),au=on(Ol,li.length,Jt),Pl=Qt&&xt(Qt.y),Xi=Qt&&xt(_l)||!!_o.fixed,Lu=Xi&&li.some(function(Ci){var $i=Ci.fixed;return $i}),Tu=ue.useRef(),zu=ha(ba,ze),Ru=zu.isSticky,rs=zu.offsetHeader,cs=zu.offsetSummary,ci=zu.offsetScroll,ki=zu.stickyClassName,Hl=zu.container,Qi=ue.useMemo(function(){return Qn==null?void 0:Qn(sa)},[Qn,sa]),$l=(Pl||Ru)&&ue.isValidElement(Qi)&&Qi.type===Cn&&Qi.props.fixed,cu,gu,ku;Pl&&(gu={overflowY:"scroll",maxHeight:Qt.y}),Xi&&(cu={overflowX:"auto"},Pl||(gu={overflowY:"hidden"}),ku={width:_l===!0?"auto":_l,minWidth:"100%"});var gs=ue.useCallback(function(Ci,$i){Yn(sl.current)&&Vu(function(Cu){if(Cu.get(Ci)!==$i){var _u=new Map(Cu);return _u.set(Ci,$i),_u}return Cu})},[]),js=bn(null),xs=(0,Be.Z)(js,2),Gs=xs[0],ws=xs[1];function os(Ci,$i){$i&&(typeof $i=="function"?$i(Ci):$i.scrollLeft!==Ci&&($i.scrollLeft=Ci,$i.scrollLeft!==Ci&&setTimeout(function(){$i.scrollLeft=Ci},0)))}var Qu=ln(function(Ci){var $i=Ci.currentTarget,Cu=Ci.scrollLeft,_u=Jt==="rtl",Au=typeof Cu=="number"?Cu:$i.scrollLeft,es=$i||di;if(!ws()||ws()===es){var Es;Gs(es),os(Au,yu.current),os(Au,pl.current),os(Au,Uu.current),os(Au,(Es=Tu.current)===null||Es===void 0?void 0:Es.setScrollLeft)}var ts=$i||yu.current;if(ts){var ss=ts.scrollWidth,Ps=ts.clientWidth;if(ss===Ps){El(!1),Il(!1);return}_u?(El(-Au<ss-Ps),Il(-Au>0)):(El(Au>0),Il(Au<ss-Ps))}}),Xu=function(){Xi&&pl.current?Qu({currentTarget:pl.current}):(El(!1),Il(!1))},Fs=function($i){var Cu=$i.width;Cu!==Vr&&(Xu(),pi(sl.current?sl.current.offsetWidth:Cu))},Bs=ue.useRef(!1);ue.useEffect(function(){Bs.current&&Xu()},[Xi,zt,ii.length]),ue.useEffect(function(){Bs.current=!0},[]);var Hs=ue.useState(0),As=(0,Be.Z)(Hs,2),is=As[0],$u=As[1],Ks=ue.useState(!0),ms=(0,Be.Z)(Ks,2),Ds=ms[0],Ws=ms[1];ue.useEffect(function(){(!cr||!tr)&&(pl.current instanceof Element?$u(Kt(pl.current).width):$u(Kt(su.current).width)),Ws(Kn("position","sticky"))},[]),ue.useEffect(function(){tr&&No&&(No.body.current=pl.current)});var ad=ue.useCallback(function(Ci){return ue.createElement(ue.Fragment,null,ue.createElement(Ni,Ci),$l==="top"&&ue.createElement(vn,Ci,Qi))},[$l,Qi]),Us=ue.useCallback(function(Ci){return ue.createElement(vn,Ci,Qi)},[Qi]),ls=Sr(["table"],"table"),us=ue.useMemo(function(){return fn||(Lu?_l==="max-content"?"auto":"fixed":Pl||Ru||li.some(function(Ci){var $i=Ci.ellipsis;return $i})?"fixed":"auto")},[Pl,Lu,li,fn,Ru]),fs,ps={colWidths:Ol,columCount:li.length,stickyOffsets:au,onHeaderRow:hr,fixHeader:Pl,scroll:Qt},vs=ue.useMemo(function(){return La?null:typeof qa=="function"?qa():qa},[La,qa]),Ns=ue.createElement(Oi,{data:sa,measureColumnWidth:Pl||Xi||Ru}),hs=ue.createElement(Ei,{colWidths:li.map(function(Ci){var $i=Ci.width;return $i}),columns:li}),Is=za!=null?ue.createElement("caption",{className:"".concat(ze,"-caption")},za):void 0,Os=lo(De,{data:!0}),Vs=lo(De,{aria:!0});if(Pl||Ru){var qu;typeof Jr=="function"?(qu=Jr(sa,{scrollbarSize:is,ref:pl,onScroll:Qu}),ps.colWidths=li.map(function(Ci,$i){var Cu=Ci.width,_u=$i===li.length-1?Cu-is:Cu;return typeof _u=="number"&&!Number.isNaN(_u)?_u:0})):qu=ue.createElement("div",{style:(0,Se.Z)((0,Se.Z)({},cu),gu),onScroll:Qu,ref:pl,className:Le()("".concat(ze,"-body"))},ue.createElement(ls,(0,Te.Z)({style:(0,Se.Z)((0,Se.Z)({},ku),{},{tableLayout:us})},Vs),Is,hs,Ns,!$l&&Qi&&ue.createElement(vn,{stickyOffsets:au,flattenColumns:li,columns:ii},Qi)));var Ls=(0,Se.Z)((0,Se.Z)((0,Se.Z)({noData:!sa.length,maxContentScroll:Xi&&_l==="max-content"},ps),Pu),{},{direction:Jt,stickyClassName:ki,onScroll:Qu});fs=ue.createElement(ue.Fragment,null,ja!==!1&&ue.createElement(Fo,(0,Te.Z)({},Ls,{stickyTopOffset:rs,className:"".concat(ze,"-header"),ref:yu}),ad),qu,$l&&$l!=="top"&&ue.createElement(Fo,(0,Te.Z)({},Ls,{stickyBottomOffset:cs,className:"".concat(ze,"-summary"),ref:Uu}),Us),Ru&&ue.createElement(Kr,{ref:Tu,offsetScroll:ci,scrollBodyRef:pl,onScroll:Qu,container:Hl}))}else fs=ue.createElement("div",{style:(0,Se.Z)((0,Se.Z)({},cu),gu),className:Le()("".concat(ze,"-content")),onScroll:Qu,ref:pl},ue.createElement(ls,(0,Te.Z)({style:(0,Se.Z)((0,Se.Z)({},ku),{},{tableLayout:us})},Vs),Is,hs,ja!==!1&&ue.createElement(Ni,(0,Te.Z)({},ps,Pu)),Ns,Qi&&ue.createElement(vn,{stickyOffsets:au,flattenColumns:li,columns:ii},Qi)));var Ss=ue.createElement("div",(0,Te.Z)({className:Le()(ze,tt,(fe={},(0,ve.Z)(fe,"".concat(ze,"-rtl"),Jt==="rtl"),(0,ve.Z)(fe,"".concat(ze,"-ping-left"),Yi),(0,ve.Z)(fe,"".concat(ze,"-ping-right"),Ql),(0,ve.Z)(fe,"".concat(ze,"-layout-fixed"),fn==="fixed"),(0,ve.Z)(fe,"".concat(ze,"-fixed-header"),Pl),(0,ve.Z)(fe,"".concat(ze,"-fixed-column"),Lu),(0,ve.Z)(fe,"".concat(ze,"-scroll-horizontal"),Xi),(0,ve.Z)(fe,"".concat(ze,"-has-fix-left"),li[0]&&li[0].fixed),(0,ve.Z)(fe,"".concat(ze,"-has-fix-right"),li[li.length-1]&&li[li.length-1].fixed==="right"),fe)),style:bt,id:Da,ref:sl},Os),Hn&&ue.createElement(un,{className:"".concat(ze,"-title")},Hn(sa)),ue.createElement("div",{ref:su,className:"".concat(ze,"-container")},fs),zn&&ue.createElement(un,{className:"".concat(ze,"-footer")},zn(sa)));Xi&&(Ss=ue.createElement(Vn.Z,{onResize:Fs},Ss));var Rs=Vt(li,au,Jt,ii),Qs=ue.useMemo(function(){return{scrollX:_l,prefixCls:ze,getComponent:Sr,scrollbarSize:is,direction:Jt,fixedInfoList:Rs,isSticky:Ru,supportSticky:Ds,componentWidth:Vr,fixHeader:Pl,fixColumn:Lu,horizonScroll:Xi,tableLayout:us,rowClassName:nt,expandedRowClassName:_o.expandedRowClassName,expandIcon:Vi,expandableType:fl,expandRowByClick:_o.expandRowByClick,expandedRowRender:_o.expandedRowRender,onTriggerExpand:nu,expandIconColumnIndex:_o.expandIconColumnIndex,indentSize:_o.indentSize,allColumnsFixedLeft:li.every(function(Ci){return Ci.fixed==="left"}),emptyNode:vs,columns:ii,flattenColumns:li,onColumnResize:gs,hoverStartRow:Go,hoverEndRow:ri,onHover:oi,rowExpandable:_o.rowExpandable,onRow:Tr,getRowKey:io,expandedKeys:ui,childrenColumnName:ji}},[_l,ze,Sr,is,Jt,Rs,Ru,Ds,Vr,Pl,Lu,Xi,us,nt,_o.expandedRowClassName,Vi,fl,_o.expandRowByClick,_o.expandedRowRender,nu,_o.expandIconColumnIndex,_o.indentSize,vs,ii,li,gs,Go,ri,oi,_o.rowExpandable,Tr,io,ui,ji]);return ue.createElement(de.Provider,{value:Qs},Ss)}function Fi(ce){return z(ti,ce)}var Li=Fi();Li.EXPAND_COLUMN=b,Li.INTERNAL_HOOKS=ie,Li.Column=Wr,Li.ColumnGroup=To,Li.Summary=Nn;var cl=Li,Al=ee(73299),Hi=Ae(null),ai=Ae(null);function bl(ce,fe,De){var ze=fe||1;return De[ce+ze]-(De[ce]||0)}function Ml(ce){var fe=ce.rowInfo,De=ce.column,ze=ce.colIndex,tt=ce.indent,nt=ce.index,bt=ce.renderIndex,zt=ce.record,Ot=ce.style,Qt=ce.className,fn=ce.inverse,Jt=ce.getHeight,Hn=De.render,zn=De.dataIndex,Qn=De.className,za=De.width,Da=Me(ai,["columnsOffset"]),ja=Da.columnsOffset,Na=jn(fe,De,ze,tt,nt),qa=Na.key,Tr=Na.fixedInfo,hr=Na.appendCellNode,Pr=Na.additionalCellProps,So=Pr.style,No=Pr.colSpan,cr=No===void 0?1:No,ba=Pr.rowSpan,sa=ba===void 0?1:ba,La=ze-1,tr=bl(La,cr,ja),Sr=cr>1?za-tr:0,io=(0,Se.Z)((0,Se.Z)((0,Se.Z)({},So),Ot),{},{flex:"0 0 ".concat(tr,"px"),width:"".concat(tr,"px"),marginRight:Sr,pointerEvents:"auto"}),Jr=ue.useMemo(function(){return fn?sa<=1:cr===0||sa===0||sa>1},[sa,cr,fn]);Jr?io.visibility="hidden":fn&&(io.height=Jt==null?void 0:Jt(sa));var Hr=Jr?function(){return null}:Hn,Io={};return(sa===0||cr===0)&&(Io.rowSpan=1,Io.colSpan=1),ue.createElement(Dt,(0,Te.Z)({className:Le()(Qn,Qt),ellipsis:De.ellipsis,align:De.align,scope:De.rowScope,component:"div",prefixCls:fe.prefixCls,key:qa,record:zt,index:nt,renderIndex:bt,dataIndex:zn,render:Hr,shouldCellUpdate:De.shouldCellUpdate},Tr,{appendNode:hr,additionalProps:(0,Se.Z)((0,Se.Z)({},Pr),{},{style:io},Io)}))}var Zl=Ml,Tl=["data","index","className","rowKey","style","extra","getHeight"],Cl=ue.forwardRef(function(ce,fe){var De=ce.data,ze=ce.index,tt=ce.className,nt=ce.rowKey,bt=ce.style,zt=ce.extra,Ot=ce.getHeight,Qt=(0,_n.Z)(ce,Tl),fn=De.record,Jt=De.indent,Hn=De.index,zn=Me(de,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Qn=zn.scrollX,za=zn.flattenColumns,Da=zn.prefixCls,ja=zn.fixColumn,Na=zn.componentWidth,qa=mr(fn,nt,ze,Jt),Tr=qa.rowSupportExpand,hr=qa.expanded,Pr=qa.rowProps,So=qa.expandedRowRender,No=qa.expandedRowClassName,cr;if(Tr&&hr){var ba=So(fn,ze,Jt+1,hr),sa=No==null?void 0:No(fn,ze,Jt),La={};ja&&(La={style:(0,ve.Z)({},"--virtual-width","".concat(Na,"px"))});var tr="".concat(Da,"-expanded-row-cell");cr=ue.createElement("div",{className:Le()("".concat(Da,"-expanded-row"),"".concat(Da,"-expanded-row-level-").concat(Jt+1),sa)},ue.createElement(Dt,{component:"div",prefixCls:Da,className:Le()(tr,(0,ve.Z)({},"".concat(tr,"-fixed"),ja)),additionalProps:La},ba))}var Sr=(0,Se.Z)((0,Se.Z)({},bt),{},{width:Qn});zt&&(Sr.position="absolute",Sr.pointerEvents="none");var io=ue.createElement("div",(0,Te.Z)({},Pr,Qt,{ref:Tr?null:fe,className:Le()(tt,"".concat(Da,"-row"),Pr==null?void 0:Pr.className,(0,ve.Z)({},"".concat(Da,"-row-extra"),zt)),style:(0,Se.Z)((0,Se.Z)({},Sr),Pr==null?void 0:Pr.style)}),za.map(function(Jr,Hr){return ue.createElement(Zl,{key:Hr,rowInfo:qa,column:Jr,colIndex:Hr,indent:Jt,index:ze,renderIndex:Hn,record:fn,inverse:zt,getHeight:Ot})}));return Tr?ue.createElement("div",{ref:fe},io,cr):io}),hu=te(Cl),Dl=hu,iu=ue.forwardRef(function(ce,fe){var De=ce.data,ze=ce.onScroll,tt=Me(de,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),nt=tt.flattenColumns,bt=tt.onColumnResize,zt=tt.getRowKey,Ot=tt.expandedKeys,Qt=tt.prefixCls,fn=tt.childrenColumnName,Jt=tt.emptyNode,Hn=tt.scrollX,zn=Me(Hi),Qn=zn.scrollY,za=zn.listItemHeight,Da=ue.useRef(),ja=Dr(De,fn,Ot,zt),Na=ue.useMemo(function(){var cr=0;return nt.map(function(ba){var sa=ba.width,La=ba.key;return cr+=sa,[La,sa,cr]})},[nt]),qa=ue.useMemo(function(){return Na.map(function(cr){return cr[2]})},[Na]);ue.useEffect(function(){Na.forEach(function(cr){var ba=(0,Be.Z)(cr,2),sa=ba[0],La=ba[1];bt(sa,La)})},[Na]),ue.useImperativeHandle(fe,function(){var cr={};return Object.defineProperty(cr,"scrollLeft",{get:function(){var sa;return((sa=Da.current)===null||sa===void 0?void 0:sa.getScrollInfo().x)||0},set:function(sa){var La;(La=Da.current)===null||La===void 0||La.scrollTo({left:sa})}}),cr});var Tr=function(ba,sa){var La,tr=(La=ja[sa])===null||La===void 0?void 0:La.record,Sr=ba.onCell;if(Sr){var io,Jr=Sr(tr,sa);return(io=Jr==null?void 0:Jr.rowSpan)!==null&&io!==void 0?io:1}return 1},hr=function(ba){var sa=ba.start,La=ba.end,tr=ba.getSize,Sr=ba.offsetY;if(La<0)return null;for(var io=nt.filter(function(po){return Tr(po,sa)===0}),Jr=sa,Hr=function(no){if(io=io.filter(function(ao){return Tr(ao,no)===0}),!io.length)return Jr=no,"break"},Io=sa;Io>=0;Io-=1){var Go=Hr(Io);if(Go==="break")break}for(var ri=nt.filter(function(po){return Tr(po,La)!==1}),oi=La,el=function(no){if(ri=ri.filter(function(ao){return Tr(ao,no)!==1}),!ri.length)return oi=Math.max(no-1,La),"break"},Ui=La;Ui<ja.length;Ui+=1){var _o=el(Ui);if(_o==="break")break}for(var fl=[],ui=function(no){var ao=ja[no];if(!ao)return"continue";nt.some(function(Vr){return Tr(Vr,no)>1})&&fl.push(no)},Vi=Jr;Vi<=oi;Vi+=1)var ji=ui(Vi);var nu=fl.map(function(po){var no=ja[po],ao=zt(no.record,po),Vr=function(Mo){var ii=po+Mo-1,li=zt(ja[ii].record,ii),Vl=tr(ao,li);return Vl.bottom-Vl.top},pi=tr(ao);return ue.createElement(Dl,{key:po,data:no,rowKey:ao,index:po,style:{top:-Sr+pi.top},extra:!0,getHeight:Vr})});return nu},Pr=ue.useMemo(function(){return{columnsOffset:qa}},[qa]),So="".concat(Qt,"-tbody"),No;return ja.length?No=ue.createElement(Al.Z,{fullHeight:!1,ref:Da,className:Le()(So,"".concat(So,"-virtual")),height:Qn,itemHeight:za||24,data:ja,itemKey:function(ba){return zt(ba.record)},scrollWidth:Hn,onVirtualScroll:function(ba){var sa=ba.x;ze({scrollLeft:sa})},extraRender:hr},function(cr,ba,sa){var La=zt(cr.record,ba);return ue.createElement(Dl,(0,Te.Z)({data:cr,rowKey:La,index:ba},sa))}):No=ue.createElement("div",{className:Le()("".concat(Qt,"-placeholder"))},ue.createElement(Dt,{component:"div",prefixCls:Qt},Jt)),ue.createElement(ai.Provider,{value:Pr},No)}),Nl=te(iu),Kl=Nl,Wl=function(fe,De){var ze=De.ref,tt=De.onScroll;return ue.createElement(Kl,{ref:ze,data:fe,onScroll:tt})},Su=100;function it(ce){var fe=ce.columns,De=ce.scroll,ze=ce.prefixCls,tt=ze===void 0?si:ze,nt=ce.className,bt=ce.listItemHeight,zt=De||{},Ot=zt.x,Qt=zt.y;typeof Ot!="number"&&(Ot=((fe||[]).length+1)*Su),typeof Qt!="number"&&(Qt=500);var fn=ue.useMemo(function(){return{scrollY:Qt,listItemHeight:bt}},[Qt,bt]);return ue.createElement(Hi.Provider,{value:fn},ue.createElement(cl,(0,Te.Z)({},ce,{className:Le()(nt,"".concat(tt,"-virtual")),scroll:(0,Se.Z)((0,Se.Z)({},De),{},{x:Ot}),components:{body:Wl},columns:fe,internalHooks:ie,tailor:!0})))}function ut(ce){return z(it,ce)}var kt=ut(),Tn=null;function kn(ce){return null}var nn=kn;function dn(ce){return null}var _t=dn,Zt=ee(10366),In=ee(58375),xa=ee(53124),Xr=ee(88258),Nr=ee(98675),$o=ee(25378),Uo=ee(24457),fr=ee(28452),Wa=ee(57953),Ea=ee(46605);function so(ce){return function(De){let{prefixCls:ze,onExpand:tt,record:nt,expanded:bt,expandable:zt}=De;const Ot=`${ze}-row-expand-icon`;return ue.createElement("button",{type:"button",onClick:Qt=>{tt(nt,Qt),Qt.stopPropagation()},className:Le()(Ot,{[`${Ot}-spaced`]:!zt,[`${Ot}-expanded`]:zt&&bt,[`${Ot}-collapsed`]:zt&&!bt}),"aria-label":bt?ce.collapse:ce.expand,"aria-expanded":bt})}}var ho=so;function Vo(ce,fe){return"key"in ce&&ce.key!==void 0&&ce.key!==null?ce.key:ce.dataIndex?Array.isArray(ce.dataIndex)?ce.dataIndex.join("."):ce.dataIndex:fe}function Jo(ce,fe){return fe?`${fe}-${ce}`:`${ce}`}function co(ce,fe){return typeof ce=="function"?ce(fe):ce}function Yo(ce,fe){const De=co(ce,fe);return Object.prototype.toString.call(De)==="[object Object]"?"":De}var Po={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"},ir=Po,ko=ee(74643),Xo=function(fe,De){return ue.createElement(ko.Z,(0,Te.Z)({},fe,{ref:De,icon:ir}))},hi=ue.forwardRef(Xo),rl=ee(7699),lu=ee(57838);function Je(ce){const fe=ue.useRef(ce),De=(0,lu.Z)();return[()=>fe.current,ze=>{fe.current=ze,De()}]}var ot=ee(71577),mt=ee(84567),At=ee(85418),gn=ee(32983),Gn=ee(68508),Fa=ee(76529),ca=ee(78045),$n=ee(79870),cn=ee(72395),ua=ee(69677);function Ka(ce){let{value:fe,onChange:De,filterSearch:ze,tablePrefixCls:tt,locale:nt}=ce;return ze?ue.createElement("div",{className:`${tt}-filter-dropdown-search`},ue.createElement(ua.default,{prefix:ue.createElement(cn.Z,null),placeholder:nt.filterSearchPlaceholder,onChange:De,value:fe,htmlSize:1,className:`${tt}-filter-dropdown-search-input`})):null}var qr=Ka,$r=ee(92389);const ya=ce=>{const{keyCode:fe}=ce;fe===$r.Z.ENTER&&ce.stopPropagation()};var Zn=ue.forwardRef((ce,fe)=>ue.createElement("div",{className:ce.className,onClick:De=>De.stopPropagation(),onKeyDown:ya,ref:fe},ce.children));function Xn(ce){let fe=[];return(ce||[]).forEach(De=>{let{value:ze,children:tt}=De;fe.push(ze),tt&&(fe=[].concat((0,Ao.Z)(fe),(0,Ao.Z)(Xn(tt))))}),fe}function dr(ce){return ce.some(fe=>{let{children:De}=fe;return De})}function he(ce,fe){return typeof fe=="string"||typeof fe=="number"?fe==null?void 0:fe.toString().toLowerCase().includes(ce.trim().toLowerCase()):!1}function Ee(ce){let{filters:fe,prefixCls:De,filteredKeys:ze,filterMultiple:tt,searchValue:nt,filterSearch:bt}=ce;return fe.map((zt,Ot)=>{const Qt=String(zt.value);if(zt.children)return{key:Qt||Ot,label:zt.text,popupClassName:`${De}-dropdown-submenu`,children:Ee({filters:zt.children,prefixCls:De,filteredKeys:ze,filterMultiple:tt,searchValue:nt,filterSearch:bt})};const fn=tt?mt.default:ca.ZP,Jt={key:zt.value!==void 0?Qt:Ot,label:ue.createElement(ue.Fragment,null,ue.createElement(fn,{checked:ze.includes(Qt)}),ue.createElement("span",null,zt.text))};return nt.trim()?typeof bt=="function"?bt(nt,zt)?Jt:null:he(nt,zt.text)?Jt:null:Jt})}function We(ce){var fe,De;const{tablePrefixCls:ze,prefixCls:tt,column:nt,dropdownPrefixCls:bt,columnKey:zt,filterMultiple:Ot,filterMode:Qt="menu",filterSearch:fn=!1,filterState:Jt,triggerFilter:Hn,locale:zn,children:Qn,getPopupContainer:za}=ce,{filterDropdownOpen:Da,onFilterDropdownOpenChange:ja,filterResetToDefaultFilteredValue:Na,defaultFilteredValue:qa,filterDropdownVisible:Tr,onFilterDropdownVisibleChange:hr}=nt,[Pr,So]=ue.useState(!1),No=!!(Jt&&(!((fe=Jt.filteredKeys)===null||fe===void 0)&&fe.length||Jt.forceFiltered)),cr=kr=>{So(kr),ja==null||ja(kr),hr==null||hr(kr)},ba=(De=Da!=null?Da:Tr)!==null&&De!==void 0?De:Pr,sa=Jt==null?void 0:Jt.filteredKeys,[La,tr]=Je(sa||[]),Sr=kr=>{let{selectedKeys:Mo}=kr;tr(Mo)},io=(kr,Mo)=>{let{node:ii,checked:li}=Mo;Sr(Ot?{selectedKeys:kr}:{selectedKeys:li&&ii.key?[ii.key]:[]})};ue.useEffect(()=>{Pr&&Sr({selectedKeys:sa||[]})},[sa]);const[Jr,Hr]=ue.useState([]),Io=kr=>{Hr(kr)},[Go,ri]=ue.useState(""),oi=kr=>{const{value:Mo}=kr.target;ri(Mo)};ue.useEffect(()=>{Pr||ri("")},[Pr]);const el=kr=>{const Mo=kr&&kr.length?kr:null;if(Mo===null&&(!Jt||!Jt.filteredKeys)||(0,rl.Z)(Mo,Jt==null?void 0:Jt.filteredKeys,!0))return null;Hn({column:nt,key:zt,filteredKeys:Mo})},Ui=()=>{cr(!1),el(La())},_o=function(){let{confirm:kr,closeDropdown:Mo}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};kr&&el([]),Mo&&cr(!1),ri(""),tr(Na?(qa||[]).map(ii=>String(ii)):[])},fl=function(){let{closeDropdown:kr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};kr&&cr(!1),el(La())},ui=kr=>{kr&&sa!==void 0&&tr(sa||[]),cr(kr),!kr&&!nt.filterDropdown&&Ui()},Vi=Le()({[`${bt}-menu-without-submenu`]:!dr(nt.filters||[])}),ji=kr=>{if(kr.target.checked){const Mo=Xn(nt==null?void 0:nt.filters).map(ii=>String(ii));tr(Mo)}else tr([])},nu=kr=>{let{filters:Mo}=kr;return(Mo||[]).map((ii,li)=>{const Vl=String(ii.value),_l={title:ii.text,key:ii.value!==void 0?Vl:li};return ii.children&&(_l.children=nu({filters:ii.children})),_l})},po=kr=>{var Mo;return Object.assign(Object.assign({},kr),{text:kr.title,value:kr.key,children:((Mo=kr.children)===null||Mo===void 0?void 0:Mo.map(ii=>po(ii)))||[]})};let no;if(typeof nt.filterDropdown=="function")no=nt.filterDropdown({prefixCls:`${bt}-custom`,setSelectedKeys:kr=>Sr({selectedKeys:kr}),selectedKeys:La(),confirm:fl,clearFilters:_o,filters:nt.filters,visible:ba,close:()=>{cr(!1)}});else if(nt.filterDropdown)no=nt.filterDropdown;else{const kr=La()||[],Mo=()=>(nt.filters||[]).length===0?ue.createElement(gn.Z,{image:gn.Z.PRESENTED_IMAGE_SIMPLE,description:zn.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Qt==="tree"?ue.createElement(ue.Fragment,null,ue.createElement(qr,{filterSearch:fn,value:Go,onChange:oi,tablePrefixCls:ze,locale:zn}),ue.createElement("div",{className:`${ze}-filter-dropdown-tree`},Ot?ue.createElement(mt.default,{checked:kr.length===Xn(nt.filters).length,indeterminate:kr.length>0&&kr.length<Xn(nt.filters).length,className:`${ze}-filter-dropdown-checkall`,onChange:ji},zn.filterCheckall):null,ue.createElement($n.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Ot,checkStrictly:!Ot,className:`${bt}-menu`,onCheck:io,checkedKeys:kr,selectedKeys:kr,showIcon:!1,treeData:nu({filters:nt.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Go.trim()?li=>typeof fn=="function"?fn(Go,po(li)):he(Go,li.title):void 0}))):ue.createElement(ue.Fragment,null,ue.createElement(qr,{filterSearch:fn,value:Go,onChange:oi,tablePrefixCls:ze,locale:zn}),ue.createElement(Gn.default,{selectable:!0,multiple:Ot,prefixCls:`${bt}-menu`,className:Vi,onSelect:Sr,onDeselect:Sr,selectedKeys:kr,getPopupContainer:za,openKeys:Jr,onOpenChange:Io,items:Ee({filters:nt.filters||[],filterSearch:fn,prefixCls:tt,filteredKeys:La(),filterMultiple:Ot,searchValue:Go})})),ii=()=>Na?(0,rl.Z)((qa||[]).map(li=>String(li)),kr,!0):kr.length===0;no=ue.createElement(ue.Fragment,null,Mo(),ue.createElement("div",{className:`${tt}-dropdown-btns`},ue.createElement(ot.ZP,{type:"link",size:"small",disabled:ii(),onClick:()=>_o()},zn.filterReset),ue.createElement(ot.ZP,{type:"primary",size:"small",onClick:Ui},zn.filterConfirm)))}nt.filterDropdown&&(no=ue.createElement(Fa.J,{selectable:void 0},no));const ao=()=>ue.createElement(Zn,{className:`${tt}-dropdown`},no);let Vr;typeof nt.filterIcon=="function"?Vr=nt.filterIcon(No):nt.filterIcon?Vr=nt.filterIcon:Vr=ue.createElement(hi,null);const{direction:pi}=ue.useContext(xa.E_);return ue.createElement("div",{className:`${tt}-column`},ue.createElement("span",{className:`${ze}-column-title`},Qn),ue.createElement(At.Z,{dropdownRender:ao,trigger:["click"],open:ba,onOpenChange:ui,getPopupContainer:za,placement:pi==="rtl"?"bottomLeft":"bottomRight"},ue.createElement("span",{role:"button",tabIndex:-1,className:Le()(`${tt}-trigger`,{active:No}),onClick:kr=>{kr.stopPropagation()}},Vr)))}var $e=We;function at(ce,fe,De){let ze=[];return(ce||[]).forEach((tt,nt)=>{var bt;const zt=Jo(nt,De);if(tt.filters||"filterDropdown"in tt||"onFilter"in tt)if("filteredValue"in tt){let Ot=tt.filteredValue;"filterDropdown"in tt||(Ot=(bt=Ot==null?void 0:Ot.map(String))!==null&&bt!==void 0?bt:Ot),ze.push({column:tt,key:Vo(tt,zt),filteredKeys:Ot,forceFiltered:tt.filtered})}else ze.push({column:tt,key:Vo(tt,zt),filteredKeys:fe&&tt.defaultFilteredValue?tt.defaultFilteredValue:void 0,forceFiltered:tt.filtered});"children"in tt&&(ze=[].concat((0,Ao.Z)(ze),(0,Ao.Z)(at(tt.children,fe,zt))))}),ze}function ft(ce,fe,De,ze,tt,nt,bt,zt){return De.map((Ot,Qt)=>{const fn=Jo(Qt,zt),{filterMultiple:Jt=!0,filterMode:Hn,filterSearch:zn}=Ot;let Qn=Ot;if(Qn.filters||Qn.filterDropdown){const za=Vo(Qn,fn),Da=ze.find(ja=>{let{key:Na}=ja;return za===Na});Qn=Object.assign(Object.assign({},Qn),{title:ja=>ue.createElement($e,{tablePrefixCls:ce,prefixCls:`${ce}-filter`,dropdownPrefixCls:fe,column:Qn,columnKey:za,filterState:Da,filterMultiple:Jt,filterMode:Hn,filterSearch:zn,triggerFilter:nt,locale:tt,getPopupContainer:bt},co(Ot.title,ja))})}return"children"in Qn&&(Qn=Object.assign(Object.assign({},Qn),{children:ft(ce,fe,Qn.children,ze,tt,nt,bt,fn)})),Qn})}function Ht(ce){const fe={};return ce.forEach(De=>{let{key:ze,filteredKeys:tt,column:nt}=De;const{filters:bt,filterDropdown:zt}=nt;if(zt)fe[ze]=tt||null;else if(Array.isArray(tt)){const Ot=Xn(bt);fe[ze]=Ot.filter(Qt=>tt.includes(String(Qt)))}else fe[ze]=null}),fe}function yn(ce,fe){return fe.reduce((De,ze)=>{const{column:{onFilter:tt,filters:nt},filteredKeys:bt}=ze;return tt&&bt&&bt.length?De.filter(zt=>bt.some(Ot=>{const Qt=Xn(nt),fn=Qt.findIndex(Hn=>String(Hn)===String(Ot)),Jt=fn!==-1?Qt[fn]:Ot;return tt(Jt,zt)})):De},ce)}const An=ce=>ce.flatMap(fe=>"children"in fe?[fe].concat((0,Ao.Z)(An(fe.children||[]))):[fe]);function Jn(ce){let{prefixCls:fe,dropdownPrefixCls:De,mergedColumns:ze,onFilterChange:tt,getPopupContainer:nt,locale:bt}=ce;const zt=ue.useMemo(()=>An(ze||[]),[ze]),[Ot,Qt]=ue.useState(()=>at(zt,!0)),fn=ue.useMemo(()=>{const Qn=at(zt,!1);if(Qn.length===0)return Qn;let za=!0,Da=!0;if(Qn.forEach(ja=>{let{filteredKeys:Na}=ja;Na!==void 0?za=!1:Da=!1}),za){const ja=(zt||[]).map((Na,qa)=>Vo(Na,Jo(qa)));return Ot.filter(Na=>{let{key:qa}=Na;return ja.includes(qa)}).map(Na=>{const qa=zt[ja.findIndex(Tr=>Tr===Na.key)];return Object.assign(Object.assign({},Na),{column:Object.assign(Object.assign({},Na.column),qa),forceFiltered:qa.filtered})})}return Qn},[zt,Ot]),Jt=ue.useMemo(()=>Ht(fn),[fn]),Hn=Qn=>{const za=fn.filter(Da=>{let{key:ja}=Da;return ja!==Qn.key});za.push(Qn),Qt(za),tt(Ht(za),za)};return[Qn=>ft(fe,De,Qn,fn,bt,Hn,nt),fn,Jt]}var On=Jn;function pa(ce,fe,De){const ze=ue.useRef({});function tt(nt){if(!ze.current||ze.current.data!==ce||ze.current.childrenColumnName!==fe||ze.current.getRowKey!==De){let zt=function(Ot){Ot.forEach((Qt,fn)=>{const Jt=De(Qt,fn);bt.set(Jt,Qt),Qt&&typeof Qt=="object"&&fe in Qt&&zt(Qt[fe]||[])})};const bt=new Map;zt(ce),ze.current={data:ce,childrenColumnName:fe,kvMap:bt,getRowKey:De}}return ze.current.kvMap.get(nt)}return[tt]}var Ua=ee(38780),Ln=function(ce,fe){var De={};for(var ze in ce)Object.prototype.hasOwnProperty.call(ce,ze)&&fe.indexOf(ze)<0&&(De[ze]=ce[ze]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,ze=Object.getOwnPropertySymbols(ce);tt<ze.length;tt++)fe.indexOf(ze[tt])<0&&Object.prototype.propertyIsEnumerable.call(ce,ze[tt])&&(De[ze[tt]]=ce[ze[tt]]);return De};const ia=10;function Ia(ce,fe){const De={current:ce.current,pageSize:ce.pageSize};return Object.keys(fe&&typeof fe=="object"?fe:{}).forEach(tt=>{const nt=ce[tt];typeof nt!="function"&&(De[tt]=nt)}),De}function Oa(ce,fe,De){const ze=De&&typeof De=="object"?De:{},{total:tt=0}=ze,nt=Ln(ze,["total"]),[bt,zt]=(0,ue.useState)(()=>({current:"defaultCurrent"in nt?nt.defaultCurrent:1,pageSize:"defaultPageSize"in nt?nt.defaultPageSize:ia})),Ot=(0,Ua.Z)(bt,nt,{total:tt>0?tt:ce}),Qt=Math.ceil((tt||ce)/Ot.pageSize);Ot.current>Qt&&(Ot.current=Qt||1);const fn=(Hn,zn)=>{zt({current:Hn!=null?Hn:1,pageSize:zn||Ot.pageSize})},Jt=(Hn,zn)=>{var Qn;De&&((Qn=De.onChange)===null||Qn===void 0||Qn.call(De,Hn,zn)),fn(Hn,zn),fe(Hn,zn||(Ot==null?void 0:Ot.pageSize))};return De===!1?[{},()=>{}]:[Object.assign(Object.assign({},Ot),{onChange:Jt}),fn]}var sr=Oa,wr=ee(42922),zr=ee(29873),Zr=ee(97153),yo=ee(83898),vr=ee(5663);const Or={},Gr="SELECT_ALL",lr="SELECT_INVERT",Lr="SELECT_NONE",Ur=[],Oo=(ce,fe)=>{let De=[];return(fe||[]).forEach(ze=>{De.push(ze),ze&&typeof ze=="object"&&ce in ze&&(De=[].concat((0,Ao.Z)(De),(0,Ao.Z)(Oo(ce,ze[ce]))))}),De};var bo=(ce,fe)=>{const{preserveSelectedRowKeys:De,selectedRowKeys:ze,defaultSelectedRowKeys:tt,getCheckboxProps:nt,onChange:bt,onSelect:zt,onSelectAll:Ot,onSelectInvert:Qt,onSelectNone:fn,onSelectMultiple:Jt,columnWidth:Hn,type:zn,selections:Qn,fixed:za,renderCell:Da,hideSelectAll:ja,checkStrictly:Na=!0}=fe||{},{prefixCls:qa,data:Tr,pageData:hr,getRecordByKey:Pr,getRowKey:So,expandType:No,childrenColumnName:cr,locale:ba,getPopupContainer:sa}=ce,[La,tr]=(0,vr.Z)(ze||tt||Ur,{value:ze}),Sr=ue.useRef(new Map),io=(0,ue.useCallback)(po=>{if(De){const no=new Map;po.forEach(ao=>{let Vr=Pr(ao);!Vr&&Sr.current.has(ao)&&(Vr=Sr.current.get(ao)),no.set(ao,Vr)}),Sr.current=no}},[Pr,De]);ue.useEffect(()=>{io(La)},[La]);const{keyEntities:Jr}=(0,ue.useMemo)(()=>{if(Na)return{keyEntities:null};let po=Tr;if(De){const no=new Set(Tr.map((Vr,pi)=>So(Vr,pi))),ao=Array.from(Sr.current).reduce((Vr,pi)=>{let[kr,Mo]=pi;return no.has(kr)?Vr:Vr.concat(Mo)},[]);po=[].concat((0,Ao.Z)(po),(0,Ao.Z)(ao))}return(0,yo.I8)(po,{externalGetKey:So,childrenPropName:cr})},[Tr,So,Na,cr,De]),Hr=(0,ue.useMemo)(()=>Oo(cr,hr),[cr,hr]),Io=(0,ue.useMemo)(()=>{const po=new Map;return Hr.forEach((no,ao)=>{const Vr=So(no,ao),pi=(nt?nt(no):null)||{};po.set(Vr,pi)}),po},[Hr,So,nt]),Go=(0,ue.useCallback)(po=>{var no;return!!(!((no=Io.get(So(po)))===null||no===void 0)&&no.disabled)},[Io,So]),[ri,oi]=(0,ue.useMemo)(()=>{if(Na)return[La||[],[]];const{checkedKeys:po,halfCheckedKeys:no}=(0,Zr.S)(La,!0,Jr,Go);return[po||[],no]},[La,Na,Jr,Go]),el=(0,ue.useMemo)(()=>{const po=zn==="radio"?ri.slice(0,1):ri;return new Set(po)},[ri,zn]),Ui=(0,ue.useMemo)(()=>zn==="radio"?new Set:new Set(oi),[oi,zn]),[_o,fl]=(0,ue.useState)(null);ue.useEffect(()=>{fe||tr(Ur)},[!!fe]);const ui=(0,ue.useCallback)((po,no)=>{let ao,Vr;io(po),De?(ao=po,Vr=po.map(pi=>Sr.current.get(pi))):(ao=[],Vr=[],po.forEach(pi=>{const kr=Pr(pi);kr!==void 0&&(ao.push(pi),Vr.push(kr))})),tr(ao),bt==null||bt(ao,Vr,{type:no})},[tr,Pr,bt,De]),Vi=(0,ue.useCallback)((po,no,ao,Vr)=>{if(zt){const pi=ao.map(kr=>Pr(kr));zt(Pr(po),no,pi,Vr)}ui(ao,"single")},[zt,Pr,ui]),ji=(0,ue.useMemo)(()=>!Qn||ja?null:(Qn===!0?[Gr,lr,Lr]:Qn).map(no=>no===Gr?{key:"all",text:ba.selectionAll,onSelect(){ui(Tr.map((ao,Vr)=>So(ao,Vr)).filter(ao=>{const Vr=Io.get(ao);return!(Vr!=null&&Vr.disabled)||el.has(ao)}),"all")}}:no===lr?{key:"invert",text:ba.selectInvert,onSelect(){const ao=new Set(el);hr.forEach((pi,kr)=>{const Mo=So(pi,kr),ii=Io.get(Mo);ii!=null&&ii.disabled||(ao.has(Mo)?ao.delete(Mo):ao.add(Mo))});const Vr=Array.from(ao);Qt&&Qt(Vr),ui(Vr,"invert")}}:no===Lr?{key:"none",text:ba.selectNone,onSelect(){fn==null||fn(),ui(Array.from(el).filter(ao=>{const Vr=Io.get(ao);return Vr==null?void 0:Vr.disabled}),"none")}}:no).map(no=>Object.assign(Object.assign({},no),{onSelect:function(){for(var ao,Vr,pi=arguments.length,kr=new Array(pi),Mo=0;Mo<pi;Mo++)kr[Mo]=arguments[Mo];(Vr=no.onSelect)===null||Vr===void 0||(ao=Vr).call.apply(ao,[no].concat(kr)),fl(null)}})),[Qn,el,hr,So,Qt,ui]);return[(0,ue.useCallback)(po=>{var no;if(!fe)return po.filter(Si=>Si!==Or);let ao=(0,Ao.Z)(po);const Vr=new Set(el),pi=Hr.map(So).filter(Si=>!Io.get(Si).disabled),kr=pi.every(Si=>Vr.has(Si)),Mo=pi.some(Si=>Vr.has(Si)),ii=()=>{const Si=[];kr?pi.forEach(Yi=>{Vr.delete(Yi),Si.push(Yi)}):pi.forEach(Yi=>{Vr.has(Yi)||(Vr.add(Yi),Si.push(Yi))});const bi=Array.from(Vr);Ot==null||Ot(!kr,bi.map(Yi=>Pr(Yi)),Si.map(Yi=>Pr(Yi))),ui(bi,"all"),fl(null)};let li;if(zn!=="radio"){let Si;if(ji){const qo={getPopupContainer:sa,items:ji.map((Ql,Il)=>{const{key:du,text:Fu,onSelect:Bu}=Ql;return{key:du!=null?du:Il,onClick:()=>{Bu==null||Bu(pi)},label:Fu}})};Si=ue.createElement("div",{className:`${qa}-selection-extra`},ue.createElement(At.Z,{menu:qo,getPopupContainer:sa},ue.createElement("span",null,ue.createElement(wr.Z,null))))}const bi=Hr.map((qo,Ql)=>{const Il=So(qo,Ql),du=Io.get(Il)||{};return Object.assign({checked:Vr.has(Il)},du)}).filter(qo=>{let{disabled:Ql}=qo;return Ql}),Yi=!!bi.length&&bi.length===Hr.length,El=Yi&&bi.every(qo=>{let{checked:Ql}=qo;return Ql}),ol=Yi&&bi.some(qo=>{let{checked:Ql}=qo;return Ql});li=!ja&&ue.createElement("div",{className:`${qa}-selection`},ue.createElement(mt.default,{checked:Yi?El:!!Hr.length&&kr,indeterminate:Yi?!El&&ol:!kr&&Mo,onChange:ii,disabled:Hr.length===0||Yi,"aria-label":Si?"Custom selection":"Select all",skipGroup:!0}),Si)}let Vl;zn==="radio"?Vl=(Si,bi,Yi)=>{const El=So(bi,Yi),ol=Vr.has(El);return{node:ue.createElement(ca.ZP,Object.assign({},Io.get(El),{checked:ol,onClick:qo=>qo.stopPropagation(),onChange:qo=>{Vr.has(El)||Vi(El,!0,[El],qo.nativeEvent)}})),checked:ol}}:Vl=(Si,bi,Yi)=>{var El;const ol=So(bi,Yi),qo=Vr.has(ol),Ql=Ui.has(ol),Il=Io.get(ol);let du;return No==="nest"?du=Ql:du=(El=Il==null?void 0:Il.indeterminate)!==null&&El!==void 0?El:Ql,{node:ue.createElement(mt.default,Object.assign({},Il,{indeterminate:du,checked:qo,skipGroup:!0,onClick:Fu=>Fu.stopPropagation(),onChange:Fu=>{let{nativeEvent:Bu}=Fu;const{shiftKey:Vu}=Bu;let Mu=-1,bu=-1;if(Vu&&Na){const Ol=new Set([_o,ol]);pi.some((au,Pl)=>{if(Ol.has(au))if(Mu===-1)Mu=Pl;else return bu=Pl,!0;return!1})}if(bu!==-1&&Mu!==bu&&Na){const Ol=pi.slice(Mu,bu+1),au=[];qo?Ol.forEach(Xi=>{Vr.has(Xi)&&(au.push(Xi),Vr.delete(Xi))}):Ol.forEach(Xi=>{Vr.has(Xi)||(au.push(Xi),Vr.add(Xi))});const Pl=Array.from(Vr);Jt==null||Jt(!qo,Pl.map(Xi=>Pr(Xi)),au.map(Xi=>Pr(Xi))),ui(Pl,"multiple")}else{const Ol=ri;if(Na){const au=qo?(0,zr._5)(Ol,ol):(0,zr.L0)(Ol,ol);Vi(ol,!qo,au,Bu)}else{const au=(0,Zr.S)([].concat((0,Ao.Z)(Ol),[ol]),!0,Jr,Go),{checkedKeys:Pl,halfCheckedKeys:Xi}=au;let Lu=Pl;if(qo){const Tu=new Set(Pl);Tu.delete(ol),Lu=(0,Zr.S)(Array.from(Tu),{checked:!1,halfCheckedKeys:Xi},Jr,Go).checkedKeys}Vi(ol,!qo,Lu,Bu)}}fl(qo?null:ol)}})),checked:qo}};const _l=(Si,bi,Yi)=>{const{node:El,checked:ol}=Vl(Si,bi,Yi);return Da?Da(ol,bi,Yi,El):El};if(!ao.includes(Or))if(ao.findIndex(Si=>{var bi;return((bi=Si[il])===null||bi===void 0?void 0:bi.columnType)==="EXPAND_COLUMN"})===0){const[Si,...bi]=ao;ao=[Si,Or].concat((0,Ao.Z)(bi))}else ao=[Or].concat((0,Ao.Z)(ao));const Pu=ao.indexOf(Or);ao=ao.filter((Si,bi)=>Si!==Or||bi===Pu);const sl=ao[Pu-1],yu=ao[Pu+1];let pl=za;pl===void 0&&((yu==null?void 0:yu.fixed)!==void 0?pl=yu.fixed:(sl==null?void 0:sl.fixed)!==void 0&&(pl=sl.fixed)),pl&&sl&&((no=sl[il])===null||no===void 0?void 0:no.columnType)==="EXPAND_COLUMN"&&sl.fixed===void 0&&(sl.fixed=pl);const su=Le()(`${qa}-selection-col`,{[`${qa}-selection-col-with-dropdown`]:Qn&&zn==="checkbox"}),Uu={fixed:pl,width:Hn,className:`${qa}-selection-column`,title:fe.columnTitle||li,render:_l,onCell:fe.onCell,[il]:{className:su}};return ao.map(Si=>Si===Or?Uu:Si)},[So,Hr,fe,ri,el,Ui,Hn,ji,No,_o,Io,Jt,Vi,Go]),el]},Lo=ee(33463),Co=ee(28575),ro=ee(83062);const mo="ascend",xo="descend";function mi(ce){return typeof ce.sorter=="object"&&typeof ce.sorter.multiple=="number"?ce.sorter.multiple:!1}function Ft(ce){return typeof ce=="function"?ce:ce&&typeof ce=="object"&&ce.compare?ce.compare:!1}function Pa(ce,fe){return fe?ce[ce.indexOf(fe)+1]:ce[0]}function Ir(ce,fe,De){let ze=[];function tt(nt,bt){ze.push({column:nt,key:Vo(nt,bt),multiplePriority:mi(nt),sortOrder:nt.sortOrder})}return(ce||[]).forEach((nt,bt)=>{const zt=Jo(bt,De);nt.children?("sortOrder"in nt&&tt(nt,zt),ze=[].concat((0,Ao.Z)(ze),(0,Ao.Z)(Ir(nt.children,fe,zt)))):nt.sorter&&("sortOrder"in nt?tt(nt,zt):fe&&nt.defaultSortOrder&&ze.push({column:nt,key:Vo(nt,zt),multiplePriority:mi(nt),sortOrder:nt.defaultSortOrder}))}),ze}function ra(ce,fe,De,ze,tt,nt,bt,zt){return(fe||[]).map((Ot,Qt)=>{const fn=Jo(Qt,zt);let Jt=Ot;if(Jt.sorter){const Hn=Jt.sortDirections||tt,zn=Jt.showSorterTooltip===void 0?bt:Jt.showSorterTooltip,Qn=Vo(Jt,fn),za=De.find(No=>{let{key:cr}=No;return cr===Qn}),Da=za?za.sortOrder:null,ja=Pa(Hn,Da);let Na;if(Ot.sortIcon)Na=Ot.sortIcon({sortOrder:Da});else{const No=Hn.includes(mo)&&ue.createElement(Co.Z,{className:Le()(`${ce}-column-sorter-up`,{active:Da===mo})}),cr=Hn.includes(xo)&&ue.createElement(Lo.Z,{className:Le()(`${ce}-column-sorter-down`,{active:Da===xo})});Na=ue.createElement("span",{className:Le()(`${ce}-column-sorter`,{[`${ce}-column-sorter-full`]:!!(No&&cr)})},ue.createElement("span",{className:`${ce}-column-sorter-inner`,"aria-hidden":"true"},No,cr))}const{cancelSort:qa,triggerAsc:Tr,triggerDesc:hr}=nt||{};let Pr=qa;ja===xo?Pr=hr:ja===mo&&(Pr=Tr);const So=typeof zn=="object"?zn:{title:Pr};Jt=Object.assign(Object.assign({},Jt),{className:Le()(Jt.className,{[`${ce}-column-sort`]:Da}),title:No=>{const cr=ue.createElement("div",{className:`${ce}-column-sorters`},ue.createElement("span",{className:`${ce}-column-title`},co(Ot.title,No)),Na);return zn?ue.createElement(ro.Z,Object.assign({},So),cr):cr},onHeaderCell:No=>{const cr=Ot.onHeaderCell&&Ot.onHeaderCell(No)||{},ba=cr.onClick,sa=cr.onKeyDown;cr.onClick=Sr=>{ze({column:Ot,key:Qn,sortOrder:ja,multiplePriority:mi(Ot)}),ba==null||ba(Sr)},cr.onKeyDown=Sr=>{Sr.keyCode===$r.Z.ENTER&&(ze({column:Ot,key:Qn,sortOrder:ja,multiplePriority:mi(Ot)}),sa==null||sa(Sr))};const La=Yo(Ot.title,{}),tr=La==null?void 0:La.toString();return Da?cr["aria-sort"]=Da==="ascend"?"ascending":"descending":cr["aria-label"]=tr||"",cr.className=Le()(cr.className,`${ce}-column-has-sorters`),cr.tabIndex=0,Ot.ellipsis&&(cr.title=(La!=null?La:"").toString()),cr}})}return"children"in Jt&&(Jt=Object.assign(Object.assign({},Jt),{children:ra(ce,Jt.children,De,ze,tt,nt,bt,fn)})),Jt})}function wn(ce){const{column:fe,sortOrder:De}=ce;return{column:fe,order:De,field:fe.dataIndex,columnKey:fe.key}}function Rr(ce){const fe=ce.filter(De=>{let{sortOrder:ze}=De;return ze}).map(wn);return fe.length===0&&ce.length?Object.assign(Object.assign({},wn(ce[ce.length-1])),{column:void 0}):fe.length<=1?fe[0]||{}:fe}function Ya(ce,fe,De){const ze=fe.slice().sort((bt,zt)=>zt.multiplePriority-bt.multiplePriority),tt=ce.slice(),nt=ze.filter(bt=>{let{column:{sorter:zt},sortOrder:Ot}=bt;return Ft(zt)&&Ot});return nt.length?tt.sort((bt,zt)=>{for(let Ot=0;Ot<nt.length;Ot+=1){const Qt=nt[Ot],{column:{sorter:fn},sortOrder:Jt}=Qt,Hn=Ft(fn);if(Hn&&Jt){const zn=Hn(bt,zt,Jt);if(zn!==0)return Jt===mo?zn:-zn}}return 0}).map(bt=>{const zt=bt[De];return zt?Object.assign(Object.assign({},bt),{[De]:Ya(zt,fe,De)}):bt}):tt}function Xa(ce){let{prefixCls:fe,mergedColumns:De,onSorterChange:ze,sortDirections:tt,tableLocale:nt,showSorterTooltip:bt}=ce;const[zt,Ot]=ue.useState(Ir(De,!0)),Qt=ue.useMemo(()=>{let Qn=!0;const za=Ir(De,!1);if(!za.length)return zt;const Da=[];function ja(qa){Qn?Da.push(qa):Da.push(Object.assign(Object.assign({},qa),{sortOrder:null}))}let Na=null;return za.forEach(qa=>{Na===null?(ja(qa),qa.sortOrder&&(qa.multiplePriority===!1?Qn=!1:Na=!0)):(Na&&qa.multiplePriority!==!1||(Qn=!1),ja(qa))}),Da},[De,zt]),fn=ue.useMemo(()=>{const Qn=Qt.map(za=>{let{column:Da,sortOrder:ja}=za;return{column:Da,order:ja}});return{sortColumns:Qn,sortColumn:Qn[0]&&Qn[0].column,sortOrder:Qn[0]&&Qn[0].order}},[Qt]);function Jt(Qn){let za;Qn.multiplePriority===!1||!Qt.length||Qt[0].multiplePriority===!1?za=[Qn]:za=[].concat((0,Ao.Z)(Qt.filter(Da=>{let{key:ja}=Da;return ja!==Qn.key})),[Qn]),Ot(za),ze(Rr(za),za)}return[Qn=>ra(fe,Qn,Qt,Jt,tt,nt,bt),Qt,fn,()=>Rr(Qt)]}function Ta(ce,fe){return ce.map(De=>{const ze=Object.assign({},De);return ze.title=co(De.title,fe),"children"in ze&&(ze.children=Ta(ze.children,fe)),ze})}function oo(ce){return[ue.useCallback(De=>Ta(De,ce),[ce])]}var xr=Fi((ce,fe)=>{const{_renderTimes:De}=ce,{_renderTimes:ze}=fe;return De!==ze}),zo=ut((ce,fe)=>{const{_renderTimes:De}=ce,{_renderTimes:ze}=fe;return De!==ze}),Bo=ee(84780),va=ee(14747),Mr=ee(67968),fo=ee(45503),jo=ce=>{const{componentCls:fe}=ce,De=`${ce.lineWidth}px ${ce.lineType} ${ce.tableBorderColor}`,ze=(tt,nt,bt)=>({[`&${fe}-${tt}`]:{[`> ${fe}-container`]:{[`> ${fe}-content, > ${fe}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${fe}-expanded-row-fixed`]:{margin:`-${nt}px -${bt+ce.lineWidth}px`}}}}}});return{[`${fe}-wrapper`]:{[`${fe}${fe}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${fe}-title`]:{border:De,borderBottom:0},[`> ${fe}-container`]:{borderInlineStart:De,borderTop:De,[`
|
|
> ${fe}-content,
|
|
> ${fe}-header,
|
|
> ${fe}-body,
|
|
> ${fe}-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:De},"> thead":{"> tr:not(:last-child) > th":{borderBottom:De},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${fe}-cell-fix-right-first::after`]:{borderInlineEnd:De}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${fe}-expanded-row-fixed`]:{margin:`-${ce.tablePaddingVertical}px -${ce.tablePaddingHorizontal+ce.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:ce.lineWidth,bottom:0,borderInlineEnd:De,content:'""'}}}}}},[`&${fe}-scroll-horizontal`]:{[`> ${fe}-container > ${fe}-body`]:{"> table > tbody":{[`
|
|
> tr${fe}-expanded-row,
|
|
> tr${fe}-placeholder
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},ze("middle",ce.tablePaddingVerticalMiddle,ce.tablePaddingHorizontalMiddle)),ze("small",ce.tablePaddingVerticalSmall,ce.tablePaddingHorizontalSmall)),{[`> ${fe}-footer`]:{border:De,borderTop:0}}),[`${fe}-cell`]:{[`${fe}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ce.lineWidth}px 0 ${ce.lineWidth}px ${ce.tableHeaderBg}`}},[`${fe}-bordered ${fe}-cell-scrollbar`]:{borderInlineEnd:De}}}},Bi=ce=>{const{componentCls:fe}=ce;return{[`${fe}-wrapper`]:{[`${fe}-cell-ellipsis`]:Object.assign(Object.assign({},va.vS),{wordBreak:"keep-all",[`
|
|
&${fe}-cell-fix-left-last,
|
|
&${fe}-cell-fix-right-first
|
|
`]:{overflow:"visible",[`${fe}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${fe}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Zi=ce=>{const{componentCls:fe}=ce;return{[`${fe}-wrapper`]:{[`${fe}-tbody > tr${fe}-placeholder`]:{textAlign:"center",color:ce.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:ce.colorBgContainer}}}}},gl=ee(49867),Ki=ce=>{const{componentCls:fe,antCls:De,controlInteractiveSize:ze,motionDurationSlow:tt,lineWidth:nt,paddingXS:bt,lineType:zt,tableBorderColor:Ot,tableExpandIconBg:Qt,tableExpandColumnWidth:fn,borderRadius:Jt,fontSize:Hn,fontSizeSM:zn,lineHeight:Qn,tablePaddingVertical:za,tablePaddingHorizontal:Da,tableExpandedRowBg:ja,paddingXXS:Na}=ce,qa=ze/2-nt,Tr=qa*2+nt*3,hr=`${nt}px ${zt} ${Ot}`,Pr=Na-nt;return{[`${fe}-wrapper`]:{[`${fe}-expand-icon-col`]:{width:fn},[`${fe}-row-expand-icon-cell`]:{textAlign:"center",[`${fe}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${fe}-row-indent`]:{height:1,float:"left"},[`${fe}-row-expand-icon`]:Object.assign(Object.assign({},(0,gl.N)(ce)),{position:"relative",float:"left",boxSizing:"border-box",width:Tr,height:Tr,padding:0,color:"inherit",lineHeight:`${Tr}px`,background:Qt,border:hr,borderRadius:Jt,transform:`scale(${ze/Tr})`,transition:`all ${tt}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${tt} ease-out`,content:'""'},"&::before":{top:qa,insetInlineEnd:Pr,insetInlineStart:Pr,height:nt},"&::after":{top:Pr,bottom:Pr,insetInlineStart:qa,width:nt,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"}}),[`${fe}-row-indent + ${fe}-row-expand-icon`]:{marginTop:(Hn*Qn-nt*3)/2-Math.ceil((zn*1.4-nt*3)/2),marginInlineEnd:bt},[`tr${fe}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:ja}},[`${De}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${fe}-expanded-row-fixed`]:{position:"relative",margin:`-${za}px -${Da}px`,padding:`${za}px ${Da}px`}}}},ml=ce=>{const{componentCls:fe,antCls:De,iconCls:ze,tableFilterDropdownWidth:tt,tableFilterDropdownSearchWidth:nt,paddingXXS:bt,paddingXS:zt,colorText:Ot,lineWidth:Qt,lineType:fn,tableBorderColor:Jt,tableHeaderIconColor:Hn,fontSizeSM:zn,tablePaddingHorizontal:Qn,borderRadius:za,motionDurationSlow:Da,colorTextDescription:ja,colorPrimary:Na,tableHeaderFilterActiveBg:qa,colorTextDisabled:Tr,tableFilterDropdownBg:hr,tableFilterDropdownHeight:Pr,controlItemBgHover:So,controlItemBgActive:No,boxShadowSecondary:cr,filterDropdownMenuBg:ba}=ce,sa=`${De}-dropdown`,La=`${fe}-filter-dropdown`,tr=`${De}-tree`,Sr=`${Qt}px ${fn} ${Jt}`;return[{[`${fe}-wrapper`]:{[`${fe}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${fe}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-bt,marginInline:`${bt}px ${-Qn/2}px`,padding:`0 ${bt}px`,color:Hn,fontSize:zn,borderRadius:za,cursor:"pointer",transition:`all ${Da}`,"&:hover":{color:ja,background:qa},"&.active":{color:Na}}}},{[`${De}-dropdown`]:{[La]:Object.assign(Object.assign({},(0,va.Wf)(ce)),{minWidth:tt,backgroundColor:hr,borderRadius:za,boxShadow:cr,overflow:"hidden",[`${sa}-menu`]:{maxHeight:Pr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:ba,"&:empty::after":{display:"block",padding:`${zt}px 0`,color:Tr,fontSize:zn,textAlign:"center",content:'"Not Found"'}},[`${La}-tree`]:{paddingBlock:`${zt}px 0`,paddingInline:zt,[tr]:{padding:0},[`${tr}-treenode ${tr}-node-content-wrapper:hover`]:{backgroundColor:So},[`${tr}-treenode-checkbox-checked ${tr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:No}}},[`${La}-search`]:{padding:zt,borderBottom:Sr,"&-input":{input:{minWidth:nt},[ze]:{color:Tr}}},[`${La}-checkall`]:{width:"100%",marginBottom:bt,marginInlineStart:bt},[`${La}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${zt-Qt}px ${zt}px`,overflow:"hidden",borderTop:Sr}})}},{[`${De}-dropdown ${La}, ${La}-submenu`]:{[`${De}-checkbox-wrapper + span`]:{paddingInlineStart:zt,color:Ot},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Wi=ce=>{const{componentCls:fe,lineWidth:De,colorSplit:ze,motionDurationSlow:tt,zIndexTableFixed:nt,tableBg:bt,zIndexTableSticky:zt}=ce,Ot=ze;return{[`${fe}-wrapper`]:{[`
|
|
${fe}-cell-fix-left,
|
|
${fe}-cell-fix-right
|
|
`]:{position:"sticky !important",zIndex:nt,background:bt},[`
|
|
${fe}-cell-fix-left-first::after,
|
|
${fe}-cell-fix-left-last::after
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-De,width:30,transform:"translateX(100%)",transition:`box-shadow ${tt}`,content:'""',pointerEvents:"none"},[`${fe}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
${fe}-cell-fix-right-first::after,
|
|
${fe}-cell-fix-right-last::after
|
|
`]:{position:"absolute",top:0,bottom:-De,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${tt}`,content:'""',pointerEvents:"none"},[`${fe}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:zt+1,width:30,transition:`box-shadow ${tt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${fe}-ping-left`]:{[`&:not(${fe}-has-fix-left) ${fe}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Ot}`}},[`
|
|
${fe}-cell-fix-left-first::after,
|
|
${fe}-cell-fix-left-last::after
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${Ot}`},[`${fe}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${fe}-ping-right`]:{[`&:not(${fe}-has-fix-right) ${fe}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Ot}`}},[`
|
|
${fe}-cell-fix-right-first::after,
|
|
${fe}-cell-fix-right-last::after
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${Ot}`}}}}},Sl=ce=>{const{componentCls:fe,antCls:De}=ce;return{[`${fe}-wrapper`]:{[`${fe}-pagination${De}-pagination`]:{margin:`${ce.margin}px 0`},[`${fe}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:ce.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},eu=ce=>{const{componentCls:fe,tableRadius:De}=ce;return{[`${fe}-wrapper`]:{[fe]:{[`${fe}-title, ${fe}-header`]:{borderRadius:`${De}px ${De}px 0 0`},[`${fe}-title + ${fe}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${fe}-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:De,borderStartEndRadius:De,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:De},"> *:last-child":{borderStartEndRadius:De}}},"&-footer":{borderRadius:`0 0 ${De}px ${De}px`}}}}},Eu=ce=>{const{componentCls:fe}=ce;return{[`${fe}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${fe}-pagination-left`]:{justifyContent:"flex-end"},[`${fe}-pagination-right`]:{justifyContent:"flex-start"},[`${fe}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${fe}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${fe}-row-indent`]:{float:"right"}}}}},xu=ce=>{const{componentCls:fe,antCls:De,iconCls:ze,fontSizeIcon:tt,padding:nt,paddingXS:bt,tableHeaderIconColor:zt,tableHeaderIconColorHover:Ot,tableSelectionColumnWidth:Qt}=ce;return{[`${fe}-wrapper`]:{[`${fe}-selection-col`]:{width:Qt,[`&${fe}-selection-col-with-dropdown`]:{width:Qt+tt+nt/4}},[`${fe}-bordered ${fe}-selection-col`]:{width:Qt+bt*2,[`&${fe}-selection-col-with-dropdown`]:{width:Qt+tt+nt/4+bt*2}},[`
|
|
table tr th${fe}-selection-column,
|
|
table tr td${fe}-selection-column
|
|
`]:{paddingInlineEnd:ce.paddingXS,paddingInlineStart:ce.paddingXS,textAlign:"center",[`${De}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${fe}-selection-column${fe}-cell-fix-left`]:{zIndex:ce.zIndexTableFixed+1},[`table tr th${fe}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${fe}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${fe}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${ce.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${ce.tablePaddingHorizontal/4}px`,[ze]:{color:zt,fontSize:tt,verticalAlign:"baseline","&:hover":{color:Ot}}}}}},wu=ce=>{const{componentCls:fe}=ce,De=(ze,tt,nt,bt)=>({[`${fe}${fe}-${ze}`]:{fontSize:bt,[`
|
|
${fe}-title,
|
|
${fe}-footer,
|
|
${fe}-cell,
|
|
${fe}-thead > tr > th,
|
|
${fe}-tbody > tr > th,
|
|
${fe}-tbody > tr > td,
|
|
tfoot > tr > th,
|
|
tfoot > tr > td
|
|
`]:{padding:`${tt}px ${nt}px`},[`${fe}-filter-trigger`]:{marginInlineEnd:`-${nt/2}px`},[`${fe}-expanded-row-fixed`]:{margin:`-${tt}px -${nt}px`},[`${fe}-tbody`]:{[`${fe}-wrapper:only-child ${fe}`]:{marginBlock:`-${tt}px`,marginInline:`${ce.tableExpandColumnWidth-nt}px -${nt}px`}},[`${fe}-selection-column`]:{paddingInlineStart:`${nt/4}px`}}});return{[`${fe}-wrapper`]:Object.assign(Object.assign({},De("middle",ce.tablePaddingVerticalMiddle,ce.tablePaddingHorizontalMiddle,ce.tableFontSizeMiddle)),De("small",ce.tablePaddingVerticalSmall,ce.tablePaddingHorizontalSmall,ce.tableFontSizeSmall))}},Ti=ce=>{const{componentCls:fe,marginXXS:De,fontSizeIcon:ze,tableHeaderIconColor:tt,tableHeaderIconColorHover:nt}=ce;return{[`${fe}-wrapper`]:{[`${fe}-thead th${fe}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${ce.motionDurationSlow}`,"&:hover":{background:ce.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:ce.colorPrimary},[`
|
|
&${fe}-cell-fix-left:hover,
|
|
&${fe}-cell-fix-right:hover
|
|
`]:{background:ce.tableFixedHeaderSortActiveBg}},[`${fe}-thead th${fe}-column-sort`]:{background:ce.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${fe}-column-sort`]:{background:ce.tableBodySortBg},[`${fe}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${fe}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${fe}-column-sorter`]:{marginInlineStart:De,color:tt,fontSize:0,transition:`color ${ce.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:ze,"&.active":{color:ce.colorPrimary}},[`${fe}-column-sorter-up + ${fe}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${fe}-column-sorters:hover ${fe}-column-sorter`]:{color:nt}}}},Ai=ce=>{const{componentCls:fe,opacityLoading:De,tableScrollThumbBg:ze,tableScrollThumbBgHover:tt,tableScrollThumbSize:nt,tableScrollBg:bt,zIndexTableSticky:zt,stickyScrollBarBorderRadius:Ot}=ce,Qt=`${ce.lineWidth}px ${ce.lineType} ${ce.tableBorderColor}`;return{[`${fe}-wrapper`]:{[`${fe}-sticky`]:{"&-holder":{position:"sticky",zIndex:zt,background:ce.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${nt}px !important`,zIndex:zt,display:"flex",alignItems:"center",background:bt,borderTop:Qt,opacity:De,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:nt,backgroundColor:ze,borderRadius:Ot,transition:`all ${ce.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:tt}}}}}}},ul=ce=>{const{componentCls:fe,lineWidth:De,tableBorderColor:ze}=ce,tt=`${De}px ${ce.lineType} ${ze}`;return{[`${fe}-wrapper`]:{[`${fe}-summary`]:{position:"relative",zIndex:ce.zIndexTableFixed,background:ce.tableBg,"> tr":{"> th, > td":{borderBottom:tt}}},[`div${fe}-summary`]:{boxShadow:`0 -${De}px 0 ${ze}`}}}},Ro=ce=>{const{componentCls:fe}=ce,De=`${ce.lineWidth}px ${ce.lineType} ${ce.tableBorderColor}`,ze=`${fe}-expanded-row-cell`;return{[`${fe}-wrapper`]:{[`${fe}-tbody-virtual`]:{[`${fe}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${fe}-cell`]:{borderBottom:De},[`${fe}-expanded-row`]:{[`${ze}${ze}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ce.lineWidth}px)`,borderInlineEnd:"none"}}},[`${fe}-bordered`]:{[`${fe}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:De,position:"absolute"},[`${fe}-cell`]:{borderInlineEnd:De,[`&${fe}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-ce.lineWidth,borderInlineStart:De}}}}}}};const Va=ce=>{const{componentCls:fe,fontWeightStrong:De,tablePaddingVertical:ze,tablePaddingHorizontal:tt,lineWidth:nt,lineType:bt,tableBorderColor:zt,tableFontSize:Ot,tableBg:Qt,tableRadius:fn,tableHeaderTextColor:Jt,motionDurationMid:Hn,tableHeaderBg:zn,tableHeaderCellSplitColor:Qn,tableRowHoverBg:za,tableSelectedRowBg:Da,tableSelectedRowHoverBg:ja,tableFooterTextColor:Na,tableFooterBg:qa,paddingContentVerticalLG:Tr}=ce,hr=`${nt}px ${bt} ${zt}`;return{[`${fe}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,va.dF)()),{[fe]:Object.assign(Object.assign({},(0,va.Wf)(ce)),{fontSize:Ot,background:Qt,borderRadius:`${fn}px ${fn}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${fn}px ${fn}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
${fe}-cell,
|
|
${fe}-thead > tr > th,
|
|
${fe}-tbody > tr > th,
|
|
${fe}-tbody > tr > td,
|
|
tfoot > tr > th,
|
|
tfoot > tr > td
|
|
`]:{position:"relative",padding:`${Tr}px ${tt}px`,overflowWrap:"break-word"},[`${fe}-title`]:{padding:`${ze}px ${tt}px`},[`${fe}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Jt,fontWeight:De,textAlign:"start",background:zn,borderBottom:hr,transition:`background ${Hn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${fe}-selection-column):not(${fe}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Qn,transform:"translateY(-50%)",transition:`background-color ${Hn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${fe}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Hn}, border-color ${Hn}`,borderBottom:hr,[`
|
|
> ${fe}-wrapper:only-child,
|
|
> ${fe}-expanded-row-fixed > ${fe}-wrapper:only-child
|
|
`]:{[fe]:{marginBlock:`-${ze}px`,marginInline:`${ce.tableExpandColumnWidth-tt}px -${tt}px`,[`${fe}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Jt,fontWeight:De,textAlign:"start",background:zn,borderBottom:hr,transition:`background ${Hn} ease`},[`
|
|
&${fe}-row:hover > th,
|
|
&${fe}-row:hover > td,
|
|
> th${fe}-cell-row-hover,
|
|
> td${fe}-cell-row-hover
|
|
`]:{background:za},[`&${fe}-row-selected`]:{"> th, > td":{background:Da},"&:hover > th, &:hover > td":{background:ja}}}},[`${fe}-footer`]:{padding:`${ze}px ${tt}px`,color:Na,background:qa}})}};var jr=(0,Mr.Z)("Table",ce=>{const{colorTextHeading:fe,colorSplit:De,colorIcon:ze,colorIconHover:tt,opacityLoading:nt,colorBgContainer:bt,controlInteractiveSize:zt,headerBg:Ot,headerColor:Qt,headerSortActiveBg:fn,headerSortHoverBg:Jt,bodySortBg:Hn,rowHoverBg:zn,rowSelectedBg:Qn,rowSelectedHoverBg:za,rowExpandedBg:Da,cellPaddingBlock:ja,cellPaddingInline:Na,cellPaddingBlockMD:qa,cellPaddingInlineMD:Tr,cellPaddingBlockSM:hr,cellPaddingInlineSM:Pr,borderColor:So,footerBg:No,footerColor:cr,headerBorderRadius:ba,cellFontSize:sa,cellFontSizeMD:La,cellFontSizeSM:tr,headerSplitColor:Sr,fixedHeaderSortActiveBg:io,headerFilterHoverBg:Jr,filterDropdownBg:Hr,expandIconBg:Io,selectionColumnWidth:Go,stickyScrollBarBg:ri}=ce,oi=new Bo.C(ze),el=new Bo.C(tt),Ui=2,_o=(0,fo.TS)(ce,{tableFontSize:sa,tableBg:bt,tableRadius:ba,tablePaddingVertical:ja,tablePaddingHorizontal:Na,tablePaddingVerticalMiddle:qa,tablePaddingHorizontalMiddle:Tr,tablePaddingVerticalSmall:hr,tablePaddingHorizontalSmall:Pr,tableBorderColor:So,tableHeaderTextColor:Qt,tableHeaderBg:Ot,tableFooterTextColor:cr,tableFooterBg:No,tableHeaderCellSplitColor:Sr,tableHeaderSortBg:fn,tableHeaderSortHoverBg:Jt,tableHeaderIconColor:oi.clone().setAlpha(oi.getAlpha()*nt).toRgbString(),tableHeaderIconColorHover:el.clone().setAlpha(el.getAlpha()*nt).toRgbString(),tableBodySortBg:Hn,tableFixedHeaderSortActiveBg:io,tableHeaderFilterActiveBg:Jr,tableFilterDropdownBg:Hr,tableRowHoverBg:zn,tableSelectedRowBg:Qn,tableSelectedRowHoverBg:za,zIndexTableFixed:Ui,zIndexTableSticky:Ui+1,tableFontSizeMiddle:La,tableFontSizeSmall:tr,tableSelectionColumnWidth:Go,tableExpandIconBg:Io,tableExpandColumnWidth:zt+2*ce.padding,tableExpandedRowBg:Da,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:ri,tableScrollThumbBgHover:fe,tableScrollBg:De});return[Va(_o),Sl(_o),ul(_o),Ti(_o),ml(_o),jo(_o),eu(_o),Ki(_o),ul(_o),Zi(_o),xu(_o),Wi(_o),Ai(_o),Bi(_o),wu(_o),Eu(_o),Ro(_o)]},ce=>{const{colorFillAlter:fe,colorBgContainer:De,colorTextHeading:ze,colorFillSecondary:tt,colorFillContent:nt,controlItemBgActive:bt,controlItemBgActiveHover:zt,padding:Ot,paddingSM:Qt,paddingXS:fn,colorBorderSecondary:Jt,borderRadiusLG:Hn,fontSize:zn,controlHeight:Qn,colorTextPlaceholder:za}=ce,Da=new Bo.C(tt).onBackground(De).toHexShortString(),ja=new Bo.C(nt).onBackground(De).toHexShortString(),Na=new Bo.C(fe).onBackground(De).toHexShortString();return{headerBg:Na,headerColor:ze,headerSortActiveBg:Da,headerSortHoverBg:ja,bodySortBg:Na,rowHoverBg:Na,rowSelectedBg:bt,rowSelectedHoverBg:zt,rowExpandedBg:fe,cellPaddingBlock:Ot,cellPaddingInline:Ot,cellPaddingBlockMD:Qt,cellPaddingInlineMD:fn,cellPaddingBlockSM:fn,cellPaddingInlineSM:fn,borderColor:Jt,headerBorderRadius:Hn,footerBg:Na,footerColor:ze,cellFontSize:zn,cellFontSizeMD:zn,cellFontSizeSM:zn,headerSplitColor:Jt,fixedHeaderSortActiveBg:Da,headerFilterHoverBg:nt,filterDropdownMenuBg:De,filterDropdownBg:De,expandIconBg:De,selectionColumnWidth:Qn,stickyScrollBarBg:za,stickyScrollBarBorderRadius:100}});const eo=[],wo=(ce,fe)=>{const{prefixCls:De,className:ze,rootClassName:tt,style:nt,size:bt,bordered:zt,dropdownPrefixCls:Ot,dataSource:Qt,pagination:fn,rowSelection:Jt,rowKey:Hn="key",rowClassName:zn,columns:Qn,children:za,childrenColumnName:Da,onChange:ja,getPopupContainer:Na,loading:qa,expandIcon:Tr,expandable:hr,expandedRowRender:Pr,expandIconColumnIndex:So,indentSize:No,scroll:cr,sortDirections:ba,locale:sa,showSorterTooltip:La=!0,virtual:tr}=ce,Sr=ue.useMemo(()=>Qn||vo(za),[Qn,za]),io=ue.useMemo(()=>Sr.some(ci=>ci.responsive),[Sr]),Jr=(0,$o.Z)(io),Hr=ue.useMemo(()=>{const ci=new Set(Object.keys(Jr).filter(ki=>Jr[ki]));return Sr.filter(ki=>!ki.responsive||ki.responsive.some(Hl=>ci.has(Hl)))},[Sr,Jr]),Io=(0,Zt.Z)(ce,["className","style","columns"]),{locale:Go=Uo.Z,direction:ri,table:oi,renderEmpty:el,getPrefixCls:Ui,getPopupContainer:_o}=ue.useContext(xa.E_),fl=(0,Nr.Z)(bt),ui=Object.assign(Object.assign({},Go.Table),sa),Vi=Qt||eo,ji=Ui("table",De),nu=Ui("dropdown",Ot),po=Object.assign({childrenColumnName:Da,expandIconColumnIndex:So},hr),{childrenColumnName:no="children"}=po,ao=ue.useMemo(()=>Vi.some(ci=>ci==null?void 0:ci[no])?"nest":Pr||hr&&hr.expandedRowRender?"row":null,[Vi]),Vr={body:ue.useRef()},pi=ue.useMemo(()=>typeof Hn=="function"?Hn:ci=>ci==null?void 0:ci[Hn],[Hn]),[kr]=pa(Vi,no,pi),Mo={},ii=function(ci,ki){let Hl=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Qi,$l,cu;const gu=Object.assign(Object.assign({},Mo),ci);Hl&&((Qi=Mo.resetPagination)===null||Qi===void 0||Qi.call(Mo),!(($l=gu.pagination)===null||$l===void 0)&&$l.current&&(gu.pagination.current=1),fn&&fn.onChange&&fn.onChange(1,(cu=gu.pagination)===null||cu===void 0?void 0:cu.pageSize)),cr&&cr.scrollToFirstRowOnChange!==!1&&Vr.body.current&&(0,In.Z)(0,{getContainer:()=>Vr.body.current}),ja==null||ja(gu.pagination,gu.filters,gu.sorter,{currentDataSource:yn(Ya(Vi,gu.sorterStates,no),gu.filterStates),action:ki})},li=(ci,ki)=>{ii({sorter:ci,sorterStates:ki},"sort",!1)},[Vl,_l,Pu,sl]=Xa({prefixCls:ji,mergedColumns:Hr,onSorterChange:li,sortDirections:ba||["ascend","descend"],tableLocale:ui,showSorterTooltip:La}),yu=ue.useMemo(()=>Ya(Vi,_l,no),[Vi,_l]);Mo.sorter=sl(),Mo.sorterStates=_l;const pl=(ci,ki)=>{ii({filters:ci,filterStates:ki},"filter",!0)},[su,Uu,Si]=On({prefixCls:ji,locale:ui,dropdownPrefixCls:nu,mergedColumns:Hr,onFilterChange:pl,getPopupContainer:Na||_o}),bi=yn(yu,Uu);Mo.filters=Si,Mo.filterStates=Uu;const Yi=ue.useMemo(()=>{const ci={};return Object.keys(Si).forEach(ki=>{Si[ki]!==null&&(ci[ki]=Si[ki])}),Object.assign(Object.assign({},Pu),{filters:ci})},[Pu,Si]),[El]=oo(Yi),ol=(ci,ki)=>{ii({pagination:Object.assign(Object.assign({},Mo.pagination),{current:ci,pageSize:ki})},"paginate")},[qo,Ql]=sr(bi.length,ol,fn);Mo.pagination=fn===!1?{}:Ia(qo,fn),Mo.resetPagination=Ql;const Il=ue.useMemo(()=>{if(fn===!1||!qo.pageSize)return bi;const{current:ci=1,total:ki,pageSize:Hl=ia}=qo;return bi.length<ki?bi.length>Hl?bi.slice((ci-1)*Hl,ci*Hl):bi:bi.slice((ci-1)*Hl,ci*Hl)},[!!fn,bi,qo&&qo.current,qo&&qo.pageSize,qo&&qo.total]),[du,Fu]=bo({prefixCls:ji,data:bi,pageData:Il,getRowKey:pi,getRecordByKey:kr,expandType:ao,childrenColumnName:no,locale:ui,getPopupContainer:Na||_o},Jt),Bu=(ci,ki,Hl)=>{let Qi;return typeof zn=="function"?Qi=Le()(zn(ci,ki,Hl)):Qi=Le()(zn),Le()({[`${ji}-row-selected`]:Fu.has(pi(ci,ki))},Qi)};po.__PARENT_RENDER_ICON__=po.expandIcon,po.expandIcon=po.expandIcon||Tr||ho(ui),ao==="nest"&&po.expandIconColumnIndex===void 0?po.expandIconColumnIndex=Jt?1:0:po.expandIconColumnIndex>0&&Jt&&(po.expandIconColumnIndex-=1),typeof po.indentSize!="number"&&(po.indentSize=typeof No=="number"?No:15);const Vu=ue.useCallback(ci=>El(du(su(Vl(ci)))),[Vl,su,du]);let Mu,bu;if(fn!==!1&&(qo!=null&&qo.total)){let ci;qo.size?ci=qo.size:ci=fl==="small"||fl==="middle"?"small":void 0;const ki=$l=>ue.createElement(fr.Z,Object.assign({},qo,{className:Le()(`${ji}-pagination ${ji}-pagination-${$l}`,qo.className),size:ci})),Hl=ri==="rtl"?"left":"right",{position:Qi}=qo;if(Qi!==null&&Array.isArray(Qi)){const $l=Qi.find(ku=>ku.includes("top")),cu=Qi.find(ku=>ku.includes("bottom")),gu=Qi.every(ku=>`${ku}`=="none");!$l&&!cu&&!gu&&(bu=ki(Hl)),$l&&(Mu=ki($l.toLowerCase().replace("top",""))),cu&&(bu=ki(cu.toLowerCase().replace("bottom","")))}else bu=ki(Hl)}let Ol;typeof qa=="boolean"?Ol={spinning:qa}:typeof qa=="object"&&(Ol=Object.assign({spinning:!0},qa));const[au,Pl]=jr(ji),[,Xi]=(0,Ea.Z)(),Lu=Le()(`${ji}-wrapper`,oi==null?void 0:oi.className,{[`${ji}-wrapper-rtl`]:ri==="rtl"},ze,tt,Pl),Tu=Object.assign(Object.assign({},oi==null?void 0:oi.style),nt),zu=sa&&sa.emptyText||(el==null?void 0:el("Table"))||ue.createElement(Xr.Z,{componentName:"Table"}),Ru=tr?zo:xr,rs={},cs=ue.useMemo(()=>{const{fontSize:ci,lineHeight:ki,padding:Hl,paddingXS:Qi,paddingSM:$l}=Xi,cu=Math.floor(ci*ki);switch(fl){case"large":return Hl*2+cu;case"small":return Qi*2+cu;default:return $l*2+cu}},[Xi,fl]);return tr&&(rs.listItemHeight=cs),au(ue.createElement("div",{ref:fe,className:Lu,style:Tu},ue.createElement(Wa.Z,Object.assign({spinning:!1},Ol),Mu,ue.createElement(Ru,Object.assign({},rs,Io,{columns:Hr,direction:ri,expandable:po,prefixCls:ji,className:Le()({[`${ji}-middle`]:fl==="middle",[`${ji}-small`]:fl==="small",[`${ji}-bordered`]:zt,[`${ji}-empty`]:Vi.length===0}),data:Il,rowKey:pi,rowClassName:Bu,emptyText:zu,internalHooks:ie,internalRefs:Vr,transformColumns:Vu})),bu)))};var Mi=ue.forwardRef(wo);const zi=(ce,fe)=>{const De=ue.useRef(0);return De.current+=1,ue.createElement(Mi,Object.assign({},ce,{ref:fe,_renderTimes:De.current}))},wl=ue.forwardRef(zi);wl.SELECTION_COLUMN=Or,wl.EXPAND_COLUMN=b,wl.SELECTION_ALL=Gr,wl.SELECTION_INVERT=lr,wl.SELECTION_NONE=Lr,wl.Column=nn,wl.ColumnGroup=_t,wl.Summary=Nn;var kl=wl,Ou=kl},66309:function(Bt,Ct,ee){"use strict";ee.d(Ct,{default:function(){return Se}});var b=ee(67294),ie=ee(73475),Be=ee(94184),Fe=ee.n(Be),Ne=ee(98787),je=ee(69760),ue=ee(45353),Ge=ee(53124),Ae=ee(14747),Me=ee(45503),Te=ee(67968);const Oe=ve=>{const{paddingXXS:Qe,lineWidth:Le,tagPaddingHorizontal:ke,componentCls:Ce}=ve,Ke=ke-Le,qe=Qe-Le;return{[Ce]:Object.assign(Object.assign({},(0,Ae.Wf)(ve)),{display:"inline-block",height:"auto",marginInlineEnd:ve.marginXS,paddingInline:Ke,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",[`&${Ce}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:ve.defaultColor},[`${Ce}-close-icon`]:{marginInlineStart:qe,color:ve.colorTextDescription,fontSize:ve.tagIconSize,cursor:"pointer",transition:`all ${ve.motionDurationMid}`,"&:hover":{color:ve.colorTextHeading}},[`&${Ce}-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(${Ce}-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:Ke}}),[`${Ce}-borderless`]:{borderColor:"transparent",background:ve.tagBorderlessBg}}},ye=ve=>{const{lineWidth:Qe,fontSizeIcon:Le}=ve,ke=ve.fontSizeSM,Ce=`${ve.lineHeightSM*ke}px`;return(0,Me.TS)(ve,{tagFontSize:ke,tagLineHeight:Ce,tagIconSize:Le-2*Qe,tagPaddingHorizontal:8,tagBorderlessBg:ve.colorFillTertiary})},se=ve=>({defaultBg:ve.colorFillQuaternary,defaultColor:ve.colorText});var E=(0,Te.Z)("Tag",ve=>{const Qe=ye(ve);return Oe(Qe)},se),a=function(ve,Qe){var Le={};for(var ke in ve)Object.prototype.hasOwnProperty.call(ve,ke)&&Qe.indexOf(ke)<0&&(Le[ke]=ve[ke]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,ke=Object.getOwnPropertySymbols(ve);Ce<ke.length;Ce++)Qe.indexOf(ke[Ce])<0&&Object.prototype.propertyIsEnumerable.call(ve,ke[Ce])&&(Le[ke[Ce]]=ve[ke[Ce]]);return Le},y=ve=>{const{prefixCls:Qe,style:Le,className:ke,checked:Ce,onChange:Ke,onClick:qe}=ve,Ue=a(ve,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Ye,tag:ct}=b.useContext(Ge.E_),yt=It=>{Ke==null||Ke(!Ce),qe==null||qe(It)},$t=Ye("tag",Qe),[an,rt]=E($t),jt=Fe()($t,`${$t}-checkable`,{[`${$t}-checkable-checked`]:Ce},ct==null?void 0:ct.className,ke,rt);return an(b.createElement("span",Object.assign({},Ue,{style:Object.assign(Object.assign({},Le),ct==null?void 0:ct.style),className:jt,onClick:yt})))},z=ee(98719);const te=ve=>(0,z.Z)(ve,(Qe,Le)=>{let{textColor:ke,lightBorderColor:Ce,lightColor:Ke,darkColor:qe}=Le;return{[`${ve.componentCls}-${Qe}`]:{color:ke,background:Ke,borderColor:Ce,"&-inverse":{color:ve.colorTextLightSolid,background:qe,borderColor:qe},[`&${ve.componentCls}-borderless`]:{borderColor:"transparent"}}}});var re=(0,Te.b)(["Tag","preset"],ve=>{const Qe=ye(ve);return te(Qe)},se);function oe(ve){return typeof ve!="string"?ve:ve.charAt(0).toUpperCase()+ve.slice(1)}const de=(ve,Qe,Le)=>{const ke=oe(Le);return{[`${ve.componentCls}-${Qe}`]:{color:ve[`color${Le}`],background:ve[`color${ke}Bg`],borderColor:ve[`color${ke}Border`],[`&${ve.componentCls}-borderless`]:{borderColor:"transparent"}}}};var pe=(0,Te.b)(["Tag","status"],ve=>{const Qe=ye(ve);return[de(Qe,"success","Success"),de(Qe,"processing","Info"),de(Qe,"error","Error"),de(Qe,"warning","Warning")]},se),ge=function(ve,Qe){var Le={};for(var ke in ve)Object.prototype.hasOwnProperty.call(ve,ke)&&Qe.indexOf(ke)<0&&(Le[ke]=ve[ke]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,ke=Object.getOwnPropertySymbols(ve);Ce<ke.length;Ce++)Qe.indexOf(ke[Ce])<0&&Object.prototype.propertyIsEnumerable.call(ve,ke[Ce])&&(Le[ke[Ce]]=ve[ke[Ce]]);return Le};const xe=(ve,Qe)=>{const{prefixCls:Le,className:ke,rootClassName:Ce,style:Ke,children:qe,icon:Ue,color:Ye,onClose:ct,closeIcon:yt,closable:$t,bordered:an=!0}=ve,rt=ge(ve,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:jt,direction:It,tag:hn}=b.useContext(Ge.E_),[Mt,Yt]=b.useState(!0);b.useEffect(()=>{"visible"in rt&&Yt(rt.visible)},[rt.visible]);const Re=(0,Ne.o2)(Ye),Wt=(0,Ne.yT)(Ye),Sn=Re||Wt,xt=Object.assign(Object.assign({backgroundColor:Ye&&!Sn?Ye:void 0},hn==null?void 0:hn.style),Ke),Et=jt("tag",Le),[Lt,He]=E(Et),Ze=Fe()(Et,hn==null?void 0:hn.className,{[`${Et}-${Ye}`]:Sn,[`${Et}-has-color`]:Ye&&!Sn,[`${Et}-hidden`]:!Mt,[`${Et}-rtl`]:It==="rtl",[`${Et}-borderless`]:!an},ke,Ce,He),Ve=tn=>{tn.stopPropagation(),ct==null||ct(tn),!tn.defaultPrevented&&Yt(!1)},[,gt]=(0,je.Z)($t,yt,tn=>tn===null?b.createElement(ie.Z,{className:`${Et}-close-icon`,onClick:Ve}):b.createElement("span",{className:`${Et}-close-icon`,onClick:Ve},tn),null,!1),Dt=typeof rt.onClick=="function"||qe&&qe.type==="a",Gt=Ue||null,Bn=Gt?b.createElement(b.Fragment,null,Gt,qe&&b.createElement("span",null,qe)):qe,Fn=b.createElement("span",Object.assign({},rt,{ref:Qe,className:Ze,style:xt}),Bn,gt,Re&&b.createElement(re,{key:"preset",prefixCls:Et}),Wt&&b.createElement(pe,{key:"status",prefixCls:Et}));return Lt(Dt?b.createElement(ue.Z,{component:"Tag"},Fn):Fn)},we=b.forwardRef(xe);we.CheckableTag=y;var Se=we},12845:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return pe}});var b=ee(94184),ie=ee.n(b),Be=ee(67294),Fe=ee(53124),Ne=function(ge,xe){var we={};for(var Se in ge)Object.prototype.hasOwnProperty.call(ge,Se)&&xe.indexOf(Se)<0&&(we[Se]=ge[Se]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Se=Object.getOwnPropertySymbols(ge);ve<Se.length;ve++)xe.indexOf(Se[ve])<0&&Object.prototype.propertyIsEnumerable.call(ge,Se[ve])&&(we[Se[ve]]=ge[Se[ve]]);return we},ue=ge=>{var{prefixCls:xe,className:we,color:Se="blue",dot:ve,pending:Qe=!1,position:Le,label:ke,children:Ce}=ge,Ke=Ne(ge,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:qe}=Be.useContext(Fe.E_),Ue=qe("timeline",xe),Ye=ie()(`${Ue}-item`,{[`${Ue}-item-pending`]:Qe},we),ct=/blue|red|green|gray/.test(Se||"")?void 0:Se,yt=ie()(`${Ue}-item-head`,{[`${Ue}-item-head-custom`]:!!ve,[`${Ue}-item-head-${Se}`]:!ct});return Be.createElement("li",Object.assign({},Ke,{className:Ye}),ke&&Be.createElement("div",{className:`${Ue}-item-label`},ke),Be.createElement("div",{className:`${Ue}-item-tail`}),Be.createElement("div",{className:yt,style:{borderColor:ct,color:ct}},ve),Be.createElement("div",{className:`${Ue}-item-content`},Ce))},Ge=ee(74902),Ae=ee(3407),Me=function(ge,xe){var we={};for(var Se in ge)Object.prototype.hasOwnProperty.call(ge,Se)&&xe.indexOf(Se)<0&&(we[Se]=ge[Se]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Se=Object.getOwnPropertySymbols(ge);ve<Se.length;ve++)xe.indexOf(Se[ve])<0&&Object.prototype.propertyIsEnumerable.call(ge,Se[ve])&&(we[Se[ve]]=ge[Se[ve]]);return we},Oe=ge=>{var{prefixCls:xe,className:we,pending:Se=!1,children:ve,items:Qe,rootClassName:Le,reverse:ke=!1,direction:Ce,hashId:Ke,pendingDot:qe,mode:Ue=""}=ge,Ye=Me(ge,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const ct=(Mt,Yt)=>Ue==="alternate"?Mt==="right"?`${xe}-item-right`:Mt==="left"?`${xe}-item-left`:Yt%2===0?`${xe}-item-left`:`${xe}-item-right`:Ue==="left"?`${xe}-item-left`:Ue==="right"?`${xe}-item-right`:Mt==="right"?`${xe}-item-right`:"",yt=(0,Ge.Z)(Qe||[]),$t=typeof Se=="boolean"?null:Se;Se&&yt.push({pending:!!Se,dot:qe||Be.createElement(Ae.Z,null),children:$t}),ke&&yt.reverse();const an=yt.length,rt=`${xe}-item-last`,jt=yt.filter(Mt=>!!Mt).map((Mt,Yt)=>{var Re;const Wt=Yt===an-2?rt:"",Sn=Yt===an-1?rt:"",{className:xt}=Mt,Et=Me(Mt,["className"]);return Be.createElement(ue,Object.assign({},Et,{className:ie()([xt,!ke&&Se?Wt:Sn,ct((Re=Mt==null?void 0:Mt.position)!==null&&Re!==void 0?Re:"",Yt)]),key:(Mt==null?void 0:Mt.key)||Yt}))}),It=yt.some(Mt=>!!(Mt!=null&&Mt.label)),hn=ie()(xe,{[`${xe}-pending`]:!!Se,[`${xe}-reverse`]:!!ke,[`${xe}-${Ue}`]:!!Ue&&!It,[`${xe}-label`]:It,[`${xe}-rtl`]:Ce==="rtl"},we,Le,Ke);return Be.createElement("ul",Object.assign({},Ye,{className:hn}),jt)},ye=ee(37419);function se(ge,xe){return ge&&Array.isArray(ge)?ge:(0,ye.Z)(xe).map(we=>{var Se,ve;return Object.assign({children:(ve=(Se=we==null?void 0:we.props)===null||Se===void 0?void 0:Se.children)!==null&&ve!==void 0?ve:""},we.props)})}var E=se,a=ee(14747),x=ee(67968),y=ee(45503);const z=ge=>{const{componentCls:xe}=ge;return{[xe]:Object.assign(Object.assign({},(0,a.Wf)(ge)),{margin:0,padding:0,listStyle:"none",[`${xe}-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":{[`${xe}-item-head`]:{fontSize:ge.fontSizeSM,backgroundColor:"transparent"},[`${xe}-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":{[`> ${xe}-item-tail`]:{display:"none"},[`> ${xe}-item-content`]:{minHeight:ge.controlHeightLG*1.2}}},[`&${xe}-alternate,
|
|
&${xe}-right,
|
|
&${xe}-label`]:{[`${xe}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:`-${ge.marginXXS}px`,"&-custom":{marginInlineStart:ge.tailWidth/2}},"&-left":{[`${xe}-item-content`]:{insetInlineStart:`calc(50% - ${ge.marginXXS}px)`,width:`calc(50% - ${ge.marginSM}px)`,textAlign:"start"}},"&-right":{[`${xe}-item-content`]:{width:`calc(50% - ${ge.marginSM}px)`,margin:0,textAlign:"end"}}}},[`&${xe}-right`]:{[`${xe}-item-right`]:{[`${xe}-item-tail,
|
|
${xe}-item-head,
|
|
${xe}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(ge.itemHeadSize+ge.tailWidth)/2}px)`},[`${xe}-item-content`]:{width:`calc(100% - ${ge.itemHeadSize+ge.marginXS}px)`}}},[`&${xe}-pending
|
|
${xe}-item-last
|
|
${xe}-item-tail`]:{display:"block",height:`calc(100% - ${ge.margin}px)`,borderInlineStart:`${ge.tailWidth}px dotted ${ge.tailColor}`},[`&${xe}-reverse
|
|
${xe}-item-last
|
|
${xe}-item-tail`]:{display:"none"},[`&${xe}-reverse ${xe}-item-pending`]:{[`${xe}-item-tail`]:{insetBlockStart:ge.margin,display:"block",height:`calc(100% - ${ge.margin}px)`,borderInlineStart:`${ge.tailWidth}px dotted ${ge.tailColor}`},[`${xe}-item-content`]:{minHeight:ge.controlHeightLG*1.2}},[`&${xe}-label`]:{[`${xe}-item-label`]:{position:"absolute",insetBlockStart:-(ge.fontSize*ge.lineHeight-ge.fontSize)+ge.tailWidth,width:`calc(50% - ${ge.marginSM}px)`,textAlign:"end"},[`${xe}-item-right`]:{[`${xe}-item-label`]:{insetInlineStart:`calc(50% + ${ge.marginSM}px)`,width:`calc(50% - ${ge.marginSM}px)`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${xe}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}};var te=(0,x.Z)("Timeline",ge=>{const xe=(0,y.TS)(ge,{itemHeadSize:10,customHeadPaddingVertical:ge.paddingXXS,paddingInlineEnd:2});return[z(xe)]},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,xe){var we={};for(var Se in ge)Object.prototype.hasOwnProperty.call(ge,Se)&&xe.indexOf(Se)<0&&(we[Se]=ge[Se]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Se=Object.getOwnPropertySymbols(ge);ve<Se.length;ve++)xe.indexOf(Se[ve])<0&&Object.prototype.propertyIsEnumerable.call(ge,Se[ve])&&(we[Se[ve]]=ge[Se[ve]]);return we};const oe=ge=>{const{getPrefixCls:xe,direction:we,timeline:Se}=Be.useContext(Fe.E_),{prefixCls:ve,children:Qe,items:Le,className:ke,style:Ce}=ge,Ke=re(ge,["prefixCls","children","items","className","style"]),qe=xe("timeline",ve),[Ue,Ye]=te(qe),ct=E(Le,Qe);return Ue(Be.createElement(Oe,Object.assign({},Ke,{className:ie()(Se==null?void 0:Se.className,ke),style:Object.assign(Object.assign({},Se==null?void 0:Se.style),Ce),prefixCls:qe,direction:we,items:ct,hashId:Ye})))};oe.Item=ue;var de=oe,pe=de},79870:function(Bt,Ct,ee){"use strict";ee.d(Ct,{default:function(){return Rl}});var b=ee(87462),ie=ee(4942),Be=ee(71002),Fe=ee(1413),Ne=ee(74902),je=ee(15671),ue=ee(43144),Ge=ee(97326),Ae=ee(60136),Me=ee(51630),Te=ee(94184),Oe=ee.n(Te),ye={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(qt){var bn=qt.keyCode;if(qt.altKey&&!qt.ctrlKey||qt.metaKey||bn>=ye.F1&&bn<=ye.F12)return!1;switch(bn){case ye.ALT:case ye.CAPS_LOCK:case ye.CONTEXT_MENU:case ye.CTRL:case ye.DOWN:case ye.END:case ye.ESC:case ye.HOME:case ye.INSERT:case ye.LEFT:case ye.MAC_FF_META:case ye.META:case ye.NUMLOCK:case ye.NUM_CENTER:case ye.PAGE_DOWN:case ye.PAGE_UP:case ye.PAUSE:case ye.PRINT_SCREEN:case ye.RIGHT:case ye.SHIFT:case ye.UP:case ye.WIN_KEY:case ye.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(qt){if(qt>=ye.ZERO&&qt<=ye.NINE||qt>=ye.NUM_ZERO&&qt<=ye.NUM_MULTIPLY||qt>=ye.A&&qt<=ye.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&qt===0)return!0;switch(qt){case ye.SPACE:case ye.QUESTION_MARK:case ye.NUM_PLUS:case ye.NUM_MINUS:case ye.NUM_PERIOD:case ye.NUM_DIVISION:case ye.SEMICOLON:case ye.DASH:case ye.EQUALS:case ye.COMMA:case ye.PERIOD:case ye.SLASH:case ye.APOSTROPHE:case ye.SINGLE_QUOTE:case ye.OPEN_SQUARE_BRACKET:case ye.BACKSLASH:case ye.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},se=ye,E=ee(34952),a=ee(72978),x=ee(67294),y=ee(69610);function z(Vt){var qt=Vt.dropPosition,bn=Vt.dropLevelOffset,et=Vt.indent,Pn={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(qt){case-1:Pn.top=0,Pn.left=-bn*et;break;case 1:Pn.bottom=0,Pn.left=-bn*et;break;case 0:Pn.bottom=0,Pn.left=et;break}return x.createElement("div",{style:Pn})}var te=ee(36459),re=ee(97685),oe=ee(45987);function de(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var pe=de()?x.useLayoutEffect:x.useEffect,ge=pe,xe=function(qt,bn){var et=React.useRef(!0);pe(function(){if(!et.current)return qt()},bn),pe(function(){return et.current=!1,function(){et.current=!0}},[])},we=ee(73299),Se=ee(73935);function ve(Vt){return Vt instanceof HTMLElement||Vt instanceof SVGElement}function Qe(Vt){return ve(Vt)?Vt:Vt instanceof x.Component?Se.findDOMNode(Vt):null}var Le=ee(28580);function ke(Vt,qt,bn){var et=React.useRef({});return(!("value"in et.current)||bn(et.current.condition,qt))&&(et.current.value=Vt(),et.current.condition=qt),et.current.value}function Ce(Vt,qt){typeof Vt=="function"?Vt(qt):(0,Be.Z)(Vt)==="object"&&Vt&&"current"in Vt&&(Vt.current=qt)}function Ke(){for(var Vt=arguments.length,qt=new Array(Vt),bn=0;bn<Vt;bn++)qt[bn]=arguments[bn];var et=qt.filter(function(Pn){return Pn});return et.length<=1?et[0]:function(Pn){qt.forEach(function(ha){Ce(ha,Pn)})}}function qe(){for(var Vt=arguments.length,qt=new Array(Vt),bn=0;bn<Vt;bn++)qt[bn]=arguments[bn];return useMemo(function(){return Ke.apply(void 0,qt)},qt,function(et,Pn){return et.length===Pn.length&&et.every(function(ha,Sa){return ha===Pn[Sa]})})}function Ue(Vt){var qt,bn,et=(0,Le.isMemo)(Vt)?Vt.type.type:Vt.type;return!(typeof et=="function"&&!((qt=et.prototype)!==null&&qt!==void 0&&qt.render)||typeof Vt=="function"&&!((bn=Vt.prototype)!==null&&bn!==void 0&&bn.render))}function Ye(Vt,qt){var bn={};return bn[Vt.toLowerCase()]=qt.toLowerCase(),bn["Webkit".concat(Vt)]="webkit".concat(qt),bn["Moz".concat(Vt)]="moz".concat(qt),bn["ms".concat(Vt)]="MS".concat(qt),bn["O".concat(Vt)]="o".concat(qt.toLowerCase()),bn}function ct(Vt,qt){var bn={animationend:Ye("Animation","AnimationEnd"),transitionend:Ye("Transition","TransitionEnd")};return Vt&&("AnimationEvent"in qt||delete bn.animationend.animation,"TransitionEvent"in qt||delete bn.transitionend.transition),bn}var yt=ct(de(),typeof window!="undefined"?window:{}),$t={};if(de()){var an=document.createElement("div");$t=an.style}var rt={};function jt(Vt){if(rt[Vt])return rt[Vt];var qt=yt[Vt];if(qt)for(var bn=Object.keys(qt),et=bn.length,Pn=0;Pn<et;Pn+=1){var ha=bn[Pn];if(Object.prototype.hasOwnProperty.call(qt,ha)&&ha in $t)return rt[Vt]=qt[ha],rt[Vt]}return""}var It=jt("animationend"),hn=jt("transitionend"),Mt=!!(It&&hn),Yt=It||"animationend",Re=hn||"transitionend";function Wt(Vt,qt){if(!Vt)return null;if((0,Be.Z)(Vt)==="object"){var bn=qt.replace(/-\w/g,function(et){return et[1].toUpperCase()});return Vt[bn]}return"".concat(Vt,"-").concat(qt)}var Sn="none",xt="appear",Et="enter",Lt="leave",He="none",Ze="prepare",Ve="start",gt="active",Dt="end";function Gt(Vt){var qt=x.useRef(!1),bn=x.useState(Vt),et=(0,re.Z)(bn,2),Pn=et[0],ha=et[1];x.useEffect(function(){return qt.current=!1,function(){qt.current=!0}},[]);function Sa(on,Dn){Dn&&qt.current||ha(on)}return[Pn,Sa]}var Bn=function(qt){return+setTimeout(qt,16)},Fn=function(qt){return clearTimeout(qt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Bn=function(qt){return window.requestAnimationFrame(qt)},Fn=function(qt){return window.cancelAnimationFrame(qt)});var tn=0,_n=new Map;function Xe(Vt){_n.delete(Vt)}var vt=function(qt){var bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;tn+=1;var et=tn;function Pn(ha){if(ha===0)Xe(et),qt();else{var Sa=Bn(function(){Pn(ha-1)});_n.set(et,Sa)}}return Pn(bn),et};vt.cancel=function(Vt){var qt=_n.get(Vt);return Xe(qt),Fn(qt)};var mn=vt,Cn=function(){var Vt=x.useRef(null);function qt(){mn.cancel(Vt.current)}function bn(et){var Pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;qt();var ha=mn(function(){Pn<=1?et({isCanceled:function(){return ha!==Vt.current}}):bn(et,Pn-1)});Vt.current=ha}return x.useEffect(function(){return function(){qt()}},[]),[bn,qt]},St=de()?x.useLayoutEffect:x.useEffect,vn=St,Nn=[Ze,Ve,gt,Dt],ln=!1,ma=!0;function Ut(Vt){return Vt===gt||Vt===Dt}var wt=function(Vt,qt){var bn=Gt(He),et=(0,re.Z)(bn,2),Pn=et[0],ha=et[1],Sa=Cn(),on=(0,re.Z)(Sa,2),Dn=on[0],un=on[1];function oa(){ha(Ze,!0)}return vn(function(){if(Pn!==He&&Pn!==Dt){var Ha=Nn.indexOf(Pn),gr=Nn[Ha+1],ar=qt(Pn);ar===ln?ha(gr,!0):Dn(function(br){function _a(){br.isCanceled()||ha(gr,!0)}ar===!0?_a():Promise.resolve(ar).then(_a)})}},[Vt,Pn]),x.useEffect(function(){return function(){un()}},[]),[oa,Pn]},Un=function(Vt){var qt=(0,x.useRef)(),bn=(0,x.useRef)(Vt);bn.current=Vt;var et=x.useCallback(function(Sa){bn.current(Sa)},[]);function Pn(Sa){Sa&&(Sa.removeEventListener(Re,et),Sa.removeEventListener(Yt,et))}function ha(Sa){qt.current&&qt.current!==Sa&&Pn(qt.current),Sa&&Sa!==qt.current&&(Sa.addEventListener(Re,et),Sa.addEventListener(Yt,et),qt.current=Sa)}return x.useEffect(function(){return function(){Pn(qt.current)}},[]),[ha,Pn]};function fa(Vt,qt,bn,et){var Pn=et.motionEnter,ha=Pn===void 0?!0:Pn,Sa=et.motionAppear,on=Sa===void 0?!0:Sa,Dn=et.motionLeave,un=Dn===void 0?!0:Dn,oa=et.motionDeadline,Ha=et.motionLeaveImmediately,gr=et.onAppearPrepare,ar=et.onEnterPrepare,br=et.onLeavePrepare,_a=et.onAppearStart,aa=et.onEnterStart,Xt=et.onLeaveStart,Wn=et.onAppearActive,ta=et.onEnterActive,$a=et.onLeaveActive,Er=et.onAppearEnd,Cr=et.onEnterEnd,Qr=et.onLeaveEnd,Br=et.onVisibleChanged,Kr=Gt(),Ca=(0,re.Z)(Kr,2),Wr=Ca[0],Ko=Ca[1],To=Gt(Sn),si=(0,re.Z)(To,2),Wo=si[0],di=si[1],uo=Gt(null),ti=(0,re.Z)(uo,2),Fi=ti[0],Li=ti[1],cl=(0,x.useRef)(!1),Al=(0,x.useRef)(null);function Hi(){return bn()}var ai=(0,x.useRef)(!1);function bl(it){var ut=Hi();if(!(it&&!it.deadline&&it.target!==ut)){var kt=ai.current,Tn;Wo===xt&&kt?Tn=Er==null?void 0:Er(ut,it):Wo===Et&&kt?Tn=Cr==null?void 0:Cr(ut,it):Wo===Lt&&kt&&(Tn=Qr==null?void 0:Qr(ut,it)),Wo!==Sn&&kt&&Tn!==!1&&(di(Sn,!0),Li(null,!0))}}var Ml=Un(bl),Zl=(0,re.Z)(Ml,1),Tl=Zl[0],Cl=x.useMemo(function(){var it,ut,kt;switch(Wo){case xt:return it={},(0,ie.Z)(it,Ze,gr),(0,ie.Z)(it,Ve,_a),(0,ie.Z)(it,gt,Wn),it;case Et:return ut={},(0,ie.Z)(ut,Ze,ar),(0,ie.Z)(ut,Ve,aa),(0,ie.Z)(ut,gt,ta),ut;case Lt:return kt={},(0,ie.Z)(kt,Ze,br),(0,ie.Z)(kt,Ve,Xt),(0,ie.Z)(kt,gt,$a),kt;default:return{}}},[Wo]),hu=wt(Wo,function(it){if(it===Ze){var ut=Cl[Ze];return ut?ut(Hi()):ln}if(Nl in Cl){var kt;Li(((kt=Cl[Nl])===null||kt===void 0?void 0:kt.call(Cl,Hi(),null))||null)}return Nl===gt&&(Tl(Hi()),oa>0&&(clearTimeout(Al.current),Al.current=setTimeout(function(){bl({deadline:!0})},oa))),ma}),Dl=(0,re.Z)(hu,2),iu=Dl[0],Nl=Dl[1],Kl=Ut(Nl);ai.current=Kl,vn(function(){Ko(qt);var it=cl.current;if(cl.current=!0,!!Vt){var ut;!it&&qt&&on&&(ut=xt),it&&qt&&ha&&(ut=Et),(it&&!qt&&un||!it&&Ha&&!qt&&un)&&(ut=Lt),ut&&(di(ut),iu())}},[qt]),(0,x.useEffect)(function(){(Wo===xt&&!on||Wo===Et&&!ha||Wo===Lt&&!un)&&di(Sn)},[on,ha,un]),(0,x.useEffect)(function(){return function(){cl.current=!1,clearTimeout(Al.current)}},[]);var Wl=x.useRef(!1);(0,x.useEffect)(function(){Wr&&(Wl.current=!0),Wr!==void 0&&Wo===Sn&&((Wl.current||Wr)&&(Br==null||Br(Wr)),Wl.current=!0)},[Wr,Wo]);var Su=Fi;return Cl[Ze]&&Nl===Ve&&(Su=(0,Fe.Z)({transition:"none"},Su)),[Wo,Nl,Su,Wr!=null?Wr:qt]}var wa=function(Vt){(0,Ae.Z)(bn,Vt);var qt=(0,Me.Z)(bn);function bn(){return(0,je.Z)(this,bn),qt.apply(this,arguments)}return(0,ue.Z)(bn,[{key:"render",value:function(){return this.props.children}}]),bn}(x.Component),la=wa;function rr(Vt){var qt=Vt;(0,Be.Z)(Vt)==="object"&&(qt=Vt.transitionSupport);function bn(Pn){return!!(Pn.motionName&&qt)}var et=x.forwardRef(function(Pn,ha){var Sa=Pn.visible,on=Sa===void 0?!0:Sa,Dn=Pn.removeOnLeave,un=Dn===void 0?!0:Dn,oa=Pn.forceRender,Ha=Pn.children,gr=Pn.motionName,ar=Pn.leavedClassName,br=Pn.eventProps,_a=bn(Pn),aa=(0,x.useRef)(),Xt=(0,x.useRef)();function Wn(){try{return aa.current instanceof HTMLElement?aa.current:Qe(Xt.current)}catch(uo){return null}}var ta=fa(_a,on,Wn,Pn),$a=(0,re.Z)(ta,4),Er=$a[0],Cr=$a[1],Qr=$a[2],Br=$a[3],Kr=x.useRef(Br);Br&&(Kr.current=!0);var Ca=x.useCallback(function(uo){aa.current=uo,Ce(ha,uo)},[ha]),Wr,Ko=(0,Fe.Z)((0,Fe.Z)({},br),{},{visible:on});if(!Ha)Wr=null;else if(Er===Sn||!bn(Pn))Br?Wr=Ha((0,Fe.Z)({},Ko),Ca):!un&&Kr.current&&ar?Wr=Ha((0,Fe.Z)((0,Fe.Z)({},Ko),{},{className:ar}),Ca):oa||!un&&!ar?Wr=Ha((0,Fe.Z)((0,Fe.Z)({},Ko),{},{style:{display:"none"}}),Ca):Wr=null;else{var To,si;Cr===Ze?si="prepare":Ut(Cr)?si="active":Cr===Ve&&(si="start"),Wr=Ha((0,Fe.Z)((0,Fe.Z)({},Ko),{},{className:Oe()(Wt(gr,Er),(To={},(0,ie.Z)(To,Wt(gr,"".concat(Er,"-").concat(si)),si),(0,ie.Z)(To,gr,typeof gr=="string"),To)),style:Qr}),Ca)}if(x.isValidElement(Wr)&&Ue(Wr)){var Wo=Wr,di=Wo.ref;di||(Wr=x.cloneElement(Wr,{ref:Ca}))}return x.createElement(la,{ref:Xt},Wr)});return et.displayName="CSSMotion",et}var en=rr(Mt),rn="add",sn="keep",na="remove",Ga="removed";function Fr(Vt){var qt;return Vt&&(0,Be.Z)(Vt)==="object"&&"key"in Vt?qt=Vt:qt={key:Vt},(0,Fe.Z)((0,Fe.Z)({},qt),{},{key:String(qt.key)})}function _r(){var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Vt.map(Fr)}function or(){var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],bn=[],et=0,Pn=qt.length,ha=_r(Vt),Sa=_r(qt);ha.forEach(function(un){for(var oa=!1,Ha=et;Ha<Pn;Ha+=1){var gr=Sa[Ha];if(gr.key===un.key){et<Ha&&(bn=bn.concat(Sa.slice(et,Ha).map(function(ar){return(0,Fe.Z)((0,Fe.Z)({},ar),{},{status:rn})})),et=Ha),bn.push((0,Fe.Z)((0,Fe.Z)({},gr),{},{status:sn})),et+=1,oa=!0;break}}oa||bn.push((0,Fe.Z)((0,Fe.Z)({},un),{},{status:na}))}),et<Pn&&(bn=bn.concat(Sa.slice(et).map(function(un){return(0,Fe.Z)((0,Fe.Z)({},un),{},{status:rn})})));var on={};bn.forEach(function(un){var oa=un.key;on[oa]=(on[oa]||0)+1});var Dn=Object.keys(on).filter(function(un){return on[un]>1});return Dn.forEach(function(un){bn=bn.filter(function(oa){var Ha=oa.key,gr=oa.status;return Ha!==un||gr!==na}),bn.forEach(function(oa){oa.key===un&&(oa.status=sn)})}),bn}var Rn=["component","children","onVisibleChanged","onAllRemoved"],Ra=["status"],En=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Mn(Vt){var qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:en,bn=function(et){(0,Ae.Z)(ha,et);var Pn=(0,Me.Z)(ha);function ha(){var Sa;(0,je.Z)(this,ha);for(var on=arguments.length,Dn=new Array(on),un=0;un<on;un++)Dn[un]=arguments[un];return Sa=Pn.call.apply(Pn,[this].concat(Dn)),(0,ie.Z)((0,Ge.Z)(Sa),"state",{keyEntities:[]}),(0,ie.Z)((0,Ge.Z)(Sa),"removeKey",function(oa){var Ha=Sa.state.keyEntities,gr=Ha.map(function(ar){return ar.key!==oa?ar:(0,Fe.Z)((0,Fe.Z)({},ar),{},{status:Ga})});return Sa.setState({keyEntities:gr}),gr.filter(function(ar){var br=ar.status;return br!==Ga}).length}),Sa}return(0,ue.Z)(ha,[{key:"render",value:function(){var on=this,Dn=this.state.keyEntities,un=this.props,oa=un.component,Ha=un.children,gr=un.onVisibleChanged,ar=un.onAllRemoved,br=(0,oe.Z)(un,Rn),_a=oa||x.Fragment,aa={};return En.forEach(function(Xt){aa[Xt]=br[Xt],delete br[Xt]}),delete br.keys,x.createElement(_a,br,Dn.map(function(Xt){var Wn=Xt.status,ta=(0,oe.Z)(Xt,Ra),$a=Wn===rn||Wn===sn;return x.createElement(qt,(0,b.Z)({},aa,{key:ta.key,visible:$a,eventProps:ta,onVisibleChanged:function(Cr){if(gr==null||gr(Cr,{key:ta.key}),!Cr){var Qr=on.removeKey(ta.key);Qr===0&&ar&&ar()}}}),Ha)}))}}],[{key:"getDerivedStateFromProps",value:function(on,Dn){var un=on.keys,oa=Dn.keyEntities,Ha=_r(un),gr=or(oa,Ha);return{keyEntities:gr.filter(function(ar){var br=oa.find(function(_a){var aa=_a.key;return ar.key===aa});return!(br&&br.status===Ga&&ar.status===na)})}}}]),ha}(x.Component);return(0,ie.Z)(bn,"defaultProps",{component:"div"}),bn}var Vn=Mn(Mt),Yn=en,Aa=ee(56261);function Qa(Vt,qt){var bn=x.useState(!1),et=(0,re.Z)(bn,2),Pn=et[0],ha=et[1];x.useLayoutEffect(function(){if(Pn)return Vt(),function(){qt()}},[Pn]),x.useLayoutEffect(function(){return ha(!0),function(){ha(!1)}},[])}var Kn=ee(83898),ht=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Rt=function(qt,bn){var et=qt.className,Pn=qt.style,ha=qt.motion,Sa=qt.motionNodes,on=qt.motionType,Dn=qt.onMotionStart,un=qt.onMotionEnd,oa=qt.active,Ha=qt.treeNodeRequiredProps,gr=(0,oe.Z)(qt,ht),ar=x.useState(!0),br=(0,re.Z)(ar,2),_a=br[0],aa=br[1],Xt=x.useContext(y.k),Wn=Xt.prefixCls,ta=Sa&&on!=="hide";ge(function(){Sa&&ta!==_a&&aa(ta)},[Sa]);var $a=function(){Sa&&Dn()},Er=x.useRef(!1),Cr=function(){Sa&&!Er.current&&(Er.current=!0,un())};Qa($a,Cr);var Qr=function(Kr){ta===Kr&&Cr()};return Sa?x.createElement(Yn,(0,b.Z)({ref:bn,visible:_a},ha,{motionAppear:on==="show",onVisibleChanged:Qr}),function(Br,Kr){var Ca=Br.className,Wr=Br.style;return x.createElement("div",{ref:Kr,className:Oe()("".concat(Wn,"-treenode-motion"),Ca),style:Wr},Sa.map(function(Ko){var To=(0,b.Z)({},((0,te.Z)(Ko.data),Ko.data)),si=Ko.title,Wo=Ko.key,di=Ko.isStart,uo=Ko.isEnd;delete To.children;var ti=(0,Kn.H8)(Wo,Ha);return x.createElement(Aa.Z,(0,b.Z)({},To,ti,{title:si,active:oa,data:Ko.data,key:Wo,isStart:di,isEnd:uo}))}))}):x.createElement(Aa.Z,(0,b.Z)({domRef:bn,className:et,style:Pn},gr,{active:oa}))};Rt.displayName="MotionTreeNode";var Nt=x.forwardRef(Rt),Kt=Nt;function xn(){var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],bn=Vt.length,et=qt.length;if(Math.abs(bn-et)!==1)return{add:!1,key:null};function Pn(ha,Sa){var on=new Map;ha.forEach(function(un){on.set(un,!0)});var Dn=Sa.filter(function(un){return!on.has(un)});return Dn.length===1?Dn[0]:null}return bn<et?{add:!0,key:Pn(Vt,qt)}:{add:!1,key:Pn(qt,Vt)}}function qn(Vt,qt,bn){var et=Vt.findIndex(function(on){return on.key===bn}),Pn=Vt[et+1],ha=qt.findIndex(function(on){return on.key===bn});if(Pn){var Sa=qt.findIndex(function(on){return on.key===Pn.key});return qt.slice(ha+1,Sa)}return qt.slice(ha+1)}var Ma=["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"],ga={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},er=function(){},ur="RC_TREE_MOTION_".concat(Math.random()),lo={key:ur},ea={key:ur,level:0,index:0,pos:"0",node:lo,nodes:[lo]},Dr={parent:null,children:[],pos:ea.pos,data:lo,title:null,key:ur,isStart:[],isEnd:[]};function Di(Vt,qt,bn,et){return qt===!1||!bn?Vt:Vt.slice(0,Math.ceil(bn/et)+1)}function Ii(Vt){var qt=Vt.key,bn=Vt.pos;return(0,Kn.km)(qt,bn)}function mr(Vt){for(var qt=String(Vt.data.key),bn=Vt;bn.parent;)bn=bn.parent,qt="".concat(bn.data.key," > ").concat(qt);return qt}var jn=x.forwardRef(function(Vt,qt){var bn=Vt.prefixCls,et=Vt.data,Pn=Vt.selectable,ha=Vt.checkable,Sa=Vt.expandedKeys,on=Vt.selectedKeys,Dn=Vt.checkedKeys,un=Vt.loadedKeys,oa=Vt.loadingKeys,Ha=Vt.halfCheckedKeys,gr=Vt.keyEntities,ar=Vt.disabled,br=Vt.dragging,_a=Vt.dragOverNodeKey,aa=Vt.dropPosition,Xt=Vt.motion,Wn=Vt.height,ta=Vt.itemHeight,$a=Vt.virtual,Er=Vt.focusable,Cr=Vt.activeItem,Qr=Vt.focused,Br=Vt.tabIndex,Kr=Vt.onKeyDown,Ca=Vt.onFocus,Wr=Vt.onBlur,Ko=Vt.onActiveChange,To=Vt.onListChangeStart,si=Vt.onListChangeEnd,Wo=(0,oe.Z)(Vt,Ma),di=x.useRef(null),uo=x.useRef(null);x.useImperativeHandle(qt,function(){return{scrollTo:function(dn){di.current.scrollTo(dn)},getIndentWidth:function(){return uo.current.offsetWidth}}});var ti=x.useState(Sa),Fi=(0,re.Z)(ti,2),Li=Fi[0],cl=Fi[1],Al=x.useState(et),Hi=(0,re.Z)(Al,2),ai=Hi[0],bl=Hi[1],Ml=x.useState(et),Zl=(0,re.Z)(Ml,2),Tl=Zl[0],Cl=Zl[1],hu=x.useState([]),Dl=(0,re.Z)(hu,2),iu=Dl[0],Nl=Dl[1],Kl=x.useState(null),Wl=(0,re.Z)(Kl,2),Su=Wl[0],it=Wl[1],ut=x.useRef(et);ut.current=et;function kt(){var nn=ut.current;bl(nn),Cl(nn),Nl([]),it(null),si()}ge(function(){cl(Sa);var nn=xn(Li,Sa);if(nn.key!==null)if(nn.add){var dn=ai.findIndex(function(Nr){var $o=Nr.key;return $o===nn.key}),_t=Di(qn(ai,et,nn.key),$a,Wn,ta),Zt=ai.slice();Zt.splice(dn+1,0,Dr),Cl(Zt),Nl(_t),it("show")}else{var In=et.findIndex(function(Nr){var $o=Nr.key;return $o===nn.key}),xa=Di(qn(et,ai,nn.key),$a,Wn,ta),Xr=et.slice();Xr.splice(In+1,0,Dr),Cl(Xr),Nl(xa),it("hide")}else ai!==et&&(bl(et),Cl(et))},[Sa,et]),x.useEffect(function(){br||kt()},[br]);var Tn=Xt?Tl:et,kn={expandedKeys:Sa,selectedKeys:on,loadedKeys:un,loadingKeys:oa,checkedKeys:Dn,halfCheckedKeys:Ha,dragOverNodeKey:_a,dropPosition:aa,keyEntities:gr};return x.createElement(x.Fragment,null,Qr&&Cr&&x.createElement("span",{style:ga,"aria-live":"assertive"},mr(Cr)),x.createElement("div",null,x.createElement("input",{style:ga,disabled:Er===!1||ar,tabIndex:Er!==!1?Br:null,onKeyDown:Kr,onFocus:Ca,onBlur:Wr,value:"",onChange:er,"aria-label":"for screen reader"})),x.createElement("div",{className:"".concat(bn,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},x.createElement("div",{className:"".concat(bn,"-indent")},x.createElement("div",{ref:uo,className:"".concat(bn,"-indent-unit")}))),x.createElement(we.Z,(0,b.Z)({},Wo,{data:Tn,itemKey:Ii,height:Wn,fullHeight:!1,virtual:$a,itemHeight:ta,prefixCls:"".concat(bn,"-list"),ref:di,onVisibleChange:function(dn,_t){var Zt=new Set(dn),In=_t.filter(function(xa){return!Zt.has(xa)});In.some(function(xa){return Ii(xa)===ur})&&kt()}}),function(nn){var dn=nn.pos,_t=(0,b.Z)({},((0,te.Z)(nn.data),nn.data)),Zt=nn.title,In=nn.key,xa=nn.isStart,Xr=nn.isEnd,Nr=(0,Kn.km)(In,dn);delete _t.key,delete _t.children;var $o=(0,Kn.H8)(Nr,kn);return x.createElement(Kt,(0,b.Z)({},_t,$o,{title:Zt,active:!!Cr&&In===Cr.key,pos:dn,data:nn.data,isStart:xa,isEnd:Xr,motion:Xt,motionNodes:In===ur?iu:null,motionType:Su,onMotionStart:To,onMotionEnd:kt,treeNodeRequiredProps:kn,onMouseMove:function(){Ko(null)}}))}))});jn.displayName="NodeList";var vl=jn,Ho=ee(29873),dl=ee(97153),tl=ee(3596),nl=10,Oi=function(Vt){(0,Ae.Z)(bn,Vt);var qt=(0,Me.Z)(bn);function bn(){var et;(0,je.Z)(this,bn);for(var Pn=arguments.length,ha=new Array(Pn),Sa=0;Sa<Pn;Sa++)ha[Sa]=arguments[Sa];return et=qt.call.apply(qt,[this].concat(ha)),et.destroyed=!1,et.delayedDragEnterLogic=void 0,et.loadingRetryTimes={},et.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,Kn.w$)()},et.dragStartMousePosition=null,et.dragNode=void 0,et.currentMouseOverDroppableNodeKey=null,et.listRef=x.createRef(),et.onNodeDragStart=function(on,Dn){var un=et.state,oa=un.expandedKeys,Ha=un.keyEntities,gr=et.props.onDragStart,ar=Dn.props.eventKey;et.dragNode=Dn,et.dragStartMousePosition={x:on.clientX,y:on.clientY};var br=(0,Ho._5)(oa,ar);et.setState({draggingNodeKey:ar,dragChildrenKeys:(0,Ho.wA)(ar,Ha),indent:et.listRef.current.getIndentWidth()}),et.setExpandedKeys(br),window.addEventListener("dragend",et.onWindowDragEnd),gr==null||gr({event:on,node:(0,Kn.F)(Dn.props)})},et.onNodeDragEnter=function(on,Dn){var un=et.state,oa=un.expandedKeys,Ha=un.keyEntities,gr=un.dragChildrenKeys,ar=un.flattenNodes,br=un.indent,_a=et.props,aa=_a.onDragEnter,Xt=_a.onExpand,Wn=_a.allowDrop,ta=_a.direction,$a=Dn.props,Er=$a.pos,Cr=$a.eventKey,Qr=(0,Ge.Z)(et),Br=Qr.dragNode;if(et.currentMouseOverDroppableNodeKey!==Cr&&(et.currentMouseOverDroppableNodeKey=Cr),!Br){et.resetDragState();return}var Kr=(0,Ho.OM)(on,Br,Dn,br,et.dragStartMousePosition,Wn,ar,Ha,oa,ta),Ca=Kr.dropPosition,Wr=Kr.dropLevelOffset,Ko=Kr.dropTargetKey,To=Kr.dropContainerKey,si=Kr.dropTargetPos,Wo=Kr.dropAllowed,di=Kr.dragOverNodeKey;if(gr.indexOf(Ko)!==-1||!Wo){et.resetDragState();return}if(et.delayedDragEnterLogic||(et.delayedDragEnterLogic={}),Object.keys(et.delayedDragEnterLogic).forEach(function(uo){clearTimeout(et.delayedDragEnterLogic[uo])}),Br.props.eventKey!==Dn.props.eventKey&&(on.persist(),et.delayedDragEnterLogic[Er]=window.setTimeout(function(){if(et.state.draggingNodeKey!==null){var uo=(0,Ne.Z)(oa),ti=(0,tl.Z)(Ha,Dn.props.eventKey);ti&&(ti.children||[]).length&&(uo=(0,Ho.L0)(oa,Dn.props.eventKey)),"expandedKeys"in et.props||et.setExpandedKeys(uo),Xt==null||Xt(uo,{node:(0,Kn.F)(Dn.props),expanded:!0,nativeEvent:on.nativeEvent})}},800)),Br.props.eventKey===Ko&&Wr===0){et.resetDragState();return}et.setState({dragOverNodeKey:di,dropPosition:Ca,dropLevelOffset:Wr,dropTargetKey:Ko,dropContainerKey:To,dropTargetPos:si,dropAllowed:Wo}),aa==null||aa({event:on,node:(0,Kn.F)(Dn.props),expandedKeys:oa})},et.onNodeDragOver=function(on,Dn){var un=et.state,oa=un.dragChildrenKeys,Ha=un.flattenNodes,gr=un.keyEntities,ar=un.expandedKeys,br=un.indent,_a=et.props,aa=_a.onDragOver,Xt=_a.allowDrop,Wn=_a.direction,ta=(0,Ge.Z)(et),$a=ta.dragNode;if($a){var Er=(0,Ho.OM)(on,$a,Dn,br,et.dragStartMousePosition,Xt,Ha,gr,ar,Wn),Cr=Er.dropPosition,Qr=Er.dropLevelOffset,Br=Er.dropTargetKey,Kr=Er.dropContainerKey,Ca=Er.dropAllowed,Wr=Er.dropTargetPos,Ko=Er.dragOverNodeKey;oa.indexOf(Br)!==-1||!Ca||($a.props.eventKey===Br&&Qr===0?et.state.dropPosition===null&&et.state.dropLevelOffset===null&&et.state.dropTargetKey===null&&et.state.dropContainerKey===null&&et.state.dropTargetPos===null&&et.state.dropAllowed===!1&&et.state.dragOverNodeKey===null||et.resetDragState():Cr===et.state.dropPosition&&Qr===et.state.dropLevelOffset&&Br===et.state.dropTargetKey&&Kr===et.state.dropContainerKey&&Wr===et.state.dropTargetPos&&Ca===et.state.dropAllowed&&Ko===et.state.dragOverNodeKey||et.setState({dropPosition:Cr,dropLevelOffset:Qr,dropTargetKey:Br,dropContainerKey:Kr,dropTargetPos:Wr,dropAllowed:Ca,dragOverNodeKey:Ko}),aa==null||aa({event:on,node:(0,Kn.F)(Dn.props)}))}},et.onNodeDragLeave=function(on,Dn){et.currentMouseOverDroppableNodeKey===Dn.props.eventKey&&!on.currentTarget.contains(on.relatedTarget)&&(et.resetDragState(),et.currentMouseOverDroppableNodeKey=null);var un=et.props.onDragLeave;un==null||un({event:on,node:(0,Kn.F)(Dn.props)})},et.onWindowDragEnd=function(on){et.onNodeDragEnd(on,null,!0),window.removeEventListener("dragend",et.onWindowDragEnd)},et.onNodeDragEnd=function(on,Dn){var un=et.props.onDragEnd;et.setState({dragOverNodeKey:null}),et.cleanDragState(),un==null||un({event:on,node:(0,Kn.F)(Dn.props)}),et.dragNode=null,window.removeEventListener("dragend",et.onWindowDragEnd)},et.onNodeDrop=function(on,Dn){var un,oa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ha=et.state,gr=Ha.dragChildrenKeys,ar=Ha.dropPosition,br=Ha.dropTargetKey,_a=Ha.dropTargetPos,aa=Ha.dropAllowed;if(aa){var Xt=et.props.onDrop;if(et.setState({dragOverNodeKey:null}),et.cleanDragState(),br!==null){var Wn=(0,Fe.Z)((0,Fe.Z)({},(0,Kn.H8)(br,et.getTreeNodeRequiredProps())),{},{active:((un=et.getActiveItem())===null||un===void 0?void 0:un.key)===br,data:(0,tl.Z)(et.state.keyEntities,br).node}),ta=gr.indexOf(br)!==-1;(0,a.ZP)(!ta,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var $a=(0,Ho.yx)(_a),Er={event:on,node:(0,Kn.F)(Wn),dragNode:et.dragNode?(0,Kn.F)(et.dragNode.props):null,dragNodesKeys:[et.dragNode.props.eventKey].concat(gr),dropToGap:ar!==0,dropPosition:ar+Number($a[$a.length-1])};oa||Xt==null||Xt(Er),et.dragNode=null}}},et.cleanDragState=function(){var on=et.state.draggingNodeKey;on!==null&&et.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),et.dragStartMousePosition=null,et.currentMouseOverDroppableNodeKey=null},et.triggerExpandActionExpand=function(on,Dn){var un=et.state,oa=un.expandedKeys,Ha=un.flattenNodes,gr=Dn.expanded,ar=Dn.key,br=Dn.isLeaf;if(!(br||on.shiftKey||on.metaKey||on.ctrlKey)){var _a=Ha.filter(function(Xt){return Xt.key===ar})[0],aa=(0,Kn.F)((0,Fe.Z)((0,Fe.Z)({},(0,Kn.H8)(ar,et.getTreeNodeRequiredProps())),{},{data:_a.data}));et.setExpandedKeys(gr?(0,Ho._5)(oa,ar):(0,Ho.L0)(oa,ar)),et.onNodeExpand(on,aa)}},et.onNodeClick=function(on,Dn){var un=et.props,oa=un.onClick,Ha=un.expandAction;Ha==="click"&&et.triggerExpandActionExpand(on,Dn),oa==null||oa(on,Dn)},et.onNodeDoubleClick=function(on,Dn){var un=et.props,oa=un.onDoubleClick,Ha=un.expandAction;Ha==="doubleClick"&&et.triggerExpandActionExpand(on,Dn),oa==null||oa(on,Dn)},et.onNodeSelect=function(on,Dn){var un=et.state.selectedKeys,oa=et.state,Ha=oa.keyEntities,gr=oa.fieldNames,ar=et.props,br=ar.onSelect,_a=ar.multiple,aa=Dn.selected,Xt=Dn[gr.key],Wn=!aa;Wn?_a?un=(0,Ho.L0)(un,Xt):un=[Xt]:un=(0,Ho._5)(un,Xt);var ta=un.map(function($a){var Er=(0,tl.Z)(Ha,$a);return Er?Er.node:null}).filter(function($a){return $a});et.setUncontrolledState({selectedKeys:un}),br==null||br(un,{event:"select",selected:Wn,node:Dn,selectedNodes:ta,nativeEvent:on.nativeEvent})},et.onNodeCheck=function(on,Dn,un){var oa=et.state,Ha=oa.keyEntities,gr=oa.checkedKeys,ar=oa.halfCheckedKeys,br=et.props,_a=br.checkStrictly,aa=br.onCheck,Xt=Dn.key,Wn,ta={event:"check",node:Dn,checked:un,nativeEvent:on.nativeEvent};if(_a){var $a=un?(0,Ho.L0)(gr,Xt):(0,Ho._5)(gr,Xt),Er=(0,Ho._5)(ar,Xt);Wn={checked:$a,halfChecked:Er},ta.checkedNodes=$a.map(function(Wr){return(0,tl.Z)(Ha,Wr)}).filter(function(Wr){return Wr}).map(function(Wr){return Wr.node}),et.setUncontrolledState({checkedKeys:$a})}else{var Cr=(0,dl.S)([].concat((0,Ne.Z)(gr),[Xt]),!0,Ha),Qr=Cr.checkedKeys,Br=Cr.halfCheckedKeys;if(!un){var Kr=new Set(Qr);Kr.delete(Xt);var Ca=(0,dl.S)(Array.from(Kr),{checked:!1,halfCheckedKeys:Br},Ha);Qr=Ca.checkedKeys,Br=Ca.halfCheckedKeys}Wn=Qr,ta.checkedNodes=[],ta.checkedNodesPositions=[],ta.halfCheckedKeys=Br,Qr.forEach(function(Wr){var Ko=(0,tl.Z)(Ha,Wr);if(Ko){var To=Ko.node,si=Ko.pos;ta.checkedNodes.push(To),ta.checkedNodesPositions.push({node:To,pos:si})}}),et.setUncontrolledState({checkedKeys:Qr},!1,{halfCheckedKeys:Br})}aa==null||aa(Wn,ta)},et.onNodeLoad=function(on){var Dn=on.key,un=new Promise(function(oa,Ha){et.setState(function(gr){var ar=gr.loadedKeys,br=ar===void 0?[]:ar,_a=gr.loadingKeys,aa=_a===void 0?[]:_a,Xt=et.props,Wn=Xt.loadData,ta=Xt.onLoad;if(!Wn||br.indexOf(Dn)!==-1||aa.indexOf(Dn)!==-1)return null;var $a=Wn(on);return $a.then(function(){var Er=et.state.loadedKeys,Cr=(0,Ho.L0)(Er,Dn);ta==null||ta(Cr,{event:"load",node:on}),et.setUncontrolledState({loadedKeys:Cr}),et.setState(function(Qr){return{loadingKeys:(0,Ho._5)(Qr.loadingKeys,Dn)}}),oa()}).catch(function(Er){if(et.setState(function(Qr){return{loadingKeys:(0,Ho._5)(Qr.loadingKeys,Dn)}}),et.loadingRetryTimes[Dn]=(et.loadingRetryTimes[Dn]||0)+1,et.loadingRetryTimes[Dn]>=nl){var Cr=et.state.loadedKeys;(0,a.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),et.setUncontrolledState({loadedKeys:(0,Ho.L0)(Cr,Dn)}),oa()}Ha(Er)}),{loadingKeys:(0,Ho.L0)(aa,Dn)}})});return un.catch(function(){}),un},et.onNodeMouseEnter=function(on,Dn){var un=et.props.onMouseEnter;un==null||un({event:on,node:Dn})},et.onNodeMouseLeave=function(on,Dn){var un=et.props.onMouseLeave;un==null||un({event:on,node:Dn})},et.onNodeContextMenu=function(on,Dn){var un=et.props.onRightClick;un&&(on.preventDefault(),un({event:on,node:Dn}))},et.onFocus=function(){var on=et.props.onFocus;et.setState({focused:!0});for(var Dn=arguments.length,un=new Array(Dn),oa=0;oa<Dn;oa++)un[oa]=arguments[oa];on==null||on.apply(void 0,un)},et.onBlur=function(){var on=et.props.onBlur;et.setState({focused:!1}),et.onActiveChange(null);for(var Dn=arguments.length,un=new Array(Dn),oa=0;oa<Dn;oa++)un[oa]=arguments[oa];on==null||on.apply(void 0,un)},et.getTreeNodeRequiredProps=function(){var on=et.state,Dn=on.expandedKeys,un=on.selectedKeys,oa=on.loadedKeys,Ha=on.loadingKeys,gr=on.checkedKeys,ar=on.halfCheckedKeys,br=on.dragOverNodeKey,_a=on.dropPosition,aa=on.keyEntities;return{expandedKeys:Dn||[],selectedKeys:un||[],loadedKeys:oa||[],loadingKeys:Ha||[],checkedKeys:gr||[],halfCheckedKeys:ar||[],dragOverNodeKey:br,dropPosition:_a,keyEntities:aa}},et.setExpandedKeys=function(on){var Dn=et.state,un=Dn.treeData,oa=Dn.fieldNames,Ha=(0,Kn.oH)(un,on,oa);et.setUncontrolledState({expandedKeys:on,flattenNodes:Ha},!0)},et.onNodeExpand=function(on,Dn){var un=et.state.expandedKeys,oa=et.state,Ha=oa.listChanging,gr=oa.fieldNames,ar=et.props,br=ar.onExpand,_a=ar.loadData,aa=Dn.expanded,Xt=Dn[gr.key];if(!Ha){var Wn=un.indexOf(Xt),ta=!aa;if((0,a.ZP)(aa&&Wn!==-1||!aa&&Wn===-1,"Expand state not sync with index check"),ta?un=(0,Ho.L0)(un,Xt):un=(0,Ho._5)(un,Xt),et.setExpandedKeys(un),br==null||br(un,{node:Dn,expanded:ta,nativeEvent:on.nativeEvent}),ta&&_a){var $a=et.onNodeLoad(Dn);$a&&$a.then(function(){var Er=(0,Kn.oH)(et.state.treeData,un,gr);et.setUncontrolledState({flattenNodes:Er})}).catch(function(){var Er=et.state.expandedKeys,Cr=(0,Ho._5)(Er,Xt);et.setExpandedKeys(Cr)})}}},et.onListChangeStart=function(){et.setUncontrolledState({listChanging:!0})},et.onListChangeEnd=function(){setTimeout(function(){et.setUncontrolledState({listChanging:!1})})},et.onActiveChange=function(on){var Dn=et.state.activeKey,un=et.props.onActiveChange;Dn!==on&&(et.setState({activeKey:on}),on!==null&&et.scrollTo({key:on}),un==null||un(on))},et.getActiveItem=function(){var on=et.state,Dn=on.activeKey,un=on.flattenNodes;return Dn===null?null:un.find(function(oa){var Ha=oa.key;return Ha===Dn})||null},et.offsetActiveKey=function(on){var Dn=et.state,un=Dn.flattenNodes,oa=Dn.activeKey,Ha=un.findIndex(function(br){var _a=br.key;return _a===oa});Ha===-1&&on<0&&(Ha=un.length),Ha=(Ha+on+un.length)%un.length;var gr=un[Ha];if(gr){var ar=gr.key;et.onActiveChange(ar)}else et.onActiveChange(null)},et.onKeyDown=function(on){var Dn=et.state,un=Dn.activeKey,oa=Dn.expandedKeys,Ha=Dn.checkedKeys,gr=Dn.fieldNames,ar=et.props,br=ar.onKeyDown,_a=ar.checkable,aa=ar.selectable;switch(on.which){case se.UP:{et.offsetActiveKey(-1),on.preventDefault();break}case se.DOWN:{et.offsetActiveKey(1),on.preventDefault();break}}var Xt=et.getActiveItem();if(Xt&&Xt.data){var Wn=et.getTreeNodeRequiredProps(),ta=Xt.data.isLeaf===!1||!!(Xt.data[gr.children]||[]).length,$a=(0,Kn.F)((0,Fe.Z)((0,Fe.Z)({},(0,Kn.H8)(un,Wn)),{},{data:Xt.data,active:!0}));switch(on.which){case se.LEFT:{ta&&oa.includes(un)?et.onNodeExpand({},$a):Xt.parent&&et.onActiveChange(Xt.parent.key),on.preventDefault();break}case se.RIGHT:{ta&&!oa.includes(un)?et.onNodeExpand({},$a):Xt.children&&Xt.children.length&&et.onActiveChange(Xt.children[0].key),on.preventDefault();break}case se.ENTER:case se.SPACE:{_a&&!$a.disabled&&$a.checkable!==!1&&!$a.disableCheckbox?et.onNodeCheck({},$a,!Ha.includes(un)):!_a&&aa&&!$a.disabled&&$a.selectable!==!1&&et.onNodeSelect({},$a);break}}}br==null||br(on)},et.setUncontrolledState=function(on){var Dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,un=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!et.destroyed){var oa=!1,Ha=!0,gr={};Object.keys(on).forEach(function(ar){if(ar in et.props){Ha=!1;return}oa=!0,gr[ar]=on[ar]}),oa&&(!Dn||Ha)&&et.setState((0,Fe.Z)((0,Fe.Z)({},gr),un))}},et.scrollTo=function(on){et.listRef.current.scrollTo(on)},et}return(0,ue.Z)(bn,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Pn=this.props.activeKey;Pn!==void 0&&Pn!==this.state.activeKey&&(this.setState({activeKey:Pn}),Pn!==null&&this.scrollTo({key:Pn}))}},{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 Pn,ha=this.state,Sa=ha.focused,on=ha.flattenNodes,Dn=ha.keyEntities,un=ha.draggingNodeKey,oa=ha.activeKey,Ha=ha.dropLevelOffset,gr=ha.dropContainerKey,ar=ha.dropTargetKey,br=ha.dropPosition,_a=ha.dragOverNodeKey,aa=ha.indent,Xt=this.props,Wn=Xt.prefixCls,ta=Xt.className,$a=Xt.style,Er=Xt.showLine,Cr=Xt.focusable,Qr=Xt.tabIndex,Br=Qr===void 0?0:Qr,Kr=Xt.selectable,Ca=Xt.showIcon,Wr=Xt.icon,Ko=Xt.switcherIcon,To=Xt.draggable,si=Xt.checkable,Wo=Xt.checkStrictly,di=Xt.disabled,uo=Xt.motion,ti=Xt.loadData,Fi=Xt.filterTreeNode,Li=Xt.height,cl=Xt.itemHeight,Al=Xt.virtual,Hi=Xt.titleRender,ai=Xt.dropIndicatorRender,bl=Xt.onContextMenu,Ml=Xt.onScroll,Zl=Xt.direction,Tl=Xt.rootClassName,Cl=Xt.rootStyle,hu=(0,E.Z)(this.props,{aria:!0,data:!0}),Dl;return To&&((0,Be.Z)(To)==="object"?Dl=To:typeof To=="function"?Dl={nodeDraggable:To}:Dl={}),x.createElement(y.k.Provider,{value:{prefixCls:Wn,selectable:Kr,showIcon:Ca,icon:Wr,switcherIcon:Ko,draggable:Dl,draggingNodeKey:un,checkable:si,checkStrictly:Wo,disabled:di,keyEntities:Dn,dropLevelOffset:Ha,dropContainerKey:gr,dropTargetKey:ar,dropPosition:br,dragOverNodeKey:_a,indent:aa,direction:Zl,dropIndicatorRender:ai,loadData:ti,filterTreeNode:Fi,titleRender:Hi,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}},x.createElement("div",{role:"tree",className:Oe()(Wn,ta,Tl,(Pn={},(0,ie.Z)(Pn,"".concat(Wn,"-show-line"),Er),(0,ie.Z)(Pn,"".concat(Wn,"-focused"),Sa),(0,ie.Z)(Pn,"".concat(Wn,"-active-focused"),oa!==null),Pn)),style:Cl},x.createElement(vl,(0,b.Z)({ref:this.listRef,prefixCls:Wn,style:$a,data:on,disabled:di,selectable:Kr,checkable:!!si,motion:uo,dragging:un!==null,height:Li,itemHeight:cl,virtual:Al,focusable:Cr,focused:Sa,tabIndex:Br,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:bl,onScroll:Ml},this.getTreeNodeRequiredProps(),hu))))}}],[{key:"getDerivedStateFromProps",value:function(Pn,ha){var Sa=ha.prevProps,on={prevProps:Pn};function Dn(Cr){return!Sa&&Cr in Pn||Sa&&Sa[Cr]!==Pn[Cr]}var un,oa=ha.fieldNames;if(Dn("fieldNames")&&(oa=(0,Kn.w$)(Pn.fieldNames),on.fieldNames=oa),Dn("treeData")?un=Pn.treeData:Dn("children")&&((0,a.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),un=(0,Kn.zn)(Pn.children)),un){on.treeData=un;var Ha=(0,Kn.I8)(un,{fieldNames:oa});on.keyEntities=(0,Fe.Z)((0,ie.Z)({},ur,ea),Ha.keyEntities)}var gr=on.keyEntities||ha.keyEntities;if(Dn("expandedKeys")||Sa&&Dn("autoExpandParent"))on.expandedKeys=Pn.autoExpandParent||!Sa&&Pn.defaultExpandParent?(0,Ho.r7)(Pn.expandedKeys,gr):Pn.expandedKeys;else if(!Sa&&Pn.defaultExpandAll){var ar=(0,Fe.Z)({},gr);delete ar[ur],on.expandedKeys=Object.keys(ar).map(function(Cr){return ar[Cr].key})}else!Sa&&Pn.defaultExpandedKeys&&(on.expandedKeys=Pn.autoExpandParent||Pn.defaultExpandParent?(0,Ho.r7)(Pn.defaultExpandedKeys,gr):Pn.defaultExpandedKeys);if(on.expandedKeys||delete on.expandedKeys,un||on.expandedKeys){var br=(0,Kn.oH)(un||ha.treeData,on.expandedKeys||ha.expandedKeys,oa);on.flattenNodes=br}if(Pn.selectable&&(Dn("selectedKeys")?on.selectedKeys=(0,Ho.BT)(Pn.selectedKeys,Pn):!Sa&&Pn.defaultSelectedKeys&&(on.selectedKeys=(0,Ho.BT)(Pn.defaultSelectedKeys,Pn))),Pn.checkable){var _a;if(Dn("checkedKeys")?_a=(0,Ho.E6)(Pn.checkedKeys)||{}:!Sa&&Pn.defaultCheckedKeys?_a=(0,Ho.E6)(Pn.defaultCheckedKeys)||{}:un&&(_a=(0,Ho.E6)(Pn.checkedKeys)||{checkedKeys:ha.checkedKeys,halfCheckedKeys:ha.halfCheckedKeys}),_a){var aa=_a,Xt=aa.checkedKeys,Wn=Xt===void 0?[]:Xt,ta=aa.halfCheckedKeys,$a=ta===void 0?[]:ta;if(!Pn.checkStrictly){var Er=(0,dl.S)(Wn,!0,gr);Wn=Er.checkedKeys,$a=Er.halfCheckedKeys}on.checkedKeys=Wn,on.halfCheckedKeys=$a}}return Dn("loadedKeys")&&(on.loadedKeys=Pn.loadedKeys),on}}]),bn}(x.Component);Oi.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:z,allowDrop:function(){return!0},expandAction:!1},Oi.TreeNode=Aa.Z;var yl=Oi,il=yl,pu=ee(73148),da=ee(56747),_i={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"},Ei=_i,Ao=ee(74643),Zo=function(qt,bn){return x.createElement(Ao.Z,(0,b.Z)({},qt,{ref:bn,icon:Ei}))},ka=x.forwardRef(Zo),pr=ee(53124),Fo=ee(50881),yr=ee(33603),gi=ee(32157);const Pi=4;function wi(Vt){const{dropPosition:qt,dropLevelOffset:bn,prefixCls:et,indent:Pn,direction:ha="ltr"}=Vt,Sa=ha==="ltr"?"left":"right",on=ha==="ltr"?"right":"left",Dn={[Sa]:-bn*Pn+Pi,[on]:0};switch(qt){case-1:Dn.top=-3;break;case 1:Dn.bottom=-3;break;default:Dn.bottom=-3,Dn[Sa]=Pn+Pi;break}return x.createElement("div",{style:Dn,className:`${et}-drop-indicator`})}var Ni=ee(99184),Jl=x.forwardRef((Vt,qt)=>{const{getPrefixCls:bn,direction:et,virtual:Pn,tree:ha}=x.useContext(pr.E_),{prefixCls:Sa,className:on,showIcon:Dn=!1,showLine:un,switcherIcon:oa,blockNode:Ha=!1,children:gr,checkable:ar=!1,selectable:br=!0,draggable:_a,motion:aa,style:Xt}=Vt,Wn=bn("tree",Sa),ta=bn(),$a=aa!=null?aa:Object.assign(Object.assign({},(0,yr.Z)(ta)),{motionAppear:!1}),Er=Object.assign(Object.assign({},Vt),{checkable:ar,selectable:br,showIcon:Dn,motion:$a,blockNode:Ha,showLine:!!un,dropIndicatorRender:wi}),[Cr,Qr]=(0,gi.ZP)(Wn),Br=x.useMemo(()=>{if(!_a)return!1;let Ca={};switch(typeof _a){case"function":Ca.nodeDraggable=_a;break;case"object":Ca=Object.assign({},_a);break;default:break}return Ca.icon!==!1&&(Ca.icon=Ca.icon||x.createElement(Fo.Z,null)),Ca},[_a]),Kr=Ca=>x.createElement(Ni.Z,{prefixCls:Wn,switcherIcon:oa,treeNodeProps:Ca,showLine:un});return Cr(x.createElement(il,Object.assign({itemHeight:20,ref:qt,virtual:Pn},Er,{style:Object.assign(Object.assign({},ha==null?void 0:ha.style),Xt),prefixCls:Wn,className:Oe()({[`${Wn}-icon-hide`]:!Dn,[`${Wn}-block-node`]:Ha,[`${Wn}-unselectable`]:!br,[`${Wn}-rtl`]:et==="rtl"},ha==null?void 0:ha.className,on,Qr),direction:et,checkable:ar&&x.createElement("span",{className:`${Wn}-checkbox-inner`}),selectable:br,switcherIcon:Kr,draggable:Br}),gr))}),ll;(function(Vt){Vt[Vt.None=0]="None",Vt[Vt.Start=1]="Start",Vt[Vt.End=2]="End"})(ll||(ll={}));function vu(Vt,qt){function bn(et){const{key:Pn,children:ha}=et;qt(Pn,et)!==!1&&vu(ha||[],qt)}Vt.forEach(bn)}function ou(Vt){let{treeData:qt,expandedKeys:bn,startKey:et,endKey:Pn}=Vt;const ha=[];let Sa=ll.None;if(et&&et===Pn)return[et];if(!et||!Pn)return[];function on(Dn){return Dn===et||Dn===Pn}return vu(qt,Dn=>{if(Sa===ll.End)return!1;if(on(Dn)){if(ha.push(Dn),Sa===ll.None)Sa=ll.Start;else if(Sa===ll.Start)return Sa=ll.End,!1}else Sa===ll.Start&&ha.push(Dn);return bn.includes(Dn)}),ha}function vo(Vt,qt){const bn=(0,Ne.Z)(qt),et=[];return vu(Vt,(Pn,ha)=>{const Sa=bn.indexOf(Pn);return Sa!==-1&&(et.push(ha),bn.splice(Sa,1)),!!bn.length}),et}var hl=function(Vt,qt){var bn={};for(var et in Vt)Object.prototype.hasOwnProperty.call(Vt,et)&&qt.indexOf(et)<0&&(bn[et]=Vt[et]);if(Vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pn=0,et=Object.getOwnPropertySymbols(Vt);Pn<et.length;Pn++)qt.indexOf(et[Pn])<0&&Object.prototype.propertyIsEnumerable.call(Vt,et[Pn])&&(bn[et[Pn]]=Vt[et[Pn]]);return bn};function Yl(Vt){const{isLeaf:qt,expanded:bn}=Vt;return qt?x.createElement(pu.Z,null):bn?x.createElement(da.Z,null):x.createElement(ka,null)}function Xl(Vt){let{treeData:qt,children:bn}=Vt;return qt||(0,Kn.zn)(bn)}const al=(Vt,qt)=>{var{defaultExpandAll:bn,defaultExpandParent:et,defaultExpandedKeys:Pn}=Vt,ha=hl(Vt,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Sa=x.useRef(),on=x.useRef(),Dn=()=>{const{keyEntities:Br}=(0,Kn.I8)(Xl(ha));let Kr;return bn?Kr=Object.keys(Br):et?Kr=(0,Ho.r7)(ha.expandedKeys||Pn||[],Br):Kr=ha.expandedKeys||Pn,Kr},[un,oa]=x.useState(ha.selectedKeys||ha.defaultSelectedKeys||[]),[Ha,gr]=x.useState(()=>Dn());x.useEffect(()=>{"selectedKeys"in ha&&oa(ha.selectedKeys)},[ha.selectedKeys]),x.useEffect(()=>{"expandedKeys"in ha&&gr(ha.expandedKeys)},[ha.expandedKeys]);const ar=(Br,Kr)=>{var Ca;return"expandedKeys"in ha||gr(Br),(Ca=ha.onExpand)===null||Ca===void 0?void 0:Ca.call(ha,Br,Kr)},br=(Br,Kr)=>{var Ca;const{multiple:Wr}=ha,{node:Ko,nativeEvent:To}=Kr,{key:si=""}=Ko,Wo=Xl(ha),di=Object.assign(Object.assign({},Kr),{selected:!0}),uo=(To==null?void 0:To.ctrlKey)||(To==null?void 0:To.metaKey),ti=To==null?void 0:To.shiftKey;let Fi;Wr&&uo?(Fi=Br,Sa.current=si,on.current=Fi,di.selectedNodes=vo(Wo,Fi)):Wr&&ti?(Fi=Array.from(new Set([].concat((0,Ne.Z)(on.current||[]),(0,Ne.Z)(ou({treeData:Wo,expandedKeys:Ha,startKey:si,endKey:Sa.current}))))),di.selectedNodes=vo(Wo,Fi)):(Fi=[si],Sa.current=si,on.current=Fi,di.selectedNodes=vo(Wo,Fi)),(Ca=ha.onSelect)===null||Ca===void 0||Ca.call(ha,Fi,di),"selectedKeys"in ha||oa(Fi)},{getPrefixCls:_a,direction:aa}=x.useContext(pr.E_),{prefixCls:Xt,className:Wn,showIcon:ta=!0,expandAction:$a="click"}=ha,Er=hl(ha,["prefixCls","className","showIcon","expandAction"]),Cr=_a("tree",Xt),Qr=Oe()(`${Cr}-directory`,{[`${Cr}-directory-rtl`]:aa==="rtl"},Wn);return x.createElement(Jl,Object.assign({icon:Yl,ref:qt,blockNode:!0},Er,{showIcon:ta,expandAction:$a,prefixCls:Cr,className:Qr,expandedKeys:Ha,selectedKeys:un,onSelect:br,onExpand:ar}))};var ql=x.forwardRef(al);const Ll=Jl;Ll.DirectoryTree=ql,Ll.TreeNode=Aa.Z;var Rl=Ll},32157:function(Bt,Ct,ee){"use strict";ee.d(Ct,{TM:function(){return ye},Yk:function(){return Oe}});var b=ee(45930),ie=ee(63185),Be=ee(14747),Fe=ee(33507),Ne=ee(45503),je=ee(67968);const ue=new b.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Ge=(se,E)=>({[`.${se}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${E.motionDurationSlow}`}}}),Ae=(se,E)=>({[`.${se}-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:'""'}}}),Me=(se,E)=>{const{treeCls:a,treeNodeCls:x,treeNodePadding:y,titleHeight:z,nodeSelectedBg:te,nodeHoverBg:re}=E,oe=E.paddingXS;return{[a]:Object.assign(Object.assign({},(0,Be.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,Be.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,Be.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({},Ge(se,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:oe},[`${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"},Ae(se,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`}}}}})}},Te=se=>{const{treeCls:E,treeNodeCls:a,treeNodePadding:x,directoryNodeSelectedBg:y,directoryNodeSelectedColor:z}=se;return{[`${E}${E}-directory`]:{[a]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:x,insetInlineStart:0,transition:`background-color ${se.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:se.controlItemBgHover}},"> *":{zIndex:1},[`${E}-switcher`]:{transition:`color ${se.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"}}}}}},Oe=(se,E)=>{const a=`.${se}`,x=`${a}-treenode`,y=E.paddingXS/2,z=(0,Ne.TS)(E,{treeCls:a,treeNodeCls:x,treeNodePadding:y});return[Me(se,z),Te(z)]},ye=se=>{const{controlHeightSM:E}=se;return{titleHeight:E,nodeHoverBg:se.controlItemBgHover,nodeSelectedBg:se.controlItemBgActive}};Ct.ZP=(0,je.Z)("Tree",(se,E)=>{let{prefixCls:a}=E;return[{[se.componentCls]:(0,ie.C2)(`${a}-checkbox`,se)},Oe(a,se),(0,Fe.Z)(se)]},se=>{const{colorTextLightSolid:E,colorPrimary:a}=se;return Object.assign(Object.assign({},ye(se)),{directoryNodeSelectedColor:E,directoryNodeSelectedBg:a})})},99184:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return a}});var b=ee(87462),ie=ee(67294),Be={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=Be,Ne=ee(74643),je=function(y,z){return ie.createElement(Ne.Z,(0,b.Z)({},y,{ref:z,icon:Fe}))},ue=ie.forwardRef(je),Ge=ee(73148),Ae=ee(3407),Me=ee(34182),Te=ee(74664),Oe=ee(94184),ye=ee.n(Oe),se=ee(96159),a=x=>{const{prefixCls:y,switcherIcon:z,treeNodeProps:te,showLine:re}=x,{isLeaf:oe,expanded:de,loading:pe}=te;if(pe)return ie.createElement(Ae.Z,{className:`${y}-switcher-loading-icon`});let ge;if(re&&typeof re=="object"&&(ge=re.showLeafIcon),oe){if(!re)return null;if(typeof ge!="boolean"&&ge){const Se=typeof ge=="function"?ge(te):ge,ve=`${y}-switcher-line-custom-icon`;return(0,se.l$)(Se)?(0,se.Tm)(Se,{className:ye()(Se.props.className||"",ve)}):Se}return ge?ie.createElement(Ge.Z,{className:`${y}-switcher-line-icon`}):ie.createElement("span",{className:`${y}-switcher-leaf-line`})}const xe=`${y}-switcher-icon`,we=typeof z=="function"?z(te):z;return(0,se.l$)(we)?(0,se.Tm)(we,{className:ye()(we.props.className||"",xe)}):we!==void 0?we:re?de?ie.createElement(Me.Z,{className:`${y}-switcher-line-icon`}):ie.createElement(Te.Z,{className:`${y}-switcher-line-icon`}):ie.createElement(ue,{className:xe})}},72665:function(Bt,Ct){"use strict";var ee;var b=typeof Symbol=="function"&&Symbol.for,ie=b?Symbol.for("react.element"):60103,Be=b?Symbol.for("react.portal"):60106,Fe=b?Symbol.for("react.fragment"):60107,Ne=b?Symbol.for("react.strict_mode"):60108,je=b?Symbol.for("react.profiler"):60114,ue=b?Symbol.for("react.provider"):60109,Ge=b?Symbol.for("react.context"):60110,Ae=b?Symbol.for("react.async_mode"):60111,Me=b?Symbol.for("react.concurrent_mode"):60111,Te=b?Symbol.for("react.forward_ref"):60112,Oe=b?Symbol.for("react.suspense"):60113,ye=b?Symbol.for("react.suspense_list"):60120,se=b?Symbol.for("react.memo"):60115,E=b?Symbol.for("react.lazy"):60116,a=b?Symbol.for("react.block"):60121,x=b?Symbol.for("react.fundamental"):60117,y=b?Symbol.for("react.responder"):60118,z=b?Symbol.for("react.scope"):60119;function te(oe){if(typeof oe=="object"&&oe!==null){var de=oe.$$typeof;switch(de){case ie:switch(oe=oe.type,oe){case Ae:case Me:case Fe:case je:case Ne:case Oe:return oe;default:switch(oe=oe&&oe.$$typeof,oe){case Ge:case Te:case E:case se:case ue:return oe;default:return de}}case Be:return de}}}function re(oe){return te(oe)===Me}ee=Ae,ee=Me,ee=Ge,ee=ue,ee=ie,ee=Te,ee=Fe,ee=E,ee=se,ee=Be,ee=je,ee=Ne,ee=Oe,ee=function(oe){return re(oe)||te(oe)===Ae},ee=re,ee=function(oe){return te(oe)===Ge},ee=function(oe){return te(oe)===ue},ee=function(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===ie},ee=function(oe){return te(oe)===Te},ee=function(oe){return te(oe)===Fe},ee=function(oe){return te(oe)===E},Ct.isMemo=function(oe){return te(oe)===se},ee=function(oe){return te(oe)===Be},ee=function(oe){return te(oe)===je},ee=function(oe){return te(oe)===Ne},ee=function(oe){return te(oe)===Oe},ee=function(oe){return typeof oe=="string"||typeof oe=="function"||oe===Fe||oe===Me||oe===je||oe===Ne||oe===Oe||oe===ye||typeof oe=="object"&&oe!==null&&(oe.$$typeof===E||oe.$$typeof===se||oe.$$typeof===ue||oe.$$typeof===Ge||oe.$$typeof===Te||oe.$$typeof===x||oe.$$typeof===y||oe.$$typeof===z||oe.$$typeof===a)},ee=te},12060:function(Bt,Ct,ee){"use strict";Bt.exports=ee(72665)},56261:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return ge}});var b=ee(87462),ie=ee(4942),Be=ee(45987),Fe=ee(1413),Ne=ee(15671),je=ee(43144),ue=ee(97326),Ge=ee(60136),Ae=ee(51630),Me=ee(94184),Te=ee.n(Me),Oe=ee(34952),ye=ee(67294),se=ee(69610),E=function(we){for(var Se=we.prefixCls,ve=we.level,Qe=we.isStart,Le=we.isEnd,ke="".concat(Se,"-indent-unit"),Ce=[],Ke=0;Ke<ve;Ke+=1){var qe;Ce.push(ye.createElement("span",{key:Ke,className:Te()(ke,(qe={},(0,ie.Z)(qe,"".concat(ke,"-start"),Qe[Ke]),(0,ie.Z)(qe,"".concat(ke,"-end"),Le[Ke]),qe))}))}return ye.createElement("span",{"aria-hidden":"true",className:"".concat(Se,"-indent")},Ce)},a=ye.memo(E),x=ee(3596),y=ee(83898),z=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],te="open",re="close",oe="---",de=function(xe){(0,Ge.Z)(Se,xe);var we=(0,Ae.Z)(Se);function Se(){var ve;(0,Ne.Z)(this,Se);for(var Qe=arguments.length,Le=new Array(Qe),ke=0;ke<Qe;ke++)Le[ke]=arguments[ke];return ve=we.call.apply(we,[this].concat(Le)),ve.state={dragNodeHighlight:!1},ve.selectHandle=void 0,ve.cacheIndent=void 0,ve.onSelectorClick=function(Ce){var Ke=ve.props.context.onNodeClick;Ke(Ce,(0,y.F)(ve.props)),ve.isSelectable()?ve.onSelect(Ce):ve.onCheck(Ce)},ve.onSelectorDoubleClick=function(Ce){var Ke=ve.props.context.onNodeDoubleClick;Ke(Ce,(0,y.F)(ve.props))},ve.onSelect=function(Ce){if(!ve.isDisabled()){var Ke=ve.props.context.onNodeSelect;Ke(Ce,(0,y.F)(ve.props))}},ve.onCheck=function(Ce){if(!ve.isDisabled()){var Ke=ve.props,qe=Ke.disableCheckbox,Ue=Ke.checked,Ye=ve.props.context.onNodeCheck;if(!(!ve.isCheckable()||qe)){var ct=!Ue;Ye(Ce,(0,y.F)(ve.props),ct)}}},ve.onMouseEnter=function(Ce){var Ke=ve.props.context.onNodeMouseEnter;Ke(Ce,(0,y.F)(ve.props))},ve.onMouseLeave=function(Ce){var Ke=ve.props.context.onNodeMouseLeave;Ke(Ce,(0,y.F)(ve.props))},ve.onContextMenu=function(Ce){var Ke=ve.props.context.onNodeContextMenu;Ke(Ce,(0,y.F)(ve.props))},ve.onDragStart=function(Ce){var Ke=ve.props.context.onNodeDragStart;Ce.stopPropagation(),ve.setState({dragNodeHighlight:!0}),Ke(Ce,(0,ue.Z)(ve));try{Ce.dataTransfer.setData("text/plain","")}catch(qe){}},ve.onDragEnter=function(Ce){var Ke=ve.props.context.onNodeDragEnter;Ce.preventDefault(),Ce.stopPropagation(),Ke(Ce,(0,ue.Z)(ve))},ve.onDragOver=function(Ce){var Ke=ve.props.context.onNodeDragOver;Ce.preventDefault(),Ce.stopPropagation(),Ke(Ce,(0,ue.Z)(ve))},ve.onDragLeave=function(Ce){var Ke=ve.props.context.onNodeDragLeave;Ce.stopPropagation(),Ke(Ce,(0,ue.Z)(ve))},ve.onDragEnd=function(Ce){var Ke=ve.props.context.onNodeDragEnd;Ce.stopPropagation(),ve.setState({dragNodeHighlight:!1}),Ke(Ce,(0,ue.Z)(ve))},ve.onDrop=function(Ce){var Ke=ve.props.context.onNodeDrop;Ce.preventDefault(),Ce.stopPropagation(),ve.setState({dragNodeHighlight:!1}),Ke(Ce,(0,ue.Z)(ve))},ve.onExpand=function(Ce){var Ke=ve.props,qe=Ke.loading,Ue=Ke.context.onNodeExpand;qe||Ue(Ce,(0,y.F)(ve.props))},ve.setSelectHandle=function(Ce){ve.selectHandle=Ce},ve.getNodeState=function(){var Ce=ve.props.expanded;return ve.isLeaf()?null:Ce?te:re},ve.hasChildren=function(){var Ce=ve.props.eventKey,Ke=ve.props.context.keyEntities,qe=(0,x.Z)(Ke,Ce)||{},Ue=qe.children;return!!(Ue||[]).length},ve.isLeaf=function(){var Ce=ve.props,Ke=Ce.isLeaf,qe=Ce.loaded,Ue=ve.props.context.loadData,Ye=ve.hasChildren();return Ke===!1?!1:Ke||!Ue&&!Ye||Ue&&qe&&!Ye},ve.isDisabled=function(){var Ce=ve.props.disabled,Ke=ve.props.context.disabled;return!!(Ke||Ce)},ve.isCheckable=function(){var Ce=ve.props.checkable,Ke=ve.props.context.checkable;return!Ke||Ce===!1?!1:Ke},ve.syncLoadData=function(Ce){var Ke=Ce.expanded,qe=Ce.loading,Ue=Ce.loaded,Ye=ve.props.context,ct=Ye.loadData,yt=Ye.onNodeLoad;qe||ct&&Ke&&!ve.isLeaf()&&!ve.hasChildren()&&!Ue&&yt((0,y.F)(ve.props))},ve.isDraggable=function(){var Ce=ve.props,Ke=Ce.data,qe=Ce.context.draggable;return!!(qe&&(!qe.nodeDraggable||qe.nodeDraggable(Ke)))},ve.renderDragHandler=function(){var Ce=ve.props.context,Ke=Ce.draggable,qe=Ce.prefixCls;return Ke!=null&&Ke.icon?ye.createElement("span",{className:"".concat(qe,"-draggable-icon")},Ke.icon):null},ve.renderSwitcherIconDom=function(Ce){var Ke=ve.props.switcherIcon,qe=ve.props.context.switcherIcon,Ue=Ke||qe;return typeof Ue=="function"?Ue((0,Fe.Z)((0,Fe.Z)({},ve.props),{},{isLeaf:Ce})):Ue},ve.renderSwitcher=function(){var Ce=ve.props.expanded,Ke=ve.props.context.prefixCls;if(ve.isLeaf()){var qe=ve.renderSwitcherIconDom(!0);return qe!==!1?ye.createElement("span",{className:Te()("".concat(Ke,"-switcher"),"".concat(Ke,"-switcher-noop"))},qe):null}var Ue=Te()("".concat(Ke,"-switcher"),"".concat(Ke,"-switcher_").concat(Ce?te:re)),Ye=ve.renderSwitcherIconDom(!1);return Ye!==!1?ye.createElement("span",{onClick:ve.onExpand,className:Ue},Ye):null},ve.renderCheckbox=function(){var Ce=ve.props,Ke=Ce.checked,qe=Ce.halfChecked,Ue=Ce.disableCheckbox,Ye=ve.props.context.prefixCls,ct=ve.isDisabled(),yt=ve.isCheckable();if(!yt)return null;var $t=typeof yt!="boolean"?yt:null;return ye.createElement("span",{className:Te()("".concat(Ye,"-checkbox"),Ke&&"".concat(Ye,"-checkbox-checked"),!Ke&&qe&&"".concat(Ye,"-checkbox-indeterminate"),(ct||Ue)&&"".concat(Ye,"-checkbox-disabled")),onClick:ve.onCheck},$t)},ve.renderIcon=function(){var Ce=ve.props.loading,Ke=ve.props.context.prefixCls;return ye.createElement("span",{className:Te()("".concat(Ke,"-iconEle"),"".concat(Ke,"-icon__").concat(ve.getNodeState()||"docu"),Ce&&"".concat(Ke,"-icon_loading"))})},ve.renderSelector=function(){var Ce=ve.state.dragNodeHighlight,Ke=ve.props,qe=Ke.title,Ue=qe===void 0?oe:qe,Ye=Ke.selected,ct=Ke.icon,yt=Ke.loading,$t=Ke.data,an=ve.props.context,rt=an.prefixCls,jt=an.showIcon,It=an.icon,hn=an.loadData,Mt=an.titleRender,Yt=ve.isDisabled(),Re="".concat(rt,"-node-content-wrapper"),Wt;if(jt){var Sn=ct||It;Wt=Sn?ye.createElement("span",{className:Te()("".concat(rt,"-iconEle"),"".concat(rt,"-icon__customize"))},typeof Sn=="function"?Sn(ve.props):Sn):ve.renderIcon()}else hn&&yt&&(Wt=ve.renderIcon());var xt;typeof Ue=="function"?xt=Ue($t):Mt?xt=Mt($t):xt=Ue;var Et=ye.createElement("span",{className:"".concat(rt,"-title")},xt);return ye.createElement("span",{ref:ve.setSelectHandle,title:typeof Ue=="string"?Ue:"",className:Te()("".concat(Re),"".concat(Re,"-").concat(ve.getNodeState()||"normal"),!Yt&&(Ye||Ce)&&"".concat(rt,"-node-selected")),onMouseEnter:ve.onMouseEnter,onMouseLeave:ve.onMouseLeave,onContextMenu:ve.onContextMenu,onClick:ve.onSelectorClick,onDoubleClick:ve.onSelectorDoubleClick},Wt,Et,ve.renderDropIndicator())},ve.renderDropIndicator=function(){var Ce=ve.props,Ke=Ce.disabled,qe=Ce.eventKey,Ue=ve.props.context,Ye=Ue.draggable,ct=Ue.dropLevelOffset,yt=Ue.dropPosition,$t=Ue.prefixCls,an=Ue.indent,rt=Ue.dropIndicatorRender,jt=Ue.dragOverNodeKey,It=Ue.direction,hn=!!Ye,Mt=!Ke&&hn&&jt===qe,Yt=an!=null?an:ve.cacheIndent;return ve.cacheIndent=an,Mt?rt({dropPosition:yt,dropLevelOffset:ct,indent:Yt,prefixCls:$t,direction:It}):null},ve}return(0,je.Z)(Se,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Qe=this.props.selectable,Le=this.props.context.selectable;return typeof Qe=="boolean"?Qe:Le}},{key:"render",value:function(){var Qe,Le=this.props,ke=Le.eventKey,Ce=Le.className,Ke=Le.style,qe=Le.dragOver,Ue=Le.dragOverGapTop,Ye=Le.dragOverGapBottom,ct=Le.isLeaf,yt=Le.isStart,$t=Le.isEnd,an=Le.expanded,rt=Le.selected,jt=Le.checked,It=Le.halfChecked,hn=Le.loading,Mt=Le.domRef,Yt=Le.active,Re=Le.data,Wt=Le.onMouseMove,Sn=Le.selectable,xt=(0,Be.Z)(Le,z),Et=this.props.context,Lt=Et.prefixCls,He=Et.filterTreeNode,Ze=Et.keyEntities,Ve=Et.dropContainerKey,gt=Et.dropTargetKey,Dt=Et.draggingNodeKey,Gt=this.isDisabled(),Bn=(0,Oe.Z)(xt,{aria:!0,data:!0}),Fn=(0,x.Z)(Ze,ke)||{},tn=Fn.level,_n=$t[$t.length-1],Xe=this.isDraggable(),vt=!Gt&&Xe,mn=Dt===ke,Cn=Sn!==void 0?{"aria-selected":!!Sn}:void 0;return ye.createElement("div",(0,b.Z)({ref:Mt,className:Te()(Ce,"".concat(Lt,"-treenode"),(Qe={},(0,ie.Z)(Qe,"".concat(Lt,"-treenode-disabled"),Gt),(0,ie.Z)(Qe,"".concat(Lt,"-treenode-switcher-").concat(an?"open":"close"),!ct),(0,ie.Z)(Qe,"".concat(Lt,"-treenode-checkbox-checked"),jt),(0,ie.Z)(Qe,"".concat(Lt,"-treenode-checkbox-indeterminate"),It),(0,ie.Z)(Qe,"".concat(Lt,"-treenode-selected"),rt),(0,ie.Z)(Qe,"".concat(Lt,"-treenode-loading"),hn),(0,ie.Z)(Qe,"".concat(Lt,"-treenode-active"),Yt),(0,ie.Z)(Qe,"".concat(Lt,"-treenode-leaf-last"),_n),(0,ie.Z)(Qe,"".concat(Lt,"-treenode-draggable"),Xe),(0,ie.Z)(Qe,"dragging",mn),(0,ie.Z)(Qe,"drop-target",gt===ke),(0,ie.Z)(Qe,"drop-container",Ve===ke),(0,ie.Z)(Qe,"drag-over",!Gt&&qe),(0,ie.Z)(Qe,"drag-over-gap-top",!Gt&&Ue),(0,ie.Z)(Qe,"drag-over-gap-bottom",!Gt&&Ye),(0,ie.Z)(Qe,"filter-node",He&&He((0,y.F)(this.props))),Qe)),style:Ke,draggable:vt,"aria-grabbed":mn,onDragStart:vt?this.onDragStart:void 0,onDragEnter:Xe?this.onDragEnter:void 0,onDragOver:Xe?this.onDragOver:void 0,onDragLeave:Xe?this.onDragLeave:void 0,onDrop:Xe?this.onDrop:void 0,onDragEnd:Xe?this.onDragEnd:void 0,onMouseMove:Wt},Cn,Bn),ye.createElement(a,{prefixCls:Lt,level:tn,isStart:yt,isEnd:$t}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Se}(ye.Component),pe=function(we){return ye.createElement(se.k.Consumer,null,function(Se){return ye.createElement(de,(0,b.Z)({},we,{context:Se}))})};pe.displayName="TreeNode",pe.isTreeNode=1;var ge=pe},69610:function(Bt,Ct,ee){"use strict";ee.d(Ct,{k:function(){return ie}});var b=ee(67294),ie=b.createContext(null)},29873:function(Bt,Ct,ee){"use strict";ee.d(Ct,{BT:function(){return a},E6:function(){return z},L0:function(){return Me},OM:function(){return E},_5:function(){return Ae},r7:function(){return te},wA:function(){return Oe},yx:function(){return Te}});var b=ee(74902),ie=ee(71002),Be=ee(72978),Fe=ee(67294),Ne=ee(56261),je=ee(3596),ue=ee(83898),Ge=null;function Ae(re,oe){if(!re)return[];var de=re.slice(),pe=de.indexOf(oe);return pe>=0&&de.splice(pe,1),de}function Me(re,oe){var de=(re||[]).slice();return de.indexOf(oe)===-1&&de.push(oe),de}function Te(re){return re.split("-")}function Oe(re,oe){var de=[],pe=(0,je.Z)(oe,re);function ge(){var xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];xe.forEach(function(we){var Se=we.key,ve=we.children;de.push(Se),ge(ve)})}return ge(pe.children),de}function ye(re){if(re.parent){var oe=Te(re.pos);return Number(oe[oe.length-1])===re.parent.children.length-1}return!1}function se(re){var oe=Te(re.pos);return Number(oe[oe.length-1])===0}function E(re,oe,de,pe,ge,xe,we,Se,ve,Qe){var Le,ke=re.clientX,Ce=re.clientY,Ke=re.target.getBoundingClientRect(),qe=Ke.top,Ue=Ke.height,Ye=(Qe==="rtl"?-1:1)*(((ge==null?void 0:ge.x)||0)-ke),ct=(Ye-12)/pe,yt=(0,je.Z)(Se,de.props.eventKey);if(Ce<qe+Ue/2){var $t=we.findIndex(function(Et){return Et.key===yt.key}),an=$t<=0?0:$t-1,rt=we[an].key;yt=(0,je.Z)(Se,rt)}var jt=yt.key,It=yt,hn=yt.key,Mt=0,Yt=0;if(!ve.includes(jt))for(var Re=0;Re<ct&&ye(yt);Re+=1)yt=yt.parent,Yt+=1;var Wt=oe.props.data,Sn=yt.node,xt=!0;return se(yt)&&yt.level===0&&Ce<qe+Ue/2&&xe({dragNode:Wt,dropNode:Sn,dropPosition:-1})&&yt.key===de.props.eventKey?Mt=-1:(It.children||[]).length&&ve.includes(hn)?xe({dragNode:Wt,dropNode:Sn,dropPosition:0})?Mt=0:xt=!1:Yt===0?ct>-1.5?xe({dragNode:Wt,dropNode:Sn,dropPosition:1})?Mt=1:xt=!1:xe({dragNode:Wt,dropNode:Sn,dropPosition:0})?Mt=0:xe({dragNode:Wt,dropNode:Sn,dropPosition:1})?Mt=1:xt=!1:xe({dragNode:Wt,dropNode:Sn,dropPosition:1})?Mt=1:xt=!1,{dropPosition:Mt,dropLevelOffset:Yt,dropTargetKey:yt.key,dropTargetPos:yt.pos,dragOverNodeKey:hn,dropContainerKey:Mt===0?null:((Le=yt.parent)===null||Le===void 0?void 0:Le.key)||null,dropAllowed:xt}}function a(re,oe){if(re){var de=oe.multiple;return de?re.slice():re.length?[re[0]]:re}}var x=function(oe){return oe};function y(re,oe){if(!re)return[];var de=oe||{},pe=de.processProps,ge=pe===void 0?x:pe,xe=Array.isArray(re)?re:[re];return xe.map(function(we){var Se=we.children,ve=_objectWithoutProperties(we,Ge),Qe=y(Se,oe);return React.createElement(TreeNode,_extends({key:ve.key},ge(ve)),Qe)})}function z(re){if(!re)return null;var oe;if(Array.isArray(re))oe={checkedKeys:re,halfCheckedKeys:void 0};else if((0,ie.Z)(re)==="object")oe={checkedKeys:re.checked||void 0,halfCheckedKeys:re.halfChecked||void 0};else return(0,Be.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return oe}function te(re,oe){var de=new Set;function pe(ge){if(!de.has(ge)){var xe=(0,je.Z)(oe,ge);if(xe){de.add(ge);var we=xe.parent,Se=xe.node;Se.disabled||we&&pe(we.key)}}}return(re||[]).forEach(function(ge){pe(ge)}),(0,b.Z)(de)}},97153:function(Bt,Ct,ee){"use strict";ee.d(Ct,{S:function(){return ue}});var b=ee(72978),ie=ee(3596);function Be(Ge,Ae){var Me=new Set;return Ge.forEach(function(Te){Ae.has(Te)||Me.add(Te)}),Me}function Fe(Ge){var Ae=Ge||{},Me=Ae.disabled,Te=Ae.disableCheckbox,Oe=Ae.checkable;return!!(Me||Te)||Oe===!1}function Ne(Ge,Ae,Me,Te){for(var Oe=new Set(Ge),ye=new Set,se=0;se<=Me;se+=1){var E=Ae.get(se)||new Set;E.forEach(function(z){var te=z.key,re=z.node,oe=z.children,de=oe===void 0?[]:oe;Oe.has(te)&&!Te(re)&&de.filter(function(pe){return!Te(pe.node)}).forEach(function(pe){Oe.add(pe.key)})})}for(var a=new Set,x=Me;x>=0;x-=1){var y=Ae.get(x)||new Set;y.forEach(function(z){var te=z.parent,re=z.node;if(!(Te(re)||!z.parent||a.has(z.parent.key))){if(Te(z.parent.node)){a.add(te.key);return}var oe=!0,de=!1;(te.children||[]).filter(function(pe){return!Te(pe.node)}).forEach(function(pe){var ge=pe.key,xe=Oe.has(ge);oe&&!xe&&(oe=!1),!de&&(xe||ye.has(ge))&&(de=!0)}),oe&&Oe.add(te.key),de&&ye.add(te.key),a.add(te.key)}})}return{checkedKeys:Array.from(Oe),halfCheckedKeys:Array.from(Be(ye,Oe))}}function je(Ge,Ae,Me,Te,Oe){for(var ye=new Set(Ge),se=new Set(Ae),E=0;E<=Te;E+=1){var a=Me.get(E)||new Set;a.forEach(function(te){var re=te.key,oe=te.node,de=te.children,pe=de===void 0?[]:de;!ye.has(re)&&!se.has(re)&&!Oe(oe)&&pe.filter(function(ge){return!Oe(ge.node)}).forEach(function(ge){ye.delete(ge.key)})})}se=new Set;for(var x=new Set,y=Te;y>=0;y-=1){var z=Me.get(y)||new Set;z.forEach(function(te){var re=te.parent,oe=te.node;if(!(Oe(oe)||!te.parent||x.has(te.parent.key))){if(Oe(te.parent.node)){x.add(re.key);return}var de=!0,pe=!1;(re.children||[]).filter(function(ge){return!Oe(ge.node)}).forEach(function(ge){var xe=ge.key,we=ye.has(xe);de&&!we&&(de=!1),!pe&&(we||se.has(xe))&&(pe=!0)}),de||ye.delete(re.key),pe&&se.add(re.key),x.add(re.key)}})}return{checkedKeys:Array.from(ye),halfCheckedKeys:Array.from(Be(se,ye))}}function ue(Ge,Ae,Me,Te){var Oe=[],ye;Te?ye=Te:ye=Fe;var se=new Set(Ge.filter(function(y){var z=!!(0,ie.Z)(Me,y);return z||Oe.push(y),z})),E=new Map,a=0;Object.keys(Me).forEach(function(y){var z=Me[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)(!Oe.length,"Tree missing follow keys: ".concat(Oe.slice(0,100).map(function(y){return"'".concat(y,"'")}).join(", ")));var x;return Ae===!0?x=Ne(se,E,a,ye):x=je(se,Ae.halfCheckedKeys,E,a,ye),x}},3596:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return b}});function b(ie,Be){return ie[Be]}},83898:function(Bt,Ct,ee){"use strict";ee.d(Ct,{I8:function(){return te},F:function(){return oe},zn:function(){return x},w$:function(){return E},oH:function(){return y},km:function(){return se},H8:function(){return re}});var b=ee(71002),ie=ee(74902),Be=ee(1413),Fe=ee(45987),Ne=ee(67294),je=ee(28580);function ue(de){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ge=[];return Ne.Children.forEach(de,function(xe){xe==null&&!pe.keepEmpty||(Array.isArray(xe)?ge=ge.concat(ue(xe)):(0,je.isFragment)(xe)&&xe.props?ge=ge.concat(ue(xe.props.children,pe)):ge.push(xe))}),ge}function Ge(de,pe){var ge=(0,Be.Z)({},de);return Array.isArray(pe)&&pe.forEach(function(xe){delete ge[xe]}),ge}var Ae=ee(72978),Me=ee(3596),Te=["children"];function Oe(de,pe){return"".concat(de,"-").concat(pe)}function ye(de){return de&&de.type&&de.type.isTreeNode}function se(de,pe){return de!=null?de:pe}function E(de){var pe=de||{},ge=pe.title,xe=pe._title,we=pe.key,Se=pe.children,ve=ge||"title";return{title:ve,_title:xe||[ve],key:we||"key",children:Se||"children"}}function a(de,pe){var ge=new Map;function xe(we){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(we||[]).forEach(function(ve){var Qe=ve[pe.key],Le=ve[pe.children];warning(Qe!=null,"Tree node must have a certain key: [".concat(Se).concat(Qe,"]"));var ke=String(Qe);warning(!ge.has(ke)||Qe===null||Qe===void 0,"Same 'key' exist in the Tree: ".concat(ke)),ge.set(ke,!0),xe(Le,"".concat(Se).concat(ke," > "))})}xe(de)}function x(de){function pe(ge){var xe=ue(ge);return xe.map(function(we){if(!ye(we))return(0,Ae.ZP)(!we,"Tree/TreeNode can only accept TreeNode as children."),null;var Se=we.key,ve=we.props,Qe=ve.children,Le=(0,Fe.Z)(ve,Te),ke=(0,Be.Z)({key:Se},Le),Ce=pe(Qe);return Ce.length&&(ke.children=Ce),ke}).filter(function(we){return we})}return pe(de)}function y(de,pe,ge){var xe=E(ge),we=xe._title,Se=xe.key,ve=xe.children,Qe=new Set(pe===!0?[]:pe),Le=[];function ke(Ce){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ce.map(function(qe,Ue){for(var Ye=Oe(Ke?Ke.pos:"0",Ue),ct=se(qe[Se],Ye),yt,$t=0;$t<we.length;$t+=1){var an=we[$t];if(qe[an]!==void 0){yt=qe[an];break}}var rt=(0,Be.Z)((0,Be.Z)({},Ge(qe,[].concat((0,ie.Z)(we),[Se,ve]))),{},{title:yt,key:ct,parent:Ke,pos:Ye,children:null,data:qe,isStart:[].concat((0,ie.Z)(Ke?Ke.isStart:[]),[Ue===0]),isEnd:[].concat((0,ie.Z)(Ke?Ke.isEnd:[]),[Ue===Ce.length-1])});return Le.push(rt),pe===!0||Qe.has(ct)?rt.children=ke(qe[ve]||[],rt):rt.children=[],rt})}return ke(de),Le}function z(de,pe,ge){var xe={};(0,b.Z)(ge)==="object"?xe=ge:xe={externalGetKey:ge},xe=xe||{};var we=xe,Se=we.childrenPropName,ve=we.externalGetKey,Qe=we.fieldNames,Le=E(Qe),ke=Le.key,Ce=Le.children,Ke=Se||Ce,qe;ve?typeof ve=="string"?qe=function(ct){return ct[ve]}:typeof ve=="function"&&(qe=function(ct){return ve(ct)}):qe=function(ct,yt){return se(ct[ke],yt)};function Ue(Ye,ct,yt,$t){var an=Ye?Ye[Ke]:de,rt=Ye?Oe(yt.pos,ct):"0",jt=Ye?[].concat((0,ie.Z)($t),[Ye]):[];if(Ye){var It=qe(Ye,rt),hn={node:Ye,index:ct,pos:rt,key:It,parentPos:yt.node?yt.pos:null,level:yt.level+1,nodes:jt};pe(hn)}an&&an.forEach(function(Mt,Yt){Ue(Mt,Yt,{node:Ye,pos:rt,level:yt?yt.level+1:-1},jt)})}Ue(null)}function te(de){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ge=pe.initWrapper,xe=pe.processEntity,we=pe.onProcessFinished,Se=pe.externalGetKey,ve=pe.childrenPropName,Qe=pe.fieldNames,Le=arguments.length>2?arguments[2]:void 0,ke=Se||Le,Ce={},Ke={},qe={posEntities:Ce,keyEntities:Ke};return ge&&(qe=ge(qe)||qe),z(de,function(Ue){var Ye=Ue.node,ct=Ue.index,yt=Ue.pos,$t=Ue.key,an=Ue.parentPos,rt=Ue.level,jt=Ue.nodes,It={node:Ye,nodes:jt,index:ct,key:$t,pos:yt,level:rt},hn=se($t,yt);Ce[yt]=It,Ke[hn]=It,It.parent=Ce[an],It.parent&&(It.parent.children=It.parent.children||[],It.parent.children.push(It)),xe&&xe(It,qe)},{externalGetKey:ke,childrenPropName:ve,fieldNames:Qe}),we&&we(qe),qe}function re(de,pe){var ge=pe.expandedKeys,xe=pe.selectedKeys,we=pe.loadedKeys,Se=pe.loadingKeys,ve=pe.checkedKeys,Qe=pe.halfCheckedKeys,Le=pe.dragOverNodeKey,ke=pe.dropPosition,Ce=pe.keyEntities,Ke=(0,Me.Z)(Ce,de),qe={eventKey:de,expanded:ge.indexOf(de)!==-1,selected:xe.indexOf(de)!==-1,loaded:we.indexOf(de)!==-1,loading:Se.indexOf(de)!==-1,checked:ve.indexOf(de)!==-1,halfChecked:Qe.indexOf(de)!==-1,pos:String(Ke?Ke.pos:""),dragOver:Le===de&&ke===0,dragOverGapTop:Le===de&&ke===-1,dragOverGapBottom:Le===de&&ke===1};return qe}function oe(de){var pe=de.data,ge=de.expanded,xe=de.selected,we=de.checked,Se=de.loaded,ve=de.loading,Qe=de.halfChecked,Le=de.dragOver,ke=de.dragOverGapTop,Ce=de.dragOverGapBottom,Ke=de.pos,qe=de.active,Ue=de.eventKey,Ye=(0,Be.Z)((0,Be.Z)({},pe),{},{expanded:ge,selected:xe,checked:we,loaded:Se,loading:ve,halfChecked:Qe,dragOver:Le,dragOverGapTop:ke,dragOverGapBottom:Ce,pos:Ke,active:qe,key:Ue});return"props"in Ye||Object.defineProperty(Ye,"props",{get:function(){return(0,Ae.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),de}}),Ye}},34952:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return Ge}});var b=ee(1413),ie=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
summary tabIndex target title type useMap value width wmode wrap`,Be=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Fe="".concat(ie," ").concat(Be).split(/[\s\n]+/),Ne="aria-",je="data-";function ue(Ae,Me){return Ae.indexOf(Me)===0}function Ge(Ae){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Te;Me===!1?Te={aria:!0,data:!0,attr:!0}:Me===!0?Te={aria:!0}:Te=(0,b.Z)({},Me);var Oe={};return Object.keys(Ae).forEach(function(ye){(Te.aria&&(ye==="role"||ue(ye,Ne))||Te.data&&ue(ye,je)||Te.attr&&Fe.includes(ye))&&(Oe[ye]=Ae[ye])}),Oe}},72978:function(Bt,Ct,ee){"use strict";var b={};function ie(Ge,Ae){}function Be(Ge,Ae){}function Fe(){b={}}function Ne(Ge,Ae,Me){!Ae&&!b[Me]&&(Ge(!1,Me),b[Me]=!0)}function je(Ge,Ae){Ne(ie,Ge,Ae)}function ue(Ge,Ae){Ne(Be,Ge,Ae)}Ct.ZP=je},81533:function(Bt,Ct){"use strict";var ee;var b=typeof Symbol=="function"&&Symbol.for,ie=b?Symbol.for("react.element"):60103,Be=b?Symbol.for("react.portal"):60106,Fe=b?Symbol.for("react.fragment"):60107,Ne=b?Symbol.for("react.strict_mode"):60108,je=b?Symbol.for("react.profiler"):60114,ue=b?Symbol.for("react.provider"):60109,Ge=b?Symbol.for("react.context"):60110,Ae=b?Symbol.for("react.async_mode"):60111,Me=b?Symbol.for("react.concurrent_mode"):60111,Te=b?Symbol.for("react.forward_ref"):60112,Oe=b?Symbol.for("react.suspense"):60113,ye=b?Symbol.for("react.suspense_list"):60120,se=b?Symbol.for("react.memo"):60115,E=b?Symbol.for("react.lazy"):60116,a=b?Symbol.for("react.block"):60121,x=b?Symbol.for("react.fundamental"):60117,y=b?Symbol.for("react.responder"):60118,z=b?Symbol.for("react.scope"):60119;function te(oe){if(typeof oe=="object"&&oe!==null){var de=oe.$$typeof;switch(de){case ie:switch(oe=oe.type,oe){case Ae:case Me:case Fe:case je:case Ne:case Oe:return oe;default:switch(oe=oe&&oe.$$typeof,oe){case Ge:case Te:case E:case se:case ue:return oe;default:return de}}case Be:return de}}}function re(oe){return te(oe)===Me}ee=Ae,ee=Me,ee=Ge,ee=ue,ee=ie,ee=Te,ee=Fe,ee=E,ee=se,ee=Be,ee=je,ee=Ne,ee=Oe,ee=function(oe){return re(oe)||te(oe)===Ae},ee=re,ee=function(oe){return te(oe)===Ge},ee=function(oe){return te(oe)===ue},ee=function(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===ie},ee=function(oe){return te(oe)===Te},Ct.isFragment=function(oe){return te(oe)===Fe},ee=function(oe){return te(oe)===E},Ct.isMemo=function(oe){return te(oe)===se},ee=function(oe){return te(oe)===Be},ee=function(oe){return te(oe)===je},ee=function(oe){return te(oe)===Ne},ee=function(oe){return te(oe)===Oe},ee=function(oe){return typeof oe=="string"||typeof oe=="function"||oe===Fe||oe===Me||oe===je||oe===Ne||oe===Oe||oe===ye||typeof oe=="object"&&oe!==null&&(oe.$$typeof===E||oe.$$typeof===se||oe.$$typeof===ue||oe.$$typeof===Ge||oe.$$typeof===Te||oe.$$typeof===x||oe.$$typeof===y||oe.$$typeof===z||oe.$$typeof===a)},ee=te},28580:function(Bt,Ct,ee){"use strict";Bt.exports=ee(81533)},92389:function(Bt,Ct){"use strict";var ee={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(ie){var Be=ie.keyCode;if(ie.altKey&&!ie.ctrlKey||ie.metaKey||Be>=ee.F1&&Be<=ee.F12)return!1;switch(Be){case ee.ALT:case ee.CAPS_LOCK:case ee.CONTEXT_MENU:case ee.CTRL:case ee.DOWN:case ee.END:case ee.ESC:case ee.HOME:case ee.INSERT:case ee.LEFT:case ee.MAC_FF_META:case ee.META:case ee.NUMLOCK:case ee.NUM_CENTER:case ee.PAGE_DOWN:case ee.PAGE_UP:case ee.PAUSE:case ee.PRINT_SCREEN:case ee.RIGHT:case ee.SHIFT:case ee.UP:case ee.WIN_KEY:case ee.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ie){if(ie>=ee.ZERO&&ie<=ee.NINE||ie>=ee.NUM_ZERO&&ie<=ee.NUM_MULTIPLY||ie>=ee.A&&ie<=ee.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ie===0)return!0;switch(ie){case ee.SPACE:case ee.QUESTION_MARK:case ee.NUM_PLUS:case ee.NUM_MINUS:case ee.NUM_PERIOD:case ee.NUM_DIVISION:case ee.SEMICOLON:case ee.DASH:case ee.EQUALS:case ee.COMMA:case ee.PERIOD:case ee.SLASH:case ee.APOSTROPHE:case ee.SINGLE_QUOTE:case ee.OPEN_SQUARE_BRACKET:case ee.BACKSLASH:case ee.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};Ct.Z=ee},19575:function(Bt,Ct,ee){var b,ie;(function(Be,Fe){Bt.exports=Fe(Be)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ee.g!="undefined"?ee.g:this,function(Be){"use strict";Be=Be||{};var Fe=Be.Base64,Ne="2.6.4",je="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ue=function(Le){for(var ke={},Ce=0,Ke=Le.length;Ce<Ke;Ce++)ke[Le.charAt(Ce)]=Ce;return ke}(je),Ge=String.fromCharCode,Ae=function(Le){if(Le.length<2){var ke=Le.charCodeAt(0);return ke<128?Le:ke<2048?Ge(192|ke>>>6)+Ge(128|ke&63):Ge(224|ke>>>12&15)+Ge(128|ke>>>6&63)+Ge(128|ke&63)}else{var ke=65536+(Le.charCodeAt(0)-55296)*1024+(Le.charCodeAt(1)-56320);return Ge(240|ke>>>18&7)+Ge(128|ke>>>12&63)+Ge(128|ke>>>6&63)+Ge(128|ke&63)}},Me=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Te=function(Le){return Le.replace(Me,Ae)},Oe=function(Le){var ke=[0,2,1][Le.length%3],Ce=Le.charCodeAt(0)<<16|(Le.length>1?Le.charCodeAt(1):0)<<8|(Le.length>2?Le.charCodeAt(2):0),Ke=[je.charAt(Ce>>>18),je.charAt(Ce>>>12&63),ke>=2?"=":je.charAt(Ce>>>6&63),ke>=1?"=":je.charAt(Ce&63)];return Ke.join("")},ye=Be.btoa&&typeof Be.btoa=="function"?function(Le){return Be.btoa(Le)}:function(Le){if(Le.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Le.replace(/[\s\S]{1,3}/g,Oe)},se=function(Le){return ye(Te(String(Le)))},E=function(Le){return Le.replace(/[+\/]/g,function(ke){return ke=="+"?"-":"_"}).replace(/=/g,"")},a=function(Le,ke){return ke?E(se(Le)):se(Le)},x=function(Le){return a(Le,!0)},y;Be.Uint8Array&&(y=function(Le,ke){for(var Ce="",Ke=0,qe=Le.length;Ke<qe;Ke+=3){var Ue=Le[Ke],Ye=Le[Ke+1],ct=Le[Ke+2],yt=Ue<<16|Ye<<8|ct;Ce+=je.charAt(yt>>>18)+je.charAt(yt>>>12&63)+(typeof Ye!="undefined"?je.charAt(yt>>>6&63):"=")+(typeof ct!="undefined"?je.charAt(yt&63):"=")}return ke?E(Ce):Ce});var z=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,te=function(Le){switch(Le.length){case 4:var ke=(7&Le.charCodeAt(0))<<18|(63&Le.charCodeAt(1))<<12|(63&Le.charCodeAt(2))<<6|63&Le.charCodeAt(3),Ce=ke-65536;return Ge((Ce>>>10)+55296)+Ge((Ce&1023)+56320);case 3:return Ge((15&Le.charCodeAt(0))<<12|(63&Le.charCodeAt(1))<<6|63&Le.charCodeAt(2));default:return Ge((31&Le.charCodeAt(0))<<6|63&Le.charCodeAt(1))}},re=function(Le){return Le.replace(z,te)},oe=function(Le){var ke=Le.length,Ce=ke%4,Ke=(ke>0?ue[Le.charAt(0)]<<18:0)|(ke>1?ue[Le.charAt(1)]<<12:0)|(ke>2?ue[Le.charAt(2)]<<6:0)|(ke>3?ue[Le.charAt(3)]:0),qe=[Ge(Ke>>>16),Ge(Ke>>>8&255),Ge(Ke&255)];return qe.length-=[0,0,2,1][Ce],qe.join("")},de=Be.atob&&typeof Be.atob=="function"?function(Le){return Be.atob(Le)}:function(Le){return Le.replace(/\S{1,4}/g,oe)},pe=function(Le){return de(String(Le).replace(/[^A-Za-z0-9\+\/]/g,""))},ge=function(Le){return re(de(Le))},xe=function(Le){return String(Le).replace(/[-_]/g,function(ke){return ke=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},we=function(Le){return ge(xe(Le))},Se;Be.Uint8Array&&(Se=function(Le){return Uint8Array.from(pe(xe(Le)),function(ke){return ke.charCodeAt(0)})});var ve=function(){var Le=Be.Base64;return Be.Base64=Fe,Le};if(Be.Base64={VERSION:Ne,atob:pe,btoa:ye,fromBase64:we,toBase64:a,utob:Te,encode:a,encodeURI:x,btou:re,decode:we,noConflict:ve,fromUint8Array:y,toUint8Array:Se},typeof Object.defineProperty=="function"){var Qe=function(Le){return{value:Le,enumerable:!1,writable:!0,configurable:!0}};Be.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Qe(function(){return we(this)})),Object.defineProperty(String.prototype,"toBase64",Qe(function(Le){return a(this,Le)})),Object.defineProperty(String.prototype,"toBase64URI",Qe(function(){return a(this,!0)}))}}return Be.Meteor&&(Base64=Be.Base64),Bt.exports?Bt.exports.Base64=Be.Base64:(b=[],ie=function(){return Be.Base64}.apply(Ct,b),ie!==void 0&&(Bt.exports=ie)),{Base64:Be.Base64}})},42767:function(Bt,Ct){"use strict";var ee;var b=typeof Symbol=="function"&&Symbol.for,ie=b?Symbol.for("react.element"):60103,Be=b?Symbol.for("react.portal"):60106,Fe=b?Symbol.for("react.fragment"):60107,Ne=b?Symbol.for("react.strict_mode"):60108,je=b?Symbol.for("react.profiler"):60114,ue=b?Symbol.for("react.provider"):60109,Ge=b?Symbol.for("react.context"):60110,Ae=b?Symbol.for("react.async_mode"):60111,Me=b?Symbol.for("react.concurrent_mode"):60111,Te=b?Symbol.for("react.forward_ref"):60112,Oe=b?Symbol.for("react.suspense"):60113,ye=b?Symbol.for("react.suspense_list"):60120,se=b?Symbol.for("react.memo"):60115,E=b?Symbol.for("react.lazy"):60116,a=b?Symbol.for("react.block"):60121,x=b?Symbol.for("react.fundamental"):60117,y=b?Symbol.for("react.responder"):60118,z=b?Symbol.for("react.scope"):60119;function te(oe){if(typeof oe=="object"&&oe!==null){var de=oe.$$typeof;switch(de){case ie:switch(oe=oe.type,oe){case Ae:case Me:case Fe:case je:case Ne:case Oe:return oe;default:switch(oe=oe&&oe.$$typeof,oe){case Ge:case Te:case E:case se:case ue:return oe;default:return de}}case Be:return de}}}function re(oe){return te(oe)===Me}ee=Ae,ee=Me,ee=Ge,ee=ue,ee=ie,ee=Te,ee=Fe,ee=E,ee=se,ee=Be,ee=je,ee=Ne,ee=Oe,ee=function(oe){return re(oe)||te(oe)===Ae},ee=re,ee=function(oe){return te(oe)===Ge},ee=function(oe){return te(oe)===ue},ee=function(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===ie},ee=function(oe){return te(oe)===Te},Ct.isFragment=function(oe){return te(oe)===Fe},ee=function(oe){return te(oe)===E},ee=function(oe){return te(oe)===se},ee=function(oe){return te(oe)===Be},ee=function(oe){return te(oe)===je},ee=function(oe){return te(oe)===Ne},ee=function(oe){return te(oe)===Oe},ee=function(oe){return typeof oe=="string"||typeof oe=="function"||oe===Fe||oe===Me||oe===je||oe===Ne||oe===Oe||oe===ye||typeof oe=="object"&&oe!==null&&(oe.$$typeof===E||oe.$$typeof===se||oe.$$typeof===ue||oe.$$typeof===Ge||oe.$$typeof===Te||oe.$$typeof===x||oe.$$typeof===y||oe.$$typeof===z||oe.$$typeof===a)},ee=te},16357:function(Bt,Ct,ee){"use strict";Bt.exports=ee(42767)},46762:function(Bt,Ct){"use strict";var ee;var b=Symbol.for("react.element"),ie=Symbol.for("react.portal"),Be=Symbol.for("react.fragment"),Fe=Symbol.for("react.strict_mode"),Ne=Symbol.for("react.profiler"),je=Symbol.for("react.provider"),ue=Symbol.for("react.context"),Ge=Symbol.for("react.server_context"),Ae=Symbol.for("react.forward_ref"),Me=Symbol.for("react.suspense"),Te=Symbol.for("react.suspense_list"),Oe=Symbol.for("react.memo"),ye=Symbol.for("react.lazy"),se=Symbol.for("react.offscreen"),E;E=Symbol.for("react.module.reference");function a(x){if(typeof x=="object"&&x!==null){var y=x.$$typeof;switch(y){case b:switch(x=x.type,x){case Be:case Ne:case Fe:case Me:case Te:return x;default:switch(x=x&&x.$$typeof,x){case Ge:case ue:case Ae:case ye:case Oe:case je:return x;default:return y}}case ie:return y}}}ee=ue,ee=je,ee=b,ee=Ae,ee=Be,ee=ye,ee=Oe,ee=ie,ee=Ne,ee=Fe,ee=Me,ee=Te,ee=function(){return!1},ee=function(){return!1},ee=function(x){return a(x)===ue},ee=function(x){return a(x)===je},ee=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===b},ee=function(x){return a(x)===Ae},Ct.isFragment=function(x){return a(x)===Be},ee=function(x){return a(x)===ye},ee=function(x){return a(x)===Oe},ee=function(x){return a(x)===ie},ee=function(x){return a(x)===Ne},ee=function(x){return a(x)===Fe},ee=function(x){return a(x)===Me},ee=function(x){return a(x)===Te},ee=function(x){return typeof x=="string"||typeof x=="function"||x===Be||x===Ne||x===Fe||x===Me||x===Te||x===se||typeof x=="object"&&x!==null&&(x.$$typeof===ye||x.$$typeof===Oe||x.$$typeof===je||x.$$typeof===ue||x.$$typeof===Ae||x.$$typeof===E||x.getModuleId!==void 0)},ee=a},35110:function(Bt,Ct,ee){"use strict";Bt.exports=ee(46762)},86128:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return pe}});var b=ee(87462),ie=ee(4942),Be=ee(45987),Fe=ee(1413),Ne=ee(15671),je=ee(43144),ue=ee(97326),Ge=ee(60136),Ae=ee(51630),Me=ee(67294),Te=ee(94184),Oe=ee.n(Te),ye=ee(64217),se=ee(27822),E=function(xe){for(var we=xe.prefixCls,Se=xe.level,ve=xe.isStart,Qe=xe.isEnd,Le="".concat(we,"-indent-unit"),ke=[],Ce=0;Ce<Se;Ce+=1){var Ke;ke.push(Me.createElement("span",{key:Ce,className:Oe()(Le,(Ke={},(0,ie.Z)(Ke,"".concat(Le,"-start"),ve[Ce]),(0,ie.Z)(Ke,"".concat(Le,"-end"),Qe[Ce]),Ke))}))}return Me.createElement("span",{"aria-hidden":"true",className:"".concat(we,"-indent")},ke)},a=Me.memo(E),x=ee(1089),y=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],z="open",te="close",re="---",oe=function(ge){(0,Ge.Z)(we,ge);var xe=(0,Ae.Z)(we);function we(){var Se;(0,Ne.Z)(this,we);for(var ve=arguments.length,Qe=new Array(ve),Le=0;Le<ve;Le++)Qe[Le]=arguments[Le];return Se=xe.call.apply(xe,[this].concat(Qe)),Se.state={dragNodeHighlight:!1},Se.selectHandle=void 0,Se.onSelectorClick=function(ke){var Ce=Se.props.context.onNodeClick;Ce(ke,(0,x.F)(Se.props)),Se.isSelectable()?Se.onSelect(ke):Se.onCheck(ke)},Se.onSelectorDoubleClick=function(ke){var Ce=Se.props.context.onNodeDoubleClick;Ce(ke,(0,x.F)(Se.props))},Se.onSelect=function(ke){if(!Se.isDisabled()){var Ce=Se.props.context.onNodeSelect;ke.preventDefault(),Ce(ke,(0,x.F)(Se.props))}},Se.onCheck=function(ke){if(!Se.isDisabled()){var Ce=Se.props,Ke=Ce.disableCheckbox,qe=Ce.checked,Ue=Se.props.context.onNodeCheck;if(!(!Se.isCheckable()||Ke)){ke.preventDefault();var Ye=!qe;Ue(ke,(0,x.F)(Se.props),Ye)}}},Se.onMouseEnter=function(ke){var Ce=Se.props.context.onNodeMouseEnter;Ce(ke,(0,x.F)(Se.props))},Se.onMouseLeave=function(ke){var Ce=Se.props.context.onNodeMouseLeave;Ce(ke,(0,x.F)(Se.props))},Se.onContextMenu=function(ke){var Ce=Se.props.context.onNodeContextMenu;Ce(ke,(0,x.F)(Se.props))},Se.onDragStart=function(ke){var Ce=Se.props.context.onNodeDragStart;ke.stopPropagation(),Se.setState({dragNodeHighlight:!0}),Ce(ke,(0,ue.Z)(Se));try{ke.dataTransfer.setData("text/plain","")}catch(Ke){}},Se.onDragEnter=function(ke){var Ce=Se.props.context.onNodeDragEnter;ke.preventDefault(),ke.stopPropagation(),Ce(ke,(0,ue.Z)(Se))},Se.onDragOver=function(ke){var Ce=Se.props.context.onNodeDragOver;ke.preventDefault(),ke.stopPropagation(),Ce(ke,(0,ue.Z)(Se))},Se.onDragLeave=function(ke){var Ce=Se.props.context.onNodeDragLeave;ke.stopPropagation(),Ce(ke,(0,ue.Z)(Se))},Se.onDragEnd=function(ke){var Ce=Se.props.context.onNodeDragEnd;ke.stopPropagation(),Se.setState({dragNodeHighlight:!1}),Ce(ke,(0,ue.Z)(Se))},Se.onDrop=function(ke){var Ce=Se.props.context.onNodeDrop;ke.preventDefault(),ke.stopPropagation(),Se.setState({dragNodeHighlight:!1}),Ce(ke,(0,ue.Z)(Se))},Se.onExpand=function(ke){var Ce=Se.props,Ke=Ce.loading,qe=Ce.context.onNodeExpand;Ke||qe(ke,(0,x.F)(Se.props))},Se.setSelectHandle=function(ke){Se.selectHandle=ke},Se.getNodeState=function(){var ke=Se.props.expanded;return Se.isLeaf()?null:ke?z:te},Se.hasChildren=function(){var ke=Se.props.eventKey,Ce=Se.props.context.keyEntities,Ke=Ce[ke]||{},qe=Ke.children;return!!(qe||[]).length},Se.isLeaf=function(){var ke=Se.props,Ce=ke.isLeaf,Ke=ke.loaded,qe=Se.props.context.loadData,Ue=Se.hasChildren();return Ce===!1?!1:Ce||!qe&&!Ue||qe&&Ke&&!Ue},Se.isDisabled=function(){var ke=Se.props.disabled,Ce=Se.props.context.disabled;return!!(Ce||ke)},Se.isCheckable=function(){var ke=Se.props.checkable,Ce=Se.props.context.checkable;return!Ce||ke===!1?!1:Ce},Se.syncLoadData=function(ke){var Ce=ke.expanded,Ke=ke.loading,qe=ke.loaded,Ue=Se.props.context,Ye=Ue.loadData,ct=Ue.onNodeLoad;Ke||Ye&&Ce&&!Se.isLeaf()&&!Se.hasChildren()&&!qe&&ct((0,x.F)(Se.props))},Se.isDraggable=function(){var ke=Se.props,Ce=ke.data,Ke=ke.context.draggable;return!!(Ke&&(!Ke.nodeDraggable||Ke.nodeDraggable(Ce)))},Se.renderDragHandler=function(){var ke=Se.props.context,Ce=ke.draggable,Ke=ke.prefixCls;return Ce!=null&&Ce.icon?Me.createElement("span",{className:"".concat(Ke,"-draggable-icon")},Ce.icon):null},Se.renderSwitcherIconDom=function(ke){var Ce=Se.props.switcherIcon,Ke=Se.props.context.switcherIcon,qe=Ce||Ke;return typeof qe=="function"?qe((0,Fe.Z)((0,Fe.Z)({},Se.props),{},{isLeaf:ke})):qe},Se.renderSwitcher=function(){var ke=Se.props.expanded,Ce=Se.props.context.prefixCls;if(Se.isLeaf()){var Ke=Se.renderSwitcherIconDom(!0);return Ke!==!1?Me.createElement("span",{className:Oe()("".concat(Ce,"-switcher"),"".concat(Ce,"-switcher-noop"))},Ke):null}var qe=Oe()("".concat(Ce,"-switcher"),"".concat(Ce,"-switcher_").concat(ke?z:te)),Ue=Se.renderSwitcherIconDom(!1);return Ue!==!1?Me.createElement("span",{onClick:Se.onExpand,className:qe},Ue):null},Se.renderCheckbox=function(){var ke=Se.props,Ce=ke.checked,Ke=ke.halfChecked,qe=ke.disableCheckbox,Ue=Se.props.context.prefixCls,Ye=Se.isDisabled(),ct=Se.isCheckable();if(!ct)return null;var yt=typeof ct!="boolean"?ct:null;return Me.createElement("span",{className:Oe()("".concat(Ue,"-checkbox"),Ce&&"".concat(Ue,"-checkbox-checked"),!Ce&&Ke&&"".concat(Ue,"-checkbox-indeterminate"),(Ye||qe)&&"".concat(Ue,"-checkbox-disabled")),onClick:Se.onCheck},yt)},Se.renderIcon=function(){var ke=Se.props.loading,Ce=Se.props.context.prefixCls;return Me.createElement("span",{className:Oe()("".concat(Ce,"-iconEle"),"".concat(Ce,"-icon__").concat(Se.getNodeState()||"docu"),ke&&"".concat(Ce,"-icon_loading"))})},Se.renderSelector=function(){var ke=Se.state.dragNodeHighlight,Ce=Se.props,Ke=Ce.title,qe=Ke===void 0?re:Ke,Ue=Ce.selected,Ye=Ce.icon,ct=Ce.loading,yt=Ce.data,$t=Se.props.context,an=$t.prefixCls,rt=$t.showIcon,jt=$t.icon,It=$t.loadData,hn=$t.titleRender,Mt=Se.isDisabled(),Yt="".concat(an,"-node-content-wrapper"),Re;if(rt){var Wt=Ye||jt;Re=Wt?Me.createElement("span",{className:Oe()("".concat(an,"-iconEle"),"".concat(an,"-icon__customize"))},typeof Wt=="function"?Wt(Se.props):Wt):Se.renderIcon()}else It&&ct&&(Re=Se.renderIcon());var Sn;typeof qe=="function"?Sn=qe(yt):hn?Sn=hn(yt):Sn=qe;var xt=Me.createElement("span",{className:"".concat(an,"-title")},Sn);return Me.createElement("span",{ref:Se.setSelectHandle,title:typeof qe=="string"?qe:"",className:Oe()("".concat(Yt),"".concat(Yt,"-").concat(Se.getNodeState()||"normal"),!Mt&&(Ue||ke)&&"".concat(an,"-node-selected")),onMouseEnter:Se.onMouseEnter,onMouseLeave:Se.onMouseLeave,onContextMenu:Se.onContextMenu,onClick:Se.onSelectorClick,onDoubleClick:Se.onSelectorDoubleClick},Re,xt,Se.renderDropIndicator())},Se.renderDropIndicator=function(){var ke=Se.props,Ce=ke.disabled,Ke=ke.eventKey,qe=Se.props.context,Ue=qe.draggable,Ye=qe.dropLevelOffset,ct=qe.dropPosition,yt=qe.prefixCls,$t=qe.indent,an=qe.dropIndicatorRender,rt=qe.dragOverNodeKey,jt=qe.direction,It=!!Ue,hn=!Ce&&It&&rt===Ke;return hn?an({dropPosition:ct,dropLevelOffset:Ye,indent:$t,prefixCls:yt,direction:jt}):null},Se}return(0,je.Z)(we,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var ve=this.props.selectable,Qe=this.props.context.selectable;return typeof ve=="boolean"?ve:Qe}},{key:"render",value:function(){var ve,Qe=this.props,Le=Qe.eventKey,ke=Qe.className,Ce=Qe.style,Ke=Qe.dragOver,qe=Qe.dragOverGapTop,Ue=Qe.dragOverGapBottom,Ye=Qe.isLeaf,ct=Qe.isStart,yt=Qe.isEnd,$t=Qe.expanded,an=Qe.selected,rt=Qe.checked,jt=Qe.halfChecked,It=Qe.loading,hn=Qe.domRef,Mt=Qe.active,Yt=Qe.data,Re=Qe.onMouseMove,Wt=Qe.selectable,Sn=(0,Be.Z)(Qe,y),xt=this.props.context,Et=xt.prefixCls,Lt=xt.filterTreeNode,He=xt.keyEntities,Ze=xt.dropContainerKey,Ve=xt.dropTargetKey,gt=xt.draggingNodeKey,Dt=this.isDisabled(),Gt=(0,ye.Z)(Sn,{aria:!0,data:!0}),Bn=He[Le]||{},Fn=Bn.level,tn=yt[yt.length-1],_n=this.isDraggable(),Xe=!Dt&&_n,vt=gt===Le,mn=Wt!==void 0?{"aria-selected":!!Wt}:void 0;return Me.createElement("div",(0,b.Z)({ref:hn,className:Oe()(ke,"".concat(Et,"-treenode"),(ve={},(0,ie.Z)(ve,"".concat(Et,"-treenode-disabled"),Dt),(0,ie.Z)(ve,"".concat(Et,"-treenode-switcher-").concat($t?"open":"close"),!Ye),(0,ie.Z)(ve,"".concat(Et,"-treenode-checkbox-checked"),rt),(0,ie.Z)(ve,"".concat(Et,"-treenode-checkbox-indeterminate"),jt),(0,ie.Z)(ve,"".concat(Et,"-treenode-selected"),an),(0,ie.Z)(ve,"".concat(Et,"-treenode-loading"),It),(0,ie.Z)(ve,"".concat(Et,"-treenode-active"),Mt),(0,ie.Z)(ve,"".concat(Et,"-treenode-leaf-last"),tn),(0,ie.Z)(ve,"".concat(Et,"-treenode-draggable"),_n),(0,ie.Z)(ve,"dragging",vt),(0,ie.Z)(ve,"drop-target",Ve===Le),(0,ie.Z)(ve,"drop-container",Ze===Le),(0,ie.Z)(ve,"drag-over",!Dt&&Ke),(0,ie.Z)(ve,"drag-over-gap-top",!Dt&&qe),(0,ie.Z)(ve,"drag-over-gap-bottom",!Dt&&Ue),(0,ie.Z)(ve,"filter-node",Lt&&Lt((0,x.F)(this.props))),ve)),style:Ce,draggable:Xe,"aria-grabbed":vt,onDragStart:Xe?this.onDragStart:void 0,onDragEnter:_n?this.onDragEnter:void 0,onDragOver:_n?this.onDragOver:void 0,onDragLeave:_n?this.onDragLeave:void 0,onDrop:_n?this.onDrop:void 0,onDragEnd:_n?this.onDragEnd:void 0,onMouseMove:Re},mn,Gt),Me.createElement(a,{prefixCls:Et,level:Fn,isStart:ct,isEnd:yt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),we}(Me.Component),de=function(xe){return Me.createElement(se.k.Consumer,null,function(we){return Me.createElement(oe,(0,b.Z)({},xe,{context:we}))})};de.displayName="TreeNode",de.isTreeNode=1;var pe=de},27822:function(Bt,Ct,ee){"use strict";ee.d(Ct,{k:function(){return ie}});var b=ee(67294),ie=b.createContext(null)},10225:function(Bt,Ct,ee){"use strict";ee.d(Ct,{BT:function(){return a},Ds:function(){return Te},E6:function(){return z},L0:function(){return Ge},OM:function(){return E},_5:function(){return ue},bt:function(){return Me},r7:function(){return te},wA:function(){return Oe},yx:function(){return Ae}});var b=ee(74902),ie=ee(71002),Be=ee(67294),Fe=ee(80334),Ne=ee(86128),je=null;function ue(re,oe){if(!re)return[];var de=re.slice(),pe=de.indexOf(oe);return pe>=0&&de.splice(pe,1),de}function Ge(re,oe){var de=(re||[]).slice();return de.indexOf(oe)===-1&&de.push(oe),de}function Ae(re){return re.split("-")}function Me(re,oe){return"".concat(re,"-").concat(oe)}function Te(re){return re&&re.type&&re.type.isTreeNode}function Oe(re,oe){var de=[],pe=oe[re];function ge(){var xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];xe.forEach(function(we){var Se=we.key,ve=we.children;de.push(Se),ge(ve)})}return ge(pe.children),de}function ye(re){if(re.parent){var oe=Ae(re.pos);return Number(oe[oe.length-1])===re.parent.children.length-1}return!1}function se(re){var oe=Ae(re.pos);return Number(oe[oe.length-1])===0}function E(re,oe,de,pe,ge,xe,we,Se,ve,Qe){var Le,ke=re.clientX,Ce=re.clientY,Ke=re.target.getBoundingClientRect(),qe=Ke.top,Ue=Ke.height,Ye=(Qe==="rtl"?-1:1)*(((ge==null?void 0:ge.x)||0)-ke),ct=(Ye-12)/pe,yt=Se[de.props.eventKey];if(Ce<qe+Ue/2){var $t=we.findIndex(function(Et){return Et.key===yt.key}),an=$t<=0?0:$t-1,rt=we[an].key;yt=Se[rt]}var jt=yt.key,It=yt,hn=yt.key,Mt=0,Yt=0;if(!ve.includes(jt))for(var Re=0;Re<ct&&ye(yt);Re+=1)yt=yt.parent,Yt+=1;var Wt=oe.props.data,Sn=yt.node,xt=!0;return se(yt)&&yt.level===0&&Ce<qe+Ue/2&&xe({dragNode:Wt,dropNode:Sn,dropPosition:-1})&&yt.key===de.props.eventKey?Mt=-1:(It.children||[]).length&&ve.includes(hn)?xe({dragNode:Wt,dropNode:Sn,dropPosition:0})?Mt=0:xt=!1:Yt===0?ct>-1.5?xe({dragNode:Wt,dropNode:Sn,dropPosition:1})?Mt=1:xt=!1:xe({dragNode:Wt,dropNode:Sn,dropPosition:0})?Mt=0:xe({dragNode:Wt,dropNode:Sn,dropPosition:1})?Mt=1:xt=!1:xe({dragNode:Wt,dropNode:Sn,dropPosition:1})?Mt=1:xt=!1,{dropPosition:Mt,dropLevelOffset:Yt,dropTargetKey:yt.key,dropTargetPos:yt.pos,dragOverNodeKey:hn,dropContainerKey:Mt===0?null:((Le=yt.parent)===null||Le===void 0?void 0:Le.key)||null,dropAllowed:xt}}function a(re,oe){if(re){var de=oe.multiple;return de?re.slice():re.length?[re[0]]:re}}var x=function(oe){return oe};function y(re,oe){if(!re)return[];var de=oe||{},pe=de.processProps,ge=pe===void 0?x:pe,xe=Array.isArray(re)?re:[re];return xe.map(function(we){var Se=we.children,ve=_objectWithoutProperties(we,je),Qe=y(Se,oe);return React.createElement(TreeNode,_extends({key:ve.key},ge(ve)),Qe)})}function z(re){if(!re)return null;var oe;if(Array.isArray(re))oe={checkedKeys:re,halfCheckedKeys:void 0};else if((0,ie.Z)(re)==="object")oe={checkedKeys:re.checked||void 0,halfCheckedKeys:re.halfChecked||void 0};else return(0,Fe.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return oe}function te(re,oe){var de=new Set;function pe(ge){if(!de.has(ge)){var xe=oe[ge];if(xe){de.add(ge);var we=xe.parent,Se=xe.node;Se.disabled||we&&pe(we.key)}}}return(re||[]).forEach(function(ge){pe(ge)}),(0,b.Z)(de)}},17341:function(Bt,Ct,ee){"use strict";ee.d(Ct,{S:function(){return je}});var b=ee(80334);function ie(ue,Ge){var Ae=new Set;return ue.forEach(function(Me){Ge.has(Me)||Ae.add(Me)}),Ae}function Be(ue){var Ge=ue||{},Ae=Ge.disabled,Me=Ge.disableCheckbox,Te=Ge.checkable;return!!(Ae||Me)||Te===!1}function Fe(ue,Ge,Ae,Me){for(var Te=new Set(ue),Oe=new Set,ye=0;ye<=Ae;ye+=1){var se=Ge.get(ye)||new Set;se.forEach(function(y){var z=y.key,te=y.node,re=y.children,oe=re===void 0?[]:re;Te.has(z)&&!Me(te)&&oe.filter(function(de){return!Me(de.node)}).forEach(function(de){Te.add(de.key)})})}for(var E=new Set,a=Ae;a>=0;a-=1){var x=Ge.get(a)||new Set;x.forEach(function(y){var z=y.parent,te=y.node;if(!(Me(te)||!y.parent||E.has(y.parent.key))){if(Me(y.parent.node)){E.add(z.key);return}var re=!0,oe=!1;(z.children||[]).filter(function(de){return!Me(de.node)}).forEach(function(de){var pe=de.key,ge=Te.has(pe);re&&!ge&&(re=!1),!oe&&(ge||Oe.has(pe))&&(oe=!0)}),re&&Te.add(z.key),oe&&Oe.add(z.key),E.add(z.key)}})}return{checkedKeys:Array.from(Te),halfCheckedKeys:Array.from(ie(Oe,Te))}}function Ne(ue,Ge,Ae,Me,Te){for(var Oe=new Set(ue),ye=new Set(Ge),se=0;se<=Me;se+=1){var E=Ae.get(se)||new Set;E.forEach(function(z){var te=z.key,re=z.node,oe=z.children,de=oe===void 0?[]:oe;!Oe.has(te)&&!ye.has(te)&&!Te(re)&&de.filter(function(pe){return!Te(pe.node)}).forEach(function(pe){Oe.delete(pe.key)})})}ye=new Set;for(var a=new Set,x=Me;x>=0;x-=1){var y=Ae.get(x)||new Set;y.forEach(function(z){var te=z.parent,re=z.node;if(!(Te(re)||!z.parent||a.has(z.parent.key))){if(Te(z.parent.node)){a.add(te.key);return}var oe=!0,de=!1;(te.children||[]).filter(function(pe){return!Te(pe.node)}).forEach(function(pe){var ge=pe.key,xe=Oe.has(ge);oe&&!xe&&(oe=!1),!de&&(xe||ye.has(ge))&&(de=!0)}),oe||Oe.delete(te.key),de&&ye.add(te.key),a.add(te.key)}})}return{checkedKeys:Array.from(Oe),halfCheckedKeys:Array.from(ie(ye,Oe))}}function je(ue,Ge,Ae,Me){var Te=[],Oe;Me?Oe=Me:Oe=Be;var ye=new Set(ue.filter(function(x){var y=!!Ae[x];return y||Te.push(x),y})),se=new Map,E=0;Object.keys(Ae).forEach(function(x){var y=Ae[x],z=y.level,te=se.get(z);te||(te=new Set,se.set(z,te)),te.add(y),E=Math.max(E,z)}),(0,b.ZP)(!Te.length,"Tree missing follow keys: ".concat(Te.slice(0,100).map(function(x){return"'".concat(x,"'")}).join(", ")));var a;return Ge===!0?a=Fe(ye,se,E,Oe):a=Ne(ye,Ge.halfCheckedKeys,se,E,Oe),a}},1089:function(Bt,Ct,ee){"use strict";ee.d(Ct,{F:function(){return y},H8:function(){return x},I8:function(){return a},km:function(){return Me},oH:function(){return se},w$:function(){return Te},zn:function(){return ye}});var b=ee(71002),ie=ee(74902),Be=ee(1413),Fe=ee(45987),Ne=ee(98423),je=ee(50344),ue=ee(80334),Ge=ee(10225),Ae=["children"];function Me(z,te){return z!=null?z:te}function Te(z){var te=z||{},re=te.title,oe=te._title,de=te.key,pe=te.children,ge=re||"title";return{title:ge,_title:oe||[ge],key:de||"key",children:pe||"children"}}function Oe(z,te){var re=new Map;function oe(de){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(de||[]).forEach(function(ge){var xe=ge[te.key],we=ge[te.children];warning(xe!=null,"Tree node must have a certain key: [".concat(pe).concat(xe,"]"));var Se=String(xe);warning(!re.has(Se)||xe===null||xe===void 0,"Same 'key' exist in the Tree: ".concat(Se)),re.set(Se,!0),oe(we,"".concat(pe).concat(Se," > "))})}oe(z)}function ye(z){function te(re){var oe=(0,je.Z)(re);return oe.map(function(de){if(!(0,Ge.Ds)(de))return(0,ue.ZP)(!de,"Tree/TreeNode can only accept TreeNode as children."),null;var pe=de.key,ge=de.props,xe=ge.children,we=(0,Fe.Z)(ge,Ae),Se=(0,Be.Z)({key:pe},we),ve=te(xe);return ve.length&&(Se.children=ve),Se}).filter(function(de){return de})}return te(z)}function se(z,te,re){var oe=Te(re),de=oe._title,pe=oe.key,ge=oe.children,xe=new Set(te===!0?[]:te),we=[];function Se(ve){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return ve.map(function(Le,ke){for(var Ce=(0,Ge.bt)(Qe?Qe.pos:"0",ke),Ke=Me(Le[pe],Ce),qe,Ue=0;Ue<de.length;Ue+=1){var Ye=de[Ue];if(Le[Ye]!==void 0){qe=Le[Ye];break}}var ct=(0,Be.Z)((0,Be.Z)({},(0,Ne.Z)(Le,[].concat((0,ie.Z)(de),[pe,ge]))),{},{title:qe,key:Ke,parent:Qe,pos:Ce,children:null,data:Le,isStart:[].concat((0,ie.Z)(Qe?Qe.isStart:[]),[ke===0]),isEnd:[].concat((0,ie.Z)(Qe?Qe.isEnd:[]),[ke===ve.length-1])});return we.push(ct),te===!0||xe.has(Ke)?ct.children=Se(Le[ge]||[],ct):ct.children=[],ct})}return Se(z),we}function E(z,te,re){var oe={};(0,b.Z)(re)==="object"?oe=re:oe={externalGetKey:re},oe=oe||{};var de=oe,pe=de.childrenPropName,ge=de.externalGetKey,xe=de.fieldNames,we=Te(xe),Se=we.key,ve=we.children,Qe=pe||ve,Le;ge?typeof ge=="string"?Le=function(Ke){return Ke[ge]}:typeof ge=="function"&&(Le=function(Ke){return ge(Ke)}):Le=function(Ke,qe){return Me(Ke[Se],qe)};function ke(Ce,Ke,qe,Ue){var Ye=Ce?Ce[Qe]:z,ct=Ce?(0,Ge.bt)(qe.pos,Ke):"0",yt=Ce?[].concat((0,ie.Z)(Ue),[Ce]):[];if(Ce){var $t=Le(Ce,ct),an={node:Ce,index:Ke,pos:ct,key:$t,parentPos:qe.node?qe.pos:null,level:qe.level+1,nodes:yt};te(an)}Ye&&Ye.forEach(function(rt,jt){ke(rt,jt,{node:Ce,pos:ct,level:qe?qe.level+1:-1},yt)})}ke(null)}function a(z){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},re=te.initWrapper,oe=te.processEntity,de=te.onProcessFinished,pe=te.externalGetKey,ge=te.childrenPropName,xe=te.fieldNames,we=arguments.length>2?arguments[2]:void 0,Se=pe||we,ve={},Qe={},Le={posEntities:ve,keyEntities:Qe};return re&&(Le=re(Le)||Le),E(z,function(ke){var Ce=ke.node,Ke=ke.index,qe=ke.pos,Ue=ke.key,Ye=ke.parentPos,ct=ke.level,yt=ke.nodes,$t={node:Ce,nodes:yt,index:Ke,key:Ue,pos:qe,level:ct},an=Me(Ue,qe);ve[qe]=$t,Qe[an]=$t,$t.parent=ve[Ye],$t.parent&&($t.parent.children=$t.parent.children||[],$t.parent.children.push($t)),oe&&oe($t,Le)},{externalGetKey:Se,childrenPropName:ge,fieldNames:xe}),de&&de(Le),Le}function x(z,te){var re=te.expandedKeys,oe=te.selectedKeys,de=te.loadedKeys,pe=te.loadingKeys,ge=te.checkedKeys,xe=te.halfCheckedKeys,we=te.dragOverNodeKey,Se=te.dropPosition,ve=te.keyEntities,Qe=ve[z],Le={eventKey:z,expanded:re.indexOf(z)!==-1,selected:oe.indexOf(z)!==-1,loaded:de.indexOf(z)!==-1,loading:pe.indexOf(z)!==-1,checked:ge.indexOf(z)!==-1,halfChecked:xe.indexOf(z)!==-1,pos:String(Qe?Qe.pos:""),dragOver:we===z&&Se===0,dragOverGapTop:we===z&&Se===-1,dragOverGapBottom:we===z&&Se===1};return Le}function y(z){var te=z.data,re=z.expanded,oe=z.selected,de=z.checked,pe=z.loaded,ge=z.loading,xe=z.halfChecked,we=z.dragOver,Se=z.dragOverGapTop,ve=z.dragOverGapBottom,Qe=z.pos,Le=z.active,ke=z.eventKey,Ce=(0,Be.Z)((0,Be.Z)({},te),{},{expanded:re,selected:oe,checked:de,loaded:pe,loading:ge,halfChecked:xe,dragOver:we,dragOverGapTop:Se,dragOverGapBottom:ve,pos:Qe,active:Le,key:ke});return"props"in Ce||Object.defineProperty(Ce,"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`."),z}}),Ce}},64217:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return Ge}});var b=ee(1413),ie=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
summary tabIndex target title type useMap value width wmode wrap`,Be=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Fe="".concat(ie," ").concat(Be).split(/[\s\n]+/),Ne="aria-",je="data-";function ue(Ae,Me){return Ae.indexOf(Me)===0}function Ge(Ae){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Te;Me===!1?Te={aria:!0,data:!0,attr:!0}:Me===!0?Te={aria:!0}:Te=(0,b.Z)({},Me);var Oe={};return Object.keys(Ae).forEach(function(ye){(Te.aria&&(ye==="role"||ue(ye,Ne))||Te.data&&ue(ye,je)||Te.attr&&Fe.includes(ye))&&(Oe[ye]=Ae[ye])}),Oe}},66012:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z5:function(){return Us},_l:function(){return Hd},bK:function(){return cd}});var b=ee(67294),ie=ee(89611);function Be(ne,ae){ne.prototype=Object.create(ae.prototype),ne.prototype.constructor=ne,(0,ie.Z)(ne,ae)}var Fe=ee(87462),Ne=ee(14890),je=b.createContext(null),ue=null;function Ge(ne){ne()}var Ae=Ge,Me=function(ae){return Ae=ae},Te=function(){return Ae};function Oe(){var ne=Te(),ae=null,le=null;return{clear:function(){ae=null,le=null},notify:function(){ne(function(){for(var Pe=ae;Pe;)Pe.callback(),Pe=Pe.next})},get:function(){for(var Pe=[],be=ae;be;)Pe.push(be),be=be.next;return Pe},subscribe:function(Pe){var be=!0,Ie=le={callback:Pe,next:null,prev:le};return Ie.prev?Ie.prev.next=Ie:ae=Ie,function(){!be||ae===null||(be=!1,Ie.next?Ie.next.prev=Ie.prev:le=Ie.prev,Ie.prev?Ie.prev.next=Ie.next:ae=Ie.next)}}}}var ye={notify:function(){},get:function(){return[]}};function se(ne,ae){var le,me=ye;function Pe(st){return lt(),me.subscribe(st)}function be(){me.notify()}function Ie(){pt.onStateChange&&pt.onStateChange()}function _e(){return!!le}function lt(){le||(le=ae?ae.addNestedSub(Ie):ne.subscribe(Ie),me=Oe())}function Pt(){le&&(le(),le=void 0,me.clear(),me=ye)}var pt={addNestedSub:Pe,notifyNestedSubs:be,handleChangeWrapper:Ie,isSubscribed:_e,trySubscribe:lt,tryUnsubscribe:Pt,getListeners:function(){return me}};return pt}var E=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?b.useLayoutEffect:b.useEffect;function a(ne){var ae=ne.store,le=ne.context,me=ne.children,Pe=(0,b.useMemo)(function(){var _e=se(ae);return{store:ae,subscription:_e}},[ae]),be=(0,b.useMemo)(function(){return ae.getState()},[ae]);E(function(){var _e=Pe.subscription;return _e.onStateChange=_e.notifyNestedSubs,_e.trySubscribe(),be!==ae.getState()&&_e.notifyNestedSubs(),function(){_e.tryUnsubscribe(),_e.onStateChange=null}},[Pe,be]);var Ie=le||je;return b.createElement(Ie.Provider,{value:Pe},me)}var x=a,y=ee(63366),z=ee(8679),te=ee.n(z),re=ee(72973),oe=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],de=["reactReduxForwardedRef"],pe=[],ge=[null,null],xe=function(ae){try{return JSON.stringify(ae)}catch(le){return String(ae)}};function we(ne,ae){var le=ne[1];return[ae.payload,le+1]}function Se(ne,ae,le){E(function(){return ne.apply(void 0,ae)},le)}function ve(ne,ae,le,me,Pe,be,Ie){ne.current=me,ae.current=Pe,le.current=!1,be.current&&(be.current=null,Ie())}function Qe(ne,ae,le,me,Pe,be,Ie,_e,lt,Pt){if(ne){var pt=!1,st=null,dt=function(){if(!pt){var Za=ae.getState(),Ja,nr;try{Ja=me(Za,Pe.current)}catch(Ar){nr=Ar,st=Ar}nr||(st=null),Ja===be.current?Ie.current||lt():(be.current=Ja,_e.current=Ja,Ie.current=!0,Pt({type:"STORE_UPDATED",payload:{error:nr}}))}};le.onStateChange=dt,le.trySubscribe(),dt();var Tt=function(){if(pt=!0,le.tryUnsubscribe(),le.onStateChange=null,st)throw st};return Tt}}var Le=function(){return[null,0]};function ke(ne,ae){ae===void 0&&(ae={});var le=ae,me=le.getDisplayName,Pe=me===void 0?function(Qo){return"ConnectAdvanced("+Qo+")"}:me,be=le.methodName,Ie=be===void 0?"connectAdvanced":be,_e=le.renderCountProp,lt=_e===void 0?void 0:_e,Pt=le.shouldHandleStateChanges,pt=Pt===void 0?!0:Pt,st=le.storeKey,dt=st===void 0?"store":st,Tt=le.withRef,pn=Tt===void 0?!1:Tt,Za=le.forwardRef,Ja=Za===void 0?!1:Za,nr=le.context,Ar=nr===void 0?je:nr,Yr=(0,y.Z)(le,oe);if(0)var to;var ei=Ar;return function(vi){var Fl=vi.displayName||vi.name||"Component",xi=Pe(Fl),Bl=(0,Fe.Z)({},Yr,{getDisplayName:Pe,methodName:Ie,renderCountProp:lt,shouldHandleStateChanges:pt,storeKey:dt,displayName:xi,wrappedComponentName:Fl,WrappedComponent:vi}),ru=Yr.pure;function mu(fu){return ne(fu.dispatch,Bl)}var ju=ru?b.useMemo:function(fu){return fu()};function Zu(fu){var Ju=(0,b.useMemo)(function(){var Cs=fu.reactReduxForwardedRef,nd=(0,y.Z)(fu,de);return[fu.context,Cs,nd]},[fu]),Hu=Ju[0],ys=Ju[1],ns=Ju[2],Yu=(0,b.useMemo)(function(){return Hu&&Hu.Consumer&&(0,re.isContextConsumer)(b.createElement(Hu.Consumer,null))?Hu:ei},[Hu,ei]),Ku=(0,b.useContext)(Yu),as=!!fu.store&&!!fu.store.getState&&!!fu.store.dispatch,Ms=!!Ku&&!!Ku.store,Wu=as?fu.store:Ku.store,bs=(0,b.useMemo)(function(){return mu(Wu)},[Wu]),Ts=(0,b.useMemo)(function(){if(!pt)return ge;var Cs=se(Wu,as?null:Ku.subscription),nd=Cs.notifyNestedSubs.bind(Cs);return[Cs,nd]},[Wu,as,Ku]),ds=Ts[0],ks=Ts[1],_s=(0,b.useMemo)(function(){return as?Ku:(0,Fe.Z)({},Ku,{subscription:ds})},[as,Ku,ds]),gd=(0,b.useReducer)(we,pe,Le),$d=gd[0],Zs=$d[0],Jd=gd[1];if(Zs&&Zs.error)throw Zs.error;var md=(0,b.useRef)(),qs=(0,b.useRef)(ns),zs=(0,b.useRef)(),fd=(0,b.useRef)(!1),ed=ju(function(){return zs.current&&ns===qs.current?zs.current:bs(Wu.getState(),ns)},[Wu,Zs,ns]);Se(ve,[qs,md,fd,ns,ed,zs,ks]),Se(Qe,[pt,Wu,ds,bs,qs,md,fd,zs,ks,Jd],[Wu,ds,bs]);var td=(0,b.useMemo)(function(){return b.createElement(vi,(0,Fe.Z)({},ed,{ref:ys}))},[ys,vi,ed]),Yd=(0,b.useMemo)(function(){return pt?b.createElement(Yu.Provider,{value:_s},td):td},[Yu,td,_s]);return Yd}var Du=ru?b.memo(Zu):Zu;if(Du.WrappedComponent=vi,Du.displayName=Zu.displayName=xi,Ja){var Gu=b.forwardRef(function(Ju,Hu){return b.createElement(Du,(0,Fe.Z)({},Ju,{reactReduxForwardedRef:Hu}))});return Gu.displayName=xi,Gu.WrappedComponent=vi,te()(Gu,vi)}return te()(Du,vi)}}function Ce(ne,ae){return ne===ae?ne!==0||ae!==0||1/ne===1/ae:ne!==ne&&ae!==ae}function Ke(ne,ae){if(Ce(ne,ae))return!0;if(typeof ne!="object"||ne===null||typeof ae!="object"||ae===null)return!1;var le=Object.keys(ne),me=Object.keys(ae);if(le.length!==me.length)return!1;for(var Pe=0;Pe<le.length;Pe++)if(!Object.prototype.hasOwnProperty.call(ae,le[Pe])||!Ce(ne[le[Pe]],ae[le[Pe]]))return!1;return!0}function qe(ne,ae){var le={},me=function(Ie){var _e=ne[Ie];typeof _e=="function"&&(le[Ie]=function(){return ae(_e.apply(void 0,arguments))})};for(var Pe in ne)me(Pe);return le}function Ue(ne){return function(le,me){var Pe=ne(le,me);function be(){return Pe}return be.dependsOnOwnProps=!1,be}}function Ye(ne){return ne.dependsOnOwnProps!==null&&ne.dependsOnOwnProps!==void 0?!!ne.dependsOnOwnProps:ne.length!==1}function ct(ne,ae){return function(me,Pe){var be=Pe.displayName,Ie=function(lt,Pt){return Ie.dependsOnOwnProps?Ie.mapToProps(lt,Pt):Ie.mapToProps(lt)};return Ie.dependsOnOwnProps=!0,Ie.mapToProps=function(lt,Pt){Ie.mapToProps=ne,Ie.dependsOnOwnProps=Ye(ne);var pt=Ie(lt,Pt);return typeof pt=="function"&&(Ie.mapToProps=pt,Ie.dependsOnOwnProps=Ye(pt),pt=Ie(lt,Pt)),pt},Ie}}function yt(ne){return typeof ne=="function"?ct(ne,"mapDispatchToProps"):void 0}function $t(ne){return ne?void 0:Ue(function(ae){return{dispatch:ae}})}function an(ne){return ne&&typeof ne=="object"?Ue(function(ae){return qe(ne,ae)}):void 0}var rt=[yt,$t,an];function jt(ne){return typeof ne=="function"?ct(ne,"mapStateToProps"):void 0}function It(ne){return ne?void 0:Ue(function(){return{}})}var hn=[jt,It];function Mt(ne,ae,le){return(0,Fe.Z)({},le,ne,ae)}function Yt(ne){return function(le,me){var Pe=me.displayName,be=me.pure,Ie=me.areMergedPropsEqual,_e=!1,lt;return function(pt,st,dt){var Tt=ne(pt,st,dt);return _e?(!be||!Ie(Tt,lt))&&(lt=Tt):(_e=!0,lt=Tt),lt}}}function Re(ne){return typeof ne=="function"?Yt(ne):void 0}function Wt(ne){return ne?void 0:function(){return Mt}}var Sn=[Re,Wt],xt=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function Et(ne,ae,le,me){return function(be,Ie){return le(ne(be,Ie),ae(me,Ie),Ie)}}function Lt(ne,ae,le,me,Pe){var be=Pe.areStatesEqual,Ie=Pe.areOwnPropsEqual,_e=Pe.areStatePropsEqual,lt=!1,Pt,pt,st,dt,Tt;function pn(Yr,to){return Pt=Yr,pt=to,st=ne(Pt,pt),dt=ae(me,pt),Tt=le(st,dt,pt),lt=!0,Tt}function Za(){return st=ne(Pt,pt),ae.dependsOnOwnProps&&(dt=ae(me,pt)),Tt=le(st,dt,pt),Tt}function Ja(){return ne.dependsOnOwnProps&&(st=ne(Pt,pt)),ae.dependsOnOwnProps&&(dt=ae(me,pt)),Tt=le(st,dt,pt),Tt}function nr(){var Yr=ne(Pt,pt),to=!_e(Yr,st);return st=Yr,to&&(Tt=le(st,dt,pt)),Tt}function Ar(Yr,to){var ei=!Ie(to,pt),Qo=!be(Yr,Pt,to,pt);return Pt=Yr,pt=to,ei&&Qo?Za():ei?Ja():Qo?nr():Tt}return function(to,ei){return lt?Ar(to,ei):pn(to,ei)}}function He(ne,ae){var le=ae.initMapStateToProps,me=ae.initMapDispatchToProps,Pe=ae.initMergeProps,be=(0,y.Z)(ae,xt),Ie=le(ne,be),_e=me(ne,be),lt=Pe(ne,be),Pt=be.pure?Lt:Et;return Pt(Ie,_e,lt,ne,be)}var Ze=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function Ve(ne,ae,le){for(var me=ae.length-1;me>=0;me--){var Pe=ae[me](ne);if(Pe)return Pe}return function(be,Ie){throw new Error("Invalid value of type "+typeof ne+" for "+le+" argument when connecting component "+Ie.wrappedComponentName+".")}}function gt(ne,ae){return ne===ae}function Dt(ne){var ae=ne===void 0?{}:ne,le=ae.connectHOC,me=le===void 0?ke:le,Pe=ae.mapStateToPropsFactories,be=Pe===void 0?hn:Pe,Ie=ae.mapDispatchToPropsFactories,_e=Ie===void 0?rt:Ie,lt=ae.mergePropsFactories,Pt=lt===void 0?Sn:lt,pt=ae.selectorFactory,st=pt===void 0?He:pt;return function(Tt,pn,Za,Ja){Ja===void 0&&(Ja={});var nr=Ja,Ar=nr.pure,Yr=Ar===void 0?!0:Ar,to=nr.areStatesEqual,ei=to===void 0?gt:to,Qo=nr.areOwnPropsEqual,vi=Qo===void 0?Ke:Qo,Fl=nr.areStatePropsEqual,xi=Fl===void 0?Ke:Fl,Bl=nr.areMergedPropsEqual,ru=Bl===void 0?Ke:Bl,mu=(0,y.Z)(nr,Ze),ju=Ve(Tt,be,"mapStateToProps"),Zu=Ve(pn,_e,"mapDispatchToProps"),Du=Ve(Za,Pt,"mergeProps");return me(st,(0,Fe.Z)({methodName:"connect",getDisplayName:function(fu){return"Connect("+fu+")"},shouldHandleStateChanges:!!Tt,initMapStateToProps:ju,initMapDispatchToProps:Zu,initMergeProps:Du,pure:Yr,areStatesEqual:ei,areOwnPropsEqual:vi,areStatePropsEqual:xi,areMergedPropsEqual:ru},mu))}}var Gt=Dt();function Bn(){var ne=useContext(ReactReduxContext);return ne}function Fn(ne){ne===void 0&&(ne=ReactReduxContext);var ae=ne===ReactReduxContext?useDefaultReduxContext:function(){return useContext(ne)};return function(){var me=ae(),Pe=me.store;return Pe}}var tn=null;function _n(ne){ne===void 0&&(ne=ReactReduxContext);var ae=ne===ReactReduxContext?useDefaultStore:createStoreHook(ne);return function(){var me=ae();return me.dispatch}}var Xe=null,vt=function(ae,le){return ae===le};function mn(ne,ae,le,me){var Pe=useReducer(function(pn){return pn+1},0),be=Pe[1],Ie=useMemo(function(){return createSubscription(le,me)},[le,me]),_e=useRef(),lt=useRef(),Pt=useRef(),pt=useRef(),st=le.getState(),dt;try{if(ne!==lt.current||st!==Pt.current||_e.current){var Tt=ne(st);pt.current===void 0||!ae(Tt,pt.current)?dt=Tt:dt=pt.current}else dt=pt.current}catch(pn){throw _e.current&&(pn.message+=`
|
|
The error may be correlated with this previous error:
|
|
`+_e.current.stack+`
|
|
|
|
`),pn}return useIsomorphicLayoutEffect(function(){lt.current=ne,Pt.current=st,pt.current=dt,_e.current=void 0}),useIsomorphicLayoutEffect(function(){function pn(){try{var Za=le.getState();if(Za===Pt.current)return;var Ja=lt.current(Za);if(ae(Ja,pt.current))return;pt.current=Ja,Pt.current=Za}catch(nr){_e.current=nr}be()}return Ie.onStateChange=pn,Ie.trySubscribe(),pn(),function(){return Ie.tryUnsubscribe()}},[le,Ie]),dt}function Cn(ne){ne===void 0&&(ne=ReactReduxContext);var ae=ne===ReactReduxContext?useDefaultReduxContext:function(){return useContext(ne)};return function(me,Pe){Pe===void 0&&(Pe=vt);var be=ae(),Ie=be.store,_e=be.subscription,lt=mn(me,Pe,Ie,_e);return useDebugValue(lt),lt}}var St=null,vn=ee(73935);Me(vn.unstable_batchedUpdates);function Nn(ne,ae){if(ne.length!==ae.length)return!1;for(var le=0;le<ne.length;le++)if(ne[le]!==ae[le])return!1;return!0}function ln(ne,ae){var le=(0,b.useState)(function(){return{inputs:ae,result:ne()}})[0],me=(0,b.useRef)(!0),Pe=(0,b.useRef)(le),be=me.current||!!(ae&&Pe.current.inputs&&Nn(ae,Pe.current.inputs)),Ie=be?Pe.current:{inputs:ae,result:ne()};return(0,b.useEffect)(function(){me.current=!1,Pe.current=Ie},[Ie]),Ie.result}function ma(ne,ae){return ln(function(){return ne},ae)}var Ut=ln,wt=ma,Un=!0,fa="Invariant failed";function wa(ne,ae){if(!ne){if(Un)throw new Error(fa);var le=typeof ae=="function"?ae():ae,me=le?"".concat(fa,": ").concat(le):fa;throw new Error(me)}}var la=function(ae){var le=ae.top,me=ae.right,Pe=ae.bottom,be=ae.left,Ie=me-be,_e=Pe-le,lt={top:le,right:me,bottom:Pe,left:be,width:Ie,height:_e,x:be,y:le,center:{x:(me+be)/2,y:(Pe+le)/2}};return lt},rr=function(ae,le){return{top:ae.top-le.top,left:ae.left-le.left,bottom:ae.bottom+le.bottom,right:ae.right+le.right}},en=function(ae,le){return{top:ae.top+le.top,left:ae.left+le.left,bottom:ae.bottom-le.bottom,right:ae.right-le.right}},rn=function(ae,le){return{top:ae.top+le.y,left:ae.left+le.x,bottom:ae.bottom+le.y,right:ae.right+le.x}},sn={top:0,right:0,bottom:0,left:0},na=function(ae){var le=ae.borderBox,me=ae.margin,Pe=me===void 0?sn:me,be=ae.border,Ie=be===void 0?sn:be,_e=ae.padding,lt=_e===void 0?sn:_e,Pt=la(rr(le,Pe)),pt=la(en(le,Ie)),st=la(en(pt,lt));return{marginBox:Pt,borderBox:la(le),paddingBox:pt,contentBox:st,margin:Pe,border:Ie,padding:lt}},Ga=function(ae){var le=ae.slice(0,-2),me=ae.slice(-2);if(me!=="px")return 0;var Pe=Number(le);return isNaN(Pe)&&wa(!1),Pe},Fr=function(){return{x:window.pageXOffset,y:window.pageYOffset}},_r=function(ae,le){var me=ae.borderBox,Pe=ae.border,be=ae.margin,Ie=ae.padding,_e=rn(me,le);return na({borderBox:_e,border:Pe,margin:be,padding:Ie})},or=function(ae,le){return le===void 0&&(le=Fr()),_r(ae,le)},Rn=function(ae,le){var me={top:Ga(le.marginTop),right:Ga(le.marginRight),bottom:Ga(le.marginBottom),left:Ga(le.marginLeft)},Pe={top:Ga(le.paddingTop),right:Ga(le.paddingRight),bottom:Ga(le.paddingBottom),left:Ga(le.paddingLeft)},be={top:Ga(le.borderTopWidth),right:Ga(le.borderRightWidth),bottom:Ga(le.borderBottomWidth),left:Ga(le.borderLeftWidth)};return na({borderBox:ae,margin:me,padding:Pe,border:be})},Ra=function(ae){var le=ae.getBoundingClientRect(),me=window.getComputedStyle(ae);return Rn(le,me)},En=Number.isNaN||function(ae){return typeof ae=="number"&&ae!==ae};function Mn(ne,ae){return!!(ne===ae||En(ne)&&En(ae))}function Vn(ne,ae){if(ne.length!==ae.length)return!1;for(var le=0;le<ne.length;le++)if(!Mn(ne[le],ae[le]))return!1;return!0}function Yn(ne,ae){ae===void 0&&(ae=Vn);var le,me=[],Pe,be=!1;function Ie(){for(var _e=[],lt=0;lt<arguments.length;lt++)_e[lt]=arguments[lt];return be&&le===this&&ae(_e,me)||(Pe=ne.apply(this,_e),be=!0,le=this,me=_e),Pe}return Ie}var Aa=Yn,Qa=function(ae){var le=[],me=null,Pe=function(){for(var Ie=arguments.length,_e=new Array(Ie),lt=0;lt<Ie;lt++)_e[lt]=arguments[lt];le=_e,!me&&(me=requestAnimationFrame(function(){me=null,ae.apply(void 0,le)}))};return Pe.cancel=function(){me&&(cancelAnimationFrame(me),me=null)},Pe},Kn=Qa,ht=!0,Rt=/[ \t]{2,}/g,Nt=/^[ \t]*/gm,Kt=function(ae){return ae.replace(Rt," ").replace(Nt,"").trim()},xn=function(ae){return Kt(`
|
|
%creact-beautiful-dnd
|
|
|
|
%c`+Kt(ae)+`
|
|
|
|
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
|
|
`)},qn=function(ae){return[xn(ae),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},Ma="__react-beautiful-dnd-disable-dev-warnings";function ga(ne,ae){var le;ht||typeof window!="undefined"&&window[Ma]||(le=console)[ne].apply(le,qn(ae))}var er=ga.bind(null,"warn"),ur=ga.bind(null,"error");function lo(){}function ea(ne,ae){return(0,Fe.Z)({},ne,{},ae)}function Dr(ne,ae,le){var me=ae.map(function(Pe){var be=ea(le,Pe.options);return ne.addEventListener(Pe.eventName,Pe.fn,be),function(){ne.removeEventListener(Pe.eventName,Pe.fn,be)}});return function(){me.forEach(function(be){be()})}}var Di=!0,Ii="Invariant failed";function mr(ne){this.message=ne}mr.prototype.toString=function(){return this.message};function jn(ne,ae){if(!ne)throw Di?new mr(Ii):new mr(Ii+": "+(ae||""))}var vl=function(ne){Be(ae,ne);function ae(){for(var me,Pe=arguments.length,be=new Array(Pe),Ie=0;Ie<Pe;Ie++)be[Ie]=arguments[Ie];return me=ne.call.apply(ne,[this].concat(be))||this,me.callbacks=null,me.unbind=lo,me.onWindowError=function(_e){var lt=me.getCallbacks();lt.isDragging()&<.tryAbort();var Pt=_e.error;Pt instanceof mr&&_e.preventDefault()},me.getCallbacks=function(){if(!me.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return me.callbacks},me.setCallbacks=function(_e){me.callbacks=_e},me}var le=ae.prototype;return le.componentDidMount=function(){this.unbind=Dr(window,[{eventName:"error",fn:this.onWindowError}])},le.componentWillUnmount=function(){this.unbind()},le.componentDidCatch=function(Pe){if(Pe instanceof mr){this.setState({});return}throw Pe},le.render=function(){return this.props.children(this.setCallbacks)},ae}(b.Component),Ho=`
|
|
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
|
|
`,dl=function(ae){return ae+1},tl=function(ae){return`
|
|
You have lifted an item in position `+dl(ae.source.index)+`
|
|
`},nl=function(ae,le){var me=ae.droppableId===le.droppableId,Pe=dl(ae.index),be=dl(le.index);return me?`
|
|
You have moved the item from position `+Pe+`
|
|
to position `+be+`
|
|
`:`
|
|
You have moved the item from position `+Pe+`
|
|
in list `+ae.droppableId+`
|
|
to list `+le.droppableId+`
|
|
in position `+be+`
|
|
`},Oi=function(ae,le,me){var Pe=le.droppableId===me.droppableId;return Pe?`
|
|
The item `+ae+`
|
|
has been combined with `+me.draggableId:`
|
|
The item `+ae+`
|
|
in list `+le.droppableId+`
|
|
has been combined with `+me.draggableId+`
|
|
in list `+me.droppableId+`
|
|
`},yl=function(ae){var le=ae.destination;if(le)return nl(ae.source,le);var me=ae.combine;return me?Oi(ae.draggableId,ae.source,me):"You are over an area that cannot be dropped on"},il=function(ae){return`
|
|
The item has returned to its starting position
|
|
of `+dl(ae.index)+`
|
|
`},pu=function(ae){if(ae.reason==="CANCEL")return`
|
|
Movement cancelled.
|
|
`+il(ae.source)+`
|
|
`;var le=ae.destination,me=ae.combine;return le?`
|
|
You have dropped the item.
|
|
`+nl(ae.source,le)+`
|
|
`:me?`
|
|
You have dropped the item.
|
|
`+Oi(ae.draggableId,ae.source,me)+`
|
|
`:`
|
|
The item has been dropped while not over a drop area.
|
|
`+il(ae.source)+`
|
|
`},da={dragHandleUsageInstructions:Ho,onDragStart:tl,onDragUpdate:yl,onDragEnd:pu},_i={x:0,y:0},Ei=function(ae,le){return{x:ae.x+le.x,y:ae.y+le.y}},Ao=function(ae,le){return{x:ae.x-le.x,y:ae.y-le.y}},Zo=function(ae,le){return ae.x===le.x&&ae.y===le.y},ka=function(ae){return{x:ae.x!==0?-ae.x:0,y:ae.y!==0?-ae.y:0}},pr=function(ae,le,me){var Pe;return me===void 0&&(me=0),Pe={},Pe[ae]=le,Pe[ae==="x"?"y":"x"]=me,Pe},Fo=function(ae,le){return Math.sqrt(Math.pow(le.x-ae.x,2)+Math.pow(le.y-ae.y,2))},yr=function(ae,le){return Math.min.apply(Math,le.map(function(me){return Fo(ae,me)}))},gi=function(ae){return function(le){return{x:ae(le.x),y:ae(le.y)}}},Pi=function(ne,ae){var le=la({top:Math.max(ae.top,ne.top),right:Math.min(ae.right,ne.right),bottom:Math.min(ae.bottom,ne.bottom),left:Math.max(ae.left,ne.left)});return le.width<=0||le.height<=0?null:le},wi=function(ae,le){return{top:ae.top+le.y,left:ae.left+le.x,bottom:ae.bottom+le.y,right:ae.right+le.x}},Ni=function(ae){return[{x:ae.left,y:ae.top},{x:ae.right,y:ae.top},{x:ae.left,y:ae.bottom},{x:ae.right,y:ae.bottom}]},Ji={top:0,right:0,bottom:0,left:0},Jl=function(ae,le){return le?wi(ae,le.scroll.diff.displacement):ae},ll=function(ae,le,me){if(me&&me.increasedBy){var Pe;return(0,Fe.Z)({},ae,(Pe={},Pe[le.end]=ae[le.end]+me.increasedBy[le.line],Pe))}return ae},vu=function(ae,le){return le&&le.shouldClipSubject?Pi(le.pageMarginBox,ae):la(ae)},ou=function(ne){var ae=ne.page,le=ne.withPlaceholder,me=ne.axis,Pe=ne.frame,be=Jl(ae.marginBox,Pe),Ie=ll(be,me,le),_e=vu(Ie,Pe);return{page:ae,withPlaceholder:le,active:_e}},vo=function(ne,ae){ne.frame||jn(!1);var le=ne.frame,me=Ao(ae,le.scroll.initial),Pe=ka(me),be=(0,Fe.Z)({},le,{scroll:{initial:le.scroll.initial,current:ae,diff:{value:me,displacement:Pe},max:le.scroll.max}}),Ie=ou({page:ne.subject.page,withPlaceholder:ne.subject.withPlaceholder,axis:ne.axis,frame:be}),_e=(0,Fe.Z)({},ne,{frame:be,subject:Ie});return _e};function hl(ne){return Number.isInteger?Number.isInteger(ne):typeof ne=="number"&&isFinite(ne)&&Math.floor(ne)===ne}function Yl(ne){return Object.values?Object.values(ne):Object.keys(ne).map(function(ae){return ne[ae]})}function Xl(ne,ae){if(ne.findIndex)return ne.findIndex(ae);for(var le=0;le<ne.length;le++)if(ae(ne[le]))return le;return-1}function al(ne,ae){if(ne.find)return ne.find(ae);var le=Xl(ne,ae);if(le!==-1)return ne[le]}function Gi(ne){return Array.prototype.slice.call(ne)}var ql=Aa(function(ne){return ne.reduce(function(ae,le){return ae[le.descriptor.id]=le,ae},{})}),Ll=Aa(function(ne){return ne.reduce(function(ae,le){return ae[le.descriptor.id]=le,ae},{})}),Rl=Aa(function(ne){return Yl(ne)}),Vt=Aa(function(ne){return Yl(ne)}),qt=Aa(function(ne,ae){var le=Vt(ae).filter(function(me){return ne===me.descriptor.droppableId}).sort(function(me,Pe){return me.descriptor.index-Pe.descriptor.index});return le});function bn(ne){return ne.at&&ne.at.type==="REORDER"?ne.at.destination:null}function et(ne){return ne.at&&ne.at.type==="COMBINE"?ne.at.combine:null}var Pn=Aa(function(ne,ae){return ae.filter(function(le){return le.descriptor.id!==ne.descriptor.id})}),ha=function(ne){var ae=ne.isMovingForward,le=ne.draggable,me=ne.destination,Pe=ne.insideDestination,be=ne.previousImpact;if(!me.isCombineEnabled)return null;var Ie=bn(be);if(!Ie)return null;function _e(Za){var Ja={type:"COMBINE",combine:{draggableId:Za,droppableId:me.descriptor.id}};return(0,Fe.Z)({},be,{at:Ja})}var lt=be.displaced.all,Pt=lt.length?lt[0]:null;if(ae)return Pt?_e(Pt):null;var pt=Pn(le,Pe);if(!Pt){if(!pt.length)return null;var st=pt[pt.length-1];return _e(st.descriptor.id)}var dt=Xl(pt,function(Za){return Za.descriptor.id===Pt});dt===-1&&jn(!1);var Tt=dt-1;if(Tt<0)return null;var pn=pt[Tt];return _e(pn.descriptor.id)},Sa=function(ne,ae){return ne.descriptor.droppableId===ae.descriptor.id},on={point:_i,value:0},Dn={invisible:{},visible:{},all:[]},un={displaced:Dn,displacedBy:on,at:null},oa=function(ne,ae){return function(le){return ne<=le&&le<=ae}},Ha=function(ne){var ae=oa(ne.top,ne.bottom),le=oa(ne.left,ne.right);return function(me){var Pe=ae(me.top)&&ae(me.bottom)&&le(me.left)&&le(me.right);if(Pe)return!0;var be=ae(me.top)||ae(me.bottom),Ie=le(me.left)||le(me.right),_e=be&&Ie;if(_e)return!0;var lt=me.top<ne.top&&me.bottom>ne.bottom,Pt=me.left<ne.left&&me.right>ne.right,pt=lt&&Pt;if(pt)return!0;var st=lt&&Ie||Pt&&be;return st}},gr=function(ne){var ae=oa(ne.top,ne.bottom),le=oa(ne.left,ne.right);return function(me){var Pe=ae(me.top)&&ae(me.bottom)&&le(me.left)&&le(me.right);return Pe}},ar={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},br={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},_a=function(ne){return function(ae){var le=oa(ae.top,ae.bottom),me=oa(ae.left,ae.right);return function(Pe){return ne===ar?le(Pe.top)&&le(Pe.bottom):me(Pe.left)&&me(Pe.right)}}},aa=function(ae,le){var me=le.frame?le.frame.scroll.diff.displacement:_i;return wi(ae,me)},Xt=function(ae,le,me){return le.subject.active?me(le.subject.active)(ae):!1},Wn=function(ae,le,me){return me(le)(ae)},ta=function(ae){var le=ae.target,me=ae.destination,Pe=ae.viewport,be=ae.withDroppableDisplacement,Ie=ae.isVisibleThroughFrameFn,_e=be?aa(le,me):le;return Xt(_e,me,Ie)&&Wn(_e,Pe,Ie)},$a=function(ae){return ta((0,Fe.Z)({},ae,{isVisibleThroughFrameFn:Ha}))},Er=function(ae){return ta((0,Fe.Z)({},ae,{isVisibleThroughFrameFn:gr}))},Cr=function(ae){return ta((0,Fe.Z)({},ae,{isVisibleThroughFrameFn:_a(ae.destination.axis)}))},Qr=function(ae,le,me){if(typeof me=="boolean")return me;if(!le)return!0;var Pe=le.invisible,be=le.visible;if(Pe[ae])return!1;var Ie=be[ae];return Ie?Ie.shouldAnimate:!0};function Br(ne,ae){var le=ne.page.marginBox,me={top:ae.point.y,right:0,bottom:0,left:ae.point.x};return la(rr(le,me))}function Kr(ne){var ae=ne.afterDragging,le=ne.destination,me=ne.displacedBy,Pe=ne.viewport,be=ne.forceShouldAnimate,Ie=ne.last;return ae.reduce(function(lt,Pt){var pt=Br(Pt,me),st=Pt.descriptor.id;lt.all.push(st);var dt=$a({target:pt,destination:le,viewport:Pe,withDroppableDisplacement:!0});if(!dt)return lt.invisible[Pt.descriptor.id]=!0,lt;var Tt=Qr(st,Ie,be),pn={draggableId:st,shouldAnimate:Tt};return lt.visible[st]=pn,lt},{all:[],visible:{},invisible:{}})}function Ca(ne,ae){if(!ne.length)return 0;var le=ne[ne.length-1].descriptor.index;return ae.inHomeList?le:le+1}function Wr(ne){var ae=ne.insideDestination,le=ne.inHomeList,me=ne.displacedBy,Pe=ne.destination,be=Ca(ae,{inHomeList:le});return{displaced:Dn,displacedBy:me,at:{type:"REORDER",destination:{droppableId:Pe.descriptor.id,index:be}}}}function Ko(ne){var ae=ne.draggable,le=ne.insideDestination,me=ne.destination,Pe=ne.viewport,be=ne.displacedBy,Ie=ne.last,_e=ne.index,lt=ne.forceShouldAnimate,Pt=Sa(ae,me);if(_e==null)return Wr({insideDestination:le,inHomeList:Pt,displacedBy:be,destination:me});var pt=al(le,function(Za){return Za.descriptor.index===_e});if(!pt)return Wr({insideDestination:le,inHomeList:Pt,displacedBy:be,destination:me});var st=Pn(ae,le),dt=le.indexOf(pt),Tt=st.slice(dt),pn=Kr({afterDragging:Tt,destination:me,displacedBy:be,last:Ie,viewport:Pe.frame,forceShouldAnimate:lt});return{displaced:pn,displacedBy:be,at:{type:"REORDER",destination:{droppableId:me.descriptor.id,index:_e}}}}function To(ne,ae){return!!ae.effected[ne]}var si=function(ne){var ae=ne.isMovingForward,le=ne.destination,me=ne.draggables,Pe=ne.combine,be=ne.afterCritical;if(!le.isCombineEnabled)return null;var Ie=Pe.draggableId,_e=me[Ie],lt=_e.descriptor.index,Pt=To(Ie,be);return Pt?ae?lt:lt-1:ae?lt+1:lt},Wo=function(ne){var ae=ne.isMovingForward,le=ne.isInHomeList,me=ne.insideDestination,Pe=ne.location;if(!me.length)return null;var be=Pe.index,Ie=ae?be+1:be-1,_e=me[0].descriptor.index,lt=me[me.length-1].descriptor.index,Pt=le?lt:lt+1;return Ie<_e||Ie>Pt?null:Ie},di=function(ne){var ae=ne.isMovingForward,le=ne.isInHomeList,me=ne.draggable,Pe=ne.draggables,be=ne.destination,Ie=ne.insideDestination,_e=ne.previousImpact,lt=ne.viewport,Pt=ne.afterCritical,pt=_e.at;if(pt||jn(!1),pt.type==="REORDER"){var st=Wo({isMovingForward:ae,isInHomeList:le,location:pt.destination,insideDestination:Ie});return st==null?null:Ko({draggable:me,insideDestination:Ie,destination:be,viewport:lt,last:_e.displaced,displacedBy:_e.displacedBy,index:st})}var dt=si({isMovingForward:ae,destination:be,displaced:_e.displaced,draggables:Pe,combine:pt.combine,afterCritical:Pt});return dt==null?null:Ko({draggable:me,insideDestination:Ie,destination:be,viewport:lt,last:_e.displaced,displacedBy:_e.displacedBy,index:dt})},uo=function(ne){var ae=ne.displaced,le=ne.afterCritical,me=ne.combineWith,Pe=ne.displacedBy,be=!!(ae.visible[me]||ae.invisible[me]);return To(me,le)?be?_i:ka(Pe.point):be?Pe.point:_i},ti=function(ne){var ae=ne.afterCritical,le=ne.impact,me=ne.draggables,Pe=et(le);Pe||jn(!1);var be=Pe.draggableId,Ie=me[be].page.borderBox.center,_e=uo({displaced:le.displaced,afterCritical:ae,combineWith:be,displacedBy:le.displacedBy});return Ei(Ie,_e)},Fi=function(ae,le){return le.margin[ae.start]+le.borderBox[ae.size]/2},Li=function(ae,le){return le.margin[ae.end]+le.borderBox[ae.size]/2},cl=function(ae,le,me){return le[ae.crossAxisStart]+me.margin[ae.crossAxisStart]+me.borderBox[ae.crossAxisSize]/2},Al=function(ae){var le=ae.axis,me=ae.moveRelativeTo,Pe=ae.isMoving;return pr(le.line,me.marginBox[le.end]+Fi(le,Pe),cl(le,me.marginBox,Pe))},Hi=function(ae){var le=ae.axis,me=ae.moveRelativeTo,Pe=ae.isMoving;return pr(le.line,me.marginBox[le.start]-Li(le,Pe),cl(le,me.marginBox,Pe))},ai=function(ae){var le=ae.axis,me=ae.moveInto,Pe=ae.isMoving;return pr(le.line,me.contentBox[le.start]+Fi(le,Pe),cl(le,me.contentBox,Pe))},bl=function(ne){var ae=ne.impact,le=ne.draggable,me=ne.draggables,Pe=ne.droppable,be=ne.afterCritical,Ie=qt(Pe.descriptor.id,me),_e=le.page,lt=Pe.axis;if(!Ie.length)return ai({axis:lt,moveInto:Pe.page,isMoving:_e});var Pt=ae.displaced,pt=ae.displacedBy,st=Pt.all[0];if(st){var dt=me[st];if(To(st,be))return Hi({axis:lt,moveRelativeTo:dt.page,isMoving:_e});var Tt=_r(dt.page,pt.point);return Hi({axis:lt,moveRelativeTo:Tt,isMoving:_e})}var pn=Ie[Ie.length-1];if(pn.descriptor.id===le.descriptor.id)return _e.borderBox.center;if(To(pn.descriptor.id,be)){var Za=_r(pn.page,ka(be.displacedBy.point));return Al({axis:lt,moveRelativeTo:Za,isMoving:_e})}return Al({axis:lt,moveRelativeTo:pn.page,isMoving:_e})},Ml=function(ne,ae){var le=ne.frame;return le?Ei(ae,le.scroll.diff.displacement):ae},Zl=function(ae){var le=ae.impact,me=ae.draggable,Pe=ae.droppable,be=ae.draggables,Ie=ae.afterCritical,_e=me.page.borderBox.center,lt=le.at;return!Pe||!lt?_e:lt.type==="REORDER"?bl({impact:le,draggable:me,draggables:be,droppable:Pe,afterCritical:Ie}):ti({impact:le,draggables:be,afterCritical:Ie})},Tl=function(ne){var ae=Zl(ne),le=ne.droppable,me=le?Ml(le,ae):ae;return me},Cl=function(ne,ae){var le=Ao(ae,ne.scroll.initial),me=ka(le),Pe=la({top:ae.y,bottom:ae.y+ne.frame.height,left:ae.x,right:ae.x+ne.frame.width}),be={frame:Pe,scroll:{initial:ne.scroll.initial,max:ne.scroll.max,current:ae,diff:{value:le,displacement:me}}};return be};function hu(ne,ae){return ne.map(function(le){return ae[le]})}function Dl(ne,ae){for(var le=0;le<ae.length;le++){var me=ae[le].visible[ne];if(me)return me}return null}var iu=function(ne){var ae=ne.impact,le=ne.viewport,me=ne.destination,Pe=ne.draggables,be=ne.maxScrollChange,Ie=Cl(le,Ei(le.scroll.current,be)),_e=me.frame?vo(me,Ei(me.frame.scroll.current,be)):me,lt=ae.displaced,Pt=Kr({afterDragging:hu(lt.all,Pe),destination:me,displacedBy:ae.displacedBy,viewport:Ie.frame,last:lt,forceShouldAnimate:!1}),pt=Kr({afterDragging:hu(lt.all,Pe),destination:_e,displacedBy:ae.displacedBy,viewport:le.frame,last:lt,forceShouldAnimate:!1}),st={},dt={},Tt=[lt,Pt,pt];lt.all.forEach(function(Za){var Ja=Dl(Za,Tt);if(Ja){dt[Za]=Ja;return}st[Za]=!0});var pn=(0,Fe.Z)({},ae,{displaced:{all:lt.all,invisible:st,visible:dt}});return pn},Nl=function(ne,ae){return Ei(ne.scroll.diff.displacement,ae)},Kl=function(ne){var ae=ne.pageBorderBoxCenter,le=ne.draggable,me=ne.viewport,Pe=Nl(me,ae),be=Ao(Pe,le.page.borderBox.center);return Ei(le.client.borderBox.center,be)},Wl=function(ne){var ae=ne.draggable,le=ne.destination,me=ne.newPageBorderBoxCenter,Pe=ne.viewport,be=ne.withDroppableDisplacement,Ie=ne.onlyOnMainAxis,_e=Ie===void 0?!1:Ie,lt=Ao(me,ae.page.borderBox.center),Pt=wi(ae.page.borderBox,lt),pt={target:Pt,destination:le,withDroppableDisplacement:be,viewport:Pe};return _e?Cr(pt):Er(pt)},Su=function(ne){var ae=ne.isMovingForward,le=ne.draggable,me=ne.destination,Pe=ne.draggables,be=ne.previousImpact,Ie=ne.viewport,_e=ne.previousPageBorderBoxCenter,lt=ne.previousClientSelection,Pt=ne.afterCritical;if(!me.isEnabled)return null;var pt=qt(me.descriptor.id,Pe),st=Sa(le,me),dt=ha({isMovingForward:ae,draggable:le,destination:me,insideDestination:pt,previousImpact:be})||di({isMovingForward:ae,isInHomeList:st,draggable:le,draggables:Pe,destination:me,insideDestination:pt,previousImpact:be,viewport:Ie,afterCritical:Pt});if(!dt)return null;var Tt=Tl({impact:dt,draggable:le,droppable:me,draggables:Pe,afterCritical:Pt}),pn=Wl({draggable:le,destination:me,newPageBorderBoxCenter:Tt,viewport:Ie.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(pn){var Za=Kl({pageBorderBoxCenter:Tt,draggable:le,viewport:Ie});return{clientSelection:Za,impact:dt,scrollJumpRequest:null}}var Ja=Ao(Tt,_e),nr=iu({impact:dt,viewport:Ie,destination:me,draggables:Pe,maxScrollChange:Ja});return{clientSelection:lt,impact:nr,scrollJumpRequest:Ja}},it=function(ae){var le=ae.subject.active;return le||jn(!1),le},ut=function(ne){var ae=ne.isMovingForward,le=ne.pageBorderBoxCenter,me=ne.source,Pe=ne.droppables,be=ne.viewport,Ie=me.subject.active;if(!Ie)return null;var _e=me.axis,lt=oa(Ie[_e.start],Ie[_e.end]),Pt=Rl(Pe).filter(function(st){return st!==me}).filter(function(st){return st.isEnabled}).filter(function(st){return!!st.subject.active}).filter(function(st){return Ha(be.frame)(it(st))}).filter(function(st){var dt=it(st);return ae?Ie[_e.crossAxisEnd]<dt[_e.crossAxisEnd]:dt[_e.crossAxisStart]<Ie[_e.crossAxisStart]}).filter(function(st){var dt=it(st),Tt=oa(dt[_e.start],dt[_e.end]);return lt(dt[_e.start])||lt(dt[_e.end])||Tt(Ie[_e.start])||Tt(Ie[_e.end])}).sort(function(st,dt){var Tt=it(st)[_e.crossAxisStart],pn=it(dt)[_e.crossAxisStart];return ae?Tt-pn:pn-Tt}).filter(function(st,dt,Tt){return it(st)[_e.crossAxisStart]===it(Tt[0])[_e.crossAxisStart]});if(!Pt.length)return null;if(Pt.length===1)return Pt[0];var pt=Pt.filter(function(st){var dt=oa(it(st)[_e.start],it(st)[_e.end]);return dt(le[_e.line])});return pt.length===1?pt[0]:pt.length>1?pt.sort(function(st,dt){return it(st)[_e.start]-it(dt)[_e.start]})[0]:Pt.sort(function(st,dt){var Tt=yr(le,Ni(it(st))),pn=yr(le,Ni(it(dt)));return Tt!==pn?Tt-pn:it(st)[_e.start]-it(dt)[_e.start]})[0]},kt=function(ae,le){var me=ae.page.borderBox.center;return To(ae.descriptor.id,le)?Ao(me,le.displacedBy.point):me},Tn=function(ae,le){var me=ae.page.borderBox;return To(ae.descriptor.id,le)?wi(me,ka(le.displacedBy.point)):me},kn=function(ne){var ae=ne.pageBorderBoxCenter,le=ne.viewport,me=ne.destination,Pe=ne.insideDestination,be=ne.afterCritical,Ie=Pe.filter(function(_e){return Er({target:Tn(_e,be),destination:me,viewport:le.frame,withDroppableDisplacement:!0})}).sort(function(_e,lt){var Pt=Fo(ae,Ml(me,kt(_e,be))),pt=Fo(ae,Ml(me,kt(lt,be)));return Pt<pt?-1:pt<Pt?1:_e.descriptor.index-lt.descriptor.index});return Ie[0]||null},nn=Aa(function(ae,le){var me=le[ae.line];return{value:me,point:pr(ae.line,me)}}),dn=function(ae,le,me){var Pe=ae.axis;if(ae.descriptor.mode==="virtual")return pr(Pe.line,le[Pe.line]);var be=ae.subject.page.contentBox[Pe.size],Ie=qt(ae.descriptor.id,me),_e=Ie.reduce(function(pt,st){return pt+st.client.marginBox[Pe.size]},0),lt=_e+le[Pe.line],Pt=lt-be;return Pt<=0?null:pr(Pe.line,Pt)},_t=function(ae,le){return(0,Fe.Z)({},ae,{scroll:(0,Fe.Z)({},ae.scroll,{max:le})})},Zt=function(ae,le,me){var Pe=ae.frame;Sa(le,ae)&&jn(!1),ae.subject.withPlaceholder&&jn(!1);var be=nn(ae.axis,le.displaceBy).point,Ie=dn(ae,be,me),_e={placeholderSize:be,increasedBy:Ie,oldFrameMaxScroll:ae.frame?ae.frame.scroll.max:null};if(!Pe){var lt=ou({page:ae.subject.page,withPlaceholder:_e,axis:ae.axis,frame:ae.frame});return(0,Fe.Z)({},ae,{subject:lt})}var Pt=Ie?Ei(Pe.scroll.max,Ie):Pe.scroll.max,pt=_t(Pe,Pt),st=ou({page:ae.subject.page,withPlaceholder:_e,axis:ae.axis,frame:pt});return(0,Fe.Z)({},ae,{subject:st,frame:pt})},In=function(ae){var le=ae.subject.withPlaceholder;le||jn(!1);var me=ae.frame;if(!me){var Pe=ou({page:ae.subject.page,axis:ae.axis,frame:null,withPlaceholder:null});return(0,Fe.Z)({},ae,{subject:Pe})}var be=le.oldFrameMaxScroll;be||jn(!1);var Ie=_t(me,be),_e=ou({page:ae.subject.page,axis:ae.axis,frame:Ie,withPlaceholder:null});return(0,Fe.Z)({},ae,{subject:_e,frame:Ie})},xa=function(ne){var ae=ne.previousPageBorderBoxCenter,le=ne.moveRelativeTo,me=ne.insideDestination,Pe=ne.draggable,be=ne.draggables,Ie=ne.destination,_e=ne.viewport,lt=ne.afterCritical;if(!le){if(me.length)return null;var Pt={displaced:Dn,displacedBy:on,at:{type:"REORDER",destination:{droppableId:Ie.descriptor.id,index:0}}},pt=Tl({impact:Pt,draggable:Pe,droppable:Ie,draggables:be,afterCritical:lt}),st=Sa(Pe,Ie)?Ie:Zt(Ie,Pe,be),dt=Wl({draggable:Pe,destination:st,newPageBorderBoxCenter:pt,viewport:_e.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return dt?Pt:null}var Tt=ae[Ie.axis.line]<=le.page.borderBox.center[Ie.axis.line],pn=function(){var Ja=le.descriptor.index;return le.descriptor.id===Pe.descriptor.id||Tt?Ja:Ja+1}(),Za=nn(Ie.axis,Pe.displaceBy);return Ko({draggable:Pe,insideDestination:me,destination:Ie,viewport:_e,displacedBy:Za,last:Dn,index:pn})},Xr=function(ne){var ae=ne.isMovingForward,le=ne.previousPageBorderBoxCenter,me=ne.draggable,Pe=ne.isOver,be=ne.draggables,Ie=ne.droppables,_e=ne.viewport,lt=ne.afterCritical,Pt=ut({isMovingForward:ae,pageBorderBoxCenter:le,source:Pe,droppables:Ie,viewport:_e});if(!Pt)return null;var pt=qt(Pt.descriptor.id,be),st=kn({pageBorderBoxCenter:le,viewport:_e,destination:Pt,insideDestination:pt,afterCritical:lt}),dt=xa({previousPageBorderBoxCenter:le,destination:Pt,draggable:me,draggables:be,moveRelativeTo:st,insideDestination:pt,viewport:_e,afterCritical:lt});if(!dt)return null;var Tt=Tl({impact:dt,draggable:me,droppable:Pt,draggables:be,afterCritical:lt}),pn=Kl({pageBorderBoxCenter:Tt,draggable:me,viewport:_e});return{clientSelection:pn,impact:dt,scrollJumpRequest:null}},Nr=function(ne){var ae=ne.at;return ae?ae.type==="REORDER"?ae.destination.droppableId:ae.combine.droppableId:null},$o=function(ae,le){var me=Nr(ae);return me?le[me]:null},Uo=function(ne){var ae=ne.state,le=ne.type,me=$o(ae.impact,ae.dimensions.droppables),Pe=!!me,be=ae.dimensions.droppables[ae.critical.droppable.id],Ie=me||be,_e=Ie.axis.direction,lt=_e==="vertical"&&(le==="MOVE_UP"||le==="MOVE_DOWN")||_e==="horizontal"&&(le==="MOVE_LEFT"||le==="MOVE_RIGHT");if(lt&&!Pe)return null;var Pt=le==="MOVE_DOWN"||le==="MOVE_RIGHT",pt=ae.dimensions.draggables[ae.critical.draggable.id],st=ae.current.page.borderBoxCenter,dt=ae.dimensions,Tt=dt.draggables,pn=dt.droppables;return lt?Su({isMovingForward:Pt,previousPageBorderBoxCenter:st,draggable:pt,destination:Ie,draggables:Tt,viewport:ae.viewport,previousClientSelection:ae.current.client.selection,previousImpact:ae.impact,afterCritical:ae.afterCritical}):Xr({isMovingForward:Pt,previousPageBorderBoxCenter:st,draggable:pt,isOver:Ie,draggables:Tt,droppables:pn,viewport:ae.viewport,afterCritical:ae.afterCritical})};function fr(ne){return ne.phase==="DRAGGING"||ne.phase==="COLLECTING"}function Wa(ne){var ae=oa(ne.top,ne.bottom),le=oa(ne.left,ne.right);return function(Pe){return ae(Pe.y)&&le(Pe.x)}}function Ea(ne,ae){return ne.left<ae.right&&ne.right>ae.left&&ne.top<ae.bottom&&ne.bottom>ae.top}function so(ne){var ae=ne.pageBorderBox,le=ne.draggable,me=ne.candidates,Pe=le.page.borderBox.center,be=me.map(function(Ie){var _e=Ie.axis,lt=pr(Ie.axis.line,ae.center[_e.line],Ie.page.borderBox.center[_e.crossAxisLine]);return{id:Ie.descriptor.id,distance:Fo(Pe,lt)}}).sort(function(Ie,_e){return _e.distance-Ie.distance});return be[0]?be[0].id:null}function ho(ne){var ae=ne.pageBorderBox,le=ne.draggable,me=ne.droppables,Pe=Rl(me).filter(function(be){if(!be.isEnabled)return!1;var Ie=be.subject.active;if(!Ie||!Ea(ae,Ie))return!1;if(Wa(Ie)(ae.center))return!0;var _e=be.axis,lt=Ie.center[_e.crossAxisLine],Pt=ae[_e.crossAxisStart],pt=ae[_e.crossAxisEnd],st=oa(Ie[_e.crossAxisStart],Ie[_e.crossAxisEnd]),dt=st(Pt),Tt=st(pt);return!dt&&!Tt?!0:dt?Pt<lt:pt>lt});return Pe.length?Pe.length===1?Pe[0].descriptor.id:so({pageBorderBox:ae,draggable:le,candidates:Pe}):null}var Vo=function(ae,le){return la(wi(ae,le))},Jo=function(ne,ae){var le=ne.frame;return le?Vo(ae,le.scroll.diff.value):ae};function co(ne){var ae=ne.displaced,le=ne.id;return!!(ae.visible[le]||ae.invisible[le])}function Yo(ne){var ae=ne.draggable,le=ne.closest,me=ne.inHomeList;return le?me&&le.descriptor.index>ae.descriptor.index?le.descriptor.index-1:le.descriptor.index:null}var Po=function(ne){var ae=ne.pageBorderBoxWithDroppableScroll,le=ne.draggable,me=ne.destination,Pe=ne.insideDestination,be=ne.last,Ie=ne.viewport,_e=ne.afterCritical,lt=me.axis,Pt=nn(me.axis,le.displaceBy),pt=Pt.value,st=ae[lt.start],dt=ae[lt.end],Tt=Pn(le,Pe),pn=al(Tt,function(Ja){var nr=Ja.descriptor.id,Ar=Ja.page.borderBox.center[lt.line],Yr=To(nr,_e),to=co({displaced:be,id:nr});return Yr?to?dt<=Ar:st<Ar-pt:to?dt<=Ar+pt:st<Ar}),Za=Yo({draggable:le,closest:pn,inHomeList:Sa(le,me)});return Ko({draggable:le,insideDestination:Pe,destination:me,viewport:Ie,last:be,displacedBy:Pt,index:Za})},ir=4,ko=function(ne){var ae=ne.draggable,le=ne.pageBorderBoxWithDroppableScroll,me=ne.previousImpact,Pe=ne.destination,be=ne.insideDestination,Ie=ne.afterCritical;if(!Pe.isCombineEnabled)return null;var _e=Pe.axis,lt=nn(Pe.axis,ae.displaceBy),Pt=lt.value,pt=le[_e.start],st=le[_e.end],dt=Pn(ae,be),Tt=al(dt,function(Za){var Ja=Za.descriptor.id,nr=Za.page.borderBox,Ar=nr[_e.size],Yr=Ar/ir,to=To(Ja,Ie),ei=co({displaced:me.displaced,id:Ja});return to?ei?st>nr[_e.start]+Yr&&st<nr[_e.end]-Yr:pt>nr[_e.start]-Pt+Yr&&pt<nr[_e.end]-Pt-Yr:ei?st>nr[_e.start]+Pt+Yr&&st<nr[_e.end]+Pt-Yr:pt>nr[_e.start]+Yr&&pt<nr[_e.end]-Yr});if(!Tt)return null;var pn={displacedBy:lt,displaced:me.displaced,at:{type:"COMBINE",combine:{draggableId:Tt.descriptor.id,droppableId:Pe.descriptor.id}}};return pn},Xo=function(ne){var ae=ne.pageOffset,le=ne.draggable,me=ne.draggables,Pe=ne.droppables,be=ne.previousImpact,Ie=ne.viewport,_e=ne.afterCritical,lt=Vo(le.page.borderBox,ae),Pt=ho({pageBorderBox:lt,draggable:le,droppables:Pe});if(!Pt)return un;var pt=Pe[Pt],st=qt(pt.descriptor.id,me),dt=Jo(pt,lt);return ko({pageBorderBoxWithDroppableScroll:dt,draggable:le,previousImpact:be,destination:pt,insideDestination:st,afterCritical:_e})||Po({pageBorderBoxWithDroppableScroll:dt,draggable:le,destination:pt,insideDestination:st,last:be.displaced,viewport:Ie,afterCritical:_e})},hi=function(ne,ae){var le;return(0,Fe.Z)({},ne,(le={},le[ae.descriptor.id]=ae,le))},rl=function(ae){var le=ae.previousImpact,me=ae.impact,Pe=ae.droppables,be=Nr(le),Ie=Nr(me);if(!be||be===Ie)return Pe;var _e=Pe[be];if(!_e.subject.withPlaceholder)return Pe;var lt=In(_e);return hi(Pe,lt)},lu=function(ne){var ae=ne.draggable,le=ne.draggables,me=ne.droppables,Pe=ne.previousImpact,be=ne.impact,Ie=rl({previousImpact:Pe,impact:be,droppables:me}),_e=Nr(be);if(!_e)return Ie;var lt=me[_e];if(Sa(ae,lt)||lt.subject.withPlaceholder)return Ie;var Pt=Zt(lt,ae,le);return hi(Ie,Pt)},Je=function(ne){var ae=ne.state,le=ne.clientSelection,me=ne.dimensions,Pe=ne.viewport,be=ne.impact,Ie=ne.scrollJumpRequest,_e=Pe||ae.viewport,lt=me||ae.dimensions,Pt=le||ae.current.client.selection,pt=Ao(Pt,ae.initial.client.selection),st={offset:pt,selection:Pt,borderBoxCenter:Ei(ae.initial.client.borderBoxCenter,pt)},dt={selection:Ei(st.selection,_e.scroll.current),borderBoxCenter:Ei(st.borderBoxCenter,_e.scroll.current),offset:Ei(st.offset,_e.scroll.diff.value)},Tt={client:st,page:dt};if(ae.phase==="COLLECTING")return(0,Fe.Z)({phase:"COLLECTING"},ae,{dimensions:lt,viewport:_e,current:Tt});var pn=lt.draggables[ae.critical.draggable.id],Za=be||Xo({pageOffset:dt.offset,draggable:pn,draggables:lt.draggables,droppables:lt.droppables,previousImpact:ae.impact,viewport:_e,afterCritical:ae.afterCritical}),Ja=lu({draggable:pn,impact:Za,previousImpact:ae.impact,draggables:lt.draggables,droppables:lt.droppables}),nr=(0,Fe.Z)({},ae,{current:Tt,dimensions:{draggables:lt.draggables,droppables:Ja},impact:Za,viewport:_e,scrollJumpRequest:Ie||null,forceShouldAnimate:Ie?!1:null});return nr};function ot(ne,ae){return ne.map(function(le){return ae[le]})}var mt=function(ne){var ae=ne.impact,le=ne.viewport,me=ne.draggables,Pe=ne.destination,be=ne.forceShouldAnimate,Ie=ae.displaced,_e=ot(Ie.all,me),lt=Kr({afterDragging:_e,destination:Pe,displacedBy:ae.displacedBy,viewport:le.frame,forceShouldAnimate:be,last:Ie});return(0,Fe.Z)({},ae,{displaced:lt})},At=function(ne){var ae=ne.impact,le=ne.draggable,me=ne.droppable,Pe=ne.draggables,be=ne.viewport,Ie=ne.afterCritical,_e=Tl({impact:ae,draggable:le,draggables:Pe,droppable:me,afterCritical:Ie});return Kl({pageBorderBoxCenter:_e,draggable:le,viewport:be})},gn=function(ne){var ae=ne.state,le=ne.dimensions,me=ne.viewport;ae.movementMode!=="SNAP"&&jn(!1);var Pe=ae.impact,be=me||ae.viewport,Ie=le||ae.dimensions,_e=Ie.draggables,lt=Ie.droppables,Pt=_e[ae.critical.draggable.id],pt=Nr(Pe);pt||jn(!1);var st=lt[pt],dt=mt({impact:Pe,viewport:be,destination:st,draggables:_e}),Tt=At({impact:dt,draggable:Pt,droppable:st,draggables:_e,viewport:be,afterCritical:ae.afterCritical});return Je({impact:dt,clientSelection:Tt,state:ae,dimensions:Ie,viewport:be})},Gn=function(ne){return{index:ne.index,droppableId:ne.droppableId}},Fa=function(ne){var ae=ne.draggable,le=ne.home,me=ne.draggables,Pe=ne.viewport,be=nn(le.axis,ae.displaceBy),Ie=qt(le.descriptor.id,me),_e=Ie.indexOf(ae);_e===-1&&jn(!1);var lt=Ie.slice(_e+1),Pt=lt.reduce(function(Tt,pn){return Tt[pn.descriptor.id]=!0,Tt},{}),pt={inVirtualList:le.descriptor.mode==="virtual",displacedBy:be,effected:Pt},st=Kr({afterDragging:lt,destination:le,displacedBy:be,last:null,viewport:Pe.frame,forceShouldAnimate:!1}),dt={displaced:st,displacedBy:be,at:{type:"REORDER",destination:Gn(ae.descriptor)}};return{impact:dt,afterCritical:pt}},ca=function(ne,ae){return{draggables:ne.draggables,droppables:hi(ne.droppables,ae)}},$n=function(ae){},cn=function(ae){},ua=function(ne){var ae=ne.draggable,le=ne.offset,me=ne.initialWindowScroll,Pe=_r(ae.client,le),be=or(Pe,me),Ie=(0,Fe.Z)({},ae,{placeholder:(0,Fe.Z)({},ae.placeholder,{client:Pe}),client:Pe,page:be});return Ie},Ka=function(ne){var ae=ne.frame;return ae||jn(!1),ae},qr=function(ne){var ae=ne.additions,le=ne.updatedDroppables,me=ne.viewport,Pe=me.scroll.diff.value;return ae.map(function(be){var Ie=be.descriptor.droppableId,_e=le[Ie],lt=Ka(_e),Pt=lt.scroll.diff.value,pt=Ei(Pe,Pt),st=ua({draggable:be,offset:pt,initialWindowScroll:me.scroll.initial});return st})},$r=function(ne){var ae=ne.state,le=ne.published;$n();var me=le.modified.map(function(Yr){var to=ae.dimensions.droppables[Yr.droppableId],ei=vo(to,Yr.scroll);return ei}),Pe=(0,Fe.Z)({},ae.dimensions.droppables,{},ql(me)),be=Ll(qr({additions:le.additions,updatedDroppables:Pe,viewport:ae.viewport})),Ie=(0,Fe.Z)({},ae.dimensions.draggables,{},be);le.removals.forEach(function(Yr){delete Ie[Yr]});var _e={droppables:Pe,draggables:Ie},lt=Nr(ae.impact),Pt=lt?_e.droppables[lt]:null,pt=_e.draggables[ae.critical.draggable.id],st=_e.droppables[ae.critical.droppable.id],dt=Fa({draggable:pt,home:st,draggables:Ie,viewport:ae.viewport}),Tt=dt.impact,pn=dt.afterCritical,Za=Pt&&Pt.isCombineEnabled?ae.impact:Tt,Ja=Xo({pageOffset:ae.current.page.offset,draggable:_e.draggables[ae.critical.draggable.id],draggables:_e.draggables,droppables:_e.droppables,previousImpact:Za,viewport:ae.viewport,afterCritical:pn});cn();var nr=(0,Fe.Z)({phase:"DRAGGING"},ae,{phase:"DRAGGING",impact:Ja,onLiftImpact:Tt,dimensions:_e,afterCritical:pn,forceShouldAnimate:!1});if(ae.phase==="COLLECTING")return nr;var Ar=(0,Fe.Z)({phase:"DROP_PENDING"},nr,{phase:"DROP_PENDING",reason:ae.reason,isWaiting:!1});return Ar},ya=function(ae){return ae.movementMode==="SNAP"},Ba=function(ae,le,me){var Pe=ca(ae.dimensions,le);return!ya(ae)||me?Je({state:ae,dimensions:Pe}):gn({state:ae,dimensions:Pe})};function Zn(ne){return ne.isDragging&&ne.movementMode==="SNAP"?(0,Fe.Z)({phase:"DRAGGING"},ne,{scrollJumpRequest:null}):ne}var Xn={phase:"IDLE",completed:null,shouldFlush:!1},dr=function(ne,ae){if(ne===void 0&&(ne=Xn),ae.type==="FLUSH")return(0,Fe.Z)({},Xn,{shouldFlush:!0});if(ae.type==="INITIAL_PUBLISH"){ne.phase!=="IDLE"&&jn(!1);var le=ae.payload,me=le.critical,Pe=le.clientSelection,be=le.viewport,Ie=le.dimensions,_e=le.movementMode,lt=Ie.draggables[me.draggable.id],Pt=Ie.droppables[me.droppable.id],pt={selection:Pe,borderBoxCenter:lt.client.borderBox.center,offset:_i},st={client:pt,page:{selection:Ei(pt.selection,be.scroll.initial),borderBoxCenter:Ei(pt.selection,be.scroll.initial),offset:Ei(pt.selection,be.scroll.diff.value)}},dt=Rl(Ie.droppables).every(function(_s){return!_s.isFixedOnPage}),Tt=Fa({draggable:lt,home:Pt,draggables:Ie.draggables,viewport:be}),pn=Tt.impact,Za=Tt.afterCritical,Ja={phase:"DRAGGING",isDragging:!0,critical:me,movementMode:_e,dimensions:Ie,initial:st,current:st,isWindowScrollAllowed:dt,impact:pn,afterCritical:Za,onLiftImpact:pn,viewport:be,scrollJumpRequest:null,forceShouldAnimate:null};return Ja}if(ae.type==="COLLECTION_STARTING"){if(ne.phase==="COLLECTING"||ne.phase==="DROP_PENDING")return ne;ne.phase!=="DRAGGING"&&jn(!1);var nr=(0,Fe.Z)({phase:"COLLECTING"},ne,{phase:"COLLECTING"});return nr}if(ae.type==="PUBLISH_WHILE_DRAGGING")return ne.phase==="COLLECTING"||ne.phase==="DROP_PENDING"||jn(!1),$r({state:ne,published:ae.payload});if(ae.type==="MOVE"){if(ne.phase==="DROP_PENDING")return ne;fr(ne)||jn(!1);var Ar=ae.payload.client;return Zo(Ar,ne.current.client.selection)?ne:Je({state:ne,clientSelection:Ar,impact:ya(ne)?ne.impact:null})}if(ae.type==="UPDATE_DROPPABLE_SCROLL"){if(ne.phase==="DROP_PENDING"||ne.phase==="COLLECTING")return Zn(ne);fr(ne)||jn(!1);var Yr=ae.payload,to=Yr.id,ei=Yr.newScroll,Qo=ne.dimensions.droppables[to];if(!Qo)return ne;var vi=vo(Qo,ei);return Ba(ne,vi,!1)}if(ae.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(ne.phase==="DROP_PENDING")return ne;fr(ne)||jn(!1);var Fl=ae.payload,xi=Fl.id,Bl=Fl.isEnabled,ru=ne.dimensions.droppables[xi];ru||jn(!1),ru.isEnabled===Bl&&jn(!1);var mu=(0,Fe.Z)({},ru,{isEnabled:Bl});return Ba(ne,mu,!0)}if(ae.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(ne.phase==="DROP_PENDING")return ne;fr(ne)||jn(!1);var ju=ae.payload,Zu=ju.id,Du=ju.isCombineEnabled,Gu=ne.dimensions.droppables[Zu];Gu||jn(!1),Gu.isCombineEnabled===Du&&jn(!1);var fu=(0,Fe.Z)({},Gu,{isCombineEnabled:Du});return Ba(ne,fu,!0)}if(ae.type==="MOVE_BY_WINDOW_SCROLL"){if(ne.phase==="DROP_PENDING"||ne.phase==="DROP_ANIMATING")return ne;fr(ne)||jn(!1),ne.isWindowScrollAllowed||jn(!1);var Ju=ae.payload.newScroll;if(Zo(ne.viewport.scroll.current,Ju))return Zn(ne);var Hu=Cl(ne.viewport,Ju);return ya(ne)?gn({state:ne,viewport:Hu}):Je({state:ne,viewport:Hu})}if(ae.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!fr(ne))return ne;var ys=ae.payload.maxScroll;if(Zo(ys,ne.viewport.scroll.max))return ne;var ns=(0,Fe.Z)({},ne.viewport,{scroll:(0,Fe.Z)({},ne.viewport.scroll,{max:ys})});return(0,Fe.Z)({phase:"DRAGGING"},ne,{viewport:ns})}if(ae.type==="MOVE_UP"||ae.type==="MOVE_DOWN"||ae.type==="MOVE_LEFT"||ae.type==="MOVE_RIGHT"){if(ne.phase==="COLLECTING"||ne.phase==="DROP_PENDING")return ne;ne.phase!=="DRAGGING"&&jn(!1);var Yu=Uo({state:ne,type:ae.type});return Yu?Je({state:ne,impact:Yu.impact,clientSelection:Yu.clientSelection,scrollJumpRequest:Yu.scrollJumpRequest}):ne}if(ae.type==="DROP_PENDING"){var Ku=ae.payload.reason;ne.phase!=="COLLECTING"&&jn(!1);var as=(0,Fe.Z)({phase:"DROP_PENDING"},ne,{phase:"DROP_PENDING",isWaiting:!0,reason:Ku});return as}if(ae.type==="DROP_ANIMATE"){var Ms=ae.payload,Wu=Ms.completed,bs=Ms.dropDuration,Ts=Ms.newHomeClientOffset;ne.phase==="DRAGGING"||ne.phase==="DROP_PENDING"||jn(!1);var ds={phase:"DROP_ANIMATING",completed:Wu,dropDuration:bs,newHomeClientOffset:Ts,dimensions:ne.dimensions};return ds}if(ae.type==="DROP_COMPLETE"){var ks=ae.payload.completed;return{phase:"IDLE",completed:ks,shouldFlush:!1}}return ne},he=function(ae){return{type:"BEFORE_INITIAL_CAPTURE",payload:ae}},Ee=function(ae){return{type:"LIFT",payload:ae}},We=function(ae){return{type:"INITIAL_PUBLISH",payload:ae}},$e=function(ae){return{type:"PUBLISH_WHILE_DRAGGING",payload:ae}},at=function(){return{type:"COLLECTION_STARTING",payload:null}},ft=function(ae){return{type:"UPDATE_DROPPABLE_SCROLL",payload:ae}},Ht=function(ae){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:ae}},yn=function(ae){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:ae}},An=function(ae){return{type:"MOVE",payload:ae}},Jn=function(ae){return{type:"MOVE_BY_WINDOW_SCROLL",payload:ae}},On=function(ae){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:ae}},pa=function(){return{type:"MOVE_UP",payload:null}},Ua=function(){return{type:"MOVE_DOWN",payload:null}},Ln=function(){return{type:"MOVE_RIGHT",payload:null}},ia=function(){return{type:"MOVE_LEFT",payload:null}},Ia=function(){return{type:"FLUSH",payload:null}},Oa=function(ae){return{type:"DROP_ANIMATE",payload:ae}},sr=function(ae){return{type:"DROP_COMPLETE",payload:ae}},wr=function(ae){return{type:"DROP",payload:ae}},zr=function(ae){return{type:"DROP_PENDING",payload:ae}},Zr=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function yo(ne){if(!(ne.length<=1)){for(var ae=ne.map(function(_e){return _e.descriptor.index}),le={},me=1;me<ae.length;me++){var Pe=ae[me],be=ae[me-1];Pe!==be+1&&(le[Pe]=!0)}if(Object.keys(le).length)var Ie=ae.map(function(_e){var lt=!!le[_e];return lt?"[\u{1F525}"+_e+"]":""+_e}).join(", ")}}function vr(ne,ae){if(0)var le}var Or=function(ne){return function(ae){var le=ae.getState,me=ae.dispatch;return function(Pe){return function(be){if(be.type!=="LIFT"){Pe(be);return}var Ie=be.payload,_e=Ie.id,lt=Ie.clientSelection,Pt=Ie.movementMode,pt=le();pt.phase==="DROP_ANIMATING"&&me(sr({completed:pt.completed})),le().phase!=="IDLE"&&jn(!1),me(Ia()),me(he({draggableId:_e,movementMode:Pt}));var st={shouldPublishImmediately:Pt==="SNAP"},dt={draggableId:_e,scrollOptions:st},Tt=ne.startPublishing(dt),pn=Tt.critical,Za=Tt.dimensions,Ja=Tt.viewport;vr(pn,Za),me(We({critical:pn,dimensions:Za,clientSelection:lt,movementMode:Pt,viewport:Ja}))}}}},Gr=function(ne){return function(){return function(ae){return function(le){le.type==="INITIAL_PUBLISH"&&ne.dragging(),le.type==="DROP_ANIMATE"&&ne.dropping(le.payload.completed.result.reason),(le.type==="FLUSH"||le.type==="DROP_COMPLETE")&&ne.resting(),ae(le)}}}},lr={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Lr={opacity:{drop:0,combining:.7},scale:{drop:.75}},Ur={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Oo=Ur.outOfTheWay+"s "+lr.outOfTheWay,Do={fluid:"opacity "+Oo,snap:"transform "+Oo+", opacity "+Oo,drop:function(ae){var le=ae+"s "+lr.drop;return"transform "+le+", opacity "+le},outOfTheWay:"transform "+Oo,placeholder:"height "+Oo+", width "+Oo+", margin "+Oo},bo=function(ae){return Zo(ae,_i)?null:"translate("+ae.x+"px, "+ae.y+"px)"},Lo={moveTo:bo,drop:function(ae,le){var me=bo(ae);return me?le?me+" scale("+Lr.scale.drop+")":me:null}},Co=Ur.minDropTime,ro=Ur.maxDropTime,mo=ro-Co,xo=1500,mi=.6,Ft=function(ne){var ae=ne.current,le=ne.destination,me=ne.reason,Pe=Fo(ae,le);if(Pe<=0)return Co;if(Pe>=xo)return ro;var be=Pe/xo,Ie=Co+mo*be,_e=me==="CANCEL"?Ie*mi:Ie;return Number(_e.toFixed(2))},Pa=function(ne){var ae=ne.impact,le=ne.draggable,me=ne.dimensions,Pe=ne.viewport,be=ne.afterCritical,Ie=me.draggables,_e=me.droppables,lt=Nr(ae),Pt=lt?_e[lt]:null,pt=_e[le.descriptor.droppableId],st=At({impact:ae,draggable:le,draggables:Ie,afterCritical:be,droppable:Pt||pt,viewport:Pe}),dt=Ao(st,le.client.borderBox.center);return dt},Ir=function(ne){var ae=ne.draggables,le=ne.reason,me=ne.lastImpact,Pe=ne.home,be=ne.viewport,Ie=ne.onLiftImpact;if(!me.at||le!=="DROP"){var _e=mt({draggables:ae,impact:Ie,destination:Pe,viewport:be,forceShouldAnimate:!0});return{impact:_e,didDropInsideDroppable:!1}}if(me.at.type==="REORDER")return{impact:me,didDropInsideDroppable:!0};var lt=(0,Fe.Z)({},me,{displaced:Dn});return{impact:lt,didDropInsideDroppable:!0}},ra=function(ne){var ae=ne.getState,le=ne.dispatch;return function(me){return function(Pe){if(Pe.type!=="DROP"){me(Pe);return}var be=ae(),Ie=Pe.payload.reason;if(be.phase==="COLLECTING"){le(zr({reason:Ie}));return}if(be.phase!=="IDLE"){var _e=be.phase==="DROP_PENDING"&&be.isWaiting;_e&&jn(!1),be.phase==="DRAGGING"||be.phase==="DROP_PENDING"||jn(!1);var lt=be.critical,Pt=be.dimensions,pt=Pt.draggables[be.critical.draggable.id],st=Ir({reason:Ie,lastImpact:be.impact,afterCritical:be.afterCritical,onLiftImpact:be.onLiftImpact,home:be.dimensions.droppables[be.critical.droppable.id],viewport:be.viewport,draggables:be.dimensions.draggables}),dt=st.impact,Tt=st.didDropInsideDroppable,pn=Tt?bn(dt):null,Za=Tt?et(dt):null,Ja={index:lt.draggable.index,droppableId:lt.droppable.id},nr={draggableId:pt.descriptor.id,type:pt.descriptor.type,source:Ja,reason:Ie,mode:be.movementMode,destination:pn,combine:Za},Ar=Pa({impact:dt,draggable:pt,dimensions:Pt,viewport:be.viewport,afterCritical:be.afterCritical}),Yr={critical:be.critical,afterCritical:be.afterCritical,result:nr,impact:dt},to=!Zo(be.current.client.offset,Ar)||!!nr.combine;if(!to){le(sr({completed:Yr}));return}var ei=Ft({current:be.current.client.offset,destination:Ar,reason:Ie}),Qo={newHomeClientOffset:Ar,dropDuration:ei,completed:Yr};le(Oa(Qo))}}}},wn=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Rr(ne){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(le){le.target!==window&&le.target!==window.document||ne()}}}function Ya(ne){var ae=ne.onWindowScroll;function le(){ae(wn())}var me=Kn(le),Pe=Rr(me),be=lo;function Ie(){return be!==lo}function _e(){Ie()&&jn(!1),be=Dr(window,[Pe])}function lt(){Ie()||jn(!1),me.cancel(),be(),be=lo}return{start:_e,stop:lt,isActive:Ie}}var Xa=function(ae){return ae.type==="DROP_COMPLETE"||ae.type==="DROP_ANIMATE"||ae.type==="FLUSH"},Ta=function(ne){var ae=Ya({onWindowScroll:function(me){ne.dispatch(Jn({newScroll:me}))}});return function(le){return function(me){!ae.isActive()&&me.type==="INITIAL_PUBLISH"&&ae.start(),ae.isActive()&&Xa(me)&&ae.stop(),le(me)}}},oo=function(ne){var ae=!1,le=!1,me=setTimeout(function(){le=!0}),Pe=function(Ie){ae||le||(ae=!0,ne(Ie),clearTimeout(me))};return Pe.wasCalled=function(){return ae},Pe},xr=function(){var ne=[],ae=function(be){var Ie=Xl(ne,function(Pt){return Pt.timerId===be});Ie===-1&&jn(!1);var _e=ne.splice(Ie,1),lt=_e[0];lt.callback()},le=function(be){var Ie=setTimeout(function(){return ae(Ie)}),_e={timerId:Ie,callback:be};ne.push(_e)},me=function(){if(ne.length){var be=[].concat(ne);ne.length=0,be.forEach(function(Ie){clearTimeout(Ie.timerId),Ie.callback()})}};return{add:le,flush:me}},zo=function(ae,le){return ae==null&&le==null?!0:ae==null||le==null?!1:ae.droppableId===le.droppableId&&ae.index===le.index},Bo=function(ae,le){return ae==null&&le==null?!0:ae==null||le==null?!1:ae.draggableId===le.draggableId&&ae.droppableId===le.droppableId},va=function(ae,le){if(ae===le)return!0;var me=ae.draggable.id===le.draggable.id&&ae.draggable.droppableId===le.draggable.droppableId&&ae.draggable.type===le.draggable.type&&ae.draggable.index===le.draggable.index,Pe=ae.droppable.id===le.droppable.id&&ae.droppable.type===le.droppable.type;return me&&Pe},Mr=function(ae,le){$n(),le(),cn()},fo=function(ae,le){return{draggableId:ae.draggable.id,type:ae.droppable.type,source:{droppableId:ae.droppable.id,index:ae.draggable.index},mode:le}},Eo=function(ae,le,me,Pe){if(!ae){me(Pe(le));return}var be=oo(me),Ie={announce:be};ae(le,Ie),be.wasCalled()||me(Pe(le))},jo=function(ne,ae){var le=xr(),me=null,Pe=function(dt,Tt){me&&jn(!1),Mr("onBeforeCapture",function(){var pn=ne().onBeforeCapture;if(pn){var Za={draggableId:dt,mode:Tt};pn(Za)}})},be=function(dt,Tt){me&&jn(!1),Mr("onBeforeDragStart",function(){var pn=ne().onBeforeDragStart;pn&&pn(fo(dt,Tt))})},Ie=function(dt,Tt){me&&jn(!1);var pn=fo(dt,Tt);me={mode:Tt,lastCritical:dt,lastLocation:pn.source,lastCombine:null},le.add(function(){Mr("onDragStart",function(){return Eo(ne().onDragStart,pn,ae,da.onDragStart)})})},_e=function(dt,Tt){var pn=bn(Tt),Za=et(Tt);me||jn(!1);var Ja=!va(dt,me.lastCritical);Ja&&(me.lastCritical=dt);var nr=!zo(me.lastLocation,pn);nr&&(me.lastLocation=pn);var Ar=!Bo(me.lastCombine,Za);if(Ar&&(me.lastCombine=Za),!(!Ja&&!nr&&!Ar)){var Yr=(0,Fe.Z)({},fo(dt,me.mode),{combine:Za,destination:pn});le.add(function(){Mr("onDragUpdate",function(){return Eo(ne().onDragUpdate,Yr,ae,da.onDragUpdate)})})}},lt=function(){me||jn(!1),le.flush()},Pt=function(dt){me||jn(!1),me=null,Mr("onDragEnd",function(){return Eo(ne().onDragEnd,dt,ae,da.onDragEnd)})},pt=function(){if(me){var dt=(0,Fe.Z)({},fo(me.lastCritical,me.mode),{combine:null,destination:null,reason:"CANCEL"});Pt(dt)}};return{beforeCapture:Pe,beforeStart:be,start:Ie,update:_e,flush:lt,drop:Pt,abort:pt}},fi=function(ne,ae){var le=jo(ne,ae);return function(me){return function(Pe){return function(be){if(be.type==="BEFORE_INITIAL_CAPTURE"){le.beforeCapture(be.payload.draggableId,be.payload.movementMode);return}if(be.type==="INITIAL_PUBLISH"){var Ie=be.payload.critical;le.beforeStart(Ie,be.payload.movementMode),Pe(be),le.start(Ie,be.payload.movementMode);return}if(be.type==="DROP_COMPLETE"){var _e=be.payload.completed.result;le.flush(),Pe(be),le.drop(_e);return}if(Pe(be),be.type==="FLUSH"){le.abort();return}var lt=me.getState();lt.phase==="DRAGGING"&&le.update(lt.critical,lt.impact)}}}},Bi=function(ne){return function(ae){return function(le){if(le.type!=="DROP_ANIMATION_FINISHED"){ae(le);return}var me=ne.getState();me.phase!=="DROP_ANIMATING"&&jn(!1),ne.dispatch(sr({completed:me.completed}))}}},ni=function(ne){var ae=null,le=null;function me(){le&&(cancelAnimationFrame(le),le=null),ae&&(ae(),ae=null)}return function(Pe){return function(be){if((be.type==="FLUSH"||be.type==="DROP_COMPLETE"||be.type==="DROP_ANIMATION_FINISHED")&&me(),Pe(be),be.type==="DROP_ANIMATE"){var Ie={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var lt=ne.getState();lt.phase==="DROP_ANIMATING"&&ne.dispatch(Zr())}};le=requestAnimationFrame(function(){le=null,ae=Dr(window,[Ie])})}}}},Zi=function(ne){return function(){return function(ae){return function(le){(le.type==="DROP_COMPLETE"||le.type==="FLUSH"||le.type==="DROP_ANIMATE")&&ne.stopPublishing(),ae(le)}}}},gl=function(ne){var ae=!1;return function(){return function(le){return function(me){if(me.type==="INITIAL_PUBLISH"){ae=!0,ne.tryRecordFocus(me.payload.critical.draggable.id),le(me),ne.tryRestoreFocusRecorded();return}if(le(me),!!ae){if(me.type==="FLUSH"){ae=!1,ne.tryRestoreFocusRecorded();return}if(me.type==="DROP_COMPLETE"){ae=!1;var Pe=me.payload.completed.result;Pe.combine&&ne.tryShiftRecord(Pe.draggableId,Pe.combine.draggableId),ne.tryRestoreFocusRecorded()}}}}}},zl=function(ae){return ae.type==="DROP_COMPLETE"||ae.type==="DROP_ANIMATE"||ae.type==="FLUSH"},Ki=function(ne){return function(ae){return function(le){return function(me){if(zl(me)){ne.stop(),le(me);return}if(me.type==="INITIAL_PUBLISH"){le(me);var Pe=ae.getState();Pe.phase!=="DRAGGING"&&jn(!1),ne.start(Pe);return}le(me),ne.scroll(ae.getState())}}}},Ri=function(ne){return function(ae){return function(le){if(ae(le),le.type==="PUBLISH_WHILE_DRAGGING"){var me=ne.getState();me.phase==="DROP_PENDING"&&(me.isWaiting||ne.dispatch(wr({reason:me.reason})))}}}},ml=Ne.qC,qi=function(ne){var ae=ne.dimensionMarshal,le=ne.focusMarshal,me=ne.styleMarshal,Pe=ne.getResponders,be=ne.announce,Ie=ne.autoScroller;return(0,Ne.MT)(dr,ml((0,Ne.md)(Gr(me),Zi(ae),Or(ae),ra,Bi,ni,Ri,Ki(Ie),Ta,gl(le),fi(Pe,be))))},Wi=function(){return{additions:{},removals:{},modified:{}}};function xl(ne){var ae=ne.registry,le=ne.callbacks,me=Wi(),Pe=null,be=function(){Pe||(le.collectionStarting(),Pe=requestAnimationFrame(function(){Pe=null,$n();var pt=me,st=pt.additions,dt=pt.removals,Tt=pt.modified,pn=Object.keys(st).map(function(nr){return ae.draggable.getById(nr).getDimension(_i)}).sort(function(nr,Ar){return nr.descriptor.index-Ar.descriptor.index}),Za=Object.keys(Tt).map(function(nr){var Ar=ae.droppable.getById(nr),Yr=Ar.callbacks.getScrollWhileDragging();return{droppableId:nr,scroll:Yr}}),Ja={additions:pn,removals:Object.keys(dt),modified:Za};me=Wi(),cn(),le.publish(Ja)}))},Ie=function(pt){var st=pt.descriptor.id;me.additions[st]=pt,me.modified[pt.descriptor.droppableId]=!0,me.removals[st]&&delete me.removals[st],be()},_e=function(pt){var st=pt.descriptor;me.removals[st.id]=!0,me.modified[st.droppableId]=!0,me.additions[st.id]&&delete me.additions[st.id],be()},lt=function(){Pe&&(cancelAnimationFrame(Pe),Pe=null,me=Wi())};return{add:Ie,remove:_e,stop:lt}}var Sl=function(ne){var ae=ne.scrollHeight,le=ne.scrollWidth,me=ne.height,Pe=ne.width,be=Ao({x:le,y:ae},{x:Pe,y:me}),Ie={x:Math.max(0,be.x),y:Math.max(0,be.y)};return Ie},uu=function(){var ne=document.documentElement;return ne||jn(!1),ne},eu=function(){var ne=uu(),ae=Sl({scrollHeight:ne.scrollHeight,scrollWidth:ne.scrollWidth,width:ne.clientWidth,height:ne.clientHeight});return ae},Nu=function(){var ne=wn(),ae=eu(),le=ne.y,me=ne.x,Pe=uu(),be=Pe.clientWidth,Ie=Pe.clientHeight,_e=me+be,lt=le+Ie,Pt=la({top:le,left:me,right:_e,bottom:lt}),pt={frame:Pt,scroll:{initial:ne,current:ne,max:ae,diff:{value:_i,displacement:_i}}};return pt},Eu=function(ne){var ae=ne.critical,le=ne.scrollOptions,me=ne.registry;$n();var Pe=Nu(),be=Pe.scroll.current,Ie=ae.droppable,_e=me.droppable.getAllByType(Ie.type).map(function(st){return st.callbacks.getDimensionAndWatchScroll(be,le)}),lt=me.draggable.getAllByType(ae.draggable.type).map(function(st){return st.getDimension(be)}),Pt={draggables:Ll(lt),droppables:ql(_e)};cn();var pt={dimensions:Pt,critical:ae,viewport:Pe};return pt};function tu(ne,ae,le){if(le.descriptor.id===ae.id||le.descriptor.type!==ae.type)return!1;var me=ne.droppable.getById(le.descriptor.droppableId);return me.descriptor.mode==="virtual"}var xu=function(ne,ae){var le=null,me=xl({callbacks:{publish:ae.publishWhileDragging,collectionStarting:ae.collectionStarting},registry:ne}),Pe=function(Tt,pn){ne.droppable.exists(Tt)||jn(!1),le&&ae.updateDroppableIsEnabled({id:Tt,isEnabled:pn})},be=function(Tt,pn){le&&(ne.droppable.exists(Tt)||jn(!1),ae.updateDroppableIsCombineEnabled({id:Tt,isCombineEnabled:pn}))},Ie=function(Tt,pn){le&&(ne.droppable.exists(Tt)||jn(!1),ae.updateDroppableScroll({id:Tt,newScroll:pn}))},_e=function(Tt,pn){le&&ne.droppable.getById(Tt).callbacks.scroll(pn)},lt=function(){if(le){me.stop();var Tt=le.critical.droppable;ne.droppable.getAllByType(Tt.type).forEach(function(pn){return pn.callbacks.dragStopped()}),le.unsubscribe(),le=null}},Pt=function(Tt){le||jn(!1);var pn=le.critical.draggable;Tt.type==="ADDITION"&&tu(ne,pn,Tt.value)&&me.add(Tt.value),Tt.type==="REMOVAL"&&tu(ne,pn,Tt.value)&&me.remove(Tt.value)},pt=function(Tt){le&&jn(!1);var pn=ne.draggable.getById(Tt.draggableId),Za=ne.droppable.getById(pn.descriptor.droppableId),Ja={draggable:pn.descriptor,droppable:Za.descriptor},nr=ne.subscribe(Pt);return le={critical:Ja,unsubscribe:nr},Eu({critical:Ja,registry:ne,scrollOptions:Tt.scrollOptions})},st={updateDroppableIsEnabled:Pe,updateDroppableIsCombineEnabled:be,scrollDroppable:_e,updateDroppableScroll:Ie,startPublishing:pt,stopPublishing:lt};return st},jl=function(ne,ae){return ne.phase==="IDLE"?!0:ne.phase!=="DROP_ANIMATING"||ne.completed.result.draggableId===ae?!1:ne.completed.result.reason==="DROP"},wu=function(ne){window.scrollBy(ne.x,ne.y)},Iu=Aa(function(ne){return Rl(ne).filter(function(ae){return!(!ae.isEnabled||!ae.frame)})}),Ti=function(ae,le){var me=al(Iu(le),function(Pe){return Pe.frame||jn(!1),Wa(Pe.frame.pageMarginBox)(ae)});return me},yi=function(ne){var ae=ne.center,le=ne.destination,me=ne.droppables;if(le){var Pe=me[le];return Pe.frame?Pe:null}var be=Ti(ae,me);return be},Ai={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(ae){return Math.pow(ae,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},Gl=function(ne,ae){var le=ne[ae.size]*Ai.startFromPercentage,me=ne[ae.size]*Ai.maxScrollAtPercentage,Pe={startScrollingFrom:le,maxScrollValueAt:me};return Pe},ul=function(ne){var ae=ne.startOfRange,le=ne.endOfRange,me=ne.current,Pe=le-ae;if(Pe===0)return 0;var be=me-ae,Ie=be/Pe;return Ie},Ul=1,Ro=function(ne,ae){if(ne>ae.startScrollingFrom)return 0;if(ne<=ae.maxScrollValueAt)return Ai.maxPixelScroll;if(ne===ae.startScrollingFrom)return Ul;var le=ul({startOfRange:ae.maxScrollValueAt,endOfRange:ae.startScrollingFrom,current:ne}),me=1-le,Pe=Ai.maxPixelScroll*Ai.ease(me);return Math.ceil(Pe)},Va=Ai.durationDampening.accelerateAt,jr=Ai.durationDampening.stopDampeningAt,eo=function(ne,ae){var le=ae,me=jr,Pe=Date.now(),be=Pe-le;if(be>=jr)return ne;if(be<Va)return Ul;var Ie=ul({startOfRange:Va,endOfRange:me,current:be}),_e=ne*Ai.ease(Ie);return Math.ceil(_e)},wo=function(ne){var ae=ne.distanceToEdge,le=ne.thresholds,me=ne.dragStartTime,Pe=ne.shouldUseTimeDampening,be=Ro(ae,le);return be===0?0:Pe?Math.max(eo(be,me),Ul):be},Mi=function(ne){var ae=ne.container,le=ne.distanceToEdges,me=ne.dragStartTime,Pe=ne.axis,be=ne.shouldUseTimeDampening,Ie=Gl(ae,Pe),_e=le[Pe.end]<le[Pe.start];return _e?wo({distanceToEdge:le[Pe.end],thresholds:Ie,dragStartTime:me,shouldUseTimeDampening:be}):-1*wo({distanceToEdge:le[Pe.start],thresholds:Ie,dragStartTime:me,shouldUseTimeDampening:be})},zi=function(ne){var ae=ne.container,le=ne.subject,me=ne.proposedScroll,Pe=le.height>ae.height,be=le.width>ae.width;return!be&&!Pe?me:be&&Pe?null:{x:be?0:me.x,y:Pe?0:me.y}},wl=gi(function(ne){return ne===0?0:ne}),kl=function(ne){var ae=ne.dragStartTime,le=ne.container,me=ne.subject,Pe=ne.center,be=ne.shouldUseTimeDampening,Ie={top:Pe.y-le.top,right:le.right-Pe.x,bottom:le.bottom-Pe.y,left:Pe.x-le.left},_e=Mi({container:le,distanceToEdges:Ie,dragStartTime:ae,axis:ar,shouldUseTimeDampening:be}),lt=Mi({container:le,distanceToEdges:Ie,dragStartTime:ae,axis:br,shouldUseTimeDampening:be}),Pt=wl({x:lt,y:_e});if(Zo(Pt,_i))return null;var pt=zi({container:le,subject:me,proposedScroll:Pt});return pt?Zo(pt,_i)?null:pt:null},Ou=gi(function(ne){return ne===0?0:ne>0?1:-1}),ce=function(){var ne=function(le,me){return le<0?le:le>me?le-me:0};return function(ae){var le=ae.current,me=ae.max,Pe=ae.change,be=Ei(le,Pe),Ie={x:ne(be.x,me.x),y:ne(be.y,me.y)};return Zo(Ie,_i)?null:Ie}}(),fe=function(ae){var le=ae.max,me=ae.current,Pe=ae.change,be={x:Math.max(me.x,le.x),y:Math.max(me.y,le.y)},Ie=Ou(Pe),_e=ce({max:be,current:me,change:Ie});return!_e||Ie.x!==0&&_e.x===0||Ie.y!==0&&_e.y===0},De=function(ae,le){return fe({current:ae.scroll.current,max:ae.scroll.max,change:le})},ze=function(ae,le){if(!De(ae,le))return null;var me=ae.scroll.max,Pe=ae.scroll.current;return ce({current:Pe,max:me,change:le})},tt=function(ae,le){var me=ae.frame;return me?fe({current:me.scroll.current,max:me.scroll.max,change:le}):!1},nt=function(ae,le){var me=ae.frame;return!me||!tt(ae,le)?null:ce({current:me.scroll.current,max:me.scroll.max,change:le})},bt=function(ne){var ae=ne.viewport,le=ne.subject,me=ne.center,Pe=ne.dragStartTime,be=ne.shouldUseTimeDampening,Ie=kl({dragStartTime:Pe,container:ae.frame,subject:le,center:me,shouldUseTimeDampening:be});return Ie&&De(ae,Ie)?Ie:null},zt=function(ne){var ae=ne.droppable,le=ne.subject,me=ne.center,Pe=ne.dragStartTime,be=ne.shouldUseTimeDampening,Ie=ae.frame;if(!Ie)return null;var _e=kl({dragStartTime:Pe,container:Ie.pageMarginBox,subject:le,center:me,shouldUseTimeDampening:be});return _e&&tt(ae,_e)?_e:null},Ot=function(ne){var ae=ne.state,le=ne.dragStartTime,me=ne.shouldUseTimeDampening,Pe=ne.scrollWindow,be=ne.scrollDroppable,Ie=ae.current.page.borderBoxCenter,_e=ae.dimensions.draggables[ae.critical.draggable.id],lt=_e.page.marginBox;if(ae.isWindowScrollAllowed){var Pt=ae.viewport,pt=bt({dragStartTime:le,viewport:Pt,subject:lt,center:Ie,shouldUseTimeDampening:me});if(pt){Pe(pt);return}}var st=yi({center:Ie,destination:Nr(ae.impact),droppables:ae.dimensions.droppables});if(st){var dt=zt({dragStartTime:le,droppable:st,subject:lt,center:Ie,shouldUseTimeDampening:me});dt&&be(st.descriptor.id,dt)}},Qt=function(ne){var ae=ne.scrollWindow,le=ne.scrollDroppable,me=Kn(ae),Pe=Kn(le),be=null,Ie=function(pt){be||jn(!1);var st=be,dt=st.shouldUseTimeDampening,Tt=st.dragStartTime;Ot({state:pt,scrollWindow:me,scrollDroppable:Pe,dragStartTime:Tt,shouldUseTimeDampening:dt})},_e=function(pt){$n(),be&&jn(!1);var st=Date.now(),dt=!1,Tt=function(){dt=!0};Ot({state:pt,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:Tt,scrollDroppable:Tt}),be={dragStartTime:st,shouldUseTimeDampening:dt},cn(),dt&&Ie(pt)},lt=function(){be&&(me.cancel(),Pe.cancel(),be=null)};return{start:_e,stop:lt,scroll:Ie}},fn=function(ne){var ae=ne.move,le=ne.scrollDroppable,me=ne.scrollWindow,Pe=function(Pt,pt){var st=Ei(Pt.current.client.selection,pt);ae({client:st})},be=function(Pt,pt){if(!tt(Pt,pt))return pt;var st=nt(Pt,pt);if(!st)return le(Pt.descriptor.id,pt),null;var dt=Ao(pt,st);le(Pt.descriptor.id,dt);var Tt=Ao(pt,dt);return Tt},Ie=function(Pt,pt,st){if(!Pt||!De(pt,st))return st;var dt=ze(pt,st);if(!dt)return me(st),null;var Tt=Ao(st,dt);me(Tt);var pn=Ao(st,Tt);return pn},_e=function(Pt){var pt=Pt.scrollJumpRequest;if(pt){var st=Nr(Pt.impact);st||jn(!1);var dt=be(Pt.dimensions.droppables[st],pt);if(dt){var Tt=Pt.viewport,pn=Ie(Pt.isWindowScrollAllowed,Tt,dt);pn&&Pe(Pt,pn)}}};return _e},Jt=function(ne){var ae=ne.scrollDroppable,le=ne.scrollWindow,me=ne.move,Pe=Qt({scrollWindow:le,scrollDroppable:ae}),be=fn({move:me,scrollWindow:le,scrollDroppable:ae}),Ie=function(Pt){if(Pt.phase==="DRAGGING"){if(Pt.movementMode==="FLUID"){Pe.scroll(Pt);return}Pt.scrollJumpRequest&&be(Pt)}},_e={scroll:Ie,start:Pe.start,stop:Pe.stop};return _e},Hn="data-rbd",zn=function(){var ne=Hn+"-drag-handle";return{base:ne,draggableId:ne+"-draggable-id",contextId:ne+"-context-id"}}(),Qn=function(){var ne=Hn+"-draggable";return{base:ne,contextId:ne+"-context-id",id:ne+"-id"}}(),za=function(){var ne=Hn+"-droppable";return{base:ne,contextId:ne+"-context-id",id:ne+"-id"}}(),Da={contextId:Hn+"-scroll-container-context-id"},ja=function(ae){return function(le){return"["+le+'="'+ae+'"]'}},Na=function(ae,le){return ae.map(function(me){var Pe=me.styles[le];return Pe?me.selector+" { "+Pe+" }":""}).join(" ")},qa="pointer-events: none;",Tr=function(ne){var ae=ja(ne),le=function(){var _e=`
|
|
cursor: -webkit-grab;
|
|
cursor: grab;
|
|
`;return{selector:ae(zn.contextId),styles:{always:`
|
|
-webkit-touch-callout: none;
|
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
touch-action: manipulation;
|
|
`,resting:_e,dragging:qa,dropAnimating:_e}}}(),me=function(){var _e=`
|
|
transition: `+Do.outOfTheWay+`;
|
|
`;return{selector:ae(Qn.contextId),styles:{dragging:_e,dropAnimating:_e,userCancel:_e}}}(),Pe={selector:ae(za.contextId),styles:{always:"overflow-anchor: none;"}},be={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;
|
|
`}},Ie=[me,le,Pe,be];return{always:Na(Ie,"always"),resting:Na(Ie,"resting"),dragging:Na(Ie,"dragging"),dropAnimating:Na(Ie,"dropAnimating"),userCancel:Na(Ie,"userCancel")}},hr=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?b.useLayoutEffect:b.useEffect,Pr=function(){var ae=document.querySelector("head");return ae||jn(!1),ae},So=function(ae){var le=document.createElement("style");return ae&&le.setAttribute("nonce",ae),le.type="text/css",le};function No(ne,ae){var le=Ut(function(){return Tr(ne)},[ne]),me=(0,b.useRef)(null),Pe=(0,b.useRef)(null),be=wt(Aa(function(st){var dt=Pe.current;dt||jn(!1),dt.textContent=st}),[]),Ie=wt(function(st){var dt=me.current;dt||jn(!1),dt.textContent=st},[]);hr(function(){!me.current&&!Pe.current||jn(!1);var st=So(ae),dt=So(ae);return me.current=st,Pe.current=dt,st.setAttribute(Hn+"-always",ne),dt.setAttribute(Hn+"-dynamic",ne),Pr().appendChild(st),Pr().appendChild(dt),Ie(le.always),be(le.resting),function(){var Tt=function(Za){var Ja=Za.current;Ja||jn(!1),Pr().removeChild(Ja),Za.current=null};Tt(me),Tt(Pe)}},[ae,Ie,be,le.always,le.resting,ne]);var _e=wt(function(){return be(le.dragging)},[be,le.dragging]),lt=wt(function(st){if(st==="DROP"){be(le.dropAnimating);return}be(le.userCancel)},[be,le.dropAnimating,le.userCancel]),Pt=wt(function(){Pe.current&&be(le.resting)},[be,le.resting]),pt=Ut(function(){return{dragging:_e,dropping:lt,resting:Pt}},[_e,lt,Pt]);return pt}var cr=function(ne){return ne&&ne.ownerDocument?ne.ownerDocument.defaultView:window};function ba(ne){return ne instanceof cr(ne).HTMLElement}function sa(ne,ae){var le="["+zn.contextId+'="'+ne+'"]',me=Gi(document.querySelectorAll(le));if(!me.length)return null;var Pe=al(me,function(be){return be.getAttribute(zn.draggableId)===ae});return!Pe||!ba(Pe)?null:Pe}function La(ne){var ae=(0,b.useRef)({}),le=(0,b.useRef)(null),me=(0,b.useRef)(null),Pe=(0,b.useRef)(!1),be=wt(function(dt,Tt){var pn={id:dt,focus:Tt};return ae.current[dt]=pn,function(){var Ja=ae.current,nr=Ja[dt];nr!==pn&&delete Ja[dt]}},[]),Ie=wt(function(dt){var Tt=sa(ne,dt);Tt&&Tt!==document.activeElement&&Tt.focus()},[ne]),_e=wt(function(dt,Tt){le.current===dt&&(le.current=Tt)},[]),lt=wt(function(){me.current||Pe.current&&(me.current=requestAnimationFrame(function(){me.current=null;var dt=le.current;dt&&Ie(dt)}))},[Ie]),Pt=wt(function(dt){le.current=null;var Tt=document.activeElement;Tt&&Tt.getAttribute(zn.draggableId)===dt&&(le.current=dt)},[]);hr(function(){return Pe.current=!0,function(){Pe.current=!1;var dt=me.current;dt&&cancelAnimationFrame(dt)}},[]);var pt=Ut(function(){return{register:be,tryRecordFocus:Pt,tryRestoreFocusRecorded:lt,tryShiftRecord:_e}},[be,Pt,lt,_e]);return pt}function tr(){var ne={draggables:{},droppables:{}},ae=[];function le(st){return ae.push(st),function(){var Tt=ae.indexOf(st);Tt!==-1&&ae.splice(Tt,1)}}function me(st){ae.length&&ae.forEach(function(dt){return dt(st)})}function Pe(st){return ne.draggables[st]||null}function be(st){var dt=Pe(st);return dt||jn(!1),dt}var Ie={register:function(dt){ne.draggables[dt.descriptor.id]=dt,me({type:"ADDITION",value:dt})},update:function(dt,Tt){var pn=ne.draggables[Tt.descriptor.id];pn&&pn.uniqueId===dt.uniqueId&&(delete ne.draggables[Tt.descriptor.id],ne.draggables[dt.descriptor.id]=dt)},unregister:function(dt){var Tt=dt.descriptor.id,pn=Pe(Tt);pn&&dt.uniqueId===pn.uniqueId&&(delete ne.draggables[Tt],me({type:"REMOVAL",value:dt}))},getById:be,findById:Pe,exists:function(dt){return!!Pe(dt)},getAllByType:function(dt){return Yl(ne.draggables).filter(function(Tt){return Tt.descriptor.type===dt})}};function _e(st){return ne.droppables[st]||null}function lt(st){var dt=_e(st);return dt||jn(!1),dt}var Pt={register:function(dt){ne.droppables[dt.descriptor.id]=dt},unregister:function(dt){var Tt=_e(dt.descriptor.id);Tt&&dt.uniqueId===Tt.uniqueId&&delete ne.droppables[dt.descriptor.id]},getById:lt,findById:_e,exists:function(dt){return!!_e(dt)},getAllByType:function(dt){return Yl(ne.droppables).filter(function(Tt){return Tt.descriptor.type===dt})}};function pt(){ne.draggables={},ne.droppables={},ae.length=0}return{draggable:Ie,droppable:Pt,subscribe:le,clean:pt}}function Sr(){var ne=Ut(tr,[]);return(0,b.useEffect)(function(){return function(){requestAnimationFrame(ne.clean)}},[ne]),ne}var io=b.createContext(null),Jr=function(){var ne=document.body;return ne||jn(!1),ne},Hr={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Io=function(ae){return"rbd-announcement-"+ae};function Go(ne){var ae=Ut(function(){return Io(ne)},[ne]),le=(0,b.useRef)(null);(0,b.useEffect)(function(){var be=document.createElement("div");return le.current=be,be.id=ae,be.setAttribute("aria-live","assertive"),be.setAttribute("aria-atomic","true"),(0,Fe.Z)(be.style,Hr),Jr().appendChild(be),function(){setTimeout(function(){var lt=Jr();lt.contains(be)&<.removeChild(be),be===le.current&&(le.current=null)})}},[ae]);var me=wt(function(Pe){var be=le.current;if(be){be.textContent=Pe;return}},[]);return me}var ri=0,oi={separator:"::"};function el(){ri=0}function Ui(ne,ae){return ae===void 0&&(ae=oi),Ut(function(){return""+ne+ae.separator+ri++},[ae.separator,ne])}function _o(ne){var ae=ne.contextId,le=ne.uniqueId;return"rbd-hidden-text-"+ae+"-"+le}function fl(ne){var ae=ne.contextId,le=ne.text,me=Ui("hidden-text",{separator:"-"}),Pe=Ut(function(){return _o({contextId:ae,uniqueId:me})},[me,ae]);return(0,b.useEffect)(function(){var Ie=document.createElement("div");return Ie.id=Pe,Ie.textContent=le,Ie.style.display="none",Jr().appendChild(Ie),function(){var lt=Jr();lt.contains(Ie)&<.removeChild(Ie)}},[Pe,le]),Pe}var ui=b.createContext(null),Vi={react:"^16.8.5","react-dom":"^16.8.5"},ji=/(\d+)\.(\d+)\.(\d+)/,nu=function(ae){var le=ji.exec(ae);le==null&&jn(!1);var me=Number(le[1]),Pe=Number(le[2]),be=Number(le[3]);return{major:me,minor:Pe,patch:be,raw:ae}},po=function(ae,le){return le.major>ae.major?!0:le.major<ae.major?!1:le.minor>ae.minor?!0:le.minor<ae.minor?!1:le.patch>=ae.patch},no=function(ne,ae){var le=nu(ne),me=nu(ae);po(le,me)},ao=`
|
|
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
|
|
`,Vr=function(ne){var ae=ne.doctype;ae&&(ae.name.toLowerCase(),ae.publicId)};function pi(ne){}function kr(ne,ae){}function Mo(){kr(function(){no(Vi.react,b.version),Vr(document)},[])}function ii(ne){var ae=(0,b.useRef)(ne);return(0,b.useEffect)(function(){ae.current=ne}),ae}function li(){var ne=null;function ae(){return!!ne}function le(Ie){return Ie===ne}function me(Ie){ne&&jn(!1);var _e={abandon:Ie};return ne=_e,_e}function Pe(){ne||jn(!1),ne=null}function be(){ne&&(ne.abandon(),Pe())}return{isClaimed:ae,isActive:le,claim:me,release:Pe,tryAbandon:be}}var Vl=9,_l=13,Pu=27,sl=32,yu=33,pl=34,su=35,Uu=36,Si=37,bi=38,Yi=39,El=40,ol,qo=(ol={},ol[_l]=!0,ol[Vl]=!0,ol),Ql=function(ne){qo[ne.keyCode]&&ne.preventDefault()},Il=function(){var ne="visibilitychange";if(typeof document=="undefined")return ne;var ae=[ne,"ms"+ne,"webkit"+ne,"moz"+ne,"o"+ne],le=al(ae,function(me){return"on"+me in document});return le||ne}(),du=0,Fu=5;function Bu(ne,ae){return Math.abs(ae.x-ne.x)>=Fu||Math.abs(ae.y-ne.y)>=Fu}var Vu={type:"IDLE"};function Mu(ne){var ae=ne.cancel,le=ne.completed,me=ne.getPhase,Pe=ne.setPhase;return[{eventName:"mousemove",fn:function(Ie){var _e=Ie.button,lt=Ie.clientX,Pt=Ie.clientY;if(_e===du){var pt={x:lt,y:Pt},st=me();if(st.type==="DRAGGING"){Ie.preventDefault(),st.actions.move(pt);return}st.type!=="PENDING"&&jn(!1);var dt=st.point;if(Bu(dt,pt)){Ie.preventDefault();var Tt=st.actions.fluidLift(pt);Pe({type:"DRAGGING",actions:Tt})}}}},{eventName:"mouseup",fn:function(Ie){var _e=me();if(_e.type!=="DRAGGING"){ae();return}Ie.preventDefault(),_e.actions.drop({shouldBlockNextClick:!0}),le()}},{eventName:"mousedown",fn:function(Ie){me().type==="DRAGGING"&&Ie.preventDefault(),ae()}},{eventName:"keydown",fn:function(Ie){var _e=me();if(_e.type==="PENDING"){ae();return}if(Ie.keyCode===Pu){Ie.preventDefault(),ae();return}Ql(Ie)}},{eventName:"resize",fn:ae},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){me().type==="PENDING"&&ae()}},{eventName:"webkitmouseforcedown",fn:function(Ie){var _e=me();if(_e.type==="IDLE"&&jn(!1),_e.actions.shouldRespectForcePress()){ae();return}Ie.preventDefault()}},{eventName:Il,fn:ae}]}function bu(ne){var ae=(0,b.useRef)(Vu),le=(0,b.useRef)(lo),me=Ut(function(){return{eventName:"mousedown",fn:function(st){if(!st.defaultPrevented&&st.button===du&&!(st.ctrlKey||st.metaKey||st.shiftKey||st.altKey)){var dt=ne.findClosestDraggableId(st);if(dt){var Tt=ne.tryGetLock(dt,Ie,{sourceEvent:st});if(Tt){st.preventDefault();var pn={x:st.clientX,y:st.clientY};le.current(),Pt(Tt,pn)}}}}}},[ne]),Pe=Ut(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(st){if(!st.defaultPrevented){var dt=ne.findClosestDraggableId(st);if(dt){var Tt=ne.findOptionsForDraggable(dt);Tt&&(Tt.shouldRespectForcePress||ne.canGetLock(dt)&&st.preventDefault())}}}}},[ne]),be=wt(function(){var st={passive:!1,capture:!0};le.current=Dr(window,[Pe,me],st)},[Pe,me]),Ie=wt(function(){var pt=ae.current;pt.type!=="IDLE"&&(ae.current=Vu,le.current(),be())},[be]),_e=wt(function(){var pt=ae.current;Ie(),pt.type==="DRAGGING"&&pt.actions.cancel({shouldBlockNextClick:!0}),pt.type==="PENDING"&&pt.actions.abort()},[Ie]),lt=wt(function(){var st={capture:!0,passive:!1},dt=Mu({cancel:_e,completed:Ie,getPhase:function(){return ae.current},setPhase:function(pn){ae.current=pn}});le.current=Dr(window,dt,st)},[_e,Ie]),Pt=wt(function(st,dt){ae.current.type!=="IDLE"&&jn(!1),ae.current={type:"PENDING",point:dt,actions:st},lt()},[lt]);hr(function(){return be(),function(){le.current()}},[be])}var Ol;function au(){}var Pl=(Ol={},Ol[pl]=!0,Ol[yu]=!0,Ol[Uu]=!0,Ol[su]=!0,Ol);function Xi(ne,ae){function le(){ae(),ne.cancel()}function me(){ae(),ne.drop()}return[{eventName:"keydown",fn:function(be){if(be.keyCode===Pu){be.preventDefault(),le();return}if(be.keyCode===sl){be.preventDefault(),me();return}if(be.keyCode===El){be.preventDefault(),ne.moveDown();return}if(be.keyCode===bi){be.preventDefault(),ne.moveUp();return}if(be.keyCode===Yi){be.preventDefault(),ne.moveRight();return}if(be.keyCode===Si){be.preventDefault(),ne.moveLeft();return}if(Pl[be.keyCode]){be.preventDefault();return}Ql(be)}},{eventName:"mousedown",fn:le},{eventName:"mouseup",fn:le},{eventName:"click",fn:le},{eventName:"touchstart",fn:le},{eventName:"resize",fn:le},{eventName:"wheel",fn:le,options:{passive:!0}},{eventName:Il,fn:le}]}function Lu(ne){var ae=(0,b.useRef)(au),le=Ut(function(){return{eventName:"keydown",fn:function(be){if(be.defaultPrevented||be.keyCode!==sl)return;var Ie=ne.findClosestDraggableId(be);if(!Ie)return;var _e=ne.tryGetLock(Ie,pt,{sourceEvent:be});if(!_e)return;be.preventDefault();var lt=!0,Pt=_e.snapLift();ae.current();function pt(){lt||jn(!1),lt=!1,ae.current(),me()}ae.current=Dr(window,Xi(Pt,pt),{capture:!0,passive:!1})}}},[ne]),me=wt(function(){var be={passive:!1,capture:!0};ae.current=Dr(window,[le],be)},[le]);hr(function(){return me(),function(){ae.current()}},[me])}var Tu={type:"IDLE"},zu=120,Ru=.15;function rs(ne){var ae=ne.cancel,le=ne.getPhase;return[{eventName:"orientationchange",fn:ae},{eventName:"resize",fn:ae},{eventName:"contextmenu",fn:function(Pe){Pe.preventDefault()}},{eventName:"keydown",fn:function(Pe){if(le().type!=="DRAGGING"){ae();return}Pe.keyCode===Pu&&Pe.preventDefault(),ae()}},{eventName:Il,fn:ae}]}function cs(ne){var ae=ne.cancel,le=ne.completed,me=ne.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(be){var Ie=me();if(Ie.type!=="DRAGGING"){ae();return}Ie.hasMoved=!0;var _e=be.touches[0],lt=_e.clientX,Pt=_e.clientY,pt={x:lt,y:Pt};be.preventDefault(),Ie.actions.move(pt)}},{eventName:"touchend",fn:function(be){var Ie=me();if(Ie.type!=="DRAGGING"){ae();return}be.preventDefault(),Ie.actions.drop({shouldBlockNextClick:!0}),le()}},{eventName:"touchcancel",fn:function(be){if(me().type!=="DRAGGING"){ae();return}be.preventDefault(),ae()}},{eventName:"touchforcechange",fn:function(be){var Ie=me();Ie.type==="IDLE"&&jn(!1);var _e=be.touches[0];if(_e){var lt=_e.force>=Ru;if(lt){var Pt=Ie.actions.shouldRespectForcePress();if(Ie.type==="PENDING"){Pt&&ae();return}if(Pt){if(Ie.hasMoved){be.preventDefault();return}ae();return}be.preventDefault()}}}},{eventName:Il,fn:ae}]}function ci(ne){var ae=(0,b.useRef)(Tu),le=(0,b.useRef)(lo),me=wt(function(){return ae.current},[]),Pe=wt(function(Tt){ae.current=Tt},[]),be=Ut(function(){return{eventName:"touchstart",fn:function(Tt){if(!Tt.defaultPrevented){var pn=ne.findClosestDraggableId(Tt);if(pn){var Za=ne.tryGetLock(pn,_e,{sourceEvent:Tt});if(Za){var Ja=Tt.touches[0],nr=Ja.clientX,Ar=Ja.clientY,Yr={x:nr,y:Ar};le.current(),st(Za,Yr)}}}}}},[ne]),Ie=wt(function(){var Tt={capture:!0,passive:!1};le.current=Dr(window,[be],Tt)},[be]),_e=wt(function(){var dt=ae.current;dt.type!=="IDLE"&&(dt.type==="PENDING"&&clearTimeout(dt.longPressTimerId),Pe(Tu),le.current(),Ie())},[Ie,Pe]),lt=wt(function(){var dt=ae.current;_e(),dt.type==="DRAGGING"&&dt.actions.cancel({shouldBlockNextClick:!0}),dt.type==="PENDING"&&dt.actions.abort()},[_e]),Pt=wt(function(){var Tt={capture:!0,passive:!1},pn={cancel:lt,completed:_e,getPhase:me},Za=Dr(window,cs(pn),Tt),Ja=Dr(window,rs(pn),Tt);le.current=function(){Za(),Ja()}},[lt,me,_e]),pt=wt(function(){var Tt=me();Tt.type!=="PENDING"&&jn(!1);var pn=Tt.actions.fluidLift(Tt.point);Pe({type:"DRAGGING",actions:pn,hasMoved:!1})},[me,Pe]),st=wt(function(Tt,pn){me().type!=="IDLE"&&jn(!1);var Za=setTimeout(pt,zu);Pe({type:"PENDING",point:pn,actions:Tt,longPressTimerId:Za}),Pt()},[Pt,me,Pe,pt]);hr(function(){return Ie(),function(){le.current();var pn=me();pn.type==="PENDING"&&(clearTimeout(pn.longPressTimerId),Pe(Tu))}},[me,Ie,Pe]),hr(function(){var Tt=Dr(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return Tt},[])}function ki(ne){}var Hl={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Qi(ne,ae){if(ae==null)return!1;var le=!!Hl[ae.tagName.toLowerCase()];if(le)return!0;var me=ae.getAttribute("contenteditable");return me==="true"||me===""?!0:ae===ne?!1:Qi(ne,ae.parentElement)}function $l(ne,ae){var le=ae.target;return ba(le)?Qi(ne,le):!1}var cu=function(ne){return la(ne.getBoundingClientRect()).center};function gu(ne){return ne instanceof cr(ne).Element}var ku=function(){var ne="matches";if(typeof document=="undefined")return ne;var ae=[ne,"msMatchesSelector","webkitMatchesSelector"],le=al(ae,function(me){return me in Element.prototype});return le||ne}();function gs(ne,ae){return ne==null?null:ne[ku](ae)?ne:gs(ne.parentElement,ae)}function js(ne,ae){return ne.closest?ne.closest(ae):gs(ne,ae)}function xs(ne){return"["+zn.contextId+'="'+ne+'"]'}function Gs(ne,ae){var le=ae.target;if(!gu(le))return null;var me=xs(ne),Pe=js(le,me);return!Pe||!ba(Pe)?null:Pe}function ws(ne,ae){var le=Gs(ne,ae);return le?le.getAttribute(zn.draggableId):null}function os(ne,ae){var le="["+Qn.contextId+'="'+ne+'"]',me=Gi(document.querySelectorAll(le)),Pe=al(me,function(be){return be.getAttribute(Qn.id)===ae});return!Pe||!ba(Pe)?null:Pe}function Qu(ne){ne.preventDefault()}function Xu(ne){var ae=ne.expected,le=ne.phase,me=ne.isLockActive,Pe=ne.shouldWarn;return!(!me()||ae!==le)}function Fs(ne){var ae=ne.lockAPI,le=ne.store,me=ne.registry,Pe=ne.draggableId;if(ae.isClaimed())return!1;var be=me.draggable.findById(Pe);return!(!be||!be.options.isEnabled||!jl(le.getState(),Pe))}function Bs(ne){var ae=ne.lockAPI,le=ne.contextId,me=ne.store,Pe=ne.registry,be=ne.draggableId,Ie=ne.forceSensorStop,_e=ne.sourceEvent,lt=Fs({lockAPI:ae,store:me,registry:Pe,draggableId:be});if(!lt)return null;var Pt=Pe.draggable.getById(be),pt=os(le,Pt.descriptor.id);if(!pt||_e&&!Pt.options.canDragInteractiveElements&&$l(pt,_e))return null;var st=ae.claim(Ie||lo),dt="PRE_DRAG";function Tt(){return Pt.options.shouldRespectForcePress}function pn(){return ae.isActive(st)}function Za(Qo,vi){Xu({expected:Qo,phase:dt,isLockActive:pn,shouldWarn:!0})&&me.dispatch(vi())}var Ja=Za.bind(null,"DRAGGING");function nr(Qo){function vi(){ae.release(),dt="COMPLETED"}dt!=="PRE_DRAG"&&(vi(),dt!=="PRE_DRAG"&&jn(!1)),me.dispatch(Ee(Qo.liftActionArgs)),dt="DRAGGING";function Fl(xi,Bl){if(Bl===void 0&&(Bl={shouldBlockNextClick:!1}),Qo.cleanup(),Bl.shouldBlockNextClick){var ru=Dr(window,[{eventName:"click",fn:Qu,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(ru)}vi(),me.dispatch(wr({reason:xi}))}return(0,Fe.Z)({isActive:function(){return Xu({expected:"DRAGGING",phase:dt,isLockActive:pn,shouldWarn:!1})},shouldRespectForcePress:Tt,drop:function(Bl){return Fl("DROP",Bl)},cancel:function(Bl){return Fl("CANCEL",Bl)}},Qo.actions)}function Ar(Qo){var vi=Kn(function(xi){Ja(function(){return An({client:xi})})}),Fl=nr({liftActionArgs:{id:be,clientSelection:Qo,movementMode:"FLUID"},cleanup:function(){return vi.cancel()},actions:{move:vi}});return(0,Fe.Z)({},Fl,{move:vi})}function Yr(){var Qo={moveUp:function(){return Ja(pa)},moveRight:function(){return Ja(Ln)},moveDown:function(){return Ja(Ua)},moveLeft:function(){return Ja(ia)}};return nr({liftActionArgs:{id:be,clientSelection:cu(pt),movementMode:"SNAP"},cleanup:lo,actions:Qo})}function to(){var Qo=Xu({expected:"PRE_DRAG",phase:dt,isLockActive:pn,shouldWarn:!0});Qo&&ae.release()}var ei={isActive:function(){return Xu({expected:"PRE_DRAG",phase:dt,isLockActive:pn,shouldWarn:!1})},shouldRespectForcePress:Tt,fluidLift:Ar,snapLift:Yr,abort:to};return ei}var Hs=[bu,Lu,ci];function As(ne){var ae=ne.contextId,le=ne.store,me=ne.registry,Pe=ne.customSensors,be=ne.enableDefaultSensors,Ie=[].concat(be?Hs:[],Pe||[]),_e=(0,b.useState)(function(){return li()})[0],lt=wt(function(Ar,Yr){Ar.isDragging&&!Yr.isDragging&&_e.tryAbandon()},[_e]);hr(function(){var Ar=le.getState(),Yr=le.subscribe(function(){var to=le.getState();lt(Ar,to),Ar=to});return Yr},[_e,le,lt]),hr(function(){return _e.tryAbandon},[_e.tryAbandon]);var Pt=wt(function(nr){return Fs({lockAPI:_e,registry:me,store:le,draggableId:nr})},[_e,me,le]),pt=wt(function(nr,Ar,Yr){return Bs({lockAPI:_e,registry:me,contextId:ae,store:le,draggableId:nr,forceSensorStop:Ar,sourceEvent:Yr&&Yr.sourceEvent?Yr.sourceEvent:null})},[ae,_e,me,le]),st=wt(function(nr){return ws(ae,nr)},[ae]),dt=wt(function(nr){var Ar=me.draggable.findById(nr);return Ar?Ar.options:null},[me.draggable]),Tt=wt(function(){_e.isClaimed()&&(_e.tryAbandon(),le.getState().phase!=="IDLE"&&le.dispatch(Ia()))},[_e,le]),pn=wt(_e.isClaimed,[_e]),Za=Ut(function(){return{canGetLock:Pt,tryGetLock:pt,findClosestDraggableId:st,findOptionsForDraggable:dt,tryReleaseLock:Tt,isLockClaimed:pn}},[Pt,pt,st,dt,Tt,pn]);ki(Ie);for(var Ja=0;Ja<Ie.length;Ja++)Ie[Ja](Za)}var is=function(ae){return{onBeforeCapture:ae.onBeforeCapture,onBeforeDragStart:ae.onBeforeDragStart,onDragStart:ae.onDragStart,onDragEnd:ae.onDragEnd,onDragUpdate:ae.onDragUpdate}};function $u(ne){return ne.current||jn(!1),ne.current}function Ks(ne){var ae=ne.contextId,le=ne.setCallbacks,me=ne.sensors,Pe=ne.nonce,be=ne.dragHandleUsageInstructions,Ie=(0,b.useRef)(null);Mo();var _e=ii(ne),lt=wt(function(){return is(_e.current)},[_e]),Pt=Go(ae),pt=fl({contextId:ae,text:be}),st=No(ae,Pe),dt=wt(function(xi){$u(Ie).dispatch(xi)},[]),Tt=Ut(function(){return(0,Ne.DE)({publishWhileDragging:$e,updateDroppableScroll:ft,updateDroppableIsEnabled:Ht,updateDroppableIsCombineEnabled:yn,collectionStarting:at},dt)},[dt]),pn=Sr(),Za=Ut(function(){return xu(pn,Tt)},[pn,Tt]),Ja=Ut(function(){return Jt((0,Fe.Z)({scrollWindow:wu,scrollDroppable:Za.scrollDroppable},(0,Ne.DE)({move:An},dt)))},[Za.scrollDroppable,dt]),nr=La(ae),Ar=Ut(function(){return qi({announce:Pt,autoScroller:Ja,dimensionMarshal:Za,focusMarshal:nr,getResponders:lt,styleMarshal:st})},[Pt,Ja,Za,nr,lt,st]);Ie.current=Ar;var Yr=wt(function(){var xi=$u(Ie),Bl=xi.getState();Bl.phase!=="IDLE"&&xi.dispatch(Ia())},[]),to=wt(function(){var xi=$u(Ie).getState();return xi.isDragging||xi.phase==="DROP_ANIMATING"},[]),ei=Ut(function(){return{isDragging:to,tryAbort:Yr}},[to,Yr]);le(ei);var Qo=wt(function(xi){return jl($u(Ie).getState(),xi)},[]),vi=wt(function(){return fr($u(Ie).getState())},[]),Fl=Ut(function(){return{marshal:Za,focus:nr,contextId:ae,canLift:Qo,isMovementAllowed:vi,dragHandleUsageInstructionsId:pt,registry:pn}},[ae,Za,pt,nr,Qo,vi,pn]);return As({contextId:ae,store:Ar,registry:pn,customSensors:me,enableDefaultSensors:ne.enableDefaultSensors!==!1}),(0,b.useEffect)(function(){return Yr},[Yr]),b.createElement(ui.Provider,{value:Fl},b.createElement(x,{context:io,store:Ar},ne.children))}var ms=0;function Ds(){ms=0}function Ws(){return Ut(function(){return""+ms++},[])}function ad(){Ds(),el()}function Us(ne){var ae=Ws(),le=ne.dragHandleUsageInstructions||da.dragHandleUsageInstructions;return b.createElement(vl,null,function(me){return b.createElement(Ks,{nonce:ne.nonce,contextId:ae,setCallbacks:me,dragHandleUsageInstructions:le,enableDefaultSensors:ne.enableDefaultSensors,sensors:ne.sensors,onBeforeCapture:ne.onBeforeCapture,onBeforeDragStart:ne.onBeforeDragStart,onDragStart:ne.onDragStart,onDragUpdate:ne.onDragUpdate,onDragEnd:ne.onDragEnd},ne.children)})}var ls=function(ae){return function(le){return ae===le}},us=ls("scroll"),fs=ls("auto"),ps=ls("visible"),vs=function(ae,le){return le(ae.overflowX)||le(ae.overflowY)},Ns=function(ae,le){return le(ae.overflowX)&&le(ae.overflowY)},hs=function(ae){var le=window.getComputedStyle(ae),me={overflowX:le.overflowX,overflowY:le.overflowY};return vs(me,us)||vs(me,fs)},Is=function(){return!1;var ae,le,me,Pe},Os=function ne(ae){return ae==null?null:ae===document.body?Is()?ae:null:ae===document.documentElement?null:hs(ae)?ae:ne(ae.parentElement)},Vs=function(ne){if(ne)var ae=Os(ne.parentElement)},qu=function(ne){return{x:ne.scrollLeft,y:ne.scrollTop}},Ls=function ne(ae){if(!ae)return!1;var le=window.getComputedStyle(ae);return le.position==="fixed"?!0:ne(ae.parentElement)},Ss=function(ne){var ae=Os(ne),le=Ls(ne);return{closestScrollable:ae,isFixedOnPage:le}},Rs=function(ne){var ae=ne.descriptor,le=ne.isEnabled,me=ne.isCombineEnabled,Pe=ne.isFixedOnPage,be=ne.direction,Ie=ne.client,_e=ne.page,lt=ne.closest,Pt=function(){if(!lt)return null;var Tt=lt.scrollSize,pn=lt.client,Za=Sl({scrollHeight:Tt.scrollHeight,scrollWidth:Tt.scrollWidth,height:pn.paddingBox.height,width:pn.paddingBox.width});return{pageMarginBox:lt.page.marginBox,frameClient:pn,scrollSize:Tt,shouldClipSubject:lt.shouldClipSubject,scroll:{initial:lt.scroll,current:lt.scroll,max:Za,diff:{value:_i,displacement:_i}}}}(),pt=be==="vertical"?ar:br,st=ou({page:_e,withPlaceholder:null,axis:pt,frame:Pt}),dt={descriptor:ae,isCombineEnabled:me,isFixedOnPage:Pe,axis:pt,isEnabled:le,client:Ie,page:_e,frame:Pt,subject:st};return dt},Qs=function(ae,le){var me=Ra(ae);if(!le||ae!==le)return me;var Pe=me.paddingBox.top-le.scrollTop,be=me.paddingBox.left-le.scrollLeft,Ie=Pe+le.scrollHeight,_e=be+le.scrollWidth,lt={top:Pe,right:_e,bottom:Ie,left:be},Pt=rr(lt,me.border),pt=na({borderBox:Pt,margin:me.margin,border:me.border,padding:me.padding});return pt},Ci=function(ne){var ae=ne.ref,le=ne.descriptor,me=ne.env,Pe=ne.windowScroll,be=ne.direction,Ie=ne.isDropDisabled,_e=ne.isCombineEnabled,lt=ne.shouldClipSubject,Pt=me.closestScrollable,pt=Qs(ae,Pt),st=or(pt,Pe),dt=function(){if(!Pt)return null;var pn=Ra(Pt),Za={scrollHeight:Pt.scrollHeight,scrollWidth:Pt.scrollWidth};return{client:pn,page:or(pn,Pe),scroll:qu(Pt),scrollSize:Za,shouldClipSubject:lt}}(),Tt=Rs({descriptor:le,isEnabled:!Ie,isCombineEnabled:_e,isFixedOnPage:me.isFixedOnPage,direction:be,client:pt,page:st,closest:dt});return Tt},$i={passive:!1},Cu={passive:!0},_u=function(ne){return ne.shouldPublishImmediately?$i:Cu};function Au(ne){var ae=(0,b.useContext)(ne);return ae||jn(!1),ae}var es=function(ae){return ae&&ae.env.closestScrollable||null};function Es(ne){var ae=(0,b.useRef)(null),le=Au(ui),me=Ui("droppable"),Pe=le.registry,be=le.marshal,Ie=ii(ne),_e=Ut(function(){return{id:ne.droppableId,type:ne.type,mode:ne.mode}},[ne.droppableId,ne.mode,ne.type]),lt=(0,b.useRef)(_e),Pt=Ut(function(){return Aa(function(to,ei){ae.current||jn(!1);var Qo={x:to,y:ei};be.updateDroppableScroll(_e.id,Qo)})},[_e.id,be]),pt=wt(function(){var to=ae.current;return!to||!to.env.closestScrollable?_i:qu(to.env.closestScrollable)},[]),st=wt(function(){var to=pt();Pt(to.x,to.y)},[pt,Pt]),dt=Ut(function(){return Kn(st)},[st]),Tt=wt(function(){var to=ae.current,ei=es(to);to&&ei||jn(!1);var Qo=to.scrollOptions;if(Qo.shouldPublishImmediately){st();return}dt()},[dt,st]),pn=wt(function(to,ei){ae.current&&jn(!1);var Qo=Ie.current,vi=Qo.getDroppableRef();vi||jn(!1);var Fl=Ss(vi),xi={ref:vi,descriptor:_e,env:Fl,scrollOptions:ei};ae.current=xi;var Bl=Ci({ref:vi,descriptor:_e,env:Fl,windowScroll:to,direction:Qo.direction,isDropDisabled:Qo.isDropDisabled,isCombineEnabled:Qo.isCombineEnabled,shouldClipSubject:!Qo.ignoreContainerClipping}),ru=Fl.closestScrollable;return ru&&(ru.setAttribute(Da.contextId,le.contextId),ru.addEventListener("scroll",Tt,_u(xi.scrollOptions))),Bl},[le.contextId,_e,Tt,Ie]),Za=wt(function(){var to=ae.current,ei=es(to);return to&&ei||jn(!1),qu(ei)},[]),Ja=wt(function(){var to=ae.current;to||jn(!1);var ei=es(to);ae.current=null,ei&&(dt.cancel(),ei.removeAttribute(Da.contextId),ei.removeEventListener("scroll",Tt,_u(to.scrollOptions)))},[Tt,dt]),nr=wt(function(to){var ei=ae.current;ei||jn(!1);var Qo=es(ei);Qo||jn(!1),Qo.scrollTop+=to.y,Qo.scrollLeft+=to.x},[]),Ar=Ut(function(){return{getDimensionAndWatchScroll:pn,getScrollWhileDragging:Za,dragStopped:Ja,scroll:nr}},[Ja,pn,Za,nr]),Yr=Ut(function(){return{uniqueId:me,descriptor:_e,callbacks:Ar}},[Ar,_e,me]);hr(function(){return lt.current=Yr.descriptor,Pe.droppable.register(Yr),function(){ae.current&&Ja(),Pe.droppable.unregister(Yr)}},[Ar,_e,Ja,Yr,be,Pe.droppable]),hr(function(){ae.current&&be.updateDroppableIsEnabled(lt.current.id,!ne.isDropDisabled)},[ne.isDropDisabled,be]),hr(function(){ae.current&&be.updateDroppableIsCombineEnabled(lt.current.id,ne.isCombineEnabled)},[ne.isCombineEnabled,be])}function ts(){}var ss={width:0,height:0,margin:Ji},Ps=function(ae){var le=ae.isAnimatingOpenOnMount,me=ae.placeholder,Pe=ae.animate;return le||Pe==="close"?ss:{height:me.client.borderBox.height,width:me.client.borderBox.width,margin:me.client.margin}},pd=function(ae){var le=ae.isAnimatingOpenOnMount,me=ae.placeholder,Pe=ae.animate,be=Ps({isAnimatingOpenOnMount:le,placeholder:me,animate:Pe});return{display:me.display,boxSizing:"border-box",width:be.width,height:be.height,marginTop:be.margin.top,marginRight:be.margin.right,marginBottom:be.margin.bottom,marginLeft:be.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:Pe!=="none"?Do.placeholder:null}};function vd(ne){var ae=(0,b.useRef)(null),le=wt(function(){ae.current&&(clearTimeout(ae.current),ae.current=null)},[]),me=ne.animate,Pe=ne.onTransitionEnd,be=ne.onClose,Ie=ne.contextId,_e=(0,b.useState)(ne.animate==="open"),lt=_e[0],Pt=_e[1];(0,b.useEffect)(function(){return lt?me!=="open"?(le(),Pt(!1),ts):ae.current?ts:(ae.current=setTimeout(function(){ae.current=null,Pt(!1)}),le):ts},[me,lt,le]);var pt=wt(function(dt){dt.propertyName==="height"&&(Pe(),me==="close"&&be())},[me,be,Pe]),st=pd({isAnimatingOpenOnMount:lt,animate:ne.animate,placeholder:ne.placeholder});return b.createElement(ne.placeholder.tagName,{style:st,"data-rbd-placeholder-context-id":Ie,onTransitionEnd:pt,ref:ne.innerRef})}var hd=b.memo(vd),$s=b.createContext(null);function rd(ne){ne&&ba(ne)||jn(!1)}function Js(ne){return typeof ne=="boolean"}function Ys(ne,ae){ae.forEach(function(le){return le(ne)})}var Sd=[function(ae){var le=ae.props;le.droppableId||jn(!1),typeof le.droppableId!="string"&&jn(!1)},function(ae){var le=ae.props;Js(le.isDropDisabled)||jn(!1),Js(le.isCombineEnabled)||jn(!1),Js(le.ignoreContainerClipping)||jn(!1)},function(ae){var le=ae.getDroppableRef;rd(le())}],Ed=[function(ae){var le=ae.props,me=ae.getPlaceholderRef;if(le.placeholder)var Pe=me()}],Pd=[function(ae){var le=ae.props;le.renderClone||jn(!1)},function(ae){var le=ae.getPlaceholderRef;le()&&jn(!1)}];function yd(ne){kr(function(){Ys(ne,Sd),ne.props.mode==="standard"&&Ys(ne,Ed),ne.props.mode==="virtual"&&Ys(ne,Pd)})}var bd=function(ne){Be(ae,ne);function ae(){for(var me,Pe=arguments.length,be=new Array(Pe),Ie=0;Ie<Pe;Ie++)be[Ie]=arguments[Ie];return me=ne.call.apply(ne,[this].concat(be))||this,me.state={isVisible:!!me.props.on,data:me.props.on,animate:me.props.shouldAnimate&&me.props.on?"open":"none"},me.onClose=function(){me.state.animate==="close"&&me.setState({isVisible:!1})},me}ae.getDerivedStateFromProps=function(Pe,be){return Pe.shouldAnimate?Pe.on?{isVisible:!0,data:Pe.on,animate:"open"}:be.isVisible?{isVisible:!0,data:be.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!Pe.on,data:Pe.on,animate:"none"}};var le=ae.prototype;return le.render=function(){if(!this.state.isVisible)return null;var Pe={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(Pe)},ae}(b.PureComponent),od={dragging:5e3,dropAnimating:4500},Cd=function(ae,le){return le?Do.drop(le.duration):ae?Do.snap:Do.fluid},xd=function(ae,le){return ae?le?Lr.opacity.drop:Lr.opacity.combining:null},wd=function(ae){return ae.forceShouldAnimate!=null?ae.forceShouldAnimate:ae.mode==="SNAP"};function Fd(ne){var ae=ne.dimension,le=ae.client,me=ne.offset,Pe=ne.combineWith,be=ne.dropping,Ie=!!Pe,_e=wd(ne),lt=!!be,Pt=lt?Lo.drop(me,Ie):Lo.moveTo(me),pt={position:"fixed",top:le.marginBox.top,left:le.marginBox.left,boxSizing:"border-box",width:le.borderBox.width,height:le.borderBox.height,transition:Cd(_e,be),transform:Pt,opacity:xd(Ie,lt),zIndex:lt?od.dropAnimating:od.dragging,pointerEvents:"none"};return pt}function Bd(ne){return{transform:Lo.moveTo(ne.offset),transition:ne.shouldAnimateDisplacement?null:"none"}}function Ad(ne){return ne.type==="DRAGGING"?Fd(ne):Bd(ne)}function Dd(ne,ae,le){le===void 0&&(le=_i);var me=window.getComputedStyle(ae),Pe=ae.getBoundingClientRect(),be=Rn(Pe,me),Ie=or(be,le),_e={client:be,tagName:ae.tagName.toLowerCase(),display:me.display},lt={x:be.marginBox.width,y:be.marginBox.height},Pt={descriptor:ne,placeholder:_e,displaceBy:lt,client:be,page:Ie};return Pt}function Nd(ne){var ae=Ui("draggable"),le=ne.descriptor,me=ne.registry,Pe=ne.getDraggableRef,be=ne.canDragInteractiveElements,Ie=ne.shouldRespectForcePress,_e=ne.isEnabled,lt=Ut(function(){return{canDragInteractiveElements:be,shouldRespectForcePress:Ie,isEnabled:_e}},[be,_e,Ie]),Pt=wt(function(Tt){var pn=Pe();return pn||jn(!1),Dd(le,pn,Tt)},[le,Pe]),pt=Ut(function(){return{uniqueId:ae,descriptor:le,options:lt,getDimension:Pt}},[le,Pt,lt,ae]),st=(0,b.useRef)(pt),dt=(0,b.useRef)(!0);hr(function(){return me.draggable.register(st.current),function(){return me.draggable.unregister(st.current)}},[me.draggable]),hr(function(){if(dt.current){dt.current=!1;return}var Tt=st.current;st.current=pt,me.draggable.update(pt,Tt)},[pt,me.draggable])}function Id(ne,ae,le){kr(function(){function me(be){return"Draggable[id: "+be+"]: "}var Pe=ne.draggableId;Pe||jn(!1),typeof Pe!="string"&&jn(!1),hl(ne.index)||jn(!1),ne.mapped.type!=="DRAGGING"&&(rd(le()),ne.isEnabled&&(sa(ae,Pe)||jn(!1)))})}function Od(ne){}function Ld(ne){ne.preventDefault()}function Rd(ne){var ae=(0,b.useRef)(null),le=wt(function(xi){ae.current=xi},[]),me=wt(function(){return ae.current},[]),Pe=Au(ui),be=Pe.contextId,Ie=Pe.dragHandleUsageInstructionsId,_e=Pe.registry,lt=Au($s),Pt=lt.type,pt=lt.droppableId,st=Ut(function(){return{id:ne.draggableId,index:ne.index,type:Pt,droppableId:pt}},[ne.draggableId,ne.index,Pt,pt]),dt=ne.children,Tt=ne.draggableId,pn=ne.isEnabled,Za=ne.shouldRespectForcePress,Ja=ne.canDragInteractiveElements,nr=ne.isClone,Ar=ne.mapped,Yr=ne.dropAnimationFinished;if(Id(ne,be,me),Od(nr),!nr){var to=Ut(function(){return{descriptor:st,registry:_e,getDraggableRef:me,canDragInteractiveElements:Ja,shouldRespectForcePress:Za,isEnabled:pn}},[st,_e,me,Ja,Za,pn]);Nd(to)}var ei=Ut(function(){return pn?{tabIndex:0,role:"button","aria-describedby":Ie,"data-rbd-drag-handle-draggable-id":Tt,"data-rbd-drag-handle-context-id":be,draggable:!1,onDragStart:Ld}:null},[be,Ie,Tt,pn]),Qo=wt(function(xi){Ar.type==="DRAGGING"&&Ar.dropping&&xi.propertyName==="transform"&&Yr()},[Yr,Ar]),vi=Ut(function(){var xi=Ad(Ar),Bl=Ar.type==="DRAGGING"&&Ar.dropping?Qo:null,ru={innerRef:le,draggableProps:{"data-rbd-draggable-context-id":be,"data-rbd-draggable-id":Tt,style:xi,onTransitionEnd:Bl},dragHandleProps:ei};return ru},[be,ei,Tt,Ar,Qo,le]),Fl=Ut(function(){return{draggableId:st.id,type:st.type,source:{index:st.index,droppableId:st.droppableId}}},[st.droppableId,st.id,st.index,st.type]);return dt(vi,Ar.snapshot,Fl)}var id=function(ne,ae){return ne===ae},ld=function(ne){var ae=ne.combine,le=ne.destination;return le?le.droppableId:ae?ae.droppableId:null},Md=function(ae){return ae.combine?ae.combine.draggableId:null},Td=function(ae){return ae.at&&ae.at.type==="COMBINE"?ae.at.combine.draggableId:null};function kd(){var ne=Aa(function(Pe,be){return{x:Pe,y:be}}),ae=Aa(function(Pe,be,Ie,_e,lt){return{isDragging:!0,isClone:be,isDropAnimating:!!lt,dropAnimation:lt,mode:Pe,draggingOver:Ie,combineWith:_e,combineTargetFor:null}}),le=Aa(function(Pe,be,Ie,_e,lt,Pt,pt){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:lt,combineWith:Pt,mode:be,offset:Pe,dimension:Ie,forceShouldAnimate:pt,snapshot:ae(be,_e,lt,Pt,null)}}}),me=function(be,Ie){if(be.isDragging){if(be.critical.draggable.id!==Ie.draggableId)return null;var _e=be.current.client.offset,lt=be.dimensions.draggables[Ie.draggableId],Pt=Nr(be.impact),pt=Td(be.impact),st=be.forceShouldAnimate;return le(ne(_e.x,_e.y),be.movementMode,lt,Ie.isClone,Pt,pt,st)}if(be.phase==="DROP_ANIMATING"){var dt=be.completed;if(dt.result.draggableId!==Ie.draggableId)return null;var Tt=Ie.isClone,pn=be.dimensions.draggables[Ie.draggableId],Za=dt.result,Ja=Za.mode,nr=ld(Za),Ar=Md(Za),Yr=be.dropDuration,to={duration:Yr,curve:lr.drop,moveTo:be.newHomeClientOffset,opacity:Ar?Lr.opacity.drop:null,scale:Ar?Lr.scale.drop:null};return{mapped:{type:"DRAGGING",offset:be.newHomeClientOffset,dimension:pn,dropping:to,draggingOver:nr,combineWith:Ar,mode:Ja,forceShouldAnimate:null,snapshot:ae(Ja,Tt,nr,Ar,to)}}}return null};return me}function ud(ne){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:ne,combineWith:null}}var _d={mapped:{type:"SECONDARY",offset:_i,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:ud(null)}};function Zd(){var ne=Aa(function(Ie,_e){return{x:Ie,y:_e}}),ae=Aa(ud),le=Aa(function(Ie,_e,lt){return _e===void 0&&(_e=null),{mapped:{type:"SECONDARY",offset:Ie,combineTargetFor:_e,shouldAnimateDisplacement:lt,snapshot:ae(_e)}}}),me=function(_e){return _e?le(_i,_e,!0):null},Pe=function(_e,lt,Pt,pt){var st=Pt.displaced.visible[_e],dt=!!(pt.inVirtualList&&pt.effected[_e]),Tt=et(Pt),pn=Tt&&Tt.draggableId===_e?lt:null;if(!st){if(!dt)return me(pn);if(Pt.displaced.invisible[_e])return null;var Za=ka(pt.displacedBy.point),Ja=ne(Za.x,Za.y);return le(Ja,pn,!0)}if(dt)return me(pn);var nr=Pt.displacedBy.point,Ar=ne(nr.x,nr.y);return le(Ar,pn,st.shouldAnimate)},be=function(_e,lt){if(_e.isDragging)return _e.critical.draggable.id===lt.draggableId?null:Pe(lt.draggableId,_e.critical.draggable.id,_e.impact,_e.afterCritical);if(_e.phase==="DROP_ANIMATING"){var Pt=_e.completed;return Pt.result.draggableId===lt.draggableId?null:Pe(lt.draggableId,Pt.result.draggableId,Pt.impact,Pt.afterCritical)}return null};return be}var zd=function(){var ae=kd(),le=Zd(),me=function(be,Ie){return ae(be,Ie)||le(be,Ie)||_d};return me},jd={dropAnimationFinished:Zr},Gd=Gt(zd,jd,null,{context:io,pure:!0,areStatePropsEqual:id})(Rd);function sd(ne){var ae=Au($s),le=ae.isUsingCloneFor;return le===ne.draggableId&&!ne.isClone?null:b.createElement(Gd,ne)}function Hd(ne){var ae=typeof ne.isDragDisabled=="boolean"?!ne.isDragDisabled:!0,le=!!ne.disableInteractiveElementBlocking,me=!!ne.shouldRespectForcePress;return b.createElement(sd,(0,Fe.Z)({},ne,{isClone:!1,isEnabled:ae,canDragInteractiveElements:le,shouldRespectForcePress:me}))}function Kd(ne){var ae=(0,b.useContext)(ui);ae||jn(!1);var le=ae.contextId,me=ae.isMovementAllowed,Pe=(0,b.useRef)(null),be=(0,b.useRef)(null),Ie=ne.children,_e=ne.droppableId,lt=ne.type,Pt=ne.mode,pt=ne.direction,st=ne.ignoreContainerClipping,dt=ne.isDropDisabled,Tt=ne.isCombineEnabled,pn=ne.snapshot,Za=ne.useClone,Ja=ne.updateViewportMaxScroll,nr=ne.getContainerForClone,Ar=wt(function(){return Pe.current},[]),Yr=wt(function(mu){Pe.current=mu},[]),to=wt(function(){return be.current},[]),ei=wt(function(mu){be.current=mu},[]);yd({props:ne,getDroppableRef:Ar,getPlaceholderRef:to});var Qo=wt(function(){me()&&Ja({maxScroll:eu()})},[me,Ja]);Es({droppableId:_e,type:lt,mode:Pt,direction:pt,isDropDisabled:dt,isCombineEnabled:Tt,ignoreContainerClipping:st,getDroppableRef:Ar});var vi=b.createElement(bd,{on:ne.placeholder,shouldAnimate:ne.shouldAnimatePlaceholder},function(mu){var ju=mu.onClose,Zu=mu.data,Du=mu.animate;return b.createElement(hd,{placeholder:Zu,onClose:ju,innerRef:ei,animate:Du,contextId:le,onTransitionEnd:Qo})}),Fl=Ut(function(){return{innerRef:Yr,placeholder:vi,droppableProps:{"data-rbd-droppable-id":_e,"data-rbd-droppable-context-id":le}}},[le,_e,vi,Yr]),xi=Za?Za.dragging.draggableId:null,Bl=Ut(function(){return{droppableId:_e,type:lt,isUsingCloneFor:xi}},[_e,xi,lt]);function ru(){if(!Za)return null;var mu=Za.dragging,ju=Za.render,Zu=b.createElement(sd,{draggableId:mu.draggableId,index:mu.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(Du,Gu){return ju(Du,Gu,mu)});return vn.createPortal(Zu,nr())}return b.createElement($s.Provider,{value:Bl},Ie(Fl,pn),ru())}var Xs=function(ae,le){return ae===le.droppable.type},dd=function(ae,le){return le.draggables[ae.draggable.id]},Wd=function(){var ae={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},le=(0,Fe.Z)({},ae,{shouldAnimatePlaceholder:!1}),me=Aa(function(Ie){return{draggableId:Ie.id,type:Ie.type,source:{index:Ie.index,droppableId:Ie.droppableId}}}),Pe=Aa(function(Ie,_e,lt,Pt,pt,st){var dt=pt.descriptor.id,Tt=pt.descriptor.droppableId===Ie;if(Tt){var pn=st?{render:st,dragging:me(pt.descriptor)}:null,Za={isDraggingOver:lt,draggingOverWith:lt?dt:null,draggingFromThisWith:dt,isUsingPlaceholder:!0};return{placeholder:pt.placeholder,shouldAnimatePlaceholder:!1,snapshot:Za,useClone:pn}}if(!_e)return le;if(!Pt)return ae;var Ja={isDraggingOver:lt,draggingOverWith:dt,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:pt.placeholder,shouldAnimatePlaceholder:!0,snapshot:Ja,useClone:null}}),be=function(_e,lt){var Pt=lt.droppableId,pt=lt.type,st=!lt.isDropDisabled,dt=lt.renderClone;if(_e.isDragging){var Tt=_e.critical;if(!Xs(pt,Tt))return le;var pn=dd(Tt,_e.dimensions),Za=Nr(_e.impact)===Pt;return Pe(Pt,st,Za,Za,pn,dt)}if(_e.phase==="DROP_ANIMATING"){var Ja=_e.completed;if(!Xs(pt,Ja.critical))return le;var nr=dd(Ja.critical,_e.dimensions);return Pe(Pt,st,ld(Ja.result)===Pt,Nr(Ja.impact)===Pt,nr,dt)}if(_e.phase==="IDLE"&&_e.completed&&!_e.shouldFlush){var Ar=_e.completed;if(!Xs(pt,Ar.critical))return le;var Yr=Nr(Ar.impact)===Pt,to=!!(Ar.impact.at&&Ar.impact.at.type==="COMBINE"),ei=Ar.critical.droppable.id===Pt;return Yr?to?ae:le:ei?ae:le}return le};return be},Ud={updateViewportMaxScroll:On};function Vd(){return document.body||jn(!1),document.body}var Qd={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Vd},cd=Gt(Wd,Ud,null,{context:io,pure:!0,areStatePropsEqual:id})(Kd);cd.defaultProps=Qd},88359:function(Bt,Ct){"use strict";var ee;var b=60103,ie=60106,Be=60107,Fe=60108,Ne=60114,je=60109,ue=60110,Ge=60112,Ae=60113,Me=60120,Te=60115,Oe=60116,ye=60121,se=60122,E=60117,a=60129,x=60131;if(typeof Symbol=="function"&&Symbol.for){var y=Symbol.for;b=y("react.element"),ie=y("react.portal"),Be=y("react.fragment"),Fe=y("react.strict_mode"),Ne=y("react.profiler"),je=y("react.provider"),ue=y("react.context"),Ge=y("react.forward_ref"),Ae=y("react.suspense"),Me=y("react.suspense_list"),Te=y("react.memo"),Oe=y("react.lazy"),ye=y("react.block"),se=y("react.server.block"),E=y("react.fundamental"),a=y("react.debug_trace_mode"),x=y("react.legacy_hidden")}function z(Qe){if(typeof Qe=="object"&&Qe!==null){var Le=Qe.$$typeof;switch(Le){case b:switch(Qe=Qe.type,Qe){case Be:case Ne:case Fe:case Ae:case Me:return Qe;default:switch(Qe=Qe&&Qe.$$typeof,Qe){case ue:case Ge:case Oe:case Te:case je:return Qe;default:return Le}}case ie:return Le}}}var te=je,re=b,oe=Ge,de=Be,pe=Oe,ge=Te,xe=ie,we=Ne,Se=Fe,ve=Ae;ee=ue,ee=te,ee=re,ee=oe,ee=de,ee=pe,ee=ge,ee=xe,ee=we,ee=Se,ee=ve,ee=function(){return!1},ee=function(){return!1},Ct.isContextConsumer=function(Qe){return z(Qe)===ue},ee=function(Qe){return z(Qe)===je},ee=function(Qe){return typeof Qe=="object"&&Qe!==null&&Qe.$$typeof===b},ee=function(Qe){return z(Qe)===Ge},ee=function(Qe){return z(Qe)===Be},ee=function(Qe){return z(Qe)===Oe},ee=function(Qe){return z(Qe)===Te},ee=function(Qe){return z(Qe)===ie},ee=function(Qe){return z(Qe)===Ne},ee=function(Qe){return z(Qe)===Fe},ee=function(Qe){return z(Qe)===Ae},ee=function(Qe){return typeof Qe=="string"||typeof Qe=="function"||Qe===Be||Qe===Ne||Qe===a||Qe===Fe||Qe===Ae||Qe===Me||Qe===x||typeof Qe=="object"&&Qe!==null&&(Qe.$$typeof===Oe||Qe.$$typeof===Te||Qe.$$typeof===je||Qe.$$typeof===ue||Qe.$$typeof===Ge||Qe.$$typeof===E||Qe.$$typeof===ye||Qe[0]===se)},ee=z},72973:function(Bt,Ct,ee){"use strict";Bt.exports=ee(88359)},32637:function(Bt,Ct,ee){"use strict";Bt.exports=ee.p+"static/AssistantCode3.a8740efb.jpeg"},73631:function(Bt){"use strict";Bt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAZxJREFUOBGtlL1Ow0AMgH2XUIkOLFXVASgTsDHxBIAEzAwMPBQjT8AATGVBgEBCYmHmFcICYmBogCbNYSe52HUTVZWwFJ3PP599Z+WMcy6Af5SwYkWnLYifTyBzq5XNK8YNwbbvYP381ZuaVlN1+HJwAc4d1QYaA+gDsHYANrhGHTdCMtSDMILtwSMDn7ZiANPKwyjeQ0Reo4r1gEoEwRkDb7spdPcBeocMk1Cv00oii5L+fgPwcR/zHfb3AJY2sEpUVLOUhB/l+w7I1iS9TYDFrM3AzhqGDstPZ3li2Z12U2WLvk4fGJh+F0elYN8ZrbWiA7igAP4WR6sFzDAKPgPHP0VnlMsFS5IyyIGoeAamCKybYI5UQLWVE2fgGI/s72wqQXRd9jyxiHgGJtihFxGQm8Qd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dDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},36459:function(Bt,Ct,ee){"use strict";ee.d(Ct,{Z:function(){return b}});function b(ie){if(ie==null)throw new TypeError("Cannot destructure "+ie)}}}]);
|