|
|
(self.webpackChunk=self.webpackChunk||[]).push([[5816],{89489:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Ne}});var y=E(54476),ve=E(59301),ce={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Le=ce,xe=E(7657),ge=function(fe,$e){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:$e,icon:Le}))},Se=ve.forwardRef(ge),Ne=Se},59477:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Ne}});var y=E(54476),ve=E(59301),ce={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Le=ce,xe=E(7657),ge=function(fe,$e){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:$e,icon:Le}))},Se=ve.forwardRef(ge),Ne=Se},40001:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Ne}});var y=E(54476),ve=E(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Le=ce,xe=E(7657),ge=function(fe,$e){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:$e,icon:Le}))},Se=ve.forwardRef(ge),Ne=Se},49198:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Ne}});var y=E(54476),ve=E(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Le=ce,xe=E(7657),ge=function(fe,$e){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:$e,icon:Le}))},Se=ve.forwardRef(ge),Ne=Se},87169:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Ne}});var y=E(54476),ve=E(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Le=ce,xe=E(7657),ge=function(fe,$e){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:$e,icon:Le}))},Se=ve.forwardRef(ge),Ne=Se},73331:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Ne}});var y=E(54476),ve=E(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},Le=ce,xe=E(7657),ge=function(fe,$e){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:$e,icon:Le}))},Se=ve.forwardRef(ge),Ne=Se},15277:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Ne}});var y=E(54476),ve=E(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Le=ce,xe=E(7657),ge=function(fe,$e){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:$e,icon:Le}))},Se=ve.forwardRef(ge),Ne=Se},52671:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Ne}});var y=E(54476),ve=E(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Le=ce,xe=E(7657),ge=function(fe,$e){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:$e,icon:Le}))},Se=ve.forwardRef(ge),Ne=Se},8657:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Ne}});var y=E(54476),ve=E(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Le=ce,xe=E(7657),ge=function(fe,$e){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:$e,icon:Le}))},Se=ve.forwardRef(ge),Ne=Se},56082:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Ne}});var y=E(54476),ve=E(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Le=ce,xe=E(7657),ge=function(fe,$e){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:$e,icon:Le}))},Se=ve.forwardRef(ge),Ne=Se},33853:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Ne}});var y=E(54476),ve=E(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Le=ce,xe=E(7657),ge=function(fe,$e){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:$e,icon:Le}))},Se=ve.forwardRef(ge),Ne=Se},12893:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Ne}});var y=E(54476),ve=E(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},Le=ce,xe=E(7657),ge=function(fe,$e){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:$e,icon:Le}))},Se=ve.forwardRef(ge),Ne=Se},15075:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Ne}});var y=E(54476),ve=E(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},Le=ce,xe=E(7657),ge=function(fe,$e){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:$e,icon:Le}))},Se=ve.forwardRef(ge),Ne=Se},32134:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Ne}});var y=E(54476),ve=E(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},Le=ce,xe=E(7657),ge=function(fe,$e){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:$e,icon:Le}))},Se=ve.forwardRef(ge),Ne=Se},43531:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Ne}});var y=E(54476),ve=E(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},Le=ce,xe=E(7657),ge=function(fe,$e){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:$e,icon:Le}))},Se=ve.forwardRef(ge),Ne=Se},61485:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Ne}});var y=E(54476),ve=E(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},Le=ce,xe=E(7657),ge=function(fe,$e){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:$e,icon:Le}))},Se=ve.forwardRef(ge),Ne=Se},47472:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Ne}});var y=E(54476),ve=E(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Le=ce,xe=E(7657),ge=function(fe,$e){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:$e,icon:Le}))},Se=ve.forwardRef(ge),Ne=Se},87395:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Ne}});var y=E(54476),ve=E(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Le=ce,xe=E(7657),ge=function(fe,$e){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:$e,icon:Le}))},Se=ve.forwardRef(ge),Ne=Se},45559:function(){"use strict"},42313:function(){"use strict"},96408:function(Mn,Yt){"use strict";Yt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},58e3:function(Mn,Yt){"use strict";Yt.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"}},70414:function(Mn,Yt,E){"use strict";var y=E(59301),ve=Object.defineProperty,ce=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,ge=(Be,fe,$e)=>fe in Be?ve(Be,fe,{enumerable:!0,configurable:!0,writable:!0,value:$e}):Be[fe]=$e,Se=(Be,fe)=>{for(var $e in fe||(fe={}))Le.call(fe,$e)&&ge(Be,$e,fe[$e]);if(ce)for(var $e of ce(fe))xe.call(fe,$e)&&ge(Be,$e,fe[$e]);return Be};const Ne=Be=>React.createElement("svg",Se({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Be),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"})));Yt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},93510:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Mn={},Yt="5.0",E={},y=null,ve=!1,ce=!1,Le=null,xe=!1,ge=null,Se=null,Ne=0;Ne<arguments.length;Ne++){var Be=arguments[Ne];if(Be!==null)switch(typeof Be){case"number":Yt=Be.toFixed(1);break;case"string":Be.match(new RegExp("^[0-9]\\.[0-9]+$"))?Yt=Be:Le=Be;break;case"object":typeof Be.is3D!="undefined"?y=Be:E=Be;break;case"boolean":ve=Be,ce=!0;break}}y===null&&(y={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},E.material_id!==void 0&&!ce&&(ve=!0)),Le!==null&&E.id===void 0&&(E.id=Le);var fe="",$e="",Oe=!1,ct=null,Ke=null,Te=null,we=!1,Ie=null,Pe=null,tt=null,Et=null,_e=null;E.height!==void 0&&(E.height=Math.round(E.height)),E.width!==void 0&&(E.width=Math.round(E.width));var Fe=function(De){return parseFloat(De)>4?parseFloat(De):5};Mn.setHTML5Codebase=function(De,pt){Se=De,vt(De,pt)},Mn.setJavaCodebase=Mn.setJavaCodebaseVersion=Mn.isCompiledInstalled=Mn.setPreCompiledScriptPath=Mn.setPreCompiledResourcePath=function(){},Mn.setHTML5CodebaseVersion=function(De,pt){var ut=parseFloat(De);if(ut!==NaN&&ut<5){console.log("The GeoGebra HTML5 codebase version "+ut+" is deprecated. Using version latest instead.");return}ge=De,be(De,pt)},Mn.getHTML5CodebaseVersion=function(){return Ke},Mn.getParameters=function(){return E},Mn.setFontsCSSURL=function(De){Et=De},Mn.setGiacJSURL=function(De){},Mn.setJNLPFile=function(De){fe=De},Mn.setJNLPBaseDir=function(De){},Mn.inject=function(){function De(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var pt="auto",ut=E.id,Qt,yt=!1,Ct=0;Ct<arguments.length;Ct++){var mt=arguments[Ct];typeof mt=="string"?(mt=mt.toLowerCase(),mt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?pt=mt:ut=arguments[Ct]):typeof mt=="boolean"?yt=mt:mt instanceof HTMLElement&&(Qt=mt)}dn();function dn(){if(!xe){setTimeout(dn,200);return}pt=st(pt);var Ht=Qt||document.getElementById(ut);if(!Ht){console.log("possibly bug on ajax loading? ");return}if(Mn.removeExistingApplet(Ht,!1),E.width===void 0&&Ht.clientWidth&&(E.width=Ht.clientWidth),E.height===void 0&&Ht.clientHeight&&(E.height=Ht.clientHeight),!(E.width&&E.height)&&pt==="html5"&&(delete E.width,delete E.height),ct=pt,pt==="screenshot")Ae(Ht,E);else{var ue=!1;E.hasOwnProperty("playButton")&&E.playButton||E.hasOwnProperty("clickToLoad")&&E.clickToLoad?ue=!0:E.hasOwnProperty("playButtonAutoDecide")&&E.playButtonAutoDecide&&(ue=(!He()||De())&&Xe()),ue?(ct="screenshot",wt(Ht,E,yt,pt)):We(Ht,E,yt)}}};function He(){try{return window.self!==window.top}catch(De){return!0}}function Xe(){return E.hasOwnProperty("screenshotGenerator")&&E.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Mn.getViews=function(){return y},Mn.isJavaInstalled=function(){return!1};var St=function(De){var pt=function(Ct){var mt=JSON.parse(Ct),dn=function(ie){return ie.type=="G"||ie.type=="E"},Ht=mt.elements?mt.elements.filter(dn)[0]:mt;if(!Ht||!Ht.url){ut();return}E.fileName=Ht.url,gt(Ht.settings||{}),y.is3D=!0;var ue="https://www.geogebra.org/images/";Mn.setPreviewImage(Ie||Ht.previewUrl,ue+"GeoGebra_loading.png",ue+"applet_play.png"),De()},ut=function(){E.onError&&E.onError(),zt("Error: Fetching material (id "+E.material_id+") failed.",E)},Qt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",yt="/materials/"+E.material_id+"?scope=basic";ot("https://"+Qt+"/api/proxy.php?path="+encodeURIComponent(yt),pt,ut)};function gt(De){var pt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(ut){De[ut]=!!De[ut]}),pt.forEach(function(ut){E[ut]===void 0&&De[ut]!==void 0&&(E[ut]=De[ut])}),E.showToolBarHelp===void 0&&(E.showToolBarHelp=E.showToolBar)}function ot(De,pt,ut){var Qt=new XMLHttpRequest;Qt.open("GET",De),Qt.onload=function(){pt(Qt.responseText)},Qt.onerror=ut,Qt.send()}Mn.isHTML5Installed=function(){return!0},Mn.getLoadedAppletType=function(){return ct},Mn.setPreviewImage=function(De,pt,ut){Ie=De,Pe=pt,tt=ut},Mn.removeExistingApplet=function(De,pt){var ut;typeof De=="string"&&(De=document.getElementById(De)),ct=null;var Qt=null;for(ut=0;ut<De.childNodes.length;ut++){var yt=De.childNodes[ut],Ct=yt.className;Ct==="applet_screenshot"?pt?(yt.style.display="block",ct="screenshot"):yt.style.display="none":Ct!=="applet_scaler prerender"&&(De.removeChild(yt),Qt=Ct&&Ct.indexOf("appletParameters")!=-1?yt.id:null,ut--)}var mt=E.id!==void 0?E.id:Qt,dn=window[mt];dn&&typeof dn.getBase64=="function"&&(dn.remove(),window[mt]=null)},Mn.refreshHitPoints=function(){if(Fe(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var De=Mn.getAppletObject();return De&&typeof De.recalculateEnvironments=="function"?(De.recalculateEnvironments(),!0):!1},Mn.startAnimation=function(){var De=Mn.getAppletObject();return De&&typeof De.startAnimation=="function"?(De.startAnimation(),!0):!1},Mn.stopAnimation=function(){var De=Mn.getAppletObject();return De&&typeof De.stopAnimation=="function"?(De.stopAnimation(),!0):!1},Mn.getAppletObject=function(){var De=E.id!==void 0?E.id:"ggbApplet";return window[De]},Mn.resize=function(){};var Ue=function(De,pt,ut){var Qt=document.createElement("param");Qt.setAttribute("name",pt),Qt.setAttribute("value",ut),De.appendChild(Qt)},Ee=function(De){return De&&De!=="false"},We=function(De,pt,ut){Fe(Ke)<=4.2&&(ut=!0);var Qt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ke||ggbHTML5LoadedCodebaseIsWebSimple&&!we)&&(Qt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var yt=document.createElement("div");yt.classList.add("appletParameters","notranslate");var Ct=pt.width,mt=pt.height;if(pt.disableAutoScale=pt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():pt.disableAutoScale,pt.width!==void 0)if(Fe(Ke)<=4.4)Ee(pt.showToolBar)&&(pt.height-=7),Ee(pt.showAlgebraInput)&&(pt.height-=37),pt.width<605&&Ee(pt.showToolBar)&&(pt.width=605,Ct=605);else{var dn=100;(Ee(pt.showToolBar)||Ee(pt.showMenuBar))&&(pt.hasOwnProperty("customToolBar")&&(pt.customToolbar=pt.customToolBar),dn=Ee(pt.showMenuBar)?245:155),Ct<dn&&(pt.width=dn,Ct=dn)}yt.style.border="none",yt.style.display="inline-block";for(var Ht in pt)pt.hasOwnProperty(Ht)&&Ht!=="appletOnLoad"&&yt.setAttribute("data-param-"+Ht,pt[Ht]);Et&&yt.setAttribute("data-param-fontscssurl",Et),Mn.resize=function(){GGBAppletUtils.responsiveResize(De,pt)},window.addEventListener("resize",function(At){Mn.resize()});var ue=typeof pt.appletOnLoad=="function"?pt.appletOnLoad:function(){};if(!ut&&pt.width!==void 0){pt.hasOwnProperty("showSplash")||yt.setAttribute("data-param-showSplash","false");var ie=De.querySelector(".applet_scaler.prerender"),re=ie!==null;if(re)var oe=ie.querySelector(".ggb_preview");else{var oe=Ge(Ct,mt,pt.borderColor,!1);ie=document.createElement("div"),ie.className="applet_scaler",ie.style.position="relative",ie.style.display="block",ie.style.width=Ct+"px",ie.style.height=mt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ie,"66%"),Fe(Ke)>=5?(pt.appletOnLoad=function(At){var $t=De.querySelector(".ggb_preview");$t&&$t.parentNode.removeChild($t),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ie),window.GGBT_wsf_view&&$(window).trigger("resize"),ue(At)},re||ie.appendChild(oe)):yt.appendChild(oe),ie.appendChild(yt),re||De.appendChild(ie),setTimeout(function(){Mn.resize()},1)}else{var pe=document.createElement("div");pe.className="applet_scaler",pe.style.position="relative",pe.style.display="block",pe.appendChild(yt),De.appendChild(pe),pt.appletOnLoad=function(At){Mn.resize(),ue(At)}}function ae(At,$t){$t&&typeof $t.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(At,$t.appletOnLoad):renderGGBElement(At),zt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",$t)}function me(At,$t){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:At,params:$t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Ye){ae(Ye.article,Ye.params)}),html5AppletsToProcess=null)},Fe(Ke)<5&&(At.className+=" geogebraweb")):ae(At,$t)}if(Qt){scriptLoadStarted=!0;for(var Ze=0;Ze<yt.childNodes.length;Ze++){var Ot=yt.childNodes[Ze].tagName;Ot==="TABLE"&&(yt.removeChild(yt.childNodes[Ze]),Ze--)}if(ggbHTML5LoadedScript!==null){var at=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');at!=null&&at.parentNode.removeChild(at)}var qe=document.createElement("script"),bt=function(){me(yt,pt)};qe.src=$e+Te,ggbHTML5LoadedCodebaseIsWebSimple=we,ggbHTML5LoadedCodebaseVersion=Ke,ggbHTML5LoadedScript=qe.src,zt("GeoGebra HTML5 codebase loaded: '"+$e+"'.",pt),!Se&&(!ge||ge=="5.0")?(we?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),bt()):$e.requirejs?__webpack_require__.e(3861).then(function(){var At=[__webpack_require__(40341)];bt.apply(null,At)}.bind(this)).catch(__webpack_require__.oe):(qe.onload=bt,De.appendChild(qe))}else me(yt,pt);pt.height=mt,pt.width=Ct},Ae=function(De,pt,ut){var Qt=Ge(pt.width,pt.height,pt.borderColor,ut),yt=document.createElement("div");yt.style.position="relative",yt.style.display="block",yt.style.width=pt.width+"px",yt.style.height=pt.height+"px",yt.className="applet_screenshot applet_scaler"+(ut?" applet_screenshot_play":""),yt.appendChild(Qt);var Ct=GGBAppletUtils.getScale(pt,De,ut);ut?(De.appendChild(Qe()),window.GGBT_wsf_view||(De.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(yt,"66%"),De.appendChild(yt),Ct!==1&&!isNaN(Ct)&&(GGBAppletUtils.scaleElement(yt,Ct),yt.style.width=pt.width+"px",yt.style.height=pt.height+"px",yt.parentNode.style.width=pt.width*Ct+"px",yt.parentNode.style.height=pt.height*Ct+"px"),Mn.resize=function(){de(De,Qt,yt,ut)},window.addEventListener("resize",function(mt){Mn.resize()}),Mn.resize()};function de(De,pt,ut,Qt){if(De.contains(pt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(De.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(De)}var yt=GGBAppletUtils.getScale(E,De,Qt);ut.parentNode!==null&&(!isNaN(yt)&&yt!==1?(GGBAppletUtils.scaleElement(ut,yt),ut.parentNode.style.width=E.width*yt+"px",ut.parentNode.style.height=E.height*yt+"px"):(GGBAppletUtils.scaleElement(ut,1),ut.parentNode.style.width=E.width+"px",ut.parentNode.style.height=E.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(De),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Mn.onExitFullscreen=function(De,pt){pt.appendChild(De)};var wt=function(De,pt,ut,Qt){Ae(De,pt,!0);for(var yt=function(){var dn=[];for(mt=0;mt<De.childNodes.length;mt++)dn.push(De.childNodes[mt]);if(window.GGBT_wsf_view){var Ht=window.GGBT_wsf_view.renderFullScreen(De,pt.id),ue=document.getElementById("fullscreencontainer"),ie=jQuery(De).find(".fullscreencontent");ie.length>0?(Ht.remove(),ie.attr("id","fullscreencontent").show(),jQuery(ue).append(ie),window.dispatchEvent(new Event("resize"))):We(Ht,pt,!1),window.GGBT_wsf_view.launchFullScreen(ue)}else ct=Qt,We(De,pt,!1);if(!window.GGBT_wsf_view)for(mt=0;mt<dn.length;mt++)De.removeChild(dn[mt])},Ct=De.getElementsByClassName("ggb_preview_play"),mt=0;mt<Ct.length;mt++)Ct[mt].addEventListener("click",yt,!1),Ct[mt].addEventListener("ontouchstart",yt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(De),Xe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Qe=function(){var De=document.createElement("div");if(De.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var pt='.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");}',ut=document.createElement("style");ut.styleSheet?ut.styleSheet.cssText=pt:ut.appendChild(document.createTextNode(pt)),document.getElementsByTagName("head")[0].appendChild(ut)}return De},Ge=function(De,pt,ut,Qt){var yt=document.createElement("div");yt.className="ggb_preview",yt.style.position="absolute",yt.style.zIndex="90",yt.style.width=De-2+"px",yt.style.height=pt-2+"px",yt.style.top="0px",yt.style.left="0px",yt.style.overflow="hidden",yt.style.backgroundColor="white";var Ct="lightgrey";ut!==void 0&&(ut==="none"?Ct="transparent":Ct=ut),yt.style.border="1px solid "+Ct;var mt=document.createElement("img");if(mt.style.position="relative",mt.style.zIndex="1000",mt.style.top="-1px",mt.style.left="-1px",Ie!==null&&mt.setAttribute("src",Ie),mt.style.opacity=.7,Pe!==null){var dn,Ht,ue;if(!Qt){dn=document.createElement("img"),dn.style.position="absolute",dn.style.zIndex="1001",dn.style.opacity=1,mt.style.opacity=.3,Ht=360,Ht>De/4*3&&(Ht=De/4*3),ue=Ht/5.8,dn.setAttribute("src",Pe),dn.setAttribute("width",Ht),dn.setAttribute("height",ue);var ie=(De-Ht)/2,re=(pt-ue)/2;dn.style.left=ie+"px",dn.style.top=re+"px",yt.appendChild(dn)}}return yt.appendChild(mt),yt},st=function(De){return De=De.toLowerCase(),De==="html5"||De==="screenshot"?De:"html5"},Ce=["web","webSimple","web3d","tablet","tablet3d","phone"],be=function(De,pt){if(Ke=De,pt){vt(Ke,!0);return}var ut=!ve;if(ut){var Qt=Fe(Ke);!isNaN(Qt)&&Qt<4.4&&(ut=!1)}var yt,Ct;window.location.protocol.substr(0,4)==="http"?yt=window.location.protocol:yt="http:";var mt=Ke.indexOf("//");mt>0?Ct=Ke:mt===0?Ct=yt+Ke:Ct="https://www.geogebra.org/apps/5.2.814.0/";for(var dn in Ce)if(Ke.slice(Ce[dn].length*-1)===Ce[dn]||Ke.slice((Ce[dn].length+1)*-1)===Ce[dn]+"/"){vt(Ct,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&ut&&!y.is3D&&!y.AV&&!y.SV&&!y.CV&&!y.EV2&&!y.CP&&!y.PC&&!y.DA&&!y.FI&&!y.PV&&!Ee(E.showToolBar)&&!Ee(E.showMenuBar)&&!Ee(E.showAlgebraInput)&&!Ee(E.enableRightClick)&&(!E.appName||E.appName=="classic")?Ct+="webSimple/":Ct+="web3d/",vt(Ct,!1)},vt=function(De,pt){if(De.requirejs){$e=De;return}De.slice(-1)!=="/"&&(De+="/"),$e=De,pt===null&&(pt=De.indexOf("http")===-1),Oe=pt,Te="web.nocache.js",we=!1;var ut=$e.split("/");ut.length>1&&(!pt&&ut[ut.length-2]==="webSimple"?(Te="webSimple.nocache.js",we=!0):Ce.indexOf(ut[ut.length-2])>=0&&(Te=ut[ut.length-2]+".nocache.js")),ut=De.split("/"),Ke=ut[ut.length-3],Ke.substr(0,4)==="test"?Ke=Ke.substr(4,1)+"."+Ke.substr(5,1):(Ke.substr(0,3)==="war"||Ke.substr(0,4)==="beta")&&(Ke="5.0");var Qt=parseFloat(Ke);Qt!==NaN&&Qt<5&&De.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Qt+" is deprecated. Using version latest instead."),be("5.0",pt))},zt=function(De,pt){window.console&&window.console.log&&(!pt||typeof pt.showLogging=="undefined"||pt.showLogging&&pt.showLogging!=="false")&&console.log(De)};E.material_id!==void 0?St(jt):jt();function jt(){var De=Yt;ge!==null?De=ge:parseFloat(De)<5&&(De="5.0"),be(De,!1),Se!==null&&vt(Se,Oe),xe=!0}return Mn},GGBAppletUtils=function(){"use strict";function Mn(){return window.GGBT_wsf_edit!==void 0}function Yt(xe,ge){ge!=1?(xe.style.transformOrigin="0% 0% 0px",xe.style.webkitTransformOrigin="0% 0% 0px",xe.style.transform="scale("+ge+","+ge+")",xe.style.webkitTransform="scale("+ge+","+ge+")",xe.style.maxWidth="initial",xe.querySelector(".ggb_preview")!==null&&(xe.querySelector(".ggb_preview").style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(xe.style.transform="none",xe.style.webkitTransform="none")}function E(xe,ge,Se,Ne,Be,fe){var $e=null;if(fe!=null&&fe!="")for(var Oe=xe.parentNode;Oe!=null;)if((" "+Oe.className+" ").indexOf(" "+fe+" ")>-1){$e=Oe;break}else Oe=Oe.parentNode;var ct=0,Ke=0,Te=0,we=0,Ie=0,Pe=0,tt=0;if($e)ct=$e.offsetWidth,Ke=Math.max(Ne?$e.offsetWidth:0,$e.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ct=Math.min(window.innerWidth,document.documentElement.clientWidth),Ke=Math.min(window.innerHeight,document.documentElement.clientHeight),Te=ct):(ct=window.innerWidth,Ke=window.innerHeight,Te=window.innerWidth),xe){var Et=xe.getBoundingClientRect();Et.left>0&&Et.left<=ct&&(Be===void 0||!Be)&&(document.dir==="rtl"?(Ie=ct-Et.width-Et.left,Pe=Te<=480?10:30):(Pe=Et.left,Ie=Te<=480?10:30),we=Pe+Ie)}if(xe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var _e=xe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(we=40,tt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(we=0,tt=40)}}return xe&&((Se===void 0||!Se)&&ge>0&&ge+we<ct?ct=ge:ct-=we,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Se===void 0||!Se)&&(Ke-=tt)),{width:ct,height:Ke}}function y(xe,ge,Se,Ne,Be){if(xe.isScreenshoGenerator)return 1;var fe=Ne!==void 0&&Ne,$e=xe.noScaleMargin!=null&&xe.noScaleMargin,Oe=function(_e){return _e&&_e!=="false"},ct=Oe(xe.autoHeight),Ke=E(ge,xe.width,Se,ct,fe&&window.GGBT_wsf_view||$e,Be),Te=parseInt(Ke.width),we=xe.width,Ie=xe.height;if(we===void 0){var Pe=ge.querySelector(".appletParameters");Pe&&(we=Pe.offsetWidth,Ie=Pe.offsetHeight)}var tt=Te/we,Et=fe?1:Ke.height/Ie;return Se!==void 0&&!Se&&(tt=Math.min(1,tt),Et=Math.min(1,Et)),Math.min(tt,Et)}function ve(xe,ge,Se){var Ne=1,Be,fe=!1;if(xe.hasOwnProperty("allowUpscale")&&(fe=xe.allowUpscale),xe.hasOwnProperty("scale")&&(Ne=parseFloat(xe.scale),(isNaN(Ne)||Ne===null||Ne===0)&&(Ne=1),Ne>1&&(fe=!0)),ge&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(fe=!0),!(xe.hasOwnProperty("disableAutoScale")&&xe.disableAutoScale))Be=y(xe,ge,fe,Se,xe.scaleContainerClass);else return Ne;return fe&&(!xe.hasOwnProperty("scale")||Ne===1)?Be:Math.min(Ne,Be)}function ce(xe){var ge=Math.min(window.innerWidth,document.documentElement.clientWidth),Se=Math.min(window.innerHeight,document.documentElement.clientHeight),Ne=xe.getBoundingClientRect(),Be=(ge-Ne.width)/2,fe=(Se-Ne.height)/2;fe<0&&(fe=0),xe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Be<40?xe.style.left="40px":xe.style.left=Be+"px",xe.style.top=fe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(fe<40?xe.style.top="40px":xe.style.top=fe+"px",xe.style.left=Be+"px")}function Le(xe,ge){var Se=xe.querySelector(".appletParameters");if(Se){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ge.id!==Se.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(xe)}if(Se.parentElement&&/fullscreen/.test(Se.parentElement.className))return;var Ne=ve(ge,xe);Mn()&&Se.setAttribute("data-param-scale",Ne);for(var Be=null,fe=0;fe<xe.childNodes.length;fe++)if(xe.childNodes[fe].className!==void 0&&xe.childNodes[fe].className.match(/^applet_scaler/)){Be=xe.childNodes[fe];break}if(Be!==null&&Be.querySelector(".noscale")!==null)return;var $e=ge.id!==void 0?ge.id:"ggbApplet",Oe=window[$e];(Oe==null||!Oe.recalculateEnvironments)&&Be!==null&&!Be.className.match(/fullscreen/)&&(Be.parentNode.style.transform="",!isNaN(Ne)&&Ne!==1?(Be.parentNode.style.width=ge.width*Ne+"px",Be.parentNode.style.height=ge.height*Ne+"px",Yt(Be,Ne)):(Yt(Be,1),Be.parentNode.style.width=ge.width+"px",Be.parentNode.style.height=ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&ce(xe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Se).parents(".content-added-content"))}}return{responsiveResize:Le,isFlexibleWorksheetEditor:Mn,positionCenter:ce,getScale:ve,scaleElement:Yt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Mn=n.location.search;return Mn.indexOf(J)!=-1||Mn.indexOf(K)!=-1}function q(Mn,Yt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Mn){var Yt=s[L].bindings;s[L].bindings=function(){for(var E=Yt?Yt():{},y=Mn[webModule.__softPermutationId],ve=O;ve<y.length;ve++){var ce=y[ve];E[ce[O]]=ce[P]}return E}};var t;function u(){return v(),t}function v(){if(!t){var Mn=o.createElement(Q);if(Mn.id=L,Mn.style.cssText=R+S,Mn.tabIndex=-1,o.body.appendChild(Mn),t=Mn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Yt=document.compatMode==U?V:W;t.write(Yt+X),t.close()}}}function w(Mn){function Yt(y){function ve(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ce=ve();if(ce){y();return}function Le(){if(!ce){if(!ve())return;ce=!0,y(),o.removeEventListener&&o.removeEventListener(Z,Le,!1),xe&&clearInterval(xe)}}o.addEventListener&&o.addEventListener(Z,Le,!1);var xe=setInterval(function(){Le()},$)}function E(y){var ve=u(),ce=ve.body,Le=ve.createElement(_);Le.language=ab,Le.crossOrigin=W,Le.src=y,webModule.__errFn&&(Le.onerror=function(){webModule.__errFn(L,new Error(bb+y))}),ce.appendChild(Le)}Yt(function(){E(Mn)})}webModule.__startLoadingFragment=function(Mn){return C(Mn)},webModule.__installRunAsyncCode=function(Mn){var Yt=u(),E=Yt.body,y=Yt.createElement(_);y.language=ab,y.text=Mn,E.appendChild(y),E.removeChild(y)};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(Mn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Mn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Mn){var Yt=c[Mn];return Yt==null?null:Yt},r=d,webModule.__errFn=e}function B(){function Mn(xe){var ge=xe.lastIndexOf(rb);ge==-1&&(ge=xe.length);var Se=xe.indexOf(sb);Se==-1&&(Se=xe.length);var Ne=xe.lastIndexOf(tb,Math.min(Se,ge));return Ne>=O?xe.substring(O,Ne+P):W}function Yt(xe){if(!xe.match(/^\w+:\/\//)){var ge=o.createElement(ub);ge.src=xe+vb,xe=Mn(ge.src)}return xe}function E(){var xe=__gwt_getMetaProperty(wb);return xe!=null?xe:W}function y(){for(var xe=o.getElementsByTagName(_),ge=O;ge<xe.length;++ge)if(xe[ge].src.indexOf(xb)!=-1)return Mn(xe[ge].src);return W}function ve(){var xe=o.getElementsByTagName(yb);return xe.length>O?xe[xe.length-P].href:W}function ce(){var xe=o.location;return xe.href==xe.protocol+zb+xe.host+xe.pathname+xe.search+xe.hash}var Le=E();return Le==W&&(Le=y()),Le==W&&(Le=ve()),Le==W&&ce()&&(Le=Mn(o.location.href)),Le=Yt(Le),Le}function C(Mn){return Mn.match(/^\//)||Mn.match(/^[a-zA-Z]+:\/\//)?Mn:webModule.__moduleBase+Mn}function D(){var Mn=[],Yt=O,E=[],y=[];function ve(xe){var ge=y[xe](),Se=E[xe];if(ge in Se)return ge;var Ne=[];for(var Be in Se)Ne[Se[Be]]=Be;throw r&&r(xe,Ne,ge),null}if(__gwt_isKnownPropertyValue=function(xe,ge){return ge in E[xe]},webModule.__getPropMap=function(){var xe={};for(var ge in E)E.hasOwnProperty(ge)&&(xe[ge]=ve(ge));return xe},webModule.__computePropValue=ve,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ce;try{ce=Cb;var Le=ce.indexOf(Db);Le!=-1&&(Yt=parseInt(ce.substring(Le+P),$),ce=ce.substring(O,Le))}catch(xe){}return webModule.__softPermutationId=Yt,C(ce+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},28735:function(Mn,Yt,E){"use strict";E.d(Yt,{Ax:function(){return Le},Ds:function(){return xe},KI:function(){return Se},SI:function(){return ce},f1:function(){return ve}});var y=E(74128);function ve(Ne){let Be=!0;if(Ne.length>0){for(let fe=0;fe<Ne.length;fe++)if(Ne[fe].compile_success==0||!Ne[fe].compile_success){Be=!1;break}}else Be=!1;return Be}function ce(Ne,Be=""){let fe=[];for(let $e=0;$e<Ne.length;$e++){let Oe=Ne[$e],ct=Be?`${Be}/${Oe.name}`:`${Oe.name}`;fe.push({title:Oe.name,type:Oe.type,isLeaf:Oe.type!=="tree",key:ct})}return fe}function Le(Ne,Be,fe){for(let $e=0;$e<Ne.length;$e++){let Oe=Ne[$e];if(Oe.key===Be){Oe.children=fe;break}Oe.children&&Le(Oe.children,Be,fe)}return Ne}function xe(Ne,Be,fe){let $e;return function(){let Oe=this,ct=arguments,Ke=function(){$e=null,fe||Ne.apply(Oe,ct)},Te=fe&&!$e;clearTimeout($e),$e=setTimeout(Ke,Be),Te&&Ne.apply(Oe,ct)}}const ge=!0,Se=y.Z.API_SERVER},96935:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Ke}});var y=E(7939),ve=E(59301),ce=Object.defineProperty,Le=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,Be=(Te,we,Ie)=>we in Te?ce(Te,we,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):Te[we]=Ie,fe=(Te,we)=>{for(var Ie in we||(we={}))Se.call(we,Ie)&&Be(Te,Ie,we[Ie]);if(ge)for(var Ie of ge(we))Ne.call(we,Ie)&&Be(Te,Ie,we[Ie]);return Te},$e=(Te,we)=>Le(Te,xe(we)),Oe=(Te,we)=>{var Ie={};for(var Pe in Te)Se.call(Te,Pe)&&we.indexOf(Pe)<0&&(Ie[Pe]=Te[Pe]);if(Te!=null&&ge)for(var Pe of ge(Te))we.indexOf(Pe)<0&&Ne.call(Te,Pe)&&(Ie[Pe]=Te[Pe]);return Ie},ct=(Te,we,Ie)=>new Promise((Pe,tt)=>{var Et=He=>{try{Fe(Ie.next(He))}catch(Xe){tt(Xe)}},_e=He=>{try{Fe(Ie.throw(He))}catch(Xe){tt(Xe)}},Fe=He=>He.done?Pe(He.value):Promise.resolve(He.value).then(Et,_e);Fe((Ie=Ie.apply(Te,we)).next())});const Ke=Te=>{var we=Te,{children:Ie}=we,Pe=Oe(we,["children"]);const[tt,Et]=(0,ve.useState)(!1);return ve.createElement(y.ZP,$e(fe({},Pe),{loading:tt,onClick:_e=>ct(void 0,null,function*(){try{Et(!0),yield Pe.onClick(_e),Et(!1)}catch(Fe){console.error(Fe),Et(!1)}})}),Ie)}},71067:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return ct}});var y=E(59301),ve=E(6767),ce=E(37568),Le={codeBox:"codeBox___WpkVl"},xe=E(92310),ge=E.n(xe),Se=Object.defineProperty,Ne=(Ke,Te,we)=>Te in Ke?Se(Ke,Te,{enumerable:!0,configurable:!0,writable:!0,value:we}):Ke[Te]=we,Be=(Ke,Te,we)=>Ne(Ke,typeof Te!="symbol"?Te+"":Te,we),fe=(Ke,Te,we)=>new Promise((Ie,Pe)=>{var tt=Fe=>{try{_e(we.next(Fe))}catch(He){Pe(He)}},Et=Fe=>{try{_e(we.throw(Fe))}catch(He){Pe(He)}},_e=Fe=>Fe.done?Ie(Fe.value):Promise.resolve(Fe.value).then(tt,Et);_e((we=we.apply(Ke,Te)).next())});class $e extends y.Component{constructor(Te){super(Te),Be(this,"canvas"),Be(this,"randomNum",(we,Ie)=>Math.floor(Math.random()*(Ie-we)+we)),Be(this,"drawPic",()=>{this.randomCode()}),Be(this,"reloadPic",()=>{this.drawPic()}),Be(this,"changeCode",we=>{console.log(we.target.value,222),this.setState({value:we.target.value,showError:!1})}),Be(this,"onVerify",()=>{let we;return this.state.value.toLowerCase()!==""&&this.state.value.toLowerCase()!==this.state.code.toLowerCase()?(we=!0,ve.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801"),this.reloadPic()):this.state.value.toLowerCase()===""?(we=!0,ve.ZP.error("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801")):this.state.value.toLowerCase()===this.state.code.toLowerCase()&&(we=!1),this.setState({showError:we}),we}),this.canvas=y.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(Te,we){const Ie=this.randomNum(Te,we),Pe=this.randomNum(Te,we),tt=this.randomNum(Te,we);return`rgb(${Ie}, ${Pe}, ${tt})`}drawText(Te,we,Ie){Te.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);const Pe=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);Te.font=Pe+"px SimHei";const tt=10,Et=(this.state.contentWidth-40)/(this.state.code.length-1);let _e=tt;Ie>0&&(_e=tt+Ie*Et);let Fe=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);Pe>40&&(Fe=40);const He=this.randomNum(-10,10);Te.translate(_e,Fe),Te.rotate(He*Math.PI/180),Te.fillText(we,0,0),Te.rotate(-He*Math.PI/180),Te.translate(-_e,-Fe)}drawLine(Te){for(let we=0;we<1;we++)Te.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),Te.beginPath(),Te.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),Te.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),Te.stroke()}drawDot(Te){for(let we=0;we<100;we++)Te.fillStyle=this.randomColor(0,255),Te.beginPath(),Te.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),Te.fill()}randomCode(){let Te="";const we="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890";for(let Ie=0;Ie<this.state.codeLength;Ie++){const Pe=Math.floor(Math.random()*57);Te+=we[Pe]}this.setState({code:Te},()=>{const Pe=this.canvas.current.getContext("2d");Pe.textBaseline="bottom",Pe.fillStyle=this.randomColor(this.state.backgroundColorMin,this.state.backgroundColorMax),Pe.fillRect(0,0,this.state.contentWidth,this.state.contentHeight);for(let tt=0;tt<this.state.code.length;tt++)this.drawText(Pe,this.state.code[tt],tt);this.drawLine(Pe),this.drawDot(Pe)})}render(){const{className:Te,width:we=300}=this.props;return y.createElement("div",{className:ge()(Le.codeBox,Te),style:{width:we}},y.createElement("aside",null,y.createElement(ce.default,{value:this.state.value,onChange:this.changeCode,placeholder:"\u8BF7\u8F93\u5165\u56FE\u7247\u4E2D\u7684\u9A8C\u8BC1\u7801"})),y.createElement("div",null,y.createElement("canvas",{onClick:this.reloadPic,ref:this.canvas,width:"100",height:"30"}),y.createElement("div",{className:"current",onClick:this.reloadPic},"\u770B\u4E0D\u6E05\uFF1F\u6362\u4E00\u5F20")))}}const Oe=(Ke,Te)=>{let we;Modal.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:React.createElement("div",null,React.createElement("p",null,Te),React.createElement($e,{ref:Ie=>we=Ie})),onOk:()=>fe(void 0,null,function*(){if(we.onVerify())return Promise.reject();Ke()})})};var ct=$e},20633:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Be}});var y=E(59301),ve=E(37568),ce=E(96599),Le=E(6767),xe={flex:"flex___eLcnP",flex1:"flex1___yUTT7",color666:"color666___TiUhG",error:"error___gTTtv",deleteIcon:"deleteIcon___mnZW1",addIcon:"addIcon___JC5NS"},ge=E(62772);const{TextArea:Se}=ve.default;class Ne extends y.Component{constructor($e){super($e),this.state={inputVisible:!1,EditInputIndex:-1}}render(){let{index:$e,onAnswerChange:Oe,addChildAnswer:ct,exerciseIsPublish:Ke,answers:Te,activeOptionErrorIndex:we,flex:Ie="0 0 1000px"}=this.props;console.log("----",Te);let{inputVisible:Pe,EditInputIndex:tt}=this.state;return y.createElement("div",{className:xe.flex},y.createElement("div",{className:`${xe.color666} mb5 mt6`,style:{flex:"0 0 90px"}},"\u7B54\u6848(\u586B\u7A7A",$e+1,"):"),y.createElement("div",{style:{border:"1px solid #f6f6f6",flex:1,padding:10}},Te==null?void 0:Te.map((Et,_e)=>y.createElement(y.Fragment,null,tt!==_e?(Et==null?void 0:Et.length)>0?y.createElement(ce.default,{className:"edit-tag",key:Et,closable:!($e===0&&_e===0),onClose:Fe=>{Fe.preventDefault(),(Te==null?void 0:Te.length)===1&&_e===0?this.props.deleteChildAnswermain($e,_e):this.props.deleteChildAnswer($e,_e)}},y.createElement("span",{onDoubleClick:Fe=>{this.setState({EditInputIndex:_e}),Fe.preventDefault()}},Et)):y.createElement(ve.default,{defaultValue:Et,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:Fe=>{if(Fe.target.value.replaceAll(" ","").length<=0){Le.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Oe($e,_e,Fe.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}):y.createElement(ve.default,{defaultValue:Et,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:Fe=>{if(Fe.target.value.replaceAll(" ","").length<=0){Le.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Oe($e,_e,Fe.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}))),!Pe&&y.createElement(ce.default,{className:"site-tag-plus",onClick:()=>{ct($e),this.setState({inputVisible:!0})}},y.createElement(ge.Z,null)," \u65B0\u589E\u7B54\u6848")))}}var Be=Ne},19471:function(Mn,Yt,E){"use strict";E.d(Yt,{d4:function(){return ct},VP:function(){return Be}});var y=E(59301),ve={digitalLabel:"digitalLabel___hkWuZ",active:"active___jawU1",titleEditor:"titleEditor___wX1lW",title:"title___SuT2h",editIcon:"editIcon___XrTIi",paperTab:"paperTab___GUxeB",tabItem:"tabItem___or0fY",dottedLine:"dottedLine___Ln0Xr"};const ce=({number:Ke,active:Te,className:we})=>y.createElement("div",{className:`${ve.digitalLabel} ${Te?ve.active:""} ${we}`},Ke);var Le=E(25399),xe=E(37568),ge=E(6767),Se=E(59301),Ne=(Ke,Te,we)=>new Promise((Ie,Pe)=>{var tt=Fe=>{try{_e(we.next(Fe))}catch(He){Pe(He)}},Et=Fe=>{try{_e(we.throw(Fe))}catch(He){Pe(He)}},_e=Fe=>Fe.done?Ie(Fe.value):Promise.resolve(Fe.value).then(tt,Et);_e((we=we.apply(Ke,Te)).next())});const Be=({defaultValue:Ke,onFinish:Te})=>{const[we,Ie]=(0,y.useState)(!1),[Pe,tt]=(0,y.useState)(Ke);return(0,y.useEffect)(()=>{tt(Ke)},[Ke]),Se.createElement("div",{className:ve.titleEditor},we?Se.createElement(xe.default,{autoFocus:!0,maxLength:60,style:{textAlign:"center",marginTop:20,marginBottom:20},value:Pe,onChange:Et=>{tt(Et.target.value)},onBlur:()=>Ne(void 0,null,function*(){var Et;if(((Et=Pe==null?void 0:Pe.replaceAll(" ",""))==null?void 0:Et.length)<=0){ge.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield Te(Pe))&&Ie(!1)}),onPressEnter:()=>Ne(void 0,null,function*(){var Et;if(((Et=Pe==null?void 0:Pe.replaceAll(" ",""))==null?void 0:Et.length)<=0){ge.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield Te(Pe))&&Ie(!1)})}):Se.createElement("div",{className:ve.title,onDoubleClick:()=>Ie(!0)},Pe,Se.createElement(Le.Z,{title:"\u7F16\u8F91\u8BD5\u5377\u540D\u79F0"},Se.createElement("i",{className:`${ve.editIcon} iconfont icon-bianji_Hover`,onClick:()=>Ie(!0)}))))};var fe=E(77019),$e=E(5269),Oe=(Ke,Te,we)=>new Promise((Ie,Pe)=>{var tt=Fe=>{try{_e(we.next(Fe))}catch(He){Pe(He)}},Et=Fe=>{try{_e(we.throw(Fe))}catch(He){Pe(He)}},_e=Fe=>Fe.done?Ie(Fe.value):Promise.resolve(Fe.value).then(tt,Et);_e((we=we.apply(Ke,Te)).next())});const ct=({onChange:Ke=()=>Oe(void 0,null,function*(){}),tabs:Te,activeKey:we,defaultActiveKey:Ie,className:Pe=""})=>{var tt,Et,_e,Fe,He,Xe,St;const[gt,ot]=(0,y.useState)(Ie===void 0?(tt=Te[0])==null?void 0:tt.key:Ie);return(0,y.useEffect)(()=>{we!==void 0&&ot(we)},[we]),y.createElement(fe.Z,{justify:"center",align:"middle",className:`${ve.paperTab} ${Pe}`},y.createElement($e.Z,{className:`${ve.tabItem} ${gt===((Et=Te[0])==null?void 0:Et.key)?ve.active:""}`,onClick:()=>Oe(void 0,null,function*(){var Ue;yield Ke(Te[0].key),ot((Ue=Te[0])==null?void 0:Ue.key)})},y.createElement(ce,{number:1,active:gt===((_e=Te[0])==null?void 0:_e.key),className:"mr10"}),y.createElement("span",null,(Fe=Te[0])==null?void 0:Fe.label)),y.createElement($e.Z,{flex:"188px",className:`${ve.dottedLine} ml30 mr30`}),y.createElement($e.Z,{className:`${ve.tabItem} ${gt===((He=Te[1])==null?void 0:He.key)?ve.active:""}`,onClick:()=>Oe(void 0,null,function*(){var Ue,Ee;yield Ke((Ue=Te[1])==null?void 0:Ue.key),ot((Ee=Te[1])==null?void 0:Ee.key)})},y.createElement(ce,{number:2,active:gt===((Xe=Te[1])==null?void 0:Xe.key),className:"mr10"}),y.createElement("span",null,(St=Te[1])==null?void 0:St.label)))}},90463:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return ge}});var y=E(37639),ve={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},ce=E(32637),Le=E(59301),ge=({type:Se,style:Ne})=>{const Be=Le.createElement("div",{className:ve.wrap,onClick:fe=>{fe.preventDefault(),fe.stopPropagation()}},Le.createElement("p",null,Se==="shixun"||Se==="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",Le.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",Se==="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"),Le.createElement("div",{className:ve.contact},Le.createElement("div",{className:ve.img},Le.createElement("img",{src:ce,width:"124px",height:"124px"})),Le.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return Le.createElement(y.Z,{content:Be},Le.createElement("span",{className:ve.text,style:Ne},"\u9AD8\u6D88\u8017"))}},16750:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return $e}});var y=E(59301),ve={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ce=E(92310),Le=E.n(ce),xe=E(29787),ge=E(2859),Se=E(38147),Ne=E(65862),Be=(Oe,ct,Ke)=>new Promise((Te,we)=>{var Ie=Et=>{try{tt(Ke.next(Et))}catch(_e){we(_e)}},Pe=Et=>{try{tt(Ke.throw(Et))}catch(_e){we(_e)}},tt=Et=>Et.done?Te(Et.value):Promise.resolve(Et.value).then(Ie,Pe);tt((Ke=Ke.apply(Oe,ct)).next())}),$e=({data:Oe,className:ct,fullWidth:Ke,style:Te={},onClose:we,onOk:Ie,showFullTools:Pe,noAssociationId:tt})=>{const Et=(0,y.useRef)(null),_e=(0,y.useRef)(null),Fe=(0,y.useRef)(null),He=(0,y.useRef)(null),[Xe,St]=(0,y.useState)(!1),[gt,ot]=(0,y.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,y.useEffect)(()=>(Fe.current||(Fe.current=document.createElement("style"),document.head.appendChild(Fe.current)),Oe!=null&&Oe.visible?(document.body.setAttribute("data-custom","y-hidden"),Fe.current.innerHTML=" html { overflow-y: hidden; }",Oe!=null&&Oe.src&&Ue()):(document.body.removeAttribute("data-custom"),Fe.current&&(document.head.removeChild(Fe.current),Fe.current=null)),()=>{document.body.removeAttribute("data-custom"),Fe.current&&(document.head.removeChild(Fe.current),Fe.current=null)}),[Oe==null?void 0:Oe.visible]);const Ue=()=>Be(void 0,null,function*(){St(!0),ot("\u6B63\u5728\u52A0\u8F7D\u4E2D");const de=yield(0,Ne.ZJ)(Oe==null?void 0:Oe.src);Et.current.src="",Et.current.src=de,Et.current.onload=function(){Ae()},St(!1),ot("")}),Ee=de=>Be(void 0,null,function*(){St(!0),ot("\u6B63\u5728\u4FDD\u5B58\u4E2D");const wt=yield(0,Se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Oe.title,file:de.dataUrl}});wt!=null&&wt.id&&!tt?(yield(0,Se.ZP)(`/api/attachments/${Oe.id}/add_subitem.json`,{method:"post",body:{subitem_id:wt==null?void 0:wt.id,settings:JSON.stringify(de.state)}})).status===0&&Ie():wt!=null&&wt.id&&Ie(wt),St(!1),ot("")}),We=()=>{const de=document.querySelector('a[href="https://markerjs.com/"]');de&&de.parentNode&&(de.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 Ge=document.querySelector(Qe.name);Ge&&Ge.setAttribute("title",Qe.title)})},Ae=()=>{_e.current=new ge.hP(Et.current),_e.current.targetRoot=He.current,_e.current.addEventListener("render",Ee),_e.current.addEventListener("beforeclose",we),Pe&&(_e.current.availableMarkerTypes=_e.current.ALL_MARKER_TYPES,_e.current.uiStyleSettings.redoButtonVisible=!0,_e.current.uiStyleSettings.notesButtonVisible=!0,_e.current.uiStyleSettings.zoomButtonVisible=!0,_e.current.uiStyleSettings.zoomOutButtonVisible=!0,_e.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=_e.current.uiStyleSettings,_e.current.show(),Oe!=null&&Oe.snapshotData&&_e.current.restoreState(Oe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),We()},300)};return y.createElement(y.Fragment,null,(Oe==null?void 0:Oe.visible)&&y.createElement(xe.Z,{spinning:Xe,tip:gt,style:{position:"absolute",width:"100vw"}},y.createElement("div",{ref:He,className:Le()(ve.imageDimensions,ct,Ke?ve.fullWidth:""),style:Te},y.createElement("img",{className:ve.img,ref:Et}))))}},27687:function(Mn,Yt,E){"use strict";var y=E(59301),ve=E(96408),ce=E(48136),Le=E(99298),xe=E(62957),ge=E(59301);const Se=(0,y.forwardRef)(({callback:Ne,width:Be,onChange:fe,disabled:$e,readOnly:Oe,type:ct="",value:Ke="",style:Te={}},we)=>{const Ie=(0,y.useRef)(),Pe=(0,y.useRef)(),[tt,Et]=(0,y.useState)(0),[_e,Fe]=(0,y.useState)(0),[He,Xe]=(0,y.useState)(!1),St=()=>{var Ee=document.createElement("div");Ee.innerHTML=Ie.current.getValue();var We=Ee.innerText;return Ne&&Ne(We),We};(0,y.useImperativeHandle)(we,()=>({getData:St}));const gt=Ee=>{Ee.preventDefault();const We=Ee.clientX-tt,Ae=Ee.clientY-_e;document.body.onmousemove=de=>{let wt=de.clientX-We,Qe=de.clientY-Ae;const Ge=document.getElementsByClassName("markdown-popup-form")[0],st=window.innerWidth-Ge.offsetWidth,Ce=window.innerHeight-Ge.offsetHeight;wt=Math.max(0,Math.min(wt,st)),Qe=Math.max(0,Math.min(Qe,Ce)),ot(de.clientX,de.clientY,We,Ae)&&(Et(wt),Fe(Qe))},document.body.onmouseup=function(){document.body.onmousemove=null}},ot=(Ee,We,Ae,de)=>{const wt=document.body.clientHeight,Qe=document.body.clientWidth;return Ee<20&&Ae>Ee||Ee>Qe-20&&Ae<Ee||We<20&&de>We||We>wt-20&&de<We?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,y.useEffect)(()=>{He&&setTimeout(()=>{const Ee=document.getElementsByClassName("markdown-popup-form")[0],We=window.innerWidth/2-Ee.offsetWidth/2,Ae=window.innerHeight/2-Ee.offsetHeight/2;Et(We),Fe(Ae)},0)},[He]);const Ue=()=>{$e||Oe||Xe(!0)};return ge.createElement("div",{style:Te},ge.createElement("div",{style:{width:Be||"100%",position:"relative"},className:`${ve.Z.mathFillWrap} ${$e||Oe?"cursorDefault":""}`,onClick:()=>Ue()},ge.createElement("math-field",{disabled:$e,locale:"zh_cn",class:`${ve.Z.mathField} ${ct}`,readOnly:Oe,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:Ie,style:{width:"100%",fontSize:Ke?18:14},value:Ke||""})),ge.createElement(xe.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:tt,top:_e},title:ge.createElement("div",{style:{cursor:"move"},onMouseDown:gt},"\u8F93\u5165\u516C\u5F0F"),open:He,onOk:()=>{const Ee=Pe.current.getData();Ie.current.setValue(Ee),fe(Ee),Xe(!1)},onCancel:()=>{Xe(!1)},destroyOnClose:!0,className:"markdown-popup-form"},ge.createElement(Le.Z,{value:Ke,ref:Pe,onChange:fe,showSaveButton:!1})))});Yt.Z=Se},99298:function(Mn,Yt,E){"use strict";var y=E(59301),ve=E(77019),ce=E(5269),Le=E(31691),xe=E(7939),ge=E(95097),Se=E(96408),Ne=E(48136),Be=E(59301);const fe=(0,y.forwardRef)(({callback:$e,showSaveButton:Oe,value:ct=""},Ke)=>{const Te=(0,y.useRef)(),we=[{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 "}]}]}],Ie=[{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}`}]}]}],Pe=_e=>{Te.current.setValue(Te.current.getValue()+" "+_e.value+" ")},tt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Be.createElement(ve.Z,{className:Se.Z.lists,gutter:[10,10]},we.map((_e,Fe)=>Be.createElement(ce.Z,{flex:"110px",className:Se.Z.item},Be.createElement("div",null,Be.createElement(ge.Z,{value:`$$${_e.value}$$`}),_e.name),Be.createElement("div",{className:Se.Z.children},_e.children.map((He,Xe)=>Be.createElement("div",{key:Xe},Be.createElement("h1",null,He.name),Be.createElement(ve.Z,{gutter:[10,10]},He.data.map((St,gt)=>Be.createElement(ce.Z,{key:gt,onClick:()=>Pe(St),className:Se.Z.diamond},Be.createElement(ge.Z,{value:"`$$"+St.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Be.createElement(ve.Z,{className:Se.Z.lists,gutter:[10,10]},Ie.map((_e,Fe)=>Be.createElement(ce.Z,{flex:"110px",className:Se.Z.item},Be.createElement("div",null,Be.createElement(ge.Z,{value:"`$$"+_e.value+"$$`"}),_e.name),Be.createElement("div",{className:Se.Z.children},_e.children.map((He,Xe)=>Be.createElement("div",{key:Xe},He.name&&Be.createElement("h1",null,He.name),Be.createElement(ve.Z,{gutter:[10,10]},He.data.map((St,gt)=>Be.createElement(ce.Z,{key:gt,onClick:()=>Pe(St),className:Se.Z.diamond},Be.createElement(ge.Z,{value:"`$$"+St.value+"$$`"}))))))))))}],Et=()=>{var _e=document.createElement("div");_e.innerHTML=Te.current.getValue();var Fe=_e.innerText;return $e&&$e(Fe),Fe};return(0,y.useImperativeHandle)(Ke,()=>({getData:Et})),Be.createElement("div",{className:Se.Z.mathWrap},Be.createElement(Le.default,{defaultActiveKey:"1",items:tt}),Be.createElement("math-field",{locale:"zh_cn",className:Se.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Te,style:{width:800,marginTop:30,fontSize:18}},ct||""),Oe&&Be.createElement("div",{className:Se.Z.button},Be.createElement(xe.ZP,{size:"large",onClick:Et,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Yt.Z=fe},2524:function(Mn,Yt,E){"use strict";var y=E(59301),ve=E(93314),ce=E(7939),Le=Object.defineProperty,xe=Object.defineProperties,ge=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,fe=(Ke,Te,we)=>Te in Ke?Le(Ke,Te,{enumerable:!0,configurable:!0,writable:!0,value:we}):Ke[Te]=we,$e=(Ke,Te)=>{for(var we in Te||(Te={}))Ne.call(Te,we)&&fe(Ke,we,Te[we]);if(Se)for(var we of Se(Te))Be.call(Te,we)&&fe(Ke,we,Te[we]);return Ke},Oe=(Ke,Te)=>xe(Ke,ge(Te));const ct=({img:Ke,buttonProps:Te={},styles:we={},customText:Ie,ButtonText:Pe,ButtonClick:tt,Buttonclass:Et,ButtonTwo:_e,imgStyles:Fe,loading:He=!1,className:Xe=""})=>y.createElement("section",{className:`tc animated fadeIn ${Xe}`,style:$e({color:"#999",margin:"100px auto",visibility:He?"hidden":"visible"},we)},y.createElement("img",{src:Ke||ve,style:Oe($e({},Fe),{pointerEvents:"none",userSelect:"none"})}),y.createElement("p",{className:"mt20 font14"},Ie||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),Pe&&y.createElement(ce.ZP,$e({className:Et,onClick:tt},Te),Pe),_e&&_e);Yt.Z=ct},52918:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Et}});var y=E(59301),ve={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},ce=E(7939),Le=E(70557),xe=E(50258),ge=E(25399),Se=E(65862),Ne=E(87513),Be=E(2524),fe=E(74128),$e=E(7310),Oe=E(59301),ct=Object.defineProperty,Ke=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,Ie=(_e,Fe,He)=>Fe in _e?ct(_e,Fe,{enumerable:!0,configurable:!0,writable:!0,value:He}):_e[Fe]=He,Pe=(_e,Fe)=>{for(var He in Fe||(Fe={}))Te.call(Fe,He)&&Ie(_e,He,Fe[He]);if(Ke)for(var He of Ke(Fe))we.call(Fe,He)&&Ie(_e,He,Fe[He]);return _e},tt=(_e,Fe,He)=>new Promise((Xe,St)=>{var gt=Ee=>{try{Ue(He.next(Ee))}catch(We){St(We)}},ot=Ee=>{try{Ue(He.throw(Ee))}catch(We){St(We)}},Ue=Ee=>Ee.done?Xe(Ee.value):Promise.resolve(Ee.value).then(gt,ot);Ue((He=He.apply(_e,Fe)).next())}),Et=({editOffice:_e="view",data:Fe,issaver:He,onSaver:Xe,theme:St,type:gt,filename:ot,monacoEditor:Ue,className:Ee,style:We,close:Ae,onClose:de,hasMask:wt,disabledDownload:Qe,onImgDimensions:Ge,showNodata:st,recordInfo:Ce})=>{const[be,vt]=(0,y.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[zt,jt]=(0,y.useState)(""),[De,pt]=(0,y.useState)(),ut=window.ENV==="build"?"/react/build":"",Qt=location.host.startsWith("localhost")?fe.Z.PROXY_SERVER:fe.Z.API_SERVER,Ct=10*(1024*1024),mt=(0,y.useRef)();Fe!=null&&Fe.startsWith("/api")&>!=="txt"&&(Fe=fe.Z.API_SERVER+Fe);const dn=oe=>oe.substring(oe.lastIndexOf("/")+1).split(".").pop();ot&&Ue&&(Ue.filename=ot),(0,y.useEffect)(()=>{var oe,pe;const ae=(pe=(oe=document.cookie)==null?void 0:oe.replace(/\s/g,""))==null?void 0:pe.split(";");ae==null||ae.map(me=>{let Ze=me.split("=");Ze[0]==="_educoder_session"&&jt(Ze[1])})},[]),(0,y.useEffect)(()=>{gt==="office"&&(Fe.indexOf("bigfilescdn.")>-1||Fe.indexOf("bigfiles1")>-1?pt({url:Fe,fileType:dn(Fe),model:Fe.indexOf("model=edit")?"edit":"view"}):ue())},[gt,Fe]);function Ht(oe){return tt(this,null,function*(){oe.data.type==="pdfdata"&&(Xe(oe.data.data),window.removeEventListener("message",Ht,!1)),console.log("mess---:",oe.data)})}const ue=()=>tt(void 0,null,function*(){console.log("data:",Fe);let oe=Fe;Fe.startsWith("http")||(oe=location.origin+oe);let pe=new URL(oe).pathname.split("/").pop();const ae=yield(0,Ne.gJ)({attachment_id:pe});ae.url=Qt+ae.url,pt(ae)}),ie=()=>{if(Fe.startsWith("http")||Fe.startsWith("blob:")){re();return}(0,Se.Sv)(ot||"educoder",Fe,ot)},re=()=>{Ce&&(0,$e.fc)({id:Ce==null?void 0:Ce.id,watch_type:1,course_id:Ce==null?void 0:Ce.course_id}),(0,Se.Nd)(ot||"educoder",decodeURIComponent(Fe))};return Oe.createElement("div",{style:Pe({},We||{}),className:`${wt&&ve.bgBlack} ${gt?ve.wrp:"hide"}`},Ae&&Oe.createElement("div",{className:ve.close,ref:mt},!!Ge&&Oe.createElement(ge.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>mt.current},Oe.createElement("span",{onClick:()=>{de(),Ge()}},Oe.createElement("i",{className:"icon-yulanpizhu"}))),!Qe&&Oe.createElement(ge.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>mt.current},Oe.createElement("span",{onClick:re},Oe.createElement("i",{className:"icon-quxiaozhiding"}))),He&&Oe.createElement(ge.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>mt.current},Oe.createElement("span",{className:"",onClick:()=>{const oe=document.getElementById("pdfiframe");window.addEventListener("message",Ht,!1),setTimeout(()=>{oe.contentWindow.postMessage("getData","*")},300)}},Oe.createElement("i",{className:"icon-baocun"}))),Oe.createElement(ge.Z,{title:"\u5173\u95ED",getPopupContainer:()=>mt.current},Oe.createElement("span",{className:"",onClick:()=>{de()}},Oe.createElement("i",{className:"icon-guanbi1"})))),Oe.createElement("div",{className:`${ve[Ee]} ${Ee} ${ve.monaco} ${gt==="txt"?"show":"hide"}`},gt==="txt"&&Oe.createElement(Oe.Fragment,null,Oe.createElement(xe.ZP,Pe({},Ue)))),gt==="audio"&&Oe.createElement("audio",{src:`${(Fe==null?void 0:Fe.indexOf("http://"))>-1||(Fe==null?void 0:Fe.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Fe}`,autoPlay:!0}),gt==="video"&&Oe.createElement(Oe.Fragment,null,(Fe==null?void 0:Fe.indexOf("http"))>-1?Oe.createElement("video",{controls:!0,src:`${Fe}`,autoPlay:!0}):Oe.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Fe}`,autoPlay:!0})),gt==="office"&&De&&Oe.createElement("iframe",{src:`${ut}/office.html?key=${De.key}&url=${btoa(De.url)}&callbackUrl=${Qt+(De.callbackUrl||"")}&fileType=${De.fileType}&title=${De.title||""}&model=${_e}&officeServer=${fe.Z.ONLYOFFICE}&disabledDownload=${!!Qe}`}),gt==="html"&&Oe.createElement("iframe",{src:Fe+"&disposition=inline"}),gt==="pdf"&&Oe.createElement("iframe",{id:"pdfiframe",src:`${ut}/js/pdf/index.html?filename=${ot||"educoder.pdf"}&url=${encodeURIComponent(Fe)}&disabledDownload=${!!Qe}&model=${_e}`}),gt==="image"&&Oe.createElement("img",{src:`${(Fe==null?void 0:Fe.indexOf("http://"))>-1||(Fe==null?void 0:Fe.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Fe}`}),(gt==="other"||gt==="download")&&Oe.createElement(Oe.Fragment,null,st?Oe.createElement(Be.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Oe.createElement(ce.ZP,{icon:Oe.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:ie,disabled:Qe},"\u4E0B\u8F7D")}):Oe.createElement(ce.ZP,{type:"primary",size:"middle",onClick:ie,disabled:Qe},Oe.createElement(Le.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),gt==="flowChart"&&Oe.createElement("div",{className:"embed"},Oe.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Fe||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},92716:function(Mn,Yt,E){"use strict";E.d(Yt,{t:function(){return re}});var y=E(59301),ve=E(37568),ce=E(28284),Le=E(62957),xe=E(77019),ge=E(5269),Se=E(4875),Ne=E(82326),Be=E(47889),fe=E(3969),$e=E(65582),Oe=E(58e3),ct=E(6767),Ke=E(7939),Te=E(29787),we=E(24334),Ie={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"},Pe=E(38147),tt=E(67172),Et=E(25374),_e=E(56102),Fe=E(10129),He=E(59301),Xe=Object.defineProperty,St=Object.defineProperties,gt=Object.getOwnPropertyDescriptors,ot=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,We=(oe,pe,ae)=>pe in oe?Xe(oe,pe,{enumerable:!0,configurable:!0,writable:!0,value:ae}):oe[pe]=ae,Ae=(oe,pe)=>{for(var ae in pe||(pe={}))Ue.call(pe,ae)&&We(oe,ae,pe[ae]);if(ot)for(var ae of ot(pe))Ee.call(pe,ae)&&We(oe,ae,pe[ae]);return oe},de=(oe,pe)=>St(oe,gt(pe)),wt=(oe,pe,ae)=>new Promise((me,Ze)=>{var Ot=bt=>{try{qe(ae.next(bt))}catch(At){Ze(At)}},at=bt=>{try{qe(ae.throw(bt))}catch(At){Ze(At)}},qe=bt=>bt.done?me(bt.value):Promise.resolve(bt.value).then(Ot,at);qe((ae=ae.apply(oe,pe)).next())}),Ge=({buttonProps:oe,buttonText:pe,form:ae,hackIdentifier:me="",answerKey:Ze,data:Ot})=>{const[at,qe]=(0,y.useState)(!1),[bt,At]=(0,y.useState)(!1),[$t,Ye]=(0,y.useState)(!1),[rt,Vt]=(0,y.useState)({}),[sn,wn]=(0,y.useState)(""),[pn,kt]=(0,y.useState)(""),Gt=(0,y.useRef)(me),Pt=(0,y.useRef)(""),Je=(0,y.useRef)(!1);(0,y.useEffect)(()=>{$t&&nt()},[$t]),(0,y.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const It=()=>new Date().getTime(),tn=Ot==null?void 0:Ot.code,mn=()=>{var xt,Wt;let qt=tn?Ot==null?void 0:Ot.code:(xt=ae.getFieldValue("hack_codes"))==null?void 0:xt.code,Tn=tn?Ot==null?void 0:Ot.answer_content:ae.getFieldValue(Ze),Gn=tn?Ot==null?void 0:Ot.input:(Wt=ae.getFieldValue("hack_sets"))==null?void 0:Wt.input;Tn==null||Tn.forEach(On=>{const Hn=On.value||On.answer_text||"";qt=qt.replace(/(@▁@|@▁▁@)/,Hn)}),kt(Gn),wn(qt),Vt({}),Ye(!0)},nt=()=>wt(void 0,null,function*(){var xt,Wt,qt,Tn;const Gn=It(),On=tn?Ot==null?void 0:Ot.time_limit:(xt=ae.getFieldsValue())==null?void 0:xt.hack.time_limit,Hn=tn?(Wt=Ot==null?void 0:Ot.answer_content)==null?void 0:Wt.length:(Tn=(qt=ae.getFieldsValue())==null?void 0:qt.standard_answers)==null?void 0:Tn.length;qe(!0),yield(0,tt.bM)(Pt.current,{test_hack_code:sn,test_input:pn});function Zt(){return wt(this,null,function*(){const{status:Dn,data:nn}=yield(0,tt.rX)(Pt.current,"submit"),rn=It()-Gn>(On+3)*1e3*Hn;if(Je.current){if(rn){ct.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),qe(!1);return}if(Dn===0){qe(!1),Vt(de(Ae({},nn),{showText:!0}));return}setTimeout(Zt,1e3)}})}Zt()}),Nt=()=>wt(void 0,null,function*(){var xt,Wt,qt,Tn,Gn,On,Hn;if(!Ot){try{yield ae.validateFields()}catch(Sn){(qt=(Wt=(xt=Sn==null?void 0:Sn.errorFields)==null?void 0:xt[0])==null?void 0:Wt.name)!=null&&qt.includes("standard_answers")?ct.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):ct.ZP.error(Sn.errorFields[0].errors[0]),ae.scrollToField(Sn.errorFields[0].name,{behavior:"smooth",block:"center"});return}At(!0);let Dn="";const nn=ae.getFieldsValue();Gt.current?Dn=yield(0,Pe.ZP)(`/api/problems/${Gt.current}.json`,{method:"put",body:de(Ae({},nn),{hack:de(Ae({},nn==null?void 0:nn.hack),{sub_discipline_id:(Hn=(On=nn==null?void 0:nn.hack)==null?void 0:On.sub_discipline_id)==null?void 0:Hn[1],difficult:nn.difficulty,item_banks_group_id:nn.item_banks_group_id}),hack_codes:de(Ae({},nn.hack_codes),{code:we.Base64.encode(nn.hack_codes.code)}),update_hack_sets:[Ae({},nn.hack_sets)],is_blank:!0,item_type:"BPROGRAM"})}):(Dn=yield(0,Pe.ZP)("/api/problems.json",{method:"post",body:de(Ae({},nn),{hack:de(Ae({},nn==null?void 0:nn.hack),{sub_discipline_id:(Gn=(Tn=nn==null?void 0:nn.hack)==null?void 0:Tn.sub_discipline_id)==null?void 0:Gn[1],difficult:nn.difficulty,item_banks_group_id:nn.item_banks_group_id}),hack_codes:de(Ae({},nn.hack_codes),{code:we.Base64.encode(nn.hack_codes.code)}),hack_sets:[Ae({},nn.hack_sets)],is_blank:!0,item_type:"BPROGRAM"})}),Gt.current=Dn==null?void 0:Dn.identifier,sessionStorage.projectFill=Dn==null?void 0:Dn.identifier)}const Zt=yield(0,Pe.ZP)(`/api/problems/${Gt.current}/start.json`,{method:"get"});if((Zt==null?void 0:Zt.status)===0){Pt.current=Zt==null?void 0:Zt.identifier,Je.current=!0,At(!1),mn();return}At(!1)}),Jt=xt=>{const{status:Wt,error_msg:qt,execute_time:Tn,output:Gn,input:On,expected_output:Hn}=xt;let Zt=null;switch(Wt){case Fe.h.OK:Zt=He.createElement(He.Fragment,null,He.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Tn/1e3,"\u79D2"),He.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case Fe.h.NOMATCH:Zt=He.createElement(He.Fragment,null,He.createElement("div",null,"\u8F93\u5165\uFF1A"),He.createElement("pre",{style:{fontFamily:"initial"}},On),He.createElement("div",null,"\u8F93\u51FA\uFF1A"),He.createElement("pre",{style:{fontFamily:"initial"}},Gn&&we.Base64.decode(Gn)),He.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),He.createElement("pre",{style:{fontFamily:"initial"}},Hn&&we.Base64.decode(Hn)));break;case Fe.h.EXECUTEFAILURE:Zt=He.createElement(He.Fragment,null,He.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",He.createElement("pre",null,On)),He.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),He.createElement("pre",{className:"error"},we.Base64.decode(qt)));break;case Fe.h.COMPILEFAILURE:Zt=He.createElement(He.Fragment,null,He.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",He.createElement("pre",null,On)),He.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),He.createElement("pre",{className:"error"},we.Base64.decode(qt)));break;case Fe.h.PODFAILURE:Zt=He.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case Fe.h.TIMEOUT:Zt=He.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return He.createElement(He.Fragment,null," ",Zt," ")};return He.createElement("div",null,He.createElement(Ke.ZP,de(Ae({loading:bt},oe),{onClick:Nt}),pe),He.createElement(Le.default,{open:$t,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:at,cancelButtonProps:{style:{display:"none"}},onOk:()=>nt(),onCancel:()=>{Je.current=!1,Ye(!1)}},He.createElement("div",{className:Ie.result},He.createElement("div",{className:Ie.left},He.createElement("div",{className:"mb20"},He.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!Ot&&He.createElement(_e.CopyToClipboard,{text:sn,onCopy:()=>ct.ZP.success("\u590D\u5236\u6210\u529F")},He.createElement("span",{style:{float:"right"},className:"current c-light-primary"},He.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),He.createElement(Et.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:sn,onChange:xt=>wn(xt)})),He.createElement("div",{className:Ie.right},He.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),He.createElement("div",{className:Ie.box},He.createElement("div",{className:Ie.li},He.createElement(ve.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:pn,onChange:xt=>kt(xt.target.value),bordered:!1,style:{height:180}}))),He.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),He.createElement("div",{className:Ie.box},He.createElement(Te.Z,{spinning:at,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},He.createElement("div",{className:Ie.li,style:{height:196,overflow:"auto",padding:10}},Jt(rt))))))))},st=E(87169),Ce=E(59301),be=Object.defineProperty,vt=Object.defineProperties,zt=Object.getOwnPropertyDescriptors,jt=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,ut=(oe,pe,ae)=>pe in oe?be(oe,pe,{enumerable:!0,configurable:!0,writable:!0,value:ae}):oe[pe]=ae,Qt=(oe,pe)=>{for(var ae in pe||(pe={}))De.call(pe,ae)&&ut(oe,ae,pe[ae]);if(jt)for(var ae of jt(pe))pt.call(pe,ae)&&ut(oe,ae,pe[ae]);return oe},yt=(oe,pe)=>vt(oe,zt(pe)),Ct=(oe,pe)=>{var ae={};for(var me in oe)De.call(oe,me)&&pe.indexOf(me)<0&&(ae[me]=oe[me]);if(oe!=null&&jt)for(var me of jt(oe))pe.indexOf(me)<0&&pt.call(oe,me)&&(ae[me]=oe[me]);return ae};const{TextArea:mt}=ve.default,dn=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],Ht=({value:oe,onChange:pe})=>Ce.createElement(Switch,{checked:oe,onChange:ae=>{pe(ae)}}),ue="@\u2581@",ie="@\u2581\u2581@",re=({questionTitlePlaceholder:oe,form:pe,scoreByBlank:ae=!1,hackidentifier:me,answerKey:Ze})=>{const[Ot,at]=(0,y.useState)(!1),[qe,bt]=(0,y.useState)(!1),$t=(0,$e.useParams)().type==="edit",Ye=(Pt,Je)=>{const It=Je.line;let tn=0;for(let nt=0;nt<It;nt++)tn+=Pt.getLine(nt).split(ue).length-1;for(let nt=0;nt<It;nt++)tn+=Pt.getLine(nt).split(ie).length-1;const mn=Pt.getLine(It).substring(0,Je.ch);return tn+=mn.split(ue).length-1,tn+=mn.split(ie).length-1,tn},rt=(Pt,Je,It,tn)=>{const mn=Pt.getRange(Je.from,Je.to);let nt=0;if(Je.text.forEach(Nt=>{nt+=Nt.split(ue).length-1}),Je.text.forEach(Nt=>{nt+=Nt.split(ie).length-1}),Je.origin!=="setValue"){if(mn&&(mn.indexOf(ue)!==-1||mn.indexOf(ie)!==-1)){const Nt=mn.split(ue).length-1+mn.split(ie).length-1,Jt=Ye(Pt,Je.from);if(console.log(`\u5220\u9664${Nt}\u4E2A\uFF0C \u524D\u9762\u6709${Jt}\u4E2A\uFF0C\u65B0\u589E${nt}\u4E2A`),Nt>1){const xt=Array.from({length:Nt},(Wt,qt)=>Jt+qt);tn(xt)}else tn(Jt)}else if(nt>0){const Nt=Ye(Pt,Je.from);console.log(`\u65B0\u589E${nt}\u4E2A\uFF0C\u4E4B\u524D\u6709${Nt}\u4E2A`),It(nt,Nt)}}},Vt=()=>{const Pt=pe.getFieldValue(Ze);pe.setFieldsValue({[Ze]:Pt==null?void 0:Pt.map((Je,It)=>yt(Qt({},Je),{position:It+1}))})},sn=(0,y.useRef)(),wn=(Pt,Je)=>{for(let It=0;It<Pt;It++)sn.current({position:null,answer_text:""},Je+It);Vt()},pn=(0,y.useRef)(),kt=Pt=>{pn.current(Pt),Vt()},Gt=ce.default.useWatch(Ze,pe);return Ce.createElement("div",{className:Oe.Z.wrap},Ce.createElement(ce.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},Ce.createElement(fe.h,{scrollId:"name",watch:!0,height:140})),Ce.createElement("div",{className:Oe.Z.questionTitleEditorWrap},Ce.createElement(ce.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},Ce.createElement(fe.h,{scrollId:"name",watch:!0,height:400,showNullProgramButton:!0,onChange:(Pt,Je)=>{const It=pe.getFieldValue(Ze);console.log("--preAnswerData",It,Je),pe.setFieldsValue({[Ze]:It==null?void 0:It.map((tn,mn)=>{var nt;return yt(Qt({},tn),{position:mn+1,multi_line:(nt=Je==null?void 0:Je[mn])==null?void 0:nt.multiLine})})})},placeholder:oe,onCMBeforeChange:(Pt,Je)=>{rt(Pt,Je,wn,kt)}}))),Ce.createElement(ce.default.List,{name:Ze,rules:[{validator(Pt,Je){if(!(Je!=null&&Je.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const It of Je){const{answer_text:tn}=It||{};if((tn==null?void 0:tn.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Pt,{add:Je,remove:It},{errors:tn})=>(sn.current=Je,pn.current=It,Ce.createElement(Ce.Fragment,null,Ce.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},Ce.createElement(ce.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),Ce.createElement("div",{onClick:()=>{Le.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:Ce.createElement("div",null,Ce.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",Ce.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),Ce.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"}},Ce.createElement(st.Z,{style:{marginRight:3,color:"#3061D0"}}),Ce.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),Pt.map((mn,nt)=>{var Nt=mn,{key:Jt,name:xt}=Nt,Wt=Ct(Nt,["key","name"]),qt,Tn;return Ce.createElement(xe.Z,{className:"mb20",key:Jt,align:"middle",wrap:!1},Ce.createElement(ge.Z,{flex:"0 0 auto",className:`${Oe.Z.blankIndex}`},"\u586B\u7A7A\u9879",nt+1),Ce.createElement(ge.Z,{flex:1},Ce.createElement(xe.Z,{align:"top",justify:"space-between",wrap:!1},Ce.createElement(ge.Z,null,Ce.createElement(ce.default.Item,yt(Qt({},Wt),{name:[xt,"answer_text"],noStyle:!0}),(qt=Gt==null?void 0:Gt[xt])!=null&&qt.multi_line||(Tn=Gt==null?void 0:Gt[xt])!=null&&Tn.multiLine?Ce.createElement(mt,{spellCheck:!1,style:{marginLeft:10,width:550}}):Ce.createElement(ve.default,{style:{marginLeft:10,width:550},className:Oe.Z.blankInput,size:"large",maxLength:1e3,onBlur:Gn=>{}}))),ae&&Ce.createElement(ge.Z,{flex:"224px"},Ce.createElement(ce.default.Item,yt(Qt({},Wt),{name:[xt,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),Ce.createElement(Se.Z,{size:"large",className:Oe.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),Ce.createElement("div",{onClick:()=>at(!0)},Ce.createElement(ce.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Ce.createElement(fe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ot}))),Ce.createElement(ce.default.Item,{label:"\u7F16\u7A0B\u8BED\u8A00",style:{marginTop:30},name:["hack_codes","language"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00"}]},Ce.createElement(Ne.default,{size:"large"},dn.map(Pt=>Ce.createElement(Ne.default.Option,{key:Pt.title,value:Pt.key}," ",Pt.title)))),Ce.createElement(ce.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},Ce.createElement(ce.default.Item,{name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:3,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F3\u79D2"}],noStyle:!0},Ce.createElement(Se.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),Ce.createElement("span",{className:"ml10 font14"},"\u79D2")),Ce.createElement(ce.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",style:{marginTop:30},name:["hack","submit_rule"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},Ce.createElement(Be.ZP.Group,{style:{marginTop:-10}},Ce.createElement(Be.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),Ce.createElement(Be.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),Ce.createElement(Be.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),Ce.createElement(ce.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),Ce.createElement("div",{style:{background:"#F6F7F9",padding:15}},Ce.createElement(ce.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},Ce.createElement(mt,{rows:4})),Ce.createElement(ce.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},Ce.createElement(mt,{rows:4}))),Ce.createElement(Ge,{form:pe,answerKey:Ze,hackIdentifier:me,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:Ce.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"}}}))}},85500:function(Mn,Yt,E){"use strict";E.d(Yt,{u:function(){return He}});var y=E(59301),ve=E(77019),ce=E(5269),Le=E(25399),xe=E(28284),ge=E(58e3),Se=E(32134),Ne=E(12893),Be=E(3969),fe=E(59301),$e=Object.defineProperty,Oe=Object.defineProperties,ct=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,Ie=(Xe,St,gt)=>St in Xe?$e(Xe,St,{enumerable:!0,configurable:!0,writable:!0,value:gt}):Xe[St]=gt,Pe=(Xe,St)=>{for(var gt in St||(St={}))Te.call(St,gt)&&Ie(Xe,gt,St[gt]);if(Ke)for(var gt of Ke(St))we.call(St,gt)&&Ie(Xe,gt,St[gt]);return Xe},tt=(Xe,St)=>Oe(Xe,ct(St)),Et=(Xe,St)=>{var gt={};for(var ot in Xe)Te.call(Xe,ot)&&St.indexOf(ot)<0&&(gt[ot]=Xe[ot]);if(Xe!=null&&Ke)for(var ot of Ke(Xe))St.indexOf(ot)<0&&we.call(Xe,ot)&&(gt[ot]=Xe[ot]);return gt};const _e=["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"],Fe=({value:Xe,onChange:St,choiceTextKey:gt,answerKey:ot,index:Ue,isEdit:Ee,setInputActive:We,form:Ae,choiceOptionsPath:de,allowChangeMode:wt,showAddIcon:Qe,addItem:Ge,deleteItem:st})=>{console.log(Xe,"value");const Ce=(Xe==null?void 0:Xe[ot])===1,be=()=>{const zt=Ae.getFieldValue(de);Ae.setFieldValue(de,zt.map(jt=>tt(Pe({},jt),{[ot]:0})))},vt=()=>{Ce?St(tt(Pe({},Xe),{[ot]:0})):(wt||be(),St(tt(Pe({},Xe),{[ot]:1})))};return fe.createElement(ve.Z,{className:ge.Z.choiceWrap,align:"middle",wrap:!1},fe.createElement(ce.Z,{onClick:vt,className:`${ge.Z.choiceIndex} ${Ce?ge.Z.activeAnswer:""}`},_e[Ue]),fe.createElement(ce.Z,{flex:1,className:`${ge.Z.editorWrap} ml15`,onClick:We},fe.createElement(Be.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Ee,value:Xe==null?void 0:Xe[gt],onChange:zt=>{St(tt(Pe({},Xe),{[gt]:zt}))}})),fe.createElement(ce.Z,{flex:"0 0 auto",className:"ml15"},fe.createElement("div",{onClick:vt,className:`${ge.Z.setAnswerBtn} ${Ce?ge.Z.activeAnswer:""}`},Ce?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),fe.createElement(ce.Z,{className:ge.Z.actionWrapper},fe.createElement(Le.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},fe.createElement(Se.Z,{className:ge.Z.addIcon,onClick:Ge,style:{visibility:Qe?"visible":"hidden"}})),fe.createElement(Le.Z,{title:"\u5220\u9664"},fe.createElement(Ne.Z,{className:ge.Z.deleteIcon,onClick:st,style:{visibility:Ue>1?"visible":"hidden"}}))))},He=({questionTitlePlaceholder:Xe,titleKey:St,choiceKey:gt,analysisKey:ot,choiceTextKey:Ue,answerKey:Ee,choiceOptionsPath:We,allowChangeMode:Ae=!0,form:de,showAnalysis:wt=!0})=>{const[Qe,Ge]=(0,y.useState)(),[st,Ce]=(0,y.useState)(!1);return fe.createElement("div",{className:ge.Z.wrap},fe.createElement("div",{className:ge.Z.questionTitleEditorWrap},fe.createElement(xe.default.Item,{label:"\u9898\u5E72",name:St,labelCol:{span:24},rules:[{required:!0}]},fe.createElement(Be.h,{scrollId:Array.isArray(St)?St.join("_"):`${St}`,watch:!0,height:140,placeholder:Xe}))),fe.createElement(xe.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),fe.createElement(xe.default.List,{name:gt,rules:[{validator(be,vt){const zt=vt.some(De=>De[Ee]===1),jt=vt.findIndex(De=>{var pt;return((pt=De[Ue])==null?void 0:pt.length)<=0});return jt!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${_e[jt]}\u9009\u9879\u7684\u5185\u5BB9`)):zt?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(be,{add:vt,remove:zt})=>fe.createElement("div",{id:Array.isArray(We)?We.join("_"):`${We}`},be.map((jt,De)=>{var pt=jt,{key:ut,name:Qt}=pt,yt=Et(pt,["key","name"]);const Ct=Qe===ut,mt=()=>{Ge(ut)},dn=De<14&&De===be.length-1,Ht=()=>vt({[Ue]:"",[Ee]:0}),ue=()=>zt(Qt);return fe.createElement(xe.default.Item,tt(Pe({},yt),{key:ut,name:Qt,className:ge.Z.choiceListWrap,rules:[{validator(ie,re){return re!=null&&re.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${_e[De]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),fe.createElement(Fe,{choiceTextKey:Ue,answerKey:Ee,index:De,isEdit:Ct,setInputActive:mt,form:de,choiceOptionsPath:We,allowChangeMode:Ae,showAddIcon:dn,addItem:Ht,deleteItem:ue}))}),be.length<15&&fe.createElement("div",{className:`${ge.Z.addBtn} mb30`,onClick:()=>vt({[Ue]:"",[Ee]:0})},"\u6DFB\u52A0\u9009\u9879"))),wt&&fe.createElement("div",{onClick:()=>Ce(!0)},fe.createElement(xe.default.Item,{name:ot,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},fe.createElement(Be.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:st}))))}},78909:function(Mn,Yt,E){"use strict";E.d(Yt,{u:function(){return de}});var y=E(59301),ve=E(62957),ce=E(77019),Le=E(5269),xe=E(37568),ge=E(25399),Se=E(58755),Ne=E(28284),Be=E(47889),fe=E(4875),$e=E(7939),Oe=E(3969),ct=E(12893),Ke=E(32134),Te=E(61485),we=E(58e3),Ie=E(27687),Pe=E(59301),tt=Object.defineProperty,Et=Object.defineProperties,_e=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,St=(wt,Qe,Ge)=>Qe in wt?tt(wt,Qe,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):wt[Qe]=Ge,gt=(wt,Qe)=>{for(var Ge in Qe||(Qe={}))He.call(Qe,Ge)&&St(wt,Ge,Qe[Ge]);if(Fe)for(var Ge of Fe(Qe))Xe.call(Qe,Ge)&&St(wt,Ge,Qe[Ge]);return wt},ot=(wt,Qe)=>Et(wt,_e(Qe)),Ue=(wt,Qe)=>{var Ge={};for(var st in wt)He.call(wt,st)&&Qe.indexOf(st)<0&&(Ge[st]=wt[st]);if(wt!=null&&Fe)for(var st of Fe(wt))Qe.indexOf(st)<0&&Xe.call(wt,st)&&(Ge[st]=wt[st]);return Ge};const Ee=({value:wt,onChange:Qe,position:Ge,removeBlank:st})=>{const Ce=vt=>{ve.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:we.Z.modal,onOk:()=>{const zt=[...wt];zt.splice(vt,1),zt.length===0?st(Ge-1):Qe(zt)}})},be=()=>{const vt=[...wt];vt.push(""),Qe(vt)};return Pe.createElement(ce.Z,{className:"ml20"},Pe.createElement(Le.Z,{flex:1},wt==null?void 0:wt.map((vt,zt)=>Pe.createElement(ce.Z,{key:`${vt}_${zt}`,className:"mb20"},Pe.createElement(xe.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:vt,autoSize:{maxRows:3},maxLength:1e3,onBlur:jt=>{const De=[...wt],pt=jt.target.value.trim();De[zt]=pt,Qe(De)}}),Pe.createElement(ge.Z,{title:"\u5220\u9664"},Pe.createElement(ct.Z,{className:we.Z.deleteIcon,style:{marginLeft:15,visibility:Ge===1&&zt===0?"hidden":"visible"},onClick:()=>Ce(zt)})),Pe.createElement(ge.Z,{title:"\u65B0\u589E\u7B54\u6848"},Pe.createElement(Ke.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:zt===0?"visible":"hidden"},onClick:()=>{be()}}))))))},We=({value:wt,onChange:Qe,position:Ge,removeBlank:st})=>{const Ce=vt=>{ve.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:we.Z.modal,onOk:()=>{const zt=[...wt];zt.splice(vt,1),zt.length===0?st(Ge-1):Qe(zt)}})},be=()=>{const vt=[...wt];vt.push(""),Qe(vt)};return Pe.createElement(ce.Z,{className:"ml20"},Pe.createElement(Le.Z,{flex:1},wt==null?void 0:wt.map((vt,zt)=>Pe.createElement(ce.Z,{key:`${vt}_${zt}`,align:"middle",className:"mb20"},Pe.createElement(Ie.Z,{value:vt,style:{flex:1},onChange:jt=>{const De=[...wt];De[zt]=jt,Qe(De)}}),Pe.createElement(ge.Z,{title:"\u5220\u9664"},Pe.createElement(ct.Z,{className:we.Z.deleteIcon,style:{marginLeft:15,visibility:Ge===1&&zt===0?"hidden":"visible"},onClick:()=>Ce(zt)})),Pe.createElement(ge.Z,{title:"\u65B0\u589E\u7B54\u6848"},Pe.createElement(Ke.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:zt===0?"visible":"hidden"},onClick:()=>{be()}}))))))},Ae=({value:wt=!0,onChange:Qe})=>Pe.createElement(Se.Z,{checked:!wt,onChange:Ge=>{Qe(!Ge)}}),de=({questionTitlePlaceholder:wt,form:Qe,scoreByBlank:Ge=!1,answerKey:st})=>{const[Ce,be]=(0,y.useState)(!1),vt=()=>{const Qt=Qe.getFieldValue(st);Qe.setFieldsValue({[st]:Qt.map((yt,Ct)=>ot(gt({},yt),{position:Ct+1}))})},zt=(0,y.useRef)(),jt=(Qt,yt)=>{for(let Ct=0;Ct<Qt;Ct++)zt.current({position:null,answer_text:[""],model:1},yt+Ct);vt()},De=(0,y.useRef)(),pt=Qt=>{De.current(Qt),vt()},ut=Ne.default.useWatch(st,Qe);return Pe.createElement("div",{className:we.Z.wrap},Pe.createElement("div",{className:we.Z.questionTitleEditorWrap},Pe.createElement(Ne.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Pe.createElement(Oe.h,{scrollId:"name",watch:!0,height:140,placeholder:wt,showNullButton:!0,onAddBlank:()=>{const Qt=Qe.getFieldValue(st);jt(1,Qt==null?void 0:Qt.length)}}))),Pe.createElement(Ne.default.List,{name:st,rules:[{validator(Qt,yt){if(!(yt!=null&&yt.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Ct of yt){const{answer_text:mt}=Ct||{};if(mt!=null&&mt.some(dn=>(dn==null?void 0:dn.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Qt,{add:yt,remove:Ct},{errors:mt})=>(zt.current=yt,De.current=Ct,Pe.createElement(Pe.Fragment,null,Pe.createElement(Ne.default.Item,{label:Pe.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848"),required:!0,labelCol:{span:24}}),Qt.map((dn,Ht)=>{var ue=dn,{key:ie,name:re}=ue,oe=Ue(ue,["key","name"]),pe,ae;return Pe.createElement("div",{style:{marginBottom:10},key:ie},Pe.createElement(ce.Z,{className:"mb20",align:"middle",wrap:!1},Pe.createElement(Le.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${we.Z.blankIndex}`},"\u586B\u7A7A\u9879",Ht+1),Pe.createElement(Ne.default.Item,ot(gt({},oe),{name:[re,"model"],noStyle:!0}),Pe.createElement(Be.ZP.Group,{onChange:()=>{const me=Qe.getFieldValue(st);Qe.setFieldsValue({[st]:me.map((Ze,Ot)=>ot(gt({},Ze),{answer_text:re===Ot?[""]:Ze.answer_text}))})}},Pe.createElement(Be.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",Pe.createElement(ge.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6587\u672C\u7B54\u6848"},Pe.createElement(Te.Z,null))),Pe.createElement(Be.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",Pe.createElement(ge.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u7F16\u5199\u6570\u5B66\u516C\u5F0F\u4F5C\u4E3A\u7B54\u6848"},Pe.createElement(Te.Z,null)))))),Pe.createElement(ce.Z,{style:{marginLeft:20},align:"middle",wrap:!1},Pe.createElement(Le.Z,{flex:1},Pe.createElement(ce.Z,{align:"top",justify:"space-between",wrap:!1},Pe.createElement(Le.Z,{flex:1},Pe.createElement(Ne.default.Item,ot(gt({},oe),{name:[re,"answer_text"],noStyle:!0}),((ae=(pe=Qe.getFieldValue(st))==null?void 0:pe[re])==null?void 0:ae.model)===1?Pe.createElement(Ee,{removeBlank:pt,position:Ht+1}):Pe.createElement(We,{removeBlank:pt,position:Ht+1}))),Ge&&Pe.createElement(Le.Z,{flex:"224px",style:{margin:"-2px 0 0 20px"}},Pe.createElement(Ne.default.Item,ot(gt({},oe),{name:[re,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:we.Z.blankInputNumberWrapper}),Pe.createElement(fe.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),Pe.createElement(Ne.default.Item,ot(gt({},oe),{name:[re,"position"],noStyle:!0}),Pe.createElement(xe.default,{type:"hidden"})))))})))),Pe.createElement($e.ZP,{className:"mb20",onClick:()=>jt(1,ut==null?void 0:ut.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),Pe.createElement(ce.Z,{align:"middle"},Pe.createElement(Ne.default.Item,{name:"downcase",valuePropName:"checked"},Pe.createElement(Se.Z,null)),Pe.createElement(Le.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Pe.createElement(ce.Z,{align:"middle"},Pe.createElement(Ne.default.Item,{name:"no_space",valuePropName:"checked"},Pe.createElement(Se.Z,null)),Pe.createElement(Le.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(ut==null?void 0:ut.length)>1&&Pe.createElement(ce.Z,{align:"middle",className:(ut==null?void 0:ut.length)>1?"mb30":`${we.Z.hide}`},Pe.createElement(Ne.default.Item,{name:"is_ordered"},Pe.createElement(Ae,null)),Pe.createElement(Le.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")),Pe.createElement("div",{onClick:()=>be(!0)},Pe.createElement(Ne.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Pe.createElement(Oe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ce}))))}},27277:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Et}});var y=E(59301),ve=E(77019),ce=E(5269),Le=E(28284),xe=E(58e3),ge=E(3969),Se=E(59301),Ne=Object.defineProperty,Be=Object.defineProperties,fe=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,Ke=(_e,Fe,He)=>Fe in _e?Ne(_e,Fe,{enumerable:!0,configurable:!0,writable:!0,value:He}):_e[Fe]=He,Te=(_e,Fe)=>{for(var He in Fe||(Fe={}))Oe.call(Fe,He)&&Ke(_e,He,Fe[He]);if($e)for(var He of $e(Fe))ct.call(Fe,He)&&Ke(_e,He,Fe[He]);return _e},we=(_e,Fe)=>Be(_e,fe(Fe)),Ie=(_e,Fe)=>{var He={};for(var Xe in _e)Oe.call(_e,Xe)&&Fe.indexOf(Xe)<0&&(He[Xe]=_e[Xe]);if(_e!=null&&$e)for(var Xe of $e(_e))Fe.indexOf(Xe)<0&&ct.call(_e,Xe)&&(He[Xe]=_e[Xe]);return He};const Pe={\u6B63\u786E:"T",\u9519\u8BEF:"F"},tt=({value:_e,onChange:Fe,form:He})=>{const Xe=(_e==null?void 0:_e.is_answer)===1,St=_e==null?void 0:_e.choice_text,gt=()=>{const ot=He.getFieldsValue().choices.map(Ue=>({choice_text:Ue.choice_text,is_answer:0}));He.setFieldsValue({choices:ot}),Fe(we(Te({},_e),{is_answer:1}))};return Se.createElement(ve.Z,{className:xe.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},Se.createElement(ce.Z,{onClick:gt,className:`${xe.Z.choiceIndex} ${xe.Z.judgementIndex} ${Xe?xe.Z.activeAnswer:""}`},Pe[St]),Se.createElement(ce.Z,{flex:1,className:`${xe.Z.editorWrap} ml15`},Se.createElement("div",{className:`${xe.Z.inputBorder} ${xe.Z.placeholder} ${Xe?xe.Z.activeJudgementAnswer:""}`},St)),Se.createElement(ce.Z,{flex:"0 0 auto",className:"ml15"},Se.createElement("div",{onClick:gt,className:`${xe.Z.setAnswerBtn} ${Xe?xe.Z.activeAnswer:""}`},Xe?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},Et=({questionTitlePlaceholder:_e,choiceKey:Fe,form:He})=>{const[Xe,St]=(0,y.useState)(!1);return Se.createElement("div",{className:xe.Z.wrap},Se.createElement("div",{className:xe.Z.questionTitleEditorWrap},Se.createElement(Le.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Se.createElement(ge.h,{scrollId:"name",watch:!0,height:140,placeholder:_e}))),Se.createElement(Le.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},Se.createElement(Le.default.List,{name:"choices",rules:[{validator(gt,ot){return ot.some(Ee=>(Ee==null?void 0:Ee.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},gt=>Se.createElement("div",{id:"choices"},gt.map(ot=>{var Ue=ot,{key:Ee,name:We}=Ue,Ae=Ie(Ue,["key","name"]);return Se.createElement(Le.default.Item,we(Te({},Ae),{key:Ee,name:We,noStyle:!0}),Se.createElement(tt,{form:He}))})))),Se.createElement("div",{onClick:()=>St(!0)},Se.createElement(Le.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Se.createElement(ge.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Xe}))))}},3969:function(Mn,Yt,E){"use strict";E.d(Yt,{h:function(){return Te},x:function(){return we}});var y=E(25374),ve=E(58e3),ce=E(95097),Le=E(59301),xe=Object.defineProperty,ge=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,$e=(Ie,Pe,tt)=>Pe in Ie?xe(Ie,Pe,{enumerable:!0,configurable:!0,writable:!0,value:tt}):Ie[Pe]=tt,Oe=(Ie,Pe)=>{for(var tt in Pe||(Pe={}))Be.call(Pe,tt)&&$e(Ie,tt,Pe[tt]);if(Ne)for(var tt of Ne(Pe))fe.call(Pe,tt)&&$e(Ie,tt,Pe[tt]);return Ie},ct=(Ie,Pe)=>ge(Ie,Se(Pe)),Ke=(Ie,Pe)=>{var tt={};for(var Et in Ie)Be.call(Ie,Et)&&Pe.indexOf(Et)<0&&(tt[Et]=Ie[Et]);if(Ie!=null&&Ne)for(var Et of Ne(Ie))Pe.indexOf(Et)<0&&fe.call(Ie,Et)&&(tt[Et]=Ie[Et]);return tt};const Te=Ie=>{var Pe=Ie,{value:tt,onChange:Et,scrollId:_e}=Pe,Fe=Ke(Pe,["value","onChange","scrollId"]);return Le.createElement("div",{id:_e||""},Le.createElement(y.Z,ct(Oe({},Fe),{defaultValue:tt,onChange:(He,Xe)=>{Xe!=null&&Xe.length?Et(He,Xe):Et(He)}})))},we=({value:Ie,onChange:Pe,placeholder:tt,height:Et=140,isEdit:_e,miniToolbar:Fe,watch:He=!0})=>_e?Le.createElement(y.Z,{watch:He,isFocus:!0,height:Et||void 0,placeholder:tt,defaultValue:Ie,onChange:Pe,miniToolbar:Fe}):Le.createElement("div",{style:{cursor:"pointer"}},Ie?Le.createElement(ce.Z,{className:ve.Z.inputBorder,value:Ie}):Le.createElement("div",{className:`${ve.Z.inputBorder} ${ve.Z.placeholder} inputBorderError`},tt))},54190:function(Mn,Yt,E){"use strict";E.d(Yt,{W:function(){return Ue}});var y=E(59301),ve=E(6767),ce=E(96599),Le=E(28284),xe=E(58755),ge=E(77019),Se=E(5269),Ne=E(25399),Be=E(37568),fe=E(4875),$e=E(58e3),Oe=E(3969),ct=E(25374),Ke=E(61485),Te=Object.defineProperty,we=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,_e=(Ee,We,Ae)=>We in Ee?Te(Ee,We,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):Ee[We]=Ae,Fe=(Ee,We)=>{for(var Ae in We||(We={}))tt.call(We,Ae)&&_e(Ee,Ae,We[Ae]);if(Pe)for(var Ae of Pe(We))Et.call(We,Ae)&&_e(Ee,Ae,We[Ae]);return Ee},He=(Ee,We)=>we(Ee,Ie(We)),Xe=(Ee,We)=>{var Ae={};for(var de in Ee)tt.call(Ee,de)&&We.indexOf(de)<0&&(Ae[de]=Ee[de]);if(Ee!=null&&Pe)for(var de of Pe(Ee))We.indexOf(de)<0&&Et.call(Ee,de)&&(Ae[de]=Ee[de]);return Ae};const St=Ee=>{var We=Ee,{value:Ae,onChange:de}=We,wt=Xe(We,["value","onChange"]);const Qe=Ge=>{de([Ge])};return y.createElement(ct.Z,He(Fe({},wt),{defaultValue:Ae==null?void 0:Ae[0],onChange:Qe}))},gt=Ee=>{if(!Ee)return!1;if(/^s*$/.test(Ee)||Ee.trim()===""){ve.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let We=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 Ee==="|"?(ve.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},ot=({value:Ee=[],onClose:We})=>y.createElement(ce.default,{closable:!0,onClose:We,className:$e.Z.keywordTag},y.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Ee.join(" \u6216 "))),Ue=({questionTitlePlaceholder:Ee,form:We,showKeywords:Ae,isMustKeyWords:de=Ae})=>{const[wt,Qe]=(0,y.useState)(!1),[Ge,st]=(0,y.useState)(""),Ce=Le.default.useWatch("use_keywords",We),be=Le.default.useWatch("question_score",We);return y.createElement("div",{className:$e.Z.wrap},y.createElement("div",{className:$e.Z.questionTitleEditorWrap},y.createElement(Le.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},y.createElement(Oe.h,{scrollId:"name",watch:!0,height:140,placeholder:Ee}))),y.createElement(Le.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},y.createElement(St,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Ae&&!de&&y.createElement(Le.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},y.createElement(xe.Z,{defaultChecked:!0})),Ae&&de&&y.createElement(ge.Z,{align:"middle",className:"mb30"},y.createElement(Le.default.Item,{name:"use_keywords",valuePropName:"checked"},y.createElement(xe.Z,null)),y.createElement(Se.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),y.createElement(Se.Z,null,y.createElement(Ne.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"},y.createElement(Ke.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Ce||!de)&&y.createElement(Le.default.List,{name:"keywords",rules:[{validator(vt,zt){return de?zt!=null&&zt.length?(zt==null?void 0:zt.reduce((De,pt)=>De+pt.score,0))>parseFloat(be)?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()}}]},(vt,{add:zt,remove:jt})=>y.createElement(y.Fragment,null,y.createElement("div",{className:`${$e.Z.title} mb10`},de?"\u5173\u952E\u8BCD":y.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),y.createElement(ge.Z,{align:"middle",className:"font14 mb30"},y.createElement(Se.Z,{flex:1},y.createElement(Be.default,{value:Ge,onChange:De=>{st(De.target.value)},maxLength:50,allowClear:!0,onPressEnter:De=>{var pt,ut,Qt,yt;const Ct=`${(pt=De.target)==null?void 0:pt.value}`,mt=(Qt=(ut=Ct==null?void 0:Ct.split("|"))==null?void 0:ut.filter(ue=>!!ue))==null?void 0:Qt.map(ue=>ue==null?void 0:ue.trim()),dn=We.getFieldValue("keywords"),Ht=((yt=dn==null?void 0:dn.map(ue=>ue==null?void 0:ue.keyword))==null?void 0:yt.flat())||[];for(const ue of mt)if(Ht.includes(ue)){ve.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}gt(Ct)&&(zt({keyword:mt,score:1}),st(""))},className:$e.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"})),y.createElement(Se.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),vt.map(De=>{var pt=De,{key:ut,name:Qt}=pt,yt=Xe(pt,["key","name"]);return y.createElement(ge.Z,{key:ut,className:"mb20",style:{marginRight:148}},y.createElement(Se.Z,{flex:1},y.createElement(ge.Z,{align:"middle",justify:"space-between"},y.createElement(Le.default.Item,He(Fe({},yt),{name:[Qt,"keyword"]}),y.createElement(ot,{onClose:()=>jt(Qt)})),de&&y.createElement(Le.default.Item,He(Fe({},yt),{name:[Qt,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:$e.Z.blankInputNumberWrapper}),y.createElement(fe.Z,{className:$e.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),y.createElement("div",{onClick:()=>Qe(!0)},y.createElement(Le.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},y.createElement(Oe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:wt}))))}},98408:function(Mn,Yt,E){"use strict";E.d(Yt,{tc:function(){return Jt.t},uh:function(){return y.u},rL:function(){return Nt},u8:function(){return ce.u},ZZ:function(){return ve.Z},Wk:function(){return Le.W}});var y=E(85500),ve=E(27277),ce=E(78909),Le=E(54190),xe=E(59301),ge=E(8848),Se=E(28284),Ne=E(77019),Be=E(5269),fe=E(4875),$e=E(25399),Oe=E(75727),ct=E(58e3),Ke=E(12893),Te=E(3969),we=E(62957),Ie=E(37568),Pe=E(58755),tt=E(7939),Et=E(32134),_e=E(59301),Fe=Object.defineProperty,He=Object.defineProperties,Xe=Object.getOwnPropertyDescriptors,St=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,Ue=(xt,Wt,qt)=>Wt in xt?Fe(xt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:qt}):xt[Wt]=qt,Ee=(xt,Wt)=>{for(var qt in Wt||(Wt={}))gt.call(Wt,qt)&&Ue(xt,qt,Wt[qt]);if(St)for(var qt of St(Wt))ot.call(Wt,qt)&&Ue(xt,qt,Wt[qt]);return xt},We=(xt,Wt)=>He(xt,Xe(Wt)),Ae=(xt,Wt)=>{var qt={};for(var Tn in xt)gt.call(xt,Tn)&&Wt.indexOf(Tn)<0&&(qt[Tn]=xt[Tn]);if(xt!=null&&St)for(var Tn of St(xt))Wt.indexOf(Tn)<0&&ot.call(xt,Tn)&&(qt[Tn]=xt[Tn]);return qt};const de=({value:xt,onChange:Wt,position:qt,removeBlank:Tn})=>{const Gn=Hn=>{we.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:ct.Z.modal,onOk:()=>{const Zt=[...xt];Zt.splice(Hn,1),Zt.length===0?Tn(qt-1):Wt(Zt)}})},On=()=>{const Hn=[...xt];Hn.push(""),Wt(Hn)};return _e.createElement(Ne.Z,{className:"ml20"},_e.createElement(Be.Z,{flex:1},xt==null?void 0:xt.map((Hn,Zt)=>_e.createElement(Ne.Z,{key:`${Hn}_${Zt}`,className:"mb20"},_e.createElement(Ie.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Hn,autoSize:{maxRows:3},maxLength:1e3,onBlur:Dn=>{const nn=[...xt],Sn=Dn.target.value.trim();nn[Zt]=Sn,Wt(nn)}}),_e.createElement($e.Z,{title:"\u5220\u9664"},_e.createElement(Ke.Z,{className:ct.Z.deleteIcon,style:{marginLeft:15,visibility:qt===1&&Zt===0?"hidden":"visible"},onClick:()=>Gn(Zt)})),_e.createElement($e.Z,{title:"\u65B0\u589E\u7B54\u6848"},_e.createElement(Et.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:Zt===0?"visible":"hidden"},onClick:()=>{On()}}))))))},wt=({value:xt=!0,onChange:Wt})=>_e.createElement(Pe.Z,{checked:!xt,onChange:qt=>{Wt(!qt)}}),Qe=({questionTitlePlaceholder:xt,form:Wt,name:qt,scoreByBlank:Tn=!1,answerKey:Gn,titleKey:On="name",analysisKey:Hn="analysis",isOrdered:Zt="is_ordered"})=>{var Dn,nn;const[Sn,rn]=(0,xe.useState)(!1),En=()=>{const Dr=Wt.getFieldValue(["sub_item_banks",...Gn]);Wt.setFieldValue(["sub_item_banks",...Gn],Dr==null?void 0:Dr.map((mr,Hr)=>We(Ee({},mr),{position:Hr+1})))},xn=(0,xe.useRef)(),Vn=(Dr,mr)=>{for(let Hr=0;Hr<Dr;Hr++)xn.current({position:null,answer_text:[""]},mr+Hr);En()},sr=(0,xe.useRef)(),er=Dr=>{sr.current(Dr),En()},cr=(nn=(Dn=Wt.getFieldValue("sub_item_banks"))==null?void 0:Dn[Gn==null?void 0:Gn[0]])==null?void 0:nn[Gn==null?void 0:Gn[1]];return _e.createElement("div",{className:ct.Z.wrap},_e.createElement("div",{className:ct.Z.questionTitleEditorWrap},_e.createElement(Se.default.Item,{label:"\u9898\u5E72",name:On,labelCol:{span:24},rules:[{required:!0}]},_e.createElement(Te.h,{scrollId:"name",watch:!0,height:140,placeholder:xt,showNullButton:!0,onAddBlank:()=>{const Dr=Wt.getFieldValue(["sub_item_banks",...Gn]);Vn(1,Dr==null?void 0:Dr.length)}}))),_e.createElement(Se.default.List,{name:Gn,rules:[{validator(Dr,mr){if((mr==null?void 0:mr.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Hr of mr){const{answer_text:Lr}=Hr||{};if(Lr!=null&&Lr.some(An=>(An==null?void 0:An.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Dr,{add:mr,remove:Hr},{errors:Lr})=>(xn.current=mr,sr.current=Hr,_e.createElement(_e.Fragment,null,_e.createElement(Se.default.Item,{label:_e.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848"),required:!0,labelCol:{span:24}}),Dr.map((An,Rn)=>{var dr=An,{key:vr,name:Mt}=dr,Kt=Ae(dr,["key","name"]);return _e.createElement(Ne.Z,{align:"top",key:vr},_e.createElement(Be.Z,{className:`${ct.Z.blankIndex} pt5`},"\u586B\u7A7A\u9879",Rn+1),_e.createElement(Be.Z,{flex:1},_e.createElement(Ne.Z,{align:"top",justify:"space-between"},_e.createElement(Be.Z,{flex:1},_e.createElement(Se.default.Item,We(Ee({},Kt),{name:[Mt,"answer_text"],noStyle:!0}),_e.createElement(de,{removeBlank:er,position:Rn+1}))),Tn&&_e.createElement(Be.Z,{flex:"224px"},_e.createElement(Se.default.Item,We(Ee({},Kt),{name:[Mt,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:ct.Z.blankInputNumberWrapper}),_e.createElement(fe.Z,{className:ct.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),_e.createElement(Se.default.Item,We(Ee({},Kt),{name:[Mt,"position"],noStyle:!0}),_e.createElement(Ie.default,{type:"hidden"}))))})))),_e.createElement(tt.ZP,{className:"mb20",onClick:()=>Vn(1,cr==null?void 0:cr.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),_e.createElement(Ne.Z,{align:"middle"},_e.createElement(Se.default.Item,{name:[qt,"downcase"],valuePropName:"checked"},_e.createElement(Pe.Z,null)),_e.createElement(Be.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),_e.createElement(Ne.Z,{align:"middle"},_e.createElement(Se.default.Item,{name:[qt,"no_space"],valuePropName:"checked"},_e.createElement(Pe.Z,null)),_e.createElement(Be.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(cr==null?void 0:cr.length)>1&&_e.createElement(Ne.Z,{align:"middle",className:(cr==null?void 0:cr.length)>1?"mb30":`${ct.Z.hide}`},_e.createElement(Se.default.Item,{name:Zt},_e.createElement(wt,null)),_e.createElement(Be.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")),_e.createElement("div",{className:"mt30",onClick:()=>rn(!0)},_e.createElement(Se.default.Item,{name:Hn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},_e.createElement(Te.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Sn}))))};var Ge=E(59301),st=Object.defineProperty,Ce=Object.defineProperties,be=Object.getOwnPropertyDescriptors,vt=Object.getOwnPropertySymbols,zt=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,De=(xt,Wt,qt)=>Wt in xt?st(xt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:qt}):xt[Wt]=qt,pt=(xt,Wt)=>{for(var qt in Wt||(Wt={}))zt.call(Wt,qt)&&De(xt,qt,Wt[qt]);if(vt)for(var qt of vt(Wt))jt.call(Wt,qt)&&De(xt,qt,Wt[qt]);return xt},ut=(xt,Wt)=>Ce(xt,be(Wt)),Qt=(xt,Wt)=>{var qt={};for(var Tn in xt)zt.call(xt,Tn)&&Wt.indexOf(Tn)<0&&(qt[Tn]=xt[Tn]);if(xt!=null&&vt)for(var Tn of vt(xt))Wt.indexOf(Tn)<0&&jt.call(xt,Tn)&&(qt[Tn]=xt[Tn]);return qt};const yt={\u6B63\u786E:"T",\u9519\u8BEF:"F"},Ct=({value:xt,onChange:Wt,form:qt,choiceKey:Tn})=>{const Gn=(xt==null?void 0:xt.is_answer)===1,On=xt==null?void 0:xt.choice_text,Hn=()=>{var Zt;const Dn=(Zt=qt==null?void 0:qt.getFieldValue(["sub_item_banks",...Tn]))==null?void 0:Zt.map(nn=>({choice_text:nn.choice_text,is_answer:0}));qt==null||qt.setFieldValue(["sub_item_banks",...Tn],Dn),Wt(ut(pt({},xt),{is_answer:1}))};return Ge.createElement(Ne.Z,{className:ct.Z.choiceWrap,align:"middle",wrap:!1},Ge.createElement(Be.Z,{onClick:Hn,className:`${ct.Z.choiceIndex} ${ct.Z.judgementIndex} ${Gn?ct.Z.activeAnswer:""}`},yt[On]),Ge.createElement(Be.Z,{flex:1,className:`${ct.Z.editorWrap} ml15`},Ge.createElement("div",{className:`${ct.Z.inputBorder} ${ct.Z.placeholder} ${Gn?ct.Z.activeJudgementAnswer:""}`},On)),Ge.createElement(Be.Z,{flex:"0 0 auto",className:"ml15"},Ge.createElement("div",{onClick:Hn,className:`${ct.Z.setAnswerBtn} ${Gn?ct.Z.activeAnswer:""}`},Gn?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},mt=({questionTitlePlaceholder:xt,choiceKey:Wt="choices",form:qt,titleKey:Tn="name",analysisKey:Gn="analysis"})=>{const[On,Hn]=(0,xe.useState)(!1);return Ge.createElement("div",{className:ct.Z.wrap},Ge.createElement("div",{className:ct.Z.questionTitleEditorWrap},Ge.createElement(Se.default.Item,{label:"\u9898\u5E72",name:Tn,labelCol:{span:24},rules:[{required:!0}]},Ge.createElement(Te.h,{scrollId:"name",watch:!0,height:140,placeholder:xt}))),Ge.createElement(Se.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},Ge.createElement(Se.default.List,{name:Wt,rules:[{validator(Zt,Dn){return Dn.some(Sn=>(Sn==null?void 0:Sn.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Zt=>Ge.createElement("div",{id:"choices",style:{display:"flex",flexDirection:"column",gap:"20px"}},Zt.map(Dn=>{var nn=Dn,{key:Sn,name:rn}=nn,En=Qt(nn,["key","name"]);return Ge.createElement(Se.default.Item,ut(pt({},En),{key:Sn,name:rn,noStyle:!0}),Ge.createElement(Ct,{form:qt,choiceKey:Wt}))})))),Ge.createElement("div",{className:"mt30",onClick:()=>Hn(!0)},Ge.createElement(Se.default.Item,{name:Gn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Ge.createElement(Te.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:On}))))};var dn=E(6767),Ht=E(96599),ue=E(25374),ie=E(61485),re=Object.defineProperty,oe=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,ae=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Ot=(xt,Wt,qt)=>Wt in xt?re(xt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:qt}):xt[Wt]=qt,at=(xt,Wt)=>{for(var qt in Wt||(Wt={}))me.call(Wt,qt)&&Ot(xt,qt,Wt[qt]);if(ae)for(var qt of ae(Wt))Ze.call(Wt,qt)&&Ot(xt,qt,Wt[qt]);return xt},qe=(xt,Wt)=>oe(xt,pe(Wt)),bt=(xt,Wt)=>{var qt={};for(var Tn in xt)me.call(xt,Tn)&&Wt.indexOf(Tn)<0&&(qt[Tn]=xt[Tn]);if(xt!=null&&ae)for(var Tn of ae(xt))Wt.indexOf(Tn)<0&&Ze.call(xt,Tn)&&(qt[Tn]=xt[Tn]);return qt};const At=xt=>{var Wt=xt,{value:qt,onChange:Tn}=Wt,Gn=bt(Wt,["value","onChange"]);const On=Hn=>{Tn([Hn])};return xe.createElement(ue.Z,qe(at({},Gn),{defaultValue:qt==null?void 0:qt[0],onChange:On}))},$t=xt=>{if(!xt)return!1;let Wt=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 xt==="|"?(dn.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Ye=({value:xt=[],onClose:Wt})=>xe.createElement(Ht.default,{closable:!0,onClose:Wt,className:ct.Z.keywordTag},xe.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},xt.join(" \u6216 "))),rt=({questionTitlePlaceholder:xt,form:Wt,showKeywords:qt,isMustKeyWords:Tn=qt,titleKey:Gn="name",analysisKey:On="analysis",answerTexts:Hn="answer_texts",keywords:Zt="keywords",useKeywords:Dn="use_keywords",indexs:nn})=>{const[Sn,rn]=(0,xe.useState)(!1),[En,xn]=(0,xe.useState)(""),[Vn,sr]=(0,xe.useState)(!1),er=Se.default.useWatch("question_score",Wt);return xe.createElement("div",{className:ct.Z.wrap},xe.createElement("div",{className:ct.Z.questionTitleEditorWrap},xe.createElement(Se.default.Item,{label:"\u9898\u5E72",name:Gn,labelCol:{span:24},rules:[{required:!0}]},xe.createElement(Te.h,{scrollId:"name",watch:!0,height:140,placeholder:xt}))),xe.createElement(Se.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:Hn,labelCol:{span:24}},xe.createElement(At,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),qt&&!Tn&&xe.createElement(Se.default.Item,{hidden:!0,name:Dn,valuePropName:"checked"},xe.createElement(Pe.Z,{defaultChecked:!0})),qt&&Tn&&xe.createElement(Ne.Z,{align:"middle",className:"mb30"},xe.createElement(Se.default.Item,{name:Dn,valuePropName:"checked"},xe.createElement(Pe.Z,{onChange:()=>{var cr,Dr,mr,Hr,Lr,An;console.log(Wt.getFieldsValue()),sr((mr=(Dr=(cr=Wt.getFieldsValue())==null?void 0:cr.sub_item_banks)==null?void 0:Dr[nn])==null?void 0:mr.use_keywords),console.log((An=(Lr=(Hr=Wt.getFieldsValue())==null?void 0:Hr.sub_item_banks)==null?void 0:Lr[nn])==null?void 0:An.use_keywords),console.log(Vn)}})),xe.createElement(Be.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),xe.createElement(Be.Z,null,xe.createElement($e.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"},xe.createElement(ie.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Vn||!Tn)&&xe.createElement(Se.default.List,{name:Zt,rules:[{validator(cr,Dr){return Tn?Dr!=null&&Dr.length?(Dr==null?void 0:Dr.reduce((Hr,Lr)=>Hr+Lr.score,0))>parseFloat(er)?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()}}]},(cr,{add:Dr,remove:mr})=>xe.createElement(xe.Fragment,null,xe.createElement("div",{className:`${ct.Z.title} mb10`},Tn?"\u5173\u952E\u8BCD":xe.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),xe.createElement(Ne.Z,{align:"middle",className:"font14 mb30"},xe.createElement(Be.Z,{flex:1},xe.createElement(Ie.default,{value:En,onChange:Hr=>{xn(Hr.target.value)},maxLength:50,allowClear:!0,onPressEnter:Hr=>{var Lr,An,Rn,dr;const vr=`${(Lr=Hr.target)==null?void 0:Lr.value}`,Mt=(Rn=(An=vr==null?void 0:vr.split("|"))==null?void 0:An.filter(Rt=>!!Rt))==null?void 0:Rn.map(Rt=>Rt==null?void 0:Rt.trim()),Kt=Wt.getFieldValue(["sub_item_banks",...Zt]),ft=((dr=Kt==null?void 0:Kt.map(Rt=>Rt==null?void 0:Rt.keyword))==null?void 0:dr.flat())||[];for(const Rt of Mt)if(ft.includes(Rt)){dn.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}$t(vr)&&(Dr({keyword:Mt,score:1}),xn(""))},className:ct.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"})),xe.createElement(Be.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),cr.map(Hr=>{var Lr=Hr,{key:An,name:Rn}=Lr,dr=bt(Lr,["key","name"]);return xe.createElement(Ne.Z,{key:An,className:"mb20",style:{marginRight:148}},xe.createElement(Be.Z,{flex:1},xe.createElement(Ne.Z,{align:"middle",justify:"space-between"},xe.createElement(Se.default.Item,qe(at({},dr),{name:[Rn,"keyword"]}),xe.createElement(Ye,{onClose:()=>mr(Rn)})),Tn&&xe.createElement(Se.default.Item,qe(at({},dr),{name:[Rn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:ct.Z.blankInputNumberWrapper}),xe.createElement(fe.Z,{className:ct.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),xe.createElement("div",{onClick:()=>rn(!0)},xe.createElement(Se.default.Item,{name:On,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},xe.createElement(Te.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Sn}))))};var Vt=E(59301),sn=Object.defineProperty,wn=Object.defineProperties,pn=Object.getOwnPropertyDescriptors,kt=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,Je=(xt,Wt,qt)=>Wt in xt?sn(xt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:qt}):xt[Wt]=qt,It=(xt,Wt)=>{for(var qt in Wt||(Wt={}))Gt.call(Wt,qt)&&Je(xt,qt,Wt[qt]);if(kt)for(var qt of kt(Wt))Pt.call(Wt,qt)&&Je(xt,qt,Wt[qt]);return xt},tn=(xt,Wt)=>wn(xt,pn(Wt)),mn=(xt,Wt)=>{var qt={};for(var Tn in xt)Gt.call(xt,Tn)&&Wt.indexOf(Tn)<0&&(qt[Tn]=xt[Tn]);if(xt!=null&&kt)for(var Tn of kt(xt))Wt.indexOf(Tn)<0&&Pt.call(xt,Tn)&&(qt[Tn]=xt[Tn]);return qt};const{Panel:nt}=ge.default,Nt=({questionTitlePlaceholder:xt,choiceKey:Wt,form:qt,withScore:Tn})=>{const[Gn,On]=(0,xe.useState)([]),Hn=Zt=>{On(Zt)};return Vt.createElement("div",{className:ct.Z.wrap},Vt.createElement("div",{className:ct.Z.questionTitleEditorWrap},Vt.createElement(Se.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Vt.createElement(Te.h,{scrollId:"name",watch:!0,height:140,placeholder:xt}))),Vt.createElement(Se.default.Item,{label:"\u5C0F\u9898",required:!0,labelCol:{span:24}}),Vt.createElement(Se.default.List,{name:"sub_item_banks",rules:[{validator(Zt,Dn){return Dn?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(Zt,{add:Dn,remove:nn,move:Sn})=>{const rn=qt.getFieldValue("sub_item_banks");return Vt.createElement(Vt.Fragment,null,Vt.createElement(ge.default,{className:Zt.length>0?ct.Z.collapseWrapper:"",bordered:!1,activeKey:Gn,onChange:Hn,expandIcon:({isActive:En})=>Vt.createElement("i",{className:`iconfont icon-weizhankai ${En?ct.Z.open:ct.Z.close}`,style:{fontSize:14,transition:"all .2s"}})},Zt.map((En,xn)=>{var Vn=En,{key:sr,name:er}=Vn,cr=mn(Vn,["key","name"]),Dr,mr,Hr,Lr,An,Rn,dr,vr,Mt,Kt;return Vt.createElement(nt,{className:ct.Z.panel,forceRender:!0,header:Vt.createElement("div",{className:ct.Z.panelHeader},"\u7B2C",xn+1,"\u5C0F\u9898",Vt.createElement("span",null,"\uFF08",((Dr=rn==null?void 0:rn[er])==null?void 0:Dr.item_type)=="SINGLE"?"\u5355\u9009\u9898":((mr=rn==null?void 0:rn[er])==null?void 0:mr.item_type)=="MULTIPLE"?"\u591A\u9009\u9898":((Hr=rn==null?void 0:rn[er])==null?void 0:Hr.item_type)=="COMPLETION"?"\u586B\u7A7A\u9898":((Lr=rn==null?void 0:rn[er])==null?void 0:Lr.item_type)=="JUDGMENT"?"\u5224\u65AD\u9898":"\u7B80\u7B54\u9898","\uFF09")),key:er,extra:Vt.createElement(Ne.Z,{align:"middle",onClick:ft=>ft.stopPropagation()},Tn&&Vt.createElement(Be.Z,null,Vt.createElement(Se.default.Item,tn(It({},cr),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[er,"question_score"],className:ct.Z.blankInputNumberWrapper}),Vt.createElement(fe.Z,{className:ct.Z.blankInput,placeholder:"\u8BF7\u8F93\u5165\u5F53\u524D\u5C0F\u9898\u5206\u6570",min:.1,precision:1,max:100,style:{width:150}}))),Vt.createElement(Be.Z,null,Vt.createElement(Ne.Z,{align:"middle",className:"pl40",justify:"end"},xn!==0&&Vt.createElement("div",{onClick:()=>{var ft;Sn(xn,xn-1);const Rt=(ft=qt.getFieldValue("sub_item_banks"))==null?void 0:ft.map((it,ht)=>(Zt.map((fn,ar)=>{ht===ar&&(it.q_position=Number(fn.name)+1)}),it));qt.setFieldValue("sub_item_banks",Rt)}},Vt.createElement($e.Z,{title:"\u4E0A\u79FB"},Vt.createElement("i",{className:"iconfont icon-shangyi3 c-grey-999 primary-hover"}))),xn<Zt.length-1&&Vt.createElement("div",{onClick:()=>{var ft;Sn(xn,xn+1);const Rt=(ft=qt.getFieldValue("sub_item_banks"))==null?void 0:ft.map((it,ht)=>(Zt.map((fn,ar)=>{ht===ar&&(it.q_position=Number(fn.name)+1)}),it));qt.setFieldValue("sub_item_banks",Rt)},className:xn===0?"":"ml15"},Vt.createElement($e.Z,{title:"\u4E0B\u79FB"},Vt.createElement("i",{className:"iconfont icon-xiayi3 c-grey-999 primary-hover"}))))),Vt.createElement(Be.Z,null,Vt.createElement($e.Z,{title:"\u5220\u9664"},Vt.createElement(Ke.Z,{className:`${ct.Z.deleteIcon} ml15`,onClick:()=>nn(er)}))))},Vt.createElement(Se.default.Item,tn(It({},cr),{name:er}),(((An=rn==null?void 0:rn[er])==null?void 0:An.item_type)=="SINGLE"||((Rn=rn==null?void 0:rn[er])==null?void 0:Rn.item_type)=="MULTIPLE")&&Vt.createElement(y.u,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((dr=rn==null?void 0:rn[er])==null?void 0:dr.item_type)=="MULTIPLE",form:qt,choiceKey:[er,"choices"],titleKey:[er,"name"],analysisKey:[er,"analysis"],choiceOptionsPath:["sub_item_banks",er,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((vr=rn==null?void 0:rn[er])==null?void 0:vr.item_type)=="COMPLETION"&&Vt.createElement(Qe,{form:qt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",scoreByBlank:!1,name:er,titleKey:[er,"name"],analysisKey:[er,"analysis"],isOrdered:[er,"is_ordered"],answerKey:[er,"standard_answers"]}),((Mt=rn==null?void 0:rn[er])==null?void 0:Mt.item_type)=="JUDGMENT"&&Vt.createElement(mt,{form:qt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[er,"name"],analysisKey:[er,"analysis"],choiceKey:[er,"choices"]}),((Kt=rn==null?void 0:rn[er])==null?void 0:Kt.item_type)=="SUBJECTIVE"&&Vt.createElement(rt,{showKeywords:!0,isMustKeyWords:!1,form:qt,titleKey:[er,"name"],analysisKey:[er,"analysis"],answerTexts:[er,"answer_texts"],useKeywords:[er,"use_keywords"],keywords:[er,"keywords"],indexs:er,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})),Zt.length<20&&Vt.createElement(Oe.Z,{menu:{items:[{label:Vt.createElement("div",{onClick:()=>{Dn({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"SINGLE"}),On([Zt==null?void 0:Zt.length,...Gn])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:Vt.createElement("div",{onClick:()=>{Dn({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"MULTIPLE"}),On([Zt==null?void 0:Zt.length,...Gn])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:Vt.createElement("div",{onClick:()=>{Dn({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",item_type:"JUDGMENT"}),On([Zt==null?void 0:Zt.length,...Gn])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:Vt.createElement("div",{onClick:()=>{Dn({name:"",analysis:"",is_ordered:!0,standard_answers:[{position:1,answer_text:[""]}],item_type:"COMPLETION",downcase:!0,no_space:!0}),On([Zt==null?void 0:Zt.length,...Gn])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:Vt.createElement("div",{onClick:()=>{Dn({name:"",answer_texts:[],keywords:[],use_keywords:!0,analysis:"",item_type:"SUBJECTIVE"}),On([Zt==null?void 0:Zt.length,...Gn])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(En=>En.show).map(En=>({label:En.label,key:En.key}))}},Vt.createElement("div",{className:`${ct.Z.addBtn}`},"\u6DFB\u52A0\u5C0F\u9898")))}))};var Jt=E(92716)},95097:function(Mn,Yt,E){"use strict";E.d(Yt,{z:function(){return Ue},Z:function(){return Ee}});var y=E(59301),ve=E(48850),ce=E(49142),Le=E(64018),xe=E(17030),ge=E(74128),Se=E(65862),Ne=E(15342),Be=E(44104),fe=E(7939),$e=E(1012),Oe=E(52918),ct=E(59301),Te=({html:We})=>{const Ae=(0,y.useRef)(null),de=(0,y.useRef)(null),wt=`.markdown-body p {
|
|
|
margin: 0 0 16px 0 !important;
|
|
|
line-height: 28px;
|
|
|
white-space: pre-wrap;
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
li {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
dl {
|
|
|
margin-bottom: 0px;
|
|
|
}
|
|
|
|
|
|
.markdown-body {
|
|
|
-ms-text-size-adjust: 100%;
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
color: #333;
|
|
|
overflow: hidden;
|
|
|
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
|
|
|
word-break: break-word;
|
|
|
font-size: 16px;
|
|
|
line-height: 1.6;
|
|
|
white-space: normal;
|
|
|
word-wrap: break-word;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul>li {
|
|
|
list-style-type: disc;
|
|
|
}
|
|
|
|
|
|
.markdown-body ol>li {
|
|
|
list-style-type: decimal;
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
background: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:active,
|
|
|
.markdown-body a:hover {
|
|
|
outline: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body strong {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 2em;
|
|
|
margin: 0.67em 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
-moz-box-sizing: content-box;
|
|
|
box-sizing: content-box;
|
|
|
height: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
overflow: auto;
|
|
|
}
|
|
|
|
|
|
.markdown-body code,
|
|
|
.markdown-body kbd,
|
|
|
.markdown-body pre {
|
|
|
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
color: inherit;
|
|
|
font: inherit;
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body html input[disabled] {
|
|
|
cursor: default;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
line-height: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body input[type="checkbox"] {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
border-collapse: collapse;
|
|
|
border-spacing: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body td,
|
|
|
.markdown-body th {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body * {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
color: #4183c4;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:hover,
|
|
|
.markdown-body a:active {
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
height: 0;
|
|
|
margin: 15px 0;
|
|
|
overflow: hidden;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:before {
|
|
|
display: table;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:after {
|
|
|
display: table;
|
|
|
clear: both;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
margin-top: 15px;
|
|
|
margin-bottom: 15px;
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
font-size: 21px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 11px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding: 0;
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
ul.linenums,
|
|
|
ol.linenums {
|
|
|
padding: 16px 0 0 56px !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding-left: 2em;
|
|
|
}
|
|
|
|
|
|
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ul ol {
|
|
|
list-style-type: lower-roman;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul ol,
|
|
|
.markdown-body ul ol ol,
|
|
|
.markdown-body ol ul ol,
|
|
|
.markdown-body ol ol ol {
|
|
|
list-style-type: lower-alpha;
|
|
|
}
|
|
|
|
|
|
.markdown-body dd {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon {
|
|
|
font: normal normal 16px octicons-anchor;
|
|
|
line-height: 1;
|
|
|
display: inline-block;
|
|
|
text-decoration: none;
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
-webkit-user-select: none;
|
|
|
-moz-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
user-select: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon-link:before {
|
|
|
content: '\f05c';
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:first-child {
|
|
|
margin-top: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:last-child {
|
|
|
margin-bottom: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
display: block;
|
|
|
padding-right: 6px;
|
|
|
padding-left: 30px;
|
|
|
margin-left: -30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor:focus {
|
|
|
outline: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
position: relative;
|
|
|
margin-top: 1em;
|
|
|
margin-bottom: 16px;
|
|
|
font-weight: bold;
|
|
|
line-height: 1.4;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .octicon-link,
|
|
|
.markdown-body h2 .octicon-link,
|
|
|
.markdown-body h3 .octicon-link,
|
|
|
.markdown-body h4 .octicon-link,
|
|
|
.markdown-body h5 .octicon-link,
|
|
|
.markdown-body h6 .octicon-link {
|
|
|
display: none;
|
|
|
color: #000;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor,
|
|
|
.markdown-body h2:hover .anchor,
|
|
|
.markdown-body h3:hover .anchor,
|
|
|
.markdown-body h4:hover .anchor,
|
|
|
.markdown-body h5:hover .anchor,
|
|
|
.markdown-body h6:hover .anchor {
|
|
|
padding-left: 8px;
|
|
|
margin-left: -30px;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor .octicon-link,
|
|
|
.markdown-body h2:hover .anchor .octicon-link,
|
|
|
.markdown-body h3:hover .anchor .octicon-link,
|
|
|
.markdown-body h4:hover .anchor .octicon-link,
|
|
|
.markdown-body h5:hover .anchor .octicon-link,
|
|
|
.markdown-body h6:hover .anchor .octicon-link {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 2.25em;
|
|
|
line-height: 1.2;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 1.75em;
|
|
|
line-height: 1.225;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 1.5em;
|
|
|
line-height: 1.43;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 1.25em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 1em;
|
|
|
color: #777;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul,
|
|
|
.markdown-body ul ol,
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ol ul {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body li>p {
|
|
|
margin-top: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dt {
|
|
|
padding: 0;
|
|
|
margin-top: 16px;
|
|
|
font-size: 1em;
|
|
|
font-style: italic;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dd {
|
|
|
padding: 0 16px;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
padding: 0 15px;
|
|
|
color: #777;
|
|
|
border-left: 4px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :first-child {
|
|
|
margin-top: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :last-child {
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
display: block;
|
|
|
width: 100%;
|
|
|
overflow: auto;
|
|
|
word-break: normal;
|
|
|
word-break: keep-all;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th {
|
|
|
font-weight: bold;
|
|
|
text-align: revert;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th,
|
|
|
.markdown-body table td {
|
|
|
padding: 6px 13px;
|
|
|
border: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr {
|
|
|
background-color: #fff;
|
|
|
border-top: 1px solid #ccc;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr:nth-child(2n) {
|
|
|
background-color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
max-width: 100%;
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
padding: 0;
|
|
|
padding-top: 0.2em;
|
|
|
padding-bottom: 0.2em;
|
|
|
margin: 0;
|
|
|
font-size: 85%;
|
|
|
background-color: rgba(0, 0, 0, 0.04);
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:has(.katex) {
|
|
|
background-color: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:before,
|
|
|
.markdown-body code:after {
|
|
|
letter-spacing: -0.2em;
|
|
|
content: "\\00a0";
|
|
|
}
|
|
|
|
|
|
.markdown-body pre>code {
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
font-size: 100%;
|
|
|
word-break: normal;
|
|
|
white-space: pre;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight {
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre,
|
|
|
.markdown-body pre {
|
|
|
padding: 16px;
|
|
|
overflow: auto;
|
|
|
font-size: 85%;
|
|
|
line-height: 1.45;
|
|
|
background-color: #f7f7f7;
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre {
|
|
|
margin-bottom: 0;
|
|
|
word-break: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
word-wrap: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code {
|
|
|
display: inline;
|
|
|
max-width: initial;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
overflow: initial;
|
|
|
line-height: inherit;
|
|
|
word-wrap: normal;
|
|
|
background-color: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code:before,
|
|
|
.markdown-body pre code:after {
|
|
|
content: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font-size: 11px;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c {
|
|
|
color: #969896;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c1,
|
|
|
.markdown-body .pl-mdh,
|
|
|
.markdown-body .pl-mm,
|
|
|
.markdown-body .pl-mp,
|
|
|
.markdown-body .pl-mr,
|
|
|
.markdown-body .pl-s1 .pl-v,
|
|
|
.markdown-body .pl-s3,
|
|
|
.markdown-body .pl-sc,
|
|
|
.markdown-body .pl-sv {
|
|
|
color: #0086b3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-e,
|
|
|
.markdown-body .pl-en {
|
|
|
color: #795da3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-s1 .pl-s2,
|
|
|
.markdown-body .pl-smi,
|
|
|
.markdown-body .pl-smp,
|
|
|
.markdown-body .pl-stj,
|
|
|
.markdown-body .pl-vo,
|
|
|
.markdown-body .pl-vpf {
|
|
|
color: #333;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ent {
|
|
|
color: #63a35c;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-k,
|
|
|
.markdown-body .pl-s,
|
|
|
.markdown-body .pl-st {
|
|
|
color: #a71d5d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-pds,
|
|
|
.markdown-body .pl-s1,
|
|
|
.markdown-body .pl-s1 .pl-pse .pl-s2,
|
|
|
.markdown-body .pl-sr,
|
|
|
.markdown-body .pl-sr .pl-cce,
|
|
|
.markdown-body .pl-sr .pl-sra,
|
|
|
.markdown-body .pl-sr .pl-sre,
|
|
|
.markdown-body .pl-src {
|
|
|
color: #df5000;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mo,
|
|
|
.markdown-body .pl-v {
|
|
|
color: #1d3e81;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-id {
|
|
|
color: #b52a1d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ii {
|
|
|
background-color: #b52a1d;
|
|
|
color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-sr .pl-cce {
|
|
|
color: #63a35c;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ml {
|
|
|
color: #693a17;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mh,
|
|
|
.markdown-body .pl-mh .pl-en,
|
|
|
.markdown-body .pl-ms {
|
|
|
color: #1d3e81;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mq {
|
|
|
color: #008080;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mi {
|
|
|
color: #333;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mb {
|
|
|
color: #333;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-md,
|
|
|
.markdown-body .pl-mdhf {
|
|
|
background-color: #ffecec;
|
|
|
color: #bd2c00;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdht,
|
|
|
.markdown-body .pl-mi1 {
|
|
|
background-color: #eaffea;
|
|
|
color: #55a532;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdr {
|
|
|
color: #795da3;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item {
|
|
|
list-style-type: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item+.task-list-item {
|
|
|
margin-top: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item input {
|
|
|
float: left;
|
|
|
margin: 0.3em 0 0.25em -1.6em;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body :checked+.radio-label {
|
|
|
z-index: 1;
|
|
|
position: relative;
|
|
|
border-color: #4183c4;
|
|
|
}
|
|
|
|
|
|
|
|
|
/*! Pretty printing styles. Used with prettify.js. */
|
|
|
/* SPAN elements with the classes below are added by prettyprint. */
|
|
|
.pln {
|
|
|
color: #000
|
|
|
}
|
|
|
|
|
|
/* plain text */
|
|
|
|
|
|
@media screen {
|
|
|
.str {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* string content */
|
|
|
.kwd {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a keyword */
|
|
|
.com {
|
|
|
color: #800
|
|
|
}
|
|
|
|
|
|
/* a comment */
|
|
|
.typ {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a type name */
|
|
|
.lit {
|
|
|
color: #066
|
|
|
}
|
|
|
|
|
|
/* a literal value */
|
|
|
/* punctuation, lisp open bracket, lisp close bracket */
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #660
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a markup tag name */
|
|
|
.atn {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a markup attribute name */
|
|
|
.atv {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* a markup attribute value */
|
|
|
.dec,
|
|
|
.var {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a declaration; a variable name */
|
|
|
.fun {
|
|
|
color: red
|
|
|
}
|
|
|
|
|
|
/* a function name */
|
|
|
}
|
|
|
|
|
|
/* Use higher contrast and text-weight for printable form. */
|
|
|
@media print,
|
|
|
projection {
|
|
|
.str {
|
|
|
color: #060
|
|
|
}
|
|
|
|
|
|
.kwd {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.com {
|
|
|
color: #600;
|
|
|
font-style: italic
|
|
|
}
|
|
|
|
|
|
.typ {
|
|
|
color: #404;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.lit {
|
|
|
color: #044
|
|
|
}
|
|
|
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #440
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.atn {
|
|
|
color: #404
|
|
|
}
|
|
|
|
|
|
.atv {
|
|
|
color: #060
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Put a border around prettyprinted code snippets. */
|
|
|
pre.prettyprint {
|
|
|
padding: 2px;
|
|
|
/* border: 1px solid #888 */
|
|
|
}
|
|
|
|
|
|
/* Specify class=linenums on a pre to get line numbering */
|
|
|
ol.linenums {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0
|
|
|
}
|
|
|
|
|
|
/* IE indents via margin-left */
|
|
|
li.L0,
|
|
|
li.L1,
|
|
|
li.L2,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L6,
|
|
|
li.L7,
|
|
|
li.L8 {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
/* Alternate shading for lines */
|
|
|
li.L1,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L7,
|
|
|
li.L9 {
|
|
|
background: #eee
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}`;return(0,y.useEffect)(()=>{const Qe=Ae.current.attachShadow({mode:"open"});de.current=document.createElement("div"),de.current.className="markdown-body",de.current.innerHTML=We,Qe.appendChild(de.current);const Ge=document.createElement("style");return Ge.textContent=wt,Qe.appendChild(Ge),()=>{Qe.innerHTML=""}},[]),(0,y.useEffect)(()=>{de.current&&(de.current.innerHTML=We)},[We]),ct.createElement("div",{ref:Ae})};function we(We){const Ae=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],de=new RegExp(`\\b(${Ae.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return We.replace(de,"").trim()}var Ie={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},Pe=Object.defineProperty,tt=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,Fe=(We,Ae,de)=>Ae in We?Pe(We,Ae,{enumerable:!0,configurable:!0,writable:!0,value:de}):We[Ae]=de,He=(We,Ae)=>{for(var de in Ae||(Ae={}))Et.call(Ae,de)&&Fe(We,de,Ae[de]);if(tt)for(var de of tt(Ae))_e.call(Ae,de)&&Fe(We,de,Ae[de]);return We};const Xe="@\u2581\u2581@",St="@\u2581@",gt=/<pre[^>]*>/g;function ot(We){let Ae=document.createElement("div");return Ae.innerHTML=We,Ae.childNodes.length===0?"":Ae.childNodes[0].nodeValue}const Ue=(We,Ae)=>{We=We||"";const de=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,wt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Qe=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ge=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ae?We.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(de,(st,Ce,be,vt,zt,jt,De)=>{const pt=Ce||vt||jt,ut=be||zt||De||"?";return ge.Z.API_SERVER+"/api/attachments/"+pt+ut+"&t="+(0,Se.Jn)(pt,Date.now())+(st.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(We=We.replace(Ge,(st,Ce,be,vt,zt,jt,De)=>{const pt=Ce||vt||jt,ut=be||zt||De||"?";return ge.Z.API_SERVER+"/attachments/download/"+pt+ut+"&t="+(0,Se.Jn)(pt,Date.now())+(st.indexOf(")")>-1?")":"&")}).replace(de,(st,Ce,be,vt,zt,jt,De)=>{const pt=Ce||vt||jt,ut=be||zt||De||"?";return ge.Z.API_SERVER+"/api/attachments/"+pt+ut+"&t="+(0,Se.Jn)(pt,Date.now())+(st.indexOf(")")>-1?")":"&")}).replace(wt,(st,Ce,be,vt,zt)=>{const jt=Ce||vt,De=be||zt||"";return'"'+ge.Z.API_SERVER+"/api/attachments/"+jt+De+jt+De+"&t="+(0,Se.Jn)(jt,Date.now())}).replace(Qe,(st,Ce,be,vt,zt)=>{const jt=Ce||vt,De=be||zt||"";return"("+ge.Z.API_SERVER+"/files/uploads/"+jt+De+jt+De+"&t="+(0,Se.Jn)(jt,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`),We)};var Ee=({value:We="",edit:Ae=!1,className:de,showTextOnly:wt,showLines:Qe,style:Ge={},stylesPrev:st={},highlightKeywords:Ce,showProgramFill:be,isProgramFill:vt,disabledFill:zt=!1,programFillValue:jt,openEditor:De=()=>{},onFillChange:pt=yt=>{},onFillBlur:ut=()=>{},onFillFocus:Qt=()=>{}})=>{let yt=we(String(We||""));const Ct=(0,y.useRef)(),mt=(0,y.useRef)(),[dn,Ht]=(0,y.useState)(""),[ue,ie]=(0,y.useState)("office"),[re,oe]=(0,y.useState)([]),pe=(0,y.useRef)("a"+(0,$e.Z)()),ae={},me=kt=>/<style[\s\S]*?>/i.test(kt||""),Ze=(kt,Gt,Pt)=>{const Je=document.createElement(kt===St?"input":"textarea");Je.style.width="100%",Je.style.height=kt===St?"40px":"151px",Je.rows=5,Je.spellcheck=!1,Je.name="edu-program-fill",Je.placeholder="\u8BF7\u8F93\u5165",Je.dataset.id=Gt;const It=Object.keys(ae).length;return ae[It]=Je,`<span class="edu-program-fill-wrap ${kt===St?"":"show"}" style="width:${kt===St?"600px":"100%"}" title=${Pt||""}><span>${Je.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Ot(kt){return kt=kt.replace(/!\[.*?\]\(.*?\)/g,""),kt=kt.replace(/\[.*?\]\(.*?\)/g,""),kt=kt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),kt=kt.replace(/<embed.*?>/g,""),kt=kt.replace(/<img.*?>/g,""),kt=kt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),kt=kt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),kt=kt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),kt=kt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),kt}const at=kt=>!wt&&me(yt)?kt:kt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Gt,Pt){let Je=Pt.replace(/(\n|\r)/g,"").split("}"),It=[];return Je.map(tn=>{tn!=""&&It.push(`.${pe.current} ${tn}`)}),`<style>${It.join("}")}</style>`}),qe=(0,y.useMemo)(()=>{try{const Je=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,It=/\"\/api\/attachments\/|\"\/attachments\/download\//g,tn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,mn=/\(\/attachments\/download\//g;yt=yt.replace(mn,"("+ge.Z.API_SERVER+"/attachments/download/").replace(Je,"("+ge.Z.API_SERVER+"/api/attachments/").replace(It,'"'+ge.Z.API_SERVER+"/api/attachments/").replace(tn,'"'+ge.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`),Ct.current.style.display="none"}catch(Je){}if(be){let Je=-1;return yt=yt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(It,tn,mn){var nt;return++Je,Ze(It,Je,(nt=jt==null?void 0:jt[Je])==null?void 0:nt.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${at(yt||"")}</pre>`}let kt=at(yt);kt=(0,ce.ZP)(kt);const Gt=(0,ce.ez)();yt.match(/\[TOC\]/)&&(kt=kt.replace("<p>[TOC]</p>",(0,ce.Qv)()),(0,ce.Iy)()),kt=kt.replace(/(__special_katext_id_\d+__)/g,(Je,It)=>{const{type:tn,expression:mn}=Gt[It];return(0,Ne.renderToString)(ot(mn)||"",{displayMode:tn==="block",throwOnError:!1,output:"html"})}),kt=kt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ce.AL)();const Pt=document.createElement("div");if(Pt.innerHTML=kt,wt)return Pt.innerText;if(Ce){const Je=Ce.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Ye(Pt,Je),Pt.innerHTML}return setTimeout(()=>sn(),500),Pt.innerHTML},[yt,Ce]);(0,y.useEffect)(()=>{rt.current&&rt.current.querySelectorAll(["input","textarea"]).forEach(Gt=>{Gt.oninput=bt,Gt.onblur=At,Gt.onfocus=$t})},[re]),(0,y.useEffect)(()=>{var kt,Gt,Pt,Je,It;if(jt!=null&&jt.length)try{const tn=rt.current.querySelectorAll(".edu-program-fill-score"),mn=rt.current.querySelectorAll('[name="edu-program-fill"]');for(const[nt,Nt]of mn.entries())Nt.value=((kt=jt==null?void 0:jt[nt])==null?void 0:kt.value)||"",((Gt=jt==null?void 0:jt[nt])==null?void 0:Gt.type)==="warning"?Nt.className="program-fill-warning":((Pt=jt==null?void 0:jt[nt])==null?void 0:Pt.type)==="success"?Nt.className="program-fill-success":Nt.className="";for(const[nt,Nt]of tn.entries())Nt.innerHTML=(Je=jt==null?void 0:jt[nt])!=null&&Je.score?`${(It=jt==null?void 0:jt[nt])==null?void 0:It.score}\u5206`:"";oe(jt)}catch(tn){console.log(tn,"error")}},[jt]);const bt=kt=>{re[kt.target.dataset.id]=re[kt.target.dataset.id]||{},re[kt.target.dataset.id].value=kt.target.value,oe([...re]),pt(re,kt.target.dataset.id)},At=kt=>{re[kt.target.dataset.id]=re[kt.target.dataset.id]||{},re[kt.target.dataset.id].value=kt.target.value,oe([...re]),ut(re,kt.target.dataset.id)},$t=kt=>{re[kt.target.dataset.id]=re[kt.target.dataset.id]||{},re[kt.target.dataset.id].value=kt.target.value,oe([...re]),Qt(re,kt.target.dataset.id)};function Ye(kt,Gt){return kt.childNodes.forEach(Pt=>{var Je;if(Pt.childNodes.length>0)Ye(Pt,Gt);else if(Pt.nodeName!=="IMG")if(Pt.innerHTML)Pt.innerHTML=(Je=Pt.innerHTML)==null?void 0:Je.replace(new RegExp(Gt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const It=document.createElement("span");It.innerHTML=Pt.textContent.replace(new RegExp(Gt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Pt.replaceWith(It)}})}const rt=(0,y.useRef)();ce.jb.WebkitLineClamp=Qe,Qe&&(Ge=He(He({},Ge),ce.jb));function Vt(kt){let Gt=kt.target;if(Gt.tagName.toUpperCase()==="A"){let Pt=Gt.getAttribute("href");if(Pt.indexOf("office")>-1)kt.preventDefault(),Ht(Pt),ie("office");else if(Pt.indexOf("application/pdf")>-1)kt.preventDefault(),Ht(Pt),ie("pdf");else if(Pt.indexOf("text/html")>-1)kt.preventDefault(),Ht(Pt),ie("html");else if(Pt.startsWith("#")){kt.preventDefault();let Je=document.getElementById(Pt.replace("#",""));Je&&Je.scrollIntoView(!0)}}}const sn=()=>{var kt;const Gt=(kt=rt.current)==null?void 0:kt.querySelectorAll("video");Gt==null||Gt.forEach(Pt=>{if(Pt.oncontextmenu=()=>!1,Pt.src.indexOf(".m3u8")>-1&&!Pt.canPlayType("application/vnd.apple.mpegurl")){if(xe.ZP.isSupported()){var Je=new xe.ZP;Je.loadSource(Pt.src),Je.attachMedia(Pt)}}})};(0,y.useEffect)(()=>{if(rt.current&&qe&&qe.match(gt)&&window.PR.prettyPrint(),rt.current)return rt.current.addEventListener("click",Vt),()=>{var kt;(kt=rt.current)==null||kt.removeEventListener("click",Vt),(0,ce.AL)(),(0,ce.Iy)()}},[qe,rt.current,Vt]);const wn=kt=>{kt.target.nodeName==="IMG"&&kt.target.className.indexOf("draw-flowchart")>-1?(Ct.current.style.zIndex=1,Ct.current.style.display="flex",Ct.current.style.width=kt.target.clientWidth+"px",Ct.current.style.height=kt.target.clientHeight+"px",Ct.current.style.top=kt.target.offsetTop+"px",Ct.current.style.left=kt.target.offsetLeft+"px",kt.target.id&&(mt.current=kt.target.id)):Ct.current.style.display="none"},pn=()=>{Ct.current.style.display="none"};return(0,y.useEffect)(()=>{var kt;const Gt=Pt=>{Pt.preventDefault(),Pt.clipboardData.setData("text",window.getSelection().toString())};return(kt=rt.current)==null||kt.addEventListener("copy",Gt),()=>{var Pt;(Pt=rt.current)==null||Pt.removeEventListener("copy",Gt)}},[rt.current]),y.createElement("div",{style:{position:"relative"},onMouseLeave:pn},wt&&y.createElement("div",{ref:rt,className:`${Ie.mdBody} `},qe),!wt&&!me(qe)&&y.createElement("div",{ref:rt,style:He({},Ge),onMouseOver:wn,className:`${de||""} ${zt?"disabled-fill":""} markdown-body ${Ie.mdBody} ${pe.current}`,dangerouslySetInnerHTML:{__html:qe}}),!wt&&me(qe)&&y.createElement(Te,{html:qe}),y.createElement("div",{ref:Ct,className:`${Ie.button} ${Ae?"":Ie.previewFlowChart}`},y.createElement(Be.Z,null,y.createElement(fe.ZP,{onClick:()=>{Ae?De(mt.current):(Ht(mt.current),ie("flowChart"))}},Ae?"\u7F16\u8F91":"\u9884\u89C8"))),y.createElement(Oe.Z,{close:!0,data:dn,type:dn!=null&&dn.length?ue:"",style:He({},st),onClose:()=>Ht("")}))}},25965:function(Mn,Yt,E){"use strict";E.d(Yt,{C:function(){return wt}});var y=E(59301),ve={recalculation:"recalculation____i9AE",tips:"tips___GoMu8",filter:"filter___Vx7VO",input:"input___OEMMv",operating:"operating___TS9iA",operatingItem:"operatingItem___AT84q"},ce=E(92310),Le=E.n(ce),xe=E(62673),ge=E(77019),Se=E(6767),Ne=E(25399),Be=E(7939),fe=E(62957),$e=E(70858),Oe=E(4875),ct=E(28284),Ke=E(29787),Te=E(65862),we=E(38147),Ie=E(41867),Pe=E(71067),tt=E(82636),Et=Object.defineProperty,_e=Object.defineProperties,Fe=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,gt=(Qe,Ge,st)=>Ge in Qe?Et(Qe,Ge,{enumerable:!0,configurable:!0,writable:!0,value:st}):Qe[Ge]=st,ot=(Qe,Ge)=>{for(var st in Ge||(Ge={}))Xe.call(Ge,st)&>(Qe,st,Ge[st]);if(He)for(var st of He(Ge))St.call(Ge,st)&>(Qe,st,Ge[st]);return Qe},Ue=(Qe,Ge)=>_e(Qe,Fe(Ge)),Ee=(Qe,Ge,st)=>new Promise((Ce,be)=>{var vt=De=>{try{jt(st.next(De))}catch(pt){be(pt)}},zt=De=>{try{jt(st.throw(De))}catch(pt){be(pt)}},jt=De=>De.done?Ce(De.value):Promise.resolve(De.value).then(vt,zt);jt((st=st.apply(Qe,Ge)).next())});const We=xe.default.Group,Ae=({className:Qe,title:Ge,items:st=[],value:Ce,onChange:be})=>{const vt=(st==null?void 0:st.length)===(Ce==null?void 0:Ce.length),zt=(Ce==null?void 0:Ce.length)>0&&(Ce==null?void 0:Ce.length)<(st==null?void 0:st.length),jt=De=>{const pt=st.map(ut=>ut.id);be(De.target.checked?pt:[])};return y.createElement(ge.Z,{align:"middle",className:Qe},!!Ge&&y.createElement("div",{className:"mr20",style:{color:"#5F6368"}},Ge),y.createElement(xe.default,{indeterminate:zt,onChange:jt,checked:vt},"\u5168\u90E8"),y.createElement(We,{value:Ce,onChange:be},st.map(De=>y.createElement(xe.default,{className:"ml30 c-black",key:De.id,value:De.id},De.name,y.createElement("span",null,`(${De.count})`)))))};var wt=({className:Qe,style:Ge,dataSource:st})=>{var Ce,be,vt,zt,jt,De,pt;const[ut,Qt]=(0,y.useState)({}),[yt,Ct]=(0,y.useState)(!0),[mt,dn]=(0,y.useState)(!1),[Ht,ue]=(0,y.useState)(!1),[ie,re]=(0,y.useState)(null),[oe,pe]=(0,y.useState)(0),[ae,me]=(0,y.useState)({}),[Ze,Ot]=(0,y.useState)(!0),[at,qe]=(0,y.useState)(0),[bt,At]=(0,y.useState)(0),[$t,Ye]=(0,y.useState)(!1),rt=(0,y.useRef)(null),[Vt,sn]=(0,y.useState)(!1),[wn,pn]=(0,y.useState)(!0),[kt,Gt]=(0,y.useState)([]),Pt={page:1,per_page:5,keyword:"",review:[],question_status:[],success_status:[],sort_by:null,direction:null},[Je,It]=(0,y.useState)(ot({},Pt));(0,y.useEffect)(()=>{st!=null&&st.question_id&&Qt(st)},[st==null?void 0:st.question_id]),(0,y.useEffect)(()=>{var Zt;if(((Zt=ut==null?void 0:ut.exercise_question_resubmit)==null?void 0:Zt.status)==="running"){const Dn=setInterval(()=>{nt()},3e3);return()=>clearInterval(Dn)}},[(Ce=ut==null?void 0:ut.exercise_question_resubmit)==null?void 0:Ce.status]),(0,y.useEffect)(()=>{var Zt;Ht&&(Ht===1&&(Je.question_status=Nt.map(Dn=>Dn.value),Je.review=Jt.map(Dn=>Dn.value)),Ht===2&&(Je.exercise_question_resubmit_id=(Zt=ut==null?void 0:ut.exercise_question_resubmit)==null?void 0:Zt.id,ie===1&&(Je.success_status=[1]),ie===2&&(Je.success_status=[0])),It(ot({},Je)),tn(Je),At(ut!=null&&ut.is_mirror?3:10),qe(ut!=null&&ut.is_mirror?1:5))},[Ht]),(0,y.useEffect)(()=>{Vt&&mn()},[Vt]);const tn=Zt=>Ee(void 0,null,function*(){Ct(!0);const Dn=yield(0,we.ZP)(`/api/exercise_questions/${ut==null?void 0:ut.question_id}/resubmit_student_list.json`,{method:"get",params:Zt});(Dn==null?void 0:Dn.status)==0&&(me(Dn||[]),pe(Dn==null?void 0:Dn.count)),Ct(!1)}),mn=()=>Ee(void 0,null,function*(){pn(!0);const Zt=yield(0,we.ZP)(`/api/exercise_questions/${ut==null?void 0:ut.question_id}/resubmit_history.json`,{method:"get"});(Zt==null?void 0:Zt.status)==0&&Gt((Zt==null?void 0:Zt.data)||[]),pn(!1)}),nt=()=>Ee(void 0,null,function*(){const Zt=yield(0,we.ZP)(`/api/exercise_questions/${ut==null?void 0:ut.question_id}/resubmit_status.json`,{method:"get"});(Zt==null?void 0:Zt.status)==0&&Qt(Ue(ot({},ut),{show_resubmit_history:!0,exercise_question_resubmit:(Zt==null?void 0:Zt.data)||{}}))}),Nt=[{label:"\u672A\u8BC4\u6D4B",value:2,color:"#9096A3"},{label:"\u672A\u901A\u5173",value:0,color:"#E30000"},{label:"\u5DF2\u901A\u5173",value:1,color:"#00B187"}],Jt=[{label:"\u672A\u8BC4\u9605",value:0,color:"#9096A3"},{label:"\u8BC4\u9605\u4E2D",value:2,color:"#FF9D18"},{label:"\u5DF2\u8BC4\u9605",value:1,color:"#3061D0"}],xt=[{label:"\u6210\u529F",value:1,color:"#00B187"},{label:"\u5931\u8D25",value:0,color:"#E30000"}],Wt=[{title:"\u5E8F\u53F7",dataIndex:"key",render:(Zt,Dn,nn)=>y.createElement("span",{className:"c-black"},nn+1+(Je.page-1)*Je.per_page)},{title:"\u59D3\u540D",dataIndex:"user_name",render:Zt=>y.createElement("span",{className:"c-black"},Zt)},{title:"\u5B66\u53F7",dataIndex:"student_id",sorter:!0,render:Zt=>y.createElement("span",{className:"c-grey-666"},Zt||"--")},{title:"\u5206\u73ED",dataIndex:"group_name",render:Zt=>y.createElement("span",{className:"c-black"},Zt)},{title:"\u9898\u76EE\u72B6\u6001",dataIndex:"question_status",render:Zt=>{const{label:Dn,color:nn}=Nt.find(Sn=>Sn.value===Zt)||{};return y.createElement("span",{style:{color:nn}},Dn)}},{title:"\u9898\u76EE\u5F97\u5206",dataIndex:"question_score",sorter:!0,render:Zt=>y.createElement("span",{className:"c-black"},Zt)},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",sorter:!0,render:Zt=>y.createElement("span",{className:"c-black"},Zt)},{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"review",render:Zt=>{const{label:Dn,color:nn}=Jt.find(Sn=>Sn.value===Zt)||{};return y.createElement("span",{style:{color:nn}},Dn)}},Ht===2&&{title:"\u91CD\u65B0\u8BC4\u6D4B\u7ED3\u679C",dataIndex:"success_status",render:Zt=>{const{label:Dn,color:nn}=xt.find(Sn=>Sn.value===Zt)||{};return y.createElement("span",{style:{color:nn}},Dn)}}].filter(Boolean),qt=(Zt,Dn,nn)=>{Je.page=Zt==null?void 0:Zt.current,Je.per_page=Zt==null?void 0:Zt.pageSize,nn!=null&&nn.order?(Je.sort_by=nn==null?void 0:nn.field,Je.direction=(nn==null?void 0:nn.order)==="ascend"?"asc":"desc"):(Je.sort_by=null,Je.direction=null),It(ot({},Je)),tn(Je)},Tn=()=>{if(!at){Se.ZP.warning("\u8BF7\u8F93\u5165\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u5E76\u53D1\u4EBA\u6570");return}Ye(!0)},Gn=()=>Ee(void 0,null,function*(){var Zt,Dn;if((Zt=rt.current)!=null&&Zt.onVerify())return;dn(!0);const nn=yield(0,we.ZP)(`/api/exercise_questions/${ut==null?void 0:ut.question_id}/resubmit.json`,{method:"post",body:{keyword:Je.keyword,question_status:Je.question_status,review:Je.review_status,success_status:Je.success_status,use_max_score:Ze,permits:at,exercise_question_resubmit_id:Ht===1?null:(Dn=ut==null?void 0:ut.exercise_question_resubmit)==null?void 0:Dn.id}});(nn==null?void 0:nn.status)==0&&(yield nt(),Se.ZP.success("\u64CD\u4F5C\u6210\u529F"),Ye(!1),ue(!1)),dn(!1)}),On=(Zt,Dn)=>{Je.page=1,Je[Dn]=Zt,It(ot({},Je)),tn(Je)},Hn=["","\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 y.createElement(y.Fragment,null,y.createElement("div",{className:Le()(ve.recalculation,Qe),style:Ge},y.createElement(Ne.Z,{title:Hn[(ut==null?void 0:ut.disable_resubmit_reason)||0]},y.createElement(Be.ZP,{disabled:(ut==null?void 0:ut.disable_resubmit)||((be=ut==null?void 0:ut.exercise_question_resubmit)==null?void 0:be.status)==="running",onClick:()=>ue(1),icon:y.createElement("i",{className:"iconfont icon-zhongxinpingce font14"}),type:"primary",ghost:!0},"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206")),(ut==null?void 0:ut.show_resubmit_history)&&y.createElement(y.Fragment,null,((vt=ut==null?void 0:ut.exercise_question_resubmit)==null?void 0:vt.status)==="running"?y.createElement("div",{className:"c-grey-666"},"\u91CD\u65B0\u8BC4\u6D4B\u4E2D\uFF0C\u5F53\u524D\u8FDB\u5EA6",y.createElement("span",{className:"c-light-primary ml3"},(zt=ut==null?void 0:ut.exercise_question_resubmit)==null?void 0:zt.rate)):y.createElement("div",{className:"c-grey-666"},"\u91CD\u65B0\u8BC4\u6D4B\u6210\u529F",y.createElement("span",{onClick:()=>{ue(2),re(1)},className:"current",style:{color:"#3061D0",textDecoration:"underline",margin:"0 3px"}},(jt=ut==null?void 0:ut.exercise_question_resubmit)==null?void 0:jt.success_student_count),"\u4EBA\uFF0C\u5931\u8D25",y.createElement("span",{onClick:()=>{ue(2),re(2)},className:"current",style:{color:"#E30000",textDecoration:"underline",margin:"0 3px"}},(De=ut==null?void 0:ut.exercise_question_resubmit)==null?void 0:De.fail_count),"\u4EBA"),y.createElement(Ne.Z,{title:"\u64CD\u4F5C\u8BB0\u5F55"},y.createElement("i",{onClick:()=>sn(!0),className:"iconfont icon-chakanshenqingjilu c-light-primary current font14"})))),y.createElement(fe.default,{centered:!0,open:!!Ht,title:`\u91CD\u65B0\u8BC4\u6D4B${Ht===1?"\u7B97\u5206":"\u7ED3\u679C"}`,width:870,okText:"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206",onCancel:()=>ue(!1),onOk:Tn,afterClose:()=>{Ot(!0),re(null),It(ot({},Pt))}},y.createElement("div",{className:ve.filter},Ht===1&&y.createElement(y.Fragment,null,y.createElement("div",{className:ve.tips},y.createElement("div",{className:"mb5",style:{color:"#FF9D18"}},y.createElement("i",{className:"iconfont icon-tishi9 mr10 font14"}),"\u6E29\u99A8\u63D0\u793A"),y.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"),y.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"),y.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")),y.createElement(Ae,{className:"mt10",title:"\u9898\u76EE\u72B6\u6001",items:(ae==null?void 0:ae.question_status)||[],value:Je.question_status,onChange:Zt=>On(Zt,"question_status")}),y.createElement(Ae,{className:"mt10",title:"\u8BC4\u9605\u72B6\u6001",items:(ae==null?void 0:ae.review_status)||[],value:Je.review,onChange:Zt=>On(Zt,"review")})),Ht===2&&y.createElement(y.Fragment,null,y.createElement(Ae,{className:"mt10",title:"\u91CD\u65B0\u8BC4\u6D4B\u7ED3\u679C",items:(ae==null?void 0:ae.success_status)||[],value:Je.success_status,onChange:Zt=>On(Zt,"success_status")})),y.createElement(tt.t7,{className:ve.input,style:{bottom:Ht===1?10:-5},value:Je.keyword,onChange:Zt=>On(Zt,"keyword"),placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22"})),y.createElement($e.default,{className:"mt20",columns:Wt,scroll:((pt=ae==null?void 0:ae.data)==null?void 0:pt.length)>7?{y:300}:{},dataSource:(ae==null?void 0:ae.data)||[],loading:yt,onChange:qt,pagination:{total:oe,pageSize:Je.per_page,current:Je.page,hideOnSinglePage:!oe,showSizeChanger:!0,pageSizeOptions:["5","10","20","50","100"],showQuickJumper:!0,size:"default",showTotal:Te.rU}}),y.createElement(ge.Z,{justify:"space-between",align:"middle",className:"mt10"},y.createElement(xe.default,{className:"c-black",checked:Ze,onChange:Zt=>Ot(Zt.target.checked)},"\u91CD\u65B0\u8BC4\u6D4B\u540E\u7684\u5206\u6570\u5927\u4E8E\u539F\u6765\u7684\u5206\u6570\u624D\u66F4\u65B0\u6210\u7EE9"),(0,Ie.Ny)()&&y.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u5E76\u53D1\u4EBA\u6570",y.createElement(Oe.Z,{className:"ml10 mr10",value:at,max:bt,min:1,precision:0,onChange:Zt=>qe(Zt)}),"\u4EBA",y.createElement(Ne.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"},y.createElement("i",{style:{color:"#9096A3"},className:"iconfont icon-tishi5 font13 ml10"}))))),y.createElement(fe.default,{centered:!0,title:"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206",open:$t,width:494,zIndex:1001,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:mt,destroyOnClose:!0,onOk:Gn,onCancel:()=>Ye(!1)},y.createElement(ct.default.Item,{className:"mb0",colon:!1,label:"\u9A8C\u8BC1\u7801",name:"code",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}]},y.createElement(Pe.Z,{ref:Zt=>rt.current=Zt}))),y.createElement(fe.default,{centered:!0,title:"\u64CD\u4F5C\u8BB0\u5F55",open:Vt,width:710,onCancel:()=>sn(!1),footer:null},y.createElement(Ke.Z,{spinning:wn},y.createElement("div",{className:ve.operating},kt.map((Zt,Dn)=>y.createElement("div",{key:Dn,className:ve.operatingItem},y.createElement("div",{style:{flex:"0 0 180px"},className:"c-grey-666"},Zt==null?void 0:Zt.created_at),y.createElement("div",{className:"c-black"},Zt==null?void 0:Zt.user_name,"\u64CD\u4F5C\u4E86\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206"),(Zt==null?void 0:Zt.status)==="running"?y.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u4E2D\uFF0C\u5F53\u524D\u8FDB\u5EA6",y.createElement("span",{className:"c-light-primary ml3"},Zt==null?void 0:Zt.rate)):y.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u6210\u529F",y.createElement("span",{style:{color:"#3061D0",margin:"0 3px"}},Zt==null?void 0:Zt.success_student_count),"\u4EBA\uFF0C\u5931\u8D25",y.createElement("span",{style:{color:"#E30000",margin:"0 3px"}},Zt==null?void 0:Zt.fail_count),"\u4EBA")))),y.createElement("div",{style:{height:20}}))))}},83028:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Ne}});var y=E(59301),ve={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},ce=E(62957),Le="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",xe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",ge=(Be,fe,$e)=>new Promise((Oe,ct)=>{var Ke=Ie=>{try{we($e.next(Ie))}catch(Pe){ct(Pe)}},Te=Ie=>{try{we($e.throw(Ie))}catch(Pe){ct(Pe)}},we=Ie=>Ie.done?Oe(Ie.value):Promise.resolve(Ie.value).then(Ke,Te);we(($e=$e.apply(Be,fe)).next())}),Ne=({type:Be,resdata:fe,onok:$e,oktext:Oe,okloading:ct})=>{const[Ke,Te]=(0,y.useState)(!1),{can_copy_list:we,can_copy_num:Ie,challenge_type:Pe,course_data_list:tt,no_copy_list:Et,no_copy_num:_e,no_use_list:Fe,no_use_num:He,repeat_shixun_num:Xe,student_count:St,total_num:gt,use_num:ot}=fe;let Ue=Ie>0||Be==="exercise";(0,y.useEffect)(()=>{(fe==null?void 0:fe.student_count)>0&&Te(!0)},[fe]),console.log("---11",ct),(0,y.useEffect)(()=>{ct||Te(!1)},[ct]);const Ee=()=>{if(Be==="exercise"&&Pe===1)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ve.orangeColor},St),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",y.createElement("span",{className:ve.orangeColor},ot),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",y.createElement("span",{className:ve.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(Be==="exercise"&&Pe===2)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ve.orangeColor},St),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",y.createElement("span",{className:ve.orangeColor},ot),"\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",y.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Be==="shixun"&&Pe===1)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ve.orangeColor},St),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",y.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Be==="shixun"&&Pe===2)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ve.orangeColor},St),"\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",y.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Be==="subject"&&Pe===1)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ve.orangeColor},St),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",y.createElement("span",{className:ve.orangeColor},ot),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",y.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Be==="subject"&&Pe===2)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",y.createElement("span",{className:ve.orangeColor},St)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",y.createElement("span",{className:ve.orangeColor},ot)," \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",y.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Be==="exercisepush")return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ve.orangeColor},St),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",y.createElement("span",{className:ve.orangeColor},ot),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",y.createElement("span",{className:ve.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(Be==="shixunpush"&&Pe===1)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ve.orangeColor},St),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",y.createElement("span",{className:ve.orangeColor},ot),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",y.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Be==="shixunpush"&&Pe===2)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ve.orangeColor},St),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",y.createElement("span",{className:ve.orangeColor},ot),"\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",y.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},We=()=>{if(Be==="exercise"||Be==="subject"||Be==="exercisepush"||Be==="shixunpush")return y.createElement("div",{style:{marginTop:20}},_e>0&&y.createElement("div",null,y.createElement("span",{className:ve.flex},y.createElement("img",{src:xe,style:{width:14}}),y.createElement("span",{className:ve.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),y.createElement("div",{className:ve.statusbody},Be==="exercise"&&y.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",y.createElement("span",{className:ve.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"),(Be==="subject"||Be==="exercisepush")&&y.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Ue&&y.createElement("span",{className:ve.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"),Be==="shixunpush"&&y.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Ue&&y.createElement("span",{className:ve.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"),y.createElement("div",null,Et==null?void 0:Et.map((Ae,de)=>y.createElement("a",{href:`/shixuns/${Ae.identifier}/challenges`,target:"_blank"},"\u300A",Ae==null?void 0:Ae.name,"\u300B",de+1!==_e&&"\u3001"))))),Ie>0&&y.createElement("div",{style:{marginTop:20}},y.createElement("span",{className:ve.flex},y.createElement("img",{src:Le,style:{width:14}}),y.createElement("span",{className:ve.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),y.createElement("div",{className:ve.statusbody},Be==="exercise"&&y.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"),(Be==="subject"||Be==="exercisepush")&&y.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"),Be==="shixunpush"&&y.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"),y.createElement("div",null,we==null?void 0:we.map((Ae,de)=>y.createElement("a",{href:`/shixuns/${Ae.identifier}/challenges`,target:"_blank"},"\u300A",Ae==null?void 0:Ae.name,"\u300B",de+1!==Ie&&"\u3001"))))));if(Be==="shixun")return y.createElement("div",{style:{marginTop:20}},Ie>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 y.createElement(ce.default,{open:Ke,onCancel:()=>{Te(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!Ue&&"none"}},zIndex:1003,confirmLoading:ct,okText:Ue?Oe:"\u6211\u77E5\u9053\u4E86",onOk:()=>ge(void 0,null,function*(){Ue?yield $e([...we,...Fe]):Te(!1)})},y.createElement("div",{style:{maxHeight:600,overflow:"auto"}},Ee(),We()))}},88436:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return ge}});var y=E(59301),ve={btn:"btn___kReTL",redBtn:"redBtn___UFEL0"},ce=E(92310),Le=E.n(ce),ge=({className:Se,style:Ne,state:Be,onClick:fe})=>{var $e,Oe;return y.createElement("div",{onClick:fe,className:Le()(Be?($e=ve)==null?void 0:$e.redBtn:(Oe=ve)==null?void 0:Oe.btn,Se),style:Ne},Be?y.createElement(y.Fragment,null,y.createElement("i",{className:"iconfont icon-biaoji1"}),y.createElement("span",null,"\u53D6\u6D88\u6807\u8BB0\u9519\u9898")):y.createElement(y.Fragment,null,y.createElement("i",{className:"iconfont icon-biaojigaiti"}),y.createElement("span",null,"\u6807\u8BB0\u9519\u9898")))}},85533:function(Mn,Yt,E){"use strict";E.d(Yt,{h:function(){return _e}});var y=E(59301),ve=E(82326),ce=E(28284),Le=E(7939),xe=E(89780),ge=E.n(xe),Se=E(45559),Ne=E(42313),Be=Object.defineProperty,fe=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,Te=(Fe,He,Xe)=>He in Fe?Be(Fe,He,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):Fe[He]=Xe,we=(Fe,He)=>{for(var Xe in He||(He={}))ct.call(He,Xe)&&Te(Fe,Xe,He[Xe]);if(Oe)for(var Xe of Oe(He))Ke.call(He,Xe)&&Te(Fe,Xe,He[Xe]);return Fe},Ie=(Fe,He)=>fe(Fe,$e(He));const Pe=ve.default.Option,tt={labelCol:{span:4},wrapperCol:{span:20}},Et={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Yt.Z=({callback:Fe,onCancel:He})=>{const[Xe,St]=(0,y.useState)("python");function gt(Ue){St(Et[Ue][1])}function ot(Ue){Fe(Ue)}return y.createElement(ce.default,Ie(we({},tt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ot,style:{width:500}}),y.createElement(ce.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},y.createElement(ve.default,{getPopupContainer:Ue=>Ue.parentNode,onChange:gt},Object.keys(Et).map(Ue=>y.createElement(Pe,{key:Ue,value:Ue},Et[Ue][0])))),y.createElement(ce.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},y.createElement(_e,{mode:Xe})),y.createElement("div",{className:"flex-container flex-end"},y.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),y.createElement(Le.ZP,{type:"ghost",onClick:He},"\u53D6\u6D88")))};function _e({value:Fe,onChange:He,mode:Xe,options:St={}}){const gt=(0,y.useRef)(),[ot,Ue]=(0,y.useState)();return(0,y.useEffect)(()=>{if(ot){let Ee=function(We){const Ae=We.getValue();He&&He(Ae)};return ot.on("change",Ee),()=>{ot.off("change",Ee)}}},[ot,He]),(0,y.useEffect)(()=>{ot&&ot.setOption("mode",Xe)},[ot,Xe]),(0,y.useEffect)(()=>{ot&&(Fe!==ot.getValue()||Fe==="")&&setTimeout(()=>{ot.setValue(Fe||"")},300)},[ot,Fe]),(0,y.useEffect)(()=>{if(gt.current&&!ot){const Ee=ge().fromTextArea(gt.current,we({mode:Xe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},St));Ue(Ee)}},[gt.current,ot]),y.createElement("div",{className:"my-codemirror-container"},y.createElement("textarea",{ref:gt}))}},25374:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Sn}});var y=E(59301),ve=E(65582),ce=E(89780),Le=E.n(ce),xe=E(76374),ge=E(45559),Se=E(6313),Ne=E(25717),Be=E(99498),fe=E(25419),$e=E(67549),Oe=E(95097),ct=({value:rn="",className:En,showTextOnly:xn,showLines:Vn,style:sr={}})=>{const er=(0,y.useMemo)(()=>"",[rn]);return y.createElement(y.Fragment,null,y.createElement("div",{dangerouslySetInnerHTML:{__html:er}}))},Ke=Object.defineProperty,Te=Object.defineProperties,we=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,Et=(rn,En,xn)=>En in rn?Ke(rn,En,{enumerable:!0,configurable:!0,writable:!0,value:xn}):rn[En]=xn,_e=(rn,En)=>{for(var xn in En||(En={}))Pe.call(En,xn)&&Et(rn,xn,En[xn]);if(Ie)for(var xn of Ie(En))tt.call(En,xn)&&Et(rn,xn,En[xn]);return rn},Fe=(rn,En)=>Te(rn,we(En));let He=[{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\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",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 Xe({onActionCallback:rn,title:En,icon:xn,actionName:Vn,className:sr="",children:er}){function cr(){rn(Vn)}return y.createElement("a",{title:En,className:sr,onClick:cr},y.createElement("i",{className:`${xn}`}),er)}var St=({watch:rn,showNullButton:En,showNullProgramButton:xn,onActionCallback:Vn,fullScreen:sr,insertTemp:er,hidetoolBar:cr,extraUse:Dr})=>{const mr=[...He,{title:`${rn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${rn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return y.createElement("ul",{className:"markdown-toolbar-container"},!cr&&mr.map((Hr,Lr)=>y.createElement("li",{key:Lr},Hr.actionName?y.createElement(Xe,Fe(_e({},Hr),{onActionCallback:Vn})):y.createElement("span",{className:"v-line"}))),En?y.createElement("li",null,y.createElement(Xe,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Vn},y.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,xn?y.createElement(y.Fragment,null,y.createElement("li",null,y.createElement(Xe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Vn},y.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),y.createElement("li",null,y.createElement(Xe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Vn},y.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,er&&y.createElement("li",null,y.createElement(Xe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${er}`,onActionCallback:Vn},y.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Dr&&y.createElement("li",null,Dr),y.createElement("li",{className:"btn-full-screen"},y.createElement(Xe,{icon:`${sr?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:sr?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Vn})))},gt=E(57261),ot=E(28284),Ue=E(37568),Ee=E(7939),We=Object.defineProperty,Ae=Object.defineProperties,de=Object.getOwnPropertyDescriptors,wt=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,st=(rn,En,xn)=>En in rn?We(rn,En,{enumerable:!0,configurable:!0,writable:!0,value:xn}):rn[En]=xn,Ce=(rn,En)=>{for(var xn in En||(En={}))Qe.call(En,xn)&&st(rn,xn,En[xn]);if(wt)for(var xn of wt(En))Ge.call(En,xn)&&st(rn,xn,En[xn]);return rn},be=(rn,En)=>Ae(rn,de(En));const vt={labelCol:{span:4},wrapperCol:{span:20}};var zt=({callback:rn,onCancel:En})=>{function xn(Vn){rn(Vn)}return y.createElement(ot.default,be(Ce({},vt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:xn,style:{width:500}}),y.createElement(ot.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},y.createElement(Ue.default,null)),y.createElement(ot.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},y.createElement(Ue.default,null)),y.createElement("div",{className:"flex-container flex-end"},y.createElement(Ee.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),y.createElement(Ee.ZP,{type:"ghost",onClick:En},"\u53D6\u6D88")))},jt=E(85533),De=E(45053),pt=E(62957),ut=E(77019),Qt=E(16750),yt=E(59301),Ct=({callback:rn,onCancel:En})=>{const xn=document.createElement("canvas"),Vn=xn.getContext("2d");xn.width=1e3,xn.height=800,Vn.fillStyle="#ffffff",Vn.fillRect(0,0,xn.width,xn.height);const sr=xn.toDataURL("image/png");return yt.createElement(pt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},yt.createElement(ut.Z,{style:{height:"100vh"}},yt.createElement(Qt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:sr,visible:!0,title:String(Date.now())},onOk:er=>{rn({src:er.url})},onClose:En})))},mt=E(36207),dn=E(5269),Ht=E(6767),ue={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},ie=E(59301),oe=(0,y.forwardRef)(({onCancel:rn,editImgId:En,callback:xn},Vn)=>{let sr=(0,y.useRef)(),er=(0,y.useRef)(),cr=(0,y.useRef)(),Dr=(0,y.useRef)(!1);const mr=(0,y.useRef)(!1);console.log("ref:",Vn);const[Hr,Lr]=(0,y.useState)(0),[An,Rn]=(0,y.useState)("100vh");return(0,y.useEffect)(()=>{Lr(1)},[]),(0,y.useImperativeHandle)(Vn,()=>({setHeight:Rn})),ie.createElement("div",{ref:mr,className:"body-overflow-initial"},ie.createElement(mt.Z,{width:"100vw",height:An,footer:null,closable:!0,placement:"bottom",open:!!Hr,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ue.drawerWrap}`,onClose:()=>{window.saveDrawData(dr=>{xn({src:`/api/attachments/${dr}`,id:dr})})},title:ie.createElement(ut.Z,{align:"middle"},ie.createElement(dn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ie.createElement(dn.Z,{onClick:()=>{Rn(An==="60px"?"100vh":"60px")}},ie.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ie.createElement(dn.Z,{onClick:()=>{window.saveDrawData(dr=>{if(dr===null){Ht.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}Ht.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),xn({src:`/api/attachments/${dr}`,id:dr,disabledClose:!0})})}},ie.createElement(Ee.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ie.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${En||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:er})))}),pe=E(74128),ae=E(47889),me=E(4875);const Ze=ae.ZP.Group,Ot={margin:"0 8px"};var at=({callback:rn,onCancel:En})=>{function xn(Vn){rn(Vn)}return y.createElement(ot.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:xn},y.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},y.createElement("span",{style:Ot},"\u5355\u5143\u683C\u6570\uFF1A"),y.createElement("span",{style:Ot},"\u884C\u6570"),y.createElement(ot.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},y.createElement(me.Z,null)),y.createElement("span",{style:Ot},"\u5217\u6570"),y.createElement(ot.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},y.createElement(me.Z,null))),y.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},y.createElement("span",{style:Ot},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),y.createElement(ot.default.Item,{name:"align"},y.createElement(Ze,null,y.createElement(ae.ZP,{value:"default"},y.createElement("i",{className:"fa fa-align-justify"})),y.createElement(ae.ZP,{value:"left"},y.createElement("i",{className:"fa fa-align-left"})),y.createElement(ae.ZP,{value:"center"},y.createElement("i",{className:"fa fa-align-center"})),y.createElement(ae.ZP,{value:"right"},y.createElement("i",{className:"fa fa-align-right"}))))),y.createElement("div",{className:"flex-container flex-end"},y.createElement(Ee.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),y.createElement(Ee.ZP,{type:"ghost",onClick:En},"\u53D6\u6D88")))},qe=E(58755),bt=E(93510),At=E.n(bt),Ye=(0,y.forwardRef)(({use3d:rn,width:En,height:xn,callback:Vn,showSaveButton:sr},er)=>{const cr=(0,y.useRef)(),Dr=(0,y.useRef)(),[mr,Hr]=(0,y.useState)(!1),Lr=(0,y.useRef)({id:cr,appName:"graphing",width:En||1e3,height:xn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,y.useEffect)(()=>{Dr.current=new(At())(Lr.current,!0),window.onload=function(){Dr.current.inject("applet_container")}},[]);const An=()=>{var Rn=window.ggbApplet.getPNGBase64(1,!0,72);return Vn&&Vn(Rn),Rn};return(0,y.useEffect)(()=>{Lr.current.appName=mr?"3D":"graphing",Dr.current.inject("applet_container")},[mr]),(0,y.useEffect)(()=>{Hr(rn)},[rn]),(0,y.useImperativeHandle)(er,()=>({getImgData:An})),y.createElement(y.Fragment,null,y.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:cr}),y.createElement(ut.Z,{align:"middle"},y.createElement(dn.Z,{flex:1},y.createElement(qe.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:mr,onChange:Rn=>Hr(Rn)})),y.createElement(dn.Z,null,y.createElement(Ee.ZP,{size:"large",onClick:An,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),rt=E(99298);const Vt="link",sn="upload-image",wn="add-flowchart",pn="draw-image",kt="add-flowchart",Gt="code-block",Pt="add-table",Je="------------",It={default:Je,left:`:${Je}`,center:`:${Je}:`,right:`${Je}:`};var tn=E(31103),mn=E(65862);function nt(){}let Nt=0;const Jt=1e4,xt="\u2581",Wt="@\u2581\u2581@",qt="@\u2581@",Tn=`
|
|
|
**\u6A21\u677F\u6807\u9898**
|
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,Gn=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function On(rn){return/^\d+$/.test(rn)?`${rn}px`:rn}const Zt=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Dn={[Zt+"-B"]:"bold",[Zt+"-I"]:"italic"},nn={[Vt]:"\u6DFB\u52A0\u94FE\u63A5",[Gt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[sn]:"\u6DFB\u52A0\u56FE\u7247",[pn]:"\u6DFB\u52A0\u753B\u56FE",[wn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Pt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Sn=({defaultValue:rn="",onChange:En,width:xn="100%",height:Vn=400,miniToolbar:sr=!1,isFocus:er=!1,watch:cr,insertTemp:Dr,mode:mr="markdown",id:Hr="markdown-editor-id",showResizeBar:Lr=!1,noStorage:An=!1,showNullButton:Rn=!1,showNullProgramButton:dr=!1,hidetoolBar:vr=!1,fullScreen:Mt=!1,onBlur:Kt,onCMBeforeChange:ft,onFullScreen:Rt,className:it="",disablePaste:ht=!1,disabled:fn=!1,disabledFill:ar=!1,placeholder:pr="",values:Ft="",extraUse:Tt,onAddBlank:_t})=>{const[Ut,Fn]=(0,y.useState)(null),[zn,Un]=(0,y.useState)(rn),[jn,gr]=(0,y.useState)(cr),[Ir,Mr]=(0,y.useState)(Mt),[Zr,Er]=(0,y.useState)(""),[Rr,Xr]=(0,y.useState)(0),[oa,ta]=(0,y.useState)(Vn),[xa,Fa]=(0,y.useState)(!1),[Gr,ya]=(0,y.useState)(0),[Xa,Ia]=(0,y.useState)(0),pa=(0,y.useRef)(),kr=(0,y.useRef)(),Za=(0,y.useRef)(),Sa=(0,y.useRef)(),la=(0,y.useRef)(),Kr=(0,y.useRef)(),Ya=(0,ve.useDispatch)();(0,y.useEffect)(()=>{const br=window.scrollY||window.pageYOffset;Un(Ft),Ut==null||Ut.setValue(Ft),window.scrollTo(0,br)},[Ft]),(0,y.useEffect)(()=>{Rt==null||Rt(Ir)},[Ir]),(0,y.useEffect)(()=>{if(pa.current){let br=function($r,Qr){var Ta;if(ht){Qr.preventDefault();return}const ja=Qr.clipboardData;if(ja){const ea=ja.types.toString(),ai=ja.items;if(ea==="Files"||ja.types.indexOf("Files")>-1){if(Qr.preventDefault(),mr=="stex")return;try{let yi=ai[1];((Ta=ai[0])==null?void 0:Ta.kind)==="file"&&(yi=ai[0]);const zi=yi.getAsFile(),Gi=zi.name.split(".").pop();(0,De.I)(zi,Ji=>{var Yi,co,No;Ji.id?((Yi=zi==null?void 0:zi.type)==null?void 0:Yi.indexOf("image"))>-1?Br.replaceSelection(`<img width="100%" src="/api/attachments/${Ji.id}?type=${Ji.content_type})" alt="" />`):((co=zi==null?void 0:zi.type)==null?void 0:co.indexOf("video"))>-1?Br.replaceSelection(`<video width="100%" controls src="/api/attachments/${Ji.id}"></video>`):((No=zi==null?void 0:zi.type)==null?void 0:No.indexOf("pdf"))>-1?Br.replaceSelection(`<a href="/api/attachments/${Ji.id}?type=${zi.type}&disposition=inline" target="_blank">${zi.name}</a>`):Gn.includes(Gi)?Br.replaceSelection(`<a href="/api/attachments/${Ji.id}?type=office&disposition=inline" target="_blank">${zi.name}</a>`):Br.replaceSelection(`[${zi.name}](/api/attachments/${Ji.id}?type=${Ji.content_type})`):(Ji==null?void 0:Ji.status)===401&&(document.location.href="/user/login")})}catch(yi){Ht.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Br=Le().fromTextArea(pa.current,{mode:mr,lineNumbers:!sr,lineWrapping:!0,value:rn,autoCloseTags:!0,autoCloseBrackets:!0});return Br.on("keyup",function($r,Qr){Qr.keyCode===8&&($r.getValue()==""?Br.setOption("placeholder",pr):Br.setOption("placeholder",null))}),Br.on("keydown",function($r,Qr){if(Qr.keyCode===8){var Ta=$i($r);Ta&&Qr.preventDefault()}}),er&&Br.focus(),Br.on("paste",br),fn&&Br.on("beforeChange",function($r,Qr){(Qr.origin==="paste"||Qr.origin==="+input")&&Qr.cancel()}),Fn(Br),()=>{Br.off("paste",br)}}},[]);const _i=(0,y.useCallback)(()=>{if(kr.current)try{}catch(br){console.log(br,"---- to set md editor body height")}},[oa,kr,Ir]);(0,y.useEffect)(()=>{function br(){let Br=new xe.Z($r=>{for(let Qr of $r)(Qr.target.offsetHeight>0||Qr.target.offsetWidth>0)&&(_i(),Ut.setSize("100%","100%"),Ut.refresh())});return Br.observe(pa.current.parentElement),Br}if(Ut){const Br=br();return()=>{var $r,Qr;($r=pa.current)!=null&&$r.parentElement&&Br.unobserve((Qr=pa.current)==null?void 0:Qr.parentElement)}}},[Ut,_i]),(0,y.useEffect)(()=>{if(Ut){let br=[];for(const[Br,$r]of Object.entries(Dn)){let Qr={[Br]:()=>{za($r)}};br.push(Qr),Ut.addKeyMap(Qr)}return()=>{for(let Br of br)Ut.removeKeyMap(Br)}}},[Ut]),(0,y.useEffect)(()=>{Mt!==Ir&&Mr(Mt)},[Mt]),(0,tn.Z)(()=>{if(!An&&Rr>0){let br=new Date().getTime(),Br=window.sessionStorage.getItem(Hr);br>=Rr+Jt&&(!Br||Br!==zn)&&(window.sessionStorage.setItem(Hr,zn),Fa(!0))}},Jt),(0,y.useEffect)(()=>{gr(cr)},[Ut,cr]),(0,y.useEffect)(()=>{Ut&&er&&Ut.focus()},[Ut,er]),(0,y.useEffect)(()=>{if(jn&&Ut){let br=function($r){let Qr=$r.target;if(Sa.current){let Ta=Qr.scrollTop/Qr.scrollHeight;Sa.current.scrollTop=Sa.current.scrollHeight*Ta}};const Br=Ut.getScrollerElement();return Br.addEventListener("scroll",br),()=>{Br.removeEventListener("scroll",br)}}},[Ut,jn]),(0,y.useEffect)(()=>{if(Ut&&ft){let br=function(Br,$r){ft(Br,$r)};return Ut.on("beforeChange",br),()=>{Ut.off("beforeChange",br)}}},[Ut,ft]),(0,y.useEffect)(()=>{if(Ut&&Kt){let br=function(){Kt(Ut.getValue())};return Ut.on("blur",br),()=>{Ut.off("blur",br)}}},[Ut,Kt]);function $i(br,Br){var $r=br.getDoc(),Qr=$r.getCursor(),Ta=$r.getLine(Qr.line),ja=Ta.charAt(Qr.ch-1),ea=Ta.lastIndexOf("@\u2581@",Qr.ch),ai=Ta.lastIndexOf("@\u2581\u2581@",Qr.ch),yi=ea>ai?ea:ai,zi=ea>ai?3:4;if(Wt.indexOf(ja)===-1)return null;if(console.log("change1:",Br,br,Ta,Qr,yi,ea,ai,ja),yi>=0&&Qr.ch-yi<5){var Gi=yi+zi;return $r.replaceRange("",{line:Qr.line,ch:yi},{line:Qr.line,ch:Gi}),{line:Qr.line,ch:Gi}}return null}(0,y.useEffect)(()=>{if(Ut){let br=function(Br,$r){const Qr=Br.getValue();Un(Qr),Xr(new Date().getTime()),Br.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),En&&(dr?En(Qr,Cr(Qr)):En(Qr))};return Ut.on("change",br),()=>{Ut.off("change",br)}}},[Ut,En]),(0,y.useEffect)(()=>{if(Ut)if(rn==null)Ut.setValue(""),Un("");else{const br=window.scrollY||window.pageYOffset;rn!==Ut.getValue()&&(Ut.setValue(rn),Un(rn),Ut.setCursor(fn?1:Ut.lineCount(),0),window.scrollTo(0,br))}},[Ut,rn]);const za=(0,y.useCallback)(br=>{const Br=Ut.getCursor(),$r=Ut.getSelection();let Qr=$r.split(`
|
|
|
`);switch(br){case"bold":return Ut.replaceSelection("**"+$r+"**"),$r===""&&Ut.setCursor(Br.line,Br.ch+2),Ut.focus();case"italic":return Ut.replaceSelection("*"+$r+"*"),$r===""&&Ut.setCursor(Br.line,Br.ch+1),Ut.focus();case"code":return Ut.replaceSelection("`"+$r+"`"),$r===""&&Ut.setCursor(Br.line,Br.ch+1),Ut.focus();case"inline-latex":return(0,mn.Ye)(Ya)?void 0:(Er("inline-latex"),Ut.focus());case"latex":return Ut.replaceSelection("```latex\n"+$r+"\n```"),Ut.setCursor(Br.line+1,$r.length+1),Ut.focus();case"line-break":return Ut.replaceSelection(`<br/>
|
|
|
`),Ut.focus();case"list-ul":return $r===""?Ut.replaceSelection("- "+$r):Ut.replaceSelection(Qr.map(Ta=>Ta===""?"":`- ${Ta}`).join(`
|
|
|
`)),Ut.focus();case"list-ol":return $r===""?Ut.replaceSelection("1. "+$r):Ut.replaceSelection(Qr.map((Ta,ja)=>Ta===""?"":`${ja+1}. ${Ta}`).join(`
|
|
|
`)),Ut.focus();case"add-null-ch":_t==null||_t();return;case"add-signal":return $r===""&&Ut.setCursor(Br.line,Br.ch),Ut.replaceSelection(qt),Ut.focus();case"add-multiple":return $r===""&&Ut.setCursor(Br.line,Br.ch),Ut.replaceSelection(Wt),Ut.focus();case"inster-template-1":return $r===""&&Ut.setCursor(Br.line,Br.ch),Ut.replaceSelection(Tn),Ut.focus();case"eraser":return Ut.setValue(""),Ut.focus();case"trigger-watch":return gr(!jn),Ut.focus();case"trigger-full-screen":return Mr(!Ir),Ut.focus();case Vt:Er(Vt);return;case Gt:Er(Gt);return;case sn:Er(sn);return;case pn:Er(pn);return;case"maths-latex":if((0,mn.Ye)(Ya))return;Er("maths-latex");return;case wn:la.current="",sessionStorage.removeItem("file_id"),Er(wn);return;case Pt:Er(Pt);return;default:throw new Error}},[Ut,jn,Ir]),Di=(0,y.useCallback)((br,Br)=>{var $r,Qr,Ta,ja,ea,ai;br!=null&&br.disabledClose||Er("");const{src:yi,alt:zi,id:Gi}=br||{};switch(Zr){case Vt:const{title:jo,link:Wo}=br;return Ut.replaceSelection(`[${jo}](${Wo})`),Ut.focus();case Gt:const{language:Da,content:Fi}=br;return Ut.replaceSelection(["```"+Da,Fi,"```"].join(`
|
|
|
`)),Ut.focus();case"maths-latex":for(var Ji=atob(br),Yi=new Uint8Array(Ji.length),co=0;co<Ji.length;co++)Yi[co]=Ji.charCodeAt(co);var No=new Blob([Yi],{type:"image/png"});(0,De.I)(No,Vo=>{Vo.id?Ut.replaceSelection(``):(Vo==null?void 0:Vo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,mn.Ye)(Ya))return;Ut.replaceSelection("`$$"+br+"$$`");break;case kt:if(!Gi)return;Ut.getValue().indexOf(yi)===-1?Ut.replaceSelection(`<center><img id="${Gi}" width="80%" src="${yi}" class="draw-flowchart" alt="${zi||""}" /></center>`):document.getElementById(Gi).src=pe.Z.API_SERVER+yi+"?t="+Date.now();break;case sn:case pn:const ri=Br,So=(Ta=(Qr=($r=ri==null?void 0:ri.name)==null?void 0:$r.split("."))==null?void 0:Qr.pop)==null?void 0:Ta.call(Qr);return((ja=ri==null?void 0:ri.type)==null?void 0:ja.indexOf("image"))>-1||!(ri!=null&&ri.type)?ri!=null&&ri.align||ri!=null&&ri.width?Ut.replaceSelection(`<p style="text-align:${ri.align||"initial"}"><img width="${ri.width?ri.width+"%":"initial"}" src="${yi}" alt="${zi||""}" /></p>`):Ut.replaceSelection(`<img width="100%" src="${yi}" alt="${zi||""}" />`):((ea=ri==null?void 0:ri.type)==null?void 0:ea.indexOf("video"))>-1?Ut.replaceSelection(`<video width="100%" controls src="${yi}"></video>`):((ai=ri==null?void 0:ri.type)==null?void 0:ai.indexOf("pdf"))>-1?Ut.replaceSelection(`<a href="${yi}?type=${ri.type}&disposition=inline" target="_blank">${ri.name}</a>`):Gn.includes(So)?Ut.replaceSelection(`<a href="${yi}?type=office&disposition=inline" target="_blank">${ri.name}</a>`):Ut.replaceSelection(`[${ri.name}](${yi})`),Ut.focus();case Pt:const{row:di,col:il,align:jl}=br;let Pl=`
|
|
|
`;for(let Vo=0;Vo<di;Vo++){let Yo=[],no=[];for(let Ol=0;Ol<il;Ol++)Vo===1&&no.push(It[jl]),Yo.push(" ");Vo===1&&(Pl+=`| ${no.join(" | ")} |
|
|
|
`),Pl+=`| ${Yo.join(il===1?"":" | ")} |
|
|
|
`}return Ut.replaceSelection(Pl+`
|
|
|
`),Ut.focus();default:throw new Error}},[Ut,Zr]),pi=(0,y.useMemo)(()=>{switch(Zr){case Vt:return y.createElement(zt,{callback:Di,onCancel:Wi});case Gt:return y.createElement(jt.Z,{callback:Di,onCancel:Wi});case sn:return y.createElement(De.Z,{callback:Di,onCancel:Wi});case wn:return y.createElement(oe,{editImgId:la.current,callback:Di,onCancel:Wi});case Pt:return y.createElement(at,{callback:Di,onCancel:Wi});case"maths-latex":return y.createElement(Ye,{showSaveButton:!0,callback:Di});case"inline-latex":return y.createElement(rt.Z,{showSaveButton:!0,callback:Di});default:return null}},[Zr]);function Wi(){Er("")}(0,y.useEffect)(()=>{if(Za.current){let br=function(ea){Ta=!0,ja=ea.pageY},Br=function(){Ta=!1},$r=function(ea){if(Ta){let ai=ea.pageY-ja;ai<0&&(ai=0),ai>300&&(ai=300);let yi=Vn+ai+"px";ta(yi)}},Qr=Za.current,Ta=!1,ja=0;return Qr.addEventListener("mousedown",br),document.addEventListener("mousemove",$r),document.addEventListener("mouseup",Br),()=>{Qr.removeEventListener("mousedown",br),document.removeEventListener("mousemove",$r),document.removeEventListener("mouseup",Br)}}},[Ut,Za]),(0,y.useEffect)(()=>{ta(Vn)},[Vn]);const Ci=On(xn),ei=On(oa),Pr={width:Ci,height:ei},Qn=(0,y.useMemo)(()=>{if(Rr){let br=new Date(Rr),Br=br.getHours(),$r=br.getMinutes(),Qr=br.getSeconds();return Br=Br<10?"0"+Br:Br,$r=$r<10?"0"+$r:$r,Qr=Qr<10?"0"+Qr:Qr,`${Br}:${$r}:${Qr}`}return 0},[Rr]),Cr=br=>{const Br=[];if(dr){let $r=-1;br=br.replace(/(@▁▁@|@▁@)/g,function(Qr,Ta,ja){Br.push({multiLine:Qr!==qt})})}return Br};function xr(){window.sessionStorage.removeItem(Hr),Fa(!1),Xr(0)}function tr(){Fa(!1),Xr(0),Ut.setValue(window.sessionStorage.getItem(Hr))}(0,y.useEffect)(()=>{nn[Zr]&&Zr!==pn&&Zr!==wn&&setTimeout(()=>{const br=document.getElementsByClassName("markdown-popup-form")[0],Br=window.innerWidth/2-br.offsetWidth/2,$r=window.innerHeight/2-br.offsetHeight/2;ya(Br),Ia($r)},0)},[Zr]);const jr=br=>{br.preventDefault();const Br=br.clientX-Gr,$r=br.clientY-Xa;document.body.onmousemove=Qr=>{let Ta=Qr.clientX-Br,ja=Qr.clientY-$r;const ea=document.getElementsByClassName("markdown-popup-form")[0],ai=window.innerWidth-ea.offsetWidth,yi=window.innerHeight-ea.offsetHeight;Ta=Math.max(0,Math.min(Ta,ai)),ja=Math.max(0,Math.min(ja,yi)),sa(Qr.clientX,Qr.clientY,Br,$r)&&(ya(Ta),Ia(ja))},document.body.onmouseup=function(){document.body.onmousemove=null}},sa=(br,Br,$r,Qr)=>{const Ta=document.body.clientHeight,ja=document.body.clientWidth;return br<20&&$r>br||br>ja-20&&$r<br||Br<20&&Qr>Br||Br>Ta-20&&Qr<Br?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return y.createElement(y.Fragment,null,y.createElement("div",{className:"markdown-editor-wrapper",ref:kr},y.createElement("div",{className:`markdown-editor-container ${it} ${jn?"on-preview":""} ${sr?"mini":""} ${Ir?"full-screen":""}`,style:Pr},y.createElement(St,{insertTemp:Dr,watch:jn,fullScreen:Ir,showNullButton:Rn,showNullProgramButton:dr,onActionCallback:za,hidetoolBar:vr,extraUse:Tt}),y.createElement("div",{className:"markdown-editor-body"},y.createElement("div",{className:"codemirror-container"},y.createElement("textarea",{ref:pa,placeholder:pr})),jn?y.createElement("div",{ref:Sa,className:"preview-container"},mr==="stex"&&y.createElement(ct,{value:zn}),mr!=="stex"&&y.createElement(Oe.Z,{edit:!0,disabledFill:ar,showProgramFill:dr,value:zn,openEditor:br=>{var Br;la.current=br,(Br=Kr.current)==null||Br.setHeight("100vh"),setTimeout(()=>{Er("add-flowchart")},150)}})):null))),Lr?y.createElement("a",{ref:Za,className:"editor-resize"}):null,Zr===pn&&y.createElement(Ct,{callback:Di,onCancel:Wi}),Zr===wn&&y.createElement(oe,{ref:Kr,editImgId:la.current,callback:Di,onCancel:Wi}),y.createElement(gt.Z,null,nn[Zr]&&Zr!==pn&&Zr!==wn?y.createElement(pt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Gr,top:Xa},title:y.createElement("div",{style:{cursor:"move"},onMouseDown:jr},nn[Zr]),open:!0,onCancel:Wi,footer:null,destroyOnClose:!0,width:Zr===wn?"1200px":null,height:Zr===wn?"80vh":null,className:"markdown-popup-form"},pi):null))}},45053:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return He},I:function(){return St}});var y=E(28284),ve=E(6767),ce=E(37568),Le=E(44104),xe=E(4875),ge=E(47889),Se=E(7939),Ne=E(28735),Be=E(59301),fe=E(59301),$e=Object.defineProperty,Oe=Object.defineProperties,ct=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,Ie=(gt,ot,Ue)=>ot in gt?$e(gt,ot,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):gt[ot]=Ue,Pe=(gt,ot)=>{for(var Ue in ot||(ot={}))Te.call(ot,Ue)&&Ie(gt,Ue,ot[Ue]);if(Ke)for(var Ue of Ke(ot))we.call(ot,Ue)&&Ie(gt,Ue,ot[Ue]);return gt},tt=(gt,ot)=>Oe(gt,ct(ot));const{useForm:Et}=y.default,_e={width:280,marginRight:10},Fe={labelCol:{span:5},wrapperCol:{span:19}};var He=({callback:gt,onCancel:ot})=>{const[Ue]=Et();let Ee=(0,Be.useRef)();function We(wt){Ee.current.width=Ue.getFieldValue("width"),Ee.current.align=Ue.getFieldValue("align"),gt(wt,Ee.current)}function Ae(wt,Qe){if(wt.status===-1){ve.ZP.error(wt.message);return}Ue.setFieldsValue({src:`/api/attachments/${wt.id}`,type:Qe.type})}function de(wt){let Qe=wt.target.files[0];Ee.current=Qe,St(Qe,Ae)}return fe.createElement(y.default,tt(Pe({form:Ue},Fe),{className:"upload-image-panel",onFinish:We,style:{width:470,overflow:"hidden"}}),fe.createElement(y.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},fe.createElement("div",{className:"flex-container"},fe.createElement(y.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},fe.createElement(ce.default,{style:_e})),fe.createElement(Xe,{onFileChange:de}))),fe.createElement(y.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},fe.createElement(ce.default,{style:{width:264}})),fe.createElement(y.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},fe.createElement(Le.Z,null,fe.createElement(y.default.Item,{name:"width",style:{margin:0}},fe.createElement(xe.Z,{style:{width:264}})),fe.createElement("span",{className:"ml8"},"%"))),fe.createElement(y.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},fe.createElement(ge.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"}]})),fe.createElement("aside",null,fe.createElement(y.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},fe.createElement(Se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),fe.createElement(Se.ZP,{type:"default",onClick:ot},"\u53D6\u6D88"))))};function Xe({onFileChange:gt}){return fe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",fe.createElement("input",{type:"file",onChange:gt}))}function St(gt,ot){if(!gt)throw new String("\u6CA1\u6709\u6587\u4EF6");let Ue=new FormData;Ue.append("editormd-image-file",gt),Ue.append("file_param_name","editormd-image-file"),Ue.append("byxhr","true");var Ee=new window.XMLHttpRequest;Ee.withCredentials=!0,Ee.addEventListener("load",function(We){ot(JSON.parse(We.target.responseText),gt)},!1),Ee.addEventListener("error",function(We){console.error(We)},!1),Ee.open("POST",`${Ne.KI}/api/attachments.json`),Ee.send(Ue)}},57261:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return ce}});var y=E(59301),ve=E(4676);class ce extends y.Component{constructor(xe){super(xe);const ge=window.document;this.node=ge.createElement("div"),ge.body.appendChild(this.node)}render(){const{children:xe}=this.props;return(0,ve.createPortal)(xe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},50258:function(Mn,Yt,E){"use strict";E.d(Yt,{SV:function(){return Ct},ZP:function(){return yt}});var y=E(59301),ve=E(76374);const ce={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Le={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
|
|
|
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
|
|
|
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
|
|
|
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},xe={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
|
`)},{label:"using namespace std",content:["using namespace std"].join(`
|
|
|
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
|
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
|
`)}]},ge={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
|
|
|
`)}]},Se={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
|
|
|
`)}]};var Ne=E(53184),Be=E.n(Ne),fe=(mt,dn,Ht)=>new Promise((ue,ie)=>{var re=ae=>{try{pe(Ht.next(ae))}catch(me){ie(me)}},oe=ae=>{try{pe(Ht.throw(ae))}catch(me){ie(me)}},pe=ae=>ae.done?ue(ae.value):Promise.resolve(ae.value).then(re,oe);pe((Ht=Ht.apply(mt,dn)).next())});const $e={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},Oe=(mt,dn,Ht,ue)=>{const ie=dn.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Ht.lineNumber,endColumn:Ht.column});return Array.from(new Set(ie.match(/\b\w{2,}\b/g)||[])).map(oe=>({label:oe,kind:mt.languages.CompletionItemKind.Text,insertText:oe,range:ue}))},ct=(mt,dn,Ht,ue)=>{mt.languages.registerCompletionItemProvider(dn,{provideCompletionItems(ie,re){const oe=ie.getWordUntilPosition(re),pe={startLineNumber:re.lineNumber,endLineNumber:re.lineNumber,startColumn:oe.startColumn,endColumn:oe.endColumn},ae=ie.getLineContent(re.lineNumber).substring(oe.startColumn-2,oe.endColumn);return{suggestions:[...Oe(mt,ie,re,pe),...Ht.map(Ze=>({label:Ze,kind:mt.languages.CompletionItemKind.Keyword,documentation:Ze,insertText:Ze,insertTextRules:mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pe})),...ue.map(Ze=>({label:Ze.label,kind:mt.languages.CompletionItemKind.Snippet,documentation:Ze.content,insertText:ae.startsWith("#")?Ze.content.replace(/#/,""):Ze.content,insertTextRules:mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pe}))]}}})};var Ke=mt=>{$e.languages.forEach(dn=>{mt.languages.registerDocumentFormattingEditProvider(dn,{provideDocumentFormattingEdits(Ht){return fe(this,null,function*(){const ue=Be()(Ht.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:Ht.getFullModelRange(),text:ue}]})}})}),ct(mt,"java",Le.keywords,Le.quickKey),ct(mt,"cpp",xe.keywords,xe.quickKey),ct(mt,"c",ce.keywords,[]),ct(mt,"python",ge.keywords,ge.quickKey),ct(mt,"scala",Se.keywords,Se.quickKey)};const Te="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var we=Object.defineProperty,Ie=(mt,dn,Ht)=>dn in mt?we(mt,dn,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):mt[dn]=Ht,Pe=(mt,dn,Ht)=>Ie(mt,typeof dn!="symbol"?dn+"":dn,Ht);const tt=class Uc{constructor(dn,Ht,ue){this.placeholder=dn,this.editor=Ht,this.monaco=ue,Ht.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Uc.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};Pe(tt,"ID","editor.widget.placeholderHint");var _e=tt,Fe=E(96236),He=E(6767),Xe=E(25399),St=E(89392),gt=E(77254),ot=E(56102),Ue=Object.defineProperty,Ee=Object.defineProperties,We=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,Qe=(mt,dn,Ht)=>dn in mt?Ue(mt,dn,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):mt[dn]=Ht,Ge=(mt,dn)=>{for(var Ht in dn||(dn={}))de.call(dn,Ht)&&Qe(mt,Ht,dn[Ht]);if(Ae)for(var Ht of Ae(dn))wt.call(dn,Ht)&&Qe(mt,Ht,dn[Ht]);return mt},st=(mt,dn)=>Ee(mt,We(dn)),Ce=(mt,dn)=>{var Ht={};for(var ue in mt)de.call(mt,ue)&&dn.indexOf(ue)<0&&(Ht[ue]=mt[ue]);if(mt!=null&&Ae)for(var ue of Ae(mt))dn.indexOf(ue)<0&&wt.call(mt,ue)&&(Ht[ue]=mt[ue]);return Ht},be=(mt,dn,Ht)=>new Promise((ue,ie)=>{var re=ae=>{try{pe(Ht.next(ae))}catch(me){ie(me)}},oe=ae=>{try{pe(Ht.throw(ae))}catch(me){ie(me)}},pe=ae=>ae.done?ue(ae.value):Promise.resolve(ae.value).then(re,oe);pe((Ht=Ht.apply(mt,dn)).next())});function vt(mt){return/^\d+$/.test(mt)?`${mt}px`:mt}function zt(){}let jt=!1;const De={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function pt(mt=[]){let dn=mt;if(Array.isArray(mt)){for(let Ht=0;Ht<mt.length;Ht++){let ue=De[mt[Ht]];if(ue)return ue}return dn[0]}return De[dn]||dn}let ut=null;const Qt=()=>be(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(mt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",mt)}});var yt=mt=>{var dn=mt,{width:Ht="100%",height:ue="100%",value:ie,language:re="javascript",style:oe={},options:pe={},overrideServices:ae={},theme:me="vs-dark",onEditBlur:Ze,isCopy:Ot=!1,onSave:at,autoHeight:qe=!1,forbidCopy:bt=!1,forbidCopyTips:At,onChange:$t=zt,editorDidMount:Ye=zt,onFocus:rt=zt,onBreakPoint:Vt=zt,breakPointValue:sn=[],filename:wn="educoder.txt",errorLine:pn,errorContent:kt="",highlightLine:Gt,openBreakPoint:Pt=!1,placeholder:Je="",showMiniMap:It=!0}=dn,tn=Ce(dn,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","forbidCopyTips","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const mn=(0,y.useRef)(),nt=(0,y.useRef)({}),Nt=(0,y.useRef)(),Jt=(0,y.useRef)(),xt=(0,y.useRef)([]),Wt=(0,y.useRef)(!1),qt=(0,y.useRef)(),Tn=(0,y.useRef)(),Gn=(0,y.useRef)(!1),[On,Hn]=(0,y.useState)(!1);function Zt(){let An;return mn.current&&(An=new ve.Z(Rn=>{for(let dr of Rn)(dr.target.offsetHeight>0||dr.target.offsetWidth>0)&&nt.current.instance.layout()}),An.observe(mn.current)),An}function Dn(){He.ZP.warning({content:decodeURIComponent(At||Te),key:"monaco-editor-tip"})}const nn=()=>{let An=nt.current.instance;if(ie!=null&&An&&On){const Rn=An.getModel();Rn&&ie!==Rn.getValue()&&(jt=!0,Rn.setValue(ie),An.layout(),jt=!1)}};(0,y.useEffect)(()=>{const An=gt.Z.subscribe("formatDocument",Rn=>{var dr;let vr=nt.current.instance;(dr=vr==null?void 0:vr.getAction)==null||dr.call(vr,"editor.action.formatDocument").run()});return window.updateMonacoValue=Rn=>{$t(Rn)},An},[]),(0,y.useEffect)(()=>{var An;let Rn=nt.current.instance;Jt.current&&clearTimeout(Jt.current),Jt.current=setTimeout(()=>{nn()},500),ie&&(ie!=null&&ie.length)&&((An=Rn==null?void 0:Rn.updateOptions)==null||An.call(Rn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ie.split(/\r\n|\r|\n/g).length))+3,5)}))},[ie,On,nt.current]),(0,y.useEffect)(()=>{if(pn&&nt.current&&nt.current.instance){let Rn=nt.current.instance;Rn.changeViewZones(function(dr){var vr=document.createElement("div");vr.style.padding="10px 20px",vr.style.width="calc(100% - 20px)",vr.className="my-error-line-wrp",vr.innerHTML=kt,dr.addZone({afterLineNumber:pn||11,heightInLines:3,domNode:vr})});var An={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Rn.addOverlayWidget(An),Rn.revealPositionInCenter({lineNumber:20,column:1})}},[pn,nt.current,On]);const Sn=(An="",Rn)=>{if(!An||An.trim()==="")return!0;const vr=nt.current.instance.getModel().getLineTokens(Rn);let Mt=!1;for(let Kt=0;Kt<2;Kt++)vr.getStandardTokenType(Kt)===1&&(Mt=!0);return Mt};(0,y.useEffect)(()=>{var An;const Rn=(An=nt.current)==null?void 0:An.instance;if(Rn&&On&&bt){const dr=Rn.onDidBlurEditorWidget(()=>{Gn.current=!1}),vr=Rn.onDidFocusEditorText(()=>{Gn.current=!0});return()=>{dr.dispose(),vr.dispose()}}},[nt.current,On,bt]),(0,y.useEffect)(()=>{var An;if((An=nt.current)!=null&&An.instance&&On&&Pt){let Rn=nt.current.instance,dr=Rn.getModel();if(!dr)return;(()=>{var Tt;let _t=[],Ut=[];const Fn=dr.getAllDecorations();for(let Un of Fn)Un.options.className==="highlighted-line"&&(_t.push((Tt=Un==null?void 0:Un.range)==null?void 0:Tt.startLineNumber),Ut.push(Un==null?void 0:Un.id));if(Gt===_t[0])return;dr.deltaDecorations(Ut,[]);const zn=dr.getLineCount();Gt&&Gt<=zn&&(Rn.deltaDecorations([],[{range:new ut.Range(Gt,1,Gt,dr.getLineMaxColumn(Gt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Rn.revealLineInCenter(Gt))})();const Mt=(Tt=!1)=>{var _t;let Ut=[],Fn=[];const zn=dr.getAllDecorations();for(let Un of zn)Un.options.linesDecorationsClassName==="breakpoints-select"&&(Ut.push((_t=Un==null?void 0:Un.range)==null?void 0:_t.startLineNumber),Fn.push(Un==null?void 0:Un.id));if(Tt)return{lines:Ut,ids:Fn};Vt(Ut)},Kt=Tt=>be(void 0,null,function*(){let _t={range:new ut.Range(Tt,1,Tt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield dr.deltaDecorations([],[_t]),Mt()}),ft=Tt=>be(void 0,null,function*(){let _t=[];const Ut=Rn.getLineDecorations(Tt);for(let Fn of Ut)Fn.options.linesDecorationsClassName==="breakpoints-select"&&_t.push(Fn.id);yield dr.deltaDecorations(_t,[]),Mt()}),Rt=Tt=>{let _t=Rn.getLineDecorations(Tt);for(let Ut of _t)if(Ut.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,St.isEqual)(sn,Mt(!0).lines)){dr.deltaDecorations(Mt(!0).ids,[]);const Tt=sn.map(_t=>({range:new ut.Range(_t,1,_t,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));dr.deltaDecorations([],Tt)}const it=Rn.onDidChangeModelContent(Tt=>{let _t=Rn.getPosition();if(_t){let Ut=_t.lineNumber;clearTimeout(Tn.current),Tn.current=setTimeout(()=>{Sn(dr.getLineContent(Ut),Ut)?ft(Ut):Rt(Ut)?(ft(Ut),Kt(Ut)):Mt()},100)}}),ht=Rn.onMouseDown(Tt=>{var _t,Ut,Fn;if(Tt.target.detail&&((Fn=(Ut=(_t=Tt.target)==null?void 0:_t.element)==null?void 0:Ut.className)!=null&&Fn.includes("line-numbers"))){let zn=Tt.target.position.lineNumber;if(Sn(dr.getLineContent(zn),zn))return;Rt(zn)?ft(zn):Kt(zn)}}),fn=Tt=>{let _t={range:new ut.Range(Tt,1,Tt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};xt.current=Rn.deltaDecorations(xt.current,[_t])},ar=()=>{xt.current=Rn.deltaDecorations(xt.current,[])},pr=Rn.onMouseMove(Tt=>{var _t,Ut,Fn;if(ar(),Tt.target.detail&&((Fn=(Ut=(_t=Tt.target)==null?void 0:_t.element)==null?void 0:Ut.className)!=null&&Fn.includes("line-numbers"))){let zn=Tt.target.position.lineNumber;if(Sn(dr.getLineContent(zn),zn))return;fn(zn)}}),Ft=Rn.onMouseLeave(()=>{ar()});return()=>{it.dispose(),ht.dispose(),pr.dispose(),Ft.dispose()}}},[nt.current,On,sn,Gt,Pt,re]),(0,y.useEffect)(()=>{var An;(An=nt.current)!=null&&An.instance&&Pt&&nt.current.instance.setPosition({lineNumber:0,column:0})},[Gt]);function rn(){let An=nt.current.instance;if(An){const Rn=An.getSelection(),dr=nt.current.pastePos||{},vr=new ut.Range(dr.startLineNumber||Rn.endLineNumber,dr.startColumn||Rn.endColumn,dr.endLineNumber||Rn.endLineNumber,dr.endColumn||Rn.endColumn);setTimeout(()=>{An.executeEdits("",[{range:vr,text:""}])},300)}}function En(An){(window.navigator.platform.match("Mac")?An.metaKey:An.ctrlKey)&&An.keyCode==83&&(An.preventDefault(),at())}const xn=()=>{if(qe&&nt.current.instance){const An=nt.current.instance.getContentHeight();Hr(An<ue?ue:An)}else Hr(ue)};function Vn(An){var Rn=document.createEvent("MouseEvents");Rn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),An.dispatchEvent(Rn)}const sr=An=>{if(!Gn.current)return;const{keyCode:Rn,ctrlKey:dr,metaKey:vr,target:Mt,type:Kt}=An;return(Kt==="paste"||(Rn===67||Rn===86)&&(vr||dr))&&Mt.nodeName==="TEXTAREA"&&(Dn(),An.preventDefault()),!1};function er(An,Rn){var dr=window.URL||window.webkitURL||window,vr=new Blob([Rn]),Mt=document.createElementNS("http://www.w3.org/1999/xhtml","a");Mt.href=dr.createObjectURL(vr),Mt.download=An,Vn(Mt)}(0,y.useEffect)(()=>{xn()},[xn]),(0,y.useEffect)(()=>{mn.current&&!On&&Promise.all([E.e(8909),E.e(2460)]).then(E.bind(E,71448)).then(An=>{try{ut=An,nt.current.instance=ut.editor.create(mn.current,{value:ie,language:pt(re),theme:me,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:It||!1}},ae);const Rn=nt.current.instance;let Mt=[...Fe.BH._menuItems].find(it=>it[0]._debugName=="EditorContext")[1],Kt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ft=(it,ht)=>{var fn,ar;let pr=it._first;do ht.includes((ar=(fn=pr.element)==null?void 0:fn.command)==null?void 0:ar.id)&&it._remove(pr);while(pr=pr.next)};if(Ye(Rn,ut),setTimeout(()=>{xn(),nt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{er(wn||"educoder.txt",Rn.getValue())}})},500),nt.current.subscription=Rn.onDidChangeModelContent(it=>{Wt.current?clearTimeout(qt.current):(xn(),$t(Rn.getValue(),it)),qt.current=setTimeout(()=>{Wt.current=!1},500)}),window.Monaco||Ke(ut,pt(re)),bt&&(ft(Mt,Kt),mn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",sr),window.removeEventListener("paste",sr),window.addEventListener("keydown",sr),window.addEventListener("paste",sr)),window.Monaco=ut,Ze&&Rn.onDidBlurEditorWidget(()=>{Ze(Rn.getValue())}),rt&&Rn.onDidFocusEditorText(()=>{bt&&Qt(),rt(Rn.getValue())}),bt){Qt();try{Rn.onDidPaste(it=>{const ht=Rn.getSelection(),fn=nt.current.pastePos||{},ar=new ut.Range(fn.startLineNumber||ht.endLineNumber,fn.startColumn||ht.endColumn,fn.endLineNumber||ht.endLineNumber,fn.endColumn||ht.endColumn);Rn.executeEdits("",[{range:it.range,text:""}])})}catch(it){}}let Rt=Zt();return Je&&typeof Je=="string"&&new _e(Je,Rn,ut),Hn(!0),()=>{const it=nt.current.instance;it.dispose();const ht=it.getModel();ht&&ht.dispose(),nt.current.subscription&&nt.current.subscription.dispose(),Rt.unobserve(mn.current)}}catch(Rn){}})},[]),(0,y.useEffect)(()=>{if(nt.current.instance&&On)return document.addEventListener("keydown",En,!1),()=>{document.removeEventListener("keydown",En)}},[at,On]),(0,y.useEffect)(()=>{let An=nt.current.instance;if(An&&On){let Rn=pt(re);ut.editor.setModelLanguage(An.getModel(),Rn)}},[re,On]),(0,y.useEffect)(()=>{nt.current.instance&&On&&ut.editor.setTheme(me)},[me,On]),(0,y.useEffect)(()=>{let An=nt.current.instance;Nt.current=pe,An&&On&&(An.updateOptions(Ge({},pe)),setTimeout(()=>{An.getModel().updateOptions(Ge({},pe))},200))},[JSON.stringify(pe),On]),(0,y.useEffect)(()=>{let An=nt.current.instance;An&&On&&An.layout()},[Ht,ue,On]);const[cr,Dr]=(0,y.useState)(vt(Ht)),[mr,Hr]=(0,y.useState)(vt(ue)),Lr=st(Ge({},oe),{width:cr,height:mr,position:"relative"});return y.createElement("div",{className:"my-monaco-editor",ref:mn,style:Lr,onFocus:()=>{bt&&Qt()}},Ot&&y.createElement(ot.CopyToClipboard,{text:ie,onCopy:()=>He.ZP.success("\u590D\u5236\u6210\u529F")},y.createElement(Xe.Z,{title:"\u590D\u5236\u4EE3\u7801"},y.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},y.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Ct({width:mt="100%",height:dn="100%",original:Ht,modified:ue,language:ie,options:re={}}){const oe=(0,y.useRef)(),[pe,ae]=(0,y.useState)(null);function me(qe){let bt;return oe.current&&(bt=new ve.Z(At=>{for(let $t of At)($t.target.offsetHeight>0||$t.target.offsetWidth>0)&&qe.layout()}),bt.observe(oe.current)),bt}(0,y.useEffect)(()=>(oe.current&&Promise.all([E.e(8909),E.e(9404)]).then(E.bind(E,2550)).then(qe=>{ut=qe;const bt=ut.editor.createDiffEditor(oe.current,st(Ge({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},re),{wordWrap:!0}));ae(bt);let At=me(bt);return()=>{bt.dispose();const $t=bt.getModel();$t&&$t.dispose(),At.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,y.useEffect)(()=>{pe&&pe.setModel({original:ut.editor.createModel(Ht,ie),modified:ut.editor.createModel(ue,ie)})},[Ht,ue,ie,pe]);const Ze=vt(mt),Ot=vt(dn),at={width:Ze,height:Ot};return y.createElement("div",{className:"my-diff-editor",ref:oe,style:at})}},61584:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return $e}});var y={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",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},ve=E(29787),ce=E(25399),Le=E(89787),xe=E(92310),ge=E.n(xe),Se=E(65862),Ne=E(2524),Be=E(59301),$e=({className:Oe,dataSource:ct=[],col:Ke=4,right:Te,bottom:we=23,precision:Ie=0,wrapWidth:Pe=1200,trackEventItems:tt,loading:Et,onRemove:_e=()=>{},isCurrent:Fe=!0,showProgress:He=!1,showAlias:Xe=!1,category:St,hiddenClick:gt})=>{const ot=Math.floor((Pe-(Ke-1)*Te)/Ke),Ue=[{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"}];return Be.createElement(ve.Z,{spinning:Et},Be.createElement("div",{className:ge()(y.list,Oe)},!!(ct!=null&&ct.length)&&(ct==null?void 0:ct.map((Ee,We)=>{var Ae,de,wt,Qe,Ge,st,Ce,be,vt,zt,jt,De,pt;const{name:ut,id:Qt,identifier:yt,featured:Ct,school_name:mt,image_url:dn,excellent:Ht,is_plan:ue}=Ee;return Be.createElement("div",{key:Qt,className:Fe&&He?y.wrapisCurrent:y.wrap,style:{width:ot,marginRight:(1+We)%Ke===0?0:Te+Ie,marginBottom:we}},Be.createElement("a",{className:y.li,onClick:ie=>{ie.preventDefault(),ie.stopPropagation(),tt&&(0,Se.L9)([tt]),(0,Se.xg)(`/paths/${yt}`)}},Be.createElement("div",{className:y.img},Be.createElement("img",{className:y.cover,src:`${dn}`}),(Ae=Ee==null?void 0:Ee.subject_tags)==null?void 0:Ae.map((ie,re)=>{var oe,pe;if(re===0){const me=(oe=Ue.find(Ze=>Ze.name==ie))==null?void 0:oe.swimg;return Be.createElement("img",{className:y.sign,src:me,style:{left:"-4px"}})}const ae=(pe=Ue.find(me=>me.name==ie))==null?void 0:pe.ptimg;return Be.createElement("img",{className:y.sign,src:ae,style:{left:`${48+52*(re-1)+2*re}px`}})}),Be.createElement("div",{className:y.tagsDom},Be.createElement("div",{className:"flex flex-wrap gap-10px item-center"},(Ee==null?void 0:Ee.excellent)&&Be.createElement("div",{className:y.bq},"\u5F00\u653E\u8BFE\u7A0B"),((de=Ee==null?void 0:Ee.custom_tags)==null?void 0:de.length)>0&&Be.createElement(ce.Z,{title:(Ge=(Qe=Ee==null?void 0:Ee.custom_tags)==null?void 0:Qe[((wt=Ee==null?void 0:Ee.custom_tags)==null?void 0:wt.length)-1])==null?void 0:Ge.tag_name},Be.createElement("div",{className:"px-6px rounded-2px c-white h-16px flex item-center",style:{maxWidth:"62px",background:"#3061D0",border:"0.5px solid #8FAFF8"}},Be.createElement("span",{className:"multi-llipsis1e text-10px"},(be=(Ce=Ee==null?void 0:Ee.custom_tags)==null?void 0:Ce[((st=Ee==null?void 0:Ee.custom_tags)==null?void 0:st.length)-1])==null?void 0:be.tag_name))))),St=="hide"&&(Ee==null?void 0:Ee.studying)&&Fe&&Be.createElement("div",{className:`${y.movebq} user-path-items`,onClick:ie=>{ie.stopPropagation(),_e(Ee)}},Be.createElement("i",{className:"iconfont icon-yichu1 font12"}),Be.createElement("span",null,"\u79FB\u9664")),!["collect","payed"].includes(St)&&Fe&&Be.createElement("div",{className:`${y.hiddenbq} user-path-items`,onClick:ie=>{ie.stopPropagation(),gt(Ee)}},Be.createElement("i",{className:`iconfont ${St=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Be.createElement("span",null,St=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),Be.createElement("div",{className:y.name},Be.createElement(ce.Z,{title:Xe&&(Ee!=null&&Ee.excellent_alias_name)?Be.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ut}`,Be.createElement("br",null),Be.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Ee==null?void 0:Ee.excellent_alias_name}`)):ut},Be.createElement("span",{className:y.e},Xe&&(Ee==null?void 0:Ee.excellent_alias_name)||ut))),Fe&&He&&((vt=Ee==null?void 0:Ee.progress)==null?void 0:vt.all_score)!=0&&Be.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Be.createElement(Le.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((zt=Ee==null?void 0:Ee.progress)==null?void 0:zt.my_score)/((jt=Ee==null?void 0:Ee.progress)==null?void 0:jt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(De=Ee==null?void 0:Ee.progress)==null?void 0:De.my_score,"/",(pt=Ee==null?void 0:Ee.progress)==null?void 0:pt.all_score),(!Fe||!He)&&Be.createElement(ce.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${mt}`},Be.createElement("div",{className:y.unit},Be.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),mt)),(!Fe||!He)&&Be.createElement("div",{className:y.tags},Be.createElement("div",null,Be.createElement(ce.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Be.createElement("span",null,Be.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Be.createElement("span",null,Ee.stages_count))),Be.createElement(ce.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Be.createElement("span",null,Be.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Be.createElement("span",null,Ee.members_count)))))))})),!ct.length&&Be.createElement(Ne.Z,null)))}},82636:function(Mn,Yt,E){"use strict";E.d(Yt,{jL:function(){return xe},w9:function(){return vt},QD:function(){return wn},cQ:function(){return Qe.Z},op:function(){return At},O5:function(){return Dn},_b:function(){return It},t7:function(){return Pe},Gi:function(){return Qt},YG:function(){return pt},qp:function(){return $e},vr:function(){return Gt},qE:function(){return rt},Je:function(){return _e},wb:function(){return wt},cq:function(){return ue},tp:function(){return Ke}});var y=E(59301),ve={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},ce="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4XsaKMTTsiwDKVXZjm1qsgRBU84TXi5VXqo24/syP5ce2xEg0gBDeAZWFijo79JnpLQxXSo7iICiIyD8qUfdxuQRRx24x5MvB95uBzfW1G+XFn4GoMMojQNOYWUK45b+jG9mW+PvFNAKEkqVYgI583VZcOB7WRrCqGwiaQovU1lAlaXKM/BMQNIGbN0FLGh0lySCVv0OP3aPOnKf2a2XCm+3ghuc1AvzOdwmLSwIwkQlBoxMtgZYCkvwQLafBYo0l2v6gBcCxRxQyifwM9PckRCniXIGbjo8wiI4bgnRRFul0XAZMABbaggVoytvo12vff7Qt/Rc8LqBm5jQndrBr3MFHOwyemaJbGaaAKzMp00zV2O+6VVnSTCPcYCNdrItEGAOcKxpVUQKLjPZ6VHVgEuf3Kf/rLk0Y4ViTpiAEUYKJaEgVDg2OTq1+j3r5w68FHi7TXFDU/El1Yr8VLudDM4IjUpLVWW2Mg0GgubybATNfN/0C5+eqjQ9oO0ngAmR0ZF5X2bKjLRZBUFgNE03AKhcPqk62wJsm+qjvyM4Aa0idFN1zcmvHraq90uvObihqej4YsH6nzCEyHwRB0WFZeZJ05xupsZSp6sty+2mXX2a/5rP0fT8MAHRZpmWph48J38zi6xUF1Vqft9KAg2BES6PmyChGGFTBVJ1kb/dq7XeeuTBs0deLLxXrLhHn2nP6+4s3Gk7Yl6Q5mpZMMjAGWjT0o+dgkR6BVnUzJSW2PpzhpHVqIygdPiEET3rzwiHP2QCSlrjUm1epE0el+R1/E6SmjDa2nGEat5Bu9089bC9O7/1moDT0GJkMv5eR6f1oVY7MRfjp2SiNgOO5pkFBpnkadmD/qflRrAtiUrBhJFdPnauJhI6SU6noXSyb2BmUZUqzYKEqSSSZ6SUSU34WagYVUsg9N27R7DtkONWrmRcf8HHK1Lc4EjrqHJn6ZdxBIsXkXU2MqVZqU/ja5ZU/MyWR5/Bps1/wfD2p+G7TUy1QziWRHfZgVXsREd3H1YtnoW+vl709nSjv7f0V4MwPnRaRUGlxSm8rG7N0pAMlim/CE4Jk+tRbTxmAoYK4Qit/Mhb9/a9eze9ILW/YQwv5jvmM/fcs720YMnMDeWStabtJrmVUVaqtsy3sRqgAm+96yH85qbb4DZqWNjfi57uHlRKJViWjSCM0Wr5aDRaqDebqDeaqLkRLFugp7OIQudMrFn+JvT3z8Ee8+dgVldxp+tkpUB42ZZgqLrEnyUq89MkODkunjVVoREFMao5G367een6lZ2fejEQXrbiBgbbn+qZUbyETcWs2KZ/Ynsoi6aMgEPjLVz6Xz/B1OjT2P8tyzB7Zm/i6IMQYRghDGk2ielkLaKIPiiM4PshGk0XzWYDU40a6m6Ickmi3N2Lt+y1B5a+eQ+sXLIQM7rLxi1QiR47I2l3xPizFFyitsQnmqhq8juNks1go2BrDRG4WwMv3veItT1TLwTvZYH7w0NP9y7sn3NPqSgXMiCYRuNz1MbE9eEnRnDhpVdh1fxu7L1iCYIwghcECKMYUfaMY4Rh8jogxJgQNQjP+CECpUK4H8bwPR8tgmzW0Ao8lEsW+vrn4sA1S7Fs2VKsXDIP1UrO3BymMD7PEwvj6wJjnjTTJFAEsUJOJj4y8iMUWIfE8bp1Kzs2virgtg23PtHTV7os9JI0wASFNPWg4vI54LGBMZz/je/i71YvQv/sWXA9D2EYIooiAzCOYoRxDM/z4Xo+PC+Az2MR31NpkU4fpKGUQKRkoiSCjCSiSCAKVPLddgON9hQsK0TXjA7su3YVDjt0Hdbu82ZzbQYgVZb6OJOW0GQjZW54XtACInTkHXjt5kXr9+r4zG4Hd/bZZ8uTTz1rY7liHxiHiR9h+sFAQHNxJMulCGed/x2jtHlv6ofruogILaZpEl6MIAiML2u1XQRhaIDxeKZGqoEAObgoTkBGkUp7bvRRfC0QRpZRkYqk6SjHcYDQryNXVNj/oLX4yIc/iMULZyVVSFr0GxVmlQWDg0xSFG5j372rV1fXr1wpdhldX7Kpbn2mtbqrs7jRkqLIC6VDzgIBwZUKwGXfuwFjA49g331WoO26CSwDh/BieK6HyakaPM9LTZbv0WQJL0r2o9ioMkhN2gDka0JkDhYpExW1FtCQEMKGlg6gbWhTxjPFaKBvZgUfP/njOHz9WrRS5QXG9AkvzeXoHxXrVw0n9puxEm8+dGVlaFeqe8ngBifiT1Y65aUha7+0+M7Sj0IeeOixYXznO1fiHQfvY1REs4wiBoIAcRQZkBOTk/B9P1GSCRBBoraQn/dTmDxOiATGLV+nioxjA49wINjAY4YtIaQFwX1hQYtkn/AtW+Okfzsdf/+OA9H2Uj+XdoiZltBebaGh2a9DrONYvfdtK8q/2L3gaurXxaI4WqUJJH2ETTPltVsaX73wvzG7IjGrrwce4RhoieKCMMDY+LiBZ2AwGJjAQKg0Sx6jCrWBmQAlTJo3vx+ZvIvOXLBEEAJCMPFNQrkBBwnNfcuGMFAFlIqRyxdw+he/gv1WL0PDTftzSicd41jBYaURa/SUHLTrjc+vX9mxy47JS1LcpoGB4qKOuZvzebFMpyUPT0BoTD023P0wfvWL67DfPsvhut4O80z8Woip+hQma41UWVQRDMwEXIQ43Se4OApSYEAYeAijwADSmp1RghPGt3Kb5MMJxEx9VJ2QNu8mYNlQUYj+hUtx9nnnolIpw83KrrSSMOCURmfOQejWr37bis6P7DbFba/ptZal77SlyPFy6WC5ZedBKYWLLrkKs6oOCvl8AoR+zWwjeL6L4dFRuJ5CEGpTsEeBQBD4iFWMWEWIwjpU6Ca+kNswNll+zCgECSkcKM02CQtS/nK0oxPDFDzRIYFSfYRIcFRfzgDktRz7z5/E8Scci7ar0g4xc0aePen0VaSAiLxHutVTe6/cRfn1khQ3OBEdU6xYv4oZbzjJopJISrX96aFtuOaH12D5ogXw/QABVZQFhCDC5NQ4xienEIQCbijh+RKTvXPhVYrIPTGAXLOOOJ4AwhAxzTKomTTEdHy1l/guc5voWTmXSPWFSVAwf7FRH83YuD5jxgQooS3HqE9Bomf2fJx9wcXo7KjAp3swLSZApjPeJUvDioLBkttYvHZtf/v5VPeSwD09Fp9Z7pDnEhzvD1MEqo2d2ut+swEPbr4fM3p7jIqYbhjlBKHxdcMjQ0ZtXmjDbSsMLFqJx048AWDWv/kvWPjNy2DXB5hXAHEIpZqwZNVct1INSFkyoJRyE1g6hjaFnp2IDyrxezqFaMClHQdjsjljsrzuk8/4Cg46ZF9zPQYc05k0qpYswFH+uCW9VYcsm7F994CbiL5fKlkf4lyC1nSswnRlWcBfftVP0RgZRqGQR2jKKd/4JZrpxOQExicmEIQWvDCHhu9gyz99FN76VQCt0AZmnnUxSg/cAUuGEKoJaBdSZjVpBCk7EnDahxRlKHCfjbccNPMis29mWSGMH6TqNKQxWStJVayccQvrjv4ATj7lRLTcpL1k2kym0GUJJlASvuvo6JADV3RtfsngbtXa3gsoBA3k3Rakb8GtiuiaUtk+xveUqRjoU9gmKuYFLr/yGkwMjSBH5xrQ4dNPBaYiGBwehOu24QUCXuhgSnTjsTPOQDxvRjqjrNB31tdRfvwB5O0cEI9BaA9SVhCpGqA56+NAa/oIC5AER2XlmfdDhT60FLBoxlYAof0UnjLukAo1arPyxhev2vcAnHbWOSaJNmWe6elRCAm4TukrS0XvOGivrt+9aHDba8GaQt56r4A8XADztYIVKgimXH6M7iDUebackzJLIm8LlIsSP/jRz/HU1ieQcywDLnHwAWq1BsbGR5M6lYrzJEZmLsHw5z8LlOm0AWwfQ885X0Ol/oypHRFPwpZF2FYXwngEgoBEHpEaNwpTyJsqROsCgupMtFeshLt8Oap/ug8d998CKQgvgICfRFppm/QEBAdg1oIlOOMrF6BcLsAPlCnHIjPvClQcgW4nhFThPxy8ovPXLwjugaGh8uxyzwXlvPOxsoPC9PUaZpYoLZobHtAMtAEhoVDKSXSUHdy+YSN+d9MGFKm4NK0gwKHhUTSaNZPL+ZEFzwXGVrwNk6edlkDjHMLmrei78DzkLR8W18qoEUiRgxR5xKoJ2+ox4EJVh5B9UDqPel8vWgccAW/Naug5Myk84OkJzDn3FOTbIwacFASXJMSC/XOZhxISHTP6ceZ5F6GzuxNekEb5IKlIOvISvU7AhPiog5ZVbtgluE0DurigHPx4RnfunXQXbNJm8wEZQAYCphDs99c9YMqDKbALtjJNyNGRQVx++dWwtDA5GHMyz/ewfXAYntdE4AfwjFkINHsXY+JzXwPmdptGXunKH6D79uuRzxVhqwBKDSFnzTTRNIrHIQXz+RAxTVF1obFqPcY/ehLQVU2CLG+AApwNGzHjR99GTk0Bqg0pvCQ9sRxIY6o5aGmjWOnCmed/A70zZ8INmCpxbGwoAF0Fgd5cEBVkfNj+Szvu2CW4rUPumTN6C+faCijwxqTTeNmXssV+bM1w9oiqm2wToELgt1AtSHQULVxzzU/w5/u2mKUMcRCg3W7hmeFhBF4rKaPY6WDGJDrQnrcUrdX7wRkcQuXe22HHU7CFgDT+zE/AKR9au7CsPkSqAWWiaieG3nkCvPe9G+DSGQrqwUdRuHUjylvvQS4ahaObELoBAVqFSCsJzto4Jkg4OQdn/sd/ord/Plw/MtAIj5Y1oywxq+DXrThae8CKzq3PC+6ux4dndRZ67uut2nM68sn6jWxtx/QvZebKiWKCq7WAmtm2IZSPGR0FjI9uxxVXfB+tqTokYgNu++AQVOSZ1EErunSWRBXTyYASkLIAbdGnMBhI6Lhu5COlA61Ck39JUTHRVAtO73ej0TMbEyeeBj1vjlGauP8RVL7/A+SDQdiowVF1SN02UVaa2fAkl2NU5TNnC5z+5QswY/5iuG4EN1KmhtWxwNwuBws7w+G85S1ftaBr8nnB3f1Y8/hqtfzDzhzQU0qm0v4WOLam6ecIjl2GWhuYaFF5IcamJtFZtNDX4WDzvZvxv9dej9BzoaIIo+Oj0FEAzSxfhyYSa50W5iAU20RNafIuwmol/k0yGPAGJJ0OZSJqHkqWEcU22vPegua/nAR0dxvVWZv+iI6fXomcrsNRDWhNU9UmAWZoVVYOgsFBOCjlLXzqjC+ia+6eaHsRmp5GMScxu8NCf4eF7qKIRBQ8mnfkz4PQ/83SuX/d2BSbHmne3Fktv72vDHQUEsWxGnjuIwPH3hf93FQbGKnTXDUeGhiCFDFmVHPoKlu49dYN+O1vb4alYozXpqBjggvNBHDyYIHDhJVQ+IiSYolFuXHqBQhGT+VCWiUTGaOYQIuIhYWQ34tLcBeugH/ch4DuXmBkEJXvXoB8ewwWXGiT77GWSBoA9G9cKBcLB92dFZx02umI8r0m9Vszv4QVsx10FYUZu7GuNHeuN1XkB9FN7Xbwmb0XVh/KuIhNWwOvs2Tn+6rCZAecITezU9PWc5i0Ml0JZKbfwsTHDU0Bky6wYcs20w7qrThGeaW8xJ0bN+HW2+5Eo9k0lQT9jWkEMVHl2dnhoNp4VLBc4uI4JrKRAcgEO7HDXFLQE64oGNz0k0pUkvUhCxZDrz4A4tEHkXvwLtgihNSJa0gEQNfAXp0NZTnGVSxeuADHHHcCpJXD+9f0YcUc2zRgn6sXnr9O3yeBlqeGJyfDE1cvKlxvkuvfP6512QF6y8kCFwYHllHZsgSezAwh7ZhyPIRHH/fMJDDWAn72x8dQb7XRVbZNoKgWLBRyAvfe/wBuuf0u1CYnIWVaQ9K5pRMrdNw8v5khM2rjZ2iYVGJWfxJunJbwBGjm0kx6ohj/zQpryyS82lKQpopgI0AnLodmaop9C4rVAwTWH3wgluy9Fh/cbxbWLSqa6idbJfpcS3PNupNkQnuioVrDk976I1eV7xW3b2lvL5eKczoLQKWQrIqk6rIeWwYuWw1kymwFTLaAgQlgsK5xxa1bUGu66ChYqOSpXMss4Ms5EtsGnsatGzahMTaWhutsLWsaug2s7F5nix7S/CKZ/08L+7RlZMqpDJ4hk62JShWbLj805Ve2II9zlCbJQqW7C/sftA4HrZiPUw/vRweD7S7A0a/XXW1SsLYSeGpIbxiZeOpIccufG8dVOys/5r2o5JNVQaw9WUrxhDRbk46k62/5moobbySKu397gK/9ZgsKFlDNSZQJzhHI2xKOJVDISTRbbfzpwS0YePxxxL73rJzNwNJZ62yG2dzydNlOUqVnK4PTdpKRWLqfLe/JPpO9nuZnTFRNyFj5Apbtswr5rpn4wpELcPiyqhHKrhTHsTJ4TLnCWNdgA3Dr/lHiuo2j1XJf7x2VvNiHTbZyBs9OA8U02zcTMjKJrsNTwEgT+NE9ow9864Ytt/dVZVDNW6LsSBT5XUsgZ7P7L5BzbDPX+qeHH8HAlr+YZQeJjSWpwk4P2pdhk05mcHfHa3YyzXKa9GD6mez9hOiOhHjHwjzzOzZ65s3B/D2XolSt7nnh+5a9a0mfZcZLkTz3MrJronVxoQ+ziPEWsL3GXDZ60NjIr/6sjynk8EsHEPRxDBK8E1ztw+k+njhHFTqJCTMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",xe=({dataSource:nn=[],img:Sn,imgWidth:rn=346,title:En,sunTitle:xn,bannerExtraContent:Vn})=>y.createElement("div",{className:ve.banner},y.createElement("div",{className:ve.content},y.createElement("aside",null,y.createElement("p",null,y.createElement("b",null,En),y.createElement("span",null,xn)),nn.length>0&&y.createElement("div",{className:ve.btns},nn.map((sr,er)=>y.createElement("div",{key:er,onClick:sr.click},sr.name,sr.sign?y.createElement("img",{src:ce,width:39}):null))),Vn),Sn&&y.createElement("img",{style:{marginTop:33,marginRight:38},src:Sn,width:rn}))),ge={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"},Se=E(92310),Ne=E.n(Se),Be=E(89392),$e=({dataSource:nn=[],value:Sn,onChange:rn,onTitleChange:En,className:xn,title:Vn,titleWidth:sr=41,style:er={},fontColor:cr="#6A7283",showCount:Dr})=>{const[mr,Hr]=(0,y.useState)(1),[Lr,An]=(0,y.useState)(!1),Rn=(0,y.useRef)(null),dr=(0,y.useRef)(null);return(0,y.useEffect)(()=>{var vr;nn.length!==0&&(((vr=Rn==null?void 0:Rn.current)==null?void 0:vr.clientHeight)>97?Hr(1):Hr(0)),nn.length===0&&Hr(0),An(!1)},[nn]),y.createElement("div",{className:Ne()(ge.row,xn,"fadeIn","animated"),style:er},y.createElement("div",{onClick:(0,Be.throttle)(()=>En==null?void 0:En(),2e3),style:{width:sr,marginTop:Lr?12:4},className:`${ge.title} ${En?"current":""}`},Vn),y.createElement("div",{className:Lr?`${ge.tagsWrap} ${ge.tagsBorderWrap}`:ge.tagsWrap},y.createElement("div",{className:ge.bar,ref:dr,style:mr>0?{height:mr===1?97:"auto",overflow:mr===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},y.createElement("div",{className:ge.tag,ref:Rn},nn==null?void 0:nn.map(vr=>y.createElement("span",{onClick:()=>rn(vr.id),key:vr.id,style:{color:cr},className:Sn===vr.id?ge.active:""},y.createElement("span",{title:vr.name,className:ge.name},vr.name),!!Dr&&y.createElement("span",{className:ge.num},vr.count))))),!!mr&&y.createElement(y.Fragment,null,mr===1?y.createElement("div",{onClick:()=>{var vr;Hr(2),((vr=Rn==null?void 0:Rn.current)==null?void 0:vr.clientHeight)>245?An(!0):An(!1)},className:ge.action},"\u5C55\u5F00",y.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):y.createElement("div",{onClick:()=>{dr.current.scrollTop=0,Hr(1),An(!1)},className:ge.action},"\u6536\u8D77",y.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"},Ke=({dataSource:nn=[],value:Sn,onChange:rn,className:En,style:xn={}})=>y.createElement("div",{style:xn,className:Ne()(Oe.tabs,En)},nn.map(Vn=>y.createElement("span",{onClick:()=>rn(Vn.id),className:Sn===Vn.id?Oe.active:"",key:Vn.id},Vn.name))),Te={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"},we=E(37568),Pe=({dataSource:nn=[],value:Sn="",onChange:rn,onInputChange:En=()=>{},className:xn,style:Vn={},placeholder:sr,allowClear:er=!1})=>{var cr;const[Dr,mr]=(0,y.useState)(""),[Hr,Lr]=(0,y.useState)("");(0,y.useEffect)(()=>{var dr;let vr=Sn;(dr=JSON.stringify(Sn))!=null&&dr.includes("{")&&(mr(Sn.id),vr=Sn.value||"");try{Lr(decodeURIComponent(vr||""))}catch(Mt){Lr(decodeURIComponent(vr||""))}},[Sn]);const An=()=>{rn(encodeURIComponent(Hr),Dr||null)},Rn=dr=>{dr!==Dr&&(mr(dr),rn(encodeURIComponent(Hr),dr))};return y.createElement("div",{className:Ne()(Te.input,xn),style:Vn},!!nn.length&&y.createElement("div",{className:Te.dropdown},y.createElement("div",{className:Te.text},(cr=nn.find(dr=>dr.id===Dr))==null?void 0:cr.name,y.createElement("i",{className:"iconfont icon-zhankai4"}),y.createElement("b",{className:Te.b1}),y.createElement("b",{className:Te.b2})),y.createElement("div",{className:Te.menu},nn.map((dr,vr)=>y.createElement("div",{key:vr,onClick:()=>Rn(dr.id)},dr.name)))),y.createElement(we.default,{onPressEnter:An,value:Hr,onChange:dr=>{Lr(dr.target.value),En(encodeURIComponent(dr.target.value),Dr||null)},placeholder:sr,variant:"borderless",allowClear:er,onClear:()=>rn("",Dr||null)}),y.createElement("i",{onClick:An,className:"iconfont icon-sousuo9 font14 current"}))},tt={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"},_e=({value:nn,onChange:Sn,className:rn,total:En,pageSize:xn,style:Vn={}})=>{const sr=nn<2,er=nn>=Math.ceil(En/xn);return En<=xn?y.createElement(y.Fragment,null):y.createElement("div",{className:Ne()(tt.quickPager,rn),style:Vn},y.createElement("div",{onClick:()=>{sr||Sn(nn-1,"prev")},className:sr?tt.disabled:""},"\u4E0A\u4E00\u9875"),y.createElement("div",{onClick:()=>{er||Sn(nn+1,"next")},className:er?tt.disabled:""},"\u4E0B\u4E00\u9875"))},Fe={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"},He=E(29787),Xe=E(25399),St=E(63139),gt=E(74128),ot=E(65862),Ue=E(96908),Ee=E(57177),We=E(81378),Ae=E(2524),wt=({className:nn,dataSource:Sn=[],col:rn=4,right:En,bottom:xn=23,precision:Vn=0,wrapWidth:sr=1200,trackEventItems:er,loading:cr})=>{const Dr=Math.floor((sr-(rn-1)*En)/rn);return y.createElement(He.Z,{spinning:cr},y.createElement("div",{className:Ne()(Fe.list,nn)},!!Sn.length&&Sn.map((mr,Hr)=>{const{name:Lr,id:An,identifier:Rn,power:dr,cover_image_id:vr,pic:Mt}=mr;return y.createElement("div",{className:Fe.wrap,key:An,style:{width:Dr,marginRight:(1+Hr)%rn===0?0:En+Vn,marginBottom:xn}},y.createElement("a",{target:"_blank",href:`/shixuns/${Rn}/challenges`,className:Fe.li,onClick:Kt=>{Kt.preventDefault(),er&&(0,ot.L9)([er]),dr&&(0,ot.xg)(`/shixuns/${Rn}/challenges`)}},y.createElement("div",{className:Fe.img},y.createElement("img",{className:Fe.cover,src:`${Mt}`}),mr.is_jupyter&&y.createElement("img",{className:Fe.sign,src:Ue}),mr.is_jupyter_lab&&y.createElement("img",{className:Fe.sign,src:Ee}),mr.is_unity_3d&&y.createElement("img",{className:Fe.sign,src:We})),y.createElement("div",{className:Fe.name},y.createElement(Xe.Z,{title:Lr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},y.createElement("span",{className:Fe.e},Lr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),y.createElement("div",{className:Fe.tags},y.createElement(Xe.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},y.createElement("span",null,y.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),y.createElement("span",null,mr.challenges_count))),!!mr.myshixuns_count&&y.createElement(Xe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},y.createElement("span",null,y.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),y.createElement("span",null,mr.myshixuns_count))),y.createElement(Xe.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},y.createElement("span",null,y.createElement("span",null,mr.level))),y.createElement("div",{className:Fe.rate},y.createElement(St.Z,{allowHalf:!0,disabled:!0,defaultValue:mr.score_info}),y.createElement("span",null,"\xA0",mr.score_info?`${mr.score_info}\u5206`:"5\u5206")))),!dr&&y.createElement("div",{className:Fe.lockWrap},y.createElement("img",{src:`${gt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),y.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Sn.length&&y.createElement(Ae.Z,null)))},Qe=E(61584),Ge={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",hidden:"hidden___NniIi",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"},st="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/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Ce=E(59301),vt=({className:nn,dataSource:Sn=[],col:rn=4,right:En,bottom:xn=23,precision:Vn=0,wrapWidth:sr=1200,trackEventItems:er,loading:cr,category:Dr,hiddenClick:mr,handleVery:Hr=()=>!0,isCurrent:Lr})=>{const An=Math.floor((sr-(rn-1)*En)/rn);return Ce.createElement(He.Z,{spinning:cr},Ce.createElement("div",{className:Ne()(Ge.list,nn)},!!Sn.length&&Sn.map((Rn,dr)=>{const{subject_identifier:vr,id:Mt,identifier:Kt,power:ft}=Rn,Rt=Rn.is_public!=0&&Rn.is_public;return Ce.createElement("div",{className:Ge.wrap,key:Mt,style:{width:An,marginRight:(1+dr)%rn===0?0:En+Vn,marginBottom:xn}},Ce.createElement("a",{className:Ge.li,onClick:it=>{it.preventDefault(),Hr(Rn==null?void 0:Rn.first_category_url)&&(er&&(0,ot.L9)([er]),(0,ot.xg)(Rn.first_category_url))}},Ce.createElement("div",{className:Ge.top},Ce.createElement(Xe.Z,{title:Rn.name},Ce.createElement("div",{className:Ge.name},Rn.name)),Ce.createElement("img",{className:Ge.img,src:gt.Z.IMG_SERVER+"/images/"+Rn.avatar_url}),Ce.createElement("div",{className:Ge.text,title:Rn.creator},Rn.creator),vr&&Ce.createElement("div",{className:Ge.btns},Ce.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Ce.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Rt&&Ce.createElement("div",{className:Ge.sign},"\u516C\u5F00"),Lr&&Ce.createElement("div",{className:Ge.hidden,onClick:it=>{it.stopPropagation(),mr(Rn)}},Ce.createElement("i",{className:`iconfont ${Dr=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Dr=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),Ce.createElement("div",{className:Ge.bottom},Rn.visits>0&&Ce.createElement(Xe.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Ce.createElement("span",null,Ce.createElement("i",{className:"iconfont icon-liulanyan"}),Ce.createElement("span",null,Rn.visits))),Rn.course_members_count>0&&Ce.createElement(Xe.Z,{title:"\u6210\u5458",placement:"bottom"},Ce.createElement("span",null,Ce.createElement("i",{className:"iconfont icon-chengyuan"}),Rn.course_members_count)),Rn.tasks_count>0&&Ce.createElement(Xe.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Ce.createElement("span",null,Ce.createElement("i",{className:"iconfont icon-zuoye"}),Rn.tasks_count)),Rn.is_end?Ce.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Ce.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Rn.is_accessible&&Ce.createElement("div",{className:Ge.lockWrap},Ce.createElement("img",{src:`${gt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Ce.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Sn.length&&Ce.createElement(Ae.Z,null)))},zt={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"},jt=E(65582),pt=({dataSource:nn=[],value:Sn,onChange:rn,className:En,style:xn={},tabBarExtraContent:Vn})=>y.createElement("div",{className:Ne()(zt.tabs,En),style:xn},y.createElement("div",{className:zt.tabsWrap},nn.map((sr,er)=>!(sr!=null&&sr.hide)&&y.createElement("aside",{className:zt.tab,onClick:()=>{rn(sr.id),sr.link&&jt.history.push(sr.link)},key:er},y.createElement("div",{className:Sn===sr.id?zt.active:""},sr.name),(sr==null?void 0:sr.resetCount)==null&&(sr==null?void 0:sr.total)!==void 0&&y.createElement("span",null,"\uFF08",sr==null?void 0:sr.total,"\uFF09"),(sr==null?void 0:sr.resetCount)!==void 0&&(sr==null?void 0:sr.total)!==void 0&&y.createElement(Xe.Z,{title:(sr==null?void 0:sr.tip)!=null?sr==null?void 0:sr.tip:""},y.createElement("span",{style:{color:"#9096A3"}},"\uFF08",y.createElement("span",{style:{color:"#000"}},sr==null?void 0:sr.resetCount),"/",y.createElement("span",null,sr==null?void 0:sr.total),"\uFF09"))))),y.createElement("div",{className:zt.tabBar},Vn)),Qt=({className:nn,style:Sn={},children:rn})=>y.createElement("div",{className:Ne()(nn),style:Sn},rn),yt={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"},Ct=E(75727),mt=E(93041);const dn=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var ue=({sortValue:nn,dropValue:Sn,className:rn,onSort:En,onDrop:xn,dataSource:Vn=dn})=>{var sr;return y.createElement("div",{className:Ne()(yt.orderWrap,rn)},y.createElement(Ct.Z,{dropdownRender:()=>y.createElement(mt.default,null,Vn.map((er,cr)=>y.createElement(mt.default.Item,{key:cr,onClick:()=>xn(er.id)},er.name)))},y.createElement("span",{className:yt.orderTextWrap},(sr=Vn.find(er=>Sn===er.id))==null?void 0:sr.name)),y.createElement("span",{className:yt.orderIconWrap},y.createElement("span",{className:yt.orderAsc},y.createElement("i",{className:nn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${yt.cursorPointer} ${yt.active}`:`iconfont icon-sanjiaoxing-up font12 ${yt.cursorPointer}`,onClick:()=>En(nn==="asc"?"desc":"asc")})),y.createElement("span",{className:yt.orderDesc},y.createElement("i",{className:nn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${yt.cursorPointer} ${yt.active}`:`iconfont icon-sanjiaoxing-down font12 ${yt.cursorPointer}`,onClick:()=>En(nn==="asc"?"desc":"asc")}))))},ie={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"},re=E(7939),oe=Object.defineProperty,pe=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,Ze=(nn,Sn,rn)=>Sn in nn?oe(nn,Sn,{enumerable:!0,configurable:!0,writable:!0,value:rn}):nn[Sn]=rn,Ot=(nn,Sn)=>{for(var rn in Sn||(Sn={}))ae.call(Sn,rn)&&Ze(nn,rn,Sn[rn]);if(pe)for(var rn of pe(Sn))me.call(Sn,rn)&&Ze(nn,rn,Sn[rn]);return nn},at=(nn,Sn)=>{var rn={};for(var En in nn)ae.call(nn,En)&&Sn.indexOf(En)<0&&(rn[En]=nn[En]);if(nn!=null&&pe)for(var En of pe(nn))Sn.indexOf(En)<0&&me.call(nn,En)&&(rn[En]=nn[En]);return rn},qe=(nn,Sn,rn)=>new Promise((En,xn)=>{var Vn=cr=>{try{er(rn.next(cr))}catch(Dr){xn(Dr)}},sr=cr=>{try{er(rn.throw(cr))}catch(Dr){xn(Dr)}},er=cr=>cr.done?En(cr.value):Promise.resolve(cr.value).then(Vn,sr);er((rn=rn.apply(nn,Sn)).next())}),At=nn=>{var Sn=nn,{className:rn,style:En,children:xn,loading:Vn=!1,openLoading:sr,onClick:er=()=>{},size:cr="middle",shape:Dr="round"}=Sn,mr=at(Sn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Hr,Lr]=(0,y.useState)(!1);return y.createElement(re.ZP,Ot({onClick:(0,Be.throttle)(An=>qe(void 0,null,function*(){sr&&Lr(!0);try{yield er(An)}catch(Rn){console.log("error",Rn)}sr&&Lr(!1)}),2e3,{leading:!0,trailing:!1}),className:Ne()(ie.btn,ie[`${cr}-${Dr}`],rn),style:En,size:cr,shape:Dr,loading:Hr||Vn},mr),xn)},$t={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"},rt=({className:nn,style:Sn,children:rn=null,onClick:En,title:xn})=>y.createElement("div",{className:Ne()($t.head,nn),style:Sn},y.createElement("span",{className:"primary-hover",onClick:En},y.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),y.createElement("b",{title:xn},xn),y.createElement("div",{className:$t.node},rn)),Vt={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"},wn=({confirmShow:nn=!0,confirmTitle:Sn,confirmClick:rn,cancelShow:En=!0,cancelTitle:xn,cancelClick:Vn,className:sr,style:er,confirmLoading:cr=!1})=>y.createElement("div",{className:Ne()(Vt.btns,sr),style:er},nn&&y.createElement(re.ZP,{loading:cr,onClick:rn,type:"primary",className:Vt.confirm},Sn),En&&y.createElement(re.ZP,{onClick:Vn,className:Vt.cancel},xn)),pn={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"},Gt=({className:nn,style:Sn={},LeftContent:rn,children:En,RightContent:xn})=>y.createElement("div",{className:Ne()(pn.fixedBottom,nn),style:Sn},y.createElement("div",{className:pn.wrap},y.createElement("div",{className:pn.left},rn),y.createElement("div",{className:pn.center},En),y.createElement("div",{className:pn.right},xn))),Pt={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"},It=({className:nn,style:Sn={},dataSource:rn=[]})=>y.createElement("div",{className:Ne()(Pt.crumbs,nn),style:Sn},rn.map((En,xn)=>xn<rn.length-1?y.createElement(y.Fragment,{key:xn},En.path||En.onClick?y.createElement("span",{className:Pt.hover,onClick:En!=null&&En.onClick?En.onClick:()=>jt.history.push(En.path)},En.name):y.createElement("span",null,En.name),y.createElement("span",null,"\xA0",">","\xA0")):y.createElement("span",{key:xn,style:{color:"#5F6368"}},En.name))),tn=E(11938),mn=Object.defineProperty,nt=Object.defineProperties,Nt=Object.getOwnPropertyDescriptors,Jt=Object.getOwnPropertySymbols,xt=Object.prototype.hasOwnProperty,Wt=Object.prototype.propertyIsEnumerable,qt=(nn,Sn,rn)=>Sn in nn?mn(nn,Sn,{enumerable:!0,configurable:!0,writable:!0,value:rn}):nn[Sn]=rn,Tn=(nn,Sn)=>{for(var rn in Sn||(Sn={}))xt.call(Sn,rn)&&qt(nn,rn,Sn[rn]);if(Jt)for(var rn of Jt(Sn))Wt.call(Sn,rn)&&qt(nn,rn,Sn[rn]);return nn},Gn=(nn,Sn)=>nt(nn,Nt(Sn)),On=(nn,Sn)=>{var rn={};for(var En in nn)xt.call(nn,En)&&Sn.indexOf(En)<0&&(rn[En]=nn[En]);if(nn!=null&&Jt)for(var En of Jt(nn))Sn.indexOf(En)<0&&Wt.call(nn,En)&&(rn[En]=nn[En]);return rn};const{Countdown:Hn}=tn.default;var Dn=nn=>{var Sn=nn,{onChange:rn}=Sn,En=On(Sn,["onChange"]);const[xn,Vn]=(0,y.useState)(null);(0,y.useEffect)(()=>{typeof xn=="number"&&xn>=0&&rn(xn)},[xn]);const sr=er=>{const cr=Math.floor(er/1e3);Vn(cr)};return y.createElement(Hn,Gn(Tn({},En),{onChange:sr}))}},31103:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return ve}});var y=E(59301);function ve(ce,Le){const xe=(0,y.useRef)();(0,y.useEffect)(()=>{xe.current=ce}),(0,y.useEffect)(()=>{function ge(){xe.current()}if(Le!==null){let Se=setInterval(ge,Le);return()=>clearInterval(Se)}},[Le])}},44589:function(Mn,Yt,E){"use strict";E.d(Yt,{i:function(){return _e},q:function(){return Et}});var y=E(59301),ve={flex_box_center:"flex_box_center___yMUhy",flex_space_between:"flex_space_between___KNvG9",flex_box_vertical_center:"flex_box_vertical_center___yqWY9",flex_box_center_end:"flex_box_center_end___DJKuV",flex_box_column:"flex_box_column___NTtN1",singleSelect:"singleSelect___fU3O9",multipleSelect:"multipleSelect___LFXCB",plus:"plus___gdDhG"},ce=E(92310),Le=E.n(ce),xe=E(25399),ge=E(82326),Se=E(7939),Ne=E(38147),Be=Object.defineProperty,fe=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,Te=(Fe,He,Xe)=>He in Fe?Be(Fe,He,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):Fe[He]=Xe,we=(Fe,He)=>{for(var Xe in He||(He={}))ct.call(He,Xe)&&Te(Fe,Xe,He[Xe]);if(Oe)for(var Xe of Oe(He))Ke.call(He,Xe)&&Te(Fe,Xe,He[Xe]);return Fe},Ie=(Fe,He)=>fe(Fe,$e(He)),Pe=(Fe,He)=>{var Xe={};for(var St in Fe)ct.call(Fe,St)&&He.indexOf(St)<0&&(Xe[St]=Fe[St]);if(Fe!=null&&Oe)for(var St of Oe(Fe))He.indexOf(St)<0&&Ke.call(Fe,St)&&(Xe[St]=Fe[St]);return Xe},tt=(Fe,He,Xe)=>new Promise((St,gt)=>{var ot=We=>{try{Ee(Xe.next(We))}catch(Ae){gt(Ae)}},Ue=We=>{try{Ee(Xe.throw(We))}catch(Ae){gt(Ae)}},Ee=We=>We.done?St(We.value):Promise.resolve(We.value).then(ot,Ue);Ee((Xe=Xe.apply(Fe,He)).next())});const Et=Fe=>{var He=Fe,{wrapClassName:Xe,wrapStyle:St={},showLinkButton:gt=!0,tooltipTitle:ot="",loadGeneral:Ue=!1,data:Ee={}}=He,We=Pe(He,["wrapClassName","wrapStyle","showLinkButton","tooltipTitle","loadGeneral","data"]);const Ae="course_disciplines_list",[de,wt]=(0,y.useState)(()=>{const vt=sessionStorage.getItem(Ae);return vt?JSON.parse(vt):[]}),[Qe,Ge]=(0,y.useState)(!1),[st,Ce]=(0,y.useState)(!0);(0,y.useEffect)(()=>{be()},[]);const be=()=>tt(void 0,null,function*(){var vt,zt,jt,De;Ge(!0);const pt=yield(0,Ne.U2)("v2/course_disciplines.json",Ee);if(pt.status===0){const ut=((zt=(vt=pt==null?void 0:pt.data)==null?void 0:vt.list)==null?void 0:zt.map(Qt=>({value:Qt.id,label:Qt.name})))||[];if(wt(ut),Ce(!1),sessionStorage.setItem(Ae,JSON.stringify(ut)),st){const Qt=(De=(jt=pt==null?void 0:pt.data)==null?void 0:jt.list)==null?void 0:De.find(yt=>yt.is_default);Ue&&Qt&&We.onChange(Qt==null?void 0:Qt.id)}}Ge(!1)});return y.createElement("div",{className:Le()(ve.singleSelect,Xe),style:St},y.createElement(xe.Z,{title:ot},y.createElement(ge.default,we({allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B",loading:Qe,options:de,onDropdownVisibleChange:vt=>{vt&&be()}},We))),gt&&y.createElement(Se.ZP,{type:"link",target:"_blank",href:"/knowledgeHub"},"\u7BA1\u7406\u8BFE\u7A0B"))},_e=Fe=>{var He=Fe,{wrapClassName:Xe,wrapStyle:St={},showLinkButton:gt=!0,courseDisciplineId:ot="",isPlusHeight:Ue=!1,tooltipTitle:Ee,allowAcceptEmpty:We=!1,data:Ae={}}=He,de=Pe(He,["wrapClassName","wrapStyle","showLinkButton","courseDisciplineId","isPlusHeight","tooltipTitle","allowAcceptEmpty","data"]);const[wt,Qe]=(0,y.useState)([]),[Ge,st]=(0,y.useState)(!1);(0,y.useEffect)(()=>{Ce()},[ot]);const Ce=()=>tt(void 0,null,function*(){var be,vt;if(!We&&!ot){Qe([]);return}st(!0);const zt=yield(0,Ne.U2)(`v2/course_disciplines/${ot||"all"}.json`,Ae);if(zt.status===0){const jt=((vt=(be=zt==null?void 0:zt.data)==null?void 0:be.tag_disciplines)==null?void 0:vt.map(De=>({value:De.id,label:De.name})))||[];jt.length&&Qe(jt)}st(!1)});return y.createElement("div",{className:Le()(ve.multipleSelect,Xe),style:St},y.createElement(xe.Z,{title:Ee},y.createElement(ge.default,Ie(we({allowClear:!0,mode:"multiple",optionFilterProp:"label",placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9",loading:Ge,options:wt,maxTagCount:"responsive",onDropdownVisibleChange:be=>{be&&Ce()}},de),{className:Le()(de.className,Ue&&ve.plus)}))),gt&&y.createElement(Se.ZP,{className:ve.btn,type:"link",target:"_blank",href:"/knowledgeHub"},"\u7BA1\u7406\u77E5\u8BC6\u70B9"))}},10129:function(Mn,Yt,E){"use strict";E.d(Yt,{h:function(){return y}});var y=(ve=>(ve[ve.NOMATCH=-1]="NOMATCH",ve[ve.OK=0]="OK",ve[ve.TIMEOUT=2]="TIMEOUT",ve[ve.PODFAILURE=3]="PODFAILURE",ve[ve.COMPILEFAILURE=4]="COMPILEFAILURE",ve[ve.EXECUTEFAILURE=5]="EXECUTEFAILURE",ve[ve.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",ve))(y||{})},67172:function(Mn,Yt,E){"use strict";E.d(Yt,{H7:function(){return Te},MK:function(){return Ke},MU:function(){return fe},X6:function(){return Oe},bM:function(){return Be},fi:function(){return we},fu:function(){return Ne},n4:function(){return Ie},rX:function(){return ct},vl:function(){return Pe},zO:function(){return $e}});var y=E(38147),ve=Object.defineProperty,ce=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,ge=(tt,Et,_e)=>Et in tt?ve(tt,Et,{enumerable:!0,configurable:!0,writable:!0,value:_e}):tt[Et]=_e,Se=(tt,Et)=>{for(var _e in Et||(Et={}))Le.call(Et,_e)&&ge(tt,_e,Et[_e]);if(ce)for(var _e of ce(Et))xe.call(Et,_e)&&ge(tt,_e,Et[_e]);return tt};function Ne(tt,Et){return(0,y.U2)(`myproblems/${tt}.json`,Se({hidePopLogin:!0},Et||{}))}function Be(tt,Et){return(0,y.v_)(`myproblems/${tt}/code_submit.json`,Et)}function fe(tt,Et){return(0,y.v_)(`myproblems/${tt}/code_debug.json`,Et)}function $e(tt,Et){return Et.language&&(Et.language=encodeURIComponent(Et.language)),(0,y.U2)(`myproblems/${tt}/submit_records.json`,Et)}function Oe(tt){return(0,y.U2)("myproblems/record_detail.json",{id:tt})}function ct(tt,Et){return(0,y.U2)(`myproblems/${tt}/result.json`,{mode:Et})}function Ke(tt,Et){return(0,y.v_)(`myproblems/${tt}/add_notes.json`,Et)}function Te(tt,Et){return(0,y.v_)(`myproblems/${tt}/restore_initial_code.json`,Et)}function we(tt){return(0,y.v_)(`myproblems/${tt}/sync_code.json`)}function Ie(tt,Et){return(0,y.v_)(`myproblems/${tt}/update_code.json`,Et)}function Pe(tt,Et){return(0,y.v_)(`discusses/${tt}/plus.json`,Et)}},26971:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return si}});var y=E(59301),ve={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",btn_warp:"btn_warp___fOE2S"},ce=E(28284),Le=E(25399),xe=E(7939),ge=E(62957),Se=E(4875),Ne=E(6767),Be=E(37568),fe=E(37285),$e=E(62673),Oe=E(37639),ct=E(77019),Ke=E(5269),Te=E(31709),we=Object.defineProperty,Ie=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,Et=(Bt,Xt,an)=>Xt in Bt?we(Bt,Xt,{enumerable:!0,configurable:!0,writable:!0,value:an}):Bt[Xt]=an,_e=(Bt,Xt)=>{for(var an in Xt||(Xt={}))Pe.call(Xt,an)&&Et(Bt,an,Xt[an]);if(Ie)for(var an of Ie(Xt))tt.call(Xt,an)&&Et(Bt,an,Xt[an]);return Bt};const Fe=Bt=>React.createElement("svg",_e({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},Bt),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 He="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTRFNkZEIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0iTTEzLjgwOCAxMS40NDhhLjU1OC41NTggMCAwIDEgMCAuNzg4bC0xLjU2NCAxLjU2NWEuNTU4LjU1OCAwIDEgMS0uNzg5LS43OWwxLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDAgMSAuNzkgMFptOS44ODIgMi40NjJhLjU1OC41NTggMCAwIDEtLjc4OSAwbC0xLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDEgMSAuNzg5LS43ODlsMS41NjQgMS41NjRhLjU1Ni41NTYgMCAwIDEgMCAuNzg4WiIgZmlsbD0iIzY2NzhFQiIvPjxwYXRoIGQ9Ik0yMS43NTMgMjEuNzA3YTUuOTM3IDUuOTM3IDAgMSAwLTguNTguMDE1bC0uOTM3LjkzNmEuNTU4LjU1OCAwIDEgMCAuNzg5Ljc4OGwuOTk1LS45OTRhNS45MSA1LjkxIDAgMCAwIDMuNDM2IDEuMDk1YzEuMjg3IDAgMi40OC0uNDEgMy40NTItMS4xMDZsLjk5Mi45OTJhLjU1OC41NTggMCAxIDAgLjc4OS0uNzg5bC0uOTM2LS45MzdaIiBmaWxsPSIjNjY3OEVCIi8+PHBhdGggZD0ibTIwLjg1OCAxOC45NS0zLjAyNC0xLjc0NXYtMi4wNTRhLjU1OC41NTggMCAxIDAtMS4xMTcgMHYyLjM1MWMwIC4wNjQuMDExLjEyNi4wMzEuMTg0YS41NTEuNTUxIDAgMCAwIC4yNTguMzNsMy4yOTMgMS45YS41NTcuNTU3IDAgMCAwIC41NTktLjk2NloiIGZpbGw9IiNGRkYiLz48L2c+PC9nPjwvc3ZnPg==",Xe=E(95097),St=E(65582),gt=E(65862),ot=E(38147),Ue=Object.defineProperty,Ee=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,de=(Bt,Xt,an)=>Xt in Bt?Ue(Bt,Xt,{enumerable:!0,configurable:!0,writable:!0,value:an}):Bt[Xt]=an,wt=(Bt,Xt)=>{for(var an in Xt||(Xt={}))We.call(Xt,an)&&de(Bt,an,Xt[an]);if(Ee)for(var an of Ee(Xt))Ae.call(Xt,an)&&de(Bt,an,Xt[an]);return Bt};const Qe=Bt=>React.createElement("svg",wt({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},Bt),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 Ge="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIgZmlsbD0iI0VBRjNGNCIvPjxwYXRoIGQ9Ik0yNS45MDUgMTUuMzdhLjc3NS43NzUgMCAwIDAtLjYyNi0uNTI5bC00LjgxNC0uNy0yLjE1Mi00LjM2MmEuNzc2Ljc3NiAwIDAgMC0xLjM5MiAwbC0yLjE1MyA0LjM2My00LjgxNC42OTlhLjc3NS43NzUgMCAwIDAtLjQzIDEuMzIzbDMuNDg0IDMuMzk2LS44MjMgNC43OTRhLjc3Ny43NzcgMCAwIDAgMS4xMjYuODE4bDQuMzA2LTIuMjY0IDQuMzA1IDIuMjY0YS43NzguNzc4IDAgMCAwIC44MTctLjA1OS43NzcuNzc3IDAgMCAwIC4zMS0uNzU5bC0uODIzLTQuNzk0IDMuNDgzLTMuMzk2YS43NzcuNzc3IDAgMCAwIC4xOTYtLjc5NVoiIGZpbGw9IiMyMUMwQTYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvZz48L3N2Zz4=",st=Object.defineProperty,Ce=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,zt=(Bt,Xt,an)=>Xt in Bt?st(Bt,Xt,{enumerable:!0,configurable:!0,writable:!0,value:an}):Bt[Xt]=an,jt=(Bt,Xt)=>{for(var an in Xt||(Xt={}))be.call(Xt,an)&&zt(Bt,an,Xt[an]);if(Ce)for(var an of Ce(Xt))vt.call(Xt,an)&&zt(Bt,an,Xt[an]);return Bt};const De=Bt=>React.createElement("svg",jt({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},Bt),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 pt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTdGM0ZGIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGw9IiM0QzZGRkYiIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0ibTIzLjcxOSAxMy4zMjUtNC4wOTgtMy45NGMtLjA5Ny0uMTMtLjIyNS0uMTYyLS4zNTUtLjE2Mi0uMTI5IDAtLjI1OC4wNjQtLjM4Ny4xNjFsLTcuNTUgNy43NTNjLS4wNjUuMDY1LS4wOTguMTYyLS4xMy4yMjdsLTEuMDMyIDUuNDI3Yy0uMDMzLjE5NC4wMzIuMzIzLjE2LjQ4NC4xMy4xMy4yMjcuMTYyLjM4OS4xNjJoLjA5Nmw0Ljc3Ni0xLjA5OWMuMDk3LS4wMzIuMTk0LS4wNjQuMjU4LS4xNjFsNy44NDEtOC4xMDhjLjE5NC0uMTYyLjE5NC0uNTE3LjAzMy0uNzQ0aC0uMDAxWm0tOC4xIDguMDQ0YS41MzQuNTM0IDAgMCAxLS4zODYuMTYyLjU2LjU2IDAgMCAxLS4zODgtLjE2MmwtMy0yLjgxYy0uMjI2LS4xOTQtLjIyNi0uNTE3LS4wMzMtLjc0My4xOTQtLjIyNy41MTctLjIyNy43NDMtLjAzM2wzIDIuODExYy4yNTkuMjI2LjI5MS41NS4wNjUuNzc2Wk0xNyAyMi45Mmg2Ljg0NHYxLjA1NUgxN3oiLz48L2c+PC9nPjwvc3ZnPg==",ut=E(70414),Qt=E(25374),yt=E(20633),Ct={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"},mt=E(59301),dn=Object.defineProperty,Ht=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,ie=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,pe=(Bt,Xt,an)=>Xt in Bt?dn(Bt,Xt,{enumerable:!0,configurable:!0,writable:!0,value:an}):Bt[Xt]=an,ae=(Bt,Xt)=>{for(var an in Xt||(Xt={}))re.call(Xt,an)&&pe(Bt,an,Xt[an]);if(ie)for(var an of ie(Xt))oe.call(Xt,an)&&pe(Bt,an,Xt[an]);return Bt},me=(Bt,Xt)=>Ht(Bt,ue(Xt)),Ze=(Bt,Xt)=>{var an={};for(var In in Bt)re.call(Bt,In)&&Xt.indexOf(In)<0&&(an[In]=Bt[In]);if(Bt!=null&&ie)for(var In of ie(Bt))Xt.indexOf(In)<0&&oe.call(Bt,In)&&(an[In]=Bt[In]);return an};const Ot=null,at=(Bt,Xt)=>{var an=Bt,{globalSetting:In,loading:Va,dispatch:zr,isEdit:Jn,editData:hr}=an,Ar=Ze(an,["globalSetting","loading","dispatch","isEdit","editData"]);const[aa,Wr]=(0,y.useState)(""),[or,ha]=(0,y.useState)(""),[fa,Nr]=(0,y.useState)([]),[Aa,$a]=(0,y.useState)(""),[ua,fr]=(0,y.useState)(),[Yr,ui]=(0,y.useState)(!1),[ba,ca]=(0,y.useState)({}),[ra,Pa]=(0,y.useState)([]);(0,y.useEffect)(()=>{!hr||!Jn||(Wr(hr==null?void 0:hr.name),ha(hr==null?void 0:hr.analysis),fr(hr==null?void 0:hr.is_ordered),ca(hr),ui(!0))},[hr]),(0,y.useEffect)(()=>{if(!Yr)return;const Ur=hr==null?void 0:hr.standard_answer.map(Io=>Io==null?void 0:Io.answer_text);Nr(Ur);const bo=hr==null?void 0:hr.standard_answer.map(Io=>Io==null?void 0:Io.score);Pa(bo),ui(!1)},[Yr]),(0,y.useImperativeHandle)(Xt,()=>({onSave:ao,Clear:qo}));const ao=()=>{let Ur=[],bo=!1;return aa?(fa.forEach((Io,Eo)=>{Ur.push({position:Eo+1,answer_text:[],score:ra[Eo]}),Io==null||Io.forEach((yl,js)=>{Ur[Eo].answer_text.push(yl),(!yl||!(0,gt.eR)(yl,1e4))&&($a(`${Eo}-${js}`),Ne.ZP.info(yl?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),bo=!0)})}),bo?!1:(Ur==null?void 0:Ur.length)>20?(Ne.ZP.warning("\u586B\u7A7A\u9898\u6807\u51C6\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A/\u4E0D\u80FD\u8D85\u8FC720\u4E2A\uFF01"),!1):{name:aa,analysis:or,standard_answers:Ur,is_ordered:ua,downcase:ba==null?void 0:ba.downcase,no_space:ba==null?void 0:ba.no_space,use_blank_score:ba==null?void 0:ba.use_blank_score}):(Ne.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1)},qo=()=>{Wr(""),ha(""),Nr([]),fr(!1)},Ko=(Ur,bo,Io)=>{const Eo=fa.slice();if(bo&&Eo.splice(Ur,bo),Io)for(let yl=0;yl<Io;yl++)Eo.splice(Ur+yl,0,[""]);Nr(Eo)},Xl=(Ur,bo,Io)=>{$a("");let Eo=fa.slice();Eo[Ur][bo]=Io,Nr(Eo)},Oi=Ur=>{let bo=fa.slice();bo[Ur]=[...bo[Ur],""],Nr(bo)},Tl=(Ur,bo)=>{let Io=fa.slice();if(!Io[Ur][bo]){Io[Ur]=Io[Ur].filter((Eo,yl)=>yl!==bo),Nr(Io);return}ge.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:Ct.modal,onOk:()=>{Io[Ur]=Io[Ur].filter((Eo,yl)=>yl!==bo),Nr(Io)}})},Ml=Ur=>{ge.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:Ct.modal,onOk:()=>{let bo=fa.slice();bo=fa.filter((Io,Eo)=>Ur!==Eo),Nr(bo)}})};return mt.createElement("section",{className:Ct.wrap},mt.createElement("p",{className:Ct.titleWrap},mt.createElement("span",{className:Ct.required},"*"),mt.createElement("span",{className:Ct.title},"\u9898\u5E72\uFF1A")),mt.createElement("div",null,mt.createElement(Qt.Z,{id:"completion-question-tittle",placeholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",height:155,defaultValue:aa,onChange:Ur=>Wr(Ur),showNullButton:!0,onAddBlank:()=>Nr(Ur=>[...Ur,[""]])})),mt.createElement("div",{className:"mt20 flex flex-col gap-10px"},fa.map((Ur,bo)=>mt.createElement("div",{style:{display:"flex"}},mt.createElement("div",{style:{flex:1}},mt.createElement(yt.Z,{key:bo,answers:Ur,index:bo,flex:1,is_md:!0,activeOptionErrorIndex:Aa,onAnswerChange:Xl,addChildAnswer:Oi,deleteChildAnswer:Tl,deleteChildAnswermain:Ml})),ba.use_blank_score&&mt.createElement("div",{style:{display:"flex",alignItems:"center",width:"165px"}},mt.createElement("span",{style:{color:"red",margin:"auto 5px auto 10px"}},"*"),"\u5206\u503C\uFF1A",mt.createElement(Se.Z,{style:{width:"100px"},size:"large",defaultValue:ra[bo],onBlur:Io=>{ra[bo]=Io.target.value,Pa([...ra])}}))))),mt.createElement(xe.ZP,{className:"mt20",onClick:()=>Nr(Ur=>[...Ur,[""]]),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),mt.createElement("div",null,mt.createElement($e.default,{className:`${Ct.color333} font14 mt20`,checked:ba.use_blank_score,onChange:Ur=>ca(me(ae({},ba),{use_blank_score:Ur.target.checked}))},"\u5224\u5206\u65F6\u6309\u7A7A\u7ED9\u5206"),mt.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")),mt.createElement("div",null,mt.createElement($e.default,{className:`${Ct.color333} font14 mt20`,checked:ba.downcase,onChange:Ur=>ca(me(ae({},ba),{downcase:Ur.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),mt.createElement("div",null,mt.createElement($e.default,{className:`${Ct.color333} font14 mt20`,checked:ba.no_space,onChange:Ur=>ca(me(ae({},ba),{no_space:Ur.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),mt.createElement("div",{className:"mt20"},(fa==null?void 0:fa.length)>1&&mt.createElement("span",null,mt.createElement($e.default,{checked:ua,onChange:Ur=>fr(Ur.target.checked),className:`${Ct.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),mt.createElement("span",{className:`${Ct.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"))),mt.createElement("p",{className:Ct.titleWrap},mt.createElement("span",{className:Ct.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),mt.createElement(Qt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:or,onChange:Ur=>ha(Ur)}))};var qe=(0,St.connect)(({loading:Bt,globalSetting:Xt})=>({globalSetting:Xt,loading:Bt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(at)),bt=E(47889),At=Object.getOwnPropertySymbols,$t=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,rt=(Bt,Xt)=>{var an={};for(var In in Bt)$t.call(Bt,In)&&Xt.indexOf(In)<0&&(an[In]=Bt[In]);if(Bt!=null&&At)for(var In of At(Bt))Xt.indexOf(In)<0&&Ye.call(Bt,In)&&(an[In]=Bt[In]);return an};const Vt=null,sn=(Bt,Xt)=>{var an=Bt,{globalSetting:In,loading:Va,editData:zr,dispatch:Jn,onRef:hr=()=>{},isEdit:Ar}=an,aa=rt(an,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[Wr,or]=(0,y.useState)(),[ha,fa]=(0,y.useState)(""),[Nr,Aa]=(0,y.useState)("");(0,y.useEffect)(()=>{if(!zr||!Ar)return;fa(zr==null?void 0:zr.name),Aa(zr==null?void 0:zr.analysis);const fr=zr==null?void 0:zr.choices.find(Yr=>Yr.is_answer);or(fr.choice_text==="\u6B63\u786E"?"0":"1")},[zr]),(0,y.useImperativeHandle)(Xt,()=>({onSave:$a,Clear:ua}));const $a=()=>ha?Wr?{name:ha,choices:[{choice_text:"\u6B63\u786E",is_answer:Wr==="0"?1:0},{choice_text:"\u9519\u8BEF",is_answer:Wr==="1"?1:0}],analysis:Nr}:(Ne.ZP.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),!1):(Ne.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1),ua=()=>{fa(""),Aa(""),or("")};return y.createElement("section",{className:Ct.wrap},y.createElement("p",{className:Ct.titleWrap},y.createElement("span",{className:Ct.required},"*"),y.createElement("span",{className:Ct.title},"\u9898\u5E72\uFF1A")),y.createElement(Qt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ha,onChange:fr=>fa(fr)}),y.createElement("p",{className:Ct.titleWrap},y.createElement("span",{className:Ct.required},"*"),y.createElement("span",{className:Ct.title},"\u7B54\u6848\u9009\u9879\uFF1A",y.createElement("span",{className:Ct.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),y.createElement(bt.ZP.Group,{buttonStyle:"solid",value:Wr,onChange:fr=>or(fr.target.value)},y.createElement(bt.ZP.Button,{value:"0",className:`${Ct.radio} mr40`},"\u6B63\u786E"),y.createElement(bt.ZP.Button,{value:"1",className:Ct.radio},"\u9519\u8BEF")),y.createElement("p",{className:Ct.titleWrap},y.createElement("span",{className:Ct.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),y.createElement(Qt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Nr,onChange:fr=>Aa(fr)}))};var wn=(0,St.connect)(({loading:Bt,globalSetting:Xt})=>({globalSetting:Xt,loading:Bt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(sn)),pn=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,Gt=Object.prototype.propertyIsEnumerable,Pt=(Bt,Xt)=>{var an={};for(var In in Bt)kt.call(Bt,In)&&Xt.indexOf(In)<0&&(an[In]=Bt[In]);if(Bt!=null&&pn)for(var In of pn(Bt))Xt.indexOf(In)<0&&Gt.call(Bt,In)&&(an[In]=Bt[In]);return an};const Je=null,It=(Bt,Xt)=>{var an=Bt,{globalSetting:In,loading:Va,editData:zr,dispatch:Jn,onRef:hr=()=>{},isEdit:Ar}=an,aa=Pt(an,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[Wr,or]=(0,y.useState)([]);(0,y.useEffect)(()=>{var Aa;if(!zr||!Ar)return;const $a=(Aa=zr==null?void 0:zr.shixun)==null?void 0:Aa.challenges.map(ua=>({id:ua==null?void 0:ua.id,score:ua.score}));or($a)},[zr]),(0,y.useImperativeHandle)(Xt,()=>({onSave:ha,Clear:fa}));const ha=()=>({challenges:[...Wr]}),fa=()=>{or([])};console.log("editData--",zr);const Nr=Aa=>{var $a,ua;return y.createElement("div",null,(ua=($a=Aa==null?void 0:Aa.shixun)==null?void 0:$a.challenges)==null?void 0:ua.map((fr,Yr)=>{var ui;return y.createElement("div",{className:"c-grey-666 font14 ml25",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"15px"}},y.createElement("div",null,y.createElement("span",{className:"mr5"},"\u7B2C",Yr+1,"\u5173"),y.createElement(Le.Z,{key:Yr,title:fr==null?void 0:fr.challenge_name},y.createElement("span",null,(0,gt.Pq)(fr==null?void 0:fr.challenge_name,44)))),y.createElement("p",{style:{marginBottom:0}},y.createElement("span",{className:Ct.required},"*"),y.createElement("span",{className:Ct.title},"\u5206\u503C\uFF1A"),y.createElement(Se.Z,{precision:1,min:1,max:100,className:Ct.baseFormItem,style:{width:176},value:(ui=Wr.find(ba=>ba.id===fr.id))==null?void 0:ui.score,onChange:ba=>{Wr.find(ca=>ca.id===fr.id).score=ba,or([...Wr])}})))}),y.createElement("div",{style:{clear:"both"}}))};return y.createElement("section",{className:Ct.wrap},y.createElement(Xe.Z,{style:{paddingRight:10},className:Ct.titleHtml,value:`${zr==null?void 0:zr.position}\u3001${zr==null?void 0:zr.name}`}),y.createElement("p",{style:{marginBottom:"10px",marginTop:"25px"}},y.createElement("span",{className:Ct.required},"*"),y.createElement("span",{className:Ct.title},"\u5173\u5361")),Nr(zr))};var tn=(0,St.connect)(({loading:Bt,globalSetting:Xt})=>({globalSetting:Xt,loading:Bt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(It)),mn=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,Jt=(Bt,Xt)=>{var an={};for(var In in Bt)nt.call(Bt,In)&&Xt.indexOf(In)<0&&(an[In]=Bt[In]);if(Bt!=null&&mn)for(var In of mn(Bt))Xt.indexOf(In)<0&&Nt.call(Bt,In)&&(an[In]=Bt[In]);return an};const xt=["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"],Wt=(Bt,Xt)=>{var an=Bt,{editData:In,globalSetting:Va,loading:zr,dispatch:Jn,onRef:hr=()=>{},isEdit:Ar}=an,aa=Jt(an,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[Wr,or]=(0,y.useState)([]),[ha,fa]=(0,y.useState)(),[Nr,Aa]=(0,y.useState)([]),[$a,ua]=(0,y.useState)(""),[fr,Yr]=(0,y.useState)("");(0,y.useEffect)(()=>{or(["","","",""])},[]),(0,y.useEffect)(()=>{if(!In||!Ar)return;ua(In==null?void 0:In.name),Yr(In==null?void 0:In.analysis),or(In==null?void 0:In.choices.map(ra=>ra.choice_text));const ca=[];In==null||In.choices.map((ra,Pa)=>{ra.is_answer&&ca.push(Pa)}),Aa(ca)},[In]),(0,y.useImperativeHandle)(Xt,()=>({onSave:ui,Clear:ba}));const ui=()=>{if(!$a)return Ne.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const ca=Wr.findIndex(Pa=>!Pa);if(ca>-1)return Ne.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${xt[ca]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!Nr.length)return Ne.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(Nr.length<2)return Ne.ZP.info("\u591A\u9009\u9898\u6700\u5C0F\u6B63\u786E\u9009\u9879\u4E3A2\u4E2A"),!1;const ra=Wr.map((Pa,ao)=>({choice_text:Pa,is_answer:Nr.includes(ao)?1:0}));return{name:$a,choices:ra,analysis:fr}},ba=()=>{or(["","","",""]),ua(""),Yr(""),Aa("")};return y.createElement("section",{className:Ct.wrap},y.createElement("p",{className:Ct.titleWrap},y.createElement("span",{className:Ct.required},"*"),y.createElement("span",{className:Ct.title},"\u9898\u5E72\uFF1A")),y.createElement(Qt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:$a,onChange:ca=>ua(ca)}),y.createElement("p",{className:Ct.titleWrap},y.createElement("span",{className:Ct.required},"*"),y.createElement("span",{className:Ct.title},"\u7B54\u6848\u9009\u9879\uFF1A",y.createElement("span",{className:Ct.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Wr.map((ca,ra)=>y.createElement("div",{className:Ct.choiceWrap,key:ra},y.createElement(Le.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},y.createElement("div",{className:`${Ct.answer} ${Nr.includes(ra)?Ct.activeAnswer:""}`,onClick:()=>{Nr.includes(ra)?Aa(Nr.filter(Pa=>Pa!==ra)):Aa([...Nr,ra])}},xt[ra])),y.createElement("div",{className:Ct.editorWrap},ha===ra?y.createElement(Qt.Z,{id:`single-question-option-${ra}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:ca,onChange:Pa=>{Wr[ra]=Pa,or(Wr)}}):y.createElement("div",{className:Ct.htmlWrap,onClick:()=>fa(ra)},y.createElement(Xe.Z,{value:ca}))),ra>1&&y.createElement(Le.Z,{title:"\u5220\u9664"},y.createElement("i",{className:`${Ct.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{or(Wr.filter((Pa,ao)=>ao!==ra)),Nr.includes(ra)?Aa(Nr.filter(Pa=>Pa!==ra)):Aa([...Nr,ra])}})),ra<14&&ra===Wr.length-1&&y.createElement(Le.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},y.createElement("i",{className:`${Ct.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>or([...Wr,""])})))),y.createElement("p",{className:Ct.titleWrap},y.createElement("span",{className:Ct.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),y.createElement(Qt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:fr,onChange:ca=>Yr(ca)}))};var qt=(0,St.connect)(({loading:Bt,globalSetting:Xt})=>({globalSetting:Xt,loading:Bt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(Wt)),Tn=Object.getOwnPropertySymbols,Gn=Object.prototype.hasOwnProperty,On=Object.prototype.propertyIsEnumerable,Hn=(Bt,Xt)=>{var an={};for(var In in Bt)Gn.call(Bt,In)&&Xt.indexOf(In)<0&&(an[In]=Bt[In]);if(Bt!=null&&Tn)for(var In of Tn(Bt))Xt.indexOf(In)<0&&On.call(Bt,In)&&(an[In]=Bt[In]);return an};const Zt=["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"],Dn=(Bt,Xt)=>{var an=Bt,{editData:In,globalSetting:Va,loading:zr,dispatch:Jn,onRef:hr=()=>{},isEdit:Ar}=an,aa=Hn(an,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[Wr,or]=(0,y.useState)([]),[ha,fa]=(0,y.useState)(),[Nr,Aa]=(0,y.useState)(),[$a,ua]=(0,y.useState)(""),[fr,Yr]=(0,y.useState)("");(0,y.useEffect)(()=>{or(["","","",""])},[]),(0,y.useEffect)(()=>{if(!In||!Ar)return;const ca=[],ra=[];In==null||In.choices.forEach((Pa,ao)=>{ca.push(Pa.choice_text),Pa.is_answer&&ra.push(ao)}),ua(In==null?void 0:In.name),Yr(In==null?void 0:In.analysis),or(ca),Aa(ra)},[In]),(0,y.useImperativeHandle)(Xt,()=>({onSave:ui,Clear:ba}));const ui=()=>{if(!$a)return Ne.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const ca=Wr.findIndex(Pa=>!Pa);if(ca>-1)return Ne.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Zt[ca]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!Array.isArray(Nr))return Ne.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 ra=Wr.map((Pa,ao)=>({choice_text:Pa,is_answer:Nr.includes(ao)?1:0}));return{name:$a,choices:ra,analysis:fr}},ba=()=>{or(["","","",""]),ua(""),Yr(""),Aa("")};return y.createElement("section",{className:Ct.wrap},y.createElement("p",{className:Ct.titleWrap},y.createElement("span",{className:Ct.required},"*"),y.createElement("span",{className:Ct.title},"\u9898\u5E72\uFF1A")),y.createElement(Qt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:$a,onChange:ca=>ua(ca)}),y.createElement("p",{className:Ct.titleWrap},y.createElement("span",{className:Ct.required},"*"),y.createElement("span",{className:Ct.title},"\u7B54\u6848\u9009\u9879\uFF1A",y.createElement("span",{className:Ct.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Wr.map((ca,ra)=>y.createElement("div",{className:Ct.choiceWrap,key:ra},y.createElement(Le.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},y.createElement("div",{className:`${Ct.answer} ${Nr!=null&&Nr.includes(ra)?Ct.activeAnswer:""}`,onClick:()=>Aa([ra])},Zt[ra])),y.createElement("div",{className:Ct.editorWrap},ha===ra?y.createElement(Qt.Z,{id:`single-question-option-${ra}`,watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:ca,onChange:Pa=>{Wr[ra]=Pa,or(Wr)}}):y.createElement("div",{className:Ct.htmlWrap,onClick:()=>fa(ra)},y.createElement(Xe.Z,{value:ca}))),ra>1&&y.createElement(Le.Z,{title:"\u5220\u9664"},y.createElement("i",{className:`${Ct.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{or(Wr.filter((Pa,ao)=>ao!==ra)),ra===Nr&&Aa(null)}})),ra<14&&ra===Wr.length-1&&y.createElement(Le.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},y.createElement("i",{className:`${Ct.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>or([...Wr,""])})))),y.createElement("p",{className:Ct.titleWrap},y.createElement("span",{className:Ct.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),y.createElement(Qt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:fr,onChange:ca=>Yr(ca)}))};var nn=(0,St.connect)(({loading:Bt,globalSetting:Xt})=>({globalSetting:Xt,loading:Bt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(Dn)),Sn=E(96599),rn=E(58755),En=E(61485),xn=E(59301),Vn=Object.defineProperty,sr=Object.defineProperties,er=Object.getOwnPropertyDescriptors,cr=Object.getOwnPropertySymbols,Dr=Object.prototype.hasOwnProperty,mr=Object.prototype.propertyIsEnumerable,Hr=(Bt,Xt,an)=>Xt in Bt?Vn(Bt,Xt,{enumerable:!0,configurable:!0,writable:!0,value:an}):Bt[Xt]=an,Lr=(Bt,Xt)=>{for(var an in Xt||(Xt={}))Dr.call(Xt,an)&&Hr(Bt,an,Xt[an]);if(cr)for(var an of cr(Xt))mr.call(Xt,an)&&Hr(Bt,an,Xt[an]);return Bt},An=(Bt,Xt)=>sr(Bt,er(Xt)),Rn=(Bt,Xt)=>{var an={};for(var In in Bt)Dr.call(Bt,In)&&Xt.indexOf(In)<0&&(an[In]=Bt[In]);if(Bt!=null&&cr)for(var In of cr(Bt))Xt.indexOf(In)<0&&mr.call(Bt,In)&&(an[In]=Bt[In]);return an},dr=(Bt,Xt,an)=>new Promise((In,Va)=>{var zr=Ar=>{try{hr(an.next(Ar))}catch(aa){Va(aa)}},Jn=Ar=>{try{hr(an.throw(Ar))}catch(aa){Va(aa)}},hr=Ar=>Ar.done?In(Ar.value):Promise.resolve(Ar.value).then(zr,Jn);hr((an=an.apply(Bt,Xt)).next())});const vr=Bt=>{if(!Bt)return!1;if(/^s*$/.test(Bt)||Bt.trim()===""){Ne.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let Xt=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 Bt==="|"?(Ne.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Mt=({value:Bt=[],onClose:Xt})=>xn.createElement(Sn.default,{closable:!0,onClose:Xt,className:Ct.keywordTag},xn.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Bt.join(" \u6216 "))),Kt=(Bt,Xt)=>{var an=Bt,{editData:In,globalSetting:Va,loading:zr,dispatch:Jn,onRef:hr=()=>{},isEdit:Ar}=an,aa=Rn(an,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[Wr,or]=(0,y.useState)(""),[ha,fa]=(0,y.useState)(""),[Nr,Aa]=(0,y.useState)(""),[$a,ua]=(0,y.useState)(""),[fr]=ce.default.useForm(),Yr=ce.default.useWatch("use_keywords",fr);(0,y.useEffect)(()=>{var ra;!In||!Ar||(or(In==null?void 0:In.name),fa(In==null?void 0:In.analysis),Aa((ra=In==null?void 0:In.answer_texts)==null?void 0:ra[0]),fr.setFieldsValue(Lr({},In)))},[In]),(0,y.useImperativeHandle)(Xt,()=>({onSave:ui,Clear:ba}));const ui=()=>dr(void 0,null,function*(){if(!Wr)return Ne.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield fr.validateFields()}catch(Pa){Ne.ZP.error(Pa.errorFields[0].errors[0]);return}const ra=fr.getFieldsValue();return console.log(ra,"values"),Lr({name:Wr,answer_texts:[Nr],analysis:ha},ra)}),ba=()=>{or(""),fa(""),Aa(""),fr.resetFields()},ca=In==null?void 0:In.score;return xn.createElement("section",{className:Ct.wrap},xn.createElement("p",{className:Ct.titleWrap},xn.createElement("span",{className:Ct.required},"*"),xn.createElement("span",{className:Ct.title},"\u9898\u5E72\uFF1A")),xn.createElement(Qt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Wr,onChange:ra=>or(ra)}),xn.createElement("p",{className:Ct.titleWrap},xn.createElement("span",{className:Ct.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),xn.createElement(Qt.Z,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:Nr,onChange:ra=>Aa(ra)}),xn.createElement("p",{className:Ct.titleWrap},xn.createElement("span",{className:Ct.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),xn.createElement(Qt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:ha,onChange:ra=>fa(ra)}),xn.createElement(ce.default,{form:fr,size:"large",onFinishFailed:ra=>dr(void 0,null,function*(){var Pa,ao;Ne.ZP.error(ra.errorFields[0].errors[0]),fr.scrollToField((ao=(Pa=ra==null?void 0:ra.errorFields)==null?void 0:Pa[0])==null?void 0:ao.name,{behavior:"smooth",block:"center"})})},xn.createElement(ct.Z,{align:"middle",className:"mb30 mt20"},xn.createElement(ce.default.Item,{noStyle:!0,name:"use_keywords",valuePropName:"checked"},xn.createElement(rn.Z,null)),xn.createElement(Ke.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),xn.createElement(Ke.Z,null,xn.createElement(Le.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"},xn.createElement(En.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),Yr&&xn.createElement(ce.default.List,{name:"keywords",rules:[{validator(ra,Pa){return Pa!=null&&Pa.length?(Pa==null?void 0:Pa.reduce((qo,Ko)=>qo+Ko.score,0))>parseFloat(ca)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD"))}}]},(ra,{add:Pa,remove:ao})=>xn.createElement(xn.Fragment,null,xn.createElement("div",{className:"mb10"},"\u5173\u952E\u8BCD"),xn.createElement(ct.Z,{align:"middle",className:"font14 mb30"},xn.createElement(Ke.Z,{flex:1},xn.createElement(Be.default,{value:$a,onChange:qo=>{ua(qo.target.value)},maxLength:50,allowClear:!0,onPressEnter:qo=>{var Ko,Xl,Oi,Tl;const Ml=`${(Ko=qo.target)==null?void 0:Ko.value}`,Ur=(Oi=(Xl=Ml==null?void 0:Ml.split("|"))==null?void 0:Xl.filter(Eo=>!!Eo))==null?void 0:Oi.map(Eo=>Eo==null?void 0:Eo.trim()),bo=fr.getFieldValue("keywords"),Io=((Tl=bo==null?void 0:bo.map(Eo=>Eo==null?void 0:Eo.keyword))==null?void 0:Tl.flat())||[];for(const Eo of Ur)if(Io.includes(Eo)){Ne.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}vr(Ml)&&(Pa({keyword:Ur,score:1}),ua(""))},className:Ct.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"})),xn.createElement(Ke.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),ra.map(qo=>{var Ko=qo,{key:Xl,name:Oi}=Ko,Tl=Rn(Ko,["key","name"]);return xn.createElement(ct.Z,{key:Xl,style:{marginRight:148}},xn.createElement(Ke.Z,{flex:1},xn.createElement(ct.Z,{align:"middle",justify:"space-between"},xn.createElement(ce.default.Item,An(Lr({},Tl),{name:[Oi,"keyword"]}),xn.createElement(Mt,{onClose:()=>ao(Oi)})),xn.createElement(ce.default.Item,An(Lr({},Tl),{name:[Oi,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),xn.createElement(Se.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))})))))};var ft=(0,St.connect)(({loading:Bt,globalSetting:Xt})=>({globalSetting:Xt,loading:Bt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(Kt)),Rt=E(8848),it={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"},ht=E(32134),fn=E(12893),ar=Object.defineProperty,pr=Object.defineProperties,Ft=Object.getOwnPropertyDescriptors,Tt=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable,Fn=(Bt,Xt,an)=>Xt in Bt?ar(Bt,Xt,{enumerable:!0,configurable:!0,writable:!0,value:an}):Bt[Xt]=an,zn=(Bt,Xt)=>{for(var an in Xt||(Xt={}))_t.call(Xt,an)&&Fn(Bt,an,Xt[an]);if(Tt)for(var an of Tt(Xt))Ut.call(Xt,an)&&Fn(Bt,an,Xt[an]);return Bt},Un=(Bt,Xt)=>pr(Bt,Ft(Xt)),jn=(Bt,Xt)=>{var an={};for(var In in Bt)_t.call(Bt,In)&&Xt.indexOf(In)<0&&(an[In]=Bt[In]);if(Bt!=null&&Tt)for(var In of Tt(Bt))Xt.indexOf(In)<0&&Ut.call(Bt,In)&&(an[In]=Bt[In]);return an};const gr=Bt=>{var Xt=Bt,{value:an,onChange:In,scrollId:Va}=Xt,zr=jn(Xt,["value","onChange","scrollId"]);return y.createElement("div",{id:Va||""},y.createElement(Qt.Z,Un(zn({},zr),{defaultValue:an,onChange:(Jn,hr)=>{hr!=null&&hr.length?In(Jn,hr):In(Jn)}})))},Ir=({value:Bt,onChange:Xt,placeholder:an,height:In=140,isEdit:Va})=>Va?y.createElement(Qt.Z,{watch:!0,isFocus:!0,height:In,placeholder:an,defaultValue:Bt,onChange:Xt}):y.createElement("div",{style:{cursor:"pointer"}},Bt?y.createElement(Xe.Z,{className:it.inputBorder,value:Bt}):y.createElement("div",{className:`${it.inputBorder} ${it.placeholder}`},an));var Mr=E(59301),Zr=Object.defineProperty,Er=Object.defineProperties,Rr=Object.getOwnPropertyDescriptors,Xr=Object.getOwnPropertySymbols,oa=Object.prototype.hasOwnProperty,ta=Object.prototype.propertyIsEnumerable,xa=(Bt,Xt,an)=>Xt in Bt?Zr(Bt,Xt,{enumerable:!0,configurable:!0,writable:!0,value:an}):Bt[Xt]=an,Fa=(Bt,Xt)=>{for(var an in Xt||(Xt={}))oa.call(Xt,an)&&xa(Bt,an,Xt[an]);if(Xr)for(var an of Xr(Xt))ta.call(Xt,an)&&xa(Bt,an,Xt[an]);return Bt},Gr=(Bt,Xt)=>Er(Bt,Rr(Xt)),ya=(Bt,Xt)=>{var an={};for(var In in Bt)oa.call(Bt,In)&&Xt.indexOf(In)<0&&(an[In]=Bt[In]);if(Bt!=null&&Xr)for(var In of Xr(Bt))Xt.indexOf(In)<0&&ta.call(Bt,In)&&(an[In]=Bt[In]);return an};const Xa=["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"],Ia=({value:Bt,onChange:Xt,choiceTextKey:an,answerKey:In,index:Va,isEdit:zr,setInputActive:Jn,form:hr,choiceOptionsPath:Ar,allowChangeMode:aa,showAddIcon:Wr,addItem:or,deleteItem:ha})=>{const fa=(Bt==null?void 0:Bt[In])===!0,Nr=()=>{const $a=hr.getFieldValue(Ar);hr.setFieldValue(Ar,$a.map(ua=>Gr(Fa({},ua),{[In]:!1})))},Aa=()=>{fa?Xt(Gr(Fa({},Bt),{[In]:!1})):(aa||Nr(),Xt(Gr(Fa({},Bt),{[In]:!0})))};return Mr.createElement(ct.Z,{className:it.choiceWrap,align:"middle",wrap:!1},Mr.createElement(Ke.Z,{onClick:Aa,className:`${it.choiceIndex} ${fa?it.activeAnswer:""}`},Xa[Va]),Mr.createElement(Ke.Z,{flex:1,className:`${it.editorWrap} ml15`,onClick:Jn},Mr.createElement(Ir,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:zr,value:Bt==null?void 0:Bt[an],onChange:$a=>{Xt(Gr(Fa({},Bt),{[an]:$a}))}})),Mr.createElement(Ke.Z,{flex:"0 0 auto",className:"ml15"},Mr.createElement("div",{onClick:Aa,className:`${it.setAnswerBtn} ${fa?it.activeAnswer:""}`},fa?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),Mr.createElement(Ke.Z,{className:it.actionWrapper},Mr.createElement(Le.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},Mr.createElement(ht.Z,{className:it.addIcon,onClick:or,style:{visibility:Wr?"visible":"hidden"}})),Mr.createElement(Le.Z,{title:"\u5220\u9664"},Mr.createElement(fn.Z,{className:it.deleteIcon,onClick:ha,style:{visibility:Va>1?"visible":"hidden"}}))))},pa=({questionTitlePlaceholder:Bt,titleKey:Xt,choiceKey:an,analysisKey:In,choiceTextKey:Va,answerKey:zr,choiceOptionsPath:Jn,allowChangeMode:hr=!0,form:Ar,showAnalysis:aa=!0})=>{const[Wr,or]=(0,y.useState)(),[ha,fa]=(0,y.useState)(!1);return Mr.createElement("div",{className:it.wrap},Mr.createElement("div",{className:it.questionTitleEditorWrap},Mr.createElement(ce.default.Item,{label:"\u9898\u5E72",name:Xt,labelCol:{span:24},rules:[{required:!0}]},Mr.createElement(gr,{scrollId:Array.isArray(Xt)?Xt.join("_"):`${Xt}`,watch:!0,height:140,placeholder:Bt}))),Mr.createElement(ce.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),Mr.createElement(ce.default.List,{name:an,rules:[{validator(Nr,Aa){const $a=Aa.some(fr=>fr[zr]),ua=Aa.findIndex(fr=>{var Yr;return((Yr=fr[Va])==null?void 0:Yr.length)<=0});return ua!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Xa[ua]}\u9009\u9879\u7684\u5185\u5BB9`)):$a?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(Nr,{add:Aa,remove:$a})=>Mr.createElement("div",{id:Array.isArray(Jn)?Jn.join("_"):`${Jn}`},Nr.map((ua,fr)=>{var Yr=ua,{key:ui,name:ba}=Yr,ca=ya(Yr,["key","name"]);const ra=Wr===ui,Pa=()=>{or(ui)},ao=fr<7&&fr===Nr.length-1,qo=()=>Aa({[Va]:"",[zr]:0}),Ko=()=>$a(ba);return Mr.createElement(ce.default.Item,Gr(Fa({},ca),{key:ui,name:ba,noStyle:!0}),Mr.createElement(Ia,{choiceTextKey:Va,answerKey:zr,index:fr,isEdit:ra,setInputActive:Pa,form:Ar,choiceOptionsPath:Jn,allowChangeMode:hr,showAddIcon:ao,addItem:qo,deleteItem:Ko}))}),Nr.length<15&&Mr.createElement("div",{className:`${it.addBtn} mb30`,onClick:()=>Aa({[Va]:"",[zr]:0})},"\u6DFB\u52A0\u9009\u9879"))),aa&&Mr.createElement("div",{onClick:()=>fa(!0)},Mr.createElement(ce.default.Item,{name:In,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Mr.createElement(Ir,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ha}))))};var kr=E(59301),Za=Object.defineProperty,Sa=Object.defineProperties,la=Object.getOwnPropertyDescriptors,Kr=Object.getOwnPropertySymbols,Ya=Object.prototype.hasOwnProperty,_i=Object.prototype.propertyIsEnumerable,$i=(Bt,Xt,an)=>Xt in Bt?Za(Bt,Xt,{enumerable:!0,configurable:!0,writable:!0,value:an}):Bt[Xt]=an,za=(Bt,Xt)=>{for(var an in Xt||(Xt={}))Ya.call(Xt,an)&&$i(Bt,an,Xt[an]);if(Kr)for(var an of Kr(Xt))_i.call(Xt,an)&&$i(Bt,an,Xt[an]);return Bt},Di=(Bt,Xt)=>Sa(Bt,la(Xt)),pi=(Bt,Xt)=>{var an={};for(var In in Bt)Ya.call(Bt,In)&&Xt.indexOf(In)<0&&(an[In]=Bt[In]);if(Bt!=null&&Kr)for(var In of Kr(Bt))Xt.indexOf(In)<0&&_i.call(Bt,In)&&(an[In]=Bt[In]);return an};const Wi=({value:Bt,onChange:Xt,position:an,removeBlank:In})=>{const Va=Jn=>{ge.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:it.modal,onOk:()=>{const hr=[...Bt];hr.splice(Jn,1),hr.length===0?In(an-1):Xt(hr)}})},zr=()=>{const Jn=[...Bt];Jn.push(""),Xt(Jn)};return kr.createElement(ct.Z,{className:"ml20"},kr.createElement(Ke.Z,{flex:1},Bt==null?void 0:Bt.map((Jn,hr)=>kr.createElement(ct.Z,{key:`${Jn}_${hr}`,className:"mb20"},kr.createElement(Be.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Jn,autoSize:{maxRows:3},maxLength:1e3,onBlur:Ar=>{const aa=[...Bt],Wr=Ar.target.value.trim();aa[hr]=Wr,Xt(aa)}}),kr.createElement(Le.Z,{title:"\u5220\u9664"},kr.createElement(fn.Z,{className:it.deleteIcon,style:{marginLeft:15,visibility:an===1&&hr===0?"hidden":"visible"},onClick:()=>Va(hr)})),kr.createElement(Le.Z,{title:"\u65B0\u589E\u7B54\u6848"},kr.createElement(ht.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:hr===0?"visible":"hidden"},onClick:()=>{zr()}}))))))},Ci=({value:Bt=!0,onChange:Xt})=>kr.createElement(rn.Z,{checked:!Bt,onChange:an=>{Xt(!an)}}),ei="\u2581",Pr=({questionTitlePlaceholder:Bt,form:Xt,name:an,scoreByBlank:In="use_blank_score",answerKey:Va,titleKey:zr="name",analysisKey:Jn="analysis",isOrdered:hr="is_ordered"})=>{var Ar,aa;const[Wr,or]=(0,y.useState)(!1),ha=()=>{const fr=Xt.getFieldValue(["sub_item_banks",...Va]);Xt.setFieldValue(["sub_item_banks",...Va],fr==null?void 0:fr.map((Yr,ui)=>Di(za({},Yr),{position:ui+1})))},fa=(0,y.useRef)(),Nr=(fr,Yr)=>{for(let ui=0;ui<fr;ui++)fa.current({position:null,answer_text:[""]},Yr+ui);ha()},Aa=(0,y.useRef)(),$a=fr=>{Aa.current(fr),ha()},ua=(aa=(Ar=Xt.getFieldValue("sub_item_banks"))==null?void 0:Ar[Va==null?void 0:Va[0]])==null?void 0:aa[Va==null?void 0:Va[1]];return kr.createElement("div",{className:it.wrap},kr.createElement("div",{className:it.questionTitleEditorWrap},kr.createElement(ce.default.Item,{label:"\u9898\u5E72",name:zr,labelCol:{span:24},rules:[{required:!0}]},kr.createElement(gr,{scrollId:"name",watch:!0,height:140,placeholder:Bt,showNullButton:!0,onAddBlank:()=>{const fr=Xt.getFieldValue(["sub_item_banks",...Va]);Nr(1,fr==null?void 0:fr.length)}}))),kr.createElement(ce.default.List,{name:Va,rules:[{validator(fr,Yr){if((Yr==null?void 0:Yr.length)===0)return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const ui of Yr){const{answer_text:ba}=ui||{};if(ba!=null&&ba.some(ca=>(ca==null?void 0:ca.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(fr,{add:Yr,remove:ui},{errors:ba})=>(fa.current=Yr,Aa.current=ui,kr.createElement(kr.Fragment,null,kr.createElement(ce.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),fr.map((ca,ra)=>{var Pa=ca,{key:ao,name:qo}=Pa,Ko=pi(Pa,["key","name"]);return kr.createElement(ct.Z,{key:ao,align:"top",wrap:!1},kr.createElement(Ke.Z,{flex:"0 0 auto",className:`${it.blankIndex} pt5`},"\u586B\u7A7A\u9879",ra+1),kr.createElement(Ke.Z,{flex:1},kr.createElement(ct.Z,{align:"top",justify:"space-between",wrap:!1},kr.createElement(Ke.Z,{flex:1},kr.createElement(ce.default.Item,Di(za({},Ko),{name:[qo,"answer_text"],noStyle:!0}),kr.createElement(Wi,{removeBlank:$a,position:ra+1}))),(Xt==null?void 0:Xt.getFieldValue(["sub_item_banks",...In]))&&kr.createElement(Ke.Z,{flex:"224px",style:{margin:"-2px 0px 0px 20px"}},kr.createElement(ce.default.Item,Di(za({},Ko),{name:[qo,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:it.blankInputNumberWrapper}),kr.createElement(Se.Z,{className:it.blankInput,min:.1,max:100,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),kr.createElement(ce.default.Item,Di(za({},Ko),{name:[qo,"position"],noStyle:!0}),kr.createElement(Be.default,{type:"hidden"}))))})))),kr.createElement(xe.ZP,{className:"mb20",onClick:()=>Nr(1,ua==null?void 0:ua.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),kr.createElement(ct.Z,{align:"middle"},kr.createElement(ce.default.Item,{name:[an,"downcase"],valuePropName:"checked"},kr.createElement(rn.Z,null)),kr.createElement(Ke.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),kr.createElement(ct.Z,{align:"middle"},kr.createElement(ce.default.Item,{name:[an,"no_space"],valuePropName:"checked"},kr.createElement(rn.Z,null)),kr.createElement(Ke.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(ua==null?void 0:ua.length)>1&&kr.createElement(ct.Z,{align:"middle",className:(ua==null?void 0:ua.length)>1?"mb30":`${it.hide}`},kr.createElement(ce.default.Item,{name:hr},kr.createElement(Ci,null)),kr.createElement(Ke.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")),kr.createElement("div",{onClick:()=>or(!0)},kr.createElement(ce.default.Item,{name:Jn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},kr.createElement(Ir,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Wr}))))};var Qn=Object.defineProperty,Cr=Object.defineProperties,xr=Object.getOwnPropertyDescriptors,tr=Object.getOwnPropertySymbols,jr=Object.prototype.hasOwnProperty,sa=Object.prototype.propertyIsEnumerable,br=(Bt,Xt,an)=>Xt in Bt?Qn(Bt,Xt,{enumerable:!0,configurable:!0,writable:!0,value:an}):Bt[Xt]=an,Br=(Bt,Xt)=>{for(var an in Xt||(Xt={}))jr.call(Xt,an)&&br(Bt,an,Xt[an]);if(tr)for(var an of tr(Xt))sa.call(Xt,an)&&br(Bt,an,Xt[an]);return Bt},$r=(Bt,Xt)=>Cr(Bt,xr(Xt)),Qr=(Bt,Xt)=>{var an={};for(var In in Bt)jr.call(Bt,In)&&Xt.indexOf(In)<0&&(an[In]=Bt[In]);if(Bt!=null&&tr)for(var In of tr(Bt))Xt.indexOf(In)<0&&sa.call(Bt,In)&&(an[In]=Bt[In]);return an};const Ta={\u6B63\u786E:"T",\u9519\u8BEF:"F"},ja=({value:Bt,onChange:Xt,form:an,choiceKey:In})=>{const Va=(Bt==null?void 0:Bt.is_answer)===!0,zr=Bt==null?void 0:Bt.choice_text,Jn=()=>{var hr;const Ar=(hr=an==null?void 0:an.getFieldValue(["sub_item_banks",...In]))==null?void 0:hr.map(aa=>({choice_text:aa==null?void 0:aa.choice_text,is_answer:!1}));an==null||an.setFieldValue(["sub_item_banks",...In],Ar),Xt($r(Br({},Bt),{is_answer:!0}))};return y.createElement(ct.Z,{className:it.choiceWrap,align:"middle",wrap:!1},y.createElement(Ke.Z,{onClick:Jn,className:`${it.choiceIndex} ${it.judgementIndex} ${Va?it.activeAnswer:""}`},Ta[zr]),y.createElement(Ke.Z,{flex:1,className:`${it.editorWrap} ml15`},y.createElement("div",{className:`${it.inputBorder} ${it.placeholder} ${Va?it.activeJudgementAnswer:""}`},zr)),y.createElement(Ke.Z,{flex:"0 0 auto",className:"ml15"},y.createElement("div",{onClick:Jn,className:`${it.setAnswerBtn} ${Va?it.activeAnswer:""}`},Va?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},ea=({questionTitlePlaceholder:Bt,choiceKey:Xt="choices",form:an,titleKey:In="name",analysisKey:Va="analysis"})=>{const[zr,Jn]=(0,y.useState)(!1);return y.createElement("div",{className:it.wrap},y.createElement("div",{className:it.questionTitleEditorWrap},y.createElement(ce.default.Item,{label:"\u9898\u5E72",name:In,labelCol:{span:24},rules:[{required:!0}]},y.createElement(gr,{scrollId:"name",watch:!0,height:140,placeholder:Bt}))),y.createElement(ce.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},y.createElement(ce.default.List,{name:Xt,rules:[{validator(hr,Ar){return Ar.some(Wr=>(Wr==null?void 0:Wr.is_answer)===!0)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},hr=>y.createElement("div",{id:"choices"},hr.map(Ar=>{var aa=Ar,{key:Wr,name:or}=aa,ha=Qr(aa,["key","name"]);return y.createElement(ce.default.Item,$r(Br({},ha),{key:Wr,name:or,noStyle:!0}),y.createElement(ja,{form:an,choiceKey:Xt}))})))),y.createElement("div",{onClick:()=>Jn(!0)},y.createElement(ce.default.Item,{name:Va,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},y.createElement(Ir,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:zr}))))};var ai=Object.defineProperty,yi=Object.defineProperties,zi=Object.getOwnPropertyDescriptors,Gi=Object.getOwnPropertySymbols,Ji=Object.prototype.hasOwnProperty,Yi=Object.prototype.propertyIsEnumerable,co=(Bt,Xt,an)=>Xt in Bt?ai(Bt,Xt,{enumerable:!0,configurable:!0,writable:!0,value:an}):Bt[Xt]=an,No=(Bt,Xt)=>{for(var an in Xt||(Xt={}))Ji.call(Xt,an)&&co(Bt,an,Xt[an]);if(Gi)for(var an of Gi(Xt))Yi.call(Xt,an)&&co(Bt,an,Xt[an]);return Bt},jo=(Bt,Xt)=>yi(Bt,zi(Xt)),Wo=(Bt,Xt)=>{var an={};for(var In in Bt)Ji.call(Bt,In)&&Xt.indexOf(In)<0&&(an[In]=Bt[In]);if(Bt!=null&&Gi)for(var In of Gi(Bt))Xt.indexOf(In)<0&&Yi.call(Bt,In)&&(an[In]=Bt[In]);return an};const Da=Bt=>{var Xt=Bt,{value:an,onChange:In}=Xt,Va=Wo(Xt,["value","onChange"]);const zr=Jn=>{In([Jn])};return y.createElement(Qt.Z,jo(No({},Va),{defaultValue:an==null?void 0:an[0],onChange:zr}))},Fi=Bt=>{if(!Bt)return!1;let Xt=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 Bt==="|"?(Ne.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},ri=({value:Bt=[],onClose:Xt})=>y.createElement(Sn.default,{closable:!0,onClose:Xt,className:it.keywordTag},Bt==null?void 0:Bt.join(" \u6216 ")),So=({questionTitlePlaceholder:Bt,form:Xt,showKeywords:an,isMustKeyWords:In=an,titleKey:Va="name",analysisKey:zr="analysis",answerTexts:Jn="answer_texts",keywords:hr="keywords",useKeywords:Ar="use_keywords",indexs:aa})=>{const[Wr,or]=(0,y.useState)(!1),[ha,fa]=(0,y.useState)(""),Nr=ce.default.useWatch("sub_item_banks",Xt),{use_keywords:Aa,score:$a}=(Nr==null?void 0:Nr[aa])||{};return console.log(Aa,$a,"itemValues"),y.createElement("div",{className:it.wrap},y.createElement("div",{className:it.questionTitleEditorWrap},y.createElement(ce.default.Item,{label:"\u9898\u5E72",name:Va,labelCol:{span:24},rules:[{required:!0}]},y.createElement(gr,{scrollId:"name",watch:!0,height:140,placeholder:Bt}))),y.createElement(ce.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:Jn,labelCol:{span:24}},y.createElement(Da,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),an&&!In&&y.createElement(ce.default.Item,{hidden:!0,name:Ar,valuePropName:"checked"},y.createElement(rn.Z,{defaultChecked:!0})),an&&In&&y.createElement(ct.Z,{align:"middle",className:"mb30"},y.createElement(ce.default.Item,{name:Ar,valuePropName:"checked"},y.createElement(rn.Z,null)),y.createElement(Ke.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),y.createElement(Ke.Z,null,y.createElement(Le.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"},y.createElement(En.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Aa||!In)&&y.createElement(ce.default.List,{name:hr,rules:[{validator(ua,fr){return In?fr!=null&&fr.length?(fr==null?void 0:fr.reduce((ui,ba)=>ui+ba.score,0))>parseFloat($a)?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()}}]},(ua,{add:fr,remove:Yr})=>y.createElement(y.Fragment,null,y.createElement("div",{className:`${it.title} mb10`},In?"\u5173\u952E\u8BCD":y.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),y.createElement(ct.Z,{align:"middle",className:"font14 mb30"},y.createElement(Ke.Z,{flex:1},y.createElement(Be.default,{value:ha,onChange:ui=>{fa(ui.target.value)},maxLength:50,allowClear:!0,onPressEnter:ui=>{var ba,ca,ra,Pa;const ao=`${(ba=ui.target)==null?void 0:ba.value}`,qo=(ra=(ca=ao==null?void 0:ao.split("|"))==null?void 0:ca.filter(Oi=>!!Oi))==null?void 0:ra.map(Oi=>Oi==null?void 0:Oi.trim()),Ko=Xt.getFieldValue(["sub_item_banks",...hr]),Xl=((Pa=Ko==null?void 0:Ko.map(Oi=>Oi==null?void 0:Oi.keyword))==null?void 0:Pa.flat())||[];for(const Oi of qo)if(Xl.includes(Oi)){Ne.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Fi(ao)&&(fr({keyword:qo,score:1}),fa(""))},className:it.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"})),y.createElement(Ke.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),ua.map(ui=>{var ba=ui,{key:ca,name:ra}=ba,Pa=Wo(ba,["key","name"]);return y.createElement(ct.Z,{key:ca,className:"mb20",style:{marginRight:148}},y.createElement(Ke.Z,{flex:1},y.createElement(ct.Z,{align:"middle",justify:"space-between"},y.createElement(ce.default.Item,jo(No({},Pa),{name:[ra,"keyword"]}),y.createElement(ri,{onClose:()=>Yr(ra)})),In&&y.createElement(ce.default.Item,jo(No({},Pa),{name:[ra,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:it.blankInputNumberWrapper}),y.createElement(Se.Z,{className:it.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),y.createElement("div",{onClick:()=>or(!0)},y.createElement(ce.default.Item,{name:zr,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},y.createElement(Ir,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Wr}))))};var di=E(59301),il=Object.defineProperty,jl=Object.defineProperties,Pl=Object.getOwnPropertyDescriptors,Vo=Object.getOwnPropertySymbols,Yo=Object.prototype.hasOwnProperty,no=Object.prototype.propertyIsEnumerable,Ol=(Bt,Xt,an)=>Xt in Bt?il(Bt,Xt,{enumerable:!0,configurable:!0,writable:!0,value:an}):Bt[Xt]=an,Gl=(Bt,Xt)=>{for(var an in Xt||(Xt={}))Yo.call(Xt,an)&&Ol(Bt,an,Xt[an]);if(Vo)for(var an of Vo(Xt))no.call(Xt,an)&&Ol(Bt,an,Xt[an]);return Bt},Nl=(Bt,Xt)=>jl(Bt,Pl(Xt)),Fo=(Bt,Xt)=>{var an={};for(var In in Bt)Yo.call(Bt,In)&&Xt.indexOf(In)<0&&(an[In]=Bt[In]);if(Bt!=null&&Vo)for(var In of Vo(Bt))Xt.indexOf(In)<0&&no.call(Bt,In)&&(an[In]=Bt[In]);return an},es=(Bt,Xt,an)=>new Promise((In,Va)=>{var zr=Ar=>{try{hr(an.next(Ar))}catch(aa){Va(aa)}},Jn=Ar=>{try{hr(an.throw(Ar))}catch(aa){Va(aa)}},hr=Ar=>Ar.done?In(Ar.value):Promise.resolve(Ar.value).then(zr,Jn);hr((an=an.apply(Bt,Xt)).next())});const{Panel:as}=Rt.default,Ni=null,Qi=(Bt,Xt)=>{var an=Bt,{globalSetting:In,loading:Va,dispatch:zr,editData:Jn,onRef:hr=()=>{},isEdit:Ar}=an,aa=Fo(an,["globalSetting","loading","dispatch","editData","onRef","isEdit"]);const[Wr,or]=(0,y.useState)(""),[ha,fa]=(0,y.useState)([]),[Nr]=ce.default.useForm();(0,y.useEffect)(()=>{!Jn||!Ar||(or(Jn==null?void 0:Jn.name),fa(Jn==null?void 0:Jn.sub_item_banks),Nr.setFieldsValue(Gl({},Jn)))},[Jn]),(0,y.useEffect)(()=>{fa(Nr.getFieldValue("sub_item_banks"))},[ce.default.useWatch("sub_item_banks",Nr)]),(0,y.useImperativeHandle)(Xt,()=>({onSave:Aa,Clear:$a}));const Aa=()=>es(void 0,null,function*(){if(!Wr)return Ne.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield Nr.validateFields()}catch(ca){return console.log(ca,"errInfo"),Ne.ZP.error(ca.errorFields[0].errors[0]),!1}const ba=ha.map(ca=>Gl({id:ca.id>1?ca.id:null},ca));return{name:Wr,sub_item_banks:ba}}),$a=()=>{or(""),fa([])},ua={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"},fr=({value:ba})=>di.createElement("div",{style:{textAlign:"center",color:"#DF3065",margin:"0 5px"}},ba),[Yr,ui]=(0,y.useState)();return di.createElement("section",{className:Ct.wrap},di.createElement("p",{className:Ct.titleWrap},di.createElement("span",{className:Ct.required},"*"),di.createElement("span",{className:Ct.title},"\u9898\u5E72\uFF1A")),di.createElement(Qt.Z,{id:"combination-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Wr,onChange:ba=>or(ba)}),di.createElement(ce.default,{form:Nr,autoComplete:"off"},di.createElement(ce.default.List,{name:"sub_item_banks",rules:[{validator(ba,ca){return ca?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(ba,{add:ca,remove:ra})=>{const Pa=Nr.getFieldValue("sub_item_banks");return di.createElement(di.Fragment,null,di.createElement(Rt.default,{className:ba.length>0?Ct.collapseWrapper:"",bordered:!1,expandIcon:({isActive:ao})=>di.createElement("i",{className:`iconfont icon-weizhankai ${ao?Ct.open:Ct.close}`,style:{fontSize:14,transition:"all .2s"}})},ba.map((ao,qo)=>{var Ko=ao,{key:Xl,name:Oi}=Ko,Tl=Fo(Ko,["key","name"]),Ml,Ur,bo,Io,Eo,yl,js,_s,eu,xs,As,tu;return di.createElement(as,{className:Ct.panel,forceRender:!0,header:di.createElement("div",{className:Ct.panelHeader},"\u7B2C",qo+1,"\u5C0F\u9898",di.createElement("span",null,"\uFF08",ua[(Ml=Pa==null?void 0:Pa[Oi])==null?void 0:Ml.item_type],"\uFF09")),extra:di.createElement(ct.Z,{align:"middle",onClick:cs=>cs.stopPropagation(),style:{display:"flex",alignItems:"center"}},((Ur=Pa==null?void 0:Pa[Oi])==null?void 0:Ur.item_type)=="completion"&&di.createElement(ce.default.Item,Nl(Gl({},Tl),{name:[Oi,"score"],className:Ct.blankInputNumberWrapper,style:{marginBottom:0}}),((bo=Pa==null?void 0:Pa[Oi])==null?void 0:bo.item_type)=="completion"&&di.createElement("div",{style:{display:"flex",alignItems:"center",color:"#191919"}},"\u5171",di.createElement(fr,{value:(Io=Pa==null?void 0:Pa[Oi])==null?void 0:Io.score}),"\u5206")),((Eo=Pa==null?void 0:Pa[Oi])==null?void 0:Eo.item_type)=="completion"&&di.createElement(di.Fragment,null,di.createElement(bt.ZP.Group,{defaultValue:(yl=Pa==null?void 0:Pa[Oi])==null?void 0:yl.use_blank_score,className:Ct.scoreByBlankRadio,style:{marginRight:10},optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}],onChange:cs=>{var Ss;console.log(Nr.getFieldsValue()),Nr==null||Nr.setFieldValue(["sub_item_banks",Oi,"use_blank_score"],(Ss=cs==null?void 0:cs.target)==null?void 0:Ss.value),ui(new Date)}}),di.createElement(Le.Z,{overlayInnerStyle:{width:460},title:di.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",di.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")},di.createElement("i",{className:"icon-tishixiaowenhao font18 c-3061d0"})))),key:Xl},di.createElement(ce.default.Item,Nl(Gl({},Tl),{name:Oi}),(((js=Pa==null?void 0:Pa[Oi])==null?void 0:js.item_type)=="single"||((_s=Pa==null?void 0:Pa[Oi])==null?void 0:_s.item_type)=="multiple")&&di.createElement(pa,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((eu=Pa==null?void 0:Pa[Oi])==null?void 0:eu.item_type)!="single",form:Nr,choiceKey:[Oi,"choices"],titleKey:[Oi,"name"],analysisKey:[Oi,"analysis"],choiceOptionsPath:["sub_item_banks",Oi,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((xs=Pa==null?void 0:Pa[Oi])==null?void 0:xs.item_type)=="completion"&&di.createElement(Pr,{form:Nr,name:Oi,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",scoreByBlank:[Oi,"use_blank_score"],titleKey:[Oi,"name"],analysisKey:[Oi,"analysis"],isOrdered:[Oi,"is_ordered"],answerKey:[Oi,"standard_answer"],key:Yr}),((As=Pa==null?void 0:Pa[Oi])==null?void 0:As.item_type)=="judgement"&&di.createElement(ea,{form:Nr,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[Oi,"name"],analysisKey:[Oi,"analysis"],choiceKey:[Oi,"choices"]}),((tu=Pa==null?void 0:Pa[Oi])==null?void 0:tu.item_type)=="subjective"&&di.createElement(So,{showKeywords:!0,form:Nr,titleKey:[Oi,"name"],analysisKey:[Oi,"analysis"],answerTexts:[Oi,"answer_texts"],useKeywords:[Oi,"use_keywords"],keywords:[Oi,"keywords"],indexs:Oi,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})))})))};var Ii=(0,St.connect)(({loading:Bt,globalSetting:Xt})=>({globalSetting:Xt,loading:Bt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(Qi)),hi=E(96935),Hi=E(79939),uo=E(82326),Fl=E(70858),oo={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"},Qo=E(82636),Jo=E(63952),vn=E(33270),gn=E(61527),Nn=E(2524),Sr=E(90463),rr=({open:Bt,onCancel:Xt,onOk:an})=>{const In=(0,Jo.g)(),[Va,zr,Jn,hr]=(0,gn.U)(vn.Gm,{page:1,limit:10,keyword:"",diff:"",shixun_publish_status:"",discipline_id:"",sub_discipline_id:"",type:0,include_shixuns:!0,item_type:"SHIXUN"}),[Ar,aa]=(0,y.useState)(!1);(0,y.useEffect)(()=>{Bt&&Jn({page:1,limit:10,type:0},!0).then(Nr=>{(Nr==null?void 0:Nr.shixuns_count)===0&&aa(!0)})},[Bt]);const[Wr,or]=(0,y.useState)([]),[ha,fa]=(0,y.useState)([]);return y.createElement(ge.default,{title:"\u9009\u62E9\u5B9E\u8BAD\u9898",open:Bt,width:948,centered:!0,closable:!0,onCancel:Xt,onOk:()=>an(ha),destroyOnClose:!0},y.createElement(ct.Z,{justify:"space-between",className:"mb20",style:{maxHeight:650}},y.createElement(Ke.Z,null,y.createElement(Hi.Z,{style:{width:160},size:"large",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:In,onChange:Nr=>{Jn({page:1,discipline_id:Nr==null?void 0:Nr[0],sub_discipline_id:Nr==null?void 0:Nr[1]})}}),y.createElement(uo.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:Nr=>Jn({page:1,diff:Nr})}),y.createElement(uo.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:Nr=>Jn({page:1,shixun_publish_status:Nr})})),y.createElement(Qo.t7,{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",style:{width:290},onChange:Nr=>{Jn({keyword:Nr,page:1})}})),Ar?y.createElement("div",null,y.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,gt.xg)("/shixuns")})):y.createElement(Fl.default,{loading:zr,rowKey:"id",columns:[{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"30%",ellipsis:{showTitle:!0},render:(Nr,Aa)=>y.createElement("div",{style:{display:"flex",alignItems:"center"}},y.createElement("div",{className:Aa!=null&&Aa.high_resources_consume?oo.title:"",title:Nr||"--"},y.createElement(Xe.Z,{key:1,showLines:1,showTextOnly:!0,value:Nr||"--"})),(Aa==null?void 0:Aa.high_resources_consume)&&y.createElement(Sr.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u96BE\u5EA6",dataIndex:"level"},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",render:(Nr,Aa,$a)=>y.createElement("span",null,Nr||"- -")},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"study_count"},{title:y.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",y.createElement(Le.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},y.createElement(En.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",width:100,render:(Nr,Aa,$a)=>y.createElement("span",null,Nr||"- -")},{title:"\u64CD\u4F5C",render(Nr,Aa){const{title:$a,challenge_names:ua,author_name:fr,identifier:Yr,author_school_name:ui,study_count:ba}=Aa||{};return y.createElement("div",null,y.createElement("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:()=>{ge.default.confirm({title:"\u9898\u76EE\u8BE6\u60C5",closable:!0,width:1e3,centered:!0,icon:null,footer:null,content:y.createElement("div",null,y.createElement(Xe.Z,{value:$a,style:{marginBottom:18}}),y.createElement("div",{className:oo.challengeNameWrapper},ua.map((ca,ra)=>y.createElement("div",{className:oo.challengeName,key:ra},"\u7B2C",(0,gt.EM)(ra+1),"\u9898\xA0",ca))),y.createElement(ct.Z,{className:oo.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},y.createElement(Ke.Z,{className:oo.shixunInfoWrapper},y.createElement("span",null,"\u521B\u5EFA\u8005"),y.createElement("span",{className:oo.shixunInfo},fr.split("\u3001")[0]),y.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),y.createElement("span",{className:oo.shixunInfo},ui),y.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),y.createElement("span",{className:oo.shixunInfo},ba)),y.createElement(xe.ZP,{type:"primary",className:oo.btnToDetail,onClick:()=>(0,gt.xg)(`/shixuns/${Yr}/challenges?exercise=true`)},y.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),(Aa==null?void 0:Aa.shixun_tag_num)===1&&y.createElement("a",{target:"_blank",href:`/shixuns/${Aa==null?void 0:Aa.identifier}/challenges`,style:{marginLeft:10}},"\u53BB\u53D1\u5E03"))}}],dataSource:hr==null?void 0:hr.items,rowSelection:{type:"radio",selectedRowKeys:Wr,preserveSelectedRowKeys:!0,getCheckboxProps:Nr=>({disabled:Nr.shixun_tag_num===1}),onChange(Nr,Aa){var $a,ua,fr;console.log(Nr),or(Nr);const Yr=[];for(const ba of ha)Nr.includes(ba.id)&&Yr.push(ba);const ui=Yr.map(ba=>ba.id);for(const ba of Aa)ba&&Nr.includes(ba.id)&&!ui.includes(ba.id)&&Yr.push({id:ba.id,difficulty:ba.level,identifier:ba.identifier,name:ba.name,real_name:($a=ba==null?void 0:ba.author_name)==null?void 0:$a.split("\u3001")[0],school_name:ba.author_school_name,challenge_names:ba.challenge_names,challenges:(ua=ba.challenge_names)==null?void 0:ua.map((ca,ra)=>({subject:ca,id:ra,score:5})),score:((fr=ba.challenge_names)==null?void 0:fr.length)*5,study_count:ba.study_count,challenges_count:ba.challenges_count});fa(Yr)}},pagination:{current:Va.page,pageSize:Va.limit,total:hr==null?void 0:hr.items_count,showTotal:Nr=>y.createElement("span",null,"\u5171\xA0",y.createElement("span",{style:{color:"#165DFF"}},Nr),"\xA0\u6761\u6570\u636E"),showQuickJumper:!0,onChange(Nr,Aa){Jn({page:Nr,limit:Aa})},size:"default"},scroll:{y:400}}))},ir=E(83028),kn=E(60979),qn=(Bt,Xt,an)=>new Promise((In,Va)=>{var zr=Ar=>{try{hr(an.next(Ar))}catch(aa){Va(aa)}},Jn=Ar=>{try{hr(an.throw(Ar))}catch(aa){Va(aa)}},hr=Ar=>Ar.done?In(Ar.value):Promise.resolve(Ar.value).then(zr,Jn);hr((an=an.apply(Bt,Xt)).next())}),na=({visible:Bt,getdata:Xt,onCancel:an,onRandomExchange:In,selectFromProblemSet:Va,questionParams:zr})=>{const[Jn,hr]=(0,y.useState)(!1),[Ar,aa]=(0,y.useState)(!1),[Wr,or]=(0,y.useState)({}),ha=(0,St.useParams)(),[fa,Nr]=(0,y.useState)(),Aa=($a,ua)=>qn(void 0,null,function*(){aa(!0);const fr=yield(0,ot.ZP)(`/api/exercises/${ha.categoryId}/toggle_random_question.json`,{method:"post",body:{question_id:zr.id,item_bank_id:$a,shixuns_info:[{id:$a,is_copy:ua!=1,is_use:ua!=1}]}});aa(!1),fr!=null&&fr.status||(Ne.ZP.info("\u6362\u9898\u6210\u529F"),an(),Xt())});return y.createElement(ge.default,{title:"\u8BF7\u9009\u62E9\u66FF\u6362\u65B9\u5F0F",open:Bt,onCancel:an,centered:!0,maskClosable:!0,footer:null},y.createElement(ct.Z,{justify:"center",className:"pb20"},y.createElement(hi.Z,{onClick:In},"\u968F\u673A\u66F4\u6362"),(zr==null?void 0:zr.type)!=="PRACTICAL"&&y.createElement(xe.ZP,{style:{marginLeft:24},onClick:Va},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9"),(zr==null?void 0:zr.type)==="PRACTICAL"&&y.createElement(xe.ZP,{style:{marginLeft:24},onClick:()=>{hr(!0)}},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9")),y.createElement(rr,{open:Jn,onCancel:()=>hr(!1),onOk:$a=>qn(void 0,null,function*(){if(console.log("----selectedRows",$a,ha),($a==null?void 0:$a.length)<=0){Ne.ZP.info("\u8BF7\u9009\u62E9\u5B9E\u8BAD");return}let ua=$a==null?void 0:$a.map(Yr=>Yr==null?void 0:Yr.id),fr=yield(0,kn.Tr)({id:[...ua],course_id:ha.coursesId,type:"shixun"});(fr==null?void 0:fr.student_count)===0?Aa(ua==null?void 0:ua[0],1):(Nr(ua),or(fr)),hr(!1)})}),y.createElement(ir.Z,{resdata:Wr,type:"shixun",okloading:Ar,oktext:(Wr==null?void 0:Wr.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:$a=>qn(void 0,null,function*(){Aa(fa==null?void 0:fa[0],2)})}))},xi=E(98408),ki=E(24334),fo=E(88436),ro=E(25965),Ha=E(2337),ma=E(41867),Vr=Object.defineProperty,Ti=Object.defineProperties,Li=Object.getOwnPropertyDescriptors,vo=Object.getOwnPropertySymbols,To=Object.prototype.hasOwnProperty,Pi=Object.prototype.propertyIsEnumerable,go=(Bt,Xt,an)=>Xt in Bt?Vr(Bt,Xt,{enumerable:!0,configurable:!0,writable:!0,value:an}):Bt[Xt]=an,bi=(Bt,Xt)=>{for(var an in Xt||(Xt={}))To.call(Xt,an)&&go(Bt,an,Xt[an]);if(vo)for(var an of vo(Xt))Pi.call(Xt,an)&&go(Bt,an,Xt[an]);return Bt},ga=(Bt,Xt)=>Ti(Bt,Li(Xt)),vi=(Bt,Xt,an)=>new Promise((In,Va)=>{var zr=Ar=>{try{hr(an.next(Ar))}catch(aa){Va(aa)}},Jn=Ar=>{try{hr(an.throw(Ar))}catch(aa){Va(aa)}},hr=Ar=>Ar.done?In(Ar.value):Promise.resolve(Ar.value).then(zr,Jn);hr((an=an.apply(Bt,Xt)).next())});const fi=({data:Bt,submit:Xt,goBack:an,loading:In,onTypeScore:Va,editPreview:zr=!1,onSkipExamination:Jn,selectValue:hr,onExchange:Ar,getdata:aa,handleMarkWrongQuestion:Wr,dispatch:or})=>{var ha,fa,Nr,Aa,$a,ua,fr,Yr,ui,ba,ca;const ra=(0,y.useRef)(),[Pa,ao]=(0,y.useState)(null),[qo,Ko]=(0,y.useState)(!1),[Xl,Oi]=(0,y.useState)(!1),Tl=(0,y.useRef)(),[Ml]=ce.default.useForm(),Ur=(0,St.useParams)(),[bo,Io]=(0,y.useState)(!1),[Eo,yl]=(0,y.useState)([]);(0,y.useEffect)(()=>{Ko(!0)},[]),(0,y.useEffect)(()=>{zr||(0,gt.Dk)("\u8BD5\u5377\u9884\u89C8")},[zr]),(0,y.useEffect)(()=>{var $n;(($n=Bt==null?void 0:Bt.questionList)==null?void 0:$n.length)>0&&(Bt==null||Bt.questionList.forEach(wa=>{var Vi;wa.type==="PRACTICAL"&&((Vi=wa==null?void 0:wa.questions)==null||Vi.forEach((Ma,Fr)=>{var Zi;Eo[Fr]=!((Zi=Ma==null?void 0:Ma.shixun)!=null&&Zi.ignore_prompt),yl([...Eo])}))}))},[Bt]);const js=["\u5BB9\u6613","\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],_s={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"},eu={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"},xs=$n=>{var wa;const Vi=[];return y.createElement(y.Fragment,null,y.createElement("aside",{className:ve.single},(wa=$n==null?void 0:$n.choices)==null?void 0:wa.map((Ma,Fr)=>(Ma.is_answer&&Vi.push(Ha.k4[Fr]),y.createElement("ul",{key:Fr},y.createElement("li",null,Ha.k4[Fr],"\u3001"),y.createElement("li",null,y.createElement(Xe.Z,{value:Ma.choice_text})))))),y.createElement("div",{className:ve.analysis},y.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",Vi.join(""),y.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",js[$n.difficulty])),y.createElement("aside",null,y.createElement("span",{className:ve.text},"\u89E3\u6790:"),y.createElement(Xe.Z,{value:$n.analysis?$n.analysis:"\u6682\u65E0\u89E3\u6790"})),y.createElement("ul",null,y.createElement("li",null,y.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u8BFE\u7A0B:"),`${($n==null?void 0:$n.course_discipline_name)||"--"}`),y.createElement(Le.Z,{title:$n==null?void 0:$n.tag_discipline_name},y.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},y.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),$n==null?void 0:$n.tag_discipline_name)))))},As=($n,wa)=>{var Vi;const Ma=(Vi=$n==null?void 0:$n.standard_answer)==null?void 0:Vi.map((Fr,Zi)=>{var Ki;return y.createElement("div",{key:Zi},`\u7B54\u6848\uFF08\u586B\u7A7A${Fr==null?void 0:Fr.position}\uFF09\uFF1A${(Ki=Fr==null?void 0:Fr.answer_text)==null?void 0:Ki.join("\u3001")}`)});return y.createElement(y.Fragment,null,y.createElement("div",{className:ve.analysis},y.createElement("div",{style:{display:"flex"}},y.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),y.createElement("div",null,Ma)),y.createElement("aside",null,y.createElement("span",{className:ve.text},"\u89E3\u6790:"),y.createElement(Xe.Z,{value:$n.analysis?$n.analysis:"\u6682\u65E0\u89E3\u6790"})),y.createElement("ul",null,y.createElement("li",null,y.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u8BFE\u7A0B:"),`${(wa==null?void 0:wa.course_discipline_name)||"--"}`),y.createElement(Le.Z,{title:wa?wa==null?void 0:wa.tag_discipline_name:$n==null?void 0:$n.tag_discipline_name},y.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},y.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),wa?wa==null?void 0:wa.tag_discipline_name:$n==null?void 0:$n.tag_discipline_name)))))},tu=$n=>{var wa;const Vi=(wa=$n==null?void 0:$n.standard_answer)==null?void 0:wa.map((Ma,Fr)=>y.createElement("div",{key:Fr},`\u7B54\u6848\uFF08\u586B\u7A7A${(Ma==null?void 0:Ma.position)||(Ma==null?void 0:Ma.exercise_choice_id)}\uFF09\uFF1A${Ma==null?void 0:Ma.answer_text}`));return y.createElement(y.Fragment,null,y.createElement("div",{className:ve.analysis},y.createElement("div",{style:{display:"flex"}},y.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),y.createElement("div",null,Vi)),y.createElement("aside",null,y.createElement("span",{className:ve.text},"\u89E3\u6790:"),y.createElement(Xe.Z,{value:$n.analysis?$n.analysis:"\u6682\u65E0\u89E3\u6790"})),y.createElement("ul",null,y.createElement("li",null,y.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u8BFE\u7A0B:"),`${($n==null?void 0:$n.course_discipline_name)||"--"}`),y.createElement(Le.Z,{title:$n==null?void 0:$n.tag_discipline_name},y.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},y.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),$n==null?void 0:$n.tag_discipline_name)))))},cs=($n,wa)=>{var Vi;return y.createElement("div",{className:ve.analysis},y.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",(Vi=$n==null?void 0:$n.answer_texts)==null?void 0:Vi[0]),y.createElement("aside",null,y.createElement("span",{className:ve.text},"\u89E3\u6790:"),y.createElement(Xe.Z,{value:$n.analysis?$n.analysis:"\u6682\u65E0\u89E3\u6790"})),y.createElement("ul",null,y.createElement("li",null,y.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u8BFE\u7A0B:"),`${(wa==null?void 0:wa.course_discipline_name)||"--"}`),y.createElement(Le.Z,{title:wa?wa==null?void 0:wa.tag_discipline_name:$n==null?void 0:$n.tag_discipline_name},y.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},y.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),wa?wa==null?void 0:wa.tag_discipline_name:$n==null?void 0:$n.tag_discipline_name))))},Ss=$n=>{var wa,Vi;return y.createElement("div",{className:ve.analysis},y.createElement("aside",null,y.createElement("span",{className:ve.text},"\u9884\u671F\u8F93\u51FA:"),y.createElement(Xe.Z,{value:(wa=$n==null?void 0:$n.program_attr)==null?void 0:wa.description})),y.createElement("div",{style:{marginTop:20}},"\u6B63\u786E\u7B54\u6848\uFF1A",((Vi=$n==null?void 0:$n.program_attr)==null?void 0:Vi.answer_text)||"--"),y.createElement("aside",null,y.createElement("span",{className:ve.text},"\u89E3\u6790:"),y.createElement(Xe.Z,{value:$n.analysis?$n.analysis:"\u6682\u65E0\u89E3\u6790"})),y.createElement("ul",null,y.createElement("li",null,y.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u8BFE\u7A0B:"),`${($n==null?void 0:$n.course_discipline_name)||"--"}`),y.createElement(Le.Z,{title:$n==null?void 0:$n.tag_discipline_name},y.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},y.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),$n==null?void 0:$n.tag_discipline_name))))},$s=($n,wa)=>{var Vi;return y.createElement("div",null,(Vi=$n==null?void 0:$n.sub_item_banks)==null?void 0:Vi.map((Ma,Fr)=>{var Zi,Ki;const ko=[];return y.createElement(y.Fragment,null,y.createElement("div",{style:{marginLeft:25,fontSize:"16px",color:"#333",paddingTop:"15px"}},wa+1+"."+(Fr+1),"\uFF08",_s[Ma.item_type]||eu[Ma.item_type],"\uFF09",Ma.name),(Ma.item_type=="SINGLE"||Ma.item_type=="MULTIPLE"||Ma.item_type=="JUDGMENT"||Ma.item_type=="single"||Ma.item_type=="multiple"||Ma.item_type=="judgement")&&y.createElement(y.Fragment,null,y.createElement("aside",{className:ve.single},(Zi=Ma==null?void 0:Ma.choices)==null?void 0:Zi.map((Xi,dl)=>(Xi.is_answer&&ko.push(Ha.k4[dl]),y.createElement("ul",{key:dl},y.createElement("li",null,Ha.k4[dl],"\u3001"),y.createElement("li",null,y.createElement(Xe.Z,{value:Xi.choice_text})))))),y.createElement("div",{className:ve.analysis},y.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",ko.join(""),y.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",js[Ma.difficulty])),y.createElement("aside",null,y.createElement("span",{className:ve.text},"\u89E3\u6790:"),y.createElement(Xe.Z,{value:Ma.analysis?Ma.analysis:"\u6682\u65E0\u89E3\u6790"})),y.createElement("ul",null,y.createElement("li",null,y.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u8BFE\u7A0B:"),`${($n==null?void 0:$n.course_discipline_name)||"--"}`),y.createElement(Le.Z,{title:$n==null?void 0:$n.tag_discipline_name},y.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},y.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),$n==null?void 0:$n.tag_discipline_name))))),(Ma.item_type=="COMPLETION"||Ma.item_type=="completion")&&As(Ma,$n),(Ma.item_type=="SUBJECTIVE"||Ma.item_type=="subjective")&&cs(Ma,$n),((Ki=Bt==null?void 0:Bt.exam)==null?void 0:Ki.exercise_status)===3&&y.createElement("div",{className:"flex gap-20px mt20"},y.createElement(fo.Z,{state:Ma==null?void 0:Ma.is_wrong,onClick:()=>{Wr==null||Wr({value:ga(bi({},Ma),{question_id:Ma==null?void 0:Ma.id,question_score:Ma==null?void 0:Ma.score})})}}),Ma.item_type=="single"&&y.createElement(xe.ZP,{style:{color:"#3061D0"},onClick:()=>{Ps({value:Ma})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848")))}))},Fs=$n=>{var wa,Vi,Ma;return y.createElement("div",{style:{marginTop:"12px"}},(Vi=(wa=$n==null?void 0:$n.shixun)==null?void 0:wa.challenges)==null?void 0:Vi.map((Fr,Zi)=>y.createElement("div",{className:"c-grey-666 font14 mb10 ml25",style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},y.createElement("div",null,y.createElement("span",{className:"mr5"},"\u7B2C",Zi+1,"\u5173"),y.createElement(Le.Z,{key:Zi,title:Fr==null?void 0:Fr.challenge_name},y.createElement("span",null,(0,gt.Pq)(Fr==null?void 0:Fr.challenge_name,44)))),zr&&y.createElement("div",null,"\u5206\u503C\uFF1A",Fr.score,"\u5206"))),y.createElement(St.Link,{style:{float:"right"},target:"_blank",to:`/shixuns/${(Ma=$n==null?void 0:$n.shixun)==null?void 0:Ma.identifier}/challenges`},"\u5B9E\u8BAD\u8BE6\u60C5"),y.createElement("div",{style:{clear:"both"}}))},gs=$n=>{let wa=$n.questions_score/$n.questions_count;ge.default.confirm({icon:null,centered:!0,title:"\u5206\u6570\u8BBE\u7F6E",content:y.createElement("div",{className:ve.modalColumn},y.createElement("div",{className:ve.modalRow,style:{justifyContent:"flex-start"}},y.createElement("sup",{className:ve.sup},"*"),y.createElement("span",null,$n==null?void 0:$n.name,"\uFF1A"),y.createElement(Se.Z,{min:0,precision:1,defaultValue:wa,onChange:Vi=>{wa=Vi}}),y.createElement("span",{className:"ml5"},"\u5206/\u9898"))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>vi(void 0,null,function*(){var Vi;if(!wa)return Ne.ZP.warning("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A\u6216\u4E3A0"),Promise.reject();const Ma={type:$n==null?void 0:$n.type,score:wa,scoreTotal:Number((Vi=wa*$n.questions_count)==null?void 0:Vi.toFixed(1))};Va(Ma)})})},Ws=()=>{let $n="";ge.default.confirm({icon:null,centered:!0,title:"\u4FDD\u5B58\u8BD5\u5377",content:y.createElement("div",{className:ve.modalColumn},y.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20"},y.createElement("img",{style:{marginRight:5},src:ut.Z}),"\u4FDD\u5B58\u540E\u5355\u72EC\u751F\u6210\u4E00\u4EFD\u4EBA\u5DE5\u7EC4\u5377\u7C7B\u578B\u7684\u56FA\u5B9A\u8BD5\u5377\u3002"),y.createElement("div",{className:ve.modalRow,style:{marginTop:20}},y.createElement("sup",{className:ve.sup},"*"),y.createElement("span",{style:{flexShrink:0}},"\u8BD5\u5377\u540D\u79F0\uFF1A"),y.createElement(Be.default,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",min:0,maxLength:60,defaultValue:$n,onChange:wa=>{$n=wa.target.value}}))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>vi(void 0,null,function*(){var wa;if(!$n)return Ne.ZP.warning("\u8BD5\u5377\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Promise.reject();const Vi=[],Ma=[],Fr=[],Zi=[];(wa=Bt==null?void 0:Bt.questionList)==null||wa.forEach(ko=>{var Xi;(Xi=ko.questions)==null||Xi.forEach(dl=>{let Ro=ko.questions_score/ko.questions_count;Ro=Ro&&Ro.toFixed(1),ko.type==="COMBINATION"&&Fr.push({id:dl.id,sub_item_bank_ids:dl.sub_item_banks.map(ys=>ys.id)}),ko.type==="PRACTICAL"?Zi.push(dl.id):(Vi.push(dl.id),Ma.push(Ro))})}),console.log("-----",Fr),yield Xt({item_bank_ids:Vi,item_bank_scores:Ma,name:$n,combination_item_banks:Fr,shixun_ids:Zi})})})},Is=($n,wa,Vi,Ma)=>{var Fr;const Zi=`${location.pathname}${location.search}`,Ki=(Fr=Ma.questions)==null?void 0:Fr.map(ko=>ko==null?void 0:ko.id);if(Zi.includes("exercise"))Tl.current={id:$n,ids:Ki,type:wa,index:Vi},Oi(!0);else{let ko=ge.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:()=>vi(void 0,null,function*(){ko.update({cancelButtonProps:{disabled:!0}}),yield Ar({single_question_id:$n,seleted_item_bank_ids:Ki},{type:wa,index:Vi}),ko.update({cancelButtonProps:{disabled:!1}}),Ne.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u8BD5\u9898")})})}},Rs=$n=>{var wa;const Vi=(wa=$n.questions)==null?void 0:wa.map(Zi=>Zi==null?void 0:Zi.id),Ma=$n.name;let Fr=ge.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:`\u786E\u8BA4\u66F4\u6362${Ma}\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F`,cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>vi(void 0,null,function*(){Fr.update({cancelButtonProps:{disabled:!0}}),yield Ar({seleted_item_bank_ids:Vi},{type:$n.type}),Fr.update({cancelButtonProps:{disabled:!1}}),Ne.ZP.success(`\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210${Ma}\u8BD5\u9898`)})})},zs=()=>{let $n=ge.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:()=>vi(void 0,null,function*(){$n.update({cancelButtonProps:{disabled:!0}}),yield Ar(),$n.update({cancelButtonProps:{disabled:!1}}),Ne.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u6574\u5F20\u8BD5\u9898")})})},Gs=$n=>{console.log($n,"key"),Jn($n-1)},Eu=($n,wa)=>{var Vi,Ma;if(wa==="SINGLE")return y.createElement(y.Fragment,null,y.createElement(nn,{ref:ra,editData:$n,isEdit:!0}),y.createElement(fe.Z,null));if(wa==="MULTIPLE")return y.createElement(y.Fragment,null,y.createElement(qt,{ref:ra,editData:$n,isEdit:!0}),y.createElement(fe.Z,null));if(wa==="JUDGMENT")return y.createElement(y.Fragment,null,y.createElement(wn,{ref:ra,editData:$n,isEdit:!0}),y.createElement(fe.Z,null));if(wa==="COMPLETION")return y.createElement(y.Fragment,null,y.createElement(qe,{ref:ra,editData:$n,isEdit:!0}),y.createElement(fe.Z,null));if(wa==="SUBJECTIVE")return y.createElement(y.Fragment,null,y.createElement(ft,{ref:ra,editData:$n,isEdit:!0}),y.createElement(fe.Z,null));if(wa==="COMBINATION")return y.createElement(y.Fragment,null,y.createElement(Ii,{ref:ra,editData:$n,isEdit:!0}),y.createElement(fe.Z,null));if(wa==="BPROGRAM")return y.createElement(y.Fragment,null,y.createElement(ce.default,{form:Ml,style:{marginTop:20},onFinishFailed:Fr=>{var Zi,Ki;Fr.errorFields[0].name.includes("standard_answers")?Ne.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):Ne.ZP.error(Fr.errorFields[0].errors[0]),Ml.scrollToField((Ki=(Zi=Fr==null?void 0:Fr.errorFields)==null?void 0:Zi[0])==null?void 0:Ki.name,{behavior:"smooth",block:"center"})},onFinish:Fr=>vi(void 0,null,function*(){var Zi;let Ki=ga(bi({question_score:$n.score},Fr),{question_type:8,hack:ga(bi({},Fr.hack),{difficult:$n.program_attr.difficult}),hack_codes:ga(bi({},Fr.hack_codes),{code:ki.Base64.encode((Zi=Fr.hack_codes)==null?void 0:Zi.code)})});bo&&(Ki.is_cover=1);const ko=yield(0,ot.ZP)(`/api/exercise_questions/${$n.id}.json`,{method:"put",body:Ki});(ko==null?void 0:ko.status)===0&&(Ne.ZP.success("\u7F16\u8F91\u6210\u529F"),Gs(hr+1)),ao(null)})},y.createElement(xi.tc,{form:Ml,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:!1,hackidentifier:(Vi=$n==null?void 0:$n.program_attr)==null?void 0:Vi.identifier,answerKey:"standard_answers"}),y.createElement(fe.Z,null)));if(wa==="PROGRAM"&&St.history.push(`/problems/${(Ma=$n==null?void 0:$n.program_attr)==null?void 0:Ma.identifier}/edit?type=exercises&express_id=${Ur.categoryId}&question_id=${$n==null?void 0:$n.id}&score=${$n==null?void 0:$n.score}&callback_url=${location.pathname}&select=${hr}&exercise=true`),wa==="PRACTICAL")return y.createElement(y.Fragment,null,y.createElement(tn,{ref:ra,editData:$n,isEdit:!0}),y.createElement(fe.Z,null))},Cu=($n,wa)=>vi(void 0,null,function*(){var Vi,Ma,Fr,Zi,Ki,ko;const Xi=yield(Vi=ra.current)==null?void 0:Vi.onSave();if(!Xi)return;const dl=ci=>{const bl=ci.map($l=>$l.choice_text.trim().replace(/^\s+|\s+$/g,""));return new Set(bl).size!==bl.length},Ro={question_score:wa.score,analysis:Xi.analysis};if($n==="SINGLE"||$n==="MULTIPLE"||$n==="JUDGMENT"){if($n!=="JUDGMENT"&&dl(Xi==null?void 0:Xi.choices)){Ne.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}const ci=[],bl=[];Ro.question_type=$n==="JUDGMENT"?2:1,Ro.question_title=Xi==null?void 0:Xi.name,(Ma=Xi==null?void 0:Xi.choices)==null||Ma.forEach((is,$l)=>{ci.push(is.choice_text),is!=null&&is.is_answer&&bl.push($l+1)}),Ro.question_choices=ci,Ro.standard_answers=bl}if($n==="COMPLETION"){let ci=(Fr=Xi==null?void 0:Xi.standard_answers)==null?void 0:Fr.map(($l,ke)=>Number($l==null?void 0:$l.score)?null:ke+1).filter($l=>$l!==null);if((ci==null?void 0:ci.length)>0)return Ne.ZP.warning(`\u7B2C${ci.join("\u3001")}\u9879\u7684\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A`),!1;let bl=(Zi=Xi==null?void 0:Xi.standard_answers)==null?void 0:Zi.reduce(($l,ke)=>$l+(Number(ke==null?void 0:ke.score)||0),0);if(parseFloat(bl.toFixed(2))!=(Ro==null?void 0:Ro.question_score))return Ne.ZP.warning("\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BE5\u5C0F\u9898\u5206\u503C\uFF01"),!1;Ro.is_ordered=Xi.is_ordered,Ro.question_title=Xi==null?void 0:Xi.name,Ro.use_blank_score=Xi==null?void 0:Xi.use_blank_score,Ro.question_type=3;const is=[];(Ki=Xi==null?void 0:Xi.standard_answers)==null||Ki.forEach(($l,ke)=>{is.push({choice_id:$l.position,answer_text:$l.answer_text,score:$l.score})}),Ro.standard_answers=is,Ro.downcase=Xi==null?void 0:Xi.downcase,Ro.no_space=Xi==null?void 0:Xi.no_space}if($n==="SUBJECTIVE"&&(console.log("editorData"),console.log(Xi),Ro.question_title=Xi==null?void 0:Xi.name,Ro.question_type=4,Ro.answer_texts=Xi==null?void 0:Xi.answer_texts,Ro.use_keywords=Xi==null?void 0:Xi.use_keywords,Ro.keywords=Xi==null?void 0:Xi.keywords),$n==="COMBINATION"){Ro.question_title=Xi==null?void 0:Xi.name,Ro.question_type=7;try{Ro.sub_questions=(ko=Xi==null?void 0:Xi.sub_item_banks)==null?void 0:ko.map((ci,bl)=>{var is,$l,ke;if((ci==null?void 0:ci.item_type)=="single"||(ci==null?void 0:ci.item_type)=="multiple"){if(dl(ci==null?void 0:ci.choices))throw new Error(`\u7B2C${bl+1}\u5C0F\u9898\u9009\u9879\u5185\u5BB9\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58`);const Re=[],Dt=[];return(is=ci==null?void 0:ci.choices)==null||is.forEach((Lt,on)=>{Re.push(Lt.choice_text),Lt!=null&&Lt.is_answer&&Dt.push(on+1)}),{id:ci.id,question_id:ci.id,question_title:ci.name,difficulty:ci.difficulty,question_type:(ci==null?void 0:ci.item_type)=="single"?0:(ci==null?void 0:ci.item_type)=="multiple"?1:2,question_choices:Re,standard_answers:Dt,analysis:ci.analysis,question_score:ci==null?void 0:ci.score}}else if((ci==null?void 0:ci.item_type)=="completion"){let Re=($l=ci==null?void 0:ci.standard_answer)==null?void 0:$l.reduce((Lt,on)=>Lt+(Number(on==null?void 0:on.score)||0),0);if(parseFloat(Re.toFixed(2))!=(ci==null?void 0:ci.score))throw new Error("\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BE5\u5C0F\u9898\u5206\u503C\uFF01");const Dt=[];return(ke=ci==null?void 0:ci.standard_answer)==null||ke.forEach((Lt,on)=>{Dt.push({choice_id:Lt.position,answer_text:Lt.answer_text,score:Lt.score})}),{id:ci.id,question_id:ci.id,is_ordered:ci.is_ordered,question_title:ci.name,difficulty:ci.difficulty,question_type:3,standard_answers:Dt,use_blank_score:ci.use_blank_score,analysis:ci.analysis,downcase:ci==null?void 0:ci.downcase,no_space:ci==null?void 0:ci.no_space,question_score:ci==null?void 0:ci.score}}else if((ci==null?void 0:ci.item_type)=="subjective")return{id:ci.id,question_id:ci.id,question_title:ci.name,question_type:4,difficulty:ci.difficulty,answer_texts:ci==null?void 0:ci.answer_texts,analysis:ci.analysis,question_score:ci==null?void 0:ci.score,use_keywords:ci.use_keywords,keywords:ci==null?void 0:ci.keywords}})}catch(ci){Ne.ZP.warning(ci.message);return}delete Ro.analysis}let ys=!1;(wa==null?void 0:wa.is_my)===1&&(ys=yield new Promise((bl,is)=>{ge.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:()=>{bl(!0)},onCancel:()=>{bl(!1)}})})),ys&&(Ro.is_cover=1);const Xs=$n!=="PRACTICAL"?yield(0,ot.ZP)(`/api/exercise_questions/${wa.id}.json`,{method:"put",body:Ro}):yield(0,ot.ZP)(`/api/exercise_questions/${wa.id}/update_shixun_score.json`,{method:"post",body:bi({},Xi)});(Xs==null?void 0:Xs.status)===0&&(Ne.ZP.success("\u7F16\u8F91\u6210\u529F"),Gs(hr+1),ao(null))}),ec=()=>vi(void 0,null,function*(){(0,St.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u66F4\u65B0\u8BD5\u5377\uFF0C\u8BF7\u7A0D\u540E..."}}),(yield(0,ot.ZP)(`/api/exercises/${Ur.categoryId}/sync_random_question.json`,{method:"post"})).status===0&&(yield Jn(hr),Ne.ZP.success("\u66F4\u65B0\u6210\u529F")),(0,St.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1}})}),Ps=({value:$n}={})=>{var wa;const Vi=[];let Ma=[];const Fr=(wa=$n==null?void 0:$n.choices)==null?void 0:wa.map((Ki,ko)=>{var Xi;const dl=ko+1;return Ki!=null&&Ki.is_answer&&(Vi.push(dl),Ma.push(dl)),{value:dl,label:y.createElement(Xe.Z,{className:"c-black font14",value:`${(Xi=Ha.k4)==null?void 0:Xi[ko]}. ${Ki==null?void 0:Ki.choice_text}`}),disabled:Ki==null?void 0:Ki.origin_standard_answer}}),Zi=ge.default.confirm({centered:!0,icon:null,title:"\u589E\u8BBE\u6B63\u786E\u7B54\u6848",width:800,content:y.createElement(y.Fragment,null,"\u5F53\u524D\u8BD5\u9898\u7684\u6B63\u786E\u7B54\u6848\u4E3A ",Vi==null?void 0:Vi.map(Ki=>{var ko;return(ko=Ha.k4)==null?void 0:ko[Ki-1]}),"\uFF0C\u8BF7\u9009\u62E9\u9700\u8981\u589E\u8BBE\u4E3A\u6B63\u786E\u7B54\u6848\u7684\u9009\u9879\u3002",y.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",y.createElement("br",null),y.createElement($e.default.Group,{className:"flex-col mt20",options:Fr,defaultValue:Ma,onChange:Ki=>{Ma=Ki}})),onOk:()=>vi(void 0,null,function*(){const Ki=yield(0,ot.ZP)(`/api/exercises/${Ur.categoryId}/questions/${$n==null?void 0:$n.id}/add_standard_answers.json`,{method:"put",body:{standard_answer:Ma}});(Ki==null?void 0:Ki.status)===0&&(Ne.ZP.success("\u4FEE\u6539\u6210\u529F"),Gs(hr+1))})})},ws=(ha=Bt==null?void 0:Bt.questionList)==null?void 0:ha.reduce(($n,wa)=>$n+Number(wa.questions_score),0),xu=zr&&((fa=Bt==null?void 0:Bt.exam)==null?void 0:fa.exercise_status)!==1,ku=$n=>vi(void 0,null,function*(){const wa=yield(0,ot.ZP)(`/api/courses/${Ur==null?void 0:Ur.coursesId}/sync_shixuns.json`,{method:"post",body:{exercise_ids:[Ur==null?void 0:Ur.categoryId],exercise_question_id:$n.id}});(wa==null?void 0:wa.status)===0&&(or({type:"classroomList/setActionTabs",payload:{}}),Ne.ZP.info("\u5B9E\u8BAD\u540C\u6B65\u4E2D\uFF0C\u8BF7\u7A0D\u540E"))}),Lu=($n,wa)=>vi(void 0,null,function*(){let Vi=yield(0,ot.ZP)(`/api/courses/${Ur==null?void 0:Ur.coursesId}/ignore_prompt.json`,{method:"post",body:{container_type:"Exercise",container_id:Ur==null?void 0:Ur.categoryId,exercise_question_id:$n==null?void 0:$n.id}});(Vi==null?void 0:Vi.status)===0&&(Eo[wa]=!1,yl([...Eo]))});return y.createElement("section",{className:ve.wrap},y.createElement("div",{id:"id_left_preview",className:ve.left,onMouseEnter:$n=>{const wa=document.getElementById("id_left_preview");wa.style.overflowY="auto"},onMouseLeave:$n=>{const wa=document.getElementById("id_left_preview");wa.style.overflowY="hidden"}},y.createElement("div",{className:ve.title},y.createElement("div",{className:"body-overflow-initial"},y.createElement("b",null),y.createElement("span",null,"\u7B54\u9898\u5361"))),y.createElement("div",{className:ve.total},y.createElement("div",null,y.createElement("img",{src:Ge}),y.createElement("span",null,"\u9898\u6570(\u9053)"),y.createElement("aside",null,Bt==null?void 0:Bt.all_questions_count)),y.createElement("div",{className:"mr30 ml30"},y.createElement("img",{src:pt}),y.createElement("span",null,"\u603B\u5206(\u5206)"),y.createElement("aside",null,ws&&ws.toFixed(1))),y.createElement("div",null,y.createElement("img",{src:He}),y.createElement("span",null,"\u65F6\u957F(\u5206)"),y.createElement("aside",null,((Nr=Bt==null?void 0:Bt.exam)==null?void 0:Nr.time)===-1||((Aa=Bt==null?void 0:Bt.exam)==null?void 0:Aa.time)===null?"\u4E0D\u9650":($a=Bt==null?void 0:Bt.exam)==null?void 0:$a.time))),(ua=Bt==null?void 0:Bt.questionList)==null?void 0:ua.map(($n,wa)=>{var Vi;return y.createElement("div",{className:ve.list,key:wa},y.createElement("div",{className:ve.name},y.createElement("b",null),y.createElement("span",null,$n.name)),y.createElement("aside",null,y.createElement("div",null,"\u5171",y.createElement("span",{className:ve.b},$n.questions_count),"\u9898 ",y.createElement("span",{className:ve.l},"|"),"\u5171",y.createElement("span",{className:ve.r},$n.questions_score),"\u5206"),y.createElement("div",{className:ve.answerSheet},(Vi=$n==null?void 0:$n.questions)==null?void 0:Vi.map((Ma,Fr)=>y.createElement("div",{onClick:()=>{const Zi=`Anchor_${Ma==null?void 0:Ma.id}`;let Ki=document.getElementById(Zi);Ki&&setTimeout(()=>Ki.scrollIntoView({block:"center",behavior:"smooth"}))},key:Ma==null?void 0:Ma.id,className:ve.tag},Fr+1)))))})),y.createElement("div",{className:ve.right},y.createElement("div",{className:ve.examName,id:"examName"},y.createElement("div",{className:ve.name},y.createElement(Le.Z,{title:(fr=Bt==null?void 0:Bt.exam)==null?void 0:fr.name,getPopupContainer:$n=>$n.parentNode},y.createElement("span",{className:ve.t},(Yr=Bt==null?void 0:Bt.exam)==null?void 0:Yr.name))),zr&&((ui=Bt==null?void 0:Bt.exam)==null?void 0:ui.exercise_status)===1&&y.createElement(Qo.op,{openLoading:!0,shape:"default",onClick:()=>{ge.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:()=>{ec()}})},type:"primary"},"\u66F4\u65B0\u8BD5\u5377"),!zr&&y.createElement(xe.ZP,{onClick:zs,type:"primary"},"\u968F\u673A\u66F4\u6362")),y.createElement("div",{className:ve.topWarp},(ba=Bt==null?void 0:Bt.questionList)==null?void 0:ba.map(($n,wa)=>{var Vi,Ma;return y.createElement(y.Fragment,{key:wa},y.createElement("div",{className:ve.head,style:wa===0?{border:0,marginTop:-16}:{}},y.createElement("div",{className:ve.name},y.createElement("b",null),y.createElement("span",null,$n.name)),y.createElement("div",{className:ve.so},"\u5171",y.createElement("span",{className:ve.b},$n.questions_count," "),"\u9898 ",$n.type==="COMBINATION"&&`\uFF08\u5305\u542B${(Vi=$n==null?void 0:$n.questions)==null?void 0:Vi.map(Fr=>{var Zi;return(Zi=Fr==null?void 0:Fr.sub_item_banks)==null?void 0:Zi.length}).reduce((Fr,Zi)=>Fr+Zi)}\u5C0F\u9898\uFF09`,y.createElement("span",{className:ve.l},"|"),"\u5171",y.createElement("span",{className:ve.r},$n.questions_score),"\u5206"),!zr&&y.createElement("div",{className:ve.btn},y.createElement(xe.ZP,{onClick:()=>{gs($n)},type:"primary",ghost:!0,className:"mr20"},"\u8BBE\u7F6E\u5F97\u5206"),y.createElement(xe.ZP,{onClick:()=>Rs($n),type:"primary",ghost:!0},"\u968F\u673A\u66F4\u6362"))),(Ma=$n==null?void 0:$n.questions)==null?void 0:Ma.map((Fr,Zi)=>{var Ki,ko,Xi,dl,Ro;return Pa===(Fr==null?void 0:Fr.id)?y.createElement("div",{id:`Anchor_${Fr==null?void 0:Fr.id}`,className:ve.content,style:{padding:0,marginTop:24},key:Fr==null?void 0:Fr.id},y.createElement("div",{style:{float:"right",marginTop:`${($n==null?void 0:$n.type)==="PRACTICAL"?"-2px":"-6px"}`}},y.createElement(xe.ZP,{onClick:()=>ao(null),className:"mr20",type:"primary",ghost:!0},"\u53D6\u6D88"),y.createElement(xe.ZP,{onClick:()=>{Cu($n==null?void 0:$n.type,Fr)},type:"primary"},"\u4FDD\u5B58")),Eu(Fr,$n.type)):y.createElement("div",{id:`Anchor_${Fr==null?void 0:Fr.id}`,className:ve.content,key:Fr==null?void 0:Fr.id},y.createElement("div",{className:ve.titleWrap},(Fr==null?void 0:Fr.item_type)==="bprogram"?y.createElement(Xe.Z,{style:{paddingRight:10},value:Zi+1+"\u3001"+((Ki=Fr==null?void 0:Fr.program_attr)==null?void 0:Ki.description)}):y.createElement(Xe.Z,{style:{paddingRight:10},className:ve.titleHtml,value:Zi+1+`\u3001${(Fr==null?void 0:Fr.item_type)==="combination"?"\uFF08\u9898\u5E72\uFF09":""}`+(Fr==null?void 0:Fr.name)}),(0,ma.G5)()&&((ko=Fr==null?void 0:Fr.shixun)==null?void 0:ko.shixun_change)&&y.createElement(Oe.Z,{trigger:"click",open:Eo[Zi],onOpenChange:ys=>{Eo[Zi]=!0,yl([...Eo])},placement:"bottomLeft",autoAdjustOverflow:!1,title:null,content:y.createElement("div",{style:{width:"310px",color:"#000"}},y.createElement("div",null,"\u5B9E\u8BAD\u7BA1\u7406\u5458\u5BF9\u8BD5\u5377\u4E2D\u4F7F\u7528\u7684\u5B9E\u8DF5\u9879\u76EE\u8FDB\u884C\u4E86\u4FEE\u6539\uFF0C\u8BF7\u68C0\u67E5\u540E\uFF0C\u786E\u8BA4\u662F\u5426\u9700\u8981\u540C\u6B65\u5230\u8BD5\u5377\u4E2D"),y.createElement("div",{className:ve.btn_warp},y.createElement(xe.ZP,{size:"small",onClick:()=>Lu(Fr,Zi)},"\u5FFD\u7565"),y.createElement(xe.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>{Eo[Zi]=!1,yl([...Eo]),or({type:"classroomList/setActionTabs",payload:{key:"\u5B9E\u8BAD\u540C\u6B65\u786E\u8BA4",onOK:()=>ku(Fr)}})}},"\u786E\u8BA4\u540C\u6B65"),y.createElement(xe.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>(0,gt.xg)(`/shixuns/${Fr==null?void 0:Fr.forked_shixun_identifier}/challenges?exercise=true`)},"\u524D\u5F80\u67E5\u770B")))},y.createElement("i",{className:"iconfont icon-tongzhi1 pl10 current",style:{fontSize:"16px",color:"#F7B500"},onClick:ys=>ys.stopPropagation()})),zr&&y.createElement(xe.ZP,{onClick:()=>{var ys,Xs,ci;if(Pa){Ne.ZP.warning("\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898");return}Ml.setFieldsValue({standard_answers:Fr==null?void 0:Fr.standard_answer,hack:bi(bi({},Fr),Fr==null?void 0:Fr.program_attr),hack_codes:ga(bi({},Fr==null?void 0:Fr.program_attr),{code:ki.Base64.decode(((ys=Fr==null?void 0:Fr.program_attr)==null?void 0:ys.code)||"")}),hack_sets:bi({},(Xs=Fr==null?void 0:Fr.hack_sets)==null?void 0:Xs[0])}),(Fr==null?void 0:Fr.item_type)=="program"?St.history.push(`/problems/newedit/${(ci=Fr==null?void 0:Fr.program_attr)==null?void 0:ci.identifier}?type=exercises&express_id=${Ur.categoryId}&question_id=${Fr==null?void 0:Fr.id}&score=${Fr==null?void 0:Fr.score}&exercise=true&callback_url=/classrooms/${Ur.coursesId}/exercise/${Ur.categoryId}/detail?random=true`):ao(Fr==null?void 0:Fr.id)},type:"primary",style:{marginLeft:"auto"},ghost:!0},"\u7F16\u8F91"),!xu&&y.createElement(xe.ZP,{disabled:xu,className:"ml20",onClick:()=>Is(Fr==null?void 0:Fr.id,$n.type,Zi,$n),type:"primary",ghost:!0},"\u6362\u4E00\u9898")),(Fr==null?void 0:Fr.item_type)==="bprogram"&&y.createElement(Xe.Z,{style:{paddingRight:10,paddingLeft:25},showProgramFill:!0,disabledFill:!0,className:ve.titleHtml,value:ki.Base64.decode(((Xi=Fr==null?void 0:Fr.program_attr)==null?void 0:Xi.code)||"")}),($n.type==="SINGLE"||$n.type==="JUDGMENT"||$n.type==="MULTIPLE")&&xs(Fr),$n.type==="COMPLETION"&&As(Fr),$n.type==="SUBJECTIVE"&&cs(Fr),$n.type==="PROGRAM"&&Ss(Fr),$n.type==="BPROGRAM"&&tu(Fr),$n.type==="COMBINATION"&&$s(Fr,Zi),$n.type==="PRACTICAL"&&Fs(Fr),y.createElement(ct.Z,{className:"mt20",wrap:!1,align:"middle",gutter:20},((dl=Bt==null?void 0:Bt.exam)==null?void 0:dl.exercise_status)===3&&!["PROGRAM","BPROGRAM","PRACTICAL","COMBINATION"].includes($n.type)&&y.createElement(Ke.Z,null,y.createElement(fo.Z,{state:Fr==null?void 0:Fr.is_wrong,onClick:()=>{Wr==null||Wr({value:ga(bi({},Fr),{question_id:Fr==null?void 0:Fr.id,question_score:Fr==null?void 0:Fr.score})})}})),["PROGRAM","BPROGRAM","PRACTICAL"].includes($n.type)&&(Fr==null?void 0:Fr.show_resubmit)&&y.createElement(Ke.Z,null,y.createElement(ro.C,{dataSource:ga(bi({},Fr),{question_id:Fr==null?void 0:Fr.id})})),((Ro=Bt==null?void 0:Bt.exam)==null?void 0:Ro.exercise_status)===3&&["SINGLE"].includes($n.type)&&y.createElement(Ke.Z,null,y.createElement(xe.ZP,{style:{color:"#3061D0"},onClick:()=>{Ps({value:Fr})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848"))))}))}))),zr?y.createElement(Qo.vr,null,y.createElement(Te.Z,{showTotal:gt.rU,total:(ca=Bt==null?void 0:Bt.exam)==null?void 0:ca.total_num,pageSize:1,current:hr+1,showSizeChanger:!1,onChange:Gs,showQuickJumper:!1,hideOnSinglePage:!1})):y.createElement(Qo.vr,{LeftContent:y.createElement(Qo.op,{onClick:an,shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u8FD4\u56DE"),RightContent:y.createElement(ct.Z,{align:"middle"},y.createElement(Oe.Z,{color:"#55575D",overlayClassName:ve.popover,open:qo,getPopupContainer:$n=>$n==null?void 0:$n.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"},y.createElement(Qo.op,{onMouseEnter:()=>Ko(!0),onMouseLeave:()=>Ko(!1),onClick:()=>vi(void 0,null,function*(){const $n=Number(ws);[100,120,150].includes($n)||(yield new Promise((wa,Vi)=>{ge.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:y.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",y.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},$n),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>vi(void 0,null,function*(){wa("")}),onCancel:()=>{Vi()}})})),Ws()}),shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u4FDD\u5B58")),y.createElement(Qo.op,{shape:"default",type:"primary",onClick:()=>vi(void 0,null,function*(){const $n=Number(ws);[100,120,150].includes($n)||(yield new Promise((wa,Vi)=>{ge.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:y.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",y.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},$n),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>vi(void 0,null,function*(){wa("")}),onCancel:()=>{Vi()}})})),Xt()}),style:{height:38,marginLeft:20}},"\u63D0\u4EA4"))}),y.createElement(na,{visible:Xl,questionParams:Tl.current,getdata:aa,onRandomExchange:()=>vi(void 0,null,function*(){const $n=Tl.current;yield Ar({single_question_id:$n.id,seleted_item_bank_ids:$n.ids},{type:$n.type,index:$n.index}),Oi(!1)}),selectFromProblemSet:()=>{const $n=Tl.current,wa=`${location.pathname}${location.search}`;wa.includes("exercise")&&St.history.push(`/paperlibrary/exchangequestion?type=exercise&qid=${$n.id}&qtype=${$n.type}&exerciseid=${Ur.categoryId}&from=${wa}`)},onCancel:()=>{Oi(!1)}}))};var si=(0,St.connect)(({classroomList:Bt})=>({classroomList:Bt}))(fi)},87261:function(Mn,Yt,E){"use strict";E.r(Yt),E.d(Yt,{default:function(){return Jo}});var y=E(59301),ve={wrapper:"wrapper___KtBVT",breadCrumbWrapper:"breadCrumbWrapper___k9tSB",baseInfo:"baseInfo____j5EY",radioBtnWrapper:"radioBtnWrapper___k9OCh",baseLineHeight:"baseLineHeight___O_QXK",radiogroup:"radiogroup___e2fW6",easy:"easy___WcUAp",medium:"medium___U_o3j",hard:"hard___dAXLS",formWrap:"formWrap___wt5tC",baseFormItem:"baseFormItem___zV64d",cascaderPopup:"cascaderPopup___qm63f",fixedBottom:"fixedBottom___liDZ4",cancelBtn:"cancelBtn___ZV9Mi",confirmBtn:"confirmBtn___DwH6m",previewBtn:"previewBtn___aLYCy",concat:"concat___ZuLMo"},ce=E(6767),Le=E(28284),xe=E(91882),ge=E(65582),Se=E(19471),Ne=E(29787),Be=E(37568),fe=E(47889),$e=E(77019),Oe=E(4875),ct=E(7939),Ke=E(38147),Te=Object.defineProperty,we=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,tt=(vn,gn,Nn)=>gn in vn?Te(vn,gn,{enumerable:!0,configurable:!0,writable:!0,value:Nn}):vn[gn]=Nn,Et=(vn,gn)=>{for(var Nn in gn||(gn={}))Ie.call(gn,Nn)&&tt(vn,Nn,gn[Nn]);if(we)for(var Nn of we(gn))Pe.call(gn,Nn)&&tt(vn,Nn,gn[Nn]);return vn},_e=(vn,gn,Nn)=>new Promise((Sr,Or)=>{var rr=qn=>{try{kn(Nn.next(qn))}catch(yr){Or(yr)}},ir=qn=>{try{kn(Nn.throw(qn))}catch(yr){Or(yr)}},kn=qn=>qn.done?Sr(qn.value):Promise.resolve(qn.value).then(rr,ir);kn((Nn=Nn.apply(vn,gn)).next())});function Fe(vn){return _e(this,null,function*(){return(0,Ke.ZP)(`/api/examination_banks/${vn}/edit_random_exam_new.json`,{method:"get"})})}function He(vn,gn){return _e(this,null,function*(){return(0,Ke.ZP)(`/api/examination_banks/${vn}/update_random_exam.json`,{method:"post",body:gn})})}function Xe(vn){return _e(this,null,function*(){return(0,Ke.ZP)("/api/examination_banks/create_random_exam.json",{method:"post",body:vn})})}function St(vn){return _e(this,null,function*(){return Fetch("/api/disciplines.json",{method:"get",params:vn})})}function gt(vn){return _e(this,null,function*(){return(0,Ke.ZP)("/api/v2/course_disciplines/tag_disciplines_by_random.json",{method:"get",params:vn})})}function ot(vn){return _e(this,null,function*(){return(0,Ke.ZP)("/api/item_banks/item_difficulty_count.json",{method:"get",params:vn})})}function Ue(vn,gn){return _e(this,null,function*(){return(0,Ke.ZP)(`/api/examination_banks/${vn}/set_item_type_score.json`,{method:"post",body:gn})})}function Ee(vn,gn){return _e(this,null,function*(){return(0,Ke.ZP)(`/api/exercises/${vn}/set_item_type_score.json`,{method:"post",body:gn})})}function We(vn,gn){return _e(this,null,function*(){return(0,Ke.ZP)(`/api/examination_banks/${vn}/delete_item_type.json`,{method:"post",body:gn})})}function Ae(vn,gn){return _e(this,null,function*(){return(0,Ke.ZP)(`/api/exercises/${vn}/delete_item_type.json`,{method:"post",body:gn})})}function de(vn){return _e(this,null,function*(){return(0,Ke.ZP)("/api/examination_banks/preview_random_questions.json",{method:"post",body:vn})})}function wt(vn){return _e(this,null,function*(){return(0,Ke.ZP)("/api/examination_banks/toggle_random_questions.json",{method:"post",body:vn})})}function Qe(vn){return _e(this,null,function*(){return(0,Ke.ZP)("/api/examination_banks/save_question_list.json",{method:"post",body:vn})})}function Ge(vn){return _e(this,null,function*(){return(0,Ke.ZP)(`/api/exercises/${vn.categoryId}/edit.json`,{method:"get",params:Et({},vn)})})}var st=(vn=>(vn.OnlyFileFolder="1",vn.OnlyKnowledge="2",vn.OnlyDifficulty="3",vn.FileFolderAndDiff="4",vn.FileFolderAndKnowledge="5",vn.KnowledgeAndDiff="6",vn.All="7",vn.Shixun="8",vn))(st||{}),Ce=E(89392),be=Object.defineProperty,vt=Object.defineProperties,zt=Object.getOwnPropertyDescriptors,jt=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,ut=(vn,gn,Nn)=>gn in vn?be(vn,gn,{enumerable:!0,configurable:!0,writable:!0,value:Nn}):vn[gn]=Nn,Qt=(vn,gn)=>{for(var Nn in gn||(gn={}))De.call(gn,Nn)&&ut(vn,Nn,gn[Nn]);if(jt)for(var Nn of jt(gn))pt.call(gn,Nn)&&ut(vn,Nn,gn[Nn]);return vn},yt=(vn,gn)=>vt(vn,zt(gn)),Ct=(vn=>(vn[vn.FileFolder=1]="FileFolder",vn[vn.Difficulty=2]="Difficulty",vn[vn.Knowledge=3]="Knowledge",vn))(Ct||{});const mt=(0,y.createContext)(null),dn={[st.OnlyFileFolder]:[1],[st.OnlyKnowledge]:[3],[st.OnlyDifficulty]:[2],[st.FileFolderAndDiff]:[1,2],[st.FileFolderAndKnowledge]:[1,3],[st.KnowledgeAndDiff]:[3,2],[st.All]:[3,2,1]},Ht=(vn,gn)=>{if(vn.length!==gn.length)return!1;for(const Nn of gn)if(!vn.includes(Nn))return!1;return!0},ue=vn=>{for(const[gn,Nn]of Object.entries(dn))if(Ht(vn,Nn))return gn},ie={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"},re={1:{label:"\u7B80\u5355",color:"#46B70E"},2:{label:"\u9002\u4E2D",color:"#165DFF"},3:{label:"\u56F0\u96BE",color:"#EE6F1A"}},oe=vn=>vn&&parseFloat(vn.toFixed(1)),pe=(vn,gn)=>{var Nn,Sr,Or;switch(gn.type){case"init":return gn.payload;case"updateBaseInfo":return yt(Qt({},vn),{examination_bank:gn.payload});case"deleteQuestionType":{const{item_types:rr}=vn,ir=rr.filter(kn=>kn.item_type!==gn.payload);return vn.examination_bank.question_count=oe(ir.reduce((kn,qn)=>kn+qn.item_bank_count,0)),vn.examination_bank.total_score=oe(ir.reduce((kn,qn)=>kn+qn.total_score,0)),yt(Qt({},vn),{item_types:ir})}case"setQuestionType":{const{item_types:rr=[]}=vn,ir=rr.map(qn=>qn.item_type),kn=rr.filter(qn=>gn.payload.includes(qn.item_type));for(const qn of gn.payload)ir.includes(qn)||(qn==="PRACTICAL"?kn.push({item_type:qn,contents:[],item_banks:[],item_bank_count:0,item_bank_num:0,item_type_text:ie[qn],random_rule_type:st.Shixun,score:0,total_score:0}):kn.push({item_type:qn,contents:[],item_bank_count:0,item_type_text:ie[qn],score:0,total_score:0}));return yt(Qt({},vn),{item_types:kn})}case"updateItemTypes":return yt(Qt({},vn),{item_types:gn.payload});case"deleteRule":{const rr=(0,Ce.cloneDeep)(vn),ir=rr.item_types.find(qn=>qn.item_type===gn.payload.itemType),kn=ir.contents.find(qn=>qn.id===gn.payload.id&&qn.is_share==gn.payload.is_share);return ir.contents=ir.contents.filter(qn=>qn!==kn),((Nn=ir.contents)==null?void 0:Nn.length)===0&&(ir.random_rule_type=[]),ir.item_bank_count-=kn==null?void 0:kn.quanlity,rr.examination_bank.question_count-=kn==null?void 0:kn.quanlity,ir.total_score-=(kn==null?void 0:kn.quanlity)*ir.score,rr.examination_bank.total_score-=(kn==null?void 0:kn.quanlity)*ir.score,ir.total_score=oe(ir.total_score),rr.examination_bank.total_score=oe(rr.examination_bank.total_score),rr.contents=ir.contents,rr}case"changeQuestionNum":{const rr=(0,Ce.cloneDeep)(vn),ir=rr.item_types.find(xi=>xi.item_type===gn.payload.itemType),kn=(Sr=ir==null?void 0:ir.contents)==null?void 0:Sr.find(xi=>xi.id===gn.payload.id);if(gn.payload.itemType==="PRACTICAL")return gn.payload.num&&(rr.examination_bank.question_count=rr.examination_bank.question_count-ir.item_bank_count+gn.payload.num,rr.examination_bank.total_score=oe(rr.examination_bank.total_score-ir.total_score+gn.payload.num*ir.score)),gn.payload.score&&(rr.examination_bank.total_score=oe(rr.examination_bank.total_score-ir.total_score+gn.payload.num*ir.score)),ir.item_bank_count=gn.payload.num,ir.total_score=oe(ir.item_bank_count*ir.score),rr;rr.examination_bank.question_count=rr.examination_bank.question_count-(kn==null?void 0:kn.quanlity)+gn.payload.num;const qn=ir.contents.find(xi=>xi.id===gn.payload.id&&xi.teacher_group_id===gn.payload.teacher_group_id);qn.quanlity=gn.payload.num;let yr=0,na=0;for(const xi of ir.contents)yr+=xi==null?void 0:xi.quanlity,na+=(xi==null?void 0:xi.quanlity)*ir.score;return rr.examination_bank.total_score=oe(rr.examination_bank.total_score-ir.total_score+na),ir.item_bank_count=yr,ir.total_score=oe(na),rr}case"changeQuestionScore":{const rr=(0,Ce.cloneDeep)(vn),ir=rr.item_types.find(kn=>kn.item_type===gn.payload.itemType);return ir.score=gn.payload.score,ir.total_score=oe(ir.item_bank_count*ir.score),rr.examination_bank.total_score=oe(rr.item_types.reduce((kn,qn)=>kn+qn.total_score,0)),rr}case"editRule":{const rr=(0,Ce.cloneDeep)(vn),ir=rr.item_types.find(kn=>kn.item_type===gn.payload.itemType);return ir.contents=gn.payload.tableData.map(kn=>yt(Qt({},kn),{item_type:gn.payload.itemType,random_rule_type:gn.payload.randomRuleType})),ir.random_rule_type=gn.payload.randomRuleType,ir.item_bank_count=ir.contents.reduce((kn,qn)=>kn+(qn==null?void 0:qn.quanlity),0),ir.score=ir.score||1,ir.total_score=oe(ir.item_bank_count*ir.score),rr.examination_bank.question_count=rr.item_types.reduce((kn,qn)=>kn+qn.item_bank_count,0),rr.examination_bank.total_score=oe(rr.item_types.reduce((kn,qn)=>kn+qn.total_score,0)),rr}case"addShixun":{const rr=(0,Ce.cloneDeep)(vn),ir=rr.item_types.find(kn=>kn.item_type==="PRACTICAL");return ir.item_banks=gn.payload.shixunList,rr.examination_bank.question_count=rr.examination_bank.question_count+1,ir.item_bank_num=ir.item_banks.length,ir.item_bank_count=ir.item_bank_count||1,ir.score=ir.score||1,ir.total_score=ir.total_score||ir.score*ir.item_bank_count,rr.examination_bank.total_score=(Or=rr==null?void 0:rr.item_types)==null?void 0:Or.map(kn=>kn.total_score).reduce((kn,qn)=>kn+qn),rr}case"deleteShixunQuestion":{const rr=(0,Ce.cloneDeep)(vn),ir=rr.item_types.find(kn=>kn.item_type==="PRACTICAL");return ir.item_banks=ir.item_banks.filter(kn=>kn.id!==gn.payload.shixunId),ir.item_bank_num-=1,ir.item_bank_count>ir.item_bank_num&&(ir.item_bank_count-=1,ir.total_score-=ir.score,ir.total_score=oe(ir.total_score)),rr}}};var ae=E(24100),me=E(44589),Ze=Object.defineProperty,Ot=Object.defineProperties,at=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,bt=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,$t=(vn,gn,Nn)=>gn in vn?Ze(vn,gn,{enumerable:!0,configurable:!0,writable:!0,value:Nn}):vn[gn]=Nn,Ye=(vn,gn)=>{for(var Nn in gn||(gn={}))bt.call(gn,Nn)&&$t(vn,Nn,gn[Nn]);if(qe)for(var Nn of qe(gn))At.call(gn,Nn)&&$t(vn,Nn,gn[Nn]);return vn},rt=(vn,gn)=>Ot(vn,at(gn)),Vt=(vn,gn,Nn)=>new Promise((Sr,Or)=>{var rr=qn=>{try{kn(Nn.next(qn))}catch(yr){Or(yr)}},ir=qn=>{try{kn(Nn.throw(qn))}catch(yr){Or(yr)}},kn=qn=>qn.done?Sr(qn.value):Promise.resolve(qn.value).then(rr,ir);kn((Nn=Nn.apply(vn,gn)).next())}),wn=({courseOptions:vn,setCurrentKey:gn,loading:Nn,form:Sr})=>{var Or;const{data:rr,disabled:ir,dispatch:kn}=(0,y.useContext)(mt),qn=(0,ge.useParams)(),yr=(0,y.useRef)(!0),[na,xi]=(0,y.useState)(!1),ki=(0,y.useMemo)(()=>{var fo,ro,Ha,ma,Vr;if(!vn.length||!rr)return;const Ti=(fo=rr==null?void 0:rr.examination_bank)==null?void 0:fo.course_discipline_id,Li=((ro=rr==null?void 0:rr.examination_bank)==null?void 0:ro.time)===-1?void 0:yr.current?qn.id?(Ha=rr==null?void 0:rr.examination_bank)==null?void 0:Ha.time:((ma=rr==null?void 0:rr.examination_bank)==null?void 0:ma.time)||60:(Vr=rr==null?void 0:rr.examination_bank)==null?void 0:Vr.time;return yr.current=!1,rt(Ye({},rr.examination_bank),{time:Li,course_discipline_id:Ti})},[rr,vn]);return(0,y.useEffect)(()=>{Sr.setFieldsValue(Ye({},ki))},[ki]),y.createElement(Ne.Z,{spinning:Nn,size:"large",style:{position:"fixed",maxHeight:"100vh"},className:"mt30"},y.createElement("div",{className:ve.formWrap},y.createElement(Le.default,{form:Sr,autoComplete:"off",colon:!1,labelCol:{span:4},wrapperCol:{span:20},initialValues:ki||{difficulty:2,time:60},onValuesChange:(fo,ro)=>{const Ha=Ye({},ro);kn({type:"updateBaseInfo",payload:Ha})}},y.createElement(Le.default.Item,{name:"name",label:"\u8BD5\u5377\u540D\u79F0",className:ve.baseLineHeight,rules:[{required:!0,validator:(fo,ro)=>{var Ha;return((Ha=ro==null?void 0:ro.replaceAll(" ",""))==null?void 0:Ha.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0")}}]},y.createElement(Be.default,{maxLength:60,className:ve.baseFormItem,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",showCount:!0})),y.createElement(Le.default.Item,{label:"\u6240\u5C5E\u8BFE\u7A0B",name:"course_discipline_id",className:ve.baseLineHeight},y.createElement(me.q,{data:{course_discipline_id:(Or=rr==null?void 0:rr.examination_bank)==null?void 0:Or.course_discipline_id},style:{height:46},showLinkButton:!1})),y.createElement("div",{className:ve.concat},"\u6CA1\u6709\u5408\u9002\u7684\u8BFE\u7A0B\uFF1F",y.createElement("a",{target:"_blank",href:"/knowledgeHub"},"\u7BA1\u7406\u8BFE\u7A0B")),y.createElement(Le.default.Item,{label:"\u96BE\u5EA6",name:"difficulty",className:ve.radioBtnWrapper,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6"}]},y.createElement(fe.ZP.Group,{disabled:ir,className:ve.radiogroup},y.createElement(fe.ZP.Button,{className:ve.easy,value:1},"\u7B80\u5355"),y.createElement(fe.ZP.Button,{className:ve.medium,value:2},"\u9002\u4E2D"),y.createElement(fe.ZP.Button,{className:ve.hard,value:3},"\u56F0\u96BE"))),y.createElement(Le.default.Item,{label:"\u7B54\u9898\u65F6\u957F",className:ve.baseLineHeight},y.createElement($e.Z,{align:"middle"},y.createElement(Le.default.Item,{name:"time",noStyle:!0},y.createElement(Oe.Z,{className:ve.baseFormItem,min:1,disabled:ir,size:"large",max:9999,style:{width:220},placeholder:"\u8BF7\u586B\u5199\u7B54\u9898\u65F6\u957F"})),y.createElement("span",{style:{marginLeft:"10px",width:"40px",lineHeight:"46px",fontSize:14}},"\u5206\u949F"))),y.createElement(Le.default.Item,{label:"\u8BD5\u5377\u987B\u77E5",name:"exam_notes"},y.createElement(Be.default.TextArea,{rows:6,disabled:ir,maxLength:65535,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u987B\u77E5"})))),y.createElement("div",{className:ve.fixedBottom},y.createElement(ct.ZP,{className:`${ve.cancelBtn} mr5`,onClick:()=>{qn.id||window.location.href.indexOf("randompaper")>-1?ge.history.push("/paperlibrary"):ge.history.push(`/classrooms/${qn.coursesId}/exercise`)}},"\u53D6\u6D88"),y.createElement(ct.ZP,{className:`${ve.confirmBtn} ml15`,type:"primary",size:"large",onClick:()=>Vt(void 0,null,function*(){if(yield Sr.validateFields(),!qn.id&&!qn.coursesId){const fo=yield Xe(rr);fo.status===0&&(ge.history.replace(`/randompaper/edit/${fo==null?void 0:fo.examination_bank_id}?type=settings`),gn("settings"))}else gn("settings")})},"\u4E0B\u4E00\u6B65")),y.createElement(ae.Z,{open:na,onCancel:()=>{xi(!1)}}))},pn=E(62957),kt=E(5269),Gt={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"},Pt=E(2524),Je=E(82636),It=E(62673);const tn=[{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 nt=({open:vn,onCancel:gn,onOk:Nn})=>{const{data:Sr,dispatch:Or}=(0,y.useContext)(mt);(0,y.useEffect)(()=>{if(vn){const{item_types:kn}=Sr||{};ir(kn==null?void 0:kn.map(qn=>qn.item_type))}},[vn,Sr]);const[rr,ir]=(0,y.useState)([]);return y.createElement(pn.default,{title:y.createElement("div",null,"\u9898\u578B\u8BBE\u7F6E",y.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:vn,onCancel:gn,onOk:()=>Nn(rr)},y.createElement(It.default.Group,{value:rr,onChange:kn=>ir(kn)},y.createElement($e.Z,{gutter:[0,20]},tn.map(kn=>y.createElement(kt.Z,{key:kn.value,span:6},y.createElement(It.default,{value:kn.value},kn.label))))))},Nt=E(70858),Jt=Object.defineProperty,xt=Object.getOwnPropertySymbols,Wt=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable,Tn=(vn,gn,Nn)=>gn in vn?Jt(vn,gn,{enumerable:!0,configurable:!0,writable:!0,value:Nn}):vn[gn]=Nn,Gn=(vn,gn)=>{for(var Nn in gn||(gn={}))Wt.call(gn,Nn)&&Tn(vn,Nn,gn[Nn]);if(xt)for(var Nn of xt(gn))qt.call(gn,Nn)&&Tn(vn,Nn,gn[Nn]);return vn},Hn=({open:vn,onCancel:gn,onOk:Nn})=>{const{data:Sr}=(0,y.useContext)(mt),[Or,rr]=(0,y.useState)();console.log("--xxx-",Or),(0,y.useEffect)(()=>{vn&&rr((0,Ce.cloneDeep)(Sr))},[vn,Sr]);const ir=(0,y.useMemo)(()=>{var kn;let qn;return qn=(kn=Or==null?void 0:Or.item_types)==null?void 0:kn.map(yr=>yr.total_score).reduce((yr,na)=>parseFloat(yr)+parseFloat(na)),qn==null?void 0:qn.toFixed(1)},[Or]);return vn?y.createElement(pn.default,{title:"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C",open:vn,width:640,centered:!0,closable:!0,onCancel:gn,onOk:()=>{Nn(Or)}},y.createElement("div",{className:"c-black mb20"},"\u603B\u5206",y.createElement("span",{className:"ml10 c-light-primary"},ir)),y.createElement(Nt.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(kn,qn){const{score:yr,item_type:na}=qn;return y.createElement("div",{style:{color:"#9096A3"}},"\u6BCF",((qn==null?void 0:qn.item_type)==="PRACTICAL","\u9898"),y.createElement(Oe.Z,{precision:1,size:"large",className:"ml10 mr10",min:.1,disabled:(qn==null?void 0:qn.item_bank_count)===0,max:100,onChange:xi=>{const ki=Or,fo=ki.item_types.find(Ha=>Ha.item_type===na);fo.score=Number(xi);const ro=xi*fo.item_bank_count;fo.total_score=ro&&Number(ro.toFixed(1)),ki.examination_bank.total_score=ki.item_types.reduce((Ha,ma)=>Number(Ha)+Number(ma.total_score),0),rr(Gn({},ki))}}),"\u5206")}}],className:Gt.setScoreModalTable,dataSource:Or==null?void 0:Or.item_types,rowKey:"item_type",pagination:!1})):null},Zt=E(31691),Dn=E(82326),nn=E(18287),Sn="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+Z12m0tc2/cWXnFPODf3zZCxmOj4yxzg/O4qWv48LDwHIHOZrO/i5HoGHRQ3HeEAg0m1ShWtn/dh27tgUAilTqOUMcyqm7AfbZjCR5Q2j+N4o64DOMDhXq8pQ4B5mdzwDP4B5kHmZrL/eyAAAAAASUVORK5CYII=",rn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA4RJREFUWEftWEtrE1EYPXfSh5VWSlMfNSi4sokLK30pWtuKIChVVBBBWpfiRhcKghii7tp/4FrBBxREXbhQ0Bj7gqokahe+kNZWqa21tLGtk7kymY5J79yZL5NUKNLZZHHnzj33fOec+90wzrkHS/hhywBzrM4ygzkSiP+EwTdtPvDJdnDeCI4KgBPEsGGAPYOn8Bq23A7nwiLNYH+bD+rYSwBlloUYAzgH9F/Zo48pyhMoBVdR3ZkVUBpgV9MNcO24sb7OnA6GYtBEa75rbkCYL24wOcxGAPYUhSUXUH3/Cw0wXDUIziuMJYkFc6mluH+GcRSv2UYDfLxJtSWMwiuOUxsUC6Qot2iAD71q8ruZVNgtYFO/+m+yQKKm2UgGAMvU5GTvbqDyClC4LmUMuw+LTFiYdNDC7FdgIASMG57KHGDNdSB/tVyKltIJAESmRHziBmZHgf5WlwBrb6bihFrQmkdpCSDRiiyu+ozgyJzBujtpy1Jiy9XOAPqOuQRY35mKP8qdFvELBFJu1qH1HnUL8K59iV0DFtwqc3PPIQnAH+3noGmXAK1k4YnhxoaS8joqQgFYOaBUAlBSedbTIgCcuLwBc78+SW3qWnJUzkjG8/yAZ3Nqd937BYDfghvB4x+NQJ5vAMycozRvOVOF+Rk1FaVAkQEquX73PkmJh89EwXngn5+5dhsuPgwopYYZu/ZKAA6dDkLTQhaAlhKLDAsvuJWE+X5RDbCi1jBjpEkCcPCsH4mpmKXEVIksbZiAkDxz5zWZVwaUnjS6pkiDTcx8aI2CscCCRtStJqmjzKmtLD8FeLxAZKcNwPcnguCJ0II1SAYERJSJnUxX0gysagbC2+0YbPNDnY79rZrk6LR+n0DkRsP5a4GK80C4xuEkeXswCvCAfaOawV3E1K2+DGUaUeO+i4AlB9NpeX0gCGihpA6zeahcpBB7W4Bo0IHBgSN+zP2MGVuX1ZiihHKJOC5IpMAHfH7gAFAfetUYBUcgGwIXZc73d0BixqEffNGQ5mYi1yjCSFdLKhIfA6ZHHQBGm/2YmYpJ2bAEN4nAmVRZjKmzwOQQcWnq3focnNdTBwV9n88yhuKj95xb/i5/HdSpRwBbmfpXIRPTCIS5ycF0U3o8O+g7SWR9FebiHeCJXQArkNdKYIiqODXO2G9A6cCeiRANcFEsmf1HlgFmz50xc8kz+AfHHTJwrKNsNwAAAABJRU5ErkJggg==",En="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABWlJREFUWEftV1tsVEUY/ubspUu3W9mWGlttwXqJVRNBbqIFDbyA8mCCkAYtpEaIGBODhBCECiG+UE1EnzTempYqtSAE45saBMX40JC0IRojpd1GKM1uW7bd7V7OOWPmnD3bPTNndxYbE2I6L2dzdubMN9/3/ZchlFIXbuNB5gDOUp05BmdJIP4fDPZcxt2xaRzVgadBUQ3QDDEE5m/2zBkE1whwoYTg461LcX42LEoZZOCiMXoJoBUCHEIASgH2dBqUgijKORfBkW3/EqgUYNsPieMAmtj+Fhb2NIfFXvaFnUhCQBlI6wD8dGcBrisEP5V7fft2NuJvKcC9p6PDoLSa7cwTJgKejZj8WjLm93iWSAG2tI+qEsdlvywl6BZPqBByQgpw44fDKskEAQUF+82e5rBrxCvGz7fWZr+XkZ/ZwFTIbgkKel0K8LkPhlW2uLbSh9UNQfh9btGLIrIZ7E7WyDkaf8xYQsX538cwHE4YgKUAnz0WMgC+/EwNSn1uR5MVEcxZ/xbjUgbyi3PXDNNLAW44FjIk3rOxNpvtCseuCEFCMGcUc/2734YMFaQA178fUhlDB56vy+4s27AYlgrOocA7Z0IG60UDPLypLm8BEQBncnc2X3ITijng4ZMhM8vK+kHGIIuyI5sXZgsGn//ECmOvgMJ8rgA5/f92T8hM8rkAX/psZI+u4yClesAWhhLNhPTBpSMhfeSkF7eLoP5OHzY8FoSizGzU+vWQmXosgLvPTNTGJpNXi8lvPF4hPwoZW0YZsKw+gMWLSrMV1ASYE8V7e27WTUwnB7IzsrFVjOXzdDVWOpfgY+YO+j3YvKrCWMEkP9g9ZHjeJvErnaN9oHhYgCSrYQ5F2echKPcpSGkUE9PU3vXkMeWWJxcg6HcZAA+cGDIosgHc0THaqun0EN8ViFFqdij5SlTT8jKsa5gHJdPF/DaQwCcXotkCme+8y+/zY1m937D/W19yHmSs7eoeb0gm0v1Wi2QBEGpuAcm8buCjF6tmWqyMHPu/iWAkahQlseZm0lKw1I2mRlPm/V2D9iCxZG1pH+2j4GR2KB1lJaaE8TSTUDf88kiNB2sfKsWCMgWlXgVVARfG4xp+/iuBU72xmca7gGW2NlYaMu/vYgxyaYaBbGkPt+pUP5Trw1xGa4Nu7FhdjkULPBlDUwxGVLgVgsFIGj/+MY0rYdXwzzwvQTzFOiDHi4Fj9K14wI+V9/uxr3PQuZLs6hxviKnpfttVI+fERzdVoPoOsWmYiGt4ozsCncnFA+JeFGp0KwJuNK+pwL6OPBKzYzV/npHZoZN/74UK3OUAMJ7S8VpXBJoRsPYgEhBLskLzmkq0nR7OX+q2t4fNaHYYtUEXdq4O4N6MxGzKnzfSiExpqJnvRm8oiYtXkhiJasZqj8vMMCqzaebAsvbsiQf9OHXxRv5+kEXzZFzvt+5qgiQEmO8jhseSGjAW0w0wJW7g8Tovnqovgb+EGO+XLvTCRYBITEd3bxy/DqREQrnmojLgRt/VMaN7z9ssNLeP94GPZotR2d2CECy5x40315XZNIgldbz61U15aSLASHgSqqblB9hyfKpV07WMzHaXi3lS3NPrAnav9ePRGjOgVI3i5KUEvrucEm6HfFix2h6dnMbNqen8AHd1pxpiyWS/mS0lYSncj2cWVJURBHwEI1Ed8VQ+8sSoSasqro9OFL40beuM/UIpXSnczvjbF387484jK+VODDL/3QiPny3YsG7vGFsRT+rfE5BSC6QjB7IWWfY/91FrrwRRV0k76i2fhhcnk2obqN4IQrxOAGWevEV8UIiS1iltO/t69SEpQHnI/bcz5gDOlt/bnsF/AOXAMnuF/cdAAAAAAElFTkSuQmCC",xn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABpxJREFUWAntWE2IHFUQrtfzk5nNbrKbRGPcRSU/oIEkmERjMAQhCBIjKBpFEBER9OZNL4IevOhFbyGHRA9BhKBeouJFIkTNwaxGg16ikN1k0WR3M5ndnf/ptr56r7p7+s1mkYCHkILpev1e1VdfVb3X0zNEt+Qmr4Dpl9+xs9FYq0XvR0SPUETriC9WYI6x72YML0T0By99Gxj68KWd5k/ndEPKiwRy7RadZSKrDEdDVGiRxfnZ9YjJM1MTUScydIwn371Roh7BD042P2Hg5xHRxRON+6R6WlE7m1wzGRjT4ZnTjNOFjQkYIbQ68UlGURhSYIIpTu7k6N7CkWeN6XoE3zoxP8WMuK22kemG6ngxel4CWQeubpw1AmQrkFpnyx9HVg/uy8MuLbPV5uJ7DuloUDhlA8hWSAxS8SSEZy6zi152V2pX3/YJzjVlH8EtYkTDUaAhOobuJ0vZL7XuJWzoKY9gtd6JY5eKAQ0PFOL7/2NQqbWp0eKNCjFmk0fQVsvQ2Opl9Pj2NZQPeGdnWpu5jbtu68zA2uV4QsIll+sAdPigfPXzNF2cafKBCo1HUFF2bRiikQEmx/If9042H49vdm9qTKsDenD9EE1O263mbaaDhy7FeWf3jBe5F5mXe5+b+gyFhiy17rWKK+NVcGQ5ppRjpheZW680/oQQSy5LAiSmGHGpPYKyB/WUZnurvFUDJD32eodFJQXjrGAN4nQ2Hq/4BGHsgtrHChKxAH38BT6+wED8LUCOt/CejSW6czhPF2badPqvJoUO2/o4ew0Y+yaE+xBkVwkEniBrd5KScEsOnwNo1TCjY5fQ6/uG6b51RXWlLWMNOvxdNaZD/J2GEKLF340dP+xZe0xjCPBxQTmIjqHtx67DRIiKDTuDUMb+3jsKPeQQYufdJRrjaiqezR/xgKGYVgM/5ItHEJZog22FHSuCEOZ1DQAbjPvZryz1gWYeQ2XMW0ahBOEYrPFhuFhjDDuvxWBtATi4GCUat7Ls5j0DVwW8tYyOeNBUa4Z0/nLbJQ8QJGu1XlMvd2LnoaQN4NQryBxi9YbbCrRpbYGa7Yh+mWzS7EKXxlbl6ZWHV9DalTn6+twC7V5f4q/LHE3Pd+nIqSrV2VYF1dfvd8xl97yts1o7/eLRf7B1RbSWCaSd5zdmem3vCtrFwVVanYjOTDTpgXuW0e9TLfr4hzmaWQhlew4WDc01JbwUfTF8zGtM4GLcp4JYSiRLDisHtg70kMNcMW+kWsfPzNOJX2uYEkELQQ6CVwCQcK8C8ThNGHYaE9ojCAPZu6xxOBEAGqLjvZvKdqLPFb7qn11WcjEhDNheW6b40BAsewR1EQYIJKApB8ytkJMIC1/WDuX8STfjYJIK4fWfA+BngIiOEdSJ9ywAAQAJmBvrhM5NzCbvjAqk+mKlI4kJDjuoRuI6hsYHotreKTNoe8I9grZmzkDqx4YwFgerPxtfYGAXwSLLFXMHdwzS09uXU6nAGFwe+ZpEmVJjzOm8aqwLpNM69vqx9ck337G8AML8BTsQQKHNL7CX50KavNqljbfnaYDfuiHnptr03jfX6O9qSAe2DNCjm8s034hocrbLEIa2jRVp22iRupxXpY7kBK1HG7wcY4a1EHerMqmXFz6aZW9bHWTBCbmHaTLGHATrq5YbarSJai2usbMt86+EJ7aW6bHNJZq61qU5JrplNPnp8OlPNfryHL8xS1/QFRsPsBg5eMH3WyzRYcJ5S0ZWy5grqho/cjG+WjdU51+/adsG3x8fb9AbX1TlEZMmx8D0zP1ld9A4TioeyTcvYoOWxfcJCrEcB0T3Edhqm5clvtg4TRLjGX4c/jblH6h8ztCawRwFjI1tBI0PyKoW4nzvPWZ03zE7tgGhRMf1tx2xPHt6wlNI2a0b/g/k/BV9hgiUXOq8HS5ei43iPSQJ8r6xiVocv4JBwJ79K5WtEOx0Tny0XdD8QfXPT0f0+dmWvKWAHfbqoe8b1MafGpKN0xiLn2r2z+X0GS6JyeW5o5VmPhfIW2b2y5xduDh44CABFqhUBa9nP1xGWw1dqoRUcy8M6JD6CF7mVLbDqOW1uF5vjpeK+YfEYQkCWYYZc4HQyxU+6Veqeme1Jpuc4t4CNFqdcY9g1yzbX2/WL+QCM9QLhzstl90/S1fUdg2FgWQT6EVLbNHpThjNhaa8Hz6e7DgcFVbPTxwNcrk9JgqH9bBkCWYDZPh7uNmWanuhVfhIVaIwOjUzeNfLZ141XPdbcpNX4F/ikyqlsA/6bwAAAABJRU5ErkJggg==",Vn={ruleCheckBox:"ruleCheckBox___Onj2f",folderAreaWrapper:"folderAreaWrapper___ut2mr",folderAreaHeader:"folderAreaHeader___fOIDA",folderWrapper:"folderWrapper___IpJ50",folderIcon:"folderIcon___zBoRM",shareFolderIcon:"shareFolderIcon____5s3p",treeNodeItem:"treeNodeItem___quqla",treeNodeDifficulty:"treeNodeDifficulty___en0gk"},sr=E(11517),er=Object.defineProperty,cr=Object.defineProperties,Dr=Object.getOwnPropertyDescriptors,mr=Object.getOwnPropertySymbols,Hr=Object.prototype.hasOwnProperty,Lr=Object.prototype.propertyIsEnumerable,An=(vn,gn,Nn)=>gn in vn?er(vn,gn,{enumerable:!0,configurable:!0,writable:!0,value:Nn}):vn[gn]=Nn,Rn=(vn,gn)=>{for(var Nn in gn||(gn={}))Hr.call(gn,Nn)&&An(vn,Nn,gn[Nn]);if(mr)for(var Nn of mr(gn))Lr.call(gn,Nn)&&An(vn,Nn,gn[Nn]);return vn},dr=(vn,gn)=>cr(vn,Dr(gn)),vr=(vn,gn,Nn)=>new Promise((Sr,Or)=>{var rr=qn=>{try{kn(Nn.next(qn))}catch(yr){Or(yr)}},ir=qn=>{try{kn(Nn.throw(qn))}catch(yr){Or(yr)}},kn=qn=>qn.done?Sr(qn.value):Promise.resolve(qn.value).then(rr,ir);kn((Nn=Nn.apply(vn,gn)).next())});const Mt=(vn,gn,Nn)=>vn.map(Sr=>Sr.key===gn?Rn(Rn({},Sr),Nn):Sr.children?dr(Rn({},Sr),{children:Mt(Sr.children,gn,Nn)}):Sr),Kt={\u7B80\u5355:1,\u9002\u4E2D:2,\u56F0\u96BE:3},ft=(vn,gn,Nn)=>vn.map(Sr=>{var Or;const rr=Sr==null?void 0:Sr.tag_disciplines.map(kn=>{const qn=kn==null?void 0:kn.difficulty_count.map(yr=>({label:yr==null?void 0:yr.name,value:Kt[yr.name]}));return{title:ue(gn)===st.All&&qn.length>0?y.createElement($e.Z,{justify:"space-between"},y.createElement(kt.Z,null,`${kn.name}\uFF08${kn.child_count}\uFF09`),y.createElement(kt.Z,null,y.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),y.createElement(Le.default.Item,{noStyle:!0,name:[`${Sr.id}_${kn.id}`,"diffValue"]},y.createElement(It.default.Group,{style:{columnGap:12},options:qn})),y.createElement(Le.default.Item,{noStyle:!0,name:[`${Sr.id}_${kn.id}`,"diffNum"],initialValue:kn==null?void 0:kn.difficulty_count},y.createElement("input",{type:"hidden"})),y.createElement(Le.default.Item,{noStyle:!0,name:[`${Sr.id}_${kn.id}`,"extra"],initialValue:dr(Rn({},Sr),{type:Nn})},y.createElement("input",{type:"hidden"})))):`${kn.name}\uFF08${kn.child_count}\uFF09`,key:`${Sr.id}_${kn.id}`,name:kn.name,parentName:Sr.name,item_banks_count:kn.child_count,icon:null,isLeaf:!0,checkable:ue(gn)===st.FileFolderAndKnowledge,disableCheckbox:kn.child_count===0}}),ir=Sr==null?void 0:Sr.difficulty_count.map(kn=>({label:kn==null?void 0:kn.name,value:Kt[kn.name]}));return{title:ue(gn)===st.FileFolderAndDiff&&ir.length>0?y.createElement($e.Z,{justify:"space-between"},y.createElement(kt.Z,null,`${Sr.name}\uFF08${Sr.item_banks_count}\uFF09`),y.createElement(kt.Z,null,y.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),y.createElement(Le.default.Item,{noStyle:!0,name:[`${Sr.id}`,"diffValue"]},y.createElement(It.default.Group,{style:{columnGap:12},options:ir})),y.createElement(Le.default.Item,{noStyle:!0,name:[`${Sr.id}`,"diffNum"],initialValue:Sr==null?void 0:Sr.difficulty_count},y.createElement("input",{type:"hidden"})),y.createElement(Le.default.Item,{noStyle:!0,name:[`${Sr.id}`,"extra"],initialValue:dr(Rn({},Sr),{type:Nn})},y.createElement("input",{type:"hidden"})))):`${Sr.name}\uFF08${Sr.item_banks_count}\uFF09`,key:`${Sr.id}`,name:Sr.name,item_banks_count:Sr.item_banks_count,icon:kn=>kn.expanded?Nn==="0"?y.createElement("img",{src:rn,className:Vn.folderIcon}):y.createElement("img",{src:En,className:Vn.shareFolderIcon}):Nn==="0"?y.createElement("img",{src:Sn,className:Vn.folderIcon}):y.createElement("img",{src:xn,className:Vn.shareFolderIcon}),isLeaf:!Sr.have_child&&!((Or=Sr.tag_disciplines)!=null&&Or.length),checkable:ue(gn)===st.OnlyFileFolder,disableCheckbox:Sr.item_banks_count===0,children:Sr.children.length?ue(gn)===st.All||ue(gn)===st.FileFolderAndKnowledge?[...ft(Sr.children,gn,Nn),...rr]:ft(Sr.children,gn,Nn):[]}}),Rt=(vn,gn,Nn)=>vn.map(Sr=>{var Or;const rr=Sr==null?void 0:Sr.tag_disciplines.map(kn=>{console.log("tagItem:",kn);const qn=kn==null?void 0:kn.difficulty_count.map(yr=>({label:yr==null?void 0:yr.name,value:Kt[yr.name]}));return{title:ue(gn)===st.All&&qn.length>0?y.createElement($e.Z,{justify:"space-between"},y.createElement(kt.Z,null,`${kn.name}\uFF08${kn.child_count}\uFF09`),y.createElement(kt.Z,null,y.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),y.createElement(Le.default.Item,{noStyle:!0,name:[`${Sr.id}_${kn.id}`,"diffValue"]},y.createElement(It.default.Group,{style:{columnGap:12},options:qn})),y.createElement(Le.default.Item,{noStyle:!0,name:[`${Sr.id}_${kn.id}`,"diffNum"],initialValue:kn==null?void 0:kn.difficulty_count},y.createElement("input",{type:"hidden"})),y.createElement(Le.default.Item,{noStyle:!0,name:[`${Sr.id}_${kn.id}`,"extra"],initialValue:dr(Rn({},Sr),{type:Nn})},y.createElement("input",{type:"hidden"})))):`${kn.name}\uFF08${kn.child_count}\uFF09`,key:`${Sr.id}_${kn.id}`,name:kn.name,parentName:Sr.name,item_banks_count:kn.child_count,icon:null,isLeaf:!0,checkable:ue(gn)===st.FileFolderAndKnowledge,disableCheckbox:kn.child_count===0}}),ir=Sr==null?void 0:Sr.difficulty_count.map(kn=>({label:kn==null?void 0:kn.name,value:Kt[kn.name]}));return{title:ue(gn)===st.FileFolderAndDiff&&ir.length>0?y.createElement($e.Z,{justify:"space-between"},y.createElement(kt.Z,null,`${Sr.name}\uFF08${Sr.item_banks_count}\uFF09`),y.createElement(kt.Z,null,y.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),y.createElement(Le.default.Item,{noStyle:!0,name:[`${Sr.id}`,"diffValue"]},y.createElement(It.default.Group,{style:{columnGap:12},options:ir})),y.createElement(Le.default.Item,{noStyle:!0,name:[`${Sr.id}`,"diffNum"],initialValue:Sr==null?void 0:Sr.difficulty_count},y.createElement("input",{type:"hidden"})),y.createElement(Le.default.Item,{noStyle:!0,name:[`${Sr.id}`,"extra"],initialValue:dr(Rn({},Sr),{type:Nn})},y.createElement("input",{type:"hidden"})))):`${Sr.name}\uFF08${Sr.item_banks_count}\uFF09`,key:`${Sr.id}`,name:Sr.name,item_banks_count:Sr.item_banks_count,icon:kn=>kn.expanded?Nn==="0"?y.createElement("img",{src:rn,className:Vn.folderIcon}):y.createElement("img",{src:En,className:Vn.shareFolderIcon}):Nn==="0"?y.createElement("img",{src:Sn,className:Vn.folderIcon}):y.createElement("img",{src:xn,className:Vn.shareFolderIcon}),isLeaf:!Sr.have_child&&!((Or=Sr.tag_disciplines)!=null&&Or.length),checkable:ue(gn)===st.OnlyFileFolder,disableCheckbox:Sr.item_banks_count===0,children:[...Rt(Sr.children,gn,Nn),...rr]}});var ht=({ruleValue:vn,defaultData:gn,setSelectData:Nn,currentItemType:Sr,selectData:Or})=>{const[rr,ir]=(0,y.useState)("1"),[kn,qn]=(0,y.useState)(!0),[yr]=Le.default.useForm(),[na,xi]=(0,y.useState)([]),[ki,fo]=(0,y.useState)("all"),ro=(Jn,hr,Ar)=>{const{checkedNodes:aa}=hr;console.log("type:",Ar,aa,Or),Ar==="0"?(ma(Jn),ue(vn)===st.OnlyFileFolder?(Nn(Wr=>dr(Rn({},Wr),{my:aa.map(or=>({id:or.key,group_id:or.key,group_name:or.name,item_bank_num:or.item_banks_count,folderType:"0",quanlity:1}))})),zr(aa.reduce((Wr,or)=>Wr+or.item_banks_count,0))):(console.log(aa),Nn(Wr=>dr(Rn({},Wr),{my:aa.map(or=>{const[ha,fa]=or.key.split("_");return{id:or.key,tag_discipline_name:or.name,group_id:ha,tag_discipline_id:fa,folderType:"0",group_name:or.parentName,item_bank_num:or.item_banks_count,quanlity:1}})})),zr(aa.reduce((Wr,or)=>Wr+or.item_banks_count,0)))):(Ti(Jn),ue(vn)===st.OnlyFileFolder?Nn(Wr=>(console.log("pre:",Wr),dr(Rn({},Wr),{public:aa.map(or=>({id:or.key==="0"?"00":or.key,teacher_group_name:or.name,teacher_group_id:or.key,folderType:"3",item_bank_num:or.item_banks_count,quanlity:1}))}))):Nn(Wr=>dr(Rn({},Wr),{public:aa.map(or=>{const[ha,fa]=or.key.split("_");return{id:or.key==="0"?"00":or.key,tag_discipline_name:or.name,teacher_group_id:ha,tag_discipline_id:fa,folderType:"3",teacher_group_name:or.parentName,item_bank_num:or.item_banks_count,quanlity:1}})})),zr(aa.reduce((Wr,or)=>Wr+or.item_banks_count,0)))},[Ha,ma]=(0,y.useState)([]),[Vr,Ti]=(0,y.useState)([]),[Li,vo]=(0,y.useState)([]),[To,Pi]=(0,y.useState)([]),[go,bi]=(0,y.useState)([]),[ga,vi]=(0,y.useState)([]),[fi,si]=(0,y.useState)(!1),[Bt,Xt]=(0,y.useState)(!1);function an(){return vr(this,null,function*(){let Jn=yield(0,Ke.ZP)("/api/teach_group_shares.json",{method:"get"});Jn&&xi(Jn==null?void 0:Jn.groups)})}(0,y.useEffect)(()=>{an()},[]);const In=Jn=>vr(void 0,null,function*(){var hr,Ar,aa,Wr,or,ha,fa,Nr,Aa,$a,ua,fr;Jn.type==="0"?si(!0):Xt(!0);const Yr=yield(0,sr.ex)(Jn);Jn.type==="0"?si(!1):Xt(!1),Jn.type==="0"?bi(Yr):vi(Yr);const ui=(hr=Yr.navigation[0])==null?void 0:hr.difficulty_count.map(ca=>({label:ca==null?void 0:ca.name,value:Kt[ca.name]})),ba=(Ar=Yr.navigation[0])==null?void 0:Ar.tag_disciplines.map(ca=>{const ra=ca==null?void 0:ca.difficulty_count.map(Pa=>({label:Pa==null?void 0:Pa.name,value:Kt[Pa.name]}));return{title:ue(vn)===st.All&&ra.length>0?y.createElement($e.Z,{justify:"space-between",style:{color:"#232B40"}},y.createElement(kt.Z,null,`${ca.name}\uFF08${ca.child_count}\uFF09`),y.createElement(kt.Z,null,y.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),y.createElement(Le.default.Item,{noStyle:!0,name:[`0_${ca.id}`,"diffValue"]},y.createElement(It.default.Group,{style:{columnGap:12},options:ra})),y.createElement(Le.default.Item,{noStyle:!0,name:[`0_${ca.id}`,"diffNum"],initialValue:ca==null?void 0:ca.difficulty_count},y.createElement("input",{type:"hidden"})),y.createElement(Le.default.Item,{noStyle:!0,name:[`0_${ca.id}`,"extra"],initialValue:{tag_discipline_name:ca.name,name:"\u6839\u76EE\u5F55",type:Jn.type}},y.createElement("input",{type:"hidden"})))):y.createElement("span",{style:{color:"#232B40"}},ca.name,"\uFF08",ca.child_count,"\uFF09"),key:`0_${ca.id}`,name:ca.name,parentName:"\u6839\u76EE\u5F55",item_banks_count:ca.child_count,icon:null,isLeaf:!0,checkable:ue(vn)===st.FileFolderAndKnowledge,disableCheckbox:ca.child_count===0}});if(Jn.type==="0"){const ca=ft(Yr.data,vn,"0"),ra=Rt(Yr.data,vn,"0");console.log("normalChildren2:",ra),vo([{title:ue(vn)===st.FileFolderAndDiff?y.createElement($e.Z,{justify:"space-between",style:{color:"#232B40"}},y.createElement(kt.Z,null,`\u6839\u76EE\u5F55\uFF08${(aa=Yr.navigation[0])==null?void 0:aa.child_count}\uFF09`),y.createElement(kt.Z,null,y.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),y.createElement(Le.default.Item,{noStyle:!0,name:["0","diffValue"],initialValue:[]},y.createElement(It.default.Group,{style:{columnGap:12},options:ui})),y.createElement(Le.default.Item,{noStyle:!0,name:["0","diffNum"],initialValue:(Wr=Yr.navigation[0])==null?void 0:Wr.difficulty_count},y.createElement("input",{type:"hidden"})),y.createElement(Le.default.Item,{noStyle:!0,name:["0","extra"],initialValue:{type:"0",group_id:"0",name:"\u6839\u76EE\u5F55"}},y.createElement("input",{type:"hidden"})))):y.createElement("span",{style:{color:"#232B40"}},`\u6839\u76EE\u5F55\uFF08${(or=Yr.navigation[0])==null?void 0:or.child_count}\uFF09`),key:"0",name:"\u6839\u76EE\u5F55",item_banks_count:(ha=Yr.navigation[0])==null?void 0:ha.child_count,disabled:!(((fa=Yr.navigation[0])==null?void 0:fa.child_count)>0),checkable:ue(vn)===st.OnlyFileFolder,icon:Pa=>Pa.expanded?y.createElement("img",{src:rn,className:Vn.folderIcon}):y.createElement("img",{src:Sn,className:Vn.folderIcon}),isLeaf:!1,children:ue(vn)===st.OnlyFileFolder||ue(vn)===st.FileFolderAndDiff?ca:[...ra,...ba]}])}else{const ca=ft(Yr.data,vn,"3"),ra=Rt(Yr.data,vn,"3");Pi([{title:ue(vn)===st.FileFolderAndDiff?y.createElement($e.Z,{justify:"space-between"},y.createElement(kt.Z,null,`\u6839\u76EE\u5F55\uFF08${(Nr=Yr.navigation[0])==null?void 0:Nr.child_count}\uFF09`),y.createElement(kt.Z,null,y.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),y.createElement(Le.default.Item,{noStyle:!0,name:["0","diffValue"]},y.createElement(It.default.Group,{style:{columnGap:12},options:ui})),y.createElement(Le.default.Item,{noStyle:!0,name:["0","diffNum"],initialValue:(Aa=Yr.navigation[0])==null?void 0:Aa.difficulty_count},y.createElement("input",{type:"hidden"})),y.createElement(Le.default.Item,{noStyle:!0,name:["0","extra"],initialValue:{type:"3",group_id:"0",name:"\u6839\u76EE\u5F55"}},y.createElement("input",{type:"hidden"})))):y.createElement("span",{style:{color:"#232B40"}},`\u6839\u76EE\u5F55\uFF08${($a=Yr.navigation[0])==null?void 0:$a.child_count}\uFF09`),key:"0",name:"\u6839\u76EE\u5F55",item_banks_count:(ua=Yr.navigation[0])==null?void 0:ua.child_count,checkable:ue(vn)===st.OnlyFileFolder,icon:Pa=>Pa.expanded?y.createElement("img",{src:En,className:Vn.shareFolderIcon}):y.createElement("img",{src:xn,className:Vn.shareFolderIcon}),isLeaf:!1,disabled:!(((fr=Yr.navigation[0])==null?void 0:fr.child_count)>0),children:ue(vn)===st.OnlyFileFolder||ue(vn)===st.FileFolderAndDiff?ca:[...ra,...ba]}])}});(0,y.useEffect)(()=>{rr==="1"?In({type:"0",group_id:0,item_type:Sr,show_children:!0}):rr==="2"&&In({type:"3",except_mine:!0,item_type:Sr,show_children:!0,teach_group_id:ki==="all"?"":ki})},[vn,rr,ki]),(0,y.useEffect)(()=>{var Jn,hr,Ar,aa,Wr,or,ha,fa,Nr,Aa,$a,ua;console.log("selectData-active:",Or,gn,rr),rr==="1"?(ma((Jn=Or==null?void 0:Or.my)==null?void 0:Jn.map(fr=>fr.id)),zr(((Ar=(hr=Or==null?void 0:Or.my)==null?void 0:hr.reduce)==null?void 0:Ar.call(hr,(fr,Yr)=>fr+Yr.item_bank_num,0))||0)):rr==="2"&&(Ti((aa=Or==null?void 0:Or.public)==null?void 0:aa.map(fr=>fr.id)),zr(((or=(Wr=Or==null?void 0:Or.public)==null?void 0:Wr.reduce)==null?void 0:or.call(Wr,(fr,Yr)=>fr+Yr.item_bank_num,0))||0)),ue(vn)===st.All&&(rr==="1"?(ma((ha=Or==null?void 0:Or.my)==null?void 0:ha.map(fr=>fr.id)),zr((Or==null?void 0:Or.filter(fr=>!fr.is_share).reduce((fr,Yr)=>fr+Yr.item_bank_num,0))||0),(fa=Or==null?void 0:Or.filter(fr=>!fr.is_share))==null||fa.forEach(fr=>{const Yr=yr.getFieldValue([`${fr.group_id||0}_${fr.tag_discipline_id}`,"diffValue"])||[];console.log("prev:",Yr),Yr!=null&&Yr.includes[fr.difficulty]||yr.setFieldValue([`${fr.group_id||0}_${fr.tag_discipline_id}`,"diffValue"],Array.from(new Set([...Yr,fr.difficulty])))})):rr==="2"&&(Ti((Nr=Or==null?void 0:Or.public)==null?void 0:Nr.map(fr=>fr.id)),zr((Or==null?void 0:Or.filter(fr=>!!fr.is_share).reduce((fr,Yr)=>fr+Yr.item_bank_num,0))||0),(Aa=Or==null?void 0:Or.filter(fr=>!!fr.is_share))==null||Aa.forEach(fr=>{const Yr=yr.getFieldValue([`${fr.teacher_group_id||0}_${fr.tag_discipline_id}`,"diffValue"])||[];Yr!=null&&Yr.includes[fr.difficulty]||yr.setFieldValue([`${fr.teacher_group_id||0}_${fr.tag_discipline_id}`,"diffValue"],Array.from(new Set([...Yr,fr.difficulty])))}))),ue(vn)===st.FileFolderAndDiff&&(yr.resetFields(),setTimeout(()=>{Nn(Or)},300),rr==="1"?(zr((Or==null?void 0:Or.filter(fr=>!fr.is_share).reduce((fr,Yr)=>fr+Yr.item_bank_num,0))||0),($a=Or==null?void 0:Or.filter(fr=>!fr.is_share))==null||$a.forEach(fr=>{const Yr=yr.getFieldValue([`${fr.group_id}`,"diffValue"])||[];console.log("prev:",Yr),Yr!=null&&Yr.includes[fr.difficulty]||yr.setFieldValue([`${fr.group_id}`,"diffValue"],Array.from(new Set([...Yr,fr.difficulty])))})):(zr((Or==null?void 0:Or.filter(fr=>!!fr.is_share).reduce((fr,Yr)=>fr+Yr.item_bank_num,0))||0),(ua=Or==null?void 0:Or.filter(fr=>!!fr.is_share))==null||ua.forEach(fr=>{const Yr=yr.getFieldValue([`${fr.teacher_group_id}`,"diffValue"])||[];Yr!=null&&Yr.includes[fr.difficulty]||yr.setFieldValue([`${fr.teacher_group_id}`,"diffValue"],Array.from(new Set([...Yr,fr.difficulty])))})))},[rr]),console.log("1111111111:",Ha,Vr),(0,y.useEffect)(()=>{setTimeout(()=>{var Jn,hr,Ar,aa,Wr;switch(ue(vn)){case st.OnlyFileFolder:{const or=[],ha=[];for(const fa of Or.my||[])or.push(fa);for(const fa of Or.public||[])ha.push(fa);ma(or.map(fa=>`${fa.group_id}`)),Ti(ha.map(fa=>`${fa.teacher_group_id}`)),zr(rr==="1"?or.reduce((fa,Nr)=>fa+Nr.item_bank_num,0):ha.reduce((fa,Nr)=>fa+Nr.item_bank_num,0));break}case st.FileFolderAndKnowledge:{const or=[],ha=[];for(const fa of(Or==null?void 0:Or.my)||[])or.push(fa);for(const fa of(Or==null?void 0:Or.public)||[])ha.push(fa);zr((Jn=rr==="1"?or:ha)==null?void 0:Jn.reduce((fa,Nr)=>fa+Nr.item_bank_num,0)),ma(or.map(fa=>`${fa.group_id}_${fa.tag_discipline_id}`)),Ti(ha.map(fa=>`${fa.teacher_group_id}_${fa.tag_discipline_id}`));break}case st.All:{rr==="1"?(zr((Or==null?void 0:Or.filter(or=>!or.is_share).reduce((or,ha)=>or+ha.item_bank_num,0))||0),(hr=Or==null?void 0:Or.filter(or=>!or.is_share))==null||hr.forEach(or=>{const ha=yr.getFieldValue([`${or.group_id||0}_${or.tag_discipline_id}`,"diffValue"])||[];console.log("prev:",ha,or.difficulty,or),ha!=null&&ha.includes[or.difficulty]||yr.setFieldValue([`${or.group_id||0}_${or.tag_discipline_id}`,"diffValue"],Array.from(new Set([...ha,or.difficulty])))})):(zr((Or==null?void 0:Or.filter(or=>!!or.is_share).reduce((or,ha)=>or+ha.item_bank_num,0))||0),(Ar=Or==null?void 0:Or.filter(or=>!!or.is_share))==null||Ar.forEach(or=>{const ha=yr.getFieldValue([`${or.group_id||0}_${or.tag_discipline_id}`,"diffValue"])||[];console.log("prev:",ha,or.difficulty,or),ha!=null&&ha.includes[or.difficulty]||yr.setFieldValue([`${or.group_id||0}_${or.tag_discipline_id}`,"diffValue"],Array.from(new Set([...ha,or.difficulty])))}));break}case st.FileFolderAndDiff:{rr==="1"?(zr((Or==null?void 0:Or.filter(or=>!or.is_share).reduce((or,ha)=>or+ha.item_bank_num,0))||0),(aa=Or==null?void 0:Or.filter(or=>!or.is_share))==null||aa.forEach(or=>{const ha=yr.getFieldValue([`${or.group_id}`,"diffValue"])||[];console.log("prev:",ha,or.difficulty),ha!=null&&ha.includes[or.difficulty]||yr.setFieldValue([`${or.group_id}`,"diffValue"],Array.from(new Set([...ha,or.difficulty])))})):(zr((Or==null?void 0:Or.filter(or=>!!or.is_share).reduce((or,ha)=>or+ha.item_bank_num,0))||0),(Wr=Or==null?void 0:Or.filter(or=>!!or.is_share))==null||Wr.forEach(or=>{const ha=yr.getFieldValue([`${or.group_id}`,"diffValue"])||[];ha!=null&&ha.includes[or.difficulty]||yr.setFieldValue([`${or.group_id}`,"diffValue"],Array.from(new Set([...ha,or.difficulty])))}));break}}},800)},[gn,vn,Li,To]);const[Va,zr]=(0,y.useState)(0);return y.createElement(Le.default,{form:yr,onValuesChange:(Jn,hr)=>vr(void 0,null,function*(){var Ar,aa,Wr,or;console.log("onValuesChange:",hr,Jn);let ha=0;if(ue(vn)===st.FileFolderAndDiff){const fa=yield yr.getFieldValue(),Nr=[],Aa=[];for(const ua of Object.keys(fa))if((aa=(Ar=fa[ua])==null?void 0:Ar.diffValue)!=null&&aa.length&&ua!=="null"&&ua!==null){const fr=fa[ua];Nr.push(Rn({id:ua},fr))}const $a={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"};Nr.map(ua=>{var fr,Yr,ui,ba,ca;ua.id==0&&(ua.diffNum=rr==="1"?(Yr=(fr=go==null?void 0:go.navigation)==null?void 0:fr[0])==null?void 0:Yr.difficulty_count:(ba=(ui=ga==null?void 0:ga.navigation)==null?void 0:ui[0])==null?void 0:ba.difficulty_count),(ca=ua==null?void 0:ua.diffValue)==null||ca.map(ra=>{var Pa,ao,qo,Ko,Xl;const Oi={group_name:((Pa=ua.extra)==null?void 0:Pa.name)||"",teacher_group_name:"",id:`${ua.id}_${ra}`,group_id:ua.id,difficulty:ra,item_bank_num:(Ko=(qo=(ao=ua.diffNum)==null?void 0:ao.filter(Tl=>Tl.name===$a[ra]))==null?void 0:qo[0])==null?void 0:Ko.value};rr==="2"&&(Oi.is_share=!0,Oi.teacher_group_id=ua.id,Oi.teacher_group_name=(Xl=ua.extra)==null?void 0:Xl.name),Aa.push(Oi)})}),ha=Aa.reduce((ua,fr)=>ua+fr.item_bank_num,0),Nn([...Aa,...Or==null?void 0:Or.filter(ua=>rr==="1"?ua.is_share:!ua.is_share)])}else if(ue(vn)===st.All){const fa=[];for(const Nr of Object.keys(hr)){const{diffNum:Aa=[],diffValue:$a=[],extra:ua={}}=hr[Nr];console.log("---",ua);const[fr,Yr]=Nr.split("_");let ui=(or=(Wr=ua.tag_disciplines)==null?void 0:Wr.filter(ba=>parseInt(ba.id)===parseInt(Yr)))==null?void 0:or[0];$a.forEach(ba=>{var ca;const ra={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"},Pa=(ca=Aa==null?void 0:Aa.find(qo=>qo.name===ra[ba]))==null?void 0:ca.value,ao={group_name:"",teacher_group_name:"",tag_discipline_name:(ui==null?void 0:ui.name)||ua.tag_discipline_name,id:`${Nr}_${ba}`,group_id:fr,is_share:!!(ui!=null&&ui.is_share||(ua==null?void 0:ua.type)==="3"),tag_discipline_id:Yr,difficulty:ba,item_bank_num:Pa};ha+=Pa,ua.type==="0"?ao.group_name=ua.name:ao.teacher_group_name=ua.name,rr==="2"&&(ao.is_share=!0,ao.teacher_group_id=ua.id||0,ao.teacher_group_name=ua.name),Pa>0&&fa.push(ao)})}Nn([...fa,...Or==null?void 0:Or.filter(Nr=>rr==="1"?Nr.is_share:!Nr.is_share)])}zr(ha)})},y.createElement(Zt.default,{destroyInactiveTabPane:!0,activeKey:rr,onChange:Jn=>ir(Jn),style:{minHeight:260},tabBarExtraContent:{right:rr==="2"&&(na==null?void 0:na.length)>0&&y.createElement(Dn.default,{onChange:Jn=>{fo(Jn)},value:ki,style:{width:120}},y.createElement(Dn.default.Option,{key:"all",value:"all"},"\u5168\u90E8"),na==null?void 0:na.map(Jn=>y.createElement(Dn.default.Option,{key:Jn==null?void 0:Jn.group_id,value:Jn==null?void 0:Jn.group_id},Jn==null?void 0:Jn.name)))},items:[{key:"1",label:"\u6211\u521B\u5EFA\u7684",children:(Li==null?void 0:Li.length)===0?y.createElement(Ne.Z,{spinning:fi},y.createElement(Pt.Z,{ButtonTwo:y.createElement("a",{target:"_blank",href:"/problemset"},"\u524D\u5F80\u9898\u5E93\uFF0C\u65B0\u589E\u66F4\u591A\u8BD5\u9898",">")})):y.createElement("div",{className:Vn.folderAreaWrapper},y.createElement($e.Z,{justify:"space-between",align:"middle",className:Vn.folderAreaHeader},y.createElement("span",null,"\u6587\u4EF6\u5939"),y.createElement("span",{className:"mr20"},"\u5DF2\u9009",y.createElement("span",{style:{color:"#3061D0"}}," ",Va," "),"\u9898")),y.createElement(Ne.Z,{spinning:fi},y.createElement("div",{style:{minHeight:200}},Li.length>0&&y.createElement(nn.default,{checkable:!0,className:Vn.folderWrapper,rootStyle:{paddingLeft:15,paddingRight:0,paddingTop:10},selectable:!1,onCheck:(Jn,hr)=>ro(Jn,hr,"0"),checkedKeys:Ha,checkStrictly:!0,treeData:Li,showIcon:!0,blockNode:!0,defaultExpandAll:!0}))))},{key:"2",label:"\u56E2\u961F\u5171\u4EAB",children:(To==null?void 0:To.length)===0?y.createElement(Ne.Z,{spinning:Bt},y.createElement(Pt.Z,{ButtonTwo:y.createElement("a",{target:"_blank",href:"/problemset"},"\u524D\u5F80\u9898\u5E93\uFF0C\u65B0\u589E\u66F4\u591A\u8BD5\u9898",">")})):y.createElement("div",{className:Vn.folderAreaWrapper},y.createElement($e.Z,{justify:"space-between",align:"middle",className:Vn.folderAreaHeader},y.createElement("span",null,"\u6587\u4EF6\u5939"),y.createElement("span",{className:"mr20"},"\u5DF2\u9009",y.createElement("span",{style:{color:"#3061D0"}}," ",Va||0," "),"\u9898")),y.createElement(Ne.Z,{spinning:Bt},y.createElement("div",{style:{minHeight:200}},(To==null?void 0:To.length)>0&&y.createElement(nn.default,{checkable:!0,className:Vn.folderWrapper,selectable:!1,rootStyle:{paddingLeft:15,paddingRight:0,paddingTop:10},onCheck:(Jn,hr)=>ro(Jn,hr,"3"),checkedKeys:Vr,checkStrictly:!0,treeData:To,showIcon:!0,blockNode:!0,defaultExpandAll:!0}))))}]}))},fn=E(3033),ar=E(61527),pr=Object.defineProperty,Ft=Object.defineProperties,Tt=Object.getOwnPropertyDescriptors,_t=Object.getOwnPropertySymbols,Ut=Object.prototype.hasOwnProperty,Fn=Object.prototype.propertyIsEnumerable,zn=(vn,gn,Nn)=>gn in vn?pr(vn,gn,{enumerable:!0,configurable:!0,writable:!0,value:Nn}):vn[gn]=Nn,Un=(vn,gn)=>{for(var Nn in gn||(gn={}))Ut.call(gn,Nn)&&zn(vn,Nn,gn[Nn]);if(_t)for(var Nn of _t(gn))Fn.call(gn,Nn)&&zn(vn,Nn,gn[Nn]);return vn},jn=(vn,gn)=>Ft(vn,Tt(gn)),gr=(vn,gn,Nn)=>new Promise((Sr,Or)=>{var rr=qn=>{try{kn(Nn.next(qn))}catch(yr){Or(yr)}},ir=qn=>{try{kn(Nn.throw(qn))}catch(yr){Or(yr)}},kn=qn=>qn.done?Sr(qn.value):Promise.resolve(qn.value).then(rr,ir);kn((Nn=Nn.apply(vn,gn)).next())});const Ir={\u7B80\u5355:1,\u9002\u4E2D:2,\u56F0\u96BE:3};var Zr=({ruleValue:vn,setSelectData:gn,currentItemType:Nn,defaultData:Sr,isFirst:Or})=>{const[rr,ir]=(0,y.useState)([]),[kn,qn,yr,na]=(0,ar.U)(gt,{keyword:"",course_discipline_id:null,item_type:Nn});(0,y.useEffect)(()=>{gr(void 0,null,function*(){const Vr=yield yr({},!0);ir((0,fn.L)(Vr.disciplines))})},[]),console.log(Sr),(0,y.useEffect)(()=>{if(Or)switch(ue(vn)){case st.OnlyKnowledge:{Ha(Sr.map(Vr=>Vr.tag_discipline_id));break}case st.KnowledgeAndDiff:{const Vr=new Map;Sr.forEach(Ti=>{Ti&&(Vr.has(Ti.tag_discipline_id)?Vr.set(Ti.tag_discipline_id,[...Vr.get(Ti.tag_discipline_id),Ti.difficulty]):Vr.set(Ti.tag_discipline_id,[Ti.difficulty]))});for(const[Ti,Li]of Vr.entries())xi.setFieldValue([Ti,"diff"],Li);break}}},[Sr,vn,Or]);const[xi]=Le.default.useForm(),ki=(0,y.useMemo)(()=>{var Vr;const Ti=[];let Li="",vo="";const To={};console.log(na,"disciplineRes");for(const Pi of((Vr=na==null?void 0:na.data)==null?void 0:Vr.list)||[]){const go={course_discipline_name:Pi==null?void 0:Pi.course_discipline_name,tag_discipline_name:Pi.name,id:Pi.id,item_bank_num:Pi.total_count,difficulty_count:Pi.difficulty_count,tag_discipline_id:Pi.id};Ti.push(go)}return Ti},[na,Sr]),fo=[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",show:!0,render:(Vr,Ti)=>{const{item_bank_num:Li}=Ti;return y.createElement("div",null,Vr,`(${Li})`)}},{title:"\u6240\u5C5E\u8BFE\u7A0B",dataIndex:"course_discipline_name",ellipsis:!0,show:!0},{title:"\u96BE\u5EA6",width:"35%",show:vn.includes(Ct.Difficulty),render:(Vr,Ti)=>{const{id:Li,difficulty_count:vo,total_count:To,course_discipline_name:Pi,tag_discipline_name:go}=Ti;return y.createElement(y.Fragment,null,y.createElement(Le.default.Item,{name:[Li,"diff"],noStyle:!0},y.createElement(It.default.Group,{style:{columnGap:12},options:vo.map(bi=>({label:bi.name,value:Ir[bi.name]}))})),y.createElement(Le.default.Item,{name:[Li,"extra"],initialValue:{difficulty_count:vo,total_count:To,course_discipline_name:Pi,tag_discipline_name:go},noStyle:!0},y.createElement("input",{type:"hidden"})))}}].filter(Vr=>Vr.show),[ro,Ha]=(0,y.useState)([]),ma=(0,y.useRef)(new Map);return y.createElement("div",{style:{marginTop:12}},y.createElement($e.Z,{className:"mb20",align:"middle",gutter:20},y.createElement(kt.Z,null,y.createElement(me.q,{size:"large",style:{width:240},showLinkButton:!1,onChange:Vr=>{yr({course_discipline_id:Vr})}})),y.createElement(kt.Z,null,y.createElement(Je.t7,{style:{width:300},placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0\u8FDB\u884C\u641C\u7D22",value:kn.keyword,onChange:Vr=>yr({keyword:Vr})}))),y.createElement(Le.default,{form:xi,onValuesChange:(Vr,Ti)=>{var Li;console.log(Ti),ma.current.clear();for(const vo of Object.keys(Ti)){const To={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"},Pi=Ti[vo],{difficulty_count:go,total_count:bi}=Pi.extra||{};(Li=Pi==null?void 0:Pi.diff)==null||Li.forEach(ga=>{var vi;const fi=(vi=go==null?void 0:go.find(Bt=>Bt.name===To[ga]))==null?void 0:vi.value,si=jn(Un({},Pi.extra),{id:`${vo}_${ga}`,difficulty:ga,item_bank_num:fi,tag_discipline_id:vo});fi>0&&ma.current.set(`${vo}_${ga}`,si)})}gn([...ma.current.values()])}},(ki==null?void 0:ki.length)===0?y.createElement(Pt.Z,{ButtonTwo:y.createElement("a",{target:"_blank",href:"/problemset"},"\u524D\u5F80\u9898\u5E93\uFF0C\u65B0\u589E\u66F4\u591A\u8BD5\u9898",">")}):y.createElement(Nt.default,{rowSelection:ue(vn)===st.OnlyKnowledge?{preserveSelectedRowKeys:!0,type:"checkbox",onChange(Vr,Ti){console.log("table-selectedRowKeys:",Vr,Ti),Ha(Vr),gn(Ti)},getCheckboxProps:Vr=>({disabled:Vr.item_bank_num===0}),selectedRowKeys:ro}:void 0,columns:fo,dataSource:ki,loading:qn,scroll:{y:480},rowKey:"id",pagination:!1})))},Er=Object.defineProperty,Rr=Object.defineProperties,Xr=Object.getOwnPropertyDescriptors,oa=Object.getOwnPropertySymbols,ta=Object.prototype.hasOwnProperty,xa=Object.prototype.propertyIsEnumerable,Fa=(vn,gn,Nn)=>gn in vn?Er(vn,gn,{enumerable:!0,configurable:!0,writable:!0,value:Nn}):vn[gn]=Nn,Gr=(vn,gn)=>{for(var Nn in gn||(gn={}))ta.call(gn,Nn)&&Fa(vn,Nn,gn[Nn]);if(oa)for(var Nn of oa(gn))xa.call(gn,Nn)&&Fa(vn,Nn,gn[Nn]);return vn},ya=(vn,gn)=>Rr(vn,Xr(gn)),Xa=(vn,gn,Nn)=>new Promise((Sr,Or)=>{var rr=qn=>{try{kn(Nn.next(qn))}catch(yr){Or(yr)}},ir=qn=>{try{kn(Nn.throw(qn))}catch(yr){Or(yr)}},kn=qn=>qn.done?Sr(qn.value):Promise.resolve(qn.value).then(rr,ir);kn((Nn=Nn.apply(vn,gn)).next())});const Ia={\u7B80\u5355:1,\u9002\u4E2D:2,\u56F0\u96BE:3};var kr=({open:vn,onCancel:gn,setVisibleModalType:Nn,currentItemType:Sr})=>{var Or;const{data:rr,dispatch:ir}=(0,y.useContext)(mt),[kn,qn]=(0,y.useState)([]),[yr,na]=(0,y.useState)(),xi=(Or=rr==null?void 0:rr.item_types)==null?void 0:Or.find(Li=>Li.item_type===Sr);(0,y.useEffect)(()=>{var Li,vo,To;if(vn){const Pi=(Li=rr==null?void 0:rr.item_types)==null?void 0:Li.find(go=>go.item_type===Sr);if((Pi==null?void 0:Pi.random_rule_type)!==st.Shixun){const go=dn[Pi==null?void 0:Pi.random_rule_type]||[];qn(go);const bi=(To=(vo=rr==null?void 0:rr.item_types)==null?void 0:vo.find(ga=>ga.item_type===Sr))==null?void 0:To.contents;switch(console.log("----xxx",ue(go)),ue(go)){case st.OnlyDifficulty:{Ha(bi.map(ga=>ga.difficulty));break}case st.OnlyFileFolder:{Ha({my:bi==null?void 0:bi.filter(ga=>parseInt(ga.teacher_group_id)!=="NaN"&&!ga.teacher_group_id&&ga.teacher_group_id!==0),public:bi==null?void 0:bi.filter(ga=>parseInt(ga.teacher_group_id)>=0)}),na({my:bi==null?void 0:bi.filter(ga=>parseInt(ga.teacher_group_id)!=="NaN"&&!ga.teacher_group_id&&ga.teacher_group_id!==0),public:bi==null?void 0:bi.filter(ga=>parseInt(ga.teacher_group_id)>=0)});break}case st.FileFolderAndKnowledge:{Ha({my:bi==null?void 0:bi.filter(ga=>parseInt(ga.teacher_group_id)!=="NaN"&&!ga.teacher_group_id&&ga.teacher_group_id!==0),public:bi==null?void 0:bi.filter(ga=>parseInt(ga.teacher_group_id)>=0)}),na({my:bi==null?void 0:bi.filter(ga=>parseInt(ga.teacher_group_id)!=="NaN"&&!ga.teacher_group_id&&ga.teacher_group_id!==0),public:bi==null?void 0:bi.filter(ga=>parseInt(ga.teacher_group_id)>=0)});break}case st.FileFolderAndDiff:{Ha(bi),na(bi);break}case st.All:{Ha(bi),na(bi);break}default:Ha(bi)}}}},[vn]);const[ki,fo]=(0,y.useState)([]);(0,y.useEffect)(()=>{vn&&ot({item_type:Sr}).then(Li=>{Li.status===0&&fo(Li.data)})},[vn]),(0,y.useEffect)(()=>{console.log("selectData",yr)},[yr]);const[ro,Ha]=(0,y.useState)(),[ma,Vr]=(0,y.useState)(!0);console.log("isFirst:",ma);const Ti=Li=>{qn(Li),na([]),Ha([]),Vr(!1)};return y.createElement(pn.default,{title:"\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219",width:948,closable:!0,centered:!0,open:vn,onCancel:gn,destroyOnClose:!0,onOk:()=>Xa(void 0,null,function*(){var Li,vo,To,Pi,go,bi,ga;if(yr===void 0){Nn("");return}if(Object.prototype.toString.call(yr)==="[object Object]"&&!((Li=yr.my)!=null&&Li.length)&&!((vo=yr.public)!=null&&vo.length)){ce.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}if(!Object.keys(yr).length&&!(yr!=null&&yr.length)){ce.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}const vi=ue(kn);switch(vi){case st.OnlyFileFolder:{ir({type:"editRule",payload:{itemType:Sr,tableData:[...yr.my||[],...yr.public||[]],randomRuleType:vi}});break}case st.OnlyDifficulty:{const fi=(Pi=(To=rr==null?void 0:rr.item_types)==null?void 0:To.find(Bt=>Bt.item_type===Sr))==null?void 0:Pi.contents;let si=[{},{value:(go=ki.find(Bt=>Bt.name==="\u7B80\u5355"))==null?void 0:go.value},{value:(bi=ki.find(Bt=>Bt.name==="\u9002\u4E2D"))==null?void 0:bi.value},{value:(ga=ki.find(Bt=>Bt.name==="\u56F0\u96BE"))==null?void 0:ga.value}];ir({type:"editRule",payload:{itemType:Sr,tableData:yr.map((Bt,Xt)=>{var an,In,Va,zr;return{difficulty:Bt,id:Xt,quanlity:((In=(an=fi==null?void 0:fi.filter(Jn=>Jn.id===Xt))==null?void 0:an[0])==null?void 0:In.quanlity)||1,item_bank_num:(ki==null?void 0:ki.length)===1?(Va=ki[0])==null?void 0:Va.value:(zr=si==null?void 0:si[Bt])==null?void 0:zr.value}}),randomRuleType:vi}});break}case st.OnlyKnowledge:{ir({type:"editRule",payload:{itemType:Sr,tableData:yr.map(fi=>ya(Gr({},fi),{quanlity:fi.quanlity||1})),randomRuleType:vi}});break}case st.KnowledgeAndDiff:{ir({type:"editRule",payload:{itemType:Sr,tableData:yr.map(fi=>ya(Gr({},fi),{quanlity:fi.quanlity||1})),randomRuleType:vi}});break}case st.FileFolderAndDiff:{ir({type:"editRule",payload:{itemType:Sr,tableData:yr.map(fi=>ya(Gr({},fi),{quanlity:fi.quanlity||1})),randomRuleType:vi}});break}case st.FileFolderAndKnowledge:{ir({type:"editRule",payload:{itemType:Sr,tableData:[...yr.my||[],...yr.public||[]],randomRuleType:vi}});break}case st.All:{ir({type:"editRule",payload:{itemType:Sr,tableData:yr.map(fi=>ya(Gr({},fi),{quanlity:fi.quanlity||1})),randomRuleType:vi}});break}}Nn("")})},y.createElement(It.default.Group,{className:`${Vn.ruleCheckBox}`,style:{marginBottom:8},value:kn,onChange:Li=>{var vo;kn!=null&&kn.length&&((vo=xi==null?void 0:xi.contents)==null?void 0:vo.length)>0?pn.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:()=>Ti(Li)}):Ti(Li)},options:[{label:"\u6307\u5B9A\u6587\u4EF6\u5939\u62BD\u9898",value:Ct.FileFolder},{label:"\u6307\u5B9A\u96BE\u5EA6\u62BD\u9898",value:Ct.Difficulty},{label:"\u6307\u5B9A\u77E5\u8BC6\u70B9\u62BD\u9898",value:Ct.Knowledge}]}),kn.includes(Ct.FileFolder)?y.createElement(ht,{defaultData:ro,selectData:yr,ruleValue:kn,setSelectData:na,currentItemType:Sr}):kn.includes(Ct.Knowledge)?y.createElement(Zr,{defaultData:ro,isFirst:ma,ruleValue:kn,setSelectData:na,currentItemType:Sr}):kn.includes(Ct.Difficulty)?y.createElement("div",{style:{marginTop:12}},y.createElement("span",{className:"mr20",style:{color:"#666"}},"\u96BE\u5EA6"),y.createElement(It.default.Group,{style:{columnGap:12},options:ki.map(Li=>({label:Li.name,value:Ia[Li.name]})),value:yr||ro,onChange:Li=>na(Li)})):null)},Sa=({open:vn,onCancel:gn,setVisibleModalType:Nn,currentItemType:Sr})=>vn?y.createElement(kr,{open:vn,onCancel:gn,setVisibleModalType:Nn,currentItemType:Sr}):null,la=E(79939),Kr=E(25399),Ya=E(63952),_i=E(33270),$i=E(95097),za=E(65862),Di=E(61485),pi=E(90463),Ci=({open:vn,onCancel:gn,onOk:Nn})=>{const{data:Sr}=(0,y.useContext)(mt),Or=(0,Ya.g)(),[rr,ir,kn,qn]=(0,ar.U)(_i.Gm,{page:1,limit:10,keyword:"",diff:"",shixun_publish_status:"",discipline_id:"",sub_discipline_id:"",type:0,include_shixuns:!0,item_type:"SHIXUN"}),[yr,na]=(0,y.useState)(!1);(0,y.useEffect)(()=>{if(vn){kn({page:1,limit:10,type:0},!0).then(ma=>{(ma==null?void 0:ma.shixuns_count)===0&&na(!0)});const Ha=Sr.item_types.find(ma=>ma.item_type==="PRACTICAL");ki(Ha.item_banks.map(ma=>ma.id)),ro(Ha.item_banks)}},[vn,Sr]);const[xi,ki]=(0,y.useState)([]),[fo,ro]=(0,y.useState)([]);return y.createElement(pn.default,{title:"\u9009\u62E9\u5B9E\u8BAD\u9898",open:vn,width:948,centered:!0,closable:!0,onCancel:gn,onOk:()=>Nn(fo),destroyOnClose:!0},y.createElement($e.Z,{justify:"space-between",className:"mb20",style:{maxHeight:650}},y.createElement(kt.Z,null,y.createElement(la.Z,{style:{width:160},size:"large",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:Or,onChange:Ha=>{kn({page:1,discipline_id:Ha==null?void 0:Ha[0],sub_discipline_id:Ha==null?void 0:Ha[1]})}}),y.createElement(Dn.default,{className:"ml20",style:{width:118},size:"large",placeholder:"\u96BE\u5EA6",allowClear:!0,options:[{label:"\u7B80\u5355",value:1},{label:"\u9002\u4E2D",value:2},{label:"\u56F0\u96BE",value:3}],onChange:Ha=>kn({page:1,diff:Ha})}),y.createElement(Dn.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:Ha=>kn({page:1,shixun_publish_status:Ha})})),y.createElement(Je.t7,{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",style:{width:290},onChange:Ha=>{kn({keyword:Ha,page:1})}})),yr?y.createElement("div",null,y.createElement(Pt.Z,{customText:"\u6682\u65E0\u6570\u636E",ButtonText:"\u524D\u5F80\u5B9E\u8DF5\u9879\u76EE\u5E93\uFF0C\u6DFB\u52A0\u66F4\u591A\u8BD5\u9898>",ButtonClick:()=>(0,za.xg)("/shixuns")})):y.createElement(Nt.default,{loading:ir,rowKey:"id",columns:[{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"30%",ellipsis:{showTitle:!0},render:(Ha,ma)=>y.createElement("div",{style:{display:"flex",alignItems:"center"}},y.createElement("div",{className:ma!=null&&ma.high_resources_consume?Gt.title:"",title:Ha||"--"},y.createElement($i.Z,{key:1,showLines:1,showTextOnly:!0,value:Ha||"--"})),(ma==null?void 0:ma.high_resources_consume)&&y.createElement(pi.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u96BE\u5EA6",dataIndex:"level"},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",render:(Ha,ma,Vr)=>y.createElement("span",null,Ha||"- -")},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"study_count"},{title:y.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",y.createElement(Kr.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},y.createElement(Di.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",width:100,render:(Ha,ma,Vr)=>y.createElement("span",null,Ha||"- -")},{title:"\u64CD\u4F5C",render(Ha,ma){const{title:Vr,challenge_names:Ti,author_name:Li,identifier:vo,author_school_name:To,study_count:Pi}=ma||{};return y.createElement("div",null,y.createElement("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:()=>{pn.default.confirm({title:"\u9898\u76EE\u8BE6\u60C5",closable:!0,width:1e3,centered:!0,icon:null,footer:null,content:y.createElement("div",null,y.createElement($i.Z,{value:Vr,style:{marginBottom:18}}),y.createElement("div",{className:Gt.challengeNameWrapper},Ti.map((go,bi)=>y.createElement("div",{className:Gt.challengeName,key:bi},"\u7B2C",(0,za.EM)(bi+1),"\u9898\xA0",go))),y.createElement($e.Z,{className:Gt.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},y.createElement(kt.Z,{className:Gt.shixunInfoWrapper},y.createElement("span",null,"\u521B\u5EFA\u8005"),y.createElement("span",{className:Gt.shixunInfo},Li.split("\u3001")[0]),y.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),y.createElement("span",{className:Gt.shixunInfo},To),y.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),y.createElement("span",{className:Gt.shixunInfo},Pi)),y.createElement(ct.ZP,{type:"primary",className:Gt.btnToDetail,onClick:()=>(0,za.xg)(`/shixuns/${vo}/challenges?exercise=true`)},y.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),(ma==null?void 0:ma.shixun_tag_num)===1&&y.createElement("a",{target:"_blank",href:`/shixuns/${ma==null?void 0:ma.identifier}/challenges`,style:{marginLeft:10}},"\u53BB\u53D1\u5E03"))}}],dataSource:qn==null?void 0:qn.items,rowSelection:{selectedRowKeys:xi,preserveSelectedRowKeys:!0,getCheckboxProps:Ha=>({disabled:Ha.shixun_tag_num===1}),onChange(Ha,ma){var Vr,Ti,Li;console.log(Ha),ki(Ha);const vo=[];for(const Pi of fo)Ha.includes(Pi.id)&&vo.push(Pi);const To=vo.map(Pi=>Pi.id);for(const Pi of ma)Pi&&Ha.includes(Pi.id)&&!To.includes(Pi.id)&&vo.push({id:Pi.id,difficulty:Pi.level,identifier:Pi.identifier,name:Pi.name,real_name:(Vr=Pi==null?void 0:Pi.author_name)==null?void 0:Vr.split("\u3001")[0],school_name:Pi.author_school_name,challenge_names:Pi.challenge_names,challenges:(Ti=Pi.challenge_names)==null?void 0:Ti.map((go,bi)=>({subject:go,id:bi,score:5})),score:((Li=Pi.challenge_names)==null?void 0:Li.length)*5,study_count:Pi.study_count,challenges_count:Pi.challenges_count});ro(vo)}},pagination:{current:rr.page,pageSize:rr.limit,total:qn==null?void 0:qn.items_count,showTotal:Ha=>y.createElement("span",null,"\u5171\xA0",y.createElement("span",{style:{color:"#165DFF"}},Ha),"\xA0\u6761\u6570\u636E"),showQuickJumper:!0,onChange(Ha,ma){kn({page:Ha,limit:ma})},size:"default"},scroll:{y:400}}))},ei=E(22061),Pr=E(59301),Qn=Object.defineProperty,Cr=Object.defineProperties,xr=Object.getOwnPropertyDescriptors,tr=Object.getOwnPropertySymbols,jr=Object.prototype.hasOwnProperty,sa=Object.prototype.propertyIsEnumerable,br=(vn,gn,Nn)=>gn in vn?Qn(vn,gn,{enumerable:!0,configurable:!0,writable:!0,value:Nn}):vn[gn]=Nn,Br=(vn,gn)=>{for(var Nn in gn||(gn={}))jr.call(gn,Nn)&&br(vn,Nn,gn[Nn]);if(tr)for(var Nn of tr(gn))sa.call(gn,Nn)&&br(vn,Nn,gn[Nn]);return vn},$r=(vn,gn)=>Cr(vn,xr(gn)),Ta=({onDelete:vn,list:gn,onSelect:Nn})=>{const[Sr,Or]=(0,y.useState)(!1),{dispatch:rr,disabled:ir}=(0,y.useContext)(mt),kn=(ki,fo,ro)=>{const Ha=Array.from(ki),[ma]=Ha.splice(fo,1);return Ha.splice(ro,0,ma),Ha},[qn,yr]=(0,y.useState)(null),[na,xi]=(0,y.useState)(!1);return Pr.createElement(ei.Z5,{onDragStart:()=>{xi(!0)},onDragEnd:ki=>{if(xi(!1),!ki.destination)return;const fo=kn(gn,ki.source.index,ki.destination.index);rr({type:"updateItemTypes",payload:fo})}},Pr.createElement(ei.bK,{droppableId:"droppable"},(ki,fo)=>Pr.createElement("div",$r(Br({},ki.droppableProps),{ref:ki.innerRef}),Pr.createElement(Ne.Z,{spinning:Sr},gn.map((ro,Ha)=>Pr.createElement(ei._l,{key:Ha,draggableId:Ha.toString(),index:Ha,isDragDisabled:qn!==ro.item_type},(ma,Vr)=>Pr.createElement($e.Z,$r(Br(Br({align:"middle",wrap:!1,ref:ma.innerRef},ma.draggableProps),ma.dragHandleProps),{className:`${Gt.dragItem} ${na?Gt.dragging:""}`}),Pr.createElement(kt.Z,{className:Gt.contentArea,onClick:()=>{Nn(ro.item_type),(0,za.k3)()}},Pr.createElement("span",{className:Gt.blackText},(0,za.EM)(Ha+1),"\u3001\u3010",ro.item_type_text,"\u3011"),Pr.createElement(Kr.Z,{title:`\uFF08${ro.item_bank_count}\u5C0F\u9898\uFF0C\u5171${parseFloat(ro.total_score).toFixed(1)}\u5206\uFF09`},Pr.createElement("span",{className:Gt.greyText},`\uFF08${ro.item_bank_count}\u5C0F\u9898\uFF0C\u5171${parseFloat(ro.total_score).toFixed(1)}\u5206\uFF09`))),!ir&&Pr.createElement(Pr.Fragment,null,Pr.createElement(Kr.Z,{title:"\u957F\u6309\u53EF\u8FDB\u884C\u62D6\u62FD\u6392\u5E8F",open:qn===ro.item_type&&!na},Pr.createElement("div",{style:{cursor:"grab"},className:`${Gt.iconWrapper} ${na?Gt.hidden:""}`,onMouseEnter:()=>{yr(ro.item_type)},onMouseLeave:()=>yr(null)},Pr.createElement("i",{className:`iconfont icon-tuodong1 ${Gt.dragIcon}`}))),Pr.createElement(Kr.Z,{title:"\u5220\u9664"},Pr.createElement("div",{className:`${Gt.iconWrapper} ${na?Gt.hidden:""}`,style:{cursor:"pointer"},onClick:()=>vn(ro.item_type)},Pr.createElement("i",{className:`iconfont icon-shanchu12 ${Gt.deleteIcon}`})))))))),ki.placeholder)))},ja=E(71114),ea={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"},ai=E(73631),yi=E(31328);const zi=(vn,gn,Nn,Sr)=>{const Or={[st.OnlyDifficulty]:[{title:"\u96BE\u5EA6",key:"difficulty",render(rr,ir){const{difficulty:kn}=ir;return y.createElement("span",{style:{color:re[kn].color}},re[kn].label)}}],[st.OnlyKnowledge]:[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",ellipsis:!0},{title:"\u6240\u5C5E\u8BFE\u7A0B",dataIndex:"course_discipline_name",width:180,ellipsis:{showTitle:!0},render(rr,ir){return`${rr}`}}],[st.OnlyFileFolder]:[{title:"\u6587\u4EF6\u5939",render(rr,ir,kn){const{group_name:qn,teacher_group_name:yr}=ir,na=qn||yr,xi=yr?yi:ai;return y.createElement("div",{style:{display:"flex"}},y.createElement("img",{src:xi,className:ea.folderIcon})," ",y.createElement(Kr.Z,{title:na},y.createElement("span",{className:ea.titles},na)))}},{title:"\u7C7B\u578B",render(rr,ir){const{teacher_group_name:kn}=ir;return y.createElement("span",null,kn?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}}],[st.KnowledgeAndDiff]:[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",ellipsis:{showTitle:!0}},{title:"\u6240\u5C5E\u8BFE\u7A0B",width:180,dataIndex:"course_discipline_name",ellipsis:{showTitle:!0}},{title:"\u96BE\u5EA6",key:"difficulty",render(rr,ir){const{difficulty:kn}=ir;return y.createElement("span",{style:{color:re[kn].color}},re[kn].label)}}],[st.FileFolderAndKnowledge]:[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",ellipsis:!0},{title:"\u6587\u4EF6\u5939",render(rr,ir){const{group_name:kn,teacher_group_name:qn}=ir,yr=kn||qn,na=qn?yi:ai;return y.createElement("div",{style:{display:"flex"}},y.createElement("img",{src:na,className:ea.folderIcon})," ",y.createElement(Kr.Z,{title:yr},y.createElement("span",{className:ea.titles},yr)))}},{title:"\u7C7B\u578B",render(rr,ir){const{teacher_group_name:kn}=ir;return y.createElement("span",null,kn?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}}],[st.FileFolderAndDiff]:[{title:"\u6587\u4EF6\u5939",render(rr,ir){const{group_name:kn,teacher_group_name:qn}=ir,yr=kn||qn,na=qn?yi:ai;return y.createElement("div",{style:{display:"flex"}},y.createElement("img",{src:na,className:ea.folderIcon})," ",y.createElement(Kr.Z,{title:yr},y.createElement("span",{className:ea.titles},yr)))}},{title:"\u7C7B\u578B",render(rr,ir){const{teacher_group_name:kn}=ir;return y.createElement("span",null,kn?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}},{title:"\u96BE\u5EA6",key:"difficulty",render(rr,ir){const{difficulty:kn}=ir;return y.createElement("span",{style:{color:re[kn].color}},re[kn].label)}}],[st.All]:[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",ellipsis:!0},{title:"\u6587\u4EF6\u5939",render(rr,ir){const{group_name:kn,teacher_group_name:qn,teacher_group_id:yr}=ir,na=kn||qn,xi=yr||yr===0?yi:ai;return y.createElement("div",{style:{display:"flex"}},y.createElement("img",{src:xi,className:ea.folderIcon})," ",y.createElement(Kr.Z,{title:na},y.createElement("span",{className:ea.titles},na)))}},{title:"\u7C7B\u578B",render(rr,ir){const{teacher_group_id:kn}=ir;return y.createElement("span",null,kn||kn===0?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}},{title:"\u96BE\u5EA6",key:"difficulty",render(rr,ir){const{difficulty:kn}=ir;return y.createElement("span",{style:{color:re[kn].color}},re[kn].label)}}],[st.Shixun]:[]};for(const rr of Object.values(Or))rr.push({title:"\u62BD\u9898\u6570\u91CF",key:"quanlity",render(ir,kn){const{item_bank_num:qn,quanlity:yr,id:na,teacher_group_id:xi}=kn||{};return y.createElement($e.Z,{align:"middle"},y.createElement(Oe.Z,{disabled:Sr,min:1,max:qn,size:"large",precision:0,value:yr,onChange:ki=>{gn({type:"changeQuestionNum",payload:{itemType:Nn,id:na,num:ki,teacher_group_id:xi}})}}),y.createElement("span",{className:"ml10 font14",style:{color:"#333333"}},"/",qn))}},{title:"\u64CD\u4F5C",key:"action",align:"right",render(ir,kn){const{id:qn,is_share:yr}=kn;return Sr?y.createElement("span",{className:"cursorNotAllowed c-grey-999"},"\u5220\u9664"):y.createElement("span",{className:ea.deleteBtn,onClick:()=>{gn({type:"deleteRule",payload:{itemType:Nn,id:qn,is_share:yr}})}},"\u5220\u9664")}});return Or[vn]},Gi=({setVisibleModalType:vn})=>{var gn,Nn,Sr,Or;const{data:rr,dispatch:ir,disabled:kn}=(0,y.useContext)(mt),qn=(gn=rr==null?void 0:rr.item_types)==null?void 0:gn.find(yr=>yr.item_type==="PRACTICAL");return y.createElement(ja.Z,{className:ea.timelineWrapper,items:[{children:y.createElement("div",{style:{transform:"translateY(-4px)"}},y.createElement($e.Z,{className:"mb20",align:"middle",justify:"space-between"},y.createElement(kt.Z,null,y.createElement("span",{className:ea.title},"\u9898\u5E93\u9009\u9898"),y.createElement("span",{className:ea.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")),!kn&&y.createElement(Je.op,{style:{width:102},onClick:()=>vn("selectShixun")},"\u4ECE\u9898\u5E93\u9009\u62E9")),((Nn=qn==null?void 0:qn.item_banks)==null?void 0:Nn.length)===0?y.createElement(Pt.Z,{customText:"\u6682\u65E0\u5F85\u62BD\u8BD5\u9898\uFF0C\u8BF7\u5148\u4ECE\u9898\u5E93\u8FDB\u884C\u9009\u62E9\uFF5E"}):y.createElement(Nt.default,{rowKey:"id",className:"mb10",columns:[{title:"\u5E8F\u53F7",width:60,render(yr,na,xi){return y.createElement("span",null,xi+1)}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"40%",ellipsis:{showTitle:!0},render:(yr,na)=>y.createElement("div",{style:{display:"flex",alignItems:"center"}},y.createElement("div",{className:na!=null&&na.high_resources_consume?ea.q_title:"",title:yr||"--"},y.createElement($i.Z,{key:1,showLines:1,showTextOnly:!0,value:yr})),(na==null?void 0:na.high_resources_consume)&&y.createElement(pi.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:(yr,na,xi)=>y.createElement("span",null,yr||"- -")},{title:"\u96BE\u5EA6",dataIndex:"difficulty"},{title:"\u64CD\u4F5C",align:"right",width:180,render(yr,na,xi){const{id:ki,identifier:fo,name:ro,challenge_names:Ha=[],real_name:ma,school_name:Vr,study_count:Ti,challenges:Li=[]}=na||{};return y.createElement("div",null,y.createElement("span",{style:{color:"#165DFF",cursor:"pointer",marginLeft:20},onClick:()=>{pn.default.confirm({title:"\u9898\u76EE\u8BE6\u60C5",closable:!0,width:1e3,centered:!0,icon:null,footer:null,content:y.createElement("div",null,y.createElement($i.Z,{value:ro,style:{marginBottom:18}}),y.createElement("div",{className:ea.challengeNameWrapper},Li==null?void 0:Li.map((vo,To)=>y.createElement("div",{className:ea.challengeName,key:To},"\u7B2C",(0,za.EM)(To+1),"\u9898\xA0",vo==null?void 0:vo.subject))),y.createElement($e.Z,{className:ea.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},y.createElement(kt.Z,{className:ea.shixunInfoWrapper},y.createElement("span",null,"\u521B\u5EFA\u8005"),y.createElement("span",{className:ea.shixunInfo},ma),y.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),y.createElement("span",{className:ea.shixunInfo},Vr),y.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),y.createElement("span",{className:ea.shixunInfo},Ti)),y.createElement(ct.ZP,{type:"primary",className:ea.btnToDetail,onClick:()=>(0,za.xg)(`/shixuns/${fo}/challenges?exercise=true`)},y.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),!kn&&y.createElement("span",{onClick:()=>{ir({type:"deleteShixunQuestion",payload:{shixunId:ki}})},className:`ml20 ${ea.deleteBtn}`},"\u5220\u9664"))}}],dataSource:(qn==null?void 0:qn.item_banks)||[],pagination:!1}))},{children:y.createElement($e.Z,{style:{transform:(Sr=qn==null?void 0:qn.item_banks)!=null&&Sr.length?"translateY(-8px)":"none"},align:"middle",justify:"space-between"},y.createElement("span",{className:ea.title},"\u5DF2\u9009\u5B9E\u8BAD\u9898\u4E2D\u968F\u673A\u62BD\u9898"),!!((Or=qn==null?void 0:qn.item_banks)!=null&&Or.length)&&y.createElement(kt.Z,null,y.createElement($e.Z,{align:"middle"},y.createElement("span",{className:ea.normalText},"\u62BD\u9898\u6570\u91CF"),y.createElement(Oe.Z,{min:0,disabled:kn,max:qn==null?void 0:qn.item_bank_num,size:"large",className:"ml10 mr10",value:(qn==null?void 0:qn.item_bank_count)||1,onChange:yr=>ir({type:"changeQuestionNum",payload:{num:yr||1,itemType:"PRACTICAL"}})}),y.createElement("span",{className:`${ea.normalText} mr30`},"/",qn==null?void 0:qn.item_bank_num),y.createElement("span",{className:ea.normalText},"\u6BCF\u9898\u5206\u503C"),y.createElement(Oe.Z,{disabled:kn,min:0,max:100,size:"large",precision:1,className:"ml10 mr10",value:qn==null?void 0:qn.score,onChange:yr=>ir({type:"changeQuestionScore",payload:{score:yr,itemType:"PRACTICAL"}})}),y.createElement("span",{className:ea.normalText},"\u5206"))))}]})};var Yi=({setVisibleModalType:vn,currentItemType:gn,onDelete:Nn})=>{var Sr,Or;const rr=(0,ge.useParams)(),{data:ir,dispatch:kn,disabled:qn}=(0,y.useContext)(mt),yr=((Sr=ir==null?void 0:ir.item_types)==null?void 0:Sr.findIndex(xi=>xi.item_type===gn))+1,na=(Or=ir==null?void 0:ir.item_types)==null?void 0:Or.find(xi=>xi.item_type===gn);return y.createElement("div",{className:ea.questionDetailWrapper},y.createElement($e.Z,{justify:"space-between",align:"middle",className:"mb30"},y.createElement(kt.Z,null,y.createElement("span",{className:ea.questionTitle},`${(0,za.EM)(yr)}\u3001${na==null?void 0:na.item_type_text}`),y.createElement("span",{className:ea.questionScoreInfo},"\uFF08",y.createElement("span",{style:{color:"#3061D0"}},na==null?void 0:na.item_bank_count),"\u5C0F\u9898 ",y.createElement("span",null,"\uFF0C\u5171",y.createElement("span",{style:{color:"#3061D0"}},na==null?void 0:na.total_score),"\u5206"),"\uFF09")),!qn&&y.createElement("i",{className:`iconfont icon-shanchutimu ${ea.deleteIcon}`,onClick:()=>Nn(gn)})),gn==="PRACTICAL"?y.createElement(Gi,{setVisibleModalType:vn}):y.createElement(y.Fragment,null,(na==null?void 0:na.contents.length)===0?y.createElement(Pt.Z,{styles:{margin:"70px auto 100px auto"},customText:y.createElement("span",null,"\u6682\u65E0\u62BD\u9898\u89C4\u5219\uFF0C\u652F\u6301",y.createElement("span",{style:{color:"#EA9741"}},"\u6307\u5B9A\u6587\u4EF6\u5939\u3001\u96BE\u5EA6\u3001\u77E5\u8BC6\u70B9"),"\u8FDB\u884C\u62BD\u9898\uFF5E"),ButtonTwo:(rr==null?void 0:rr.id)&&y.createElement($e.Z,{justify:"center",className:"mt30"},y.createElement(Je.op,{style:{width:136,marginTop:-10},onClick:()=>vn("rule")},"\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219"))}):y.createElement(y.Fragment,null,y.createElement($e.Z,{justify:"space-between",align:"middle",className:"mb20"},y.createElement(kt.Z,null,y.createElement($e.Z,{align:"middle"},y.createElement("span",{className:`${ea.normalText}`},"\u6BCF\u9898\u5206\u503C"),y.createElement(Oe.Z,{disabled:qn,size:"large",className:"ml10 mr10",min:.1,max:100,value:na==null?void 0:na.score,precision:1,onChange:xi=>kn({type:"changeQuestionScore",payload:{score:xi,itemType:gn}})}),y.createElement("span",{className:ea.normalText},"\u5206"))),(rr==null?void 0:rr.id)&&y.createElement(Je.op,{onClick:()=>vn("rule")},"\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219")),y.createElement(Nt.default,{columns:zi(na==null?void 0:na.random_rule_type,kn,gn,qn),dataSource:na==null?void 0:na.contents,pagination:!1,rowKey:"id"}))))},co=E(96935),No=E(87513),jo=E(41867),Wo=E(32637),Da=E(59301),Fi=Object.defineProperty,ri=Object.defineProperties,So=Object.getOwnPropertyDescriptors,di=Object.getOwnPropertySymbols,il=Object.prototype.hasOwnProperty,jl=Object.prototype.propertyIsEnumerable,Pl=(vn,gn,Nn)=>gn in vn?Fi(vn,gn,{enumerable:!0,configurable:!0,writable:!0,value:Nn}):vn[gn]=Nn,Vo=(vn,gn)=>{for(var Nn in gn||(gn={}))il.call(gn,Nn)&&Pl(vn,Nn,gn[Nn]);if(di)for(var Nn of di(gn))jl.call(gn,Nn)&&Pl(vn,Nn,gn[Nn]);return vn},Yo=(vn,gn)=>ri(vn,So(gn)),no=(vn,gn,Nn)=>new Promise((Sr,Or)=>{var rr=qn=>{try{kn(Nn.next(qn))}catch(yr){Or(yr)}},ir=qn=>{try{kn(Nn.throw(qn))}catch(yr){Or(yr)}},kn=qn=>qn.done?Sr(qn.value):Promise.resolve(qn.value).then(rr,ir);kn((Nn=Nn.apply(vn,gn)).next())}),Gl=({})=>{var vn,gn,Nn,Sr,Or,rr,ir,kn,qn,yr,na,xi,ki,fo,ro;const[Ha]=(0,ge.useSearchParams)(),ma=(0,ge.useParams)(),{data:Vr,dispatch:Ti,setPreview:Li,getData:vo,handlePreview:To,disabled:Pi}=(0,y.useContext)(mt),[go,bi]=(0,y.useState)(""),[ga,vi]=(0,y.useState)((gn=(vn=Vr==null?void 0:Vr.item_types)==null?void 0:vn[0])==null?void 0:gn.item_type),[fi,si]=(0,y.useState)(!0),[Bt,Xt]=(0,y.useState)(!1),an=(Jn,hr)=>no(void 0,null,function*(){var Ar,aa,Wr,or,ha,fa,Nr;const Aa=Vr.item_types.map(ui=>ui.item_type_text),$a=(Ar=Vr==null?void 0:Vr.item_types)==null?void 0:Ar.filter(ui=>{var ba,ca;return((ba=ui.contents)==null?void 0:ba.length)>0||((ca=ui==null?void 0:ui.item_banks)==null?void 0:ca.length)>0});if(Vr.sort_by_item_type=Aa,!((aa=Vr.item_types)!=null&&aa.length)){ce.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}if(($a==null?void 0:$a.length)===0){ce.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}if(!Jn){const ui=Number((Wr=Vr==null?void 0:Vr.examination_bank)==null?void 0:Wr.total_score);[100,120,150].includes(ui)||(yield new Promise((ba,ca)=>{pn.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Da.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",Da.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},ui),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>no(void 0,null,function*(){ba("")}),onCancel:()=>{ca()}})}))}let ua=()=>no(void 0,null,function*(){const ui=(0,Ce.cloneDeep)(Vr),{item_types:ba}=ui||{};ui.item_types=ba.filter(ra=>ra.item_type===ga),(yield He(ma.id||ma.categoryId,ui)).status===0&&(vi(hr),ce.ZP.success("\u4FDD\u5B58\u6210\u529F"),Jn||ge.history.push("/paperlibrary"))}),fr=(ha=(or=Vr==null?void 0:Vr.item_types)==null?void 0:or.filter(ui=>ui.item_type_text==="\u5B9E\u8BAD\u9898")[0])==null?void 0:ha.item_banks,Yr=0;fr==null||fr.map(ui=>{ui.high_resources_consume&&(Yr=Yr+1)}),console.log(Yr),Yr>0?pn.default.info({centered:!0,icon:null,width:600,okText:"\u6211\u77E5\u9053\u4E86",title:"\u63D0\u793A",content:Da.createElement("div",null,Da.createElement("div",{className:Gt.tipcontent},Da.createElement("div",null,Da.createElement("div",{className:Gt.name},"\u60A8\u597D\uFF01",(fa=(0,jo.eY)())==null?void 0:fa.username,"\uFF08",(Nr=(0,jo.eY)())==null?void 0:Nr.login,"\uFF09\uFF1A"),Da.createElement("div",{className:Gt.tip},"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",Da.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"),Da.createElement("div",{className:Gt.info},Da.createElement("i",{className:"iconfont icon-xunifangzhenti1 mr10 font26"}),Da.createElement("span",{className:"mr10",style:{color:"#6A7283"}},"\u9AD8\u6D88\u8017\u5B9E\u9A8C"),Da.createElement("span",{style:{color:"#232B40"}},`${Yr}\u4E2A`))),Da.createElement("div",null,Da.createElement("div",{className:Gt.img},Da.createElement("img",{src:Wo,width:"124px",height:"124px"})),Da.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")))),onOk:()=>{ua()}}):ua()}),In=(Jn,hr,Ar,aa=!1)=>no(void 0,null,function*(){console.log(Vr);const Wr=Yo(Vo(Vo({},Vr.exercise),ma),{exerciseId:ma.categoryId,sort_by_item_type:Vr.sort_by_item_type,difficulty:Vr.examination_bank.difficulty,exam_notes:Vr.examination_bank.exam_notes,exercise_name:Vr.examination_bank.name,time:Vr.examination_bank.time,changed_item_type:ga,item_types:Vr.item_types,sub_discipline_id:Vr.examination_bank.sub_discipline_id});(!Jn||hr===1)&&(Wr.is_reset=1);const or=yield(0,No.wy)(Wr);return or.status===0&&(aa||ce.ZP.success("\u4FEE\u6539\u6210\u529F "),vi(Ar),Jn||ge.history.push(`/classrooms/${ma.coursesId}/exercise/${ma.categoryId}/detail?random=true`)),or}),Va=Jn=>{pn.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,closable:!0,content:Da.createElement("div",null,"\u786E\u8BA4\u5220\u9664\u8BE5\u9898\u578B\uFF1F"),onOk:()=>no(void 0,null,function*(){var hr,Ar,aa,Wr;if(ma.id){if((yield We(ma.id,{item_type:[Jn]})).status!==0)return}else{const or=yield Ae(ma.categoryId,{item_type:[Jn]});if(vo(),or.status!==0)return}if(Ti({type:"deleteQuestionType",payload:Jn}),Jn===ga){const or=pe(Vr,{type:"deleteQuestionType",payload:Jn});vi(or.item_types.length?or.item_types[0].item_type:(Ar=(hr=Vr==null?void 0:Vr.item_types)==null?void 0:hr[0])==null?void 0:Ar.item_type)}else vi((Wr=(aa=Vr==null?void 0:Vr.item_types)==null?void 0:aa[0])==null?void 0:Wr.item_type)})})};(0,y.useEffect)(()=>{var Jn;(Jn=Vr==null?void 0:Vr.examination_bank)!=null&&Jn.name&&si(!1),(0,za.Dk)("\u968F\u673A\u7EC4\u5377")},[(Nn=Vr==null?void 0:Vr.examination_bank)==null?void 0:Nn.name]);const zr=()=>no(void 0,null,function*(){var Jn;let hr=yield In(!0,1,ga,!0);if((hr==null?void 0:hr.status)===0){const Ar=yield(0,Ke.ZP)(`/api/exercises/${ma==null?void 0:ma.categoryId}/simulate_start_answer.json`,{method:"get",params:{coursesId:ma==null?void 0:ma.coursesId,categoryId:ma==null?void 0:ma.categoryId}});(Ar==null?void 0:Ar.status)!=-1&&window.open(`/classrooms/${ma.coursesId}/exercise/${ma.categoryId}/${(Jn=(0,jo.eY)())==null?void 0:Jn.login}/initate_answer`)}});return Da.createElement("div",{className:Gt.questionInfo},Da.createElement("div",{className:"tc mb20"},Da.createElement(Se.VP,{defaultValue:(Sr=Vr==null?void 0:Vr.examination_bank)==null?void 0:Sr.name,onFinish:Jn=>no(void 0,null,function*(){return Ti({type:"updateBaseInfo",payload:Yo(Vo({},Vr.examination_bank),{name:Jn})}),ma!=null&&ma.id?(0,No.se)({name:Jn,exerciseId:(ma==null?void 0:ma.categoryId)||(ma==null?void 0:ma.id)}):(0,No.wy)({exercise_name:Jn,exerciseId:(ma==null?void 0:ma.categoryId)||(ma==null?void 0:ma.id)}),!0})})),Da.createElement($e.Z,{justify:"center",className:"mb20"},Da.createElement(kt.Z,{className:"mr30"},Da.createElement("span",{className:Gt.label},"\u7B54\u9898\u65F6\u957F"),Da.createElement("span",null,((Or=Vr==null?void 0:Vr.examination_bank)==null?void 0:Or.time)===-1?"\u4E0D\u9650":((rr=Vr==null?void 0:Vr.examination_bank)==null?void 0:rr.time)||"\u4E0D\u9650")),Da.createElement(kt.Z,{className:"mr30"},Da.createElement("span",{className:Gt.label},"\u96BE\u5EA6"),Da.createElement("span",null,(kn=re[`${(ir=Vr==null?void 0:Vr.examination_bank)==null?void 0:ir.difficulty}`])==null?void 0:kn.label)),Da.createElement(kt.Z,{className:"mr30"},Da.createElement("span",{className:Gt.label},"\u8BD5\u9898\u603B\u6570"),Da.createElement("span",null,((qn=Vr==null?void 0:Vr.examination_bank)==null?void 0:qn.question_count)||0)),Da.createElement(kt.Z,null,Da.createElement("span",{className:Gt.label},"\u603B\u5206"),Da.createElement("span",null,((na=(yr=Vr==null?void 0:Vr.examination_bank)==null?void 0:yr.total_score)==null?void 0:na.toFixed(1))||0))),Da.createElement("div",{className:Gt.content,style:{border:((xi=Vr==null?void 0:Vr.item_types)==null?void 0:xi.length)<=0&&"none"}},((ki=Vr==null?void 0:Vr.item_types)==null?void 0:ki.length)>0?Da.createElement($e.Z,{wrap:!1},Da.createElement(kt.Z,{flex:"260px",className:Gt.leftPart},!Pi&&Da.createElement($e.Z,{className:"mb20"},Da.createElement(Je.op,{style:{margin:"0 15px",borderRadius:2},onClick:()=>bi("setScore")},"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C"),(ma==null?void 0:ma.id)&&Da.createElement(Je.op,{shape:"default",onClick:()=>bi("questionType")},"\u6DFB\u52A0\u9898\u578B")),Da.createElement(Ta,{list:Vr.item_types,onSelect:Jn=>no(void 0,null,function*(){if(Jn===ga)return;si(!0);const hr=Vr.item_types.find(Ar=>Ar.item_type===ga);if(ga!=="PRACTICAL"&&hr.contents.length>0&&(ma!=null&&ma.id)){const Ar=(0,Ce.cloneDeep)(Vr),{item_types:aa}=Ar||{};Ar.item_types=aa.filter(Wr=>Wr.item_type===ga);try{(yield He(ma.id||ma.categoryId,Ar)).status===0&&vi(Jn)}catch(Wr){}}else ma.categoryId?In(!0,2,Jn):an(!0,Jn);si(!1)}),onDelete:Va})),Da.createElement(kt.Z,{flex:1,className:Gt.rightPart},Da.createElement(Ne.Z,{spinning:fi},Da.createElement(Yi,{setVisibleModalType:bi,currentItemType:ga,onDelete:Va})))):Da.createElement(Pt.Z,{customText:"\u8BF7\u5148\u8BBE\u7F6E\u8BD5\u5377\u9898\u578B",styles:{margin:"70px auto"},ButtonTwo:Da.createElement($e.Z,{justify:"center",className:"mt20"},(ma==null?void 0:ma.id)&&Da.createElement(Je.op,{style:{width:88},onClick:()=>bi("questionType")},"\u6DFB\u52A0\u9898\u578B"))})),!!(ma!=null&&ma.id)&&Da.createElement("div",{className:Gt.fixedBottom},Da.createElement(co.Z,{className:`${Gt.previewBtn} mr20`,onClick:()=>no(void 0,null,function*(){var Jn,hr;const Ar=(Jn=Vr==null?void 0:Vr.item_types)==null?void 0:Jn.filter(aa=>{var Wr,or;return((Wr=aa.contents)==null?void 0:Wr.length)>0||((or=aa==null?void 0:aa.item_banks)==null?void 0:or.length)>0});if(!((hr=Vr.item_types)!=null&&hr.length)){ce.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}if((Ar==null?void 0:Ar.length)===0){ce.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}yield an(!0,ga),To()})},"\u8BD5\u5377\u9884\u89C8"),Da.createElement(co.Z,{type:"primary",className:Gt.confirmBtn,onClick:()=>an()},Da.createElement("i",{className:"iconfont icon-baocun1 mr5"}),"\u4FDD\u5B58\u8BD5\u5377")),!!(ma!=null&&ma.categoryId)&&Da.createElement("div",{className:Gt.fixedBottom,style:{justifyContent:((fo=Vr==null?void 0:Vr.exercise)==null?void 0:fo.exercise_status)!==1?"end":"center"}},Da.createElement(co.Z,{className:`${Gt.previewBtn} mr20`,onClick:()=>no(void 0,null,function*(){var Jn,hr;document.body.scrollIntoView(),ge.history.push(`/classrooms/${ma.coursesId}/exercise/${(Jn=Vr==null?void 0:Vr.exercise)==null?void 0:Jn.id}/detail?random=${(hr=Vr==null?void 0:Vr.exercise)==null?void 0:hr.is_random}`)})},"\u8FD4\u56DE"),((ro=Vr==null?void 0:Vr.exercise)==null?void 0:ro.exercise_status)===1&&Da.createElement(co.Z,{className:`${Gt.previewBtn} mr20`,onClick:zr},"\u6A21\u62DF\u8003\u8BD5"),(Vr==null?void 0:Vr.exercise.exercise_status)===1&&Da.createElement(co.Z,{type:"primary",className:Gt.confirmBtn,onClick:()=>no(void 0,null,function*(){var Jn;const hr=Number((Jn=Vr==null?void 0:Vr.examination_bank)==null?void 0:Jn.total_score);[100,120,150].includes(hr)||(yield new Promise((Ar,aa)=>{pn.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Da.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",Da.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},hr),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>no(void 0,null,function*(){Ar("")}),onCancel:()=>{aa()}})})),In()})},"\u63D0\u4EA4")),Da.createElement(nt,{open:go==="questionType",onCancel:()=>bi(""),onOk:Jn=>no(void 0,null,function*(){var hr,Ar;const aa=[],Wr=pe(Vr,{type:"setQuestionType",payload:Jn}),or=((hr=Wr==null?void 0:Wr.item_types)==null?void 0:hr.map(ha=>ha.item_type))||[];for(const ha of((Ar=Vr==null?void 0:Vr.item_types)==null?void 0:Ar.map(fa=>fa.item_type))||[])or.includes(ha)||aa.push(ha);ma.id&&aa.length>0&&(yield We(ma.id,{item_type:aa})).status!==0||(Ti({type:"setQuestionType",payload:Jn}),vi(ga||Wr.item_types[0].item_type),bi(""))})}),Da.createElement(Hn,{open:go==="setScore",onCancel:()=>{bi("")},onOk:Jn=>no(void 0,null,function*(){console.log("---newData",Jn);const hr=Jn.item_types.map(Ar=>({item_type:Ar.item_type,score:Ar.score}));ma.id?(yield Ue(ma.id,{score_settings:hr})).status===0&&Ti({type:"init",payload:Jn}):(yield Ee(ma.categoryId,{score_settings:hr})).status===0&&Ti({type:"init",payload:Jn}),bi("")})}),Da.createElement(Sa,{open:go==="rule",onCancel:()=>bi(""),currentItemType:ga,setVisibleModalType:bi}),Ha.get("type")==="settings"&&Da.createElement(Ci,{open:go==="selectShixun",onCancel:()=>bi(""),onOk:Jn=>{if(console.log(Jn),(Jn==null?void 0:Jn.length)<=0){ce.ZP.info("\u5B9E\u8BAD\u6570\u4E0D\u80FD\u4E3A0");return}Ti({type:"addShixun",payload:{shixunList:[...Jn]}}),bi("")}}))},Nl=E(26971),Fo=E(59301),es=Object.defineProperty,as=Object.defineProperties,Ni=Object.getOwnPropertyDescriptors,Qi=Object.getOwnPropertySymbols,Ii=Object.prototype.hasOwnProperty,hi=Object.prototype.propertyIsEnumerable,Hi=(vn,gn,Nn)=>gn in vn?es(vn,gn,{enumerable:!0,configurable:!0,writable:!0,value:Nn}):vn[gn]=Nn,uo=(vn,gn)=>{for(var Nn in gn||(gn={}))Ii.call(gn,Nn)&&Hi(vn,Nn,gn[Nn]);if(Qi)for(var Nn of Qi(gn))hi.call(gn,Nn)&&Hi(vn,Nn,gn[Nn]);return vn},Fl=(vn,gn)=>as(vn,Ni(gn)),oo=(vn,gn,Nn)=>new Promise((Sr,Or)=>{var rr=qn=>{try{kn(Nn.next(qn))}catch(yr){Or(yr)}},ir=qn=>{try{kn(Nn.throw(qn))}catch(yr){Or(yr)}},kn=qn=>qn.done?Sr(qn.value):Promise.resolve(qn.value).then(rr,ir);kn((Nn=Nn.apply(vn,gn)).next())}),Jo=()=>{var vn,gn,Nn,Sr;const[Or,rr]=(0,y.useState)("baseInfo"),ir=(0,ge.useDispatch)();(0,y.useEffect)(()=>{ir({type:"globalSetting/footerToggle",payload:!1})},[]);const kn=(0,ge.useParams)(),qn=!!(kn.id||kn.categoryId),[yr]=(0,ge.useSearchParams)();(0,y.useEffect)(()=>{yr.get("type")==="settings"&&rr("settings")},[]);const[na,xi]=(0,y.useReducer)(pe,null),[ki,fo]=(0,y.useState)(!1),ro=()=>oo(void 0,null,function*(){fo(!0);let ga;kn.categoryId?ga=yield Ge(kn):ga=yield Fe(kn.id),fo(!1),ga.status===0&&xi({type:"init",payload:ga})});(0,y.useEffect)(()=>{qn?ro():xi({type:"init",payload:{examination_bank:{difficulty:2}}})},[kn]);const[Ha,ma]=(0,y.useState)(""),Vr=(ga,vi)=>oo(void 0,null,function*(){var fi,si,Bt,Xt;const an=(fi=na==null?void 0:na.item_types)==null?void 0:fi.filter(zr=>{var Jn;return((Jn=zr==null?void 0:zr.item_type)==null?void 0:Jn.toUpperCase())===(vi==null?void 0:vi.type)}),In={sort_by_item_type:na.sort_by_item_type,difficulty:na.examination_bank.difficulty,exam_notes:na.examination_bank.exam_notes,name:na.examination_bank.name,time:na.examination_bank.time,item_types:na.item_types};if(ga!==void 0&&!(ga!=null&&ga.single_question_id)){In.seleted_item_bank_ids=ga==null?void 0:ga.seleted_item_bank_ids,In.item_types=an;const zr=yield wt(In);if((zr==null?void 0:zr.status)===0){let Jn=(0,Ce.cloneDeep)(Pi.data);Jn.questionList=(si=Jn==null?void 0:Jn.questionList)==null?void 0:si.map(hr=>{var Ar;return hr.type===vi.type?Fl(uo({},hr),{questions:((Ar=zr==null?void 0:zr.questions)==null?void 0:Ar.questions)||[]}):hr}),go({show:!0,data:Jn})}return}if(ga!==void 0&&(ga!=null&&ga.single_question_id)){In.seleted_item_bank_ids=ga==null?void 0:ga.seleted_item_bank_ids,In.single_question_id=ga==null?void 0:ga.single_question_id,In.item_types=an;const zr=yield wt(In);if((zr==null?void 0:zr.status)===0){let Jn=(0,Ce.cloneDeep)(Pi.data);Jn.questionList=(Bt=Jn==null?void 0:Jn.questionList)==null?void 0:Bt.map(hr=>{var Ar,aa;if(hr.type===vi.type){const Wr=(0,Ce.cloneDeep)(hr==null?void 0:hr.questions);return Wr.splice(vi.index,1,(aa=(Ar=zr==null?void 0:zr.questions)==null?void 0:Ar.questions)==null?void 0:aa[0]),console.log(hr==null?void 0:hr.questions,Wr,vi.index,"new_questions"),Fl(uo({},hr),{questions:Wr})}return hr}),go({show:!0,data:Jn})}return}const Va=yield de(In);if((Va==null?void 0:Va.status)===0){const zr=(0,za.ad)(Va);let Jn=[];(Xt=na==null?void 0:na.item_types)==null||Xt.forEach(hr=>{var Ar;const aa=(Ar=zr==null?void 0:zr.questionList)==null?void 0:Ar.find(Wr=>hr.item_type===Wr.type);Jn.push(aa)}),console.log(na,"sortList"),Jn=(0,Ce.compact)(Jn),zr.questionList=Jn,go({show:!0,data:zr}),ma(new Date)}}),Ti=ga=>{var vi;let fi=(0,Ce.cloneDeep)(Pi.data);fi.questionList=(vi=fi==null?void 0:fi.questionList)==null?void 0:vi.map(si=>si.type===ga.type?Fl(uo({},si),{questions_score:ga.scoreTotal}):si),xi({type:"changeQuestionScore",payload:{score:ga.score,itemType:ga.type}}),go({show:!0,data:fi})},Li=ga=>oo(void 0,null,function*(){const vi={sort_by_item_type:na.sort_by_item_type,difficulty:na.examination_bank.difficulty,exam_notes:na.examination_bank.exam_notes,name:na.examination_bank.name,time:na.examination_bank.time,item_types:na.item_types,sub_discipline_id:na.examination_bank.sub_discipline_id};if(ga){(yield Qe(uo(uo({},vi),ga))).status===0&&ce.ZP.success("\u4FDD\u5B58\u6210\u529F");return}(yield He(kn.id,vi)).status===0&&(ce.ZP.success("\u63D0\u4EA4\u6210\u529F"),ge.history.push("/paperlibrary?defaultActiveKey=0"))}),vo=(0,Ya.g)(),[To]=Le.default.useForm(),[Pi,go]=(0,y.useState)({show:!1,data:{}}),bi=!!((vn=na==null?void 0:na.exercise)!=null&&vn.exercise_status)&&((gn=na==null?void 0:na.exercise)==null?void 0:gn.exercise_status)!==1;return Fo.createElement(mt.Provider,{value:{data:na,disabled:bi,dispatch:xi,setPreview:go,getData:ro,handlePreview:Vr}},Pi.show?Fo.createElement(Nl.Z,{key:Ha,data:Pi.data,onExchange:Vr,onTypeScore:Ti,submit:Li,goBack:()=>go({show:!1,data:{}})}):Fo.createElement("div",{className:ve.wrapper},Fo.createElement("div",{className:"edu-container"},Fo.createElement(xe.Z,{className:ve.breadCrumbWrapper,separator:">",items:kn!=null&&kn.categoryId?[{title:Fo.createElement(ge.Link,{to:`/classrooms/${kn.coursesId}/exercise`},(Sr=(Nn=(0,jo.eY)())==null?void 0:Nn.course)==null?void 0:Sr.course_name)},{title:Fo.createElement(ge.Link,{to:`/classrooms/${kn.coursesId}/exercise`},"\u8BD5\u5377\u5217\u8868")},{title:"\u7F16\u8F91\u8BD5\u5377"}]:[{title:Fo.createElement(ge.Link,{to:"/paperlibrary"},"\u8BD5\u5377\u5E93")},{title:"\u968F\u673A\u7EC4\u5377"}]}),Fo.createElement(Se.d4,{activeKey:Or,tabs:[{key:"baseInfo",label:"\u8BD5\u5377\u57FA\u7840\u4FE1\u606F"},{key:"settings",label:"\u7EC4\u5377\u914D\u7F6E"}],onChange:ga=>oo(void 0,null,function*(){if(ga==="settings"&&(yield To.validateFields(),!qn)){const vi=yield Xe(na);vi.status===0&&ge.history.replace(`/randompaper/edit/${vi==null?void 0:vi.examination_bank_id}?type=settings`)}rr(ga)})}),Or==="baseInfo"&&Fo.createElement(wn,{courseOptions:vo,setCurrentKey:rr,loading:ki,form:To}),Fo.createElement("div",{style:{display:Or==="settings"?"block":"none"}},na&&Fo.createElement(Gl,null)))))}},24100:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return fe}});var y=E(62957),ve={ul:"ul___TdfYY"},ce=E(32637),Le=E(59301),xe=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Ne=($e,Oe)=>{var ct={};for(var Ke in $e)ge.call($e,Ke)&&Oe.indexOf(Ke)<0&&(ct[Ke]=$e[Ke]);if($e!=null&&xe)for(var Ke of xe($e))Oe.indexOf(Ke)<0&&Se.call($e,Ke)&&(ct[Ke]=$e[Ke]);return ct},fe=$e=>{var Oe=$e,{open:ct,onCancel:Ke}=Oe,Te=Ne(Oe,["open","onCancel"]);return Le.createElement(y.default,{centered:!0,open:ct,title:Le.createElement("div",{style:{fontWeight:"bold"}},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"),width:"696px",onCancel:Ke,footer:null},Le.createElement("div",null,Le.createElement("div",{className:"tc"},Le.createElement("img",{className:"mt10",src:ce,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})),Le.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),Le.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),Le.createElement("div",{style:{color:"#333"},className:"pt30 font14"},Le.createElement("ul",{className:ve.ul},Le.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"),Le.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"),Le.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")))))}},63952:function(Mn,Yt,E){"use strict";E.d(Yt,{g:function(){return xe}});var y=E(59301),ve=E(29297),ce=E(3033),Le=(ge,Se,Ne)=>new Promise((Be,fe)=>{var $e=Ke=>{try{ct(Ne.next(Ke))}catch(Te){fe(Te)}},Oe=Ke=>{try{ct(Ne.throw(Ke))}catch(Te){fe(Te)}},ct=Ke=>Ke.done?Be(Ke.value):Promise.resolve(Ke.value).then($e,Oe);ct((Ne=Ne.apply(ge,Se)).next())});const xe=()=>{const[ge,Se]=(0,y.useState)([]);return(0,y.useEffect)(()=>{Le(void 0,null,function*(){const Be=yield(0,ve.d1)({source:"question"});Be!=null&&Be.disciplines&&Se((0,ce.L)(Be==null?void 0:Be.disciplines))})},[]),ge}},61527:function(Mn,Yt,E){"use strict";E.d(Yt,{U:function(){return Be}});var y=E(59301),ve=Object.defineProperty,ce=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,ge=(fe,$e,Oe)=>$e in fe?ve(fe,$e,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):fe[$e]=Oe,Se=(fe,$e)=>{for(var Oe in $e||($e={}))Le.call($e,Oe)&&ge(fe,Oe,$e[Oe]);if(ce)for(var Oe of ce($e))xe.call($e,Oe)&&ge(fe,Oe,$e[Oe]);return fe},Ne=(fe,$e,Oe)=>new Promise((ct,Ke)=>{var Te=Pe=>{try{Ie(Oe.next(Pe))}catch(tt){Ke(tt)}},we=Pe=>{try{Ie(Oe.throw(Pe))}catch(tt){Ke(tt)}},Ie=Pe=>Pe.done?ct(Pe.value):Promise.resolve(Pe.value).then(Te,we);Ie((Oe=Oe.apply(fe,$e)).next())});function Be(fe,$e){const[Oe,ct]=(0,y.useState)($e),[Ke,Te]=(0,y.useState)(!1),[we,Ie]=(0,y.useState)();return[Oe,Ke,(tt,Et=!1)=>Ne(this,null,function*(){const _e=Et?$e:Se(Se({},Oe),tt);Te(!0),ct(_e);const Fe=yield fe(_e);return Te(!1),Ie(Fe),Fe}),we,Ie]}},49142:function(Mn,Yt,E){"use strict";E.d(Yt,{AL:function(){return _e},Iy:function(){return $e},Qv:function(){return Ke},ez:function(){return Et},jb:function(){return Oe}});var y=E(32834),ve=E.n(y),ce=E(11690),Le=E.n(ce);let xe=1;function ge(gt,ot){const Ue=gt.match(/^(\s+)(?:```)/);if(Ue===null)return ot;const Ee=Ue[1];return ot.split(`
|
|
|
`).map(We=>{const Ae=We.match(/^\s+/);if(Ae===null)return We;const[de]=Ae;return de.length>=Ee.length?We.slice(Ee.length):We}).join(`
|
|
|
`)}let Se=[],Ne=["<ul>"];const Be=new(ve()).Renderer,fe=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function $e(){Se.length=0,Ne=["<ul>"]}const Oe={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function ct(gt,ot,Ue,Ee){if(ot>=gt.length||gt[ot].level<=Ue)return ot;var We=gt[ot];Ee.push("<li><a href='#"+xe+We.anchor+"'>"+We.text+"</a>"),ot++;var Ae=[];return ot=ct(gt,ot,We.level,Ae),Ae.length>0&&(Ee.push("<ul>"),Ae.forEach(function(de){Ee.push(de)}),Ee.push("</ul>")),Ee.push("</li>"),ot=ct(gt,ot,Ue,Ee),ot}function Ke(){return ct(Se,0,0,Ne),Ne.push("</ul>"),Ne.join("")}const Te={heading(gt){const ot=fe.exec(gt);if(xe+=1,ot)return{type:"heading",raw:ot[0],depth:ot[1].length,text:ot[2]}},fences(gt){const ot=this.rules.block.fences.exec(gt);if(ot){const Ue=ot[0];let Ee=ge(Ue,ot[3]||"");const We=ot[2]?ot[2].trim():ot[2];if(["latex","katex","math"].indexOf(We)>=0){const Ae=Pe(),de=Ee;Ee=Ae,tt[Ae]={type:"block",expression:de}}return{type:"code",raw:Ue,lang:We,text:Ee}}}},we=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Ie=0;const Pe=()=>`__special_katext_id_${Ie++}__`;let tt={};function Et(){return tt}function _e(){Ie=0,tt={}}function Fe(gt){return gt=gt.replace(we,(ot,Ue)=>{const Ee=Pe();return tt[Ee]={type:"inline",expression:Ue},Ee}),gt}const He=Be.listitem;Be.listitem=function(gt){return He(Fe(gt))};const Xe=Be.paragraph;Be.paragraph=function(gt){return Xe(Fe(gt))};const St=Be.tablecell;Be.tablecell=function(gt,ot){return St(Fe(gt),ot)},Be.code=function(gt,ot,Ue){const Ee=(ot||"").match(/\S*/)[0];return Ee?["latex","katex","math"].indexOf(Ee)>=0?`<p class='editormd-tex'>${gt}</p>`:`<pre class="prettyprint linenums"><code class="language-${ot}">${Ue?gt:(0,ce.escape)(gt,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(Ue?gt:(0,ce.escape)(gt,!0))+"</code></pre>"},Be.heading=function(gt,ot,Ue){let Ee=this.options.headerPrefix+Ue.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Se.push({anchor:Ee,level:ot,text:gt}),"<h"+ot+' id="'+xe+Ee+'">'+gt+"</h"+ot+">"},ve().setOptions({silent:!0,gfm:!0,pedantic:!1}),ve().use({tokenizer:Te,renderer:Be}),Yt.ZP=ve()},9981:function(Mn,Yt){"use strict";const E=function(){const y=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ve=1;ve<arguments.length;ve++){const ce=ve<0||arguments.length<=ve?void 0:arguments[ve];ce&&Object.keys(ce).forEach(Le=>{const xe=ce[Le];xe!==void 0&&(y[Le]=xe)})}return y};Yt.Z=E},86013:function(Mn,Yt,E){"use strict";var y=E(59301),ve=E(19248);const ce=Le=>{let xe;return typeof Le=="object"&&(Le!=null&&Le.clearIcon)?xe=Le:Le&&(xe={clearIcon:y.createElement(ve.Z,null)}),xe};Yt.Z=ce},54500:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return y}});const y=ve=>ve?typeof ve=="function"?ve():ve:null},97224:function(Mn,Yt,E){"use strict";E.d(Yt,{F:function(){return y}});function y(ce){return ce!=null&&ce===ce.window}const ve=ce=>{var Le,xe;if(typeof window=="undefined")return 0;let ge=0;return y(ce)?ge=ce.pageYOffset:ce instanceof Document?ge=ce.documentElement.scrollTop:(ce instanceof HTMLElement||ce)&&(ge=ce.scrollTop),ce&&!y(ce)&&typeof ge!="number"&&(ge=(xe=((Le=ce.ownerDocument)!==null&&Le!==void 0?Le:ce).documentElement)===null||xe===void 0?void 0:xe.scrollTop),ge};Yt.Z=ve},83010:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Le}});var y=E(16089);function ve(xe,ge,Se,Ne){const Be=Se-ge;return xe/=Ne/2,xe<1?Be/2*xe*xe*xe+ge:Be/2*((xe-=2)*xe*xe+2)+ge}var ce=E(97224);function Le(xe){let ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Se=()=>window,callback:Ne,duration:Be=450}=ge,fe=Se(),$e=(0,ce.Z)(fe),Oe=Date.now(),ct=()=>{const Te=Date.now()-Oe,we=ve(Te>Be?Be:Te,$e,xe,Be);(0,ce.F)(fe)?fe.scrollTo(window.pageXOffset,we):fe instanceof Document||fe.constructor.name==="HTMLDocument"?fe.documentElement.scrollTop=we:fe.scrollTop=we,Te<Be?(0,y.Z)(ct):typeof Ne=="function"&&Ne()};(0,y.Z)(ct)}},91882:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Qe}});var y=E(59301),ve=E(92310),ce=E.n(ve),Le=E(11592),xe=E(26112),ge=E(22703),Se=E(48755),Ne=E(84105),Be=E(19563);const fe=Ge=>{let{children:st}=Ge;const{getPrefixCls:Ce}=y.useContext(Se.E_),be=Ce("breadcrumb");return y.createElement("li",{className:`${be}-separator`,"aria-hidden":"true"},st===""?st:st||"/")};fe.__ANT_BREADCRUMB_SEPARATOR=!0;var $e=fe,Oe=function(Ge,st){var Ce={};for(var be in Ge)Object.prototype.hasOwnProperty.call(Ge,be)&&st.indexOf(be)<0&&(Ce[be]=Ge[be]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,be=Object.getOwnPropertySymbols(Ge);vt<be.length;vt++)st.indexOf(be[vt])<0&&Object.prototype.propertyIsEnumerable.call(Ge,be[vt])&&(Ce[be[vt]]=Ge[be[vt]]);return Ce};function ct(Ge,st){if(Ge.title===void 0||Ge.title===null)return null;const Ce=Object.keys(st).join("|");return typeof Ge.title=="object"?Ge.title:String(Ge.title).replace(new RegExp(`:(${Ce})`,"g"),(be,vt)=>st[vt]||be)}function Ke(Ge,st,Ce,be){if(Ce==null)return null;const{className:vt,onClick:zt}=st,jt=Oe(st,["className","onClick"]),De=Object.assign(Object.assign({},(0,xe.Z)(jt,{data:!0,aria:!0})),{onClick:zt});return be!==void 0?y.createElement("a",Object.assign({},De,{className:ce()(`${Ge}-link`,vt),href:be}),Ce):y.createElement("span",Object.assign({},De,{className:ce()(`${Ge}-link`,vt)}),Ce)}function Te(Ge,st){return(be,vt,zt,jt,De)=>{if(st)return st(be,vt,zt,jt);const pt=ct(be,vt);return Ke(Ge,be,pt,De)}}var we=function(Ge,st){var Ce={};for(var be in Ge)Object.prototype.hasOwnProperty.call(Ge,be)&&st.indexOf(be)<0&&(Ce[be]=Ge[be]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,be=Object.getOwnPropertySymbols(Ge);vt<be.length;vt++)st.indexOf(be[vt])<0&&Object.prototype.propertyIsEnumerable.call(Ge,be[vt])&&(Ce[be[vt]]=Ge[be[vt]]);return Ce};const Ie=Ge=>{const{prefixCls:st,separator:Ce="/",children:be,menu:vt,overlay:zt,dropdownProps:jt,href:De}=Ge,ut=(Qt=>{if(vt||zt){const yt=Object.assign({},jt);if(vt){const Ct=vt||{},{items:mt}=Ct,dn=we(Ct,["items"]);yt.menu=Object.assign(Object.assign({},dn),{items:mt==null?void 0:mt.map((Ht,ue)=>{var{key:ie,title:re,label:oe,path:pe}=Ht,ae=we(Ht,["key","title","label","path"]);let me=oe!=null?oe:re;return pe&&(me=y.createElement("a",{href:`${De}${pe}`},me)),Object.assign(Object.assign({},ae),{key:ie!=null?ie:ue,label:me})})})}else zt&&(yt.overlay=zt);return y.createElement(Be.Z,Object.assign({placement:"bottom"},yt),y.createElement("span",{className:`${st}-overlay-link`},Qt,y.createElement(Ne.Z,null)))}return Qt})(be);return ut!=null?y.createElement(y.Fragment,null,y.createElement("li",null,ut),Ce&&y.createElement($e,null,Ce)):null},Pe=Ge=>{const{prefixCls:st,children:Ce,href:be}=Ge,vt=we(Ge,["prefixCls","children","href"]),{getPrefixCls:zt}=y.useContext(Se.E_),jt=zt("breadcrumb",st);return y.createElement(Ie,Object.assign({},vt,{prefixCls:jt}),Ke(jt,vt,Ce,be))};Pe.__ANT_BREADCRUMB_ITEM=!0;var tt=Pe,Et=E(36237),_e=E(63356),Fe=E(16931),He=E(51636);const Xe=Ge=>{const{componentCls:st,iconCls:Ce,calc:be}=Ge;return{[st]:Object.assign(Object.assign({},(0,_e.Wf)(Ge)),{color:Ge.itemColor,fontSize:Ge.fontSize,[Ce]:{fontSize:Ge.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Ge.linkColor,transition:`color ${Ge.motionDurationMid}`,padding:`0 ${(0,Et.unit)(Ge.paddingXXS)}`,borderRadius:Ge.borderRadiusSM,height:Ge.fontHeight,display:"inline-block",marginInline:be(Ge.marginXXS).mul(-1).equal(),"&:hover":{color:Ge.linkHoverColor,backgroundColor:Ge.colorBgTextHover}},(0,_e.Qy)(Ge)),"li:last-child":{color:Ge.lastItemColor},[`${st}-separator`]:{marginInline:Ge.separatorMargin,color:Ge.separatorColor},[`${st}-link`]:{[`
|
|
|
> ${Ce} + span,
|
|
|
> ${Ce} + a
|
|
|
`]:{marginInlineStart:Ge.marginXXS}},[`${st}-overlay-link`]:{borderRadius:Ge.borderRadiusSM,height:Ge.fontHeight,display:"inline-block",padding:`0 ${(0,Et.unit)(Ge.paddingXXS)}`,marginInline:be(Ge.marginXXS).mul(-1).equal(),[`> ${Ce}`]:{marginInlineStart:Ge.marginXXS,fontSize:Ge.fontSizeIcon},"&:hover":{color:Ge.linkHoverColor,backgroundColor:Ge.colorBgTextHover,a:{color:Ge.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Ge.componentCls}-rtl`]:{direction:"rtl"}})}},St=Ge=>({itemColor:Ge.colorTextDescription,lastItemColor:Ge.colorText,iconFontSize:Ge.fontSize,linkColor:Ge.colorTextDescription,linkHoverColor:Ge.colorText,separatorColor:Ge.colorTextDescription,separatorMargin:Ge.marginXS});var gt=(0,Fe.I$)("Breadcrumb",Ge=>{const st=(0,He.mergeToken)(Ge,{});return Xe(st)},St),ot=function(Ge,st){var Ce={};for(var be in Ge)Object.prototype.hasOwnProperty.call(Ge,be)&&st.indexOf(be)<0&&(Ce[be]=Ge[be]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,be=Object.getOwnPropertySymbols(Ge);vt<be.length;vt++)st.indexOf(be[vt])<0&&Object.prototype.propertyIsEnumerable.call(Ge,be[vt])&&(Ce[be[vt]]=Ge[be[vt]]);return Ce};function Ue(Ge){const{breadcrumbName:st,children:Ce}=Ge,be=ot(Ge,["breadcrumbName","children"]),vt=Object.assign({title:st},be);return Ce&&(vt.menu={items:Ce.map(zt=>{var{breadcrumbName:jt}=zt,De=ot(zt,["breadcrumbName"]);return Object.assign(Object.assign({},De),{title:jt})})}),vt}function Ee(Ge,st){return(0,y.useMemo)(()=>Ge||(st?st.map(Ue):null),[Ge,st])}var We=function(Ge,st){var Ce={};for(var be in Ge)Object.prototype.hasOwnProperty.call(Ge,be)&&st.indexOf(be)<0&&(Ce[be]=Ge[be]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,be=Object.getOwnPropertySymbols(Ge);vt<be.length;vt++)st.indexOf(be[vt])<0&&Object.prototype.propertyIsEnumerable.call(Ge,be[vt])&&(Ce[be[vt]]=Ge[be[vt]]);return Ce};const Ae=(Ge,st)=>{if(st===void 0)return st;let Ce=(st||"").replace(/^\//,"");return Object.keys(Ge).forEach(be=>{Ce=Ce.replace(`:${be}`,Ge[be])}),Ce},de=Ge=>{const{prefixCls:st,separator:Ce="/",style:be,className:vt,rootClassName:zt,routes:jt,items:De,children:pt,itemRender:ut,params:Qt={}}=Ge,yt=We(Ge,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Ct,direction:mt,breadcrumb:dn}=y.useContext(Se.E_);let Ht;const ue=Ct("breadcrumb",st),[ie,re,oe]=gt(ue),pe=Ee(De,jt),ae=Te(ue,ut);if(pe&&pe.length>0){const Ot=[],at=De||jt;Ht=pe.map((qe,bt)=>{const{path:At,key:$t,type:Ye,menu:rt,overlay:Vt,onClick:sn,className:wn,separator:pn,dropdownProps:kt}=qe,Gt=Ae(Qt,At);Gt!==void 0&&Ot.push(Gt);const Pt=$t!=null?$t:bt;if(Ye==="separator")return y.createElement($e,{key:Pt},pn);const Je={},It=bt===pe.length-1;rt?Je.menu=rt:Vt&&(Je.overlay=Vt);let{href:tn}=qe;return Ot.length&&Gt!==void 0&&(tn=`#/${Ot.join("/")}`),y.createElement(Ie,Object.assign({key:Pt},Je,(0,xe.Z)(qe,{data:!0,aria:!0}),{className:wn,dropdownProps:kt,href:tn,separator:It?"":Ce,onClick:sn,prefixCls:ue}),ae(qe,Qt,at,Ot,tn))})}else if(pt){const Ot=(0,Le.Z)(pt).length;Ht=(0,Le.Z)(pt).map((at,qe)=>{if(!at)return at;const bt=qe===Ot-1;return(0,ge.Tm)(at,{separator:bt?"":Ce,key:qe})})}const me=ce()(ue,dn==null?void 0:dn.className,{[`${ue}-rtl`]:mt==="rtl"},vt,zt,re,oe),Ze=Object.assign(Object.assign({},dn==null?void 0:dn.style),be);return ie(y.createElement("nav",Object.assign({className:me,style:Ze},yt),y.createElement("ol",null,Ht)))};de.Item=tt,de.Separator=$e;var wt=de,Qe=wt},79939:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return pr}});var y=E(94480),ve=E(59301),ce=E(92310),Le=E.n(ce),xe=E(54476),ge=E(33885),Se=E(42978),Ne=E(75931),Be=E(37463),fe=E(6551),$e=E(6089),Oe=E(18929),ct=ve.createContext({}),Ke=ct,Te=E(76190),we=E(20068),Ie="__rc_cascader_search_mark__",Pe=function(Tt,_t,Ut){var Fn=Ut.label,zn=Fn===void 0?"":Fn;return _t.some(function(Un){return String(Un[zn]).toLowerCase().includes(Tt.toLowerCase())})},tt=function(Tt,_t,Ut,Fn){return _t.map(function(zn){return zn[Fn.label]}).join(" / ")},Et=function(Tt,_t,Ut,Fn,zn,Un){var jn=zn.filter,gr=jn===void 0?Pe:jn,Ir=zn.render,Mr=Ir===void 0?tt:Ir,Zr=zn.limit,Er=Zr===void 0?50:Zr,Rr=zn.sort;return ve.useMemo(function(){var Xr=[];if(!Tt)return[];function oa(ta,xa){var Fa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ta.forEach(function(Gr){if(!(!Rr&&Er!==!1&&Er>0&&Xr.length>=Er)){var ya=[].concat((0,y.Z)(xa),[Gr]),Xa=Gr[Ut.children],Ia=Fa||Gr.disabled;if((!Xa||Xa.length===0||Un)&&gr(Tt,ya,{label:Ut.label})){var pa;Xr.push((0,ge.Z)((0,ge.Z)({},Gr),{},(pa={disabled:Ia},(0,we.Z)(pa,Ut.label,Mr(Tt,ya,Fn,Ut)),(0,we.Z)(pa,Ie,ya),(0,we.Z)(pa,Ut.children,void 0),pa)))}Xa&&oa(Gr[Ut.children],ya,Ia)}})}return oa(_t,[]),Rr&&Xr.sort(function(ta,xa){return Rr(ta[Ie],xa[Ie],Tt,Ut)}),Er!==!1&&Er>0?Xr.slice(0,Er):Xr},[Tt,_t,Ut,Fn,Mr,Un,gr,Rr,Er])},_e=Et,Fe="__RC_CASCADER_SPLIT__",He="SHOW_PARENT",Xe="SHOW_CHILD";function St(Ft){return Ft.join(Fe)}function gt(Ft){return Ft.map(St)}function ot(Ft){return Ft.split(Fe)}function Ue(Ft){var Tt=Ft||{},_t=Tt.label,Ut=Tt.value,Fn=Tt.children,zn=Ut||"value";return{label:_t||"label",value:zn,key:zn,children:Fn||"children"}}function Ee(Ft,Tt){var _t,Ut;return(_t=Ft.isLeaf)!==null&&_t!==void 0?_t:!((Ut=Ft[Tt.children])!==null&&Ut!==void 0&&Ut.length)}function We(Ft){var Tt=Ft.parentElement;if(Tt){var _t=Ft.offsetTop-Tt.offsetTop;_t-Tt.scrollTop<0?Tt.scrollTo({top:_t}):_t+Ft.offsetHeight-Tt.scrollTop>Tt.offsetHeight&&Tt.scrollTo({top:_t+Ft.offsetHeight-Tt.offsetHeight})}}function Ae(Ft,Tt){return Ft.map(function(_t){var Ut;return(Ut=_t[Ie])===null||Ut===void 0?void 0:Ut.map(function(Fn){return Fn[Tt.value]})})}function de(Ft){return Array.isArray(Ft)&&Array.isArray(Ft[0])}function wt(Ft){return Ft?de(Ft)?Ft:(Ft.length===0?[]:[Ft]).map(function(Tt){return Array.isArray(Tt)?Tt:[Tt]}):[]}function Qe(Ft,Tt,_t){var Ut=new Set(Ft),Fn=Tt();return Ft.filter(function(zn){var Un=Fn[zn],jn=Un?Un.parent:null,gr=Un?Un.children:null;return Un&&Un.node.disabled?!0:_t===Xe?!(gr&&gr.some(function(Ir){return Ir.key&&Ut.has(Ir.key)})):!(jn&&!jn.node.disabled&&Ut.has(jn.key))})}function Ge(Ft,Tt,_t){for(var Ut=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Fn=Tt,zn=[],Un=function(){var Ir,Mr,Zr,Er=Ft[jn],Rr=(Ir=Fn)===null||Ir===void 0?void 0:Ir.findIndex(function(oa){var ta=oa[_t.value];return Ut?String(ta)===String(Er):ta===Er}),Xr=Rr!==-1?(Mr=Fn)===null||Mr===void 0?void 0:Mr[Rr]:null;zn.push({value:(Zr=Xr==null?void 0:Xr[_t.value])!==null&&Zr!==void 0?Zr:Er,index:Rr,option:Xr}),Fn=Xr==null?void 0:Xr[_t.children]},jn=0;jn<Ft.length;jn+=1)Un();return zn}var st=function(Ft,Tt,_t,Ut,Fn){return ve.useMemo(function(){var zn=Fn||function(Un){var jn=Ut?Un.slice(-1):Un,gr=" / ";return jn.every(function(Ir){return["string","number"].includes((0,Te.Z)(Ir))})?jn.join(gr):jn.reduce(function(Ir,Mr,Zr){var Er=ve.isValidElement(Mr)?ve.cloneElement(Mr,{key:Zr}):Mr;return Zr===0?[Er]:[].concat((0,y.Z)(Ir),[gr,Er])},[])};return Ft.map(function(Un){var jn,gr=Ge(Un,Tt,_t),Ir=zn(gr.map(function(Zr){var Er,Rr=Zr.option,Xr=Zr.value;return(Er=Rr==null?void 0:Rr[_t.label])!==null&&Er!==void 0?Er:Xr}),gr.map(function(Zr){var Er=Zr.option;return Er})),Mr=St(Un);return{label:Ir,value:Mr,key:Mr,valueCells:Un,disabled:(jn=gr[gr.length-1])===null||jn===void 0||(jn=jn.option)===null||jn===void 0?void 0:jn.disabled}})},[Ft,Tt,_t,Fn,Ut])};function Ce(Ft,Tt){return ve.useCallback(function(_t){var Ut=[],Fn=[];return _t.forEach(function(zn){var Un=Ge(zn,Ft,Tt);Un.every(function(jn){return jn.option})?Fn.push(zn):Ut.push(zn)}),[Fn,Ut]},[Ft,Tt])}var be=E(34061),vt=function(Ft,Tt){var _t=ve.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),Ut=ve.useCallback(function(){return _t.current.options!==Ft&&(_t.current.options=Ft,_t.current.info=(0,be.I8)(Ft,{fieldNames:Tt,initWrapper:function(zn){return(0,ge.Z)((0,ge.Z)({},zn),{},{pathKeyEntities:{}})},processEntity:function(zn,Un){var jn=zn.nodes.map(function(gr){return gr[Tt.value]}).join(Fe);Un.pathKeyEntities[jn]=zn,zn.key=jn}})),_t.current.info.pathKeyEntities},[Tt,Ft]);return Ut};function zt(Ft,Tt){var _t=ve.useMemo(function(){return Tt||[]},[Tt]),Ut=vt(_t,Ft),Fn=ve.useCallback(function(zn){var Un=Ut();return zn.map(function(jn){var gr=Un[jn].nodes;return gr.map(function(Ir){return Ir[Ft.value]})})},[Ut,Ft]);return[_t,Ut,Fn]}var jt=E(48736);function De(Ft){return ve.useMemo(function(){if(!Ft)return[!1,{}];var Tt={matchInputWidth:!0,limit:50};return Ft&&(0,Te.Z)(Ft)==="object"&&(Tt=(0,ge.Z)((0,ge.Z)({},Tt),Ft)),Tt.limit<=0&&(Tt.limit=!1),[!0,Tt]},[Ft])}var pt=E(34643);function ut(Ft,Tt,_t,Ut,Fn,zn,Un,jn){return function(gr){if(!Ft)Tt(gr);else{var Ir=St(gr),Mr=gt(_t),Zr=gt(Ut),Er=Mr.includes(Ir),Rr=Fn.some(function(Ia){return St(Ia)===Ir}),Xr=_t,oa=Fn;if(Rr&&!Er)oa=Fn.filter(function(Ia){return St(Ia)!==Ir});else{var ta=Er?Mr.filter(function(Ia){return Ia!==Ir}):[].concat((0,y.Z)(Mr),[Ir]),xa=zn(),Fa;if(Er){var Gr=(0,pt.S)(ta,{checked:!1,halfCheckedKeys:Zr},xa);Fa=Gr.checkedKeys}else{var ya=(0,pt.S)(ta,!0,xa);Fa=ya.checkedKeys}var Xa=Qe(Fa,zn,jn);Xr=Un(Xa)}Tt([].concat((0,y.Z)(oa),(0,y.Z)(Xr)))}}}function Qt(Ft,Tt,_t,Ut,Fn){return ve.useMemo(function(){var zn=Fn(Tt),Un=(0,Se.Z)(zn,2),jn=Un[0],gr=Un[1];if(!Ft||!Tt.length)return[jn,[],gr];var Ir=gt(jn),Mr=_t(),Zr=(0,pt.S)(Ir,!0,Mr),Er=Zr.checkedKeys,Rr=Zr.halfCheckedKeys;return[Ut(Er),Ut(Rr),gr]},[Ft,Tt,_t,Ut,Fn])}var yt=ve.memo(function(Ft){var Tt=Ft.children;return Tt},function(Ft,Tt){return!Tt.open}),Ct=yt;function mt(Ft){var Tt,_t=Ft.prefixCls,Ut=Ft.checked,Fn=Ft.halfChecked,zn=Ft.disabled,Un=Ft.onClick,jn=Ft.disableCheckbox,gr=ve.useContext(Ke),Ir=gr.checkable,Mr=typeof Ir!="boolean"?Ir:null;return ve.createElement("span",{className:Le()("".concat(_t),(Tt={},(0,we.Z)(Tt,"".concat(_t,"-checked"),Ut),(0,we.Z)(Tt,"".concat(_t,"-indeterminate"),!Ut&&Fn),(0,we.Z)(Tt,"".concat(_t,"-disabled"),zn||jn),Tt)),onClick:Un},Mr)}var dn="__cascader_fix_label__";function Ht(Ft){var Tt=Ft.prefixCls,_t=Ft.multiple,Ut=Ft.options,Fn=Ft.activeValue,zn=Ft.prevValuePath,Un=Ft.onToggleOpen,jn=Ft.onSelect,gr=Ft.onActive,Ir=Ft.checkedSet,Mr=Ft.halfCheckedSet,Zr=Ft.loadingKeys,Er=Ft.isSelectable,Rr=Ft.disabled,Xr="".concat(Tt,"-menu"),oa="".concat(Tt,"-menu-item"),ta=ve.useContext(Ke),xa=ta.fieldNames,Fa=ta.changeOnSelect,Gr=ta.expandTrigger,ya=ta.expandIcon,Xa=ta.loadingIcon,Ia=ta.dropdownMenuColumnStyle,pa=ta.optionRender,kr=Gr==="hover",Za=function(Kr){return Rr||Kr},Sa=ve.useMemo(function(){return Ut.map(function(la){var Kr,Ya=la.disabled,_i=la.disableCheckbox,$i=la[Ie],za=(Kr=la[dn])!==null&&Kr!==void 0?Kr:la[xa.label],Di=la[xa.value],pi=Ee(la,xa),Wi=$i?$i.map(function(Cr){return Cr[xa.value]}):[].concat((0,y.Z)(zn),[Di]),Ci=St(Wi),ei=Zr.includes(Ci),Pr=Ir.has(Ci),Qn=Mr.has(Ci);return{disabled:Ya,label:za,value:Di,isLeaf:pi,isLoading:ei,checked:Pr,halfChecked:Qn,option:la,disableCheckbox:_i,fullPath:Wi,fullPathKey:Ci}})},[Ut,Ir,xa,Mr,Zr,zn]);return ve.createElement("ul",{className:Xr,role:"menu"},Sa.map(function(la){var Kr,Ya=la.disabled,_i=la.label,$i=la.value,za=la.isLeaf,Di=la.isLoading,pi=la.checked,Wi=la.halfChecked,Ci=la.option,ei=la.fullPath,Pr=la.fullPathKey,Qn=la.disableCheckbox,Cr=function(){if(!Za(Ya)){var sa=(0,y.Z)(ei);kr&&za&&sa.pop(),gr(sa)}},xr=function(){Er(Ci)&&!Za(Ya)&&jn(ei,za)},tr;return typeof Ci.title=="string"?tr=Ci.title:typeof _i=="string"&&(tr=_i),ve.createElement("li",{key:Pr,className:Le()(oa,(Kr={},(0,we.Z)(Kr,"".concat(oa,"-expand"),!za),(0,we.Z)(Kr,"".concat(oa,"-active"),Fn===$i||Fn===Pr),(0,we.Z)(Kr,"".concat(oa,"-disabled"),Za(Ya)),(0,we.Z)(Kr,"".concat(oa,"-loading"),Di),Kr)),style:Ia,role:"menuitemcheckbox",title:tr,"aria-checked":pi,"data-path-key":Pr,onClick:function(){Cr(),!Qn&&(!_t||za)&&xr()},onDoubleClick:function(){Fa&&Un(!1)},onMouseEnter:function(){kr&&Cr()},onMouseDown:function(sa){sa.preventDefault()}},_t&&ve.createElement(mt,{prefixCls:"".concat(Tt,"-checkbox"),checked:pi,halfChecked:Wi,disabled:Za(Ya)||Qn,disableCheckbox:Qn,onClick:function(sa){Qn||(sa.stopPropagation(),xr())}}),ve.createElement("div",{className:"".concat(oa,"-content")},pa?pa(Ci):_i),!Di&&ya&&!za&&ve.createElement("div",{className:"".concat(oa,"-expand-icon")},ya),Di&&Xa&&ve.createElement("div",{className:"".concat(oa,"-loading-icon")},Xa))}))}var ue=function(Tt,_t){var Ut=ve.useContext(Ke),Fn=Ut.values,zn=Fn[0],Un=ve.useState([]),jn=(0,Se.Z)(Un,2),gr=jn[0],Ir=jn[1];return ve.useEffect(function(){Tt||Ir(zn||[])},[_t,zn]),[gr,Ir]},ie=ue,re=E(10228),oe=function(Ft,Tt,_t,Ut,Fn,zn,Un){var jn=Un.direction,gr=Un.searchValue,Ir=Un.toggleOpen,Mr=Un.open,Zr=jn==="rtl",Er=ve.useMemo(function(){for(var Ia=-1,pa=Tt,kr=[],Za=[],Sa=Ut.length,la=Ae(Tt,_t),Kr=function(Di){var pi=pa.findIndex(function(Wi,Ci){return(la[Ci]?St(la[Ci]):Wi[_t.value])===Ut[Di]});if(pi===-1)return 1;Ia=pi,kr.push(Ia),Za.push(Ut[Di]),pa=pa[Ia][_t.children]},Ya=0;Ya<Sa&&pa&&!Kr(Ya);Ya+=1);for(var _i=Tt,$i=0;$i<kr.length-1;$i+=1)_i=_i[kr[$i]][_t.children];return[Za,Ia,_i,la]},[Ut,_t,Tt]),Rr=(0,Se.Z)(Er,4),Xr=Rr[0],oa=Rr[1],ta=Rr[2],xa=Rr[3],Fa=function(pa){Fn(pa)},Gr=function(pa){var kr=ta.length,Za=oa;Za===-1&&pa<0&&(Za=kr);for(var Sa=0;Sa<kr;Sa+=1){Za=(Za+pa+kr)%kr;var la=ta[Za];if(la&&!la.disabled){var Kr=Xr.slice(0,-1).concat(xa[Za]?St(xa[Za]):la[_t.value]);Fa(Kr);return}}},ya=function(){if(Xr.length>1){var pa=Xr.slice(0,-1);Fa(pa)}else Ir(!1)},Xa=function(){var pa,kr=((pa=ta[oa])===null||pa===void 0?void 0:pa[_t.children])||[],Za=kr.find(function(la){return!la.disabled});if(Za){var Sa=[].concat((0,y.Z)(Xr),[Za[_t.value]]);Fa(Sa)}};ve.useImperativeHandle(Ft,function(){return{onKeyDown:function(pa){var kr=pa.which;switch(kr){case re.Z.UP:case re.Z.DOWN:{var Za=0;kr===re.Z.UP?Za=-1:kr===re.Z.DOWN&&(Za=1),Za!==0&&Gr(Za);break}case re.Z.LEFT:{if(gr)break;Zr?Xa():ya();break}case re.Z.RIGHT:{if(gr)break;Zr?ya():Xa();break}case re.Z.BACKSPACE:{gr||ya();break}case re.Z.ENTER:{if(Xr.length){var Sa=ta[oa],la=(Sa==null?void 0:Sa[Ie])||[];la.length?zn(la.map(function(Kr){return Kr[_t.value]}),la[la.length-1]):zn(Xr,ta[oa])}break}case re.Z.ESC:Ir(!1),Mr&&pa.stopPropagation()}},onKeyUp:function(){}}})},pe=ve.forwardRef(function(Ft,Tt){var _t,Ut,Fn,zn=Ft.prefixCls,Un=Ft.multiple,jn=Ft.searchValue,gr=Ft.toggleOpen,Ir=Ft.notFoundContent,Mr=Ft.direction,Zr=Ft.open,Er=Ft.disabled,Rr=ve.useRef(null),Xr=Mr==="rtl",oa=ve.useContext(Ke),ta=oa.options,xa=oa.values,Fa=oa.halfValues,Gr=oa.fieldNames,ya=oa.changeOnSelect,Xa=oa.onSelect,Ia=oa.searchOptions,pa=oa.dropdownPrefixCls,kr=oa.loadData,Za=oa.expandTrigger,Sa=pa||zn,la=ve.useState([]),Kr=(0,Se.Z)(la,2),Ya=Kr[0],_i=Kr[1],$i=function(ja){if(!(!kr||jn)){var ea=Ge(ja,ta,Gr),ai=ea.map(function(Gi){var Ji=Gi.option;return Ji}),yi=ai[ai.length-1];if(yi&&!Ee(yi,Gr)){var zi=St(ja);_i(function(Gi){return[].concat((0,y.Z)(Gi),[zi])}),kr(ai)}}};ve.useEffect(function(){Ya.length&&Ya.forEach(function(Ta){var ja=ot(Ta),ea=Ge(ja,ta,Gr,!0).map(function(yi){var zi=yi.option;return zi}),ai=ea[ea.length-1];(!ai||ai[Gr.children]||Ee(ai,Gr))&&_i(function(yi){return yi.filter(function(zi){return zi!==Ta})})})},[ta,Ya,Gr]);var za=ve.useMemo(function(){return new Set(gt(xa))},[xa]),Di=ve.useMemo(function(){return new Set(gt(Fa))},[Fa]),pi=ie(Un,Zr),Wi=(0,Se.Z)(pi,2),Ci=Wi[0],ei=Wi[1],Pr=function(ja){ei(ja),$i(ja)},Qn=function(ja){if(Er)return!1;var ea=ja.disabled,ai=Ee(ja,Gr);return!ea&&(ai||ya||Un)},Cr=function(ja,ea){var ai=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Xa(ja),!Un&&(ea||ya&&(Za==="hover"||ai))&&gr(!1)},xr=ve.useMemo(function(){return jn?Ia:ta},[jn,Ia,ta]),tr=ve.useMemo(function(){for(var Ta=[{options:xr}],ja=xr,ea=Ae(ja,Gr),ai=function(){var Gi=Ci[yi],Ji=ja.find(function(co,No){return(ea[No]?St(ea[No]):co[Gr.value])===Gi}),Yi=Ji==null?void 0:Ji[Gr.children];if(!(Yi!=null&&Yi.length))return 1;ja=Yi,Ta.push({options:Yi})},yi=0;yi<Ci.length&&!ai();yi+=1);return Ta},[xr,Ci,Gr]),jr=function(ja,ea){Qn(ea)&&Cr(ja,Ee(ea,Gr),!0)};oe(Tt,xr,Gr,Ci,Pr,jr,{direction:Mr,searchValue:jn,toggleOpen:gr,open:Zr}),ve.useEffect(function(){if(!jn)for(var Ta=0;Ta<Ci.length;Ta+=1){var ja,ea=Ci.slice(0,Ta+1),ai=St(ea),yi=(ja=Rr.current)===null||ja===void 0?void 0:ja.querySelector('li[data-path-key="'.concat(ai.replace(/\\{0,2}"/g,'\\"'),'"]'));yi&&We(yi)}},[Ci,jn]);var sa=!((_t=tr[0])!==null&&_t!==void 0&&(_t=_t.options)!==null&&_t!==void 0&&_t.length),br=[(Ut={},(0,we.Z)(Ut,Gr.value,"__EMPTY__"),(0,we.Z)(Ut,dn,Ir),(0,we.Z)(Ut,"disabled",!0),Ut)],Br=(0,ge.Z)((0,ge.Z)({},Ft),{},{multiple:!sa&&Un,onSelect:Cr,onActive:Pr,onToggleOpen:gr,checkedSet:za,halfCheckedSet:Di,loadingKeys:Ya,isSelectable:Qn}),$r=sa?[{options:br}]:tr,Qr=$r.map(function(Ta,ja){var ea=Ci.slice(0,ja),ai=Ci[ja];return ve.createElement(Ht,(0,xe.Z)({key:ja},Br,{prefixCls:Sa,options:Ta.options,prevValuePath:ea,activeValue:ai}))});return ve.createElement(Ct,{open:Zr},ve.createElement("div",{className:Le()("".concat(Sa,"-menus"),(Fn={},(0,we.Z)(Fn,"".concat(Sa,"-menu-empty"),sa),(0,we.Z)(Fn,"".concat(Sa,"-rtl"),Xr),Fn)),ref:Rr},Qr))}),ae=pe,me=ve.forwardRef(function(Ft,Tt){var _t=(0,Be.lk)();return ve.createElement(ae,(0,xe.Z)({},Ft,_t,{ref:Tt}))}),Ze=me,Ot=E(70425);function at(){}function qe(Ft){var Tt,_t=Ft,Ut=_t.prefixCls,Fn=Ut===void 0?"rc-cascader":Ut,zn=_t.style,Un=_t.className,jn=_t.options,gr=_t.checkable,Ir=_t.defaultValue,Mr=_t.value,Zr=_t.fieldNames,Er=_t.changeOnSelect,Rr=_t.onChange,Xr=_t.showCheckedStrategy,oa=_t.loadData,ta=_t.expandTrigger,xa=_t.expandIcon,Fa=xa===void 0?">":xa,Gr=_t.loadingIcon,ya=_t.direction,Xa=_t.notFoundContent,Ia=Xa===void 0?"Not Found":Xa,pa=_t.disabled,kr=!!gr,Za=(0,Ot.C8)(Ir,{value:Mr,postState:wt}),Sa=(0,Se.Z)(Za,2),la=Sa[0],Kr=Sa[1],Ya=ve.useMemo(function(){return Ue(Zr)},[JSON.stringify(Zr)]),_i=zt(Ya,jn),$i=(0,Se.Z)(_i,3),za=$i[0],Di=$i[1],pi=$i[2],Wi=Ce(za,Ya),Ci=Qt(kr,la,Di,pi,Wi),ei=(0,Se.Z)(Ci,3),Pr=ei[0],Qn=ei[1],Cr=ei[2],xr=(0,Ot.zX)(function($r){if(Kr($r),Rr){var Qr=wt($r),Ta=Qr.map(function(ai){return Ge(ai,za,Ya).map(function(yi){return yi.option})}),ja=kr?Qr:Qr[0],ea=kr?Ta:Ta[0];Rr(ja,ea)}}),tr=ut(kr,xr,Pr,Qn,Cr,Di,pi,Xr),jr=(0,Ot.zX)(function($r){tr($r)}),sa=ve.useMemo(function(){return{options:za,fieldNames:Ya,values:Pr,halfValues:Qn,changeOnSelect:Er,onSelect:jr,checkable:gr,searchOptions:[],dropdownPrefixCls:void 0,loadData:oa,expandTrigger:ta,expandIcon:Fa,loadingIcon:Gr,dropdownMenuColumnStyle:void 0}},[za,Ya,Pr,Qn,Er,jr,gr,oa,ta,Fa,Gr]),br="".concat(Fn,"-panel"),Br=!za.length;return ve.createElement(Ke.Provider,{value:sa},ve.createElement("div",{className:Le()(br,(Tt={},(0,we.Z)(Tt,"".concat(br,"-rtl"),ya==="rtl"),(0,we.Z)(Tt,"".concat(br,"-empty"),Br),Tt),Un),style:zn},Br?Ia:ve.createElement(ae,{prefixCls:Fn,searchValue:"",multiple:kr,toggleOpen:at,open:!0,direction:ya,disabled:pa})))}function bt(Ft){var Tt=Ft.onPopupVisibleChange,_t=Ft.popupVisible,Ut=Ft.popupClassName,Fn=Ft.popupPlacement;warning(!Tt,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(_t===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Ut===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Fn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function At(Ft,Tt){if(Ft){var _t=function Ut(Fn){for(var zn=0;zn<Fn.length;zn++){var Un=Fn[zn];if(Un[Tt==null?void 0:Tt.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(Un[Tt==null?void 0:Tt.children])&&Ut(Un[Tt==null?void 0:Tt.children]))return!0}};_t(Ft)}}var $t=null,Ye=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],rt=ve.forwardRef(function(Ft,Tt){var _t=Ft.id,Ut=Ft.prefixCls,Fn=Ut===void 0?"rc-cascader":Ut,zn=Ft.fieldNames,Un=Ft.defaultValue,jn=Ft.value,gr=Ft.changeOnSelect,Ir=Ft.onChange,Mr=Ft.displayRender,Zr=Ft.checkable,Er=Ft.autoClearSearchValue,Rr=Er===void 0?!0:Er,Xr=Ft.searchValue,oa=Ft.onSearch,ta=Ft.showSearch,xa=Ft.expandTrigger,Fa=Ft.options,Gr=Ft.dropdownPrefixCls,ya=Ft.loadData,Xa=Ft.popupVisible,Ia=Ft.open,pa=Ft.popupClassName,kr=Ft.dropdownClassName,Za=Ft.dropdownMenuColumnStyle,Sa=Ft.dropdownStyle,la=Ft.popupPlacement,Kr=Ft.placement,Ya=Ft.onDropdownVisibleChange,_i=Ft.onPopupVisibleChange,$i=Ft.expandIcon,za=$i===void 0?">":$i,Di=Ft.loadingIcon,pi=Ft.children,Wi=Ft.dropdownMatchSelectWidth,Ci=Wi===void 0?!1:Wi,ei=Ft.showCheckedStrategy,Pr=ei===void 0?He:ei,Qn=Ft.optionRender,Cr=(0,Ne.Z)(Ft,Ye),xr=(0,fe.ZP)(_t),tr=!!Zr,jr=(0,Oe.Z)(Un,{value:jn,postState:wt}),sa=(0,Se.Z)(jr,2),br=sa[0],Br=sa[1],$r=ve.useMemo(function(){return Ue(zn)},[JSON.stringify(zn)]),Qr=zt($r,Fa),Ta=(0,Se.Z)(Qr,3),ja=Ta[0],ea=Ta[1],ai=Ta[2],yi=(0,Oe.Z)("",{value:Xr,postState:function(Hi){return Hi||""}}),zi=(0,Se.Z)(yi,2),Gi=zi[0],Ji=zi[1],Yi=function(Hi,uo){Ji(Hi),uo.source!=="blur"&&oa&&oa(Hi)},co=De(ta),No=(0,Se.Z)(co,2),jo=No[0],Wo=No[1],Da=_e(Gi,ja,$r,Gr||Fn,Wo,gr||tr),Fi=Ce(ja,$r),ri=Qt(tr,br,ea,ai,Fi),So=(0,Se.Z)(ri,3),di=So[0],il=So[1],jl=So[2],Pl=ve.useMemo(function(){var hi=gt(di),Hi=Qe(hi,ea,Pr);return[].concat((0,y.Z)(jl),(0,y.Z)(ai(Hi)))},[di,ea,ai,jl,Pr]),Vo=st(Pl,ja,$r,tr,Mr),Yo=(0,$e.Z)(function(hi){if(Br(hi),Ir){var Hi=wt(hi),uo=Hi.map(function(Qo){return Ge(Qo,ja,$r).map(function(Jo){return Jo.option})}),Fl=tr?Hi:Hi[0],oo=tr?uo:uo[0];Ir(Fl,oo)}}),no=ut(tr,Yo,di,il,jl,ea,ai,Pr),Ol=(0,$e.Z)(function(hi){(!tr||Rr)&&Ji(""),no(hi)}),Gl=function(Hi,uo){if(uo.type==="clear"){Yo([]);return}var Fl=uo.values[0],oo=Fl.valueCells;Ol(oo)},Nl=Ia!==void 0?Ia:Xa,Fo=kr||pa,es=Kr||la,as=function(Hi){Ya==null||Ya(Hi),_i==null||_i(Hi)},Ni=ve.useMemo(function(){return{options:ja,fieldNames:$r,values:di,halfValues:il,changeOnSelect:gr,onSelect:Ol,checkable:Zr,searchOptions:Da,dropdownPrefixCls:Gr,loadData:ya,expandTrigger:xa,expandIcon:za,loadingIcon:Di,dropdownMenuColumnStyle:Za,optionRender:Qn}},[ja,$r,di,il,gr,Ol,Zr,Da,Gr,ya,xa,za,Di,Za,Qn]),Qi=!(Gi?Da:ja).length,Ii=Gi&&Wo.matchInputWidth||Qi?{}:{minWidth:"auto"};return ve.createElement(Ke.Provider,{value:Ni},ve.createElement(Be.Ac,(0,xe.Z)({},Cr,{ref:Tt,id:xr,prefixCls:Fn,autoClearSearchValue:Rr,dropdownMatchSelectWidth:Ci,dropdownStyle:(0,ge.Z)((0,ge.Z)({},Ii),Sa),displayValues:Vo,onDisplayValuesChange:Gl,mode:tr?"multiple":void 0,searchValue:Gi,onSearch:Yi,showSearch:jo,OptionList:Ze,emptyOptions:Qi,open:Nl,dropdownClassName:Fo,placement:es,onDropdownVisibleChange:as,getRawInputElement:function(){return pi}})))});rt.SHOW_PARENT=He,rt.SHOW_CHILD=Xe,rt.Panel=qe;var Vt=rt,sn=Vt,wn=E(2738),pn=E(75030),kt=E(86641),Gt=E(45915),Pt=E(82855),Je=E(48755),It=E(38406),tn=E(2171),mn=E(83397),nt=E(31756),Nt=E(56553),Jt=E(24971),xt=E(1722),Wt=E(90376),qt=E(68525),Tn=E(90005),Gn=E(70045);function On(Ft,Tt){const{getPrefixCls:_t,direction:Ut,renderEmpty:Fn}=ve.useContext(Je.E_),zn=Tt||Ut,Un=_t("select",Ft),jn=_t("cascader",Ft);return[Un,jn,zn,Fn]}var Hn=On;function Zt(Ft,Tt){return ve.useMemo(()=>Tt?ve.createElement("span",{className:`${Ft}-checkbox-inner`}):!1,[Tt])}var Dn=E(33853),nn=E(58617),Sn=E(38819),En=(Ft,Tt,_t)=>{let Ut=_t;_t||(Ut=Tt?ve.createElement(Dn.Z,null):ve.createElement(Sn.Z,null));const Fn=ve.createElement("span",{className:`${Ft}-menu-item-loading-icon`},ve.createElement(nn.Z,{spin:!0}));return ve.useMemo(()=>[Ut,Fn],[Ut])},xn=E(56119),Vn=E(16931),sr=E(36237),er=E(36170),cr=E(63356),mr=Ft=>{const{prefixCls:Tt,componentCls:_t}=Ft,Ut=`${_t}-menu-item`,Fn=`
|
|
|
&${Ut}-expand ${Ut}-expand-icon,
|
|
|
${Ut}-loading-icon
|
|
|
`;return[(0,er.C2)(`${Tt}-checkbox`,Ft),{[_t]:{"&-checkbox":{top:0,marginInlineEnd:Ft.paddingXS,pointerEvents:"unset"},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${_t}-menu-empty`]:{[`${_t}-menu`]:{width:"100%",height:"auto",[Ut]:{color:Ft.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:Ft.controlItemWidth,height:Ft.dropdownHeight,margin:0,padding:Ft.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${(0,sr.unit)(Ft.lineWidth)} ${Ft.lineType} ${Ft.colorSplit}`},"&-item":Object.assign(Object.assign({},cr.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:Ft.optionPadding,lineHeight:Ft.lineHeight,cursor:"pointer",transition:`all ${Ft.motionDurationMid}`,borderRadius:Ft.borderRadiusSM,"&:hover":{background:Ft.controlItemBgHover},"&-disabled":{color:Ft.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Fn]:{color:Ft.colorTextDisabled}},[`&-active:not(${Ut}-disabled)`]:{"&, &:hover":{color:Ft.optionSelectedColor,fontWeight:Ft.optionSelectedFontWeight,backgroundColor:Ft.optionSelectedBg}},"&-content":{flex:"auto"},[Fn]:{marginInlineStart:Ft.paddingXXS,color:Ft.colorTextDescription,fontSize:Ft.fontSizeIcon},"&-keyword":{color:Ft.colorHighlight}})}}}]};const Hr=Ft=>{const{componentCls:Tt,antCls:_t}=Ft;return[{[Tt]:{width:Ft.controlWidth}},{[`${Tt}-dropdown`]:[{[`&${_t}-select-dropdown`]:{padding:0}},mr(Ft)]},{[`${Tt}-dropdown-rtl`]:{direction:"rtl"}},(0,xn.c)(Ft)]},Lr=Ft=>{const Tt=Math.round((Ft.controlHeight-Ft.fontSize*Ft.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:Ft.controlItemBgActive,optionSelectedFontWeight:Ft.fontWeightStrong,optionPadding:`${Tt}px ${Ft.paddingSM}px`,menuPadding:Ft.paddingXXS,optionSelectedColor:Ft.colorText}};var An=(0,Vn.I$)("Cascader",Ft=>[Hr(Ft)],Lr);const Rn=Ft=>{const{componentCls:Tt}=Ft;return{[`${Tt}-panel`]:[mr(Ft),{display:"inline-flex",border:`${(0,sr.unit)(Ft.lineWidth)} ${Ft.lineType} ${Ft.colorSplit}`,borderRadius:Ft.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${Tt}-menus`]:{alignItems:"stretch"},[`${Tt}-menu`]:{height:"auto"},"&-empty":{padding:Ft.paddingXXS}}]}};var dr=(0,Vn.A1)(["Cascader","Panel"],Ft=>Rn(Ft),Lr);function vr(Ft){const{prefixCls:Tt,className:_t,multiple:Ut,rootClassName:Fn,notFoundContent:zn,direction:Un,expandIcon:jn,disabled:gr}=Ft,Ir=ve.useContext(tn.Z),Mr=gr!=null?gr:Ir,[Zr,Er,Rr,Xr]=Hn(Tt,Un),oa=(0,mn.Z)(Er),[ta,xa,Fa]=An(Er,oa);dr(Er);const Gr=Rr==="rtl",[ya,Xa]=En(Zr,Gr,jn),Ia=zn||(Xr==null?void 0:Xr("Cascader"))||ve.createElement(It.Z,{componentName:"Cascader"}),pa=Zt(Er,Ut);return ta(ve.createElement(qe,Object.assign({},Ft,{checkable:pa,prefixCls:Er,className:Le()(_t,xa,Fn,Fa,oa),notFoundContent:Ia,direction:Rr,expandIcon:ya,loadingIcon:Xa,disabled:Mr})))}var Mt=vr,Kt=function(Ft,Tt){var _t={};for(var Ut in Ft)Object.prototype.hasOwnProperty.call(Ft,Ut)&&Tt.indexOf(Ut)<0&&(_t[Ut]=Ft[Ut]);if(Ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fn=0,Ut=Object.getOwnPropertySymbols(Ft);Fn<Ut.length;Fn++)Tt.indexOf(Ut[Fn])<0&&Object.prototype.propertyIsEnumerable.call(Ft,Ut[Fn])&&(_t[Ut[Fn]]=Ft[Ut[Fn]]);return _t};const{SHOW_CHILD:ft,SHOW_PARENT:Rt}=sn;function it(Ft,Tt,_t){const Ut=Ft.toLowerCase().split(Tt).reduce((Un,jn,gr)=>gr===0?[jn]:[].concat((0,y.Z)(Un),[Tt,jn]),[]),Fn=[];let zn=0;return Ut.forEach((Un,jn)=>{const gr=zn+Un.length;let Ir=Ft.slice(zn,gr);zn=gr,jn%2===1&&(Ir=ve.createElement("span",{className:`${_t}-menu-item-keyword`,key:`separator-${jn}`},Ir)),Fn.push(Ir)}),Fn}const ht=(Ft,Tt,_t,Ut)=>{const Fn=[],zn=Ft.toLowerCase();return Tt.forEach((Un,jn)=>{jn!==0&&Fn.push(" / ");let gr=Un[Ut.label];const Ir=typeof gr;(Ir==="string"||Ir==="number")&&(gr=it(String(gr),zn,_t)),Fn.push(gr)}),Fn},fn=ve.forwardRef((Ft,Tt)=>{var _t;const{prefixCls:Ut,size:Fn,disabled:zn,className:Un,rootClassName:jn,multiple:gr,bordered:Ir=!0,transitionName:Mr,choiceTransitionName:Zr="",popupClassName:Er,dropdownClassName:Rr,expandIcon:Xr,placement:oa,showSearch:ta,allowClear:xa=!0,notFoundContent:Fa,direction:Gr,getPopupContainer:ya,status:Xa,showArrow:Ia,builtinPlacements:pa,style:kr,variant:Za}=Ft,Sa=Kt(Ft,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),la=(0,wn.Z)(Sa,["suffixIcon"]),{getPrefixCls:Kr,getPopupContainer:Ya,className:_i,style:$i}=(0,Je.dj)("cascader"),{popupOverflow:za}=ve.useContext(Je.E_),{status:Di,hasFeedback:pi,isFormItemInput:Wi,feedbackIcon:Ci}=ve.useContext(Nt.aM),ei=(0,Pt.F)(Di,Xa),[Pr,Qn,Cr,xr]=Hn(Ut,Gr),tr=Cr==="rtl",jr=Kr(),sa=(0,mn.Z)(Pr),[br,Br,$r]=(0,Wt.Z)(Pr,sa),Qr=(0,mn.Z)(Qn),[Ta]=An(Qn,Qr),{compactSize:ja,compactItemClassnames:ea}=(0,Gn.ri)(Pr,Gr),[ai,yi]=(0,Jt.Z)("cascader",Za,Ir),zi=Fa||(xr==null?void 0:xr("Cascader"))||ve.createElement(It.Z,{componentName:"Cascader"}),Gi=Le()(Er||Rr,`${Qn}-dropdown`,{[`${Qn}-dropdown-rtl`]:Cr==="rtl"},jn,sa,Qr,Br,$r),Ji=ve.useMemo(()=>{if(!ta)return ta;let Yo={render:ht};return typeof ta=="object"&&(Yo=Object.assign(Object.assign({},Yo),ta)),Yo},[ta]),Yi=(0,nt.Z)(Yo=>{var no;return(no=Fn!=null?Fn:ja)!==null&&no!==void 0?no:Yo}),co=ve.useContext(tn.Z),No=zn!=null?zn:co,[jo,Wo]=En(Pr,tr,Xr),Da=Zt(Qn,gr),Fi=(0,Tn.Z)(Ft.suffixIcon,Ia),{suffixIcon:ri,removeIcon:So,clearIcon:di}=(0,qt.Z)(Object.assign(Object.assign({},Ft),{hasFeedback:pi,feedbackIcon:Ci,showSuffixIcon:Fi,multiple:gr,prefixCls:Pr,componentName:"Cascader"})),il=ve.useMemo(()=>oa!==void 0?oa:tr?"bottomRight":"bottomLeft",[oa,tr]),jl=xa===!0?{clearIcon:di}:xa,[Pl]=(0,pn.Cn)("SelectLike",(_t=la.dropdownStyle)===null||_t===void 0?void 0:_t.zIndex),Vo=ve.createElement(sn,Object.assign({prefixCls:Pr,className:Le()(!Ut&&Qn,{[`${Pr}-lg`]:Yi==="large",[`${Pr}-sm`]:Yi==="small",[`${Pr}-rtl`]:tr,[`${Pr}-${ai}`]:yi,[`${Pr}-in-form-item`]:Wi},(0,Pt.Z)(Pr,ei,pi),ea,_i,Un,jn,sa,Qr,Br,$r),disabled:No,style:Object.assign(Object.assign({},$i),kr)},la,{builtinPlacements:(0,xt.Z)(pa,za),direction:Cr,placement:il,notFoundContent:zi,allowClear:jl,showSearch:Ji,expandIcon:jo,suffixIcon:ri,removeIcon:So,loadingIcon:Wo,checkable:Da,dropdownClassName:Gi,dropdownPrefixCls:Ut||Qn,dropdownStyle:Object.assign(Object.assign({},la.dropdownStyle),{zIndex:Pl}),choiceTransitionName:(0,kt.m)(jr,"",Zr),transitionName:(0,kt.m)(jr,"slide-up",Mr),getPopupContainer:ya||Ya,ref:Tt}));return Ta(br(Vo))}),ar=(0,Gt.Z)(fn,"dropdownAlign",Ft=>(0,wn.Z)(Ft,["visible"]));fn.SHOW_PARENT=Rt,fn.SHOW_CHILD=ft,fn.Panel=Mt,fn._InternalPanelDoNotUseOrYouWillBeFired=ar;var pr=fn},62673:function(Mn,Yt,E){"use strict";E.d(Yt,{default:function(){return gt}});var y=E(59301),ve=E(92310),ce=E.n(ve),Le=E(16632),xe=E(8654),ge=E(12919),Se=E(63872),Ne=E(48755),Be=E(2171),fe=E(83397),$e=E(56553),ct=y.createContext(null),Ke=E(36170),Te=E(74632),we=function(ot,Ue){var Ee={};for(var We in ot)Object.prototype.hasOwnProperty.call(ot,We)&&Ue.indexOf(We)<0&&(Ee[We]=ot[We]);if(ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,We=Object.getOwnPropertySymbols(ot);Ae<We.length;Ae++)Ue.indexOf(We[Ae])<0&&Object.prototype.propertyIsEnumerable.call(ot,We[Ae])&&(Ee[We[Ae]]=ot[We[Ae]]);return Ee};const Ie=(ot,Ue)=>{var Ee;const{prefixCls:We,className:Ae,rootClassName:de,children:wt,indeterminate:Qe=!1,style:Ge,onMouseEnter:st,onMouseLeave:Ce,skipGroup:be=!1,disabled:vt}=ot,zt=we(ot,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:jt,direction:De,checkbox:pt}=y.useContext(Ne.E_),ut=y.useContext(ct),{isFormItemInput:Qt}=y.useContext($e.aM),yt=y.useContext(Be.Z),Ct=(Ee=(ut==null?void 0:ut.disabled)||vt)!==null&&Ee!==void 0?Ee:yt,mt=y.useRef(zt.value),dn=y.useRef(null),Ht=(0,xe.sQ)(Ue,dn);y.useEffect(()=>{ut==null||ut.registerValue(zt.value)},[]),y.useEffect(()=>{if(!be)return zt.value!==mt.current&&(ut==null||ut.cancelValue(mt.current),ut==null||ut.registerValue(zt.value),mt.current=zt.value),()=>ut==null?void 0:ut.cancelValue(zt.value)},[zt.value]),y.useEffect(()=>{var qe;!((qe=dn.current)===null||qe===void 0)&&qe.input&&(dn.current.input.indeterminate=Qe)},[Qe]);const ue=jt("checkbox",We),ie=(0,fe.Z)(ue),[re,oe,pe]=(0,Ke.ZP)(ue,ie),ae=Object.assign({},zt);ut&&!be&&(ae.onChange=function(){zt.onChange&&zt.onChange.apply(zt,arguments),ut.toggleOption&&ut.toggleOption({label:wt,value:zt.value})},ae.name=ut.name,ae.checked=ut.value.includes(zt.value));const me=ce()(`${ue}-wrapper`,{[`${ue}-rtl`]:De==="rtl",[`${ue}-wrapper-checked`]:ae.checked,[`${ue}-wrapper-disabled`]:Ct,[`${ue}-wrapper-in-form-item`]:Qt},pt==null?void 0:pt.className,Ae,de,pe,ie,oe),Ze=ce()({[`${ue}-indeterminate`]:Qe},Se.A,oe),[Ot,at]=(0,Te.Z)(ae.onClick);return re(y.createElement(ge.Z,{component:"Checkbox",disabled:Ct},y.createElement("label",{className:me,style:Object.assign(Object.assign({},pt==null?void 0:pt.style),Ge),onMouseEnter:st,onMouseLeave:Ce,onClick:Ot},y.createElement(Le.Z,Object.assign({},ae,{onClick:at,prefixCls:ue,className:Ze,disabled:Ct,ref:Ht})),wt!==void 0&&y.createElement("span",{className:`${ue}-label`},wt))))};var tt=y.forwardRef(Ie),Et=E(94480),_e=E(2738),Fe=function(ot,Ue){var Ee={};for(var We in ot)Object.prototype.hasOwnProperty.call(ot,We)&&Ue.indexOf(We)<0&&(Ee[We]=ot[We]);if(ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,We=Object.getOwnPropertySymbols(ot);Ae<We.length;Ae++)Ue.indexOf(We[Ae])<0&&Object.prototype.propertyIsEnumerable.call(ot,We[Ae])&&(Ee[We[Ae]]=ot[We[Ae]]);return Ee},Xe=y.forwardRef((ot,Ue)=>{const{defaultValue:Ee,children:We,options:Ae=[],prefixCls:de,className:wt,rootClassName:Qe,style:Ge,onChange:st}=ot,Ce=Fe(ot,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:be,direction:vt}=y.useContext(Ne.E_),[zt,jt]=y.useState(Ce.value||Ee||[]),[De,pt]=y.useState([]);y.useEffect(()=>{"value"in Ce&&jt(Ce.value||[])},[Ce.value]);const ut=y.useMemo(()=>Ae.map(Ze=>typeof Ze=="string"||typeof Ze=="number"?{label:Ze,value:Ze}:Ze),[Ae]),Qt=Ze=>{pt(Ot=>Ot.filter(at=>at!==Ze))},yt=Ze=>{pt(Ot=>[].concat((0,Et.Z)(Ot),[Ze]))},Ct=Ze=>{const Ot=zt.indexOf(Ze.value),at=(0,Et.Z)(zt);Ot===-1?at.push(Ze.value):at.splice(Ot,1),"value"in Ce||jt(at),st==null||st(at.filter(qe=>De.includes(qe)).sort((qe,bt)=>{const At=ut.findIndex(Ye=>Ye.value===qe),$t=ut.findIndex(Ye=>Ye.value===bt);return At-$t}))},mt=be("checkbox",de),dn=`${mt}-group`,Ht=(0,fe.Z)(mt),[ue,ie,re]=(0,Ke.ZP)(mt,Ht),oe=(0,_e.Z)(Ce,["value","disabled"]),pe=Ae.length?ut.map(Ze=>y.createElement(tt,{prefixCls:mt,key:Ze.value.toString(),disabled:"disabled"in Ze?Ze.disabled:Ce.disabled,value:Ze.value,checked:zt.includes(Ze.value),onChange:Ze.onChange,className:`${dn}-item`,style:Ze.style,title:Ze.title,id:Ze.id,required:Ze.required},Ze.label)):We,ae={toggleOption:Ct,value:zt,disabled:Ce.disabled,name:Ce.name,registerValue:yt,cancelValue:Qt},me=ce()(dn,{[`${dn}-rtl`]:vt==="rtl"},wt,Qe,re,Ht,ie);return ue(y.createElement("div",Object.assign({className:me,style:Ge},oe,{ref:Ue}),y.createElement(ct.Provider,{value:ae},pe)))});const St=tt;St.Group=Xe,St.__ANT_CHECKBOX=!0;var gt=St},36170:function(Mn,Yt,E){"use strict";E.d(Yt,{C2:function(){return ge}});var y=E(36237),ve=E(63356),ce=E(51636),Le=E(16931);const xe=Se=>{const{checkboxCls:Ne}=Se,Be=`${Ne}-wrapper`;return[{[`${Ne}-group`]:Object.assign(Object.assign({},(0,ve.Wf)(Se)),{display:"inline-flex",flexWrap:"wrap",columnGap:Se.marginXS,[`> ${Se.antCls}-row`]:{flex:1}}),[Be]:Object.assign(Object.assign({},(0,ve.Wf)(Se)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Be}`]:{marginInlineStart:0},[`&${Be}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Ne]:Object.assign(Object.assign({},(0,ve.Wf)(Se)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Se.borderRadiusSM,alignSelf:"center",[`${Ne}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Ne}-inner`]:Object.assign({},(0,ve.oN)(Se))},[`${Ne}-inner`]:{boxSizing:"border-box",display:"block",width:Se.checkboxSize,height:Se.checkboxSize,direction:"ltr",backgroundColor:Se.colorBgContainer,border:`${(0,y.unit)(Se.lineWidth)} ${Se.lineType} ${Se.colorBorder}`,borderRadius:Se.borderRadiusSM,borderCollapse:"separate",transition:`all ${Se.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:Se.calc(Se.checkboxSize).div(14).mul(5).equal(),height:Se.calc(Se.checkboxSize).div(14).mul(8).equal(),border:`${(0,y.unit)(Se.lineWidthBold)} solid ${Se.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Se.motionDurationFast} ${Se.motionEaseInBack}, opacity ${Se.motionDurationFast}`}},"& + span":{paddingInlineStart:Se.paddingXS,paddingInlineEnd:Se.paddingXS}})},{[`
|
|
|
${Be}:not(${Be}-disabled),
|
|
|
${Ne}:not(${Ne}-disabled)
|
|
|
`]:{[`&:hover ${Ne}-inner`]:{borderColor:Se.colorPrimary}},[`${Be}:not(${Be}-disabled)`]:{[`&:hover ${Ne}-checked:not(${Ne}-disabled) ${Ne}-inner`]:{backgroundColor:Se.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Ne}-checked:not(${Ne}-disabled):after`]:{borderColor:Se.colorPrimaryHover}}},{[`${Ne}-checked`]:{[`${Ne}-inner`]:{backgroundColor:Se.colorPrimary,borderColor:Se.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Se.motionDurationMid} ${Se.motionEaseOutBack} ${Se.motionDurationFast}`}}},[`
|
|
|
${Be}-checked:not(${Be}-disabled),
|
|
|
${Ne}-checked:not(${Ne}-disabled)
|
|
|
`]:{[`&:hover ${Ne}-inner`]:{backgroundColor:Se.colorPrimaryHover,borderColor:"transparent"}}},{[Ne]:{"&-indeterminate":{[`${Ne}-inner`]:{backgroundColor:`${Se.colorBgContainer} !important`,borderColor:`${Se.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:Se.calc(Se.fontSizeLG).div(2).equal(),height:Se.calc(Se.fontSizeLG).div(2).equal(),backgroundColor:Se.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${Ne}-inner`]:{backgroundColor:`${Se.colorBgContainer} !important`,borderColor:`${Se.colorPrimary} !important`}}}},{[`${Be}-disabled`]:{cursor:"not-allowed"},[`${Ne}-disabled`]:{[`&, ${Ne}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Ne}-inner`]:{background:Se.colorBgContainerDisabled,borderColor:Se.colorBorder,"&:after":{borderColor:Se.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Se.colorTextDisabled},[`&${Ne}-indeterminate ${Ne}-inner::after`]:{background:Se.colorTextDisabled}}}]};function ge(Se,Ne){const Be=(0,ce.mergeToken)(Ne,{checkboxCls:`.${Se}`,checkboxSize:Ne.controlInteractiveSize});return[xe(Be)]}Yt.ZP=(0,Le.I$)("Checkbox",(Se,Ne)=>{let{prefixCls:Be}=Ne;return[ge(Be,Se)]})},38406:function(Mn,Yt,E){"use strict";var y=E(59301),ve=E(48755),ce=E(584);const Le=xe=>{const{componentName:ge}=xe,{getPrefixCls:Se}=(0,y.useContext)(ve.E_),Ne=Se("empty");switch(ge){case"Table":case"List":return y.createElement(ce.Z,{image:ce.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return y.createElement(ce.Z,{image:ce.Z.PRESENTED_IMAGE_SIMPLE,className:`${Ne}-small`});case"Table.filter":return null;default:return y.createElement(ce.Z,null)}};Yt.Z=Le},37285:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Ke}});var y=E(59301),ve=E(92310),ce=E.n(ve),Le=E(48755),xe=E(36237),ge=E(63356),Se=E(16931),Ne=E(51636);const Be=Te=>{const{componentCls:we,sizePaddingEdgeHorizontal:Ie,colorSplit:Pe,lineWidth:tt,textPaddingInline:Et,orientationMargin:_e,verticalMarginInline:Fe}=Te;return{[we]:Object.assign(Object.assign({},(0,ge.Wf)(Te)),{borderBlockStart:`${(0,xe.unit)(tt)} solid ${Pe}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:Fe,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,xe.unit)(tt)} solid ${Pe}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,xe.unit)(Te.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${we}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,xe.unit)(Te.dividerHorizontalWithTextGutterMargin)} 0`,color:Te.colorTextHeading,fontWeight:500,fontSize:Te.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${Pe}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,xe.unit)(tt)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${we}-with-text-start`]:{"&::before":{width:`calc(${_e} * 100%)`},"&::after":{width:`calc(100% - ${_e} * 100%)`}},[`&-horizontal${we}-with-text-end`]:{"&::before":{width:`calc(100% - ${_e} * 100%)`},"&::after":{width:`calc(${_e} * 100%)`}},[`${we}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:Et},"&-dashed":{background:"none",borderColor:Pe,borderStyle:"dashed",borderWidth:`${(0,xe.unit)(tt)} 0 0`},[`&-horizontal${we}-with-text${we}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${we}-dashed`]:{borderInlineStartWidth:tt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:Pe,borderStyle:"dotted",borderWidth:`${(0,xe.unit)(tt)} 0 0`},[`&-horizontal${we}-with-text${we}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${we}-dotted`]:{borderInlineStartWidth:tt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${we}-with-text`]:{color:Te.colorText,fontWeight:"normal",fontSize:Te.fontSize},[`&-horizontal${we}-with-text-start${we}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${we}-inner-text`]:{paddingInlineStart:Ie}},[`&-horizontal${we}-with-text-end${we}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${we}-inner-text`]:{paddingInlineEnd:Ie}}})}},fe=Te=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Te.marginXS});var $e=(0,Se.I$)("Divider",Te=>{const we=(0,Ne.mergeToken)(Te,{dividerHorizontalWithTextGutterMargin:Te.margin,dividerHorizontalGutterMargin:Te.marginLG,sizePaddingEdgeHorizontal:0});return[Be(we)]},fe,{unitless:{orientationMargin:!0}}),Oe=function(Te,we){var Ie={};for(var Pe in Te)Object.prototype.hasOwnProperty.call(Te,Pe)&&we.indexOf(Pe)<0&&(Ie[Pe]=Te[Pe]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Pe=Object.getOwnPropertySymbols(Te);tt<Pe.length;tt++)we.indexOf(Pe[tt])<0&&Object.prototype.propertyIsEnumerable.call(Te,Pe[tt])&&(Ie[Pe[tt]]=Te[Pe[tt]]);return Ie},Ke=Te=>{const{getPrefixCls:we,direction:Ie,className:Pe,style:tt}=(0,Le.dj)("divider"),{prefixCls:Et,type:_e="horizontal",orientation:Fe="center",orientationMargin:He,className:Xe,rootClassName:St,children:gt,dashed:ot,variant:Ue="solid",plain:Ee,style:We}=Te,Ae=Oe(Te,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),de=we("divider",Et),[wt,Qe,Ge]=$e(de),st=!!gt,Ce=y.useMemo(()=>Fe==="left"?Ie==="rtl"?"end":"start":Fe==="right"?Ie==="rtl"?"start":"end":Fe,[Ie,Fe]),be=Ce==="start"&&He!=null,vt=Ce==="end"&&He!=null,zt=ce()(de,Pe,Qe,Ge,`${de}-${_e}`,{[`${de}-with-text`]:st,[`${de}-with-text-${Ce}`]:st,[`${de}-dashed`]:!!ot,[`${de}-${Ue}`]:Ue!=="solid",[`${de}-plain`]:!!Ee,[`${de}-rtl`]:Ie==="rtl",[`${de}-no-default-orientation-margin-start`]:be,[`${de}-no-default-orientation-margin-end`]:vt},Xe,St),jt=y.useMemo(()=>typeof He=="number"?He:/^\d+$/.test(He)?Number(He):He,[He]),De={marginInlineStart:be?jt:void 0,marginInlineEnd:vt?jt:void 0};return wt(y.createElement("div",Object.assign({className:zt,style:Object.assign(Object.assign({},tt),We)},Ae,{role:"separator"}),gt&&_e!=="vertical"&&y.createElement("span",{className:`${de}-inner-text`,style:De},gt)))}},36207:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Ot}});var y=E(59301),ve=E(92310),ce=E.n(ve),Le=E(33885),xe=E(42978),ge=E(43403),Se=E(34280),Ne=y.createContext(null),Be=y.createContext({}),fe=Ne,$e=E(20068),Oe=E(54476),ct=E(77900),Ke=E(10228),Te=E(26112),we=E(75931),Ie=E(8654),Pe=["prefixCls","className","containerRef"],tt=function(qe){var bt=qe.prefixCls,At=qe.className,$t=qe.containerRef,Ye=(0,we.Z)(qe,Pe),rt=y.useContext(Be),Vt=rt.panel,sn=(0,Ie.x1)(Vt,$t);return y.createElement("div",(0,Oe.Z)({className:ce()("".concat(bt,"-content"),At),role:"dialog",ref:sn},(0,Te.Z)(qe,{aria:!0}),{"aria-modal":"true"},Ye))},Et=tt,_e=E(48736);function Fe(at){return typeof at=="string"&&String(Number(at))===at?((0,_e.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(at)):at}function He(at){warning(!("wrapperClassName"in at),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!at.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Xe={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function St(at,qe){var bt,At,$t,Ye=at.prefixCls,rt=at.open,Vt=at.placement,sn=at.inline,wn=at.push,pn=at.forceRender,kt=at.autoFocus,Gt=at.keyboard,Pt=at.classNames,Je=at.rootClassName,It=at.rootStyle,tn=at.zIndex,mn=at.className,nt=at.id,Nt=at.style,Jt=at.motion,xt=at.width,Wt=at.height,qt=at.children,Tn=at.mask,Gn=at.maskClosable,On=at.maskMotion,Hn=at.maskClassName,Zt=at.maskStyle,Dn=at.afterOpenChange,nn=at.onClose,Sn=at.onMouseEnter,rn=at.onMouseOver,En=at.onMouseLeave,xn=at.onClick,Vn=at.onKeyDown,sr=at.onKeyUp,er=at.styles,cr=at.drawerRender,Dr=y.useRef(),mr=y.useRef(),Hr=y.useRef();y.useImperativeHandle(qe,function(){return Dr.current});var Lr=function(_t){var Ut=_t.keyCode,Fn=_t.shiftKey;switch(Ut){case Ke.Z.TAB:{if(Ut===Ke.Z.TAB){if(!Fn&&document.activeElement===Hr.current){var zn;(zn=mr.current)===null||zn===void 0||zn.focus({preventScroll:!0})}else if(Fn&&document.activeElement===mr.current){var Un;(Un=Hr.current)===null||Un===void 0||Un.focus({preventScroll:!0})}}break}case Ke.Z.ESC:{nn&&Gt&&(_t.stopPropagation(),nn(_t));break}}};y.useEffect(function(){if(rt&&kt){var Tt;(Tt=Dr.current)===null||Tt===void 0||Tt.focus({preventScroll:!0})}},[rt]);var An=y.useState(!1),Rn=(0,xe.Z)(An,2),dr=Rn[0],vr=Rn[1],Mt=y.useContext(fe),Kt;typeof wn=="boolean"?Kt=wn?{}:{distance:0}:Kt=wn||{};var ft=(bt=(At=($t=Kt)===null||$t===void 0?void 0:$t.distance)!==null&&At!==void 0?At:Mt==null?void 0:Mt.pushDistance)!==null&&bt!==void 0?bt:180,Rt=y.useMemo(function(){return{pushDistance:ft,push:function(){vr(!0)},pull:function(){vr(!1)}}},[ft]);y.useEffect(function(){if(rt){var Tt;Mt==null||(Tt=Mt.push)===null||Tt===void 0||Tt.call(Mt)}else{var _t;Mt==null||(_t=Mt.pull)===null||_t===void 0||_t.call(Mt)}},[rt]),y.useEffect(function(){return function(){var Tt;Mt==null||(Tt=Mt.pull)===null||Tt===void 0||Tt.call(Mt)}},[]);var it=Tn&&y.createElement(ct.default,(0,Oe.Z)({key:"mask"},On,{visible:rt}),function(Tt,_t){var Ut=Tt.className,Fn=Tt.style;return y.createElement("div",{className:ce()("".concat(Ye,"-mask"),Ut,Pt==null?void 0:Pt.mask,Hn),style:(0,Le.Z)((0,Le.Z)((0,Le.Z)({},Fn),Zt),er==null?void 0:er.mask),onClick:Gn&&rt?nn:void 0,ref:_t})}),ht=typeof Jt=="function"?Jt(Vt):Jt,fn={};if(dr&&ft)switch(Vt){case"top":fn.transform="translateY(".concat(ft,"px)");break;case"bottom":fn.transform="translateY(".concat(-ft,"px)");break;case"left":fn.transform="translateX(".concat(ft,"px)");break;default:fn.transform="translateX(".concat(-ft,"px)");break}Vt==="left"||Vt==="right"?fn.width=Fe(xt):fn.height=Fe(Wt);var ar={onMouseEnter:Sn,onMouseOver:rn,onMouseLeave:En,onClick:xn,onKeyDown:Vn,onKeyUp:sr},pr=y.createElement(ct.default,(0,Oe.Z)({key:"panel"},ht,{visible:rt,forceRender:pn,onVisibleChanged:function(_t){Dn==null||Dn(_t)},removeOnLeave:!1,leavedClassName:"".concat(Ye,"-content-wrapper-hidden")}),function(Tt,_t){var Ut=Tt.className,Fn=Tt.style,zn=y.createElement(Et,(0,Oe.Z)({id:nt,containerRef:_t,prefixCls:Ye,className:ce()(mn,Pt==null?void 0:Pt.content),style:(0,Le.Z)((0,Le.Z)({},Nt),er==null?void 0:er.content)},(0,Te.Z)(at,{aria:!0}),ar),qt);return y.createElement("div",(0,Oe.Z)({className:ce()("".concat(Ye,"-content-wrapper"),Pt==null?void 0:Pt.wrapper,Ut),style:(0,Le.Z)((0,Le.Z)((0,Le.Z)({},fn),Fn),er==null?void 0:er.wrapper)},(0,Te.Z)(at,{data:!0})),cr?cr(zn):zn)}),Ft=(0,Le.Z)({},It);return tn&&(Ft.zIndex=tn),y.createElement(fe.Provider,{value:Rt},y.createElement("div",{className:ce()(Ye,"".concat(Ye,"-").concat(Vt),Je,(0,$e.Z)((0,$e.Z)({},"".concat(Ye,"-open"),rt),"".concat(Ye,"-inline"),sn)),style:Ft,tabIndex:-1,ref:Dr,onKeyDown:Lr},it,y.createElement("div",{tabIndex:0,ref:mr,style:Xe,"aria-hidden":"true","data-sentinel":"start"}),pr,y.createElement("div",{tabIndex:0,ref:Hr,style:Xe,"aria-hidden":"true","data-sentinel":"end"})))}var gt=y.forwardRef(St),ot=gt,Ue=function(qe){var bt=qe.open,At=bt===void 0?!1:bt,$t=qe.prefixCls,Ye=$t===void 0?"rc-drawer":$t,rt=qe.placement,Vt=rt===void 0?"right":rt,sn=qe.autoFocus,wn=sn===void 0?!0:sn,pn=qe.keyboard,kt=pn===void 0?!0:pn,Gt=qe.width,Pt=Gt===void 0?378:Gt,Je=qe.mask,It=Je===void 0?!0:Je,tn=qe.maskClosable,mn=tn===void 0?!0:tn,nt=qe.getContainer,Nt=qe.forceRender,Jt=qe.afterOpenChange,xt=qe.destroyOnClose,Wt=qe.onMouseEnter,qt=qe.onMouseOver,Tn=qe.onMouseLeave,Gn=qe.onClick,On=qe.onKeyDown,Hn=qe.onKeyUp,Zt=qe.panelRef,Dn=y.useState(!1),nn=(0,xe.Z)(Dn,2),Sn=nn[0],rn=nn[1],En=y.useState(!1),xn=(0,xe.Z)(En,2),Vn=xn[0],sr=xn[1];(0,Se.Z)(function(){sr(!0)},[]);var er=Vn?At:!1,cr=y.useRef(),Dr=y.useRef();(0,Se.Z)(function(){er&&(Dr.current=document.activeElement)},[er]);var mr=function(dr){var vr;if(rn(dr),Jt==null||Jt(dr),!dr&&Dr.current&&!((vr=cr.current)!==null&&vr!==void 0&&vr.contains(Dr.current))){var Mt;(Mt=Dr.current)===null||Mt===void 0||Mt.focus({preventScroll:!0})}},Hr=y.useMemo(function(){return{panel:Zt}},[Zt]);if(!Nt&&!Sn&&!er&&xt)return null;var Lr={onMouseEnter:Wt,onMouseOver:qt,onMouseLeave:Tn,onClick:Gn,onKeyDown:On,onKeyUp:Hn},An=(0,Le.Z)((0,Le.Z)({},qe),{},{open:er,prefixCls:Ye,placement:Vt,autoFocus:wn,keyboard:kt,width:Pt,mask:It,maskClosable:mn,inline:nt===!1,afterOpenChange:mr,ref:cr},Lr);return y.createElement(Be.Provider,{value:Hr},y.createElement(ge.Z,{open:er||Nt||Sn,autoDestroy:!1,getContainer:nt,autoLock:It&&(er||Sn)},y.createElement(ot,An)))},Ee=Ue,We=Ee,Ae=E(62487),de=E(75030),wt=E(86641),Qe=E(55743),Ge=E(48755),st=E(91190),Ce=E(78776),be=E(458),zt=at=>{var qe,bt;const{prefixCls:At,title:$t,footer:Ye,extra:rt,loading:Vt,onClose:sn,headerStyle:wn,bodyStyle:pn,footerStyle:kt,children:Gt,classNames:Pt,styles:Je}=at,It=(0,Ge.dj)("drawer"),tn=y.useCallback(xt=>y.createElement("button",{type:"button",onClick:sn,"aria-label":"Close",className:`${At}-close`},xt),[sn]),[mn,nt]=(0,Ce.Z)((0,Ce.w)(at),(0,Ce.w)(It),{closable:!0,closeIconRender:tn}),Nt=y.useMemo(()=>{var xt,Wt;return!$t&&!mn?null:y.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(xt=It.styles)===null||xt===void 0?void 0:xt.header),wn),Je==null?void 0:Je.header),className:ce()(`${At}-header`,{[`${At}-header-close-only`]:mn&&!$t&&!rt},(Wt=It.classNames)===null||Wt===void 0?void 0:Wt.header,Pt==null?void 0:Pt.header)},y.createElement("div",{className:`${At}-header-title`},nt,$t&&y.createElement("div",{className:`${At}-title`},$t)),rt&&y.createElement("div",{className:`${At}-extra`},rt))},[mn,nt,rt,wn,At,$t]),Jt=y.useMemo(()=>{var xt,Wt;if(!Ye)return null;const qt=`${At}-footer`;return y.createElement("div",{className:ce()(qt,(xt=It.classNames)===null||xt===void 0?void 0:xt.footer,Pt==null?void 0:Pt.footer),style:Object.assign(Object.assign(Object.assign({},(Wt=It.styles)===null||Wt===void 0?void 0:Wt.footer),kt),Je==null?void 0:Je.footer)},Ye)},[Ye,kt,At]);return y.createElement(y.Fragment,null,Nt,y.createElement("div",{className:ce()(`${At}-body`,Pt==null?void 0:Pt.body,(qe=It.classNames)===null||qe===void 0?void 0:qe.body),style:Object.assign(Object.assign(Object.assign({},(bt=It.styles)===null||bt===void 0?void 0:bt.body),pn),Je==null?void 0:Je.body)},Vt?y.createElement(be.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${At}-body-skeleton`}):Gt),Jt)},jt=E(36237),De=E(63356),pt=E(16931),ut=E(51636);const Qt=at=>{const qe="100%";return{left:`translateX(-${qe})`,right:`translateX(${qe})`,top:`translateY(-${qe})`,bottom:`translateY(${qe})`}[at]},yt=(at,qe)=>({"&-enter, &-appear":Object.assign(Object.assign({},at),{"&-active":qe}),"&-leave":Object.assign(Object.assign({},qe),{"&-active":at})}),Ct=(at,qe)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${qe}`}}},yt({opacity:at},{opacity:1})),mt=(at,qe)=>[Ct(.7,qe),yt({transform:Qt(at)},{transform:"none"})];var Ht=at=>{const{componentCls:qe,motionDurationSlow:bt}=at;return{[qe]:{[`${qe}-mask-motion`]:Ct(0,bt),[`${qe}-panel-motion`]:["left","right","top","bottom"].reduce((At,$t)=>Object.assign(Object.assign({},At),{[`&-${$t}`]:mt($t,bt)}),{})}}};const ue=at=>{const{borderRadiusSM:qe,componentCls:bt,zIndexPopup:At,colorBgMask:$t,colorBgElevated:Ye,motionDurationSlow:rt,motionDurationMid:Vt,paddingXS:sn,padding:wn,paddingLG:pn,fontSizeLG:kt,lineHeightLG:Gt,lineWidth:Pt,lineType:Je,colorSplit:It,marginXS:tn,colorIcon:mn,colorIconHover:nt,colorBgTextHover:Nt,colorBgTextActive:Jt,colorText:xt,fontWeightStrong:Wt,footerPaddingBlock:qt,footerPaddingInline:Tn,calc:Gn}=at,On=`${bt}-content-wrapper`;return{[bt]:{position:"fixed",inset:0,zIndex:At,pointerEvents:"none",color:xt,"&-pure":{position:"relative",background:Ye,display:"flex",flexDirection:"column",[`&${bt}-left`]:{boxShadow:at.boxShadowDrawerLeft},[`&${bt}-right`]:{boxShadow:at.boxShadowDrawerRight},[`&${bt}-top`]:{boxShadow:at.boxShadowDrawerUp},[`&${bt}-bottom`]:{boxShadow:at.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${bt}-mask`]:{position:"absolute",inset:0,zIndex:At,background:$t,pointerEvents:"auto"},[On]:{position:"absolute",zIndex:At,maxWidth:"100vw",transition:`all ${rt}`,"&-hidden":{display:"none"}},[`&-left > ${On}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:at.boxShadowDrawerLeft},[`&-right > ${On}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:at.boxShadowDrawerRight},[`&-top > ${On}`]:{top:0,insetInline:0,boxShadow:at.boxShadowDrawerUp},[`&-bottom > ${On}`]:{bottom:0,insetInline:0,boxShadow:at.boxShadowDrawerDown},[`${bt}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Ye,pointerEvents:"auto"},[`${bt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,jt.unit)(wn)} ${(0,jt.unit)(pn)}`,fontSize:kt,lineHeight:Gt,borderBottom:`${(0,jt.unit)(Pt)} ${Je} ${It}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${bt}-extra`]:{flex:"none"},[`${bt}-close`]:Object.assign({display:"inline-flex",width:Gn(kt).add(sn).equal(),height:Gn(kt).add(sn).equal(),borderRadius:qe,justifyContent:"center",alignItems:"center",marginInlineEnd:tn,color:mn,fontWeight:Wt,fontSize:kt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Vt}`,textRendering:"auto","&:hover":{color:nt,backgroundColor:Nt,textDecoration:"none"},"&:active":{backgroundColor:Jt}},(0,De.Qy)(at)),[`${bt}-title`]:{flex:1,margin:0,fontWeight:at.fontWeightStrong,fontSize:kt,lineHeight:Gt},[`${bt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:pn,overflow:"auto",[`${bt}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${bt}-footer`]:{flexShrink:0,padding:`${(0,jt.unit)(qt)} ${(0,jt.unit)(Tn)}`,borderTop:`${(0,jt.unit)(Pt)} ${Je} ${It}`},"&-rtl":{direction:"rtl"}}}},ie=at=>({zIndexPopup:at.zIndexPopupBase,footerPaddingBlock:at.paddingXS,footerPaddingInline:at.padding});var re=(0,pt.I$)("Drawer",at=>{const qe=(0,ut.mergeToken)(at,{});return[ue(qe),Ht(qe)]},ie),oe=function(at,qe){var bt={};for(var At in at)Object.prototype.hasOwnProperty.call(at,At)&&qe.indexOf(At)<0&&(bt[At]=at[At]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,At=Object.getOwnPropertySymbols(at);$t<At.length;$t++)qe.indexOf(At[$t])<0&&Object.prototype.propertyIsEnumerable.call(at,At[$t])&&(bt[At[$t]]=at[At[$t]]);return bt};const pe=null,ae={distance:180},me=at=>{var qe;const{rootClassName:bt,width:At,height:$t,size:Ye="default",mask:rt=!0,push:Vt=ae,open:sn,afterOpenChange:wn,onClose:pn,prefixCls:kt,getContainer:Gt,style:Pt,className:Je,visible:It,afterVisibleChange:tn,maskStyle:mn,drawerStyle:nt,contentWrapperStyle:Nt}=at,Jt=oe(at,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:xt,getPrefixCls:Wt,direction:qt,className:Tn,style:Gn,classNames:On,styles:Hn}=(0,Ge.dj)("drawer"),Zt=Wt("drawer",kt),[Dn,nn,Sn]=re(Zt),rn=Gt===void 0&&xt?()=>xt(document.body):Gt,En=ce()({"no-mask":!rt,[`${Zt}-rtl`]:qt==="rtl"},bt,nn,Sn),xn=y.useMemo(()=>At!=null?At:Ye==="large"?736:378,[At,Ye]),Vn=y.useMemo(()=>$t!=null?$t:Ye==="large"?736:378,[$t,Ye]),sr={motionName:(0,wt.m)(Zt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},er=An=>({motionName:(0,wt.m)(Zt,`panel-motion-${An}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),cr=(0,st.H)(),[Dr,mr]=(0,de.Cn)("Drawer",Jt.zIndex),{classNames:Hr={},styles:Lr={}}=Jt;return Dn(y.createElement(Ae.Z,{form:!0,space:!0},y.createElement(Qe.Z.Provider,{value:mr},y.createElement(We,Object.assign({prefixCls:Zt,onClose:pn,maskMotion:sr,motion:er},Jt,{classNames:{mask:ce()(Hr.mask,On.mask),content:ce()(Hr.content,On.content),wrapper:ce()(Hr.wrapper,On.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},Lr.mask),mn),Hn.mask),content:Object.assign(Object.assign(Object.assign({},Lr.content),nt),Hn.content),wrapper:Object.assign(Object.assign(Object.assign({},Lr.wrapper),Nt),Hn.wrapper)},open:sn!=null?sn:It,mask:rt,push:Vt,width:xn,height:Vn,style:Object.assign(Object.assign({},Gn),Pt),className:ce()(Tn,Je),rootClassName:En,getContainer:rn,afterOpenChange:wn!=null?wn:tn,panelRef:cr,zIndex:Dr}),y.createElement(zt,Object.assign({prefixCls:Zt},Jt,{onClose:pn}))))))},Ze=at=>{const{prefixCls:qe,style:bt,className:At,placement:$t="right"}=at,Ye=oe(at,["prefixCls","style","className","placement"]),{getPrefixCls:rt}=y.useContext(Ge.E_),Vt=rt("drawer",qe),[sn,wn,pn]=re(Vt),kt=ce()(Vt,`${Vt}-pure`,`${Vt}-${$t}`,wn,pn,At);return sn(y.createElement("div",{className:kt,style:bt},y.createElement(zt,Object.assign({prefixCls:Vt},Ye))))};me._InternalPanelDoNotUseOrYouWillBeFired=Ze;var Ot=me},19563:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return jt}});var y=E(59301),ve=E(33853),ce=E(38819),Le=E(92310),xe=E.n(Le),ge=E(96478),Se=E(6089),Ne=E(18929),Be=E(2738),fe=E(75030),Oe=De=>typeof De!="object"&&typeof De!="function"||De===null,ct=E(52838),Ke=E(45915),Te=E(22703),we=E(32383),Ie=E(55743),Pe=E(48755),tt=E(83397),Et=E(93041),_e=E(78857),Fe=E(57700),He=E(36237),Xe=E(63356),St=E(46e3),gt=E(93873),ot=E(34925),Ue=E(37645),Ee=E(36305),We=E(16931),Ae=E(51636),wt=De=>{const{componentCls:pt,menuCls:ut,colorError:Qt,colorTextLightSolid:yt}=De,Ct=`${ut}-item`;return{[`${pt}, ${pt}-menu-submenu`]:{[`${ut} ${Ct}`]:{[`&${Ct}-danger:not(${Ct}-disabled)`]:{color:Qt,"&:hover":{color:yt,backgroundColor:Qt}}}}}};const Qe=De=>{const{componentCls:pt,menuCls:ut,zIndexPopup:Qt,dropdownArrowDistance:yt,sizePopupArrow:Ct,antCls:mt,iconCls:dn,motionDurationMid:Ht,paddingBlock:ue,fontSize:ie,dropdownEdgeChildPadding:re,colorTextDisabled:oe,fontSizeIcon:pe,controlPaddingHorizontal:ae,colorBgElevated:me}=De;return[{[pt]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Qt,display:"block","&::before":{position:"absolute",insetBlock:De.calc(Ct).div(2).sub(yt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${mt}-btn`]:{[`& > ${dn}-down, & > ${mt}-btn-icon > ${dn}-down`]:{fontSize:pe}},[`${pt}-wrap`]:{position:"relative",[`${mt}-btn > ${dn}-down`]:{fontSize:pe},[`${dn}-down::before`]:{transition:`transform ${Ht}`}},[`${pt}-wrap-open`]:{[`${dn}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${mt}-slide-down-enter${mt}-slide-down-enter-active${pt}-placement-bottomLeft,
|
|
|
&${mt}-slide-down-appear${mt}-slide-down-appear-active${pt}-placement-bottomLeft,
|
|
|
&${mt}-slide-down-enter${mt}-slide-down-enter-active${pt}-placement-bottom,
|
|
|
&${mt}-slide-down-appear${mt}-slide-down-appear-active${pt}-placement-bottom,
|
|
|
&${mt}-slide-down-enter${mt}-slide-down-enter-active${pt}-placement-bottomRight,
|
|
|
&${mt}-slide-down-appear${mt}-slide-down-appear-active${pt}-placement-bottomRight`]:{animationName:St.fJ},[`&${mt}-slide-up-enter${mt}-slide-up-enter-active${pt}-placement-topLeft,
|
|
|
&${mt}-slide-up-appear${mt}-slide-up-appear-active${pt}-placement-topLeft,
|
|
|
&${mt}-slide-up-enter${mt}-slide-up-enter-active${pt}-placement-top,
|
|
|
&${mt}-slide-up-appear${mt}-slide-up-appear-active${pt}-placement-top,
|
|
|
&${mt}-slide-up-enter${mt}-slide-up-enter-active${pt}-placement-topRight,
|
|
|
&${mt}-slide-up-appear${mt}-slide-up-appear-active${pt}-placement-topRight`]:{animationName:St.Qt},[`&${mt}-slide-down-leave${mt}-slide-down-leave-active${pt}-placement-bottomLeft,
|
|
|
&${mt}-slide-down-leave${mt}-slide-down-leave-active${pt}-placement-bottom,
|
|
|
&${mt}-slide-down-leave${mt}-slide-down-leave-active${pt}-placement-bottomRight`]:{animationName:St.Uw},[`&${mt}-slide-up-leave${mt}-slide-up-leave-active${pt}-placement-topLeft,
|
|
|
&${mt}-slide-up-leave${mt}-slide-up-leave-active${pt}-placement-top,
|
|
|
&${mt}-slide-up-leave${mt}-slide-up-leave-active${pt}-placement-topRight`]:{animationName:St.ly}}},(0,Ue.ZP)(De,me,{arrowPlacement:{top:!0,bottom:!0}}),{[`${pt} ${ut}`]:{position:"relative",margin:0},[`${ut}-submenu-popup`]:{position:"absolute",zIndex:Qt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${pt}, ${pt}-menu-submenu`]:Object.assign(Object.assign({},(0,Xe.Wf)(De)),{[ut]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:me,backgroundClip:"padding-box",borderRadius:De.borderRadiusLG,outline:"none",boxShadow:De.boxShadowSecondary},(0,Xe.Qy)(De)),{"&:empty":{padding:0,boxShadow:"none"},[`${ut}-item-group-title`]:{padding:`${(0,He.unit)(ue)} ${(0,He.unit)(ae)}`,color:De.colorTextDescription,transition:`all ${Ht}`},[`${ut}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ut}-item-icon`]:{minWidth:ie,marginInlineEnd:De.marginXS,fontSize:De.fontSizeSM},[`${ut}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${Ht}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${ut}-item-extra`]:{paddingInlineStart:De.padding,marginInlineStart:"auto",fontSize:De.fontSizeSM,color:De.colorTextDescription}},[`${ut}-item, ${ut}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,He.unit)(ue)} ${(0,He.unit)(ae)}`,color:De.colorText,fontWeight:"normal",fontSize:ie,lineHeight:De.lineHeight,cursor:"pointer",transition:`all ${Ht}`,borderRadius:De.borderRadiusSM,"&:hover, &-active":{backgroundColor:De.controlItemBgHover}},(0,Xe.Qy)(De)),{"&-selected":{color:De.colorPrimary,backgroundColor:De.controlItemBgActive,"&:hover, &-active":{backgroundColor:De.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:me,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,He.unit)(De.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:De.colorSplit},[`${pt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:De.paddingXS,[`${pt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:De.colorTextDescription,fontSize:pe,fontStyle:"normal"}}}),[`${ut}-item-group-list`]:{margin:`0 ${(0,He.unit)(De.marginXS)}`,padding:0,listStyle:"none"},[`${ut}-submenu-title`]:{paddingInlineEnd:De.calc(ae).add(De.fontSizeSM).equal()},[`${ut}-submenu-vertical`]:{position:"relative"},[`${ut}-submenu${ut}-submenu-disabled ${pt}-menu-submenu-title`]:{[`&, ${pt}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:me,cursor:"not-allowed"}},[`${ut}-submenu-selected ${pt}-menu-submenu-title`]:{color:De.colorPrimary}})})},[(0,St.oN)(De,"slide-up"),(0,St.oN)(De,"slide-down"),(0,gt.Fm)(De,"move-up"),(0,gt.Fm)(De,"move-down"),(0,ot._y)(De,"zoom-big")]]},Ge=De=>Object.assign(Object.assign({zIndexPopup:De.zIndexPopupBase+50,paddingBlock:(De.controlHeight-De.fontSize*De.lineHeight)/2},(0,Ue.wZ)({contentRadius:De.borderRadiusLG,limitVerticalRadius:!0})),(0,Ee.w)(De));var st=(0,We.I$)("Dropdown",De=>{const{marginXXS:pt,sizePopupArrow:ut,paddingXXS:Qt,componentCls:yt}=De,Ct=(0,Ae.mergeToken)(De,{menuCls:`${yt}-menu`,dropdownArrowDistance:De.calc(ut).div(2).add(pt).equal(),dropdownEdgeChildPadding:Qt});return[Qe(Ct),wt(Ct)]},Ge,{resetStyle:!1});const Ce=null,be=De=>{var pt;const{menu:ut,arrow:Qt,prefixCls:yt,children:Ct,trigger:mt,disabled:dn,dropdownRender:Ht,getPopupContainer:ue,overlayClassName:ie,rootClassName:re,overlayStyle:oe,open:pe,onOpenChange:ae,visible:me,onVisibleChange:Ze,mouseEnterDelay:Ot=.15,mouseLeaveDelay:at=.1,autoAdjustOverflow:qe=!0,placement:bt="",overlay:At,transitionName:$t}=De,{getPopupContainer:Ye,getPrefixCls:rt,direction:Vt,dropdown:sn}=y.useContext(Pe.E_),wn=(0,we.ln)("Dropdown"),pn=y.useMemo(()=>{const rn=rt();return $t!==void 0?$t:bt.includes("top")?`${rn}-slide-down`:`${rn}-slide-up`},[rt,bt,$t]),kt=y.useMemo(()=>bt?bt.includes("Center")?bt.slice(0,bt.indexOf("Center")):bt:Vt==="rtl"?"bottomRight":"bottomLeft",[bt,Vt]),Gt=rt("dropdown",yt),Pt=(0,tt.Z)(Gt),[Je,It,tn]=st(Gt,Pt),[,mn]=(0,Fe.ZP)(),nt=y.Children.only(Oe(Ct)?y.createElement("span",null,Ct):Ct),Nt=(0,Te.Tm)(nt,{className:xe()(`${Gt}-trigger`,{[`${Gt}-rtl`]:Vt==="rtl"},nt.props.className),disabled:(pt=nt.props.disabled)!==null&&pt!==void 0?pt:dn}),Jt=dn?[]:mt,xt=!!(Jt!=null&&Jt.includes("contextMenu")),[Wt,qt]=(0,Ne.Z)(!1,{value:pe!=null?pe:me}),Tn=(0,Se.Z)(rn=>{ae==null||ae(rn,{source:"trigger"}),Ze==null||Ze(rn),qt(rn)}),Gn=xe()(ie,re,It,tn,Pt,sn==null?void 0:sn.className,{[`${Gt}-rtl`]:Vt==="rtl"}),On=(0,ct.Z)({arrowPointAtCenter:typeof Qt=="object"&&Qt.pointAtCenter,autoAdjustOverflow:qe,offset:mn.marginXXS,arrowWidth:Qt?mn.sizePopupArrow:0,borderRadius:mn.borderRadius}),Hn=y.useCallback(()=>{ut!=null&&ut.selectable&&(ut!=null&&ut.multiple)||(ae==null||ae(!1,{source:"menu"}),qt(!1))},[ut==null?void 0:ut.selectable,ut==null?void 0:ut.multiple]),Zt=()=>{let rn;return ut!=null&&ut.items?rn=y.createElement(Et.default,Object.assign({},ut)):typeof At=="function"?rn=At():rn=At,Ht&&(rn=Ht(rn)),rn=y.Children.only(typeof rn=="string"?y.createElement("span",null,rn):rn),y.createElement(_e.J,{prefixCls:`${Gt}-menu`,rootClassName:xe()(tn,Pt),expandIcon:y.createElement("span",{className:`${Gt}-menu-submenu-arrow`},Vt==="rtl"?y.createElement(ve.Z,{className:`${Gt}-menu-submenu-arrow-icon`}):y.createElement(ce.Z,{className:`${Gt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Hn,validator:En=>{let{mode:xn}=En}},rn)},[Dn,nn]=(0,fe.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let Sn=y.createElement(ge.Z,Object.assign({alignPoint:xt},(0,Be.Z)(De,["rootClassName"]),{mouseEnterDelay:Ot,mouseLeaveDelay:at,visible:Wt,builtinPlacements:On,arrow:!!Qt,overlayClassName:Gn,prefixCls:Gt,getPopupContainer:ue||Ye,transitionName:pn,trigger:Jt,overlay:Zt,placement:kt,onVisibleChange:Tn,overlayStyle:Object.assign(Object.assign(Object.assign({},sn==null?void 0:sn.style),oe),{zIndex:Dn})}),Nt);return Dn&&(Sn=y.createElement(Ie.Z.Provider,{value:nn},Sn)),Je(Sn)},vt=(0,Ke.Z)(be,"align",void 0,"dropdown",De=>De),zt=De=>y.createElement(vt,Object.assign({},De),y.createElement("span",null));be._InternalPanelDoNotUseOrYouWillBeFired=zt;var jt=be},75727:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Ke}});var y=E(19563),ve=E(59301),ce=E(18785),Le=E(92310),xe=E.n(Le),ge=E(7939),Se=E(48755),Ne=E(44104),Be=E(70045),fe=function(Te,we){var Ie={};for(var Pe in Te)Object.prototype.hasOwnProperty.call(Te,Pe)&&we.indexOf(Pe)<0&&(Ie[Pe]=Te[Pe]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Pe=Object.getOwnPropertySymbols(Te);tt<Pe.length;tt++)we.indexOf(Pe[tt])<0&&Object.prototype.propertyIsEnumerable.call(Te,Pe[tt])&&(Ie[Pe[tt]]=Te[Pe[tt]]);return Ie};const $e=Te=>{const{getPopupContainer:we,getPrefixCls:Ie,direction:Pe}=ve.useContext(Se.E_),{prefixCls:tt,type:Et="default",danger:_e,disabled:Fe,loading:He,onClick:Xe,htmlType:St,children:gt,className:ot,menu:Ue,arrow:Ee,autoFocus:We,overlay:Ae,trigger:de,align:wt,open:Qe,onOpenChange:Ge,placement:st,getPopupContainer:Ce,href:be,icon:vt=ve.createElement(ce.Z,null),title:zt,buttonsRender:jt=Ot=>Ot,mouseEnterDelay:De,mouseLeaveDelay:pt,overlayClassName:ut,overlayStyle:Qt,destroyPopupOnHide:yt,dropdownRender:Ct}=Te,mt=fe(Te,["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"]),dn=Ie("dropdown",tt),Ht=`${dn}-button`,ue={menu:Ue,arrow:Ee,autoFocus:We,align:wt,disabled:Fe,trigger:Fe?[]:de,onOpenChange:Ge,getPopupContainer:Ce||we,mouseEnterDelay:De,mouseLeaveDelay:pt,overlayClassName:ut,overlayStyle:Qt,destroyPopupOnHide:yt,dropdownRender:Ct},{compactSize:ie,compactItemClassnames:re}=(0,Be.ri)(dn,Pe),oe=xe()(Ht,re,ot);"overlay"in Te&&(ue.overlay=Ae),"open"in Te&&(ue.open=Qe),"placement"in Te?ue.placement=st:ue.placement=Pe==="rtl"?"bottomLeft":"bottomRight";const pe=ve.createElement(ge.ZP,{type:Et,danger:_e,disabled:Fe,loading:He,onClick:Xe,htmlType:St,href:be,title:zt},gt),ae=ve.createElement(ge.ZP,{type:Et,danger:_e,icon:vt}),[me,Ze]=jt([pe,ae]);return ve.createElement(Ne.Z.Compact,Object.assign({className:oe,size:ie,block:!0},mt),me,ve.createElement(y.Z,Object.assign({},ue),Ze))};$e.__ANT_BUTTON=!0;var Oe=$e;const ct=y.Z;ct.Button=Oe;var Ke=ct},584:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Et}});var y=E(59301),ve=E(92310),ce=E.n(ve),Le=E(9017),xe=E(17835),ge=E(57700),Ne=()=>{const[,_e]=(0,ge.ZP)(),[Fe]=(0,Le.Z)("Empty"),Xe=new xe.FastColor(_e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return y.createElement("svg",{style:Xe,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},y.createElement("title",null,(Fe==null?void 0:Fe.description)||"Empty"),y.createElement("g",{fill:"none",fillRule:"evenodd"},y.createElement("g",{transform:"translate(24 31.67)"},y.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),y.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),y.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),y.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),y.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),y.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),y.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},y.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),y.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},fe=()=>{const[,_e]=(0,ge.ZP)(),[Fe]=(0,Le.Z)("Empty"),{colorFill:He,colorFillTertiary:Xe,colorFillQuaternary:St,colorBgContainer:gt}=_e,{borderColor:ot,shadowColor:Ue,contentColor:Ee}=(0,y.useMemo)(()=>({borderColor:new xe.FastColor(He).onBackground(gt).toHexString(),shadowColor:new xe.FastColor(Xe).onBackground(gt).toHexString(),contentColor:new xe.FastColor(St).onBackground(gt).toHexString()}),[He,Xe,St,gt]);return y.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},y.createElement("title",null,(Fe==null?void 0:Fe.description)||"Empty"),y.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},y.createElement("ellipse",{fill:Ue,cx:"32",cy:"33",rx:"32",ry:"7"}),y.createElement("g",{fillRule:"nonzero",stroke:ot},y.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),y.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Ee}))))},$e=E(16931),Oe=E(51636);const ct=_e=>{const{componentCls:Fe,margin:He,marginXS:Xe,marginXL:St,fontSize:gt,lineHeight:ot}=_e;return{[Fe]:{marginInline:Xe,fontSize:gt,lineHeight:ot,textAlign:"center",[`${Fe}-image`]:{height:_e.emptyImgHeight,marginBottom:Xe,opacity:_e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Fe}-description`]:{color:_e.colorTextDescription},[`${Fe}-footer`]:{marginTop:He},"&-normal":{marginBlock:St,color:_e.colorTextDescription,[`${Fe}-description`]:{color:_e.colorTextDescription},[`${Fe}-image`]:{height:_e.emptyImgHeightMD}},"&-small":{marginBlock:Xe,color:_e.colorTextDescription,[`${Fe}-image`]:{height:_e.emptyImgHeightSM}}}}};var Ke=(0,$e.I$)("Empty",_e=>{const{componentCls:Fe,controlHeightLG:He,calc:Xe}=_e,St=(0,Oe.mergeToken)(_e,{emptyImgCls:`${Fe}-img`,emptyImgHeight:Xe(He).mul(2.5).equal(),emptyImgHeightMD:He,emptyImgHeightSM:Xe(He).mul(.875).equal()});return[ct(St)]}),Te=E(48755),we=function(_e,Fe){var He={};for(var Xe in _e)Object.prototype.hasOwnProperty.call(_e,Xe)&&Fe.indexOf(Xe)<0&&(He[Xe]=_e[Xe]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,Xe=Object.getOwnPropertySymbols(_e);St<Xe.length;St++)Fe.indexOf(Xe[St])<0&&Object.prototype.propertyIsEnumerable.call(_e,Xe[St])&&(He[Xe[St]]=_e[Xe[St]]);return He};const Ie=y.createElement(Ne,null),Pe=y.createElement(fe,null),tt=_e=>{const{className:Fe,rootClassName:He,prefixCls:Xe,image:St=Ie,description:gt,children:ot,imageStyle:Ue,style:Ee,classNames:We,styles:Ae}=_e,de=we(_e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:wt,direction:Qe,className:Ge,style:st,classNames:Ce,styles:be}=(0,Te.dj)("empty"),vt=wt("empty",Xe),[zt,jt,De]=Ke(vt),[pt]=(0,Le.Z)("Empty"),ut=typeof gt!="undefined"?gt:pt==null?void 0:pt.description,Qt=typeof ut=="string"?ut:"empty";let yt=null;return typeof St=="string"?yt=y.createElement("img",{alt:Qt,src:St}):yt=St,zt(y.createElement("div",Object.assign({className:ce()(jt,De,vt,Ge,{[`${vt}-normal`]:St===Pe,[`${vt}-rtl`]:Qe==="rtl"},Fe,He,Ce.root,We==null?void 0:We.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},be.root),st),Ae==null?void 0:Ae.root),Ee)},de),y.createElement("div",{className:ce()(`${vt}-image`,Ce.image,We==null?void 0:We.image),style:Object.assign(Object.assign(Object.assign({},Ue),be.image),Ae==null?void 0:Ae.image)},yt),ut&&y.createElement("div",{className:ce()(`${vt}-description`,Ce.description,We==null?void 0:We.description),style:Object.assign(Object.assign({},be.description),Ae==null?void 0:Ae.description)},ut),ot&&y.createElement("div",{className:ce()(`${vt}-footer`,Ce.footer,We==null?void 0:We.footer),style:Object.assign(Object.assign({},be.footer),Ae==null?void 0:Ae.footer)},ot)))};tt.PRESENTED_IMAGE_DEFAULT=Ie,tt.PRESENTED_IMAGE_SIMPLE=Pe;var Et=tt},28284:function(Mn,Yt,E){"use strict";E.d(Yt,{default:function(){return Kt}});var y=E(56553),ve=E(94480),ce=E(59301),Le=E(92310),xe=E.n(Le),ge=E(77900),Se=E(86641),Ne=E(83397);function Be(ft){const[Rt,it]=ce.useState(ft);return ce.useEffect(()=>{const ht=setTimeout(()=>{it(ft)},ft.length?0:10);return()=>{clearTimeout(ht)}},[ft]),Rt}var fe=E(36237),$e=E(63356),Oe=E(34925),ct=E(34961),Ke=E(51636),Te=E(16931),Ie=ft=>{const{componentCls:Rt}=ft,it=`${Rt}-show-help`,ht=`${Rt}-show-help-item`;return{[it]:{transition:`opacity ${ft.motionDurationFast} ${ft.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[ht]:{overflow:"hidden",transition:`height ${ft.motionDurationFast} ${ft.motionEaseInOut},
|
|
|
opacity ${ft.motionDurationFast} ${ft.motionEaseInOut},
|
|
|
transform ${ft.motionDurationFast} ${ft.motionEaseInOut} !important`,[`&${ht}-appear, &${ht}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${ht}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Pe=ft=>({legend:{display:"block",width:"100%",marginBottom:ft.marginLG,padding:0,color:ft.colorTextDescription,fontSize:ft.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,fe.unit)(ft.lineWidth)} ${ft.lineType} ${ft.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,fe.unit)(ft.controlOutlineWidth)} ${ft.controlOutline}`},output:{display:"block",paddingTop:15,color:ft.colorText,fontSize:ft.fontSize,lineHeight:ft.lineHeight}}),tt=(ft,Rt)=>{const{formItemCls:it}=ft;return{[it]:{[`${it}-label > label`]:{height:Rt},[`${it}-control-input`]:{minHeight:Rt}}}},Et=ft=>{const{componentCls:Rt}=ft;return{[ft.componentCls]:Object.assign(Object.assign(Object.assign({},(0,$e.Wf)(ft)),Pe(ft)),{[`${Rt}-text`]:{display:"inline-block",paddingInlineEnd:ft.paddingSM},"&-small":Object.assign({},tt(ft,ft.controlHeightSM)),"&-large":Object.assign({},tt(ft,ft.controlHeightLG))})}},_e=ft=>{const{formItemCls:Rt,iconCls:it,rootPrefixCls:ht,antCls:fn,labelRequiredMarkColor:ar,labelColor:pr,labelFontSize:Ft,labelHeight:Tt,labelColonMarginInlineStart:_t,labelColonMarginInlineEnd:Ut,itemMarginBottom:Fn}=ft;return{[Rt]:Object.assign(Object.assign({},(0,$e.Wf)(ft)),{marginBottom:Fn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden${fn}-row`]:{display:"none"},"&-has-warning":{[`${Rt}-split`]:{color:ft.colorError}},"&-has-error":{[`${Rt}-split`]:{color:ft.colorWarning}},[`${Rt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:ft.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Tt,color:pr,fontSize:Ft,[`> ${it}`]:{fontSize:ft.fontSize,verticalAlign:"top"},[`&${Rt}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:ft.marginXXS,color:ar,fontSize:ft.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${Rt}-required-mark-hidden, &${Rt}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${Rt}-optional`]:{display:"inline-block",marginInlineStart:ft.marginXXS,color:ft.colorTextDescription,[`&${Rt}-required-mark-hidden`]:{display:"none"}},[`${Rt}-tooltip`]:{color:ft.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:ft.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:_t,marginInlineEnd:Ut},[`&${Rt}-no-colon::after`]:{content:'"\\a0"'}}},[`${Rt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${ht}-col-'"]):not([class*="' ${ht}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:ft.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Rt]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:ft.colorTextDescription,fontSize:ft.fontSize,lineHeight:ft.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:ft.controlHeightSM,transition:`color ${ft.motionDurationMid} ${ft.motionEaseOut}`},"&-explain":{"&-error":{color:ft.colorError},"&-warning":{color:ft.colorWarning}}},[`&-with-help ${Rt}-explain`]:{height:"auto",opacity:1},[`${Rt}-feedback-icon`]:{fontSize:ft.fontSize,textAlign:"center",visibility:"visible",animationName:Oe.kr,animationDuration:ft.motionDurationMid,animationTimingFunction:ft.motionEaseOutBack,pointerEvents:"none","&-success":{color:ft.colorSuccess},"&-error":{color:ft.colorError},"&-warning":{color:ft.colorWarning},"&-validating":{color:ft.colorPrimary}}})}},Fe=(ft,Rt)=>{const{formItemCls:it}=ft;return{[`${Rt}-horizontal`]:{[`${it}-label`]:{flexGrow:0},[`${it}-control`]:{flex:"1 1 0",minWidth:0},[`${it}-label[class$='-24'], ${it}-label[class*='-24 ']`]:{[`& + ${it}-control`]:{minWidth:"unset"}}}}},He=ft=>{const{componentCls:Rt,formItemCls:it,inlineItemMarginBottom:ht}=ft;return{[`${Rt}-inline`]:{display:"flex",flexWrap:"wrap",[it]:{flex:"none",marginInlineEnd:ft.margin,marginBottom:ht,"&-row":{flexWrap:"nowrap"},[`> ${it}-label,
|
|
|
> ${it}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${it}-label`]:{flex:"none"},[`${Rt}-text`]:{display:"inline-block"},[`${it}-has-feedback`]:{display:"inline-block"}}}}},Xe=ft=>({padding:ft.verticalLabelPadding,margin:ft.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),St=ft=>{const{componentCls:Rt,formItemCls:it,rootPrefixCls:ht}=ft;return{[`${it} ${it}-label`]:Xe(ft),[`${Rt}:not(${Rt}-inline)`]:{[it]:{flexWrap:"wrap",[`${it}-label, ${it}-control`]:{[`&:not([class*=" ${ht}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},gt=ft=>{const{componentCls:Rt,formItemCls:it,antCls:ht}=ft;return{[`${Rt}-vertical`]:{[`${it}:not(${it}-horizontal)`]:{[`${it}-row`]:{flexDirection:"column"},[`${it}-label > label`]:{height:"auto"},[`${it}-control`]:{width:"100%"},[`${it}-label,
|
|
|
${ht}-col-24${it}-label,
|
|
|
${ht}-col-xl-24${it}-label`]:Xe(ft)}},[`@media (max-width: ${(0,fe.unit)(ft.screenXSMax)})`]:[St(ft),{[Rt]:{[`${it}:not(${it}-horizontal)`]:{[`${ht}-col-xs-24${it}-label`]:Xe(ft)}}}],[`@media (max-width: ${(0,fe.unit)(ft.screenSMMax)})`]:{[Rt]:{[`${it}:not(${it}-horizontal)`]:{[`${ht}-col-sm-24${it}-label`]:Xe(ft)}}},[`@media (max-width: ${(0,fe.unit)(ft.screenMDMax)})`]:{[Rt]:{[`${it}:not(${it}-horizontal)`]:{[`${ht}-col-md-24${it}-label`]:Xe(ft)}}},[`@media (max-width: ${(0,fe.unit)(ft.screenLGMax)})`]:{[Rt]:{[`${it}:not(${it}-horizontal)`]:{[`${ht}-col-lg-24${it}-label`]:Xe(ft)}}}}},ot=ft=>{const{formItemCls:Rt,antCls:it}=ft;return{[`${Rt}-vertical`]:{[`${Rt}-row`]:{flexDirection:"column"},[`${Rt}-label > label`]:{height:"auto"},[`${Rt}-control`]:{width:"100%"}},[`${Rt}-vertical ${Rt}-label,
|
|
|
${it}-col-24${Rt}-label,
|
|
|
${it}-col-xl-24${Rt}-label`]:Xe(ft),[`@media (max-width: ${(0,fe.unit)(ft.screenXSMax)})`]:[St(ft),{[Rt]:{[`${it}-col-xs-24${Rt}-label`]:Xe(ft)}}],[`@media (max-width: ${(0,fe.unit)(ft.screenSMMax)})`]:{[Rt]:{[`${it}-col-sm-24${Rt}-label`]:Xe(ft)}},[`@media (max-width: ${(0,fe.unit)(ft.screenMDMax)})`]:{[Rt]:{[`${it}-col-md-24${Rt}-label`]:Xe(ft)}},[`@media (max-width: ${(0,fe.unit)(ft.screenLGMax)})`]:{[Rt]:{[`${it}-col-lg-24${Rt}-label`]:Xe(ft)}}}},Ue=ft=>({labelRequiredMarkColor:ft.colorError,labelColor:ft.colorTextHeading,labelFontSize:ft.fontSize,labelHeight:ft.controlHeight,labelColonMarginInlineStart:ft.marginXXS/2,labelColonMarginInlineEnd:ft.marginXS,itemMarginBottom:ft.marginLG,verticalLabelPadding:`0 0 ${ft.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Ee=(ft,Rt)=>(0,Ke.mergeToken)(ft,{formItemCls:`${ft.componentCls}-item`,rootPrefixCls:Rt});var We=(0,Te.I$)("Form",(ft,Rt)=>{let{rootPrefixCls:it}=Rt;const ht=Ee(ft,it);return[Et(ht),_e(ht),Ie(ht),Fe(ht,ht.componentCls),Fe(ht,ht.formItemCls),He(ht),gt(ht),ot(ht),(0,ct.Z)(ht),Oe.kr]},Ue,{order:-1e3});const Ae=[];function de(ft,Rt,it){let ht=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof ft=="string"?ft:`${Rt}-${ht}`,error:ft,errorStatus:it}}var Qe=ft=>{let{help:Rt,helpStatus:it,errors:ht=Ae,warnings:fn=Ae,className:ar,fieldId:pr,onVisibleChanged:Ft}=ft;const{prefixCls:Tt}=ce.useContext(y.Rk),_t=`${Tt}-item-explain`,Ut=(0,Ne.Z)(Tt),[Fn,zn,Un]=We(Tt,Ut),jn=ce.useMemo(()=>(0,Se.Z)(Tt),[Tt]),gr=Be(ht),Ir=Be(fn),Mr=ce.useMemo(()=>Rt!=null?[de(Rt,"help",it)]:[].concat((0,ve.Z)(gr.map((Rr,Xr)=>de(Rr,"error","error",Xr))),(0,ve.Z)(Ir.map((Rr,Xr)=>de(Rr,"warning","warning",Xr)))),[Rt,it,gr,Ir]),Zr=ce.useMemo(()=>{const Rr={};return Mr.forEach(Xr=>{let{key:oa}=Xr;Rr[oa]=(Rr[oa]||0)+1}),Mr.map((Xr,oa)=>Object.assign(Object.assign({},Xr),{key:Rr[Xr.key]>1?`${Xr.key}-fallback-${oa}`:Xr.key}))},[Mr]),Er={};return pr&&(Er.id=`${pr}_help`),Fn(ce.createElement(ge.default,{motionDeadline:jn.motionDeadline,motionName:`${Tt}-show-help`,visible:!!Zr.length,onVisibleChanged:Ft},Rr=>{const{className:Xr,style:oa}=Rr;return ce.createElement("div",Object.assign({},Er,{className:xe()(_t,Xr,Un,Ut,ar,zn),style:oa}),ce.createElement(ge.CSSMotionList,Object.assign({keys:Zr},(0,Se.Z)(Tt),{motionName:`${Tt}-show-help-item`,component:!1}),ta=>{const{key:xa,error:Fa,errorStatus:Gr,className:ya,style:Xa}=ta;return ce.createElement("div",{key:xa,className:xe()(ya,{[`${_t}-${Gr}`]:Gr}),style:Xa},Fa)}))}))},Ge=E(22001),st=E(48755),Ce=E(2171),be=E(31756),vt=E(23069),zt=E(76846),jt=E(16722);const De=["parentNode"],pt="form_item";function ut(ft){return ft===void 0||ft===!1?[]:Array.isArray(ft)?ft:[ft]}function Qt(ft,Rt){if(!ft.length)return;const it=ft.join("_");return Rt?`${Rt}_${it}`:De.includes(it)?`${pt}_${it}`:it}function yt(ft,Rt,it,ht,fn,ar){let pr=ht;return ar!==void 0?pr=ar:it.validating?pr="validating":ft.length?pr="error":Rt.length?pr="warning":(it.touched||fn&&it.validated)&&(pr="success"),pr}var Ct=function(ft,Rt){var it={};for(var ht in ft)Object.prototype.hasOwnProperty.call(ft,ht)&&Rt.indexOf(ht)<0&&(it[ht]=ft[ht]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fn=0,ht=Object.getOwnPropertySymbols(ft);fn<ht.length;fn++)Rt.indexOf(ht[fn])<0&&Object.prototype.propertyIsEnumerable.call(ft,ht[fn])&&(it[ht[fn]]=ft[ht[fn]]);return it};function mt(ft){return ut(ft).join("_")}function dn(ft,Rt){const it=Rt.getFieldInstance(ft),ht=(0,zt.bn)(it);if(ht)return ht;const fn=Qt(ut(ft),Rt.__INTERNAL__.name);if(fn)return document.getElementById(fn)}function Ht(ft){const[Rt]=(0,Ge.useForm)(),it=ce.useRef({}),ht=ce.useMemo(()=>ft!=null?ft:Object.assign(Object.assign({},Rt),{__INTERNAL__:{itemRef:fn=>ar=>{const pr=mt(fn);ar?it.current[pr]=ar:delete it.current[pr]}},scrollToField:function(fn){let ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:pr}=ar,Ft=Ct(ar,["focus"]),Tt=dn(fn,ht);Tt&&((0,jt.Z)(Tt,Object.assign({scrollMode:"if-needed",block:"nearest"},Ft)),pr&&ht.focusField(fn))},focusField:fn=>{var ar,pr;const Ft=ht.getFieldInstance(fn);typeof(Ft==null?void 0:Ft.focus)=="function"?Ft.focus():(pr=(ar=dn(fn,ht))===null||ar===void 0?void 0:ar.focus)===null||pr===void 0||pr.call(ar)},getFieldInstance:fn=>{const ar=mt(fn);return it.current[ar]}}),[ft,Rt]);return[ht]}var ue=E(98350),ie=function(ft,Rt){var it={};for(var ht in ft)Object.prototype.hasOwnProperty.call(ft,ht)&&Rt.indexOf(ht)<0&&(it[ht]=ft[ht]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fn=0,ht=Object.getOwnPropertySymbols(ft);fn<ht.length;fn++)Rt.indexOf(ht[fn])<0&&Object.prototype.propertyIsEnumerable.call(ft,ht[fn])&&(it[ht[fn]]=ft[ht[fn]]);return it};const re=(ft,Rt)=>{const it=ce.useContext(Ce.Z),{getPrefixCls:ht,direction:fn,requiredMark:ar,colon:pr,scrollToFirstError:Ft,className:Tt,style:_t}=(0,st.dj)("form"),{prefixCls:Ut,className:Fn,rootClassName:zn,size:Un,disabled:jn=it,form:gr,colon:Ir,labelAlign:Mr,labelWrap:Zr,labelCol:Er,wrapperCol:Rr,hideRequiredMark:Xr,layout:oa="horizontal",scrollToFirstError:ta,requiredMark:xa,onFinishFailed:Fa,name:Gr,style:ya,feedbackIcons:Xa,variant:Ia}=ft,pa=ie(ft,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),kr=(0,be.Z)(Un),Za=ce.useContext(ue.Z),Sa=ce.useMemo(()=>xa!==void 0?xa:Xr?!1:ar!==void 0?ar:!0,[Xr,xa,ar]),la=Ir!=null?Ir:pr,Kr=ht("form",Ut),Ya=(0,Ne.Z)(Kr),[_i,$i,za]=We(Kr,Ya),Di=xe()(Kr,`${Kr}-${oa}`,{[`${Kr}-hide-required-mark`]:Sa===!1,[`${Kr}-rtl`]:fn==="rtl",[`${Kr}-${kr}`]:kr},za,Ya,$i,Tt,Fn,zn),[pi]=Ht(gr),{__INTERNAL__:Wi}=pi;Wi.name=Gr;const Ci=ce.useMemo(()=>({name:Gr,labelAlign:Mr,labelCol:Er,labelWrap:Zr,wrapperCol:Rr,vertical:oa==="vertical",colon:la,requiredMark:Sa,itemRef:Wi.itemRef,form:pi,feedbackIcons:Xa}),[Gr,Mr,Er,Rr,oa,la,Sa,pi,Xa]),ei=ce.useRef(null);ce.useImperativeHandle(Rt,()=>{var Cr;return Object.assign(Object.assign({},pi),{nativeElement:(Cr=ei.current)===null||Cr===void 0?void 0:Cr.nativeElement})});const Pr=(Cr,xr)=>{if(Cr){let tr={block:"nearest"};typeof Cr=="object"&&(tr=Object.assign(Object.assign({},tr),Cr)),pi.scrollToField(xr,tr)}},Qn=Cr=>{if(Fa==null||Fa(Cr),Cr.errorFields.length){const xr=Cr.errorFields[0].name;if(ta!==void 0){Pr(ta,xr);return}Ft!==void 0&&Pr(Ft,xr)}};return _i(ce.createElement(y.pg.Provider,{value:Ia},ce.createElement(Ce.n,{disabled:jn},ce.createElement(vt.Z.Provider,{value:kr},ce.createElement(y.RV,{validateMessages:Za},ce.createElement(y.q3.Provider,{value:Ci},ce.createElement(Ge.default,Object.assign({id:Gr},pa,{name:Gr,onFinishFailed:Qn,form:pi,ref:ei,style:Object.assign(Object.assign({},_t),ya),className:Di}))))))))};var pe=ce.forwardRef(re),ae=E(41799),me=E(8654),Ze=E(22703),Ot=E(32383),at=E(11592);function qe(ft){if(typeof ft=="function")return ft;const Rt=(0,at.Z)(ft);return Rt.length<=1?Rt[0]:Rt}const bt=()=>{const{status:ft,errors:Rt=[],warnings:it=[]}=ce.useContext(y.aM);return{status:ft,errors:Rt,warnings:it}};bt.Context=y.aM;var At=bt,$t=E(16089);function Ye(ft){const[Rt,it]=ce.useState(ft),ht=ce.useRef(null),fn=ce.useRef([]),ar=ce.useRef(!1);ce.useEffect(()=>(ar.current=!1,()=>{ar.current=!0,$t.Z.cancel(ht.current),ht.current=null}),[]);function pr(Ft){ar.current||(ht.current===null&&(fn.current=[],ht.current=(0,$t.Z)(()=>{ht.current=null,it(Tt=>{let _t=Tt;return fn.current.forEach(Ut=>{_t=Ut(_t)}),_t})})),fn.current.push(Ft))}return[Rt,pr]}function rt(){const{itemRef:ft}=ce.useContext(y.q3),Rt=ce.useRef({});function it(ht,fn){const ar=fn&&typeof fn=="object"&&(0,me.C4)(fn),pr=ht.join("_");return(Rt.current.name!==pr||Rt.current.originRef!==ar)&&(Rt.current.name=pr,Rt.current.originRef=ar,Rt.current.ref=(0,me.sQ)(ft(ht),ar)),Rt.current.ref}return it}var Vt=E(29194),sn=E(34280),wn=E(2738),pn=E(65970),kt=E(70425),Gt=E(5472);const Pt=ft=>{const{formItemCls:Rt}=ft;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Rt}-control`]:{display:"flex"}}}};var Je=(0,Te.bk)(["Form","item-item"],(ft,Rt)=>{let{rootPrefixCls:it}=Rt;const ht=Ee(ft,it);return[Pt(ht)]}),It=function(ft,Rt){var it={};for(var ht in ft)Object.prototype.hasOwnProperty.call(ft,ht)&&Rt.indexOf(ht)<0&&(it[ht]=ft[ht]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fn=0,ht=Object.getOwnPropertySymbols(ft);fn<ht.length;fn++)Rt.indexOf(ht[fn])<0&&Object.prototype.propertyIsEnumerable.call(ft,ht[fn])&&(it[ht[fn]]=ft[ht[fn]]);return it};const tn=24;var nt=ft=>{const{prefixCls:Rt,status:it,labelCol:ht,wrapperCol:fn,children:ar,errors:pr,warnings:Ft,_internalItemRender:Tt,extra:_t,help:Ut,fieldId:Fn,marginBottom:zn,onErrorVisibleChanged:Un,label:jn}=ft,gr=`${Rt}-item`,Ir=ce.useContext(y.q3),Mr=ce.useMemo(()=>{let pa=Object.assign({},fn||Ir.wrapperCol||{});return jn===null&&!ht&&!fn&&Ir.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(Za=>{const Sa=Za?[Za]:[],la=(0,kt.U2)(Ir.labelCol,Sa),Kr=typeof la=="object"?la:{},Ya=(0,kt.U2)(pa,Sa),_i=typeof Ya=="object"?Ya:{};"span"in Kr&&!("offset"in _i)&&Kr.span<tn&&(pa=(0,kt.t8)(pa,[].concat(Sa,["offset"]),Kr.span))}),pa},[fn,Ir]),Zr=xe()(`${gr}-control`,Mr.className),Er=ce.useMemo(()=>{const{labelCol:pa,wrapperCol:kr}=Ir;return It(Ir,["labelCol","wrapperCol"])},[Ir]),Rr=ce.useRef(null),[Xr,oa]=ce.useState(0);(0,sn.Z)(()=>{_t&&Rr.current?oa(Rr.current.clientHeight):oa(0)},[_t]);const ta=ce.createElement("div",{className:`${gr}-control-input`},ce.createElement("div",{className:`${gr}-control-input-content`},ar)),xa=ce.useMemo(()=>({prefixCls:Rt,status:it}),[Rt,it]),Fa=zn!==null||pr.length||Ft.length?ce.createElement(y.Rk.Provider,{value:xa},ce.createElement(Qe,{fieldId:Fn,errors:pr,warnings:Ft,help:Ut,helpStatus:it,className:`${gr}-explain-connected`,onVisibleChanged:Un})):null,Gr={};Fn&&(Gr.id=`${Fn}_extra`);const ya=_t?ce.createElement("div",Object.assign({},Gr,{className:`${gr}-extra`,ref:Rr}),_t):null,Xa=Fa||ya?ce.createElement("div",{className:`${gr}-additional`,style:zn?{minHeight:zn+Xr}:{}},Fa,ya):null,Ia=Tt&&Tt.mark==="pro_table_render"&&Tt.render?Tt.render(ft,{input:ta,errorList:Fa,extra:ya}):ce.createElement(ce.Fragment,null,ta,Xa);return ce.createElement(y.q3.Provider,{value:Er},ce.createElement(Gt.Z,Object.assign({},Mr,{className:Zr}),Ia),ce.createElement(Je,{prefixCls:Rt}))},Nt=E(61485),Jt=E(9017),xt=E(85981),Wt=E(25399),qt=function(ft,Rt){var it={};for(var ht in ft)Object.prototype.hasOwnProperty.call(ft,ht)&&Rt.indexOf(ht)<0&&(it[ht]=ft[ht]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fn=0,ht=Object.getOwnPropertySymbols(ft);fn<ht.length;fn++)Rt.indexOf(ht[fn])<0&&Object.prototype.propertyIsEnumerable.call(ft,ht[fn])&&(it[ht[fn]]=ft[ht[fn]]);return it};function Tn(ft){return ft?typeof ft=="object"&&!ce.isValidElement(ft)?ft:{title:ft}:null}var On=ft=>{let{prefixCls:Rt,label:it,htmlFor:ht,labelCol:fn,labelAlign:ar,colon:pr,required:Ft,requiredMark:Tt,tooltip:_t,vertical:Ut}=ft;var Fn;const[zn]=(0,Jt.Z)("Form"),{labelAlign:Un,labelCol:jn,labelWrap:gr,colon:Ir}=ce.useContext(y.q3);if(!it)return null;const Mr=fn||jn||{},Zr=ar||Un,Er=`${Rt}-item-label`,Rr=xe()(Er,Zr==="left"&&`${Er}-left`,Mr.className,{[`${Er}-wrap`]:!!gr});let Xr=it;const oa=pr===!0||Ir!==!1&&pr!==!1;oa&&!Ut&&typeof it=="string"&&it.trim()&&(Xr=it.replace(/[:|:]\s*$/,""));const xa=Tn(_t);if(xa){const{icon:pa=ce.createElement(Nt.Z,null)}=xa,kr=qt(xa,["icon"]),Za=ce.createElement(Wt.Z,Object.assign({},kr),ce.cloneElement(pa,{className:`${Rt}-item-tooltip`,title:"",onClick:Sa=>{Sa.preventDefault()},tabIndex:null}));Xr=ce.createElement(ce.Fragment,null,Xr,Za)}const Fa=Tt==="optional",Gr=typeof Tt=="function",ya=Tt===!1;Gr?Xr=Tt(Xr,{required:!!Ft}):Fa&&!Ft&&(Xr=ce.createElement(ce.Fragment,null,Xr,ce.createElement("span",{className:`${Rt}-item-optional`,title:""},(zn==null?void 0:zn.optional)||((Fn=xt.Z.Form)===null||Fn===void 0?void 0:Fn.optional))));let Xa;ya?Xa="hidden":(Fa||Gr)&&(Xa="optional");const Ia=xe()({[`${Rt}-item-required`]:Ft,[`${Rt}-item-required-mark-${Xa}`]:Xa,[`${Rt}-item-no-colon`]:!oa});return ce.createElement(Gt.Z,Object.assign({},Mr,{className:Rr}),ce.createElement("label",{htmlFor:ht,className:Ia,title:typeof it=="string"?it:""},Xr))},Hn=E(29679),Zt=E(19248),Dn=E(96512),nn=E(58617);const Sn={success:Hn.Z,warning:Dn.Z,error:Zt.Z,validating:nn.Z};function rn(ft){let{children:Rt,errors:it,warnings:ht,hasFeedback:fn,validateStatus:ar,prefixCls:pr,meta:Ft,noStyle:Tt}=ft;const _t=`${pr}-item`,{feedbackIcons:Ut}=ce.useContext(y.q3),Fn=yt(it,ht,Ft,null,!!fn,ar),{isFormItemInput:zn,status:Un,hasFeedback:jn,feedbackIcon:gr}=ce.useContext(y.aM),Ir=ce.useMemo(()=>{var Mr;let Zr;if(fn){const Rr=fn!==!0&&fn.icons||Ut,Xr=Fn&&((Mr=Rr==null?void 0:Rr({status:Fn,errors:it,warnings:ht}))===null||Mr===void 0?void 0:Mr[Fn]),oa=Fn&&Sn[Fn];Zr=Xr!==!1&&oa?ce.createElement("span",{className:xe()(`${_t}-feedback-icon`,`${_t}-feedback-icon-${Fn}`)},Xr||ce.createElement(oa,null)):null}const Er={status:Fn||"",errors:it,warnings:ht,hasFeedback:!!fn,feedbackIcon:Zr,isFormItemInput:!0};return Tt&&(Er.status=(Fn!=null?Fn:Un)||"",Er.isFormItemInput=zn,Er.hasFeedback=!!(fn!=null?fn:jn),Er.feedbackIcon=fn!==void 0?Er.feedbackIcon:gr),Er},[Fn,fn,Tt,zn,Un]);return ce.createElement(y.aM.Provider,{value:Ir},Rt)}var En=function(ft,Rt){var it={};for(var ht in ft)Object.prototype.hasOwnProperty.call(ft,ht)&&Rt.indexOf(ht)<0&&(it[ht]=ft[ht]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fn=0,ht=Object.getOwnPropertySymbols(ft);fn<ht.length;fn++)Rt.indexOf(ht[fn])<0&&Object.prototype.propertyIsEnumerable.call(ft,ht[fn])&&(it[ht[fn]]=ft[ht[fn]]);return it};function xn(ft){const{prefixCls:Rt,className:it,rootClassName:ht,style:fn,help:ar,errors:pr,warnings:Ft,validateStatus:Tt,meta:_t,hasFeedback:Ut,hidden:Fn,children:zn,fieldId:Un,required:jn,isRequired:gr,onSubItemMetaChange:Ir,layout:Mr}=ft,Zr=En(ft,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),Er=`${Rt}-item`,{requiredMark:Rr,vertical:Xr}=ce.useContext(y.q3),oa=Xr||Mr==="vertical",ta=ce.useRef(null),xa=Be(pr),Fa=Be(Ft),Gr=ar!=null,ya=!!(Gr||pr.length||Ft.length),Xa=!!ta.current&&(0,Vt.Z)(ta.current),[Ia,pa]=ce.useState(null);(0,sn.Z)(()=>{if(ya&&ta.current){const Kr=getComputedStyle(ta.current);pa(parseInt(Kr.marginBottom,10))}},[ya,Xa]);const kr=Kr=>{Kr||pa(null)},Sa=function(){let Kr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Ya=Kr?xa:_t.errors,_i=Kr?Fa:_t.warnings;return yt(Ya,_i,_t,"",!!Ut,Tt)}(),la=xe()(Er,it,ht,{[`${Er}-with-help`]:Gr||xa.length||Fa.length,[`${Er}-has-feedback`]:Sa&&Ut,[`${Er}-has-success`]:Sa==="success",[`${Er}-has-warning`]:Sa==="warning",[`${Er}-has-error`]:Sa==="error",[`${Er}-is-validating`]:Sa==="validating",[`${Er}-hidden`]:Fn,[`${Er}-${Mr}`]:Mr});return ce.createElement("div",{className:la,style:fn,ref:ta},ce.createElement(pn.Z,Object.assign({className:`${Er}-row`},(0,wn.Z)(Zr,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),ce.createElement(On,Object.assign({htmlFor:Un},ft,{requiredMark:Rr,required:jn!=null?jn:gr,prefixCls:Rt,vertical:oa})),ce.createElement(nt,Object.assign({},ft,_t,{errors:xa,warnings:Fa,prefixCls:Rt,status:Sa,help:ar,marginBottom:Ia,onErrorVisibleChanged:kr}),ce.createElement(y.qI.Provider,{value:Ir},ce.createElement(rn,{prefixCls:Rt,meta:_t,errors:_t.errors,warnings:_t.warnings,hasFeedback:Ut,validateStatus:Sa},zn)))),!!Ia&&ce.createElement("div",{className:`${Er}-margin-offset`,style:{marginBottom:-Ia}}))}const Vn="__SPLIT__",sr=null;function er(ft,Rt){const it=Object.keys(ft),ht=Object.keys(Rt);return it.length===ht.length&&it.every(fn=>{const ar=ft[fn],pr=Rt[fn];return ar===pr||typeof ar=="function"||typeof pr=="function"})}const cr=ce.memo(ft=>{let{children:Rt}=ft;return Rt},(ft,Rt)=>er(ft.control,Rt.control)&&ft.update===Rt.update&&ft.childProps.length===Rt.childProps.length&&ft.childProps.every((it,ht)=>it===Rt.childProps[ht]));function Dr(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function mr(ft){const{name:Rt,noStyle:it,className:ht,dependencies:fn,prefixCls:ar,shouldUpdate:pr,rules:Ft,children:Tt,required:_t,label:Ut,messageVariables:Fn,trigger:zn="onChange",validateTrigger:Un,hidden:jn,help:gr,layout:Ir}=ft,{getPrefixCls:Mr}=ce.useContext(st.E_),{name:Zr}=ce.useContext(y.q3),Er=qe(Tt),Rr=typeof Er=="function",Xr=ce.useContext(y.qI),{validateTrigger:oa}=ce.useContext(Ge.FieldContext),ta=Un!==void 0?Un:oa,xa=Rt!=null,Fa=Mr("form",ar),Gr=(0,Ne.Z)(Fa),[ya,Xa,Ia]=We(Fa,Gr),pa=(0,Ot.ln)("Form.Item"),kr=ce.useContext(Ge.ListContext),Za=ce.useRef(null),[Sa,la]=Ye({}),[Kr,Ya]=(0,ae.Z)(()=>Dr()),_i=ei=>{const Pr=kr==null?void 0:kr.getKey(ei.name);if(Ya(ei.destroy?Dr():ei,!0),it&&gr!==!1&&Xr){let Qn=ei.name;if(ei.destroy)Qn=Za.current||Qn;else if(Pr!==void 0){const[Cr,xr]=Pr;Qn=[Cr].concat((0,ve.Z)(xr)),Za.current=Qn}Xr(ei,Qn)}},$i=(ei,Pr)=>{la(Qn=>{const Cr=Object.assign({},Qn),tr=[].concat((0,ve.Z)(ei.name.slice(0,-1)),(0,ve.Z)(Pr)).join(Vn);return ei.destroy?delete Cr[tr]:Cr[tr]=ei,Cr})},[za,Di]=ce.useMemo(()=>{const ei=(0,ve.Z)(Kr.errors),Pr=(0,ve.Z)(Kr.warnings);return Object.values(Sa).forEach(Qn=>{ei.push.apply(ei,(0,ve.Z)(Qn.errors||[])),Pr.push.apply(Pr,(0,ve.Z)(Qn.warnings||[]))}),[ei,Pr]},[Sa,Kr.errors,Kr.warnings]),pi=rt();function Wi(ei,Pr,Qn){return it&&!jn?ce.createElement(rn,{prefixCls:Fa,hasFeedback:ft.hasFeedback,validateStatus:ft.validateStatus,meta:Kr,errors:za,warnings:Di,noStyle:!0},ei):ce.createElement(xn,Object.assign({key:"row"},ft,{className:xe()(ht,Ia,Gr,Xa),prefixCls:Fa,fieldId:Pr,isRequired:Qn,errors:za,warnings:Di,meta:Kr,onSubItemMetaChange:$i,layout:Ir}),ei)}if(!xa&&!Rr&&!fn)return ya(Wi(Er));let Ci={};return typeof Ut=="string"?Ci.label=Ut:Rt&&(Ci.label=String(Rt)),Fn&&(Ci=Object.assign(Object.assign({},Ci),Fn)),ya(ce.createElement(Ge.Field,Object.assign({},ft,{messageVariables:Ci,trigger:zn,validateTrigger:ta,onMetaChange:_i}),(ei,Pr,Qn)=>{const Cr=ut(Rt).length&&Pr?Pr.name:[],xr=Qt(Cr,Zr),tr=_t!==void 0?_t:!!(Ft!=null&&Ft.some(br=>{if(br&&typeof br=="object"&&br.required&&!br.warningOnly)return!0;if(typeof br=="function"){const Br=br(Qn);return(Br==null?void 0:Br.required)&&!(Br!=null&&Br.warningOnly)}return!1})),jr=Object.assign({},ei);let sa=null;if(Array.isArray(Er)&&xa)sa=Er;else if(!(Rr&&(!(pr||fn)||xa))){if(!(fn&&!Rr&&!xa))if(ce.isValidElement(Er)){const br=Object.assign(Object.assign({},Er.props),jr);if(br.id||(br.id=xr),gr||za.length>0||Di.length>0||ft.extra){const Qr=[];(gr||za.length>0)&&Qr.push(`${xr}_help`),ft.extra&&Qr.push(`${xr}_extra`),br["aria-describedby"]=Qr.join(" ")}za.length>0&&(br["aria-invalid"]="true"),tr&&(br["aria-required"]="true"),(0,me.Yr)(Er)&&(br.ref=pi(Cr,Er)),new Set([].concat((0,ve.Z)(ut(zn)),(0,ve.Z)(ut(ta)))).forEach(Qr=>{br[Qr]=function(){for(var Ta,ja,ea,ai,yi,zi=arguments.length,Gi=new Array(zi),Ji=0;Ji<zi;Ji++)Gi[Ji]=arguments[Ji];(ea=jr[Qr])===null||ea===void 0||(Ta=ea).call.apply(Ta,[jr].concat(Gi)),(yi=(ai=Er.props)[Qr])===null||yi===void 0||(ja=yi).call.apply(ja,[ai].concat(Gi))}});const $r=[br["aria-required"],br["aria-invalid"],br["aria-describedby"]];sa=ce.createElement(cr,{control:jr,update:Er,childProps:$r},(0,Ze.Tm)(Er,br))}else Rr&&(pr||fn)&&!xa?sa=Er(Qn):sa=Er}return Wi(sa,xr,tr)}))}const Hr=mr;Hr.useStatus=At;var Lr=Hr,An=function(ft,Rt){var it={};for(var ht in ft)Object.prototype.hasOwnProperty.call(ft,ht)&&Rt.indexOf(ht)<0&&(it[ht]=ft[ht]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fn=0,ht=Object.getOwnPropertySymbols(ft);fn<ht.length;fn++)Rt.indexOf(ht[fn])<0&&Object.prototype.propertyIsEnumerable.call(ft,ht[fn])&&(it[ht[fn]]=ft[ht[fn]]);return it},dr=ft=>{var{prefixCls:Rt,children:it}=ft,ht=An(ft,["prefixCls","children"]);const{getPrefixCls:fn}=ce.useContext(st.E_),ar=fn("form",Rt),pr=ce.useMemo(()=>({prefixCls:ar,status:"error"}),[ar]);return ce.createElement(Ge.List,Object.assign({},ht),(Ft,Tt,_t)=>ce.createElement(y.Rk.Provider,{value:pr},it(Ft.map(Ut=>Object.assign(Object.assign({},Ut),{fieldKey:Ut.key})),Tt,{errors:_t.errors,warnings:_t.warnings})))};function vr(){const{form:ft}=ce.useContext(y.q3);return ft}const Mt=pe;Mt.Item=Lr,Mt.List=dr,Mt.ErrorList=Qe,Mt.useForm=Ht,Mt.useFormInstance=vr,Mt.useWatch=Ge.useWatch,Mt.Provider=y.RV,Mt.create=()=>{};var Kt=Mt},4875:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return mn}});var y=E(59301),ve=E(84105),ce=E(87395),Le=E(92310),xe=E.n(Le),ge=E(54476),Se=E(20068),Ne=E(76190),Be=E(42978),fe=E(75931),$e=E(67732),Oe=E(83652);function ct(){return typeof BigInt=="function"}function Ke(nt){return!nt&&nt!==0&&!Number.isNaN(nt)||!String(nt).trim()}function Te(nt){var Nt=nt.trim(),Jt=Nt.startsWith("-");Jt&&(Nt=Nt.slice(1)),Nt=Nt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Nt.startsWith(".")&&(Nt="0".concat(Nt));var xt=Nt||"0",Wt=xt.split("."),qt=Wt[0]||"0",Tn=Wt[1]||"0";qt==="0"&&Tn==="0"&&(Jt=!1);var Gn=Jt?"-":"";return{negative:Jt,negativeStr:Gn,trimStr:xt,integerStr:qt,decimalStr:Tn,fullStr:"".concat(Gn).concat(xt)}}function we(nt){var Nt=String(nt);return!Number.isNaN(Number(Nt))&&Nt.includes("e")}function Ie(nt){var Nt=String(nt);if(we(nt)){var Jt=Number(Nt.slice(Nt.indexOf("e-")+2)),xt=Nt.match(/\.(\d+)/);return xt!=null&&xt[1]&&(Jt+=xt[1].length),Jt}return Nt.includes(".")&&tt(Nt)?Nt.length-Nt.indexOf(".")-1:0}function Pe(nt){var Nt=String(nt);if(we(nt)){if(nt>Number.MAX_SAFE_INTEGER)return String(ct()?BigInt(nt).toString():Number.MAX_SAFE_INTEGER);if(nt<Number.MIN_SAFE_INTEGER)return String(ct()?BigInt(nt).toString():Number.MIN_SAFE_INTEGER);Nt=nt.toFixed(Ie(Nt))}return Te(Nt).fullStr}function tt(nt){return typeof nt=="number"?!Number.isNaN(nt):nt?/^\s*-?\d+(\.\d+)?\s*$/.test(nt)||/^\s*-?\d+\.\s*$/.test(nt)||/^\s*-?\.\d+\s*$/.test(nt):!1}var Et=function(){function nt(Nt){if((0,$e.Z)(this,nt),(0,Se.Z)(this,"origin",""),(0,Se.Z)(this,"negative",void 0),(0,Se.Z)(this,"integer",void 0),(0,Se.Z)(this,"decimal",void 0),(0,Se.Z)(this,"decimalLen",void 0),(0,Se.Z)(this,"empty",void 0),(0,Se.Z)(this,"nan",void 0),Ke(Nt)){this.empty=!0;return}if(this.origin=String(Nt),Nt==="-"||Number.isNaN(Nt)){this.nan=!0;return}var Jt=Nt;if(we(Jt)&&(Jt=Number(Jt)),Jt=typeof Jt=="string"?Jt:Pe(Jt),tt(Jt)){var xt=Te(Jt);this.negative=xt.negative;var Wt=xt.trimStr.split(".");this.integer=BigInt(Wt[0]);var qt=Wt[1]||"0";this.decimal=BigInt(qt),this.decimalLen=qt.length}else this.nan=!0}return(0,Oe.Z)(nt,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(Jt){var xt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(Jt,"0"));return BigInt(xt)}},{key:"negate",value:function(){var Jt=new nt(this.toString());return Jt.negative=!Jt.negative,Jt}},{key:"cal",value:function(Jt,xt,Wt){var qt=Math.max(this.getDecimalStr().length,Jt.getDecimalStr().length),Tn=this.alignDecimal(qt),Gn=Jt.alignDecimal(qt),On=xt(Tn,Gn).toString(),Hn=Wt(qt),Zt=Te(On),Dn=Zt.negativeStr,nn=Zt.trimStr,Sn="".concat(Dn).concat(nn.padStart(Hn+1,"0"));return new nt("".concat(Sn.slice(0,-Hn),".").concat(Sn.slice(-Hn)))}},{key:"add",value:function(Jt){if(this.isInvalidate())return new nt(Jt);var xt=new nt(Jt);return xt.isInvalidate()?this:this.cal(xt,function(Wt,qt){return Wt+qt},function(Wt){return Wt})}},{key:"multi",value:function(Jt){var xt=new nt(Jt);return this.isInvalidate()||xt.isInvalidate()?new nt(NaN):this.cal(xt,function(Wt,qt){return Wt*qt},function(Wt){return Wt*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(Jt){return this.toString()===(Jt==null?void 0:Jt.toString())}},{key:"lessEquals",value:function(Jt){return this.add(Jt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var Jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Jt?this.isInvalidate()?"":Te("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),nt}(),_e=function(){function nt(Nt){if((0,$e.Z)(this,nt),(0,Se.Z)(this,"origin",""),(0,Se.Z)(this,"number",void 0),(0,Se.Z)(this,"empty",void 0),Ke(Nt)){this.empty=!0;return}this.origin=String(Nt),this.number=Number(Nt)}return(0,Oe.Z)(nt,[{key:"negate",value:function(){return new nt(-this.toNumber())}},{key:"add",value:function(Jt){if(this.isInvalidate())return new nt(Jt);var xt=Number(Jt);if(Number.isNaN(xt))return this;var Wt=this.number+xt;if(Wt>Number.MAX_SAFE_INTEGER)return new nt(Number.MAX_SAFE_INTEGER);if(Wt<Number.MIN_SAFE_INTEGER)return new nt(Number.MIN_SAFE_INTEGER);var qt=Math.max(Ie(this.number),Ie(xt));return new nt(Wt.toFixed(qt))}},{key:"multi",value:function(Jt){var xt=Number(Jt);if(this.isInvalidate()||Number.isNaN(xt))return new nt(NaN);var Wt=this.number*xt;if(Wt>Number.MAX_SAFE_INTEGER)return new nt(Number.MAX_SAFE_INTEGER);if(Wt<Number.MIN_SAFE_INTEGER)return new nt(Number.MIN_SAFE_INTEGER);var qt=Math.max(Ie(this.number),Ie(xt));return new nt(Wt.toFixed(qt))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(Jt){return this.toNumber()===(Jt==null?void 0:Jt.toNumber())}},{key:"lessEquals",value:function(Jt){return this.add(Jt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var Jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Jt?this.isInvalidate()?"":Pe(this.number):this.origin}}]),nt}();function Fe(nt){return ct()?new Et(nt):new _e(nt)}function He(nt,Nt,Jt){var xt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(nt==="")return"";var Wt=Te(nt),qt=Wt.negativeStr,Tn=Wt.integerStr,Gn=Wt.decimalStr,On="".concat(Nt).concat(Gn),Hn="".concat(qt).concat(Tn);if(Jt>=0){var Zt=Number(Gn[Jt]);if(Zt>=5&&!xt){var Dn=Fe(nt).add("".concat(qt,"0.").concat("0".repeat(Jt)).concat(10-Zt));return He(Dn.toString(),Nt,Jt,xt)}return Jt===0?Hn:"".concat(Hn).concat(Nt).concat(Gn.padEnd(Jt,"0").slice(0,Jt))}return On===".0"?Hn:"".concat(Hn).concat(On)}var Xe=Fe,St=E(36901),gt=E(34280);function ot(nt,Nt){return typeof Proxy!="undefined"&&nt?new Proxy(nt,{get:function(xt,Wt){if(Nt[Wt])return Nt[Wt];var qt=xt[Wt];return typeof qt=="function"?qt.bind(xt):qt}}):nt}var Ue=E(8654),Ee=E(48736);function We(nt,Nt){var Jt=(0,y.useRef)(null);function xt(){try{var qt=nt.selectionStart,Tn=nt.selectionEnd,Gn=nt.value,On=Gn.substring(0,qt),Hn=Gn.substring(Tn);Jt.current={start:qt,end:Tn,value:Gn,beforeTxt:On,afterTxt:Hn}}catch(Zt){}}function Wt(){if(nt&&Jt.current&&Nt)try{var qt=nt.value,Tn=Jt.current,Gn=Tn.beforeTxt,On=Tn.afterTxt,Hn=Tn.start,Zt=qt.length;if(qt.startsWith(Gn))Zt=Gn.length;else if(qt.endsWith(On))Zt=qt.length-Jt.current.afterTxt.length;else{var Dn=Gn[Hn-1],nn=qt.indexOf(Dn,Hn-1);nn!==-1&&(Zt=nn+1)}nt.setSelectionRange(Zt,Zt)}catch(Sn){(0,Ee.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Sn.message))}}return[xt,Wt]}var Ae=E(49658),de=function(){var Nt=(0,y.useState)(!1),Jt=(0,Be.Z)(Nt,2),xt=Jt[0],Wt=Jt[1];return(0,gt.Z)(function(){Wt((0,Ae.Z)())},[]),xt},wt=de,Qe=E(16089),Ge=200,st=600;function Ce(nt){var Nt=nt.prefixCls,Jt=nt.upNode,xt=nt.downNode,Wt=nt.upDisabled,qt=nt.downDisabled,Tn=nt.onStep,Gn=y.useRef(),On=y.useRef([]),Hn=y.useRef();Hn.current=Tn;var Zt=function(){clearTimeout(Gn.current)},Dn=function(er,cr){er.preventDefault(),Zt(),Hn.current(cr);function Dr(){Hn.current(cr),Gn.current=setTimeout(Dr,Ge)}Gn.current=setTimeout(Dr,st)};y.useEffect(function(){return function(){Zt(),On.current.forEach(function(sr){return Qe.Z.cancel(sr)})}},[]);var nn=wt();if(nn)return null;var Sn="".concat(Nt,"-handler"),rn=xe()(Sn,"".concat(Sn,"-up"),(0,Se.Z)({},"".concat(Sn,"-up-disabled"),Wt)),En=xe()(Sn,"".concat(Sn,"-down"),(0,Se.Z)({},"".concat(Sn,"-down-disabled"),qt)),xn=function(){return On.current.push((0,Qe.Z)(Zt))},Vn={unselectable:"on",role:"button",onMouseUp:xn,onMouseLeave:xn};return y.createElement("div",{className:"".concat(Sn,"-wrap")},y.createElement("span",(0,ge.Z)({},Vn,{onMouseDown:function(er){Dn(er,!0)},"aria-label":"Increase Value","aria-disabled":Wt,className:rn}),Jt||y.createElement("span",{unselectable:"on",className:"".concat(Nt,"-handler-up-inner")})),y.createElement("span",(0,ge.Z)({},Vn,{onMouseDown:function(er){Dn(er,!1)},"aria-label":"Decrease Value","aria-disabled":qt,className:En}),xt||y.createElement("span",{unselectable:"on",className:"".concat(Nt,"-handler-down-inner")})))}function be(nt){var Nt=typeof nt=="number"?Pe(nt):Te(nt).fullStr,Jt=Nt.includes(".");return Jt?Te(Nt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:nt+"0"}var vt=E(30292),zt=function(){var nt=(0,y.useRef)(0),Nt=function(){Qe.Z.cancel(nt.current)};return(0,y.useEffect)(function(){return Nt},[]),function(Jt){Nt(),nt.current=(0,Qe.Z)(function(){Jt()})}},jt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],De=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],pt=function(Nt,Jt){return Nt||Jt.isEmpty()?Jt.toString():Jt.toNumber()},ut=function(Nt){var Jt=Xe(Nt);return Jt.isInvalidate()?null:Jt},Qt=y.forwardRef(function(nt,Nt){var Jt=nt.prefixCls,xt=nt.className,Wt=nt.style,qt=nt.min,Tn=nt.max,Gn=nt.step,On=Gn===void 0?1:Gn,Hn=nt.defaultValue,Zt=nt.value,Dn=nt.disabled,nn=nt.readOnly,Sn=nt.upHandler,rn=nt.downHandler,En=nt.keyboard,xn=nt.changeOnWheel,Vn=xn===void 0?!1:xn,sr=nt.controls,er=sr===void 0?!0:sr,cr=nt.classNames,Dr=nt.stringMode,mr=nt.parser,Hr=nt.formatter,Lr=nt.precision,An=nt.decimalSeparator,Rn=nt.onChange,dr=nt.onInput,vr=nt.onPressEnter,Mt=nt.onStep,Kt=nt.changeOnBlur,ft=Kt===void 0?!0:Kt,Rt=nt.domRef,it=(0,fe.Z)(nt,jt),ht="".concat(Jt,"-input"),fn=y.useRef(null),ar=y.useState(!1),pr=(0,Be.Z)(ar,2),Ft=pr[0],Tt=pr[1],_t=y.useRef(!1),Ut=y.useRef(!1),Fn=y.useRef(!1),zn=y.useState(function(){return Xe(Zt!=null?Zt:Hn)}),Un=(0,Be.Z)(zn,2),jn=Un[0],gr=Un[1];function Ir(xr){Zt===void 0&&gr(xr)}var Mr=y.useCallback(function(xr,tr){if(!tr)return Lr>=0?Lr:Math.max(Ie(xr),Ie(On))},[Lr,On]),Zr=y.useCallback(function(xr){var tr=String(xr);if(mr)return mr(tr);var jr=tr;return An&&(jr=jr.replace(An,".")),jr.replace(/[^\w.-]+/g,"")},[mr,An]),Er=y.useRef(""),Rr=y.useCallback(function(xr,tr){if(Hr)return Hr(xr,{userTyping:tr,input:String(Er.current)});var jr=typeof xr=="number"?Pe(xr):xr;if(!tr){var sa=Mr(jr,tr);if(tt(jr)&&(An||sa>=0)){var br=An||".";jr=He(jr,br,sa)}}return jr},[Hr,Mr,An]),Xr=y.useState(function(){var xr=Hn!=null?Hn:Zt;return jn.isInvalidate()&&["string","number"].includes((0,Ne.Z)(xr))?Number.isNaN(xr)?"":xr:Rr(jn.toString(),!1)}),oa=(0,Be.Z)(Xr,2),ta=oa[0],xa=oa[1];Er.current=ta;function Fa(xr,tr){xa(Rr(xr.isInvalidate()?xr.toString(!1):xr.toString(!tr),tr))}var Gr=y.useMemo(function(){return ut(Tn)},[Tn,Lr]),ya=y.useMemo(function(){return ut(qt)},[qt,Lr]),Xa=y.useMemo(function(){return!Gr||!jn||jn.isInvalidate()?!1:Gr.lessEquals(jn)},[Gr,jn]),Ia=y.useMemo(function(){return!ya||!jn||jn.isInvalidate()?!1:jn.lessEquals(ya)},[ya,jn]),pa=We(fn.current,Ft),kr=(0,Be.Z)(pa,2),Za=kr[0],Sa=kr[1],la=function(tr){return Gr&&!tr.lessEquals(Gr)?Gr:ya&&!ya.lessEquals(tr)?ya:null},Kr=function(tr){return!la(tr)},Ya=function(tr,jr){var sa=tr,br=Kr(sa)||sa.isEmpty();if(!sa.isEmpty()&&!jr&&(sa=la(sa)||sa,br=!0),!nn&&!Dn&&br){var Br=sa.toString(),$r=Mr(Br,jr);return $r>=0&&(sa=Xe(He(Br,".",$r)),Kr(sa)||(sa=Xe(He(Br,".",$r,!0)))),sa.equals(jn)||(Ir(sa),Rn==null||Rn(sa.isEmpty()?null:pt(Dr,sa)),Zt===void 0&&Fa(sa,jr)),sa}return jn},_i=zt(),$i=function xr(tr){if(Za(),Er.current=tr,xa(tr),!Ut.current){var jr=Zr(tr),sa=Xe(jr);sa.isNaN()||Ya(sa,!0)}dr==null||dr(tr),_i(function(){var br=tr;mr||(br=tr.replace(/。/g,".")),br!==tr&&xr(br)})},za=function(){Ut.current=!0},Di=function(){Ut.current=!1,$i(fn.current.value)},pi=function(tr){$i(tr.target.value)},Wi=function(tr){var jr;if(!(tr&&Xa||!tr&&Ia)){_t.current=!1;var sa=Xe(Fn.current?be(On):On);tr||(sa=sa.negate());var br=(jn||Xe(0)).add(sa.toString()),Br=Ya(br,!1);Mt==null||Mt(pt(Dr,Br),{offset:Fn.current?be(On):On,type:tr?"up":"down"}),(jr=fn.current)===null||jr===void 0||jr.focus()}},Ci=function(tr){var jr=Xe(Zr(ta)),sa;jr.isNaN()?sa=Ya(jn,tr):sa=Ya(jr,tr),Zt!==void 0?Fa(jn,!1):sa.isNaN()||Fa(sa,!1)},ei=function(){_t.current=!0},Pr=function(tr){var jr=tr.key,sa=tr.shiftKey;_t.current=!0,Fn.current=sa,jr==="Enter"&&(Ut.current||(_t.current=!1),Ci(!1),vr==null||vr(tr)),En!==!1&&!Ut.current&&["Up","ArrowUp","Down","ArrowDown"].includes(jr)&&(Wi(jr==="Up"||jr==="ArrowUp"),tr.preventDefault())},Qn=function(){_t.current=!1,Fn.current=!1};y.useEffect(function(){if(Vn&&Ft){var xr=function(sa){Wi(sa.deltaY<0),sa.preventDefault()},tr=fn.current;if(tr)return tr.addEventListener("wheel",xr,{passive:!1}),function(){return tr.removeEventListener("wheel",xr)}}});var Cr=function(){ft&&Ci(!1),Tt(!1),_t.current=!1};return(0,gt.o)(function(){jn.isInvalidate()||Fa(jn,!1)},[Lr,Hr]),(0,gt.o)(function(){var xr=Xe(Zt);gr(xr);var tr=Xe(Zr(ta));(!xr.equals(tr)||!_t.current||Hr)&&Fa(xr,_t.current)},[Zt]),(0,gt.o)(function(){Hr&&Sa()},[ta]),y.createElement("div",{ref:Rt,className:xe()(Jt,xt,(0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)({},"".concat(Jt,"-focused"),Ft),"".concat(Jt,"-disabled"),Dn),"".concat(Jt,"-readonly"),nn),"".concat(Jt,"-not-a-number"),jn.isNaN()),"".concat(Jt,"-out-of-range"),!jn.isInvalidate()&&!Kr(jn))),style:Wt,onFocus:function(){Tt(!0)},onBlur:Cr,onKeyDown:Pr,onKeyUp:Qn,onCompositionStart:za,onCompositionEnd:Di,onBeforeInput:ei},er&&y.createElement(Ce,{prefixCls:Jt,upNode:Sn,downNode:rn,upDisabled:Xa,downDisabled:Ia,onStep:Wi}),y.createElement("div",{className:"".concat(ht,"-wrap")},y.createElement("input",(0,ge.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":qt,"aria-valuemax":Tn,"aria-valuenow":jn.isInvalidate()?null:jn.toString(),step:On},it,{ref:(0,Ue.sQ)(fn,Nt),className:ht,value:ta,onChange:pi,disabled:Dn,readOnly:nn}))))}),yt=y.forwardRef(function(nt,Nt){var Jt=nt.disabled,xt=nt.style,Wt=nt.prefixCls,qt=Wt===void 0?"rc-input-number":Wt,Tn=nt.value,Gn=nt.prefix,On=nt.suffix,Hn=nt.addonBefore,Zt=nt.addonAfter,Dn=nt.className,nn=nt.classNames,Sn=(0,fe.Z)(nt,De),rn=y.useRef(null),En=y.useRef(null),xn=y.useRef(null),Vn=function(er){xn.current&&(0,vt.nH)(xn.current,er)};return y.useImperativeHandle(Nt,function(){return ot(xn.current,{focus:Vn,nativeElement:rn.current.nativeElement||En.current})}),y.createElement(St.BaseInput,{className:Dn,triggerFocus:Vn,prefixCls:qt,value:Tn,disabled:Jt,style:xt,prefix:Gn,suffix:On,addonAfter:Zt,addonBefore:Hn,classNames:nn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:rn},y.createElement(Qt,(0,ge.Z)({prefixCls:qt,disabled:Jt,ref:xn,domRef:En,className:nn==null?void 0:nn.input},Sn)))}),Ct=yt,mt=Ct,dn=E(62487),Ht=E(82855),ue=E(48755),ie=E(60840),re=E(2171),oe=E(83397),pe=E(31756),ae=E(56553),me=E(24971),Ze=E(70045),Ot=E(36237),at=E(53075),qe=E(64910),bt=E(39082),At=E(63356),$t=E(56119),Ye=E(16931),rt=E(51636),Vt=E(17835);const sn=nt=>{var Nt;const Jt=(Nt=nt.handleVisible)!==null&&Nt!==void 0?Nt:"auto",xt=nt.controlHeightSM-nt.lineWidth*2;return Object.assign(Object.assign({},(0,qe.T)(nt)),{controlWidth:90,handleWidth:xt,handleFontSize:nt.fontSize/2,handleVisible:Jt,handleActiveBg:nt.colorFillAlter,handleBg:nt.colorBgContainer,filledHandleBg:new Vt.FastColor(nt.colorFillSecondary).onBackground(nt.colorBgContainer).toHexString(),handleHoverColor:nt.colorPrimary,handleBorderColor:nt.colorBorder,handleOpacity:Jt===!0?1:0,handleVisibleWidth:Jt===!0?xt:0})},wn=(nt,Nt)=>{let{componentCls:Jt,borderRadiusSM:xt,borderRadiusLG:Wt}=nt;const qt=Nt==="lg"?Wt:xt;return{[`&-${Nt}`]:{[`${Jt}-handler-wrap`]:{borderStartEndRadius:qt,borderEndEndRadius:qt},[`${Jt}-handler-up`]:{borderStartEndRadius:qt},[`${Jt}-handler-down`]:{borderEndEndRadius:qt}}}},pn=nt=>{const{componentCls:Nt,lineWidth:Jt,lineType:xt,borderRadius:Wt,inputFontSizeSM:qt,inputFontSizeLG:Tn,controlHeightLG:Gn,controlHeightSM:On,colorError:Hn,paddingInlineSM:Zt,paddingBlockSM:Dn,paddingBlockLG:nn,paddingInlineLG:Sn,colorTextDescription:rn,motionDurationMid:En,handleHoverColor:xn,handleOpacity:Vn,paddingInline:sr,paddingBlock:er,handleBg:cr,handleActiveBg:Dr,colorTextDisabled:mr,borderRadiusSM:Hr,borderRadiusLG:Lr,controlWidth:An,handleBorderColor:Rn,filledHandleBg:dr,lineHeightLG:vr,calc:Mt}=nt;return[{[Nt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,At.Wf)(nt)),(0,at.ik)(nt)),{display:"inline-block",width:An,margin:0,padding:0,borderRadius:Wt}),(0,bt.qG)(nt,{[`${Nt}-handler-wrap`]:{background:cr,[`${Nt}-handler-down`]:{borderBlockStart:`${(0,Ot.unit)(Jt)} ${xt} ${Rn}`}}})),(0,bt.H8)(nt,{[`${Nt}-handler-wrap`]:{background:dr,[`${Nt}-handler-down`]:{borderBlockStart:`${(0,Ot.unit)(Jt)} ${xt} ${Rn}`}},"&:focus-within":{[`${Nt}-handler-wrap`]:{background:cr}}})),(0,bt.vc)(nt,{[`${Nt}-handler-wrap`]:{background:cr,[`${Nt}-handler-down`]:{borderBlockStart:`${(0,Ot.unit)(Jt)} ${xt} ${Rn}`}}})),(0,bt.Mu)(nt)),{"&-rtl":{direction:"rtl",[`${Nt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Tn,lineHeight:vr,borderRadius:Lr,[`input${Nt}-input`]:{height:Mt(Gn).sub(Mt(Jt).mul(2)).equal(),padding:`${(0,Ot.unit)(nn)} ${(0,Ot.unit)(Sn)}`}},"&-sm":{padding:0,fontSize:qt,borderRadius:Hr,[`input${Nt}-input`]:{height:Mt(On).sub(Mt(Jt).mul(2)).equal(),padding:`${(0,Ot.unit)(Dn)} ${(0,Ot.unit)(Zt)}`}},"&-out-of-range":{[`${Nt}-input-wrap`]:{input:{color:Hn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,At.Wf)(nt)),(0,at.s7)(nt)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Nt}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Nt}-group-addon`]:{borderRadius:Lr,fontSize:nt.fontSizeLG}},"&-sm":{[`${Nt}-group-addon`]:{borderRadius:Hr}}},(0,bt.ir)(nt)),(0,bt.S5)(nt)),{[`&:not(${Nt}-compact-first-item):not(${Nt}-compact-last-item)${Nt}-compact-item`]:{[`${Nt}, ${Nt}-group-addon`]:{borderRadius:0}},[`&:not(${Nt}-compact-last-item)${Nt}-compact-first-item`]:{[`${Nt}, ${Nt}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Nt}-compact-first-item)${Nt}-compact-last-item`]:{[`${Nt}, ${Nt}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${Nt}-input`]:{cursor:"not-allowed"},[Nt]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,At.Wf)(nt)),{width:"100%",padding:`${(0,Ot.unit)(er)} ${(0,Ot.unit)(sr)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Wt,outline:0,transition:`all ${En} linear`,appearance:"textfield",fontSize:"inherit"}),(0,at.nz)(nt.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${Nt}-handler-wrap, &-focused ${Nt}-handler-wrap`]:{width:nt.handleWidth,opacity:1}})},{[Nt]:Object.assign(Object.assign(Object.assign({[`${Nt}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:nt.handleVisibleWidth,opacity:Vn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Wt,borderEndEndRadius:Wt,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${En}`,overflow:"hidden",[`${Nt}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${Nt}-handler-up-inner,
|
|
|
${Nt}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:nt.handleFontSize}}},[`${Nt}-handler`]:{height:"50%",overflow:"hidden",color:rn,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,Ot.unit)(Jt)} ${xt} ${Rn}`,transition:`all ${En} linear`,"&:active":{background:Dr},"&:hover":{height:"60%",[`
|
|
|
${Nt}-handler-up-inner,
|
|
|
${Nt}-handler-down-inner
|
|
|
`]:{color:xn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,At.Ro)()),{color:rn,transition:`all ${En} linear`,userSelect:"none"})},[`${Nt}-handler-up`]:{borderStartEndRadius:Wt},[`${Nt}-handler-down`]:{borderEndEndRadius:Wt}},wn(nt,"lg")),wn(nt,"sm")),{"&-disabled, &-readonly":{[`${Nt}-handler-wrap`]:{display:"none"},[`${Nt}-input`]:{color:"inherit"}},[`
|
|
|
${Nt}-handler-up-disabled,
|
|
|
${Nt}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${Nt}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${Nt}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:mr}})}]},kt=nt=>{const{componentCls:Nt,paddingBlock:Jt,paddingInline:xt,inputAffixPadding:Wt,controlWidth:qt,borderRadiusLG:Tn,borderRadiusSM:Gn,paddingInlineLG:On,paddingInlineSM:Hn,paddingBlockLG:Zt,paddingBlockSM:Dn,motionDurationMid:nn}=nt;return{[`${Nt}-affix-wrapper`]:Object.assign(Object.assign({[`input${Nt}-input`]:{padding:`${(0,Ot.unit)(Jt)} 0`}},(0,at.ik)(nt)),{position:"relative",display:"inline-flex",alignItems:"center",width:qt,padding:0,paddingInlineStart:xt,"&-lg":{borderRadius:Tn,paddingInlineStart:On,[`input${Nt}-input`]:{padding:`${(0,Ot.unit)(Zt)} 0`}},"&-sm":{borderRadius:Gn,paddingInlineStart:Hn,[`input${Nt}-input`]:{padding:`${(0,Ot.unit)(Dn)} 0`}},[`&:not(${Nt}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Nt}-disabled`]:{background:"transparent"},[`> div${Nt}`]:{width:"100%",border:"none",outline:"none",[`&${Nt}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Nt}-handler-wrap`]:{zIndex:2},[Nt]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Wt},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:xt,marginInlineStart:Wt,transition:`margin ${nn}`}},[`&:hover ${Nt}-handler-wrap, &-focused ${Nt}-handler-wrap`]:{width:nt.handleWidth,opacity:1},[`&:not(${Nt}-affix-wrapper-without-controls):hover ${Nt}-suffix`]:{marginInlineEnd:nt.calc(nt.handleWidth).add(xt).equal()}})}};var Gt=(0,Ye.I$)("InputNumber",nt=>{const Nt=(0,rt.mergeToken)(nt,(0,qe.e)(nt));return[pn(Nt),kt(Nt),(0,$t.c)(Nt)]},sn,{unitless:{handleOpacity:!0}}),Pt=function(nt,Nt){var Jt={};for(var xt in nt)Object.prototype.hasOwnProperty.call(nt,xt)&&Nt.indexOf(xt)<0&&(Jt[xt]=nt[xt]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Wt=0,xt=Object.getOwnPropertySymbols(nt);Wt<xt.length;Wt++)Nt.indexOf(xt[Wt])<0&&Object.prototype.propertyIsEnumerable.call(nt,xt[Wt])&&(Jt[xt[Wt]]=nt[xt[Wt]]);return Jt};const Je=y.forwardRef((nt,Nt)=>{const{getPrefixCls:Jt,direction:xt}=y.useContext(ue.E_),Wt=y.useRef(null);y.useImperativeHandle(Nt,()=>Wt.current);const{className:qt,rootClassName:Tn,size:Gn,disabled:On,prefixCls:Hn,addonBefore:Zt,addonAfter:Dn,prefix:nn,suffix:Sn,bordered:rn,readOnly:En,status:xn,controls:Vn,variant:sr}=nt,er=Pt(nt,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),cr=Jt("input-number",Hn),Dr=(0,oe.Z)(cr),[mr,Hr,Lr]=Gt(cr,Dr),{compactSize:An,compactItemClassnames:Rn}=(0,Ze.ri)(cr,xt);let dr=y.createElement(ce.Z,{className:`${cr}-handler-up-inner`}),vr=y.createElement(ve.Z,{className:`${cr}-handler-down-inner`});const Mt=typeof Vn=="boolean"?Vn:void 0;typeof Vn=="object"&&(dr=typeof Vn.upIcon=="undefined"?dr:y.createElement("span",{className:`${cr}-handler-up-inner`},Vn.upIcon),vr=typeof Vn.downIcon=="undefined"?vr:y.createElement("span",{className:`${cr}-handler-down-inner`},Vn.downIcon));const{hasFeedback:Kt,status:ft,isFormItemInput:Rt,feedbackIcon:it}=y.useContext(ae.aM),ht=(0,Ht.F)(ft,xn),fn=(0,pe.Z)(Un=>{var jn;return(jn=Gn!=null?Gn:An)!==null&&jn!==void 0?jn:Un}),ar=y.useContext(re.Z),pr=On!=null?On:ar,[Ft,Tt]=(0,me.Z)("inputNumber",sr,rn),_t=Kt&&y.createElement(y.Fragment,null,it),Ut=xe()({[`${cr}-lg`]:fn==="large",[`${cr}-sm`]:fn==="small",[`${cr}-rtl`]:xt==="rtl",[`${cr}-in-form-item`]:Rt},Hr),Fn=`${cr}-group`,zn=y.createElement(mt,Object.assign({ref:Wt,disabled:pr,className:xe()(Lr,Dr,qt,Tn,Rn),upHandler:dr,downHandler:vr,prefixCls:cr,readOnly:En,controls:Mt,prefix:nn,suffix:_t||Sn,addonBefore:Zt&&y.createElement(dn.Z,{form:!0,space:!0},Zt),addonAfter:Dn&&y.createElement(dn.Z,{form:!0,space:!0},Dn),classNames:{input:Ut,variant:xe()({[`${cr}-${Ft}`]:Tt},(0,Ht.Z)(cr,ht,Kt)),affixWrapper:xe()({[`${cr}-affix-wrapper-sm`]:fn==="small",[`${cr}-affix-wrapper-lg`]:fn==="large",[`${cr}-affix-wrapper-rtl`]:xt==="rtl",[`${cr}-affix-wrapper-without-controls`]:Vn===!1||pr},Hr),wrapper:xe()({[`${Fn}-rtl`]:xt==="rtl"},Hr),groupWrapper:xe()({[`${cr}-group-wrapper-sm`]:fn==="small",[`${cr}-group-wrapper-lg`]:fn==="large",[`${cr}-group-wrapper-rtl`]:xt==="rtl",[`${cr}-group-wrapper-${Ft}`]:Tt},(0,Ht.Z)(`${cr}-group-wrapper`,ht,Kt),Hr)}},er));return mr(zn)}),It=Je,tn=nt=>y.createElement(ie.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},y.createElement(Je,Object.assign({},nt)));It._InternalPanelDoNotUseOrYouWillBeFired=tn;var mn=It},49397:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return _e}});var y=E(59301),ve=E(92310),ce=E.n(ve),Le=E(36901),xe=E(8654),ge=E(62487),Se=E(86013),Ne=E(82855),Be=E(48755),fe=E(2171),$e=E(83397),Oe=E(31756),ct=E(56553),Ke=E(24971),Te=E(70045),we=E(23826),Ie=E(53075);function Pe(Fe){return!!(Fe.prefix||Fe.suffix||Fe.allowClear||Fe.showCount)}var tt=function(Fe,He){var Xe={};for(var St in Fe)Object.prototype.hasOwnProperty.call(Fe,St)&&He.indexOf(St)<0&&(Xe[St]=Fe[St]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,St=Object.getOwnPropertySymbols(Fe);gt<St.length;gt++)He.indexOf(St[gt])<0&&Object.prototype.propertyIsEnumerable.call(Fe,St[gt])&&(Xe[St[gt]]=Fe[St[gt]]);return Xe},_e=(0,y.forwardRef)((Fe,He)=>{const{prefixCls:Xe,bordered:St=!0,status:gt,size:ot,disabled:Ue,onBlur:Ee,onFocus:We,suffix:Ae,allowClear:de,addonAfter:wt,addonBefore:Qe,className:Ge,style:st,styles:Ce,rootClassName:be,onChange:vt,classNames:zt,variant:jt}=Fe,De=tt(Fe,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:pt,direction:ut,allowClear:Qt,autoComplete:yt,className:Ct,style:mt,classNames:dn,styles:Ht}=(0,Be.dj)("input"),ue=pt("input",Xe),ie=(0,y.useRef)(null),re=(0,$e.Z)(ue),[oe,pe,ae]=(0,Ie.TI)(ue,be),[me]=(0,Ie.ZP)(ue,re),{compactSize:Ze,compactItemClassnames:Ot}=(0,Te.ri)(ue,ut),at=(0,Oe.Z)(mn=>{var nt;return(nt=ot!=null?ot:Ze)!==null&&nt!==void 0?nt:mn}),qe=y.useContext(fe.Z),bt=Ue!=null?Ue:qe,{status:At,hasFeedback:$t,feedbackIcon:Ye}=(0,y.useContext)(ct.aM),rt=(0,Ne.F)(At,gt),Vt=Pe(Fe)||!!$t,sn=(0,y.useRef)(Vt),wn=(0,we.Z)(ie,!0),pn=mn=>{wn(),Ee==null||Ee(mn)},kt=mn=>{wn(),We==null||We(mn)},Gt=mn=>{wn(),vt==null||vt(mn)},Pt=($t||Ae)&&y.createElement(y.Fragment,null,Ae,$t&&Ye),Je=(0,Se.Z)(de!=null?de:Qt),[It,tn]=(0,Ke.Z)("input",jt,St);return oe(me(y.createElement(Le.default,Object.assign({ref:(0,xe.sQ)(He,ie),prefixCls:ue,autoComplete:yt},De,{disabled:bt,onBlur:pn,onFocus:kt,style:Object.assign(Object.assign({},mt),st),styles:Object.assign(Object.assign({},Ht),Ce),suffix:Pt,allowClear:Je,className:ce()(Ge,be,ae,re,Ot,Ct),onChange:Gt,addonBefore:Qe&&y.createElement(ge.Z,{form:!0,space:!0},Qe),addonAfter:wt&&y.createElement(ge.Z,{form:!0,space:!0},wt),classNames:Object.assign(Object.assign(Object.assign({},zt),dn),{input:ce()({[`${ue}-sm`]:at==="small",[`${ue}-lg`]:at==="large",[`${ue}-rtl`]:ut==="rtl"},zt==null?void 0:zt.input,dn.input,pe),variant:ce()({[`${ue}-${It}`]:tn},(0,Ne.Z)(ue,rt)),affixWrapper:ce()({[`${ue}-affix-wrapper-sm`]:at==="small",[`${ue}-affix-wrapper-lg`]:at==="large",[`${ue}-affix-wrapper-rtl`]:ut==="rtl"},pe),wrapper:ce()({[`${ue}-group-rtl`]:ut==="rtl"},pe),groupWrapper:ce()({[`${ue}-group-wrapper-sm`]:at==="small",[`${ue}-group-wrapper-lg`]:at==="large",[`${ue}-group-wrapper-rtl`]:ut==="rtl",[`${ue}-group-wrapper-${It}`]:tn},(0,Ne.Z)(`${ue}-group-wrapper`,rt,$t),pe)})}))))})},79809:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return He}});var y=E(59301),ve=E(92310),ce=E.n(ve),Le=E(22711),xe=E(86013),ge=E(82855),Se=E(48755),Ne=E(2171),Be=E(83397),fe=E(31756),$e=E(56553),Oe=E(24971),ct=E(70045),Ke=E(30292),Te=E(53075),we=E(16931),Ie=E(51636),Pe=E(64910);const tt=Xe=>{const{componentCls:St,paddingLG:gt}=Xe,ot=`${St}-textarea`;return{[`textarea${St}`]:{maxWidth:"100%",height:"auto",minHeight:Xe.controlHeight,lineHeight:Xe.lineHeight,verticalAlign:"bottom",transition:`all ${Xe.motionDurationSlow}`,resize:"vertical",[`&${St}-mouse-active`]:{transition:`all ${Xe.motionDurationSlow}, height 0s, width 0s`}},[`${St}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[ot]:{position:"relative","&-show-count":{[`> ${St}`]:{height:"100%"},[`${St}-data-count`]:{position:"absolute",bottom:Xe.calc(Xe.fontSize).mul(Xe.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Xe.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
|
&-allow-clear > ${St},
|
|
|
&-affix-wrapper${ot}-has-feedback ${St}
|
|
|
`]:{paddingInlineEnd:gt},[`&-affix-wrapper${St}-affix-wrapper`]:{padding:0,[`> textarea${St}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Xe.calc(Xe.controlHeight).sub(Xe.calc(Xe.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${St}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${St}-clear-icon`]:{position:"absolute",insetInlineEnd:Xe.paddingInline,insetBlockStart:Xe.paddingXS},[`${ot}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Xe.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${St}-affix-wrapper-sm`]:{[`${St}-suffix`]:{[`${St}-clear-icon`]:{insetInlineEnd:Xe.paddingInlineSM}}}}}};var Et=(0,we.I$)(["Input","TextArea"],Xe=>{const St=(0,Ie.mergeToken)(Xe,(0,Pe.e)(Xe));return[tt(St)]},Pe.T,{resetFont:!1}),_e=function(Xe,St){var gt={};for(var ot in Xe)Object.prototype.hasOwnProperty.call(Xe,ot)&&St.indexOf(ot)<0&&(gt[ot]=Xe[ot]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,ot=Object.getOwnPropertySymbols(Xe);Ue<ot.length;Ue++)St.indexOf(ot[Ue])<0&&Object.prototype.propertyIsEnumerable.call(Xe,ot[Ue])&&(gt[ot[Ue]]=Xe[ot[Ue]]);return gt},He=(0,y.forwardRef)((Xe,St)=>{var gt;const{prefixCls:ot,bordered:Ue=!0,size:Ee,disabled:We,status:Ae,allowClear:de,classNames:wt,rootClassName:Qe,className:Ge,style:st,styles:Ce,variant:be,showCount:vt,onMouseDown:zt,onResize:jt}=Xe,De=_e(Xe,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:pt,direction:ut,allowClear:Qt,autoComplete:yt,className:Ct,style:mt,classNames:dn,styles:Ht}=(0,Se.dj)("textArea"),ue=y.useContext(Ne.Z),ie=We!=null?We:ue,{status:re,hasFeedback:oe,feedbackIcon:pe}=y.useContext($e.aM),ae=(0,ge.F)(re,Ae),me=y.useRef(null);y.useImperativeHandle(St,()=>{var tn;return{resizableTextArea:(tn=me.current)===null||tn===void 0?void 0:tn.resizableTextArea,focus:mn=>{var nt,Nt;(0,Ke.nH)((Nt=(nt=me.current)===null||nt===void 0?void 0:nt.resizableTextArea)===null||Nt===void 0?void 0:Nt.textArea,mn)},blur:()=>{var mn;return(mn=me.current)===null||mn===void 0?void 0:mn.blur()}}});const Ze=pt("input",ot),Ot=(0,Be.Z)(Ze),[at,qe,bt]=(0,Te.TI)(Ze,Qe),[At]=Et(Ze,Ot),{compactSize:$t,compactItemClassnames:Ye}=(0,ct.ri)(Ze,ut),rt=(0,fe.Z)(tn=>{var mn;return(mn=Ee!=null?Ee:$t)!==null&&mn!==void 0?mn:tn}),[Vt,sn]=(0,Oe.Z)("textArea",be,Ue),wn=(0,xe.Z)(de!=null?de:Qt),[pn,kt]=y.useState(!1),[Gt,Pt]=y.useState(!1),Je=tn=>{kt(!0),zt==null||zt(tn);const mn=()=>{kt(!1),document.removeEventListener("mouseup",mn)};document.addEventListener("mouseup",mn)},It=tn=>{var mn,nt;if(jt==null||jt(tn),pn&&typeof getComputedStyle=="function"){const Nt=(nt=(mn=me.current)===null||mn===void 0?void 0:mn.nativeElement)===null||nt===void 0?void 0:nt.querySelector("textarea");Nt&&getComputedStyle(Nt).resize==="both"&&Pt(!0)}};return at(At(y.createElement(Le.default,Object.assign({autoComplete:yt},De,{style:Object.assign(Object.assign({},mt),st),styles:Object.assign(Object.assign({},Ht),Ce),disabled:ie,allowClear:wn,className:ce()(bt,Ot,Ge,Qe,Ye,Ct,Gt&&`${Ze}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},wt),dn),{textarea:ce()({[`${Ze}-sm`]:rt==="small",[`${Ze}-lg`]:rt==="large"},qe,wt==null?void 0:wt.textarea,dn.textarea,pn&&`${Ze}-mouse-active`),variant:ce()({[`${Ze}-${Vt}`]:sn},(0,ge.Z)(Ze,ae)),affixWrapper:ce()(`${Ze}-textarea-affix-wrapper`,{[`${Ze}-affix-wrapper-rtl`]:ut==="rtl",[`${Ze}-affix-wrapper-sm`]:rt==="small",[`${Ze}-affix-wrapper-lg`]:rt==="large",[`${Ze}-textarea-show-count`]:vt||((gt=Xe.count)===null||gt===void 0?void 0:gt.show)},qe)}),prefixCls:Ze,suffix:oe&&y.createElement("span",{className:`${Ze}-textarea-suffix`},pe),showCount:vt,ref:me,onResize:It,onMouseDown:Je}))))})},23826:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return ve}});var y=E(59301);function ve(ce,Le){const xe=(0,y.useRef)([]),ge=()=>{xe.current.push(setTimeout(()=>{var Se,Ne,Be,fe;!((Se=ce.current)===null||Se===void 0)&&Se.input&&((Ne=ce.current)===null||Ne===void 0?void 0:Ne.input.getAttribute("type"))==="password"&&(!((Be=ce.current)===null||Be===void 0)&&Be.input.hasAttribute("value"))&&((fe=ce.current)===null||fe===void 0||fe.input.removeAttribute("value"))}))};return(0,y.useEffect)(()=>(Le&&ge(),()=>xe.current.forEach(Se=>{Se&&clearTimeout(Se)})),[]),ge}},37568:function(Mn,Yt,E){"use strict";E.d(Yt,{default:function(){return dn}});var y=E(59301),ve=E(92310),ce=E.n(ve),Le=E(48755),xe=E(56553),ge=E(53075),Ne=Ht=>{const{getPrefixCls:ue,direction:ie}=(0,y.useContext)(Le.E_),{prefixCls:re,className:oe}=Ht,pe=ue("input-group",re),ae=ue("input"),[me,Ze,Ot]=(0,ge.ZP)(ae),at=ce()(pe,Ot,{[`${pe}-lg`]:Ht.size==="large",[`${pe}-sm`]:Ht.size==="small",[`${pe}-compact`]:Ht.compact,[`${pe}-rtl`]:ie==="rtl"},Ze,oe),qe=(0,y.useContext)(xe.aM),bt=(0,y.useMemo)(()=>Object.assign(Object.assign({},qe),{isFormItemInput:!1}),[qe]);return me(y.createElement("span",{className:at,style:Ht.style,onMouseEnter:Ht.onMouseEnter,onMouseLeave:Ht.onMouseLeave,onFocus:Ht.onFocus,onBlur:Ht.onBlur},y.createElement(xe.aM.Provider,{value:bt},Ht.children)))},Be=E(49397),fe=E(94480),$e=E(6089),Oe=E(26112),ct=E(82855),Ke=E(31756),Te=E(16931),we=E(51636),Ie=E(64910);const Pe=Ht=>{const{componentCls:ue,paddingXS:ie}=Ht;return{[ue]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:ie,"&-rtl":{direction:"rtl"},[`${ue}-input`]:{textAlign:"center",paddingInline:Ht.paddingXXS},[`&${ue}-sm ${ue}-input`]:{paddingInline:Ht.calc(Ht.paddingXXS).div(2).equal()},[`&${ue}-lg ${ue}-input`]:{paddingInline:Ht.paddingXS}}}};var tt=(0,Te.I$)(["Input","OTP"],Ht=>{const ue=(0,we.mergeToken)(Ht,(0,Ie.e)(Ht));return[Pe(ue)]},Ie.T),Et=E(16089),_e=function(Ht,ue){var ie={};for(var re in Ht)Object.prototype.hasOwnProperty.call(Ht,re)&&ue.indexOf(re)<0&&(ie[re]=Ht[re]);if(Ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,re=Object.getOwnPropertySymbols(Ht);oe<re.length;oe++)ue.indexOf(re[oe])<0&&Object.prototype.propertyIsEnumerable.call(Ht,re[oe])&&(ie[re[oe]]=Ht[re[oe]]);return ie},He=y.forwardRef((Ht,ue)=>{const{value:ie,onChange:re,onActiveChange:oe,index:pe,mask:ae}=Ht,me=_e(Ht,["value","onChange","onActiveChange","index","mask"]),Ze=ie&&typeof ae=="string"?ae:ie,Ot=$t=>{re(pe,$t.target.value)},at=y.useRef(null);y.useImperativeHandle(ue,()=>at.current);const qe=()=>{(0,Et.Z)(()=>{var $t;const Ye=($t=at.current)===null||$t===void 0?void 0:$t.input;document.activeElement===Ye&&Ye&&Ye.select()})},bt=$t=>{const{key:Ye,ctrlKey:rt,metaKey:Vt}=$t;Ye==="ArrowLeft"?oe(pe-1):Ye==="ArrowRight"?oe(pe+1):Ye==="z"&&(rt||Vt)&&$t.preventDefault(),qe()},At=$t=>{$t.key==="Backspace"&&!ie&&oe(pe-1),qe()};return y.createElement(Be.Z,Object.assign({type:ae===!0?"password":"text"},me,{ref:at,value:Ze,onInput:Ot,onFocus:qe,onKeyDown:bt,onKeyUp:At,onMouseDown:qe,onMouseUp:qe}))}),Xe=function(Ht,ue){var ie={};for(var re in Ht)Object.prototype.hasOwnProperty.call(Ht,re)&&ue.indexOf(re)<0&&(ie[re]=Ht[re]);if(Ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,re=Object.getOwnPropertySymbols(Ht);oe<re.length;oe++)ue.indexOf(re[oe])<0&&Object.prototype.propertyIsEnumerable.call(Ht,re[oe])&&(ie[re[oe]]=Ht[re[oe]]);return ie};function St(Ht){return(Ht||"").split("")}const gt=Ht=>{const{index:ue,prefixCls:ie,separator:re}=Ht,oe=typeof re=="function"?re(ue):re;return oe?y.createElement("span",{className:`${ie}-separator`},oe):null};var Ue=y.forwardRef((Ht,ue)=>{const{prefixCls:ie,length:re=6,size:oe,defaultValue:pe,value:ae,onChange:me,formatter:Ze,separator:Ot,variant:at,disabled:qe,status:bt,autoFocus:At,mask:$t,type:Ye,onInput:rt,inputMode:Vt}=Ht,sn=Xe(Ht,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:wn,direction:pn}=y.useContext(Le.E_),kt=wn("otp",ie),Gt=(0,Oe.Z)(sn,{aria:!0,data:!0,attr:!0}),[Pt,Je,It]=tt(kt),tn=(0,Ke.Z)(nn=>oe!=null?oe:nn),mn=y.useContext(xe.aM),nt=(0,ct.F)(mn.status,bt),Nt=y.useMemo(()=>Object.assign(Object.assign({},mn),{status:nt,hasFeedback:!1,feedbackIcon:null}),[mn,nt]),Jt=y.useRef(null),xt=y.useRef({});y.useImperativeHandle(ue,()=>({focus:()=>{var nn;(nn=xt.current[0])===null||nn===void 0||nn.focus()},blur:()=>{var nn;for(let Sn=0;Sn<re;Sn+=1)(nn=xt.current[Sn])===null||nn===void 0||nn.blur()},nativeElement:Jt.current}));const Wt=nn=>Ze?Ze(nn):nn,[qt,Tn]=y.useState(()=>St(Wt(pe||"")));y.useEffect(()=>{ae!==void 0&&Tn(St(ae))},[ae]);const Gn=(0,$e.Z)(nn=>{Tn(nn),rt&&rt(nn),me&&nn.length===re&&nn.every(Sn=>Sn)&&nn.some((Sn,rn)=>qt[rn]!==Sn)&&me(nn.join(""))}),On=(0,$e.Z)((nn,Sn)=>{let rn=(0,fe.Z)(qt);for(let xn=0;xn<nn;xn+=1)rn[xn]||(rn[xn]="");Sn.length<=1?rn[nn]=Sn:rn=rn.slice(0,nn).concat(St(Sn)),rn=rn.slice(0,re);for(let xn=rn.length-1;xn>=0&&!rn[xn];xn-=1)rn.pop();const En=Wt(rn.map(xn=>xn||" ").join(""));return rn=St(En).map((xn,Vn)=>xn===" "&&!rn[Vn]?rn[Vn]:xn),rn}),Hn=(nn,Sn)=>{var rn;const En=On(nn,Sn),xn=Math.min(nn+Sn.length,re-1);xn!==nn&&En[nn]!==void 0&&((rn=xt.current[xn])===null||rn===void 0||rn.focus()),Gn(En)},Zt=nn=>{var Sn;(Sn=xt.current[nn])===null||Sn===void 0||Sn.focus()},Dn={variant:at,disabled:qe,status:nt,mask:$t,type:Ye,inputMode:Vt};return Pt(y.createElement("div",Object.assign({},Gt,{ref:Jt,className:ce()(kt,{[`${kt}-sm`]:tn==="small",[`${kt}-lg`]:tn==="large",[`${kt}-rtl`]:pn==="rtl"},It,Je)}),y.createElement(xe.aM.Provider,{value:Nt},Array.from({length:re}).map((nn,Sn)=>{const rn=`otp-${Sn}`,En=qt[Sn]||"";return y.createElement(y.Fragment,{key:rn},y.createElement(He,Object.assign({ref:xn=>{xt.current[Sn]=xn},index:Sn,size:tn,htmlSize:1,className:`${kt}-input`,onChange:Hn,value:En,onActiveChange:Zt,autoFocus:Sn===0&&At},Dn)),Sn<re-1&&y.createElement(gt,{separator:Ot,index:Sn,prefixCls:kt}))}))))}),Ee=E(73331),We=E(15277),Ae=E(2738),de=E(8654),wt=E(2171),Qe=E(23826),Ge=function(Ht,ue){var ie={};for(var re in Ht)Object.prototype.hasOwnProperty.call(Ht,re)&&ue.indexOf(re)<0&&(ie[re]=Ht[re]);if(Ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,re=Object.getOwnPropertySymbols(Ht);oe<re.length;oe++)ue.indexOf(re[oe])<0&&Object.prototype.propertyIsEnumerable.call(Ht,re[oe])&&(ie[re[oe]]=Ht[re[oe]]);return ie};const st=Ht=>Ht?y.createElement(We.Z,null):y.createElement(Ee.Z,null),Ce={click:"onClick",hover:"onMouseOver"};var vt=y.forwardRef((Ht,ue)=>{const{disabled:ie,action:re="click",visibilityToggle:oe=!0,iconRender:pe=st}=Ht,ae=y.useContext(wt.Z),me=ie!=null?ie:ae,Ze=typeof oe=="object"&&oe.visible!==void 0,[Ot,at]=(0,y.useState)(()=>Ze?oe.visible:!1),qe=(0,y.useRef)(null);y.useEffect(()=>{Ze&&at(oe.visible)},[Ze,oe]);const bt=(0,Qe.Z)(qe),At=()=>{var tn;if(me)return;Ot&&bt();const mn=!Ot;at(mn),typeof oe=="object"&&((tn=oe.onVisibleChange)===null||tn===void 0||tn.call(oe,mn))},$t=tn=>{const mn=Ce[re]||"",nt=pe(Ot),Nt={[mn]:At,className:`${tn}-icon`,key:"passwordIcon",onMouseDown:Jt=>{Jt.preventDefault()},onMouseUp:Jt=>{Jt.preventDefault()}};return y.cloneElement(y.isValidElement(nt)?nt:y.createElement("span",null,nt),Nt)},{className:Ye,prefixCls:rt,inputPrefixCls:Vt,size:sn}=Ht,wn=Ge(Ht,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:pn}=y.useContext(Le.E_),kt=pn("input",Vt),Gt=pn("input-password",rt),Pt=oe&&$t(Gt),Je=ce()(Gt,Ye,{[`${Gt}-${sn}`]:!!sn}),It=Object.assign(Object.assign({},(0,Ae.Z)(wn,["suffix","iconRender","visibilityToggle"])),{type:Ot?"text":"password",className:Je,prefixCls:kt,suffix:Pt});return sn&&(It.size=sn),y.createElement(Be.Z,Object.assign({ref:(0,de.sQ)(ue,qe)},It))}),zt=E(47472),jt=E(22703),De=E(7939),pt=E(70045),ut=function(Ht,ue){var ie={};for(var re in Ht)Object.prototype.hasOwnProperty.call(Ht,re)&&ue.indexOf(re)<0&&(ie[re]=Ht[re]);if(Ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,re=Object.getOwnPropertySymbols(Ht);oe<re.length;oe++)ue.indexOf(re[oe])<0&&Object.prototype.propertyIsEnumerable.call(Ht,re[oe])&&(ie[re[oe]]=Ht[re[oe]]);return ie},yt=y.forwardRef((Ht,ue)=>{const{prefixCls:ie,inputPrefixCls:re,className:oe,size:pe,suffix:ae,enterButton:me=!1,addonAfter:Ze,loading:Ot,disabled:at,onSearch:qe,onChange:bt,onCompositionStart:At,onCompositionEnd:$t}=Ht,Ye=ut(Ht,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:rt,direction:Vt}=y.useContext(Le.E_),sn=y.useRef(!1),wn=rt("input-search",ie),pn=rt("input",re),{compactSize:kt}=(0,pt.ri)(wn,Vt),Gt=(0,Ke.Z)(Hn=>{var Zt;return(Zt=pe!=null?pe:kt)!==null&&Zt!==void 0?Zt:Hn}),Pt=y.useRef(null),Je=Hn=>{Hn!=null&&Hn.target&&Hn.type==="click"&&qe&&qe(Hn.target.value,Hn,{source:"clear"}),bt==null||bt(Hn)},It=Hn=>{var Zt;document.activeElement===((Zt=Pt.current)===null||Zt===void 0?void 0:Zt.input)&&Hn.preventDefault()},tn=Hn=>{var Zt,Dn;qe&&qe((Dn=(Zt=Pt.current)===null||Zt===void 0?void 0:Zt.input)===null||Dn===void 0?void 0:Dn.value,Hn,{source:"input"})},mn=Hn=>{sn.current||Ot||tn(Hn)},nt=typeof me=="boolean"?y.createElement(zt.Z,null):null,Nt=`${wn}-button`;let Jt;const xt=me||{},Wt=xt.type&&xt.type.__ANT_BUTTON===!0;Wt||xt.type==="button"?Jt=(0,jt.Tm)(xt,Object.assign({onMouseDown:It,onClick:Hn=>{var Zt,Dn;(Dn=(Zt=xt==null?void 0:xt.props)===null||Zt===void 0?void 0:Zt.onClick)===null||Dn===void 0||Dn.call(Zt,Hn),tn(Hn)},key:"enterButton"},Wt?{className:Nt,size:Gt}:{})):Jt=y.createElement(De.ZP,{className:Nt,type:me?"primary":void 0,size:Gt,disabled:at,key:"enterButton",onMouseDown:It,onClick:tn,loading:Ot,icon:nt},me),Ze&&(Jt=[Jt,(0,jt.Tm)(Ze,{key:"addonAfter"})]);const qt=ce()(wn,{[`${wn}-rtl`]:Vt==="rtl",[`${wn}-${Gt}`]:!!Gt,[`${wn}-with-button`]:!!me},oe),Tn=Object.assign(Object.assign({},Ye),{className:qt,prefixCls:pn,type:"search"}),Gn=Hn=>{sn.current=!0,At==null||At(Hn)},On=Hn=>{sn.current=!1,$t==null||$t(Hn)};return y.createElement(Be.Z,Object.assign({ref:(0,de.sQ)(Pt,ue),onPressEnter:mn},Tn,{size:Gt,onCompositionStart:Gn,onCompositionEnd:On,addonAfter:Jt,suffix:ae,onChange:Je,disabled:at}))}),Ct=E(79809);const mt=Be.Z;mt.Group=Ne,mt.Search=yt,mt.TextArea=Ct.Z,mt.Password=vt,mt.OTP=Ue;var dn=mt},24303:function(Mn,Yt,E){"use strict";E.d(Yt,{D:function(){return Xe},Z:function(){return ot}});var y=E(59301),ve=E(54476),ce={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Le=ce,xe=E(7657),ge=function(Ee,We){return y.createElement(xe.Z,(0,ve.Z)({},Ee,{ref:We,icon:Le}))},Se=y.forwardRef(ge),Ne=Se,Be=E(33853),fe=E(38819),$e=E(92310),Oe=E.n($e),ct=E(2738),Ke=E(48755),Te=E(6989),we=E(36237),Ie=E(48923),Pe=E(16931);const tt=Ue=>{const{componentCls:Ee,siderBg:We,motionDurationMid:Ae,motionDurationSlow:de,antCls:wt,triggerHeight:Qe,triggerColor:Ge,triggerBg:st,headerHeight:Ce,zeroTriggerWidth:be,zeroTriggerHeight:vt,borderRadiusLG:zt,lightSiderBg:jt,lightTriggerColor:De,lightTriggerBg:pt,bodyBg:ut}=Ue;return{[Ee]:{position:"relative",minWidth:0,background:We,transition:`all ${Ae}, background 0s`,"&-has-trigger":{paddingBottom:Qe},"&-right":{order:1},[`${Ee}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${wt}-menu${wt}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Ee}-children`]:{overflow:"hidden"},[`${Ee}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:Qe,color:Ge,lineHeight:(0,we.unit)(Qe),textAlign:"center",background:st,cursor:"pointer",transition:`all ${Ae}`},[`${Ee}-zero-width-trigger`]:{position:"absolute",top:Ce,insetInlineEnd:Ue.calc(be).mul(-1).equal(),zIndex:1,width:be,height:vt,color:Ge,fontSize:Ue.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:We,borderRadius:`0 ${(0,we.unit)(zt)} ${(0,we.unit)(zt)} 0`,cursor:"pointer",transition:`background ${de} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${de}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:Ue.calc(be).mul(-1).equal(),borderRadius:`${(0,we.unit)(zt)} 0 0 ${(0,we.unit)(zt)}`}},"&-light":{background:jt,[`${Ee}-trigger`]:{color:De,background:pt},[`${Ee}-zero-width-trigger`]:{color:De,background:pt,border:`1px solid ${ut}`,borderInlineStart:0}}}}};var Et=(0,Pe.I$)(["Layout","Sider"],Ue=>[tt(Ue)],Ie.eh,{deprecatedTokens:Ie.jn}),_e=function(Ue,Ee){var We={};for(var Ae in Ue)Object.prototype.hasOwnProperty.call(Ue,Ae)&&Ee.indexOf(Ae)<0&&(We[Ae]=Ue[Ae]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,Ae=Object.getOwnPropertySymbols(Ue);de<Ae.length;de++)Ee.indexOf(Ae[de])<0&&Object.prototype.propertyIsEnumerable.call(Ue,Ae[de])&&(We[Ae[de]]=Ue[Ae[de]]);return We};const Fe={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},He=Ue=>!Number.isNaN(Number.parseFloat(Ue))&&isFinite(Ue),Xe=y.createContext({}),St=(()=>{let Ue=0;return function(){let Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ue+=1,`${Ee}${Ue}`}})();var ot=y.forwardRef((Ue,Ee)=>{const{prefixCls:We,className:Ae,trigger:de,children:wt,defaultCollapsed:Qe=!1,theme:Ge="dark",style:st={},collapsible:Ce=!1,reverseArrow:be=!1,width:vt=200,collapsedWidth:zt=80,zeroWidthTriggerStyle:jt,breakpoint:De,onCollapse:pt,onBreakpoint:ut}=Ue,Qt=_e(Ue,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:yt}=(0,y.useContext)(Te.V),[Ct,mt]=(0,y.useState)("collapsed"in Ue?Ue.collapsed:Qe),[dn,Ht]=(0,y.useState)(!1);(0,y.useEffect)(()=>{"collapsed"in Ue&&mt(Ue.collapsed)},[Ue.collapsed]);const ue=(Gt,Pt)=>{"collapsed"in Ue||mt(Gt),pt==null||pt(Gt,Pt)},{getPrefixCls:ie,direction:re}=(0,y.useContext)(Ke.E_),oe=ie("layout-sider",We),[pe,ae,me]=Et(oe),Ze=(0,y.useRef)(null);Ze.current=Gt=>{Ht(Gt.matches),ut==null||ut(Gt.matches),Ct!==Gt.matches&&ue(Gt.matches,"responsive")},(0,y.useEffect)(()=>{function Gt(Je){return Ze.current(Je)}let Pt;if(typeof window!="undefined"){const{matchMedia:Je}=window;if(Je&&De&&De in Fe){Pt=Je(`screen and (max-width: ${Fe[De]})`);try{Pt.addEventListener("change",Gt)}catch(It){Pt.addListener(Gt)}Gt(Pt)}}return()=>{try{Pt==null||Pt.removeEventListener("change",Gt)}catch(Je){Pt==null||Pt.removeListener(Gt)}}},[De]),(0,y.useEffect)(()=>{const Gt=St("ant-sider-");return yt.addSider(Gt),()=>yt.removeSider(Gt)},[]);const Ot=()=>{ue(!Ct,"clickTrigger")},at=(0,ct.Z)(Qt,["collapsed"]),qe=Ct?zt:vt,bt=He(qe)?`${qe}px`:String(qe),At=parseFloat(String(zt||0))===0?y.createElement("span",{onClick:Ot,className:Oe()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${be?"right":"left"}`),style:jt},de||y.createElement(Ne,null)):null,$t=re==="rtl"==!be,Vt={expanded:$t?y.createElement(fe.Z,null):y.createElement(Be.Z,null),collapsed:$t?y.createElement(Be.Z,null):y.createElement(fe.Z,null)}[Ct?"collapsed":"expanded"],sn=de!==null?At||y.createElement("div",{className:`${oe}-trigger`,onClick:Ot,style:{width:bt}},de||Vt):null,wn=Object.assign(Object.assign({},st),{flex:`0 0 ${bt}`,maxWidth:bt,minWidth:bt,width:bt}),pn=Oe()(oe,`${oe}-${Ge}`,{[`${oe}-collapsed`]:!!Ct,[`${oe}-has-trigger`]:Ce&&de!==null&&!At,[`${oe}-below`]:!!dn,[`${oe}-zero-width`]:parseFloat(bt)===0},Ae,ae,me),kt=y.useMemo(()=>({siderCollapsed:Ct}),[Ct]);return pe(y.createElement(Xe.Provider,{value:kt},y.createElement("aside",Object.assign({className:pn},at,{style:wn,ref:Ee}),y.createElement("div",{className:`${oe}-children`},wt),Ce||dn&&At?sn:null)))})},6989:function(Mn,Yt,E){"use strict";E.d(Yt,{V:function(){return ve}});var y=E(59301);const ve=y.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(Mn,Yt,E){"use strict";E.d(Yt,{eh:function(){return Le},jn:function(){return xe}});var y=E(36237),ve=E(16931);const ce=ge=>{const{antCls:Se,componentCls:Ne,colorText:Be,footerBg:fe,headerHeight:$e,headerPadding:Oe,headerColor:ct,footerPadding:Ke,fontSize:Te,bodyBg:we,headerBg:Ie}=ge;return{[Ne]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:we,"&, *":{boxSizing:"border-box"},[`&${Ne}-has-sider`]:{flexDirection:"row",[`> ${Ne}, > ${Ne}-content`]:{width:0}},[`${Ne}-header, &${Ne}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${Ne}-header`]:{height:$e,padding:Oe,color:ct,lineHeight:(0,y.unit)($e),background:Ie,[`${Se}-menu`]:{lineHeight:"inherit"}},[`${Ne}-footer`]:{padding:Ke,color:Be,fontSize:Te,background:fe},[`${Ne}-content`]:{flex:"auto",color:Be,minHeight:0}}},Le=ge=>{const{colorBgLayout:Se,controlHeight:Ne,controlHeightLG:Be,colorText:fe,controlHeightSM:$e,marginXXS:Oe,colorTextLightSolid:ct,colorBgContainer:Ke}=ge,Te=Be*1.25;return{colorBgHeader:"#001529",colorBgBody:Se,colorBgTrigger:"#002140",bodyBg:Se,headerBg:"#001529",headerHeight:Ne*2,headerPadding:`0 ${Te}px`,headerColor:fe,footerPadding:`${$e}px ${Te}px`,footerBg:Se,siderBg:"#001529",triggerHeight:Be+Oe*2,triggerBg:"#002140",triggerColor:ct,zeroTriggerWidth:Be,zeroTriggerHeight:Be,lightSiderBg:Ke,lightTriggerBg:Ke,lightTriggerColor:fe}},xe=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Yt.ZP=(0,ve.I$)("Layout",ge=>[ce(ge)],Le,{deprecatedTokens:xe})},78857:function(Mn,Yt,E){"use strict";E.d(Yt,{J:function(){return ge}});var y=E(59301),ve=E(8654),ce=E(62487),Le=function(Se,Ne){var Be={};for(var fe in Se)Object.prototype.hasOwnProperty.call(Se,fe)&&Ne.indexOf(fe)<0&&(Be[fe]=Se[fe]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,fe=Object.getOwnPropertySymbols(Se);$e<fe.length;$e++)Ne.indexOf(fe[$e])<0&&Object.prototype.propertyIsEnumerable.call(Se,fe[$e])&&(Be[fe[$e]]=Se[fe[$e]]);return Be};const xe=y.createContext(null),ge=y.forwardRef((Se,Ne)=>{const{children:Be}=Se,fe=Le(Se,["children"]),$e=y.useContext(xe),Oe=y.useMemo(()=>Object.assign(Object.assign({},$e),fe),[$e,fe.prefixCls,fe.mode,fe.selectable,fe.rootClassName]),ct=(0,ve.t4)(Be),Ke=(0,ve.x1)(Ne,ct?(0,ve.C4)(Be):null);return y.createElement(xe.Provider,{value:Oe},y.createElement(ce.Z,{space:!0},ct?y.cloneElement(Be,{ref:Ke}):Be))});Yt.Z=xe},93041:function(Mn,Yt,E){"use strict";E.d(Yt,{default:function(){return pe}});var y=E(59301),ve=E(28321),ce=E(24303),Le=E(18785),xe=E(92310),ge=E.n(xe),Se=E(6089),Ne=E(2738),Be=E(86641),fe=E(22703),$e=E(48755),Oe=E(83397),Ke=(0,y.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Te=function(ae,me){var Ze={};for(var Ot in ae)Object.prototype.hasOwnProperty.call(ae,Ot)&&me.indexOf(Ot)<0&&(Ze[Ot]=ae[Ot]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Ot=Object.getOwnPropertySymbols(ae);at<Ot.length;at++)me.indexOf(Ot[at])<0&&Object.prototype.propertyIsEnumerable.call(ae,Ot[at])&&(Ze[Ot[at]]=ae[Ot[at]]);return Ze},Ie=ae=>{const{prefixCls:me,className:Ze,dashed:Ot}=ae,at=Te(ae,["prefixCls","className","dashed"]),{getPrefixCls:qe}=y.useContext($e.E_),bt=qe("menu",me),At=ge()({[`${bt}-item-divider-dashed`]:!!Ot},Ze);return y.createElement(ve.iz,Object.assign({className:At},at))},Pe=E(11592),tt=E(25399),_e=ae=>{var me;const{className:Ze,children:Ot,icon:at,title:qe,danger:bt,extra:At}=ae,{prefixCls:$t,firstLevel:Ye,direction:rt,disableMenuItemTitleTooltip:Vt,inlineCollapsed:sn}=y.useContext(Ke),wn=It=>{const tn=Ot==null?void 0:Ot[0],mn=y.createElement("span",{className:ge()(`${$t}-title-content`,{[`${$t}-title-content-with-extra`]:!!At||At===0})},Ot);return(!at||y.isValidElement(Ot)&&Ot.type==="span")&&Ot&&It&&Ye&&typeof tn=="string"?y.createElement("div",{className:`${$t}-inline-collapsed-noicon`},tn.charAt(0)):mn},{siderCollapsed:pn}=y.useContext(ce.D);let kt=qe;typeof qe=="undefined"?kt=Ye?Ot:"":qe===!1&&(kt="");const Gt={title:kt};!pn&&!sn&&(Gt.title=null,Gt.open=!1);const Pt=(0,Pe.Z)(Ot).length;let Je=y.createElement(ve.ck,Object.assign({},(0,Ne.Z)(ae,["title","icon","danger"]),{className:ge()({[`${$t}-item-danger`]:bt,[`${$t}-item-only-child`]:(at?Pt+1:Pt)===1},Ze),title:typeof qe=="string"?qe:void 0}),(0,fe.Tm)(at,{className:ge()(y.isValidElement(at)?(me=at.props)===null||me===void 0?void 0:me.className:"",`${$t}-item-icon`)}),wn(sn));return Vt||(Je=y.createElement(tt.Z,Object.assign({},Gt,{placement:rt==="rtl"?"left":"right",classNames:{root:`${$t}-inline-collapsed-tooltip`}}),Je)),Je},Fe=E(78857),He=E(36237),Xe=E(17835),St=E(63356),gt=E(34961),ot=E(46e3),Ue=E(34925),Ee=E(16931),We=E(51636),de=ae=>{const{componentCls:me,motionDurationSlow:Ze,horizontalLineHeight:Ot,colorSplit:at,lineWidth:qe,lineType:bt,itemPaddingInline:At}=ae;return{[`${me}-horizontal`]:{lineHeight:Ot,border:0,borderBottom:`${(0,He.unit)(qe)} ${bt} ${at}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${me}-item, ${me}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:At},[`> ${me}-item:hover,
|
|
|
> ${me}-item-active,
|
|
|
> ${me}-submenu ${me}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${me}-item, ${me}-submenu-title`]:{transition:[`border-color ${Ze}`,`background ${Ze}`].join(",")},[`${me}-submenu-arrow`]:{display:"none"}}}},Qe=ae=>{let{componentCls:me,menuArrowOffset:Ze,calc:Ot}=ae;return{[`${me}-rtl`]:{direction:"rtl"},[`${me}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${me}-rtl${me}-vertical,
|
|
|
${me}-submenu-rtl ${me}-vertical`]:{[`${me}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,He.unit)(Ot(Ze).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,He.unit)(Ze)})`}}}}};const Ge=ae=>Object.assign({},(0,St.oN)(ae));var Ce=(ae,me)=>{const{componentCls:Ze,itemColor:Ot,itemSelectedColor:at,subMenuItemSelectedColor:qe,groupTitleColor:bt,itemBg:At,subMenuItemBg:$t,itemSelectedBg:Ye,activeBarHeight:rt,activeBarWidth:Vt,activeBarBorderWidth:sn,motionDurationSlow:wn,motionEaseInOut:pn,motionEaseOut:kt,itemPaddingInline:Gt,motionDurationMid:Pt,itemHoverColor:Je,lineType:It,colorSplit:tn,itemDisabledColor:mn,dangerItemColor:nt,dangerItemHoverColor:Nt,dangerItemSelectedColor:Jt,dangerItemActiveBg:xt,dangerItemSelectedBg:Wt,popupBg:qt,itemHoverBg:Tn,itemActiveBg:Gn,menuSubMenuBg:On,horizontalItemSelectedColor:Hn,horizontalItemSelectedBg:Zt,horizontalItemBorderRadius:Dn,horizontalItemHoverBg:nn}=ae;return{[`${Ze}-${me}, ${Ze}-${me} > ${Ze}`]:{color:Ot,background:At,[`&${Ze}-root:focus-visible`]:Object.assign({},Ge(ae)),[`${Ze}-item`]:{"&-group-title, &-extra":{color:bt}},[`${Ze}-submenu-selected > ${Ze}-submenu-title`]:{color:qe},[`${Ze}-item, ${Ze}-submenu-title`]:{color:Ot,[`&:not(${Ze}-item-disabled):focus-visible`]:Object.assign({},Ge(ae))},[`${Ze}-item-disabled, ${Ze}-submenu-disabled`]:{color:`${mn} !important`},[`${Ze}-item:not(${Ze}-item-selected):not(${Ze}-submenu-selected)`]:{[`&:hover, > ${Ze}-submenu-title:hover`]:{color:Je}},[`&:not(${Ze}-horizontal)`]:{[`${Ze}-item:not(${Ze}-item-selected)`]:{"&:hover":{backgroundColor:Tn},"&:active":{backgroundColor:Gn}},[`${Ze}-submenu-title`]:{"&:hover":{backgroundColor:Tn},"&:active":{backgroundColor:Gn}}},[`${Ze}-item-danger`]:{color:nt,[`&${Ze}-item:hover`]:{[`&:not(${Ze}-item-selected):not(${Ze}-submenu-selected)`]:{color:Nt}},[`&${Ze}-item:active`]:{background:xt}},[`${Ze}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ze}-item-selected`]:{color:at,[`&${Ze}-item-danger`]:{color:Jt},"a, a:hover":{color:"inherit"}},[`& ${Ze}-item-selected`]:{backgroundColor:Ye,[`&${Ze}-item-danger`]:{backgroundColor:Wt}},[`&${Ze}-submenu > ${Ze}`]:{backgroundColor:On},[`&${Ze}-popup > ${Ze}`]:{backgroundColor:qt},[`&${Ze}-submenu-popup > ${Ze}`]:{backgroundColor:qt},[`&${Ze}-horizontal`]:Object.assign(Object.assign({},me==="dark"?{borderBottom:0}:{}),{[`> ${Ze}-item, > ${Ze}-submenu`]:{top:sn,marginTop:ae.calc(sn).mul(-1).equal(),marginBottom:0,borderRadius:Dn,"&::after":{position:"absolute",insetInline:Gt,bottom:0,borderBottom:`${(0,He.unit)(rt)} solid transparent`,transition:`border-color ${wn} ${pn}`,content:'""'},"&:hover, &-active, &-open":{background:nn,"&::after":{borderBottomWidth:rt,borderBottomColor:Hn}},"&-selected":{color:Hn,backgroundColor:Zt,"&:hover":{backgroundColor:Zt},"&::after":{borderBottomWidth:rt,borderBottomColor:Hn}}}}),[`&${Ze}-root`]:{[`&${Ze}-inline, &${Ze}-vertical`]:{borderInlineEnd:`${(0,He.unit)(sn)} ${It} ${tn}`}},[`&${Ze}-inline`]:{[`${Ze}-sub${Ze}-inline`]:{background:$t},[`${Ze}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,He.unit)(Vt)} solid ${at}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Pt} ${kt}`,`opacity ${Pt} ${kt}`].join(","),content:'""'},[`&${Ze}-item-danger`]:{"&::after":{borderInlineEndColor:Jt}}},[`${Ze}-selected, ${Ze}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Pt} ${pn}`,`opacity ${Pt} ${pn}`].join(",")}}}}}};const be=ae=>{const{componentCls:me,itemHeight:Ze,itemMarginInline:Ot,padding:at,menuArrowSize:qe,marginXS:bt,itemMarginBlock:At,itemWidth:$t,itemPaddingInline:Ye}=ae,rt=ae.calc(qe).add(at).add(bt).equal();return{[`${me}-item`]:{position:"relative",overflow:"hidden"},[`${me}-item, ${me}-submenu-title`]:{height:Ze,lineHeight:(0,He.unit)(Ze),paddingInline:Ye,overflow:"hidden",textOverflow:"ellipsis",marginInline:Ot,marginBlock:At,width:$t},[`> ${me}-item,
|
|
|
> ${me}-submenu > ${me}-submenu-title`]:{height:Ze,lineHeight:(0,He.unit)(Ze)},[`${me}-item-group-list ${me}-submenu-title,
|
|
|
${me}-submenu-title`]:{paddingInlineEnd:rt}}};var zt=ae=>{const{componentCls:me,iconCls:Ze,itemHeight:Ot,colorTextLightSolid:at,dropdownWidth:qe,controlHeightLG:bt,motionEaseOut:At,paddingXL:$t,itemMarginInline:Ye,fontSizeLG:rt,motionDurationFast:Vt,motionDurationSlow:sn,paddingXS:wn,boxShadowSecondary:pn,collapsedWidth:kt,collapsedIconSize:Gt}=ae,Pt={height:Ot,lineHeight:(0,He.unit)(Ot),listStylePosition:"inside",listStyleType:"disc"};return[{[me]:{"&-inline, &-vertical":Object.assign({[`&${me}-root`]:{boxShadow:"none"}},be(ae))},[`${me}-submenu-popup`]:{[`${me}-vertical`]:Object.assign(Object.assign({},be(ae)),{boxShadow:pn})}},{[`${me}-submenu-popup ${me}-vertical${me}-sub`]:{minWidth:qe,maxHeight:`calc(100vh - ${(0,He.unit)(ae.calc(bt).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${me}-inline`]:{width:"100%",[`&${me}-root`]:{[`${me}-item, ${me}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${sn}`,`background ${sn}`,`padding ${Vt} ${At}`].join(","),[`> ${me}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${me}-sub${me}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${me}-submenu > ${me}-submenu-title`]:Pt,[`& ${me}-item-group-title`]:{paddingInlineStart:$t}},[`${me}-item`]:Pt}},{[`${me}-inline-collapsed`]:{width:kt,[`&${me}-root`]:{[`${me}-item, ${me}-submenu ${me}-submenu-title`]:{[`> ${me}-inline-collapsed-noicon`]:{fontSize:rt,textAlign:"center"}}},[`> ${me}-item,
|
|
|
> ${me}-item-group > ${me}-item-group-list > ${me}-item,
|
|
|
> ${me}-item-group > ${me}-item-group-list > ${me}-submenu > ${me}-submenu-title,
|
|
|
> ${me}-submenu > ${me}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,He.unit)(ae.calc(Gt).div(2).equal())} - ${(0,He.unit)(Ye)})`,textOverflow:"clip",[`
|
|
|
${me}-submenu-arrow,
|
|
|
${me}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${me}-item-icon, ${Ze}`]:{margin:0,fontSize:Gt,lineHeight:(0,He.unit)(Ot),"+ span":{display:"inline-block",opacity:0}}},[`${me}-item-icon, ${Ze}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${me}-item-icon, ${Ze}`]:{display:"none"},"a, a:hover":{color:at}},[`${me}-item-group-title`]:Object.assign(Object.assign({},St.vS),{paddingInline:wn})}}]};const jt=ae=>{const{componentCls:me,motionDurationSlow:Ze,motionDurationMid:Ot,motionEaseInOut:at,motionEaseOut:qe,iconCls:bt,iconSize:At,iconMarginInlineEnd:$t}=ae;return{[`${me}-item, ${me}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ze}`,`background ${Ze}`,`padding calc(${Ze} + 0.1s) ${at}`].join(","),[`${me}-item-icon, ${bt}`]:{minWidth:At,fontSize:At,transition:[`font-size ${Ot} ${qe}`,`margin ${Ze} ${at}`,`color ${Ze}`].join(","),"+ span":{marginInlineStart:$t,opacity:1,transition:[`opacity ${Ze} ${at}`,`margin ${Ze}`,`color ${Ze}`].join(",")}},[`${me}-item-icon`]:Object.assign({},(0,St.Ro)()),[`&${me}-item-only-child`]:{[`> ${bt}, > ${me}-item-icon`]:{marginInlineEnd:0}}},[`${me}-item-disabled, ${me}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${me}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},De=ae=>{const{componentCls:me,motionDurationSlow:Ze,motionEaseInOut:Ot,borderRadius:at,menuArrowSize:qe,menuArrowOffset:bt}=ae;return{[`${me}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ae.margin,width:qe,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ze} ${Ot}, opacity ${Ze}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ae.calc(qe).mul(.6).equal(),height:ae.calc(qe).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:at,transition:[`background ${Ze} ${Ot}`,`transform ${Ze} ${Ot}`,`top ${Ze} ${Ot}`,`color ${Ze} ${Ot}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,He.unit)(ae.calc(bt).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,He.unit)(bt)})`}}}}},pt=ae=>{const{antCls:me,componentCls:Ze,fontSize:Ot,motionDurationSlow:at,motionDurationMid:qe,motionEaseInOut:bt,paddingXS:At,padding:$t,colorSplit:Ye,lineWidth:rt,zIndexPopup:Vt,borderRadiusLG:sn,subMenuItemBorderRadius:wn,menuArrowSize:pn,menuArrowOffset:kt,lineType:Gt,groupTitleLineHeight:Pt,groupTitleFontSize:Je}=ae;return[{"":{[Ze]:Object.assign(Object.assign({},(0,St.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,St.Wf)(ae)),(0,St.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Ot,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${at} 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:ae.itemBorderRadius},[`${Ze}-item-group-title`]:{padding:`${(0,He.unit)(At)} ${(0,He.unit)($t)}`,fontSize:Je,lineHeight:Pt,transition:`all ${at}`},[`&-horizontal ${Ze}-submenu`]:{transition:[`border-color ${at} ${bt}`,`background ${at} ${bt}`].join(",")},[`${Ze}-submenu, ${Ze}-submenu-inline`]:{transition:[`border-color ${at} ${bt}`,`background ${at} ${bt}`,`padding ${qe} ${bt}`].join(",")},[`${Ze}-submenu ${Ze}-sub`]:{cursor:"initial",transition:[`background ${at} ${bt}`,`padding ${at} ${bt}`].join(",")},[`${Ze}-title-content`]:{transition:`color ${at}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${me}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${Ze}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:ae.padding}},[`${Ze}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ze}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Ye,borderStyle:Gt,borderWidth:0,borderTopWidth:rt,marginBlock:rt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),jt(ae)),{[`${Ze}-item-group`]:{[`${Ze}-item-group-list`]:{margin:0,padding:0,[`${Ze}-item, ${Ze}-submenu-title`]:{paddingInline:`${(0,He.unit)(ae.calc(Ot).mul(2).equal())} ${(0,He.unit)($t)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Vt,borderRadius:sn,boxShadow:"none",transformOrigin:"0 0",[`&${Ze}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${Ze}`]:Object.assign(Object.assign(Object.assign({borderRadius:sn},jt(ae)),De(ae)),{[`${Ze}-item, ${Ze}-submenu > ${Ze}-submenu-title`]:{borderRadius:wn},[`${Ze}-submenu-title::after`]:{transition:`transform ${at} ${bt}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:ae.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ae.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ae.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ae.paddingXS}}}),De(ae)),{[`&-inline-collapsed ${Ze}-submenu-arrow,
|
|
|
&-inline ${Ze}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,He.unit)(kt)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,He.unit)(ae.calc(kt).mul(-1).equal())})`}},[`${Ze}-submenu-open${Ze}-submenu-inline > ${Ze}-submenu-title > ${Ze}-submenu-arrow`]:{transform:`translateY(${(0,He.unit)(ae.calc(pn).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,He.unit)(ae.calc(kt).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,He.unit)(kt)})`}}})},{[`${me}-layout-header`]:{[Ze]:{lineHeight:"inherit"}}}]},ut=ae=>{var me,Ze,Ot;const{colorPrimary:at,colorError:qe,colorTextDisabled:bt,colorErrorBg:At,colorText:$t,colorTextDescription:Ye,colorBgContainer:rt,colorFillAlter:Vt,colorFillContent:sn,lineWidth:wn,lineWidthBold:pn,controlItemBgActive:kt,colorBgTextHover:Gt,controlHeightLG:Pt,lineHeight:Je,colorBgElevated:It,marginXXS:tn,padding:mn,fontSize:nt,controlHeightSM:Nt,fontSizeLG:Jt,colorTextLightSolid:xt,colorErrorHover:Wt}=ae,qt=(me=ae.activeBarWidth)!==null&&me!==void 0?me:0,Tn=(Ze=ae.activeBarBorderWidth)!==null&&Ze!==void 0?Ze:wn,Gn=(Ot=ae.itemMarginInline)!==null&&Ot!==void 0?Ot:ae.marginXXS,On=new Xe.FastColor(xt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ae.zIndexPopupBase+50,radiusItem:ae.borderRadiusLG,itemBorderRadius:ae.borderRadiusLG,radiusSubMenuItem:ae.borderRadiusSM,subMenuItemBorderRadius:ae.borderRadiusSM,colorItemText:$t,itemColor:$t,colorItemTextHover:$t,itemHoverColor:$t,colorItemTextHoverHorizontal:at,horizontalItemHoverColor:at,colorGroupTitle:Ye,groupTitleColor:Ye,colorItemTextSelected:at,itemSelectedColor:at,subMenuItemSelectedColor:at,colorItemTextSelectedHorizontal:at,horizontalItemSelectedColor:at,colorItemBg:rt,itemBg:rt,colorItemBgHover:Gt,itemHoverBg:Gt,colorItemBgActive:sn,itemActiveBg:kt,colorSubItemBg:Vt,subMenuItemBg:Vt,colorItemBgSelected:kt,itemSelectedBg:kt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:qt,colorActiveBarHeight:pn,activeBarHeight:pn,colorActiveBarBorderSize:wn,activeBarBorderWidth:Tn,colorItemTextDisabled:bt,itemDisabledColor:bt,colorDangerItemText:qe,dangerItemColor:qe,colorDangerItemTextHover:qe,dangerItemHoverColor:qe,colorDangerItemTextSelected:qe,dangerItemSelectedColor:qe,colorDangerItemBgActive:At,dangerItemActiveBg:At,colorDangerItemBgSelected:At,dangerItemSelectedBg:At,itemMarginInline:Gn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Pt,groupTitleLineHeight:Je,collapsedWidth:Pt*2,popupBg:It,itemMarginBlock:tn,itemPaddingInline:mn,horizontalLineHeight:`${Pt*1.15}px`,iconSize:nt,iconMarginInlineEnd:Nt-nt,collapsedIconSize:Jt,groupTitleFontSize:nt,darkItemDisabledColor:new Xe.FastColor(xt).setA(.25).toRgbString(),darkItemColor:On,darkDangerItemColor:qe,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:xt,darkItemSelectedBg:at,darkDangerItemSelectedBg:qe,darkItemHoverBg:"transparent",darkGroupTitleColor:On,darkItemHoverColor:xt,darkDangerItemHoverColor:Wt,darkDangerItemSelectedColor:xt,darkDangerItemActiveBg:qe,itemWidth:qt?`calc(100% + ${Tn}px)`:`calc(100% - ${Gn*2}px)`}};var Qt=function(ae){let me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ae,Ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Ee.I$)("Menu",at=>{const{colorBgElevated:qe,controlHeightLG:bt,fontSize:At,darkItemColor:$t,darkDangerItemColor:Ye,darkItemBg:rt,darkSubMenuItemBg:Vt,darkItemSelectedColor:sn,darkItemSelectedBg:wn,darkDangerItemSelectedBg:pn,darkItemHoverBg:kt,darkGroupTitleColor:Gt,darkItemHoverColor:Pt,darkItemDisabledColor:Je,darkDangerItemHoverColor:It,darkDangerItemSelectedColor:tn,darkDangerItemActiveBg:mn,popupBg:nt,darkPopupBg:Nt}=at,Jt=at.calc(At).div(7).mul(5).equal(),xt=(0,We.mergeToken)(at,{menuArrowSize:Jt,menuHorizontalHeight:at.calc(bt).mul(1.15).equal(),menuArrowOffset:at.calc(Jt).mul(.25).equal(),menuSubMenuBg:qe,calc:at.calc,popupBg:nt}),Wt=(0,We.mergeToken)(xt,{itemColor:$t,itemHoverColor:Pt,groupTitleColor:Gt,itemSelectedColor:sn,subMenuItemSelectedColor:sn,itemBg:rt,popupBg:Nt,subMenuItemBg:Vt,itemActiveBg:"transparent",itemSelectedBg:wn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:kt,itemDisabledColor:Je,dangerItemColor:Ye,dangerItemHoverColor:It,dangerItemSelectedColor:tn,dangerItemActiveBg:mn,dangerItemSelectedBg:pn,menuSubMenuBg:Vt,horizontalItemSelectedColor:sn,horizontalItemSelectedBg:wn});return[pt(xt),de(xt),zt(xt),Ce(xt,"light"),Ce(Wt,"dark"),Qe(xt),(0,gt.Z)(xt),(0,ot.oN)(xt,"slide-up"),(0,ot.oN)(xt,"slide-down"),(0,Ue._y)(xt,"zoom-big")]},ut,{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"]],injectStyle:Ze,unitless:{groupTitleLineHeight:!0}})(ae,me)},yt=E(75030),mt=ae=>{var me;const{popupClassName:Ze,icon:Ot,title:at,theme:qe}=ae,bt=y.useContext(Ke),{prefixCls:At,inlineCollapsed:$t,theme:Ye}=bt,rt=(0,ve.Xl)();let Vt;if(!Ot)Vt=$t&&!rt.length&&at&&typeof at=="string"?y.createElement("div",{className:`${At}-inline-collapsed-noicon`},at.charAt(0)):y.createElement("span",{className:`${At}-title-content`},at);else{const pn=y.isValidElement(at)&&at.type==="span";Vt=y.createElement(y.Fragment,null,(0,fe.Tm)(Ot,{className:ge()(y.isValidElement(Ot)?(me=Ot.props)===null||me===void 0?void 0:me.className:"",`${At}-item-icon`)}),pn?at:y.createElement("span",{className:`${At}-title-content`},at))}const sn=y.useMemo(()=>Object.assign(Object.assign({},bt),{firstLevel:!1}),[bt]),[wn]=(0,yt.Cn)("Menu");return y.createElement(Ke.Provider,{value:sn},y.createElement(ve.Wd,Object.assign({},(0,Ne.Z)(ae,["icon"]),{title:Vt,popupClassName:ge()(At,Ze,`${At}-${qe||Ye}`),popupStyle:Object.assign({zIndex:wn},ae.popupStyle)})))},dn=function(ae,me){var Ze={};for(var Ot in ae)Object.prototype.hasOwnProperty.call(ae,Ot)&&me.indexOf(Ot)<0&&(Ze[Ot]=ae[Ot]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Ot=Object.getOwnPropertySymbols(ae);at<Ot.length;at++)me.indexOf(Ot[at])<0&&Object.prototype.propertyIsEnumerable.call(ae,Ot[at])&&(Ze[Ot[at]]=ae[Ot[at]]);return Ze};function Ht(ae){return ae===null||ae===!1}const ue={item:_e,submenu:mt,divider:Ie};var re=(0,y.forwardRef)((ae,me)=>{var Ze;const Ot=y.useContext(Fe.Z),at=Ot||{},{getPrefixCls:qe,getPopupContainer:bt,direction:At,menu:$t}=y.useContext($e.E_),Ye=qe(),{prefixCls:rt,className:Vt,style:sn,theme:wn="light",expandIcon:pn,_internalDisableMenuItemTitleTooltip:kt,inlineCollapsed:Gt,siderCollapsed:Pt,rootClassName:Je,mode:It,selectable:tn,onClick:mn,overflowedIndicatorPopupClassName:nt}=ae,Nt=dn(ae,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Jt=(0,Ne.Z)(Nt,["collapsedWidth"]);(Ze=at.validator)===null||Ze===void 0||Ze.call(at,{mode:It});const xt=(0,Se.Z)(function(){var xn;mn==null||mn.apply(void 0,arguments),(xn=at.onClick)===null||xn===void 0||xn.call(at)}),Wt=at.mode||It,qt=tn!=null?tn:at.selectable,Tn=Gt!=null?Gt:Pt,Gn={horizontal:{motionName:`${Ye}-slide-up`},inline:(0,Be.Z)(Ye),other:{motionName:`${Ye}-zoom-big`}},On=qe("menu",rt||at.prefixCls),Hn=(0,Oe.Z)(On),[Zt,Dn,nn]=Qt(On,Hn,!Ot),Sn=ge()(`${On}-${wn}`,$t==null?void 0:$t.className,Vt),rn=y.useMemo(()=>{var xn,Vn;if(typeof pn=="function"||Ht(pn))return pn||null;if(typeof at.expandIcon=="function"||Ht(at.expandIcon))return at.expandIcon||null;if(typeof($t==null?void 0:$t.expandIcon)=="function"||Ht($t==null?void 0:$t.expandIcon))return($t==null?void 0:$t.expandIcon)||null;const sr=(xn=pn!=null?pn:at==null?void 0:at.expandIcon)!==null&&xn!==void 0?xn:$t==null?void 0:$t.expandIcon;return(0,fe.Tm)(sr,{className:ge()(`${On}-submenu-expand-icon`,y.isValidElement(sr)?(Vn=sr.props)===null||Vn===void 0?void 0:Vn.className:void 0)})},[pn,at==null?void 0:at.expandIcon,$t==null?void 0:$t.expandIcon,On]),En=y.useMemo(()=>({prefixCls:On,inlineCollapsed:Tn||!1,direction:At,firstLevel:!0,theme:wn,mode:Wt,disableMenuItemTitleTooltip:kt}),[On,Tn,At,kt,wn]);return Zt(y.createElement(Fe.Z.Provider,{value:null},y.createElement(Ke.Provider,{value:En},y.createElement(ve.ZP,Object.assign({getPopupContainer:bt,overflowedIndicator:y.createElement(Le.Z,null),overflowedIndicatorPopupClassName:ge()(On,`${On}-${wn}`,nt),mode:Wt,selectable:qt,onClick:xt},Jt,{inlineCollapsed:Tn,style:Object.assign(Object.assign({},$t==null?void 0:$t.style),sn),className:Sn,prefixCls:On,direction:At,defaultMotions:Gn,expandIcon:rn,ref:me,rootClassName:ge()(Je,Dn,at.rootClassName,nn,Hn),_internalComponents:ue})))))});const oe=(0,y.forwardRef)((ae,me)=>{const Ze=(0,y.useRef)(null),Ot=y.useContext(ce.D);return(0,y.useImperativeHandle)(me,()=>({menu:Ze.current,focus:at=>{var qe;(qe=Ze.current)===null||qe===void 0||qe.focus(at)}})),y.createElement(re,Object.assign({ref:Ze},ae,Ot))});oe.Item=_e,oe.SubMenu=mt,oe.Divider=Ie,oe.ItemGroup=ve.BW;var pe=oe},31709:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return $t}});var y=E(59301),ve=E(54476),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Le=ce,xe=E(7657),ge=function(rt,Vt){return y.createElement(xe.Z,(0,ve.Z)({},rt,{ref:Vt,icon:Le}))},Se=y.forwardRef(ge),Ne=Se,Be=E(49198),fe=E(33853),$e=E(38819),Oe=E(92310),ct=E.n(Oe),Ke=E(20068),Te=E(76190),we=E(33885),Ie=E(42978),Pe=E(18929),tt=E(10228),Et=E(26112),_e=E(48736),Fe=E(17119),He=[10,20,50,100],Xe=function(rt){var Vt=rt.pageSizeOptions,sn=Vt===void 0?He:Vt,wn=rt.locale,pn=rt.changeSize,kt=rt.pageSize,Gt=rt.goButton,Pt=rt.quickGo,Je=rt.rootPrefixCls,It=rt.disabled,tn=rt.buildOptionText,mn=rt.showSizeChanger,nt=rt.sizeChangerRender,Nt=y.useState(""),Jt=(0,Ie.Z)(Nt,2),xt=Jt[0],Wt=Jt[1],qt=function(){return!xt||Number.isNaN(xt)?void 0:Number(xt)},Tn=typeof tn=="function"?tn:function(En){return"".concat(En," ").concat(wn.items_per_page)},Gn=function(xn){Wt(xn.target.value)},On=function(xn){Gt||xt===""||(Wt(""),!(xn.relatedTarget&&(xn.relatedTarget.className.indexOf("".concat(Je,"-item-link"))>=0||xn.relatedTarget.className.indexOf("".concat(Je,"-item"))>=0))&&(Pt==null||Pt(qt())))},Hn=function(xn){xt!==""&&(xn.keyCode===tt.Z.ENTER||xn.type==="click")&&(Wt(""),Pt==null||Pt(qt()))},Zt=function(){return sn.some(function(xn){return xn.toString()===kt.toString()})?sn:sn.concat([kt]).sort(function(xn,Vn){var sr=Number.isNaN(Number(xn))?0:Number(xn),er=Number.isNaN(Number(Vn))?0:Number(Vn);return sr-er})},Dn="".concat(Je,"-options");if(!mn&&!Pt)return null;var nn=null,Sn=null,rn=null;return mn&&nt&&(nn=nt({disabled:It,size:kt,onSizeChange:function(xn){pn==null||pn(Number(xn))},"aria-label":wn.page_size,className:"".concat(Dn,"-size-changer"),options:Zt().map(function(En){return{label:Tn(En),value:En}})})),Pt&&(Gt&&(rn=typeof Gt=="boolean"?y.createElement("button",{type:"button",onClick:Hn,onKeyUp:Hn,disabled:It,className:"".concat(Dn,"-quick-jumper-button")},wn.jump_to_confirm):y.createElement("span",{onClick:Hn,onKeyUp:Hn},Gt)),Sn=y.createElement("div",{className:"".concat(Dn,"-quick-jumper")},wn.jump_to,y.createElement("input",{disabled:It,type:"text",value:xt,onChange:Gn,onKeyUp:Hn,onBlur:On,"aria-label":wn.page}),wn.page,rn)),y.createElement("li",{className:Dn},nn,Sn)},St=Xe,gt=function(rt){var Vt=rt.rootPrefixCls,sn=rt.page,wn=rt.active,pn=rt.className,kt=rt.showTitle,Gt=rt.onClick,Pt=rt.onKeyPress,Je=rt.itemRender,It="".concat(Vt,"-item"),tn=ct()(It,"".concat(It,"-").concat(sn),(0,Ke.Z)((0,Ke.Z)({},"".concat(It,"-active"),wn),"".concat(It,"-disabled"),!sn),pn),mn=function(){Gt(sn)},nt=function(xt){Pt(xt,Gt,sn)},Nt=Je(sn,"page",y.createElement("a",{rel:"nofollow"},sn));return Nt?y.createElement("li",{title:kt?String(sn):null,className:tn,onClick:mn,onKeyDown:nt,tabIndex:0},Nt):null},ot=gt,Ue=function(rt,Vt,sn){return sn};function Ee(){}function We(Ye){var rt=Number(Ye);return typeof rt=="number"&&!Number.isNaN(rt)&&isFinite(rt)&&Math.floor(rt)===rt}function Ae(Ye,rt,Vt){var sn=typeof Ye=="undefined"?rt:Ye;return Math.floor((Vt-1)/sn)+1}var de=function(rt){var Vt=rt.prefixCls,sn=Vt===void 0?"rc-pagination":Vt,wn=rt.selectPrefixCls,pn=wn===void 0?"rc-select":wn,kt=rt.className,Gt=rt.current,Pt=rt.defaultCurrent,Je=Pt===void 0?1:Pt,It=rt.total,tn=It===void 0?0:It,mn=rt.pageSize,nt=rt.defaultPageSize,Nt=nt===void 0?10:nt,Jt=rt.onChange,xt=Jt===void 0?Ee:Jt,Wt=rt.hideOnSinglePage,qt=rt.align,Tn=rt.showPrevNextJumpers,Gn=Tn===void 0?!0:Tn,On=rt.showQuickJumper,Hn=rt.showLessItems,Zt=rt.showTitle,Dn=Zt===void 0?!0:Zt,nn=rt.onShowSizeChange,Sn=nn===void 0?Ee:nn,rn=rt.locale,En=rn===void 0?Fe.Z:rn,xn=rt.style,Vn=rt.totalBoundaryShowSizeChanger,sr=Vn===void 0?50:Vn,er=rt.disabled,cr=rt.simple,Dr=rt.showTotal,mr=rt.showSizeChanger,Hr=mr===void 0?tn>sr:mr,Lr=rt.sizeChangerRender,An=rt.pageSizeOptions,Rn=rt.itemRender,dr=Rn===void 0?Ue:Rn,vr=rt.jumpPrevIcon,Mt=rt.jumpNextIcon,Kt=rt.prevIcon,ft=rt.nextIcon,Rt=y.useRef(null),it=(0,Pe.Z)(10,{value:mn,defaultValue:Nt}),ht=(0,Ie.Z)(it,2),fn=ht[0],ar=ht[1],pr=(0,Pe.Z)(1,{value:Gt,defaultValue:Je,postState:function(ri){return Math.max(1,Math.min(ri,Ae(void 0,fn,tn)))}}),Ft=(0,Ie.Z)(pr,2),Tt=Ft[0],_t=Ft[1],Ut=y.useState(Tt),Fn=(0,Ie.Z)(Ut,2),zn=Fn[0],Un=Fn[1];(0,y.useEffect)(function(){Un(Tt)},[Tt]);var jn=xt!==Ee,gr="current"in rt,Ir=Math.max(1,Tt-(Hn?3:5)),Mr=Math.min(Ae(void 0,fn,tn),Tt+(Hn?3:5));function Zr(Fi,ri){var So=Fi||y.createElement("button",{type:"button","aria-label":ri,className:"".concat(sn,"-item-link")});return typeof Fi=="function"&&(So=y.createElement(Fi,(0,we.Z)({},rt))),So}function Er(Fi){var ri=Fi.target.value,So=Ae(void 0,fn,tn),di;return ri===""?di=ri:Number.isNaN(Number(ri))?di=zn:ri>=So?di=So:di=Number(ri),di}function Rr(Fi){return We(Fi)&&Fi!==Tt&&We(tn)&&tn>0}var Xr=tn>fn?On:!1;function oa(Fi){(Fi.keyCode===tt.Z.UP||Fi.keyCode===tt.Z.DOWN)&&Fi.preventDefault()}function ta(Fi){var ri=Er(Fi);switch(ri!==zn&&Un(ri),Fi.keyCode){case tt.Z.ENTER:Gr(ri);break;case tt.Z.UP:Gr(ri-1);break;case tt.Z.DOWN:Gr(ri+1);break;default:break}}function xa(Fi){Gr(Er(Fi))}function Fa(Fi){var ri=Ae(Fi,fn,tn),So=Tt>ri&&ri!==0?ri:Tt;ar(Fi),Un(So),Sn==null||Sn(Tt,Fi),_t(So),xt==null||xt(So,Fi)}function Gr(Fi){if(Rr(Fi)&&!er){var ri=Ae(void 0,fn,tn),So=Fi;return Fi>ri?So=ri:Fi<1&&(So=1),So!==zn&&Un(So),_t(So),xt==null||xt(So,fn),So}return Tt}var ya=Tt>1,Xa=Tt<Ae(void 0,fn,tn);function Ia(){ya&&Gr(Tt-1)}function pa(){Xa&&Gr(Tt+1)}function kr(){Gr(Ir)}function Za(){Gr(Mr)}function Sa(Fi,ri){if(Fi.key==="Enter"||Fi.charCode===tt.Z.ENTER||Fi.keyCode===tt.Z.ENTER){for(var So=arguments.length,di=new Array(So>2?So-2:0),il=2;il<So;il++)di[il-2]=arguments[il];ri.apply(void 0,di)}}function la(Fi){Sa(Fi,Ia)}function Kr(Fi){Sa(Fi,pa)}function Ya(Fi){Sa(Fi,kr)}function _i(Fi){Sa(Fi,Za)}function $i(Fi){var ri=dr(Fi,"prev",Zr(Kt,"prev page"));return y.isValidElement(ri)?y.cloneElement(ri,{disabled:!ya}):ri}function za(Fi){var ri=dr(Fi,"next",Zr(ft,"next page"));return y.isValidElement(ri)?y.cloneElement(ri,{disabled:!Xa}):ri}function Di(Fi){(Fi.type==="click"||Fi.keyCode===tt.Z.ENTER)&&Gr(zn)}var pi=null,Wi=(0,Et.Z)(rt,{aria:!0,data:!0}),Ci=Dr&&y.createElement("li",{className:"".concat(sn,"-total-text")},Dr(tn,[tn===0?0:(Tt-1)*fn+1,Tt*fn>tn?tn:Tt*fn])),ei=null,Pr=Ae(void 0,fn,tn);if(Wt&&tn<=fn)return null;var Qn=[],Cr={rootPrefixCls:sn,onClick:Gr,onKeyPress:Sa,showTitle:Dn,itemRender:dr,page:-1},xr=Tt-1>0?Tt-1:0,tr=Tt+1<Pr?Tt+1:Pr,jr=On&&On.goButton,sa=(0,Te.Z)(cr)==="object"?cr.readOnly:!cr,br=jr,Br=null;cr&&(jr&&(typeof jr=="boolean"?br=y.createElement("button",{type:"button",onClick:Di,onKeyUp:Di},En.jump_to_confirm):br=y.createElement("span",{onClick:Di,onKeyUp:Di},jr),br=y.createElement("li",{title:Dn?"".concat(En.jump_to).concat(Tt,"/").concat(Pr):null,className:"".concat(sn,"-simple-pager")},br)),Br=y.createElement("li",{title:Dn?"".concat(Tt,"/").concat(Pr):null,className:"".concat(sn,"-simple-pager")},sa?zn:y.createElement("input",{type:"text","aria-label":En.jump_to,value:zn,disabled:er,onKeyDown:oa,onKeyUp:ta,onChange:ta,onBlur:xa,size:3}),y.createElement("span",{className:"".concat(sn,"-slash")},"/"),Pr));var $r=Hn?1:2;if(Pr<=3+$r*2){Pr||Qn.push(y.createElement(ot,(0,ve.Z)({},Cr,{key:"noPager",page:1,className:"".concat(sn,"-item-disabled")})));for(var Qr=1;Qr<=Pr;Qr+=1)Qn.push(y.createElement(ot,(0,ve.Z)({},Cr,{key:Qr,page:Qr,active:Tt===Qr})))}else{var Ta=Hn?En.prev_3:En.prev_5,ja=Hn?En.next_3:En.next_5,ea=dr(Ir,"jump-prev",Zr(vr,"prev page")),ai=dr(Mr,"jump-next",Zr(Mt,"next page"));Gn&&(pi=ea?y.createElement("li",{title:Dn?Ta:null,key:"prev",onClick:kr,tabIndex:0,onKeyDown:Ya,className:ct()("".concat(sn,"-jump-prev"),(0,Ke.Z)({},"".concat(sn,"-jump-prev-custom-icon"),!!vr))},ea):null,ei=ai?y.createElement("li",{title:Dn?ja:null,key:"next",onClick:Za,tabIndex:0,onKeyDown:_i,className:ct()("".concat(sn,"-jump-next"),(0,Ke.Z)({},"".concat(sn,"-jump-next-custom-icon"),!!Mt))},ai):null);var yi=Math.max(1,Tt-$r),zi=Math.min(Tt+$r,Pr);Tt-1<=$r&&(zi=1+$r*2),Pr-Tt<=$r&&(yi=Pr-$r*2);for(var Gi=yi;Gi<=zi;Gi+=1)Qn.push(y.createElement(ot,(0,ve.Z)({},Cr,{key:Gi,page:Gi,active:Tt===Gi})));if(Tt-1>=$r*2&&Tt!==3&&(Qn[0]=y.cloneElement(Qn[0],{className:ct()("".concat(sn,"-item-after-jump-prev"),Qn[0].props.className)}),Qn.unshift(pi)),Pr-Tt>=$r*2&&Tt!==Pr-2){var Ji=Qn[Qn.length-1];Qn[Qn.length-1]=y.cloneElement(Ji,{className:ct()("".concat(sn,"-item-before-jump-next"),Ji.props.className)}),Qn.push(ei)}yi!==1&&Qn.unshift(y.createElement(ot,(0,ve.Z)({},Cr,{key:1,page:1}))),zi!==Pr&&Qn.push(y.createElement(ot,(0,ve.Z)({},Cr,{key:Pr,page:Pr})))}var Yi=$i(xr);if(Yi){var co=!ya||!Pr;Yi=y.createElement("li",{title:Dn?En.prev_page:null,onClick:Ia,tabIndex:co?null:0,onKeyDown:la,className:ct()("".concat(sn,"-prev"),(0,Ke.Z)({},"".concat(sn,"-disabled"),co)),"aria-disabled":co},Yi)}var No=za(tr);if(No){var jo,Wo;cr?(jo=!Xa,Wo=ya?0:null):(jo=!Xa||!Pr,Wo=jo?null:0),No=y.createElement("li",{title:Dn?En.next_page:null,onClick:pa,tabIndex:Wo,onKeyDown:Kr,className:ct()("".concat(sn,"-next"),(0,Ke.Z)({},"".concat(sn,"-disabled"),jo)),"aria-disabled":jo},No)}var Da=ct()(sn,kt,(0,Ke.Z)((0,Ke.Z)((0,Ke.Z)((0,Ke.Z)((0,Ke.Z)({},"".concat(sn,"-start"),qt==="start"),"".concat(sn,"-center"),qt==="center"),"".concat(sn,"-end"),qt==="end"),"".concat(sn,"-simple"),cr),"".concat(sn,"-disabled"),er));return y.createElement("ul",(0,ve.Z)({className:Da,style:xn,ref:Rt},Wi),Ci,Yi,cr?Br:Qn,No,y.createElement(St,{locale:En,rootPrefixCls:sn,disabled:er,selectPrefixCls:pn,changeSize:Fa,pageSize:fn,pageSizeOptions:An,quickGo:Xr?Gr:null,goButton:br,showSizeChanger:Hr,sizeChangerRender:Lr}))},wt=de,Qe=E(61852),Ge=E(48755),st=E(31756),Ce=E(13783),be=E(9017),vt=E(82326),zt=E(57700),jt=E(36237),De=E(53075),pt=E(64910),ut=E(39082),Qt=E(63356),yt=E(51636),Ct=E(16931);const mt=Ye=>{const{componentCls:rt}=Ye;return{[`${rt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${rt}-item-link`]:{color:Ye.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${rt}-item-link`]:{color:Ye.colorTextDisabled,cursor:"not-allowed"}}},[`&${rt}-disabled`]:{cursor:"not-allowed",[`${rt}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Ye.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Ye.colorBorder,backgroundColor:Ye.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Ye.itemActiveBgDisabled},a:{color:Ye.itemActiveColorDisabled}}},[`${rt}-item-link`]:{color:Ye.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${rt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${rt}-simple-pager`]:{color:Ye.colorTextDisabled},[`${rt}-jump-prev, ${rt}-jump-next`]:{[`${rt}-item-link-icon`]:{opacity:0},[`${rt}-item-ellipsis`]:{opacity:1}}},[`&${rt}-simple`]:{[`${rt}-prev, ${rt}-next`]:{[`&${rt}-disabled ${rt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},dn=Ye=>{const{componentCls:rt}=Ye;return{[`&${rt}-mini ${rt}-total-text, &${rt}-mini ${rt}-simple-pager`]:{height:Ye.itemSizeSM,lineHeight:(0,jt.unit)(Ye.itemSizeSM)},[`&${rt}-mini ${rt}-item`]:{minWidth:Ye.itemSizeSM,height:Ye.itemSizeSM,margin:0,lineHeight:(0,jt.unit)(Ye.calc(Ye.itemSizeSM).sub(2).equal())},[`&${rt}-mini ${rt}-prev, &${rt}-mini ${rt}-next`]:{minWidth:Ye.itemSizeSM,height:Ye.itemSizeSM,margin:0,lineHeight:(0,jt.unit)(Ye.itemSizeSM)},[`&${rt}-mini:not(${rt}-disabled)`]:{[`${rt}-prev, ${rt}-next`]:{[`&:hover ${rt}-item-link`]:{backgroundColor:Ye.colorBgTextHover},[`&:active ${rt}-item-link`]:{backgroundColor:Ye.colorBgTextActive},[`&${rt}-disabled:hover ${rt}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${rt}-mini ${rt}-prev ${rt}-item-link,
|
|
|
&${rt}-mini ${rt}-next ${rt}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Ye.itemSizeSM,lineHeight:(0,jt.unit)(Ye.itemSizeSM)}},[`&${rt}-mini ${rt}-jump-prev, &${rt}-mini ${rt}-jump-next`]:{height:Ye.itemSizeSM,marginInlineEnd:0,lineHeight:(0,jt.unit)(Ye.itemSizeSM)},[`&${rt}-mini ${rt}-options`]:{marginInlineStart:Ye.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Ye.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Ye.itemSizeSM,lineHeight:(0,jt.unit)(Ye.itemSizeSM),input:Object.assign(Object.assign({},(0,De.x0)(Ye)),{width:Ye.paginationMiniQuickJumperInputWidth,height:Ye.controlHeightSM})}}}},Ht=Ye=>{const{componentCls:rt}=Ye;return{[`
|
|
|
&${rt}-simple ${rt}-prev,
|
|
|
&${rt}-simple ${rt}-next
|
|
|
`]:{height:Ye.itemSizeSM,lineHeight:(0,jt.unit)(Ye.itemSizeSM),verticalAlign:"top",[`${rt}-item-link`]:{height:Ye.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Ye.colorBgTextHover},"&:active":{backgroundColor:Ye.colorBgTextActive},"&::after":{height:Ye.itemSizeSM,lineHeight:(0,jt.unit)(Ye.itemSizeSM)}}},[`&${rt}-simple ${rt}-simple-pager`]:{display:"inline-block",height:Ye.itemSizeSM,marginInlineEnd:Ye.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,jt.unit)(Ye.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:Ye.itemInputBg,border:`${(0,jt.unit)(Ye.lineWidth)} ${Ye.lineType} ${Ye.colorBorder}`,borderRadius:Ye.borderRadius,outline:"none",transition:`border-color ${Ye.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Ye.colorPrimary},"&:focus":{borderColor:Ye.colorPrimaryHover,boxShadow:`${(0,jt.unit)(Ye.inputOutlineOffset)} 0 ${(0,jt.unit)(Ye.controlOutlineWidth)} ${Ye.controlOutline}`},"&[disabled]":{color:Ye.colorTextDisabled,backgroundColor:Ye.colorBgContainerDisabled,borderColor:Ye.colorBorder,cursor:"not-allowed"}}}}},ue=Ye=>{const{componentCls:rt}=Ye;return{[`${rt}-jump-prev, ${rt}-jump-next`]:{outline:0,[`${rt}-item-container`]:{position:"relative",[`${rt}-item-link-icon`]:{color:Ye.colorPrimary,fontSize:Ye.fontSizeSM,opacity:0,transition:`all ${Ye.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${rt}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Ye.colorTextDisabled,letterSpacing:Ye.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Ye.paginationEllipsisTextIndent,opacity:1,transition:`all ${Ye.motionDurationMid}`}},"&:hover":{[`${rt}-item-link-icon`]:{opacity:1},[`${rt}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${rt}-prev,
|
|
|
${rt}-jump-prev,
|
|
|
${rt}-jump-next
|
|
|
`]:{marginInlineEnd:Ye.marginXS},[`
|
|
|
${rt}-prev,
|
|
|
${rt}-next,
|
|
|
${rt}-jump-prev,
|
|
|
${rt}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:Ye.itemSize,height:Ye.itemSize,color:Ye.colorText,fontFamily:Ye.fontFamily,lineHeight:(0,jt.unit)(Ye.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Ye.borderRadius,cursor:"pointer",transition:`all ${Ye.motionDurationMid}`},[`${rt}-prev, ${rt}-next`]:{outline:0,button:{color:Ye.colorText,cursor:"pointer",userSelect:"none"},[`${rt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Ye.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,jt.unit)(Ye.lineWidth)} ${Ye.lineType} transparent`,borderRadius:Ye.borderRadius,outline:"none",transition:`all ${Ye.motionDurationMid}`},[`&:hover ${rt}-item-link`]:{backgroundColor:Ye.colorBgTextHover},[`&:active ${rt}-item-link`]:{backgroundColor:Ye.colorBgTextActive},[`&${rt}-disabled:hover`]:{[`${rt}-item-link`]:{backgroundColor:"transparent"}}},[`${rt}-slash`]:{marginInlineEnd:Ye.paginationSlashMarginInlineEnd,marginInlineStart:Ye.paginationSlashMarginInlineStart},[`${rt}-options`]:{display:"inline-block",marginInlineStart:Ye.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Ye.controlHeight,marginInlineStart:Ye.marginXS,lineHeight:(0,jt.unit)(Ye.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,De.ik)(Ye)),(0,ut.$U)(Ye,{borderColor:Ye.colorBorder,hoverBorderColor:Ye.colorPrimaryHover,activeBorderColor:Ye.colorPrimary,activeShadow:Ye.activeShadow})),{"&[disabled]":Object.assign({},(0,ut.Xy)(Ye)),width:Ye.calc(Ye.controlHeightLG).mul(1.25).equal(),height:Ye.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Ye.marginXS,marginInlineEnd:Ye.marginXS})}}}},ie=Ye=>{const{componentCls:rt}=Ye;return{[`${rt}-item`]:{display:"inline-block",minWidth:Ye.itemSize,height:Ye.itemSize,marginInlineEnd:Ye.marginXS,fontFamily:Ye.fontFamily,lineHeight:(0,jt.unit)(Ye.calc(Ye.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:Ye.itemBg,border:`${(0,jt.unit)(Ye.lineWidth)} ${Ye.lineType} transparent`,borderRadius:Ye.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,jt.unit)(Ye.paginationItemPaddingInline)}`,color:Ye.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${rt}-item-active)`]:{"&:hover":{transition:`all ${Ye.motionDurationMid}`,backgroundColor:Ye.colorBgTextHover},"&:active":{backgroundColor:Ye.colorBgTextActive}},"&-active":{fontWeight:Ye.fontWeightStrong,backgroundColor:Ye.itemActiveBg,borderColor:Ye.colorPrimary,a:{color:Ye.colorPrimary},"&:hover":{borderColor:Ye.colorPrimaryHover},"&:hover a":{color:Ye.colorPrimaryHover}}}}},re=Ye=>{const{componentCls:rt}=Ye;return{[rt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Qt.Wf)(Ye)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${rt}-total-text`]:{display:"inline-block",height:Ye.itemSize,marginInlineEnd:Ye.marginXS,lineHeight:(0,jt.unit)(Ye.calc(Ye.itemSize).sub(2).equal()),verticalAlign:"middle"}}),ie(Ye)),ue(Ye)),Ht(Ye)),dn(Ye)),mt(Ye)),{[`@media only screen and (max-width: ${Ye.screenLG}px)`]:{[`${rt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ye.screenSM}px)`]:{[`${rt}-options`]:{display:"none"}}}),[`&${Ye.componentCls}-rtl`]:{direction:"rtl"}}},oe=Ye=>{const{componentCls:rt}=Ye;return{[`${rt}:not(${rt}-disabled)`]:{[`${rt}-item`]:Object.assign({},(0,Qt.Qy)(Ye)),[`${rt}-jump-prev, ${rt}-jump-next`]:{"&:focus-visible":Object.assign({[`${rt}-item-link-icon`]:{opacity:1},[`${rt}-item-ellipsis`]:{opacity:0}},(0,Qt.oN)(Ye))},[`${rt}-prev, ${rt}-next`]:{[`&:focus-visible ${rt}-item-link`]:Object.assign({},(0,Qt.oN)(Ye))}}}},pe=Ye=>Object.assign({itemBg:Ye.colorBgContainer,itemSize:Ye.controlHeight,itemSizeSM:Ye.controlHeightSM,itemActiveBg:Ye.colorBgContainer,itemLinkBg:Ye.colorBgContainer,itemActiveColorDisabled:Ye.colorTextDisabled,itemActiveBgDisabled:Ye.controlItemBgActiveDisabled,itemInputBg:Ye.colorBgContainer,miniOptionsSizeChangerTop:0},(0,pt.T)(Ye)),ae=Ye=>(0,yt.mergeToken)(Ye,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Ye.calc(Ye.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:Ye.calc(Ye.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:Ye.calc(Ye.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:Ye.calc(Ye.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:Ye.marginSM,paginationSlashMarginInlineEnd:Ye.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,pt.e)(Ye));var me=(0,Ct.I$)("Pagination",Ye=>{const rt=ae(Ye);return[re(rt),oe(rt)]},pe);const Ze=Ye=>{const{componentCls:rt}=Ye;return{[`${rt}${rt}-bordered${rt}-disabled:not(${rt}-mini)`]:{"&, &:hover":{[`${rt}-item-link`]:{borderColor:Ye.colorBorder}},"&:focus-visible":{[`${rt}-item-link`]:{borderColor:Ye.colorBorder}},[`${rt}-item, ${rt}-item-link`]:{backgroundColor:Ye.colorBgContainerDisabled,borderColor:Ye.colorBorder,[`&:hover:not(${rt}-item-active)`]:{backgroundColor:Ye.colorBgContainerDisabled,borderColor:Ye.colorBorder,a:{color:Ye.colorTextDisabled}},[`&${rt}-item-active`]:{backgroundColor:Ye.itemActiveBgDisabled}},[`${rt}-prev, ${rt}-next`]:{"&:hover button":{backgroundColor:Ye.colorBgContainerDisabled,borderColor:Ye.colorBorder,color:Ye.colorTextDisabled},[`${rt}-item-link`]:{backgroundColor:Ye.colorBgContainerDisabled,borderColor:Ye.colorBorder}}},[`${rt}${rt}-bordered:not(${rt}-mini)`]:{[`${rt}-prev, ${rt}-next`]:{"&:hover button":{borderColor:Ye.colorPrimaryHover,backgroundColor:Ye.itemBg},[`${rt}-item-link`]:{backgroundColor:Ye.itemLinkBg,borderColor:Ye.colorBorder},[`&:hover ${rt}-item-link`]:{borderColor:Ye.colorPrimary,backgroundColor:Ye.itemBg,color:Ye.colorPrimary},[`&${rt}-disabled`]:{[`${rt}-item-link`]:{borderColor:Ye.colorBorder,color:Ye.colorTextDisabled}}},[`${rt}-item`]:{backgroundColor:Ye.itemBg,border:`${(0,jt.unit)(Ye.lineWidth)} ${Ye.lineType} ${Ye.colorBorder}`,[`&:hover:not(${rt}-item-active)`]:{borderColor:Ye.colorPrimary,backgroundColor:Ye.itemBg,a:{color:Ye.colorPrimary}},"&-active":{borderColor:Ye.colorPrimary}}}}};var Ot=(0,Ct.bk)(["Pagination","bordered"],Ye=>{const rt=ae(Ye);return[Ze(rt)]},pe);function at(Ye){return(0,y.useMemo)(()=>typeof Ye=="boolean"?[Ye,{}]:Ye&&typeof Ye=="object"?[!0,Ye]:[void 0,void 0],[Ye])}var qe=function(Ye,rt){var Vt={};for(var sn in Ye)Object.prototype.hasOwnProperty.call(Ye,sn)&&rt.indexOf(sn)<0&&(Vt[sn]=Ye[sn]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wn=0,sn=Object.getOwnPropertySymbols(Ye);wn<sn.length;wn++)rt.indexOf(sn[wn])<0&&Object.prototype.propertyIsEnumerable.call(Ye,sn[wn])&&(Vt[sn[wn]]=Ye[sn[wn]]);return Vt},At=Ye=>{const{align:rt,prefixCls:Vt,selectPrefixCls:sn,className:wn,rootClassName:pn,style:kt,size:Gt,locale:Pt,responsive:Je,showSizeChanger:It,selectComponentClass:tn,pageSizeOptions:mn}=Ye,nt=qe(Ye,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:Nt}=(0,Ce.Z)(Je),[,Jt]=(0,zt.ZP)(),{getPrefixCls:xt,direction:Wt,showSizeChanger:qt,className:Tn,style:Gn}=(0,Ge.dj)("pagination"),On=xt("pagination",Vt),[Hn,Zt,Dn]=me(On),nn=(0,st.Z)(Gt),Sn=nn==="small"||!!(Nt&&!nn&&Je),[rn]=(0,be.Z)("Pagination",Qe.Z),En=Object.assign(Object.assign({},rn),Pt),[xn,Vn]=at(It),[sr,er]=at(qt),cr=xn!=null?xn:sr,Dr=Vn!=null?Vn:er,mr=tn||vt.default,Hr=y.useMemo(()=>mn?mn.map(Mt=>Number(Mt)):void 0,[mn]),Lr=Mt=>{var Kt;const{disabled:ft,size:Rt,onSizeChange:it,"aria-label":ht,className:fn,options:ar}=Mt,{className:pr,onChange:Ft}=Dr||{},Tt=(Kt=ar.find(_t=>String(_t.value)===String(Rt)))===null||Kt===void 0?void 0:Kt.value;return y.createElement(mr,Object.assign({disabled:ft,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:_t=>_t.parentNode,"aria-label":ht,options:ar},Dr,{value:Tt,onChange:(_t,Ut)=>{it==null||it(_t),Ft==null||Ft(_t,Ut)},size:Sn?"small":"middle",className:ct()(fn,pr)}))},An=y.useMemo(()=>{const Mt=y.createElement("span",{className:`${On}-item-ellipsis`},"\u2022\u2022\u2022"),Kt=y.createElement("button",{className:`${On}-item-link`,type:"button",tabIndex:-1},Wt==="rtl"?y.createElement($e.Z,null):y.createElement(fe.Z,null)),ft=y.createElement("button",{className:`${On}-item-link`,type:"button",tabIndex:-1},Wt==="rtl"?y.createElement(fe.Z,null):y.createElement($e.Z,null)),Rt=y.createElement("a",{className:`${On}-item-link`},y.createElement("div",{className:`${On}-item-container`},Wt==="rtl"?y.createElement(Be.Z,{className:`${On}-item-link-icon`}):y.createElement(Ne,{className:`${On}-item-link-icon`}),Mt)),it=y.createElement("a",{className:`${On}-item-link`},y.createElement("div",{className:`${On}-item-container`},Wt==="rtl"?y.createElement(Ne,{className:`${On}-item-link-icon`}):y.createElement(Be.Z,{className:`${On}-item-link-icon`}),Mt));return{prevIcon:Kt,nextIcon:ft,jumpPrevIcon:Rt,jumpNextIcon:it}},[Wt,On]),Rn=xt("select",sn),dr=ct()({[`${On}-${rt}`]:!!rt,[`${On}-mini`]:Sn,[`${On}-rtl`]:Wt==="rtl",[`${On}-bordered`]:Jt.wireframe},Tn,wn,pn,Zt,Dn),vr=Object.assign(Object.assign({},Gn),kt);return Hn(y.createElement(y.Fragment,null,Jt.wireframe&&y.createElement(Ot,{prefixCls:On}),y.createElement(wt,Object.assign({},An,nt,{style:vr,prefixCls:On,selectPrefixCls:Rn,className:dr,locale:En,pageSizeOptions:Hr,showSizeChanger:cr,sizeChangerRender:Lr}))))},$t=At},69106:function(Mn,Yt,E){"use strict";E.d(Yt,{aV:function(){return Be},t5:function(){return fe}});var y=E(59301),ve=E(92310),ce=E.n(ve),Le=E(29125),xe=E(54500),ge=E(48755),Se=E(85074),Ne=function(Oe,ct){var Ke={};for(var Te in Oe)Object.prototype.hasOwnProperty.call(Oe,Te)&&ct.indexOf(Te)<0&&(Ke[Te]=Oe[Te]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,Te=Object.getOwnPropertySymbols(Oe);we<Te.length;we++)ct.indexOf(Te[we])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Te[we])&&(Ke[Te[we]]=Oe[Te[we]]);return Ke};const Be=Oe=>{let{title:ct,content:Ke,prefixCls:Te}=Oe;return!ct&&!Ke?null:y.createElement(y.Fragment,null,ct&&y.createElement("div",{className:`${Te}-title`},ct),Ke&&y.createElement("div",{className:`${Te}-inner-content`},Ke))},fe=Oe=>{const{hashId:ct,prefixCls:Ke,className:Te,style:we,placement:Ie="top",title:Pe,content:tt,children:Et}=Oe,_e=(0,xe.Z)(Pe),Fe=(0,xe.Z)(tt),He=ce()(ct,Ke,`${Ke}-pure`,`${Ke}-placement-${Ie}`,Te);return y.createElement("div",{className:He,style:we},y.createElement("div",{className:`${Ke}-arrow`}),y.createElement(Le.G,Object.assign({},Oe,{className:ct,prefixCls:Ke}),Et||y.createElement(Be,{prefixCls:Ke,title:_e,content:Fe})))},$e=Oe=>{const{prefixCls:ct,className:Ke}=Oe,Te=Ne(Oe,["prefixCls","className"]),{getPrefixCls:we}=y.useContext(ge.E_),Ie=we("popover",ct),[Pe,tt,Et]=(0,Se.Z)(Ie);return Pe(y.createElement(fe,Object.assign({},Te,{prefixCls:Ie,hashId:tt,className:ce()(Ke,Et)})))};Yt.ZP=$e},37639:function(Mn,Yt,E){"use strict";var y=E(59301),ve=E(92310),ce=E.n(ve),Le=E(18929),xe=E(10228),ge=E(54500),Se=E(86641),Ne=E(22703),Be=E(25399),fe=E(69106),$e=E(48755),Oe=E(85074),ct=function(we,Ie){var Pe={};for(var tt in we)Object.prototype.hasOwnProperty.call(we,tt)&&Ie.indexOf(tt)<0&&(Pe[tt]=we[tt]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,tt=Object.getOwnPropertySymbols(we);Et<tt.length;Et++)Ie.indexOf(tt[Et])<0&&Object.prototype.propertyIsEnumerable.call(we,tt[Et])&&(Pe[tt[Et]]=we[tt[Et]]);return Pe};const Te=y.forwardRef((we,Ie)=>{var Pe,tt;const{prefixCls:Et,title:_e,content:Fe,overlayClassName:He,placement:Xe="top",trigger:St="hover",children:gt,mouseEnterDelay:ot=.1,mouseLeaveDelay:Ue=.1,onOpenChange:Ee,overlayStyle:We={},styles:Ae,classNames:de}=we,wt=ct(we,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:Qe,className:Ge,style:st,classNames:Ce,styles:be}=(0,$e.dj)("popover"),vt=Qe("popover",Et),[zt,jt,De]=(0,Oe.Z)(vt),pt=Qe(),ut=ce()(He,jt,De,Ge,Ce.root,de==null?void 0:de.root),Qt=ce()(Ce.body,de==null?void 0:de.body),[yt,Ct]=(0,Le.Z)(!1,{value:(Pe=we.open)!==null&&Pe!==void 0?Pe:we.visible,defaultValue:(tt=we.defaultOpen)!==null&&tt!==void 0?tt:we.defaultVisible}),mt=(re,oe)=>{Ct(re,!0),Ee==null||Ee(re,oe)},dn=re=>{re.keyCode===xe.Z.ESC&&mt(!1,re)},Ht=re=>{mt(re)},ue=(0,ge.Z)(_e),ie=(0,ge.Z)(Fe);return zt(y.createElement(Be.Z,Object.assign({placement:Xe,trigger:St,mouseEnterDelay:ot,mouseLeaveDelay:Ue},wt,{prefixCls:vt,classNames:{root:ut,body:Qt},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},be.root),st),We),Ae==null?void 0:Ae.root),body:Object.assign(Object.assign({},be.body),Ae==null?void 0:Ae.body)},ref:Ie,open:yt,onOpenChange:Ht,overlay:ue||ie?y.createElement(fe.aV,{prefixCls:vt,title:ue,content:ie}):null,transitionName:(0,Se.m)(pt,"zoom-big",wt.transitionName),"data-popover-inject":!0}),(0,Ne.Tm)(gt,{onKeyDown:re=>{var oe,pe;y.isValidElement(gt)&&((pe=gt==null?void 0:(oe=gt.props).onKeyDown)===null||pe===void 0||pe.call(oe,re)),dn(re)}})))});Te._InternalPanelDoNotUseOrYouWillBeFired=fe.ZP,Yt.Z=Te},85074:function(Mn,Yt,E){"use strict";var y=E(63356),ve=E(34925),ce=E(37645),Le=E(36305),xe=E(34998),ge=E(16931),Se=E(51636);const Ne=$e=>{const{componentCls:Oe,popoverColor:ct,titleMinWidth:Ke,fontWeightStrong:Te,innerPadding:we,boxShadowSecondary:Ie,colorTextHeading:Pe,borderRadiusLG:tt,zIndexPopup:Et,titleMarginBottom:_e,colorBgElevated:Fe,popoverBg:He,titleBorderBottom:Xe,innerContentPadding:St,titlePadding:gt}=$e;return[{[Oe]:Object.assign(Object.assign({},(0,y.Wf)($e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:Et,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":Fe,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${Oe}-content`]:{position:"relative"},[`${Oe}-inner`]:{backgroundColor:He,backgroundClip:"padding-box",borderRadius:tt,boxShadow:Ie,padding:we},[`${Oe}-title`]:{minWidth:Ke,marginBottom:_e,color:Pe,fontWeight:Te,borderBottom:Xe,padding:gt},[`${Oe}-inner-content`]:{color:ct,padding:St}})},(0,ce.ZP)($e,"var(--antd-arrow-background-color)"),{[`${Oe}-pure`]:{position:"relative",maxWidth:"none",margin:$e.sizePopupArrow,display:"inline-block",[`${Oe}-content`]:{display:"inline-block"}}}]},Be=$e=>{const{componentCls:Oe}=$e;return{[Oe]:xe.i.map(ct=>{const Ke=$e[`${ct}6`];return{[`&${Oe}-${ct}`]:{"--antd-arrow-background-color":Ke,[`${Oe}-inner`]:{backgroundColor:Ke},[`${Oe}-arrow`]:{background:"transparent"}}}})}},fe=$e=>{const{lineWidth:Oe,controlHeight:ct,fontHeight:Ke,padding:Te,wireframe:we,zIndexPopupBase:Ie,borderRadiusLG:Pe,marginXS:tt,lineType:Et,colorSplit:_e,paddingSM:Fe}=$e,He=ct-Ke,Xe=He/2,St=He/2-Oe,gt=Te;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:Ie+30},(0,Le.w)($e)),(0,ce.wZ)({contentRadius:Pe,limitVerticalRadius:!0})),{innerPadding:we?0:12,titleMarginBottom:we?0:tt,titlePadding:we?`${Xe}px ${gt}px ${St}px`:0,titleBorderBottom:we?`${Oe}px ${Et} ${_e}`:"none",innerContentPadding:we?`${Fe}px ${gt}px`:0})};Yt.Z=(0,ge.I$)("Popover",$e=>{const{colorBgElevated:Oe,colorText:ct}=$e,Ke=(0,Se.mergeToken)($e,{popoverBg:Oe,popoverColor:ct});return[Ne(Ke),Be(Ke),(0,ve._y)(Ke,"zoom-big")]},fe,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},89787:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Pt}});var y=E(59301),ve=E(17835),ce=E(29679),Le=E(40001),xe=E(19248),ge=E(99267),Se=E(92310),Ne=E.n(Se),Be=E(2738),fe=E(48755),$e=E(54476),Oe=E(33885),ct=E(75931),Ke={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Te=function(){var It=(0,y.useRef)([]),tn=(0,y.useRef)(null);return(0,y.useEffect)(function(){var mn=Date.now(),nt=!1;It.current.forEach(function(Nt){if(Nt){nt=!0;var Jt=Nt.style;Jt.transitionDuration=".3s, .3s, .3s, .06s",tn.current&&mn-tn.current<100&&(Jt.transitionDuration="0s, 0s")}}),nt&&(tn.current=Date.now())}),It.current},we=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Ie=function(It){var tn=(0,Oe.Z)((0,Oe.Z)({},Ke),It),mn=tn.className,nt=tn.percent,Nt=tn.prefixCls,Jt=tn.strokeColor,xt=tn.strokeLinecap,Wt=tn.strokeWidth,qt=tn.style,Tn=tn.trailColor,Gn=tn.trailWidth,On=tn.transition,Hn=(0,ct.Z)(tn,we);delete Hn.gapPosition;var Zt=Array.isArray(nt)?nt:[nt],Dn=Array.isArray(Jt)?Jt:[Jt],nn=Te(),Sn=Wt/2,rn=100-Wt/2,En="M ".concat(xt==="round"?Sn:0,",").concat(Sn,`
|
|
|
L `).concat(xt==="round"?rn:100,",").concat(Sn),xn="0 0 100 ".concat(Wt),Vn=0;return y.createElement("svg",(0,$e.Z)({className:Ne()("".concat(Nt,"-line"),mn),viewBox:xn,preserveAspectRatio:"none",style:qt},Hn),y.createElement("path",{className:"".concat(Nt,"-line-trail"),d:En,strokeLinecap:xt,stroke:Tn,strokeWidth:Gn||Wt,fillOpacity:"0"}),Zt.map(function(sr,er){var cr=1;switch(xt){case"round":cr=1-Wt/100;break;case"square":cr=1-Wt/2/100;break;default:cr=1;break}var Dr={strokeDasharray:"".concat(sr*cr,"px, 100px"),strokeDashoffset:"-".concat(Vn,"px"),transition:On||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},mr=Dn[er]||Dn[Dn.length-1];return Vn+=sr,y.createElement("path",{key:er,className:"".concat(Nt,"-line-path"),d:En,strokeLinecap:xt,stroke:mr,strokeWidth:Wt,fillOpacity:"0",ref:function(Lr){nn[er]=Lr},style:Dr})}))},Pe=Ie,tt=E(76190),Et=E(42978),_e=E(47273),Fe=0,He=(0,_e.Z)();function Xe(){var Je;return He?(Je=Fe,Fe+=1):Je="TEST_OR_SSR",Je}var St=function(Je){var It=y.useState(),tn=(0,Et.Z)(It,2),mn=tn[0],nt=tn[1];return y.useEffect(function(){nt("rc_progress_".concat(Xe()))},[]),Je||mn},gt=function(It){var tn=It.bg,mn=It.children;return y.createElement("div",{style:{width:"100%",height:"100%",background:tn}},mn)};function ot(Je,It){return Object.keys(Je).map(function(tn){var mn=parseFloat(tn),nt="".concat(Math.floor(mn*It),"%");return"".concat(Je[tn]," ").concat(nt)})}var Ue=y.forwardRef(function(Je,It){var tn=Je.prefixCls,mn=Je.color,nt=Je.gradientId,Nt=Je.radius,Jt=Je.style,xt=Je.ptg,Wt=Je.strokeLinecap,qt=Je.strokeWidth,Tn=Je.size,Gn=Je.gapDegree,On=mn&&(0,tt.Z)(mn)==="object",Hn=On?"#FFF":void 0,Zt=Tn/2,Dn=y.createElement("circle",{className:"".concat(tn,"-circle-path"),r:Nt,cx:Zt,cy:Zt,stroke:Hn,strokeLinecap:Wt,strokeWidth:qt,opacity:xt===0?0:1,style:Jt,ref:It});if(!On)return Dn;var nn="".concat(nt,"-conic"),Sn=Gn?"".concat(180+Gn/2,"deg"):"0deg",rn=ot(mn,(360-Gn)/360),En=ot(mn,1),xn="conic-gradient(from ".concat(Sn,", ").concat(rn.join(", "),")"),Vn="linear-gradient(to ".concat(Gn?"bottom":"top",", ").concat(En.join(", "),")");return y.createElement(y.Fragment,null,y.createElement("mask",{id:nn},Dn),y.createElement("foreignObject",{x:0,y:0,width:Tn,height:Tn,mask:"url(#".concat(nn,")")},y.createElement(gt,{bg:Vn},y.createElement(gt,{bg:xn}))))}),Ee=Ue,We=100,Ae=function(It,tn,mn,nt,Nt,Jt,xt,Wt,qt,Tn){var Gn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,On=mn/100*360*((360-Jt)/360),Hn=Jt===0?0:{bottom:0,top:180,left:90,right:-90}[xt],Zt=(100-nt)/100*tn;qt==="round"&&nt!==100&&(Zt+=Tn/2,Zt>=tn&&(Zt=tn-.01));var Dn=We/2;return{stroke:typeof Wt=="string"?Wt:void 0,strokeDasharray:"".concat(tn,"px ").concat(It),strokeDashoffset:Zt+Gn,transform:"rotate(".concat(Nt+On+Hn,"deg)"),transformOrigin:"".concat(Dn,"px ").concat(Dn,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},de=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function wt(Je){var It=Je!=null?Je:[];return Array.isArray(It)?It:[It]}var Qe=function(It){var tn=(0,Oe.Z)((0,Oe.Z)({},Ke),It),mn=tn.id,nt=tn.prefixCls,Nt=tn.steps,Jt=tn.strokeWidth,xt=tn.trailWidth,Wt=tn.gapDegree,qt=Wt===void 0?0:Wt,Tn=tn.gapPosition,Gn=tn.trailColor,On=tn.strokeLinecap,Hn=tn.style,Zt=tn.className,Dn=tn.strokeColor,nn=tn.percent,Sn=(0,ct.Z)(tn,de),rn=We/2,En=St(mn),xn="".concat(En,"-gradient"),Vn=rn-Jt/2,sr=Math.PI*2*Vn,er=qt>0?90+qt/2:-90,cr=sr*((360-qt)/360),Dr=(0,tt.Z)(Nt)==="object"?Nt:{count:Nt,gap:2},mr=Dr.count,Hr=Dr.gap,Lr=wt(nn),An=wt(Dn),Rn=An.find(function(it){return it&&(0,tt.Z)(it)==="object"}),dr=Rn&&(0,tt.Z)(Rn)==="object",vr=dr?"butt":On,Mt=Ae(sr,cr,0,100,er,qt,Tn,Gn,vr,Jt),Kt=Te(),ft=function(){var ht=0;return Lr.map(function(fn,ar){var pr=An[ar]||An[An.length-1],Ft=Ae(sr,cr,ht,fn,er,qt,Tn,pr,vr,Jt);return ht+=fn,y.createElement(Ee,{key:ar,color:pr,ptg:fn,radius:Vn,prefixCls:nt,gradientId:xn,style:Ft,strokeLinecap:vr,strokeWidth:Jt,gapDegree:qt,ref:function(_t){Kt[ar]=_t},size:We})}).reverse()},Rt=function(){var ht=Math.round(mr*(Lr[0]/100)),fn=100/mr,ar=0;return new Array(mr).fill(null).map(function(pr,Ft){var Tt=Ft<=ht-1?An[0]:Gn,_t=Tt&&(0,tt.Z)(Tt)==="object"?"url(#".concat(xn,")"):void 0,Ut=Ae(sr,cr,ar,fn,er,qt,Tn,Tt,"butt",Jt,Hr);return ar+=(cr-Ut.strokeDashoffset+Hr)*100/cr,y.createElement("circle",{key:Ft,className:"".concat(nt,"-circle-path"),r:Vn,cx:rn,cy:rn,stroke:_t,strokeWidth:Jt,opacity:1,style:Ut,ref:function(zn){Kt[Ft]=zn}})})};return y.createElement("svg",(0,$e.Z)({className:Ne()("".concat(nt,"-circle"),Zt),viewBox:"0 0 ".concat(We," ").concat(We),style:Hn,id:mn,role:"presentation"},Sn),!mr&&y.createElement("circle",{className:"".concat(nt,"-circle-trail"),r:Vn,cx:rn,cy:rn,stroke:Gn,strokeLinecap:vr,strokeWidth:xt||Jt,style:Mt}),mr?Rt():ft())},Ge=Qe,st={Line:Pe,Circle:Ge},Ce=E(25399),be=E(68361);function vt(Je){return!Je||Je<0?0:Je>100?100:Je}function zt(Je){let{success:It,successPercent:tn}=Je,mn=tn;return It&&"progress"in It&&(mn=It.progress),It&&"percent"in It&&(mn=It.percent),mn}const jt=Je=>{let{percent:It,success:tn,successPercent:mn}=Je;const nt=vt(zt({success:tn,successPercent:mn}));return[nt,vt(vt(It)-nt)]},De=Je=>{let{success:It={},strokeColor:tn}=Je;const{strokeColor:mn}=It;return[mn||be.presetPrimaryColors.green,tn||null]},pt=(Je,It,tn)=>{var mn,nt,Nt,Jt;let xt=-1,Wt=-1;if(It==="step"){const qt=tn.steps,Tn=tn.strokeWidth;typeof Je=="string"||typeof Je=="undefined"?(xt=Je==="small"?2:14,Wt=Tn!=null?Tn:8):typeof Je=="number"?[xt,Wt]=[Je,Je]:[xt=14,Wt=8]=Array.isArray(Je)?Je:[Je.width,Je.height],xt*=qt}else if(It==="line"){const qt=tn==null?void 0:tn.strokeWidth;typeof Je=="string"||typeof Je=="undefined"?Wt=qt||(Je==="small"?6:8):typeof Je=="number"?[xt,Wt]=[Je,Je]:[xt=-1,Wt=8]=Array.isArray(Je)?Je:[Je.width,Je.height]}else(It==="circle"||It==="dashboard")&&(typeof Je=="string"||typeof Je=="undefined"?[xt,Wt]=Je==="small"?[60,60]:[120,120]:typeof Je=="number"?[xt,Wt]=[Je,Je]:Array.isArray(Je)&&(xt=(nt=(mn=Je[0])!==null&&mn!==void 0?mn:Je[1])!==null&&nt!==void 0?nt:120,Wt=(Jt=(Nt=Je[0])!==null&&Nt!==void 0?Nt:Je[1])!==null&&Jt!==void 0?Jt:120));return[xt,Wt]},ut=3,Qt=Je=>ut/Je*100;var Ct=Je=>{const{prefixCls:It,trailColor:tn=null,strokeLinecap:mn="round",gapPosition:nt,gapDegree:Nt,width:Jt=120,type:xt,children:Wt,success:qt,size:Tn=Jt,steps:Gn}=Je,[On,Hn]=pt(Tn,"circle");let{strokeWidth:Zt}=Je;Zt===void 0&&(Zt=Math.max(Qt(On),6));const Dn={width:On,height:Hn,fontSize:On*.15+6},nn=y.useMemo(()=>{if(Nt||Nt===0)return Nt;if(xt==="dashboard")return 75},[Nt,xt]),Sn=jt(Je),rn=nt||xt==="dashboard"&&"bottom"||void 0,En=Object.prototype.toString.call(Je.strokeColor)==="[object Object]",xn=De({success:qt,strokeColor:Je.strokeColor}),Vn=Ne()(`${It}-inner`,{[`${It}-circle-gradient`]:En}),sr=y.createElement(Ge,{steps:Gn,percent:Gn?Sn[1]:Sn,strokeWidth:Zt,trailWidth:Zt,strokeColor:Gn?xn[1]:xn,strokeLinecap:mn,trailColor:tn,prefixCls:It,gapDegree:nn,gapPosition:rn}),er=On<=20,cr=y.createElement("div",{className:Vn,style:Dn},sr,!er&&Wt);return er?y.createElement(Ce.Z,{title:Wt},cr):cr},mt=E(36237),dn=E(63356),Ht=E(16931),ue=E(51636);const ie="--progress-line-stroke-color",re="--progress-percent",oe=Je=>{const It=Je?"100%":"-100%";return new mt.Keyframes(`antProgress${Je?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${It}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${It}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},pe=Je=>{const{componentCls:It,iconCls:tn}=Je;return{[It]:Object.assign(Object.assign({},(0,dn.Wf)(Je)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Je.fontSize},[`${It}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${It}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:Je.remainingColor,borderRadius:Je.lineBorderRadius},[`${It}-inner:not(${It}-circle-gradient)`]:{[`${It}-circle-path`]:{stroke:Je.defaultColor}},[`${It}-success-bg, ${It}-bg`]:{position:"relative",background:Je.defaultColor,borderRadius:Je.lineBorderRadius,transition:`all ${Je.motionDurationSlow} ${Je.motionEaseInOutCirc}`},[`${It}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${It}-text`]:{width:"max-content",marginInlineStart:0,marginTop:Je.marginXXS}},[`${It}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${ie})`]},height:"100%",width:`calc(1 / var(${re}) * 100%)`,display:"block"},[`&${It}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${It}-text-inner`]:{color:Je.colorWhite,[`&${It}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${It}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Je.colorSuccess},[`${It}-text`]:{display:"inline-block",marginInlineStart:Je.marginXS,color:Je.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[tn]:{fontSize:Je.fontSize},[`&${It}-text-outer`]:{width:"max-content"},[`&${It}-text-outer${It}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:Je.marginXS}},[`${It}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,mt.unit)(Je.paddingXXS)}`,[`&${It}-text-start`]:{justifyContent:"start"},[`&${It}-text-end`]:{justifyContent:"end"}},[`&${It}-status-active`]:{[`${It}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Je.colorBgContainer,borderRadius:Je.lineBorderRadius,opacity:0,animationName:oe(),animationDuration:Je.progressActiveMotionDuration,animationTimingFunction:Je.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${It}-rtl${It}-status-active`]:{[`${It}-bg::before`]:{animationName:oe(!0)}},[`&${It}-status-exception`]:{[`${It}-bg`]:{backgroundColor:Je.colorError},[`${It}-text`]:{color:Je.colorError}},[`&${It}-status-exception ${It}-inner:not(${It}-circle-gradient)`]:{[`${It}-circle-path`]:{stroke:Je.colorError}},[`&${It}-status-success`]:{[`${It}-bg`]:{backgroundColor:Je.colorSuccess},[`${It}-text`]:{color:Je.colorSuccess}},[`&${It}-status-success ${It}-inner:not(${It}-circle-gradient)`]:{[`${It}-circle-path`]:{stroke:Je.colorSuccess}}})}},ae=Je=>{const{componentCls:It,iconCls:tn}=Je;return{[It]:{[`${It}-circle-trail`]:{stroke:Je.remainingColor},[`&${It}-circle ${It}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${It}-circle ${It}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Je.circleTextColor,fontSize:Je.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[tn]:{fontSize:Je.circleIconFontSize}},[`${It}-circle&-status-exception`]:{[`${It}-text`]:{color:Je.colorError}},[`${It}-circle&-status-success`]:{[`${It}-text`]:{color:Je.colorSuccess}}},[`${It}-inline-circle`]:{lineHeight:1,[`${It}-inner`]:{verticalAlign:"bottom"}}}},me=Je=>{const{componentCls:It}=Je;return{[It]:{[`${It}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Je.progressStepMinWidth,marginInlineEnd:Je.progressStepMarginInlineEnd,backgroundColor:Je.remainingColor,transition:`all ${Je.motionDurationSlow}`,"&-active":{backgroundColor:Je.defaultColor}}}}}},Ze=Je=>{const{componentCls:It,iconCls:tn}=Je;return{[It]:{[`${It}-small&-line, ${It}-small&-line ${It}-text ${tn}`]:{fontSize:Je.fontSizeSM}}}},Ot=Je=>({circleTextColor:Je.colorText,defaultColor:Je.colorInfo,remainingColor:Je.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Je.fontSize/Je.fontSizeSM}em`});var at=(0,Ht.I$)("Progress",Je=>{const It=Je.calc(Je.marginXXS).div(2).equal(),tn=(0,ue.mergeToken)(Je,{progressStepMarginInlineEnd:It,progressStepMinWidth:It,progressActiveMotionDuration:"2.4s"});return[pe(tn),ae(tn),me(tn),Ze(tn)]},Ot),qe=function(Je,It){var tn={};for(var mn in Je)Object.prototype.hasOwnProperty.call(Je,mn)&&It.indexOf(mn)<0&&(tn[mn]=Je[mn]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,mn=Object.getOwnPropertySymbols(Je);nt<mn.length;nt++)It.indexOf(mn[nt])<0&&Object.prototype.propertyIsEnumerable.call(Je,mn[nt])&&(tn[mn[nt]]=Je[mn[nt]]);return tn};const bt=Je=>{let It=[];return Object.keys(Je).forEach(tn=>{const mn=parseFloat(tn.replace(/%/g,""));Number.isNaN(mn)||It.push({key:mn,value:Je[tn]})}),It=It.sort((tn,mn)=>tn.key-mn.key),It.map(tn=>{let{key:mn,value:nt}=tn;return`${nt} ${mn}%`}).join(", ")},At=(Je,It)=>{const{from:tn=be.presetPrimaryColors.blue,to:mn=be.presetPrimaryColors.blue,direction:nt=It==="rtl"?"to left":"to right"}=Je,Nt=qe(Je,["from","to","direction"]);if(Object.keys(Nt).length!==0){const xt=bt(Nt),Wt=`linear-gradient(${nt}, ${xt})`;return{background:Wt,[ie]:Wt}}const Jt=`linear-gradient(${nt}, ${tn}, ${mn})`;return{background:Jt,[ie]:Jt}};var Ye=Je=>{const{prefixCls:It,direction:tn,percent:mn,size:nt,strokeWidth:Nt,strokeColor:Jt,strokeLinecap:xt="round",children:Wt,trailColor:qt=null,percentPosition:Tn,success:Gn}=Je,{align:On,type:Hn}=Tn,Zt=Jt&&typeof Jt!="string"?At(Jt,tn):{[ie]:Jt,background:Jt},Dn=xt==="square"||xt==="butt"?0:void 0,nn=nt!=null?nt:[-1,Nt||(nt==="small"?6:8)],[Sn,rn]=pt(nn,"line",{strokeWidth:Nt}),En={backgroundColor:qt||void 0,borderRadius:Dn},xn=Object.assign(Object.assign({width:`${vt(mn)}%`,height:rn,borderRadius:Dn},Zt),{[re]:vt(mn)/100}),Vn=zt(Je),sr={width:`${vt(Vn)}%`,height:rn,borderRadius:Dn,backgroundColor:Gn==null?void 0:Gn.strokeColor},er={width:Sn<0?"100%":Sn},cr=y.createElement("div",{className:`${It}-inner`,style:En},y.createElement("div",{className:Ne()(`${It}-bg`,`${It}-bg-${Hn}`),style:xn},Hn==="inner"&&Wt),Vn!==void 0&&y.createElement("div",{className:`${It}-success-bg`,style:sr})),Dr=Hn==="outer"&&On==="start",mr=Hn==="outer"&&On==="end";return Hn==="outer"&&On==="center"?y.createElement("div",{className:`${It}-layout-bottom`},cr,Wt):y.createElement("div",{className:`${It}-outer`,style:er},Dr&&Wt,cr,mr&&Wt)},Vt=Je=>{const{size:It,steps:tn,rounding:mn=Math.round,percent:nt=0,strokeWidth:Nt=8,strokeColor:Jt,trailColor:xt=null,prefixCls:Wt,children:qt}=Je,Tn=mn(tn*(nt/100)),Gn=It==="small"?2:14,On=It!=null?It:[Gn,Nt],[Hn,Zt]=pt(On,"step",{steps:tn,strokeWidth:Nt}),Dn=Hn/tn,nn=Array.from({length:tn});for(let Sn=0;Sn<tn;Sn++){const rn=Array.isArray(Jt)?Jt[Sn]:Jt;nn[Sn]=y.createElement("div",{key:Sn,className:Ne()(`${Wt}-steps-item`,{[`${Wt}-steps-item-active`]:Sn<=Tn-1}),style:{backgroundColor:Sn<=Tn-1?rn:xt,width:Dn,height:Zt}})}return y.createElement("div",{className:`${Wt}-steps-outer`},nn,qt)},sn=function(Je,It){var tn={};for(var mn in Je)Object.prototype.hasOwnProperty.call(Je,mn)&&It.indexOf(mn)<0&&(tn[mn]=Je[mn]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,mn=Object.getOwnPropertySymbols(Je);nt<mn.length;nt++)It.indexOf(mn[nt])<0&&Object.prototype.propertyIsEnumerable.call(Je,mn[nt])&&(tn[mn[nt]]=Je[mn[nt]]);return tn};const wn=null,pn=["normal","exception","active","success"];var Gt=y.forwardRef((Je,It)=>{const{prefixCls:tn,className:mn,rootClassName:nt,steps:Nt,strokeColor:Jt,percent:xt=0,size:Wt="default",showInfo:qt=!0,type:Tn="line",status:Gn,format:On,style:Hn,percentPosition:Zt={}}=Je,Dn=sn(Je,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:nn="end",type:Sn="outer"}=Zt,rn=Array.isArray(Jt)?Jt[0]:Jt,En=typeof Jt=="string"||Array.isArray(Jt)?Jt:void 0,xn=y.useMemo(()=>{if(rn){const ft=typeof rn=="string"?rn:Object.values(rn)[0];return new ve.FastColor(ft).isLight()}return!1},[Jt]),Vn=y.useMemo(()=>{var ft,Rt;const it=zt(Je);return parseInt(it!==void 0?(ft=it!=null?it:0)===null||ft===void 0?void 0:ft.toString():(Rt=xt!=null?xt:0)===null||Rt===void 0?void 0:Rt.toString(),10)},[xt,Je.success,Je.successPercent]),sr=y.useMemo(()=>!pn.includes(Gn)&&Vn>=100?"success":Gn||"normal",[Gn,Vn]),{getPrefixCls:er,direction:cr,progress:Dr}=y.useContext(fe.E_),mr=er("progress",tn),[Hr,Lr,An]=at(mr),Rn=Tn==="line",dr=Rn&&!Nt,vr=y.useMemo(()=>{if(!qt)return null;const ft=zt(Je);let Rt;const it=On||(fn=>`${fn}%`),ht=Rn&&xn&&Sn==="inner";return Sn==="inner"||On||sr!=="exception"&&sr!=="success"?Rt=it(vt(xt),vt(ft)):sr==="exception"?Rt=Rn?y.createElement(xe.Z,null):y.createElement(ge.Z,null):sr==="success"&&(Rt=Rn?y.createElement(ce.Z,null):y.createElement(Le.Z,null)),y.createElement("span",{className:Ne()(`${mr}-text`,{[`${mr}-text-bright`]:ht,[`${mr}-text-${nn}`]:dr,[`${mr}-text-${Sn}`]:dr}),title:typeof Rt=="string"?Rt:void 0},Rt)},[qt,xt,Vn,sr,Tn,mr,On]);let Mt;Tn==="line"?Mt=Nt?y.createElement(Vt,Object.assign({},Je,{strokeColor:En,prefixCls:mr,steps:typeof Nt=="object"?Nt.count:Nt}),vr):y.createElement(Ye,Object.assign({},Je,{strokeColor:rn,prefixCls:mr,direction:cr,percentPosition:{align:nn,type:Sn}}),vr):(Tn==="circle"||Tn==="dashboard")&&(Mt=y.createElement(Ct,Object.assign({},Je,{strokeColor:rn,prefixCls:mr,progressStatus:sr}),vr));const Kt=Ne()(mr,`${mr}-status-${sr}`,{[`${mr}-${Tn==="dashboard"&&"circle"||Tn}`]:Tn!=="line",[`${mr}-inline-circle`]:Tn==="circle"&&pt(Wt,"circle")[0]<=20,[`${mr}-line`]:dr,[`${mr}-line-align-${nn}`]:dr,[`${mr}-line-position-${Sn}`]:dr,[`${mr}-steps`]:Nt,[`${mr}-show-info`]:qt,[`${mr}-${Wt}`]:typeof Wt=="string",[`${mr}-rtl`]:cr==="rtl"},Dr==null?void 0:Dr.className,mn,nt,Lr,An);return Hr(y.createElement("div",Object.assign({ref:It,style:Object.assign(Object.assign({},Dr==null?void 0:Dr.style),Hn),className:Kt,role:"progressbar","aria-valuenow":Vn,"aria-valuemin":0,"aria-valuemax":100},(0,Be.Z)(Dn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Mt))}),Pt=Gt},63139:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return jt}});var y=E(59301),ve=E(54476),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Le=ce,xe=E(7657),ge=function(pt,ut){return y.createElement(xe.Z,(0,ve.Z)({},pt,{ref:ut,icon:Le}))},Se=y.forwardRef(ge),Ne=Se,Be=E(92310),fe=E.n(Be),$e=E(20068),Oe=E(42978),ct=E(75931),Ke=E(18929),Te=E(10228),we=E(26112);function Ie(De,pt){var ut=De.disabled,Qt=De.prefixCls,yt=De.character,Ct=De.characterRender,mt=De.index,dn=De.count,Ht=De.value,ue=De.allowHalf,ie=De.focused,re=De.onHover,oe=De.onClick,pe=function(At){re(At,mt)},ae=function(At){oe(At,mt)},me=function(At){At.keyCode===Te.Z.ENTER&&oe(At,mt)},Ze=mt+1,Ot=new Set([Qt]);Ht===0&&mt===0&&ie?Ot.add("".concat(Qt,"-focused")):ue&&Ht+.5>=Ze&&Ht<Ze?(Ot.add("".concat(Qt,"-half")),Ot.add("".concat(Qt,"-active")),ie&&Ot.add("".concat(Qt,"-focused"))):(Ze<=Ht?Ot.add("".concat(Qt,"-full")):Ot.add("".concat(Qt,"-zero")),Ze===Ht&&ie&&Ot.add("".concat(Qt,"-focused")));var at=typeof yt=="function"?yt(De):yt,qe=y.createElement("li",{className:fe()(Array.from(Ot)),ref:pt},y.createElement("div",{onClick:ut?null:ae,onKeyDown:ut?null:me,onMouseMove:ut?null:pe,role:"radio","aria-checked":Ht>mt?"true":"false","aria-posinset":mt+1,"aria-setsize":dn,tabIndex:ut?-1:0},y.createElement("div",{className:"".concat(Qt,"-first")},at),y.createElement("div",{className:"".concat(Qt,"-second")},at)));return Ct&&(qe=Ct(qe,De)),qe}var Pe=y.forwardRef(Ie);function tt(){var De=y.useRef({});function pt(Qt){return De.current[Qt]}function ut(Qt){return function(yt){De.current[Qt]=yt}}return[pt,ut]}function Et(De){var pt=De.pageXOffset,ut="scrollLeft";if(typeof pt!="number"){var Qt=De.document;pt=Qt.documentElement[ut],typeof pt!="number"&&(pt=Qt.body[ut])}return pt}function _e(De){var pt,ut,Qt=De.ownerDocument,yt=Qt.body,Ct=Qt&&Qt.documentElement,mt=De.getBoundingClientRect();return pt=mt.left,ut=mt.top,pt-=Ct.clientLeft||yt.clientLeft||0,ut-=Ct.clientTop||yt.clientTop||0,{left:pt,top:ut}}function Fe(De){var pt=_e(De),ut=De.ownerDocument,Qt=ut.defaultView||ut.parentWindow;return pt.left+=Et(Qt),pt.left}var He=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Xe(De,pt){var ut=De.prefixCls,Qt=ut===void 0?"rc-rate":ut,yt=De.className,Ct=De.defaultValue,mt=De.value,dn=De.count,Ht=dn===void 0?5:dn,ue=De.allowHalf,ie=ue===void 0?!1:ue,re=De.allowClear,oe=re===void 0?!0:re,pe=De.keyboard,ae=pe===void 0?!0:pe,me=De.character,Ze=me===void 0?"\u2605":me,Ot=De.characterRender,at=De.disabled,qe=De.direction,bt=qe===void 0?"ltr":qe,At=De.tabIndex,$t=At===void 0?0:At,Ye=De.autoFocus,rt=De.onHoverChange,Vt=De.onChange,sn=De.onFocus,wn=De.onBlur,pn=De.onKeyDown,kt=De.onMouseLeave,Gt=(0,ct.Z)(De,He),Pt=tt(),Je=(0,Oe.Z)(Pt,2),It=Je[0],tn=Je[1],mn=y.useRef(null),nt=function(){if(!at){var vr;(vr=mn.current)===null||vr===void 0||vr.focus()}};y.useImperativeHandle(pt,function(){return{focus:nt,blur:function(){if(!at){var vr;(vr=mn.current)===null||vr===void 0||vr.blur()}}}});var Nt=(0,Ke.Z)(Ct||0,{value:mt}),Jt=(0,Oe.Z)(Nt,2),xt=Jt[0],Wt=Jt[1],qt=(0,Ke.Z)(null),Tn=(0,Oe.Z)(qt,2),Gn=Tn[0],On=Tn[1],Hn=function(vr,Mt){var Kt=bt==="rtl",ft=vr+1;if(ie){var Rt=It(vr),it=Fe(Rt),ht=Rt.clientWidth;(Kt&&Mt-it>ht/2||!Kt&&Mt-it<ht/2)&&(ft-=.5)}return ft},Zt=function(vr){Wt(vr),Vt==null||Vt(vr)},Dn=y.useState(!1),nn=(0,Oe.Z)(Dn,2),Sn=nn[0],rn=nn[1],En=function(){rn(!0),sn==null||sn()},xn=function(){rn(!1),wn==null||wn()},Vn=y.useState(null),sr=(0,Oe.Z)(Vn,2),er=sr[0],cr=sr[1],Dr=function(vr,Mt){var Kt=Hn(Mt,vr.pageX);Kt!==Gn&&(cr(Kt),On(null)),rt==null||rt(Kt)},mr=function(vr){at||(cr(null),On(null),rt==null||rt(void 0)),vr&&(kt==null||kt(vr))},Hr=function(vr,Mt){var Kt=Hn(Mt,vr.pageX),ft=!1;oe&&(ft=Kt===xt),mr(),Zt(ft?0:Kt),On(ft?Kt:null)},Lr=function(vr){var Mt=vr.keyCode,Kt=bt==="rtl",ft=ie?.5:1;ae&&(Mt===Te.Z.RIGHT&&xt<Ht&&!Kt?(Zt(xt+ft),vr.preventDefault()):Mt===Te.Z.LEFT&&xt>0&&!Kt||Mt===Te.Z.RIGHT&&xt>0&&Kt?(Zt(xt-ft),vr.preventDefault()):Mt===Te.Z.LEFT&&xt<Ht&&Kt&&(Zt(xt+ft),vr.preventDefault())),pn==null||pn(vr)};y.useEffect(function(){Ye&&!at&&nt()},[]);var An=new Array(Ht).fill(0).map(function(dr,vr){return y.createElement(Pe,{ref:tn(vr),index:vr,count:Ht,disabled:at,prefixCls:"".concat(Qt,"-star"),allowHalf:ie,value:er===null?xt:er,onClick:Hr,onHover:Dr,key:dr||vr,character:Ze,characterRender:Ot,focused:Sn})}),Rn=fe()(Qt,yt,(0,$e.Z)((0,$e.Z)({},"".concat(Qt,"-disabled"),at),"".concat(Qt,"-rtl"),bt==="rtl"));return y.createElement("ul",(0,ve.Z)({className:Rn,onMouseLeave:mr,tabIndex:at?-1:$t,onFocus:at?null:En,onBlur:at?null:xn,onKeyDown:at?null:Lr,ref:mn},(0,we.Z)(Gt,{aria:!0,data:!0,attr:!0})),An)}var St=y.forwardRef(Xe),gt=St,ot=E(48755),Ue=E(25399),Ee=E(36237),We=E(63356),Ae=E(16931),de=E(51636);const wt=De=>{const{componentCls:pt}=De;return{[`${pt}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:De.marginXS},"> div":{transition:`all ${De.motionDurationMid}, outline 0s`,"&:hover":{transform:De.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,Ee.unit)(De.lineWidth)} dashed ${De.starColor}`,transform:De.starHoverScale}},"&-first, &-second":{color:De.starBg,transition:`all ${De.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${pt}-star-first, &-half ${pt}-star-second`]:{opacity:1},[`&-half ${pt}-star-first, &-full ${pt}-star-second`]:{color:"inherit"}}}},Qe=De=>({[`&-rtl${De.componentCls}`]:{direction:"rtl"}}),Ge=De=>{const{componentCls:pt}=De;return{[pt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,We.Wf)(De)),{display:"inline-block",margin:0,padding:0,color:De.starColor,fontSize:De.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${pt} ${pt}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),wt(De)),Qe(De))}},st=De=>({starColor:De.yellow6,starSize:De.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:De.colorFillContent});var Ce=(0,Ae.I$)("Rate",De=>{const pt=(0,de.mergeToken)(De,{});return[Ge(pt)]},st),be=E(2171),vt=function(De,pt){var ut={};for(var Qt in De)Object.prototype.hasOwnProperty.call(De,Qt)&&pt.indexOf(Qt)<0&&(ut[Qt]=De[Qt]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,Qt=Object.getOwnPropertySymbols(De);yt<Qt.length;yt++)pt.indexOf(Qt[yt])<0&&Object.prototype.propertyIsEnumerable.call(De,Qt[yt])&&(ut[Qt[yt]]=De[Qt[yt]]);return ut},jt=y.forwardRef((De,pt)=>{const{prefixCls:ut,className:Qt,rootClassName:yt,style:Ct,tooltips:mt,character:dn=y.createElement(Ne,null),disabled:Ht}=De,ue=vt(De,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),ie=(At,$t)=>{let{index:Ye}=$t;return mt?y.createElement(Ue.Z,{title:mt[Ye]},At):At},{getPrefixCls:re,direction:oe,rate:pe}=y.useContext(ot.E_),ae=re("rate",ut),[me,Ze,Ot]=Ce(ae),at=Object.assign(Object.assign({},pe==null?void 0:pe.style),Ct),qe=y.useContext(be.Z),bt=Ht!=null?Ht:qe;return me(y.createElement(gt,Object.assign({ref:pt,character:dn,characterRender:ie,disabled:bt},ue,{className:fe()(Qt,yt,Ze,Ot,pe==null?void 0:pe.className),style:at,prefixCls:ae,direction:oe})))})},82326:function(Mn,Yt,E){"use strict";var y=E(59301),ve=E(92310),ce=E.n(ve),Le=E(37463),xe=E(2738),ge=E(75030),Se=E(86641),Ne=E(45915),Be=E(82855),fe=E(48755),$e=E(38406),Oe=E(2171),ct=E(83397),Ke=E(31756),Te=E(56553),we=E(24971),Ie=E(70045),Pe=E(57700),tt=E(1722),Et=E(90376),_e=E(68525),Fe=E(90005),He=function(Ue,Ee){var We={};for(var Ae in Ue)Object.prototype.hasOwnProperty.call(Ue,Ae)&&Ee.indexOf(Ae)<0&&(We[Ae]=Ue[Ae]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,Ae=Object.getOwnPropertySymbols(Ue);de<Ae.length;de++)Ee.indexOf(Ae[de])<0&&Object.prototype.propertyIsEnumerable.call(Ue,Ae[de])&&(We[Ae[de]]=Ue[Ae[de]]);return We};const Xe="SECRET_COMBOBOX_MODE_DO_NOT_USE",St=(Ue,Ee)=>{var We;const{prefixCls:Ae,bordered:de,className:wt,rootClassName:Qe,getPopupContainer:Ge,popupClassName:st,dropdownClassName:Ce,listHeight:be=256,placement:vt,listItemHeight:zt,size:jt,disabled:De,notFoundContent:pt,status:ut,builtinPlacements:Qt,dropdownMatchSelectWidth:yt,popupMatchSelectWidth:Ct,direction:mt,style:dn,allowClear:Ht,variant:ue,dropdownStyle:ie,transitionName:re,tagRender:oe,maxCount:pe,prefix:ae}=Ue,me=He(Ue,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:Ze,getPrefixCls:Ot,renderEmpty:at,direction:qe,virtual:bt,popupMatchSelectWidth:At,popupOverflow:$t}=y.useContext(fe.E_),Ye=(0,fe.dj)("select"),[,rt]=(0,Pe.ZP)(),Vt=zt!=null?zt:rt==null?void 0:rt.controlHeight,sn=Ot("select",Ae),wn=Ot(),pn=mt!=null?mt:qe,{compactSize:kt,compactItemClassnames:Gt}=(0,Ie.ri)(sn,pn),[Pt,Je]=(0,we.Z)("select",ue,de),It=(0,ct.Z)(sn),[tn,mn,nt]=(0,Et.Z)(sn,It),Nt=y.useMemo(()=>{const{mode:Lr}=Ue;if(Lr!=="combobox")return Lr===Xe?"combobox":Lr},[Ue.mode]),Jt=Nt==="multiple"||Nt==="tags",xt=(0,Fe.Z)(Ue.suffixIcon,Ue.showArrow),Wt=(We=Ct!=null?Ct:yt)!==null&&We!==void 0?We:At,{status:qt,hasFeedback:Tn,isFormItemInput:Gn,feedbackIcon:On}=y.useContext(Te.aM),Hn=(0,Be.F)(qt,ut);let Zt;pt!==void 0?Zt=pt:Nt==="combobox"?Zt=null:Zt=(at==null?void 0:at("Select"))||y.createElement($e.Z,{componentName:"Select"});const{suffixIcon:Dn,itemIcon:nn,removeIcon:Sn,clearIcon:rn}=(0,_e.Z)(Object.assign(Object.assign({},me),{multiple:Jt,hasFeedback:Tn,feedbackIcon:On,showSuffixIcon:xt,prefixCls:sn,componentName:"Select"})),En=Ht===!0?{clearIcon:rn}:Ht,xn=(0,xe.Z)(me,["suffixIcon","itemIcon"]),Vn=ce()(st||Ce,{[`${sn}-dropdown-${pn}`]:pn==="rtl"},Qe,nt,It,mn),sr=(0,Ke.Z)(Lr=>{var An;return(An=jt!=null?jt:kt)!==null&&An!==void 0?An:Lr}),er=y.useContext(Oe.Z),cr=De!=null?De:er,Dr=ce()({[`${sn}-lg`]:sr==="large",[`${sn}-sm`]:sr==="small",[`${sn}-rtl`]:pn==="rtl",[`${sn}-${Pt}`]:Je,[`${sn}-in-form-item`]:Gn},(0,Be.Z)(sn,Hn,Tn),Gt,Ye.className,wt,Qe,nt,It,mn),mr=y.useMemo(()=>vt!==void 0?vt:pn==="rtl"?"bottomRight":"bottomLeft",[vt,pn]),[Hr]=(0,ge.Cn)("SelectLike",ie==null?void 0:ie.zIndex);return tn(y.createElement(Le.ZP,Object.assign({ref:Ee,virtual:bt,showSearch:Ye.showSearch},xn,{style:Object.assign(Object.assign({},Ye.style),dn),dropdownMatchSelectWidth:Wt,transitionName:(0,Se.m)(wn,"slide-up",re),builtinPlacements:(0,tt.Z)(Qt,$t),listHeight:be,listItemHeight:Vt,mode:Nt,prefixCls:sn,placement:mr,direction:pn,prefix:ae,suffixIcon:Dn,menuItemSelectedIcon:nn,removeIcon:Sn,allowClear:En,notFoundContent:Zt,className:Dr,getPopupContainer:Ge||Ze,dropdownClassName:Vn,disabled:cr,dropdownStyle:Object.assign(Object.assign({},ie),{zIndex:Hr}),maxCount:Jt?pe:void 0,tagRender:Jt?oe:void 0})))},gt=y.forwardRef(St),ot=(0,Ne.Z)(gt,"dropdownAlign");gt.SECRET_COMBOBOX_MODE_DO_NOT_USE=Xe,gt.Option=Le.Wx,gt.OptGroup=Le.Xo,gt._InternalPanelDoNotUseOrYouWillBeFired=ot,Yt.default=gt},1722:function(Mn,Yt){"use strict";const E=ve=>{const Le={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:ve==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},Le),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Le),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Le),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Le),{points:["br","tr"],offset:[0,-4]})}};function y(ve,ce){return ve||E(ce)}Yt.Z=y},90376:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Ae}});var y=E(63356),ve=E(56119),ce=E(16931),Le=E(51636),xe=E(46e3),ge=E(93873);const Se=de=>{const{optionHeight:wt,optionFontSize:Qe,optionLineHeight:Ge,optionPadding:st}=de;return{position:"relative",display:"block",minHeight:wt,padding:st,color:de.colorText,fontWeight:"normal",fontSize:Qe,lineHeight:Ge,boxSizing:"border-box"}};var Be=de=>{const{antCls:wt,componentCls:Qe}=de,Ge=`${Qe}-item`,st=`&${wt}-slide-up-enter${wt}-slide-up-enter-active`,Ce=`&${wt}-slide-up-appear${wt}-slide-up-appear-active`,be=`&${wt}-slide-up-leave${wt}-slide-up-leave-active`,vt=`${Qe}-dropdown-placement-`,zt=`${Ge}-option-selected`;return[{[`${Qe}-dropdown`]:Object.assign(Object.assign({},(0,y.Wf)(de)),{position:"absolute",top:-9999,zIndex:de.zIndexPopup,boxSizing:"border-box",padding:de.paddingXXS,overflow:"hidden",fontSize:de.fontSize,fontVariant:"initial",backgroundColor:de.colorBgElevated,borderRadius:de.borderRadiusLG,outline:"none",boxShadow:de.boxShadowSecondary,[`
|
|
|
${st}${vt}bottomLeft,
|
|
|
${Ce}${vt}bottomLeft
|
|
|
`]:{animationName:xe.fJ},[`
|
|
|
${st}${vt}topLeft,
|
|
|
${Ce}${vt}topLeft,
|
|
|
${st}${vt}topRight,
|
|
|
${Ce}${vt}topRight
|
|
|
`]:{animationName:xe.Qt},[`${be}${vt}bottomLeft`]:{animationName:xe.Uw},[`
|
|
|
${be}${vt}topLeft,
|
|
|
${be}${vt}topRight
|
|
|
`]:{animationName:xe.ly},"&-hidden":{display:"none"},[Ge]:Object.assign(Object.assign({},Se(de)),{cursor:"pointer",transition:`background ${de.motionDurationSlow} ease`,borderRadius:de.borderRadiusSM,"&-group":{color:de.colorTextDescription,fontSize:de.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},y.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Ge}-option-disabled)`]:{backgroundColor:de.optionActiveBg},[`&-selected:not(${Ge}-option-disabled)`]:{color:de.optionSelectedColor,fontWeight:de.optionSelectedFontWeight,backgroundColor:de.optionSelectedBg,[`${Ge}-option-state`]:{color:de.colorPrimary}},"&-disabled":{[`&${Ge}-option-selected`]:{backgroundColor:de.colorBgContainerDisabled},color:de.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:de.calc(de.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Se(de)),{color:de.colorTextDisabled})}),[`${zt}:has(+ ${zt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${zt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,xe.oN)(de,"slide-up"),(0,xe.oN)(de,"slide-down"),(0,ge.Fm)(de,"move-up"),(0,ge.Fm)(de,"move-down")]},fe=E(26743),$e=E(36237);function Oe(de,wt){const{componentCls:Qe,inputPaddingHorizontalBase:Ge,borderRadius:st}=de,Ce=de.calc(de.controlHeight).sub(de.calc(de.lineWidth).mul(2)).equal(),be=wt?`${Qe}-${wt}`:"";return{[`${Qe}-single${be}`]:{fontSize:de.fontSize,height:de.controlHeight,[`${Qe}-selector`]:Object.assign(Object.assign({},(0,y.Wf)(de,!0)),{display:"flex",borderRadius:st,flex:"1 1 auto",[`${Qe}-selection-wrap:after`]:{lineHeight:(0,$e.unit)(Ce)},[`${Qe}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
|
${Qe}-selection-item,
|
|
|
${Qe}-selection-placeholder
|
|
|
`]:{display:"block",padding:0,lineHeight:(0,$e.unit)(Ce),transition:`all ${de.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Qe}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Qe}-selection-item:empty:after`,`${Qe}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Qe}-show-arrow ${Qe}-selection-item,
|
|
|
&${Qe}-show-arrow ${Qe}-selection-search,
|
|
|
&${Qe}-show-arrow ${Qe}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:de.showArrowPaddingInlineEnd},[`&${Qe}-open ${Qe}-selection-item`]:{color:de.colorTextPlaceholder},[`&:not(${Qe}-customize-input)`]:{[`${Qe}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,$e.unit)(Ge)}`,[`${Qe}-selection-search-input`]:{height:Ce,fontSize:de.fontSize},"&:after":{lineHeight:(0,$e.unit)(Ce)}}},[`&${Qe}-customize-input`]:{[`${Qe}-selector`]:{"&:after":{display:"none"},[`${Qe}-selection-search`]:{position:"static",width:"100%"},[`${Qe}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,$e.unit)(Ge)}`,"&:after":{display:"none"}}}}}}}function ct(de){const{componentCls:wt}=de,Qe=de.calc(de.controlPaddingHorizontalSM).sub(de.lineWidth).equal();return[Oe(de),Oe((0,Le.mergeToken)(de,{controlHeight:de.controlHeightSM,borderRadius:de.borderRadiusSM}),"sm"),{[`${wt}-single${wt}-sm`]:{[`&:not(${wt}-customize-input)`]:{[`${wt}-selector`]:{padding:`0 ${(0,$e.unit)(Qe)}`},[`&${wt}-show-arrow ${wt}-selection-search`]:{insetInlineEnd:de.calc(Qe).add(de.calc(de.fontSize).mul(1.5)).equal()},[`
|
|
|
&${wt}-show-arrow ${wt}-selection-item,
|
|
|
&${wt}-show-arrow ${wt}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:de.calc(de.fontSize).mul(1.5).equal()}}}},Oe((0,Le.mergeToken)(de,{controlHeight:de.singleItemHeightLG,fontSize:de.fontSizeLG,borderRadius:de.borderRadiusLG}),"lg")]}const Ke=de=>{const{fontSize:wt,lineHeight:Qe,lineWidth:Ge,controlHeight:st,controlHeightSM:Ce,controlHeightLG:be,paddingXXS:vt,controlPaddingHorizontal:zt,zIndexPopupBase:jt,colorText:De,fontWeightStrong:pt,controlItemBgActive:ut,controlItemBgHover:Qt,colorBgContainer:yt,colorFillSecondary:Ct,colorBgContainerDisabled:mt,colorTextDisabled:dn,colorPrimaryHover:Ht,colorPrimary:ue,controlOutline:ie}=de,re=vt*2,oe=Ge*2,pe=Math.min(st-re,st-oe),ae=Math.min(Ce-re,Ce-oe),me=Math.min(be-re,be-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(vt/2),zIndexPopup:jt+50,optionSelectedColor:De,optionSelectedFontWeight:pt,optionSelectedBg:ut,optionActiveBg:Qt,optionPadding:`${(st-wt*Qe)/2}px ${zt}px`,optionFontSize:wt,optionLineHeight:Qe,optionHeight:st,selectorBg:yt,clearBg:yt,singleItemHeightLG:be,multipleItemBg:Ct,multipleItemBorderColor:"transparent",multipleItemHeight:pe,multipleItemHeightSM:ae,multipleItemHeightLG:me,multipleSelectorBgDisabled:mt,multipleItemColorDisabled:dn,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(de.fontSize*1.25),hoverBorderColor:Ht,activeBorderColor:ue,activeOutlineColor:ie,selectAffixPadding:vt}},Te=(de,wt)=>{const{componentCls:Qe,antCls:Ge,controlOutlineWidth:st}=de;return{[`&:not(${Qe}-customize-input) ${Qe}-selector`]:{border:`${(0,$e.unit)(de.lineWidth)} ${de.lineType} ${wt.borderColor}`,background:de.selectorBg},[`&:not(${Qe}-disabled):not(${Qe}-customize-input):not(${Ge}-pagination-size-changer)`]:{[`&:hover ${Qe}-selector`]:{borderColor:wt.hoverBorderHover},[`${Qe}-focused& ${Qe}-selector`]:{borderColor:wt.activeBorderColor,boxShadow:`0 0 0 ${(0,$e.unit)(st)} ${wt.activeOutlineColor}`,outline:0},[`${Qe}-prefix`]:{color:wt.color}}}},we=(de,wt)=>({[`&${de.componentCls}-status-${wt.status}`]:Object.assign({},Te(de,wt))}),Ie=de=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Te(de,{borderColor:de.colorBorder,hoverBorderHover:de.hoverBorderColor,activeBorderColor:de.activeBorderColor,activeOutlineColor:de.activeOutlineColor,color:de.colorText})),we(de,{status:"error",borderColor:de.colorError,hoverBorderHover:de.colorErrorHover,activeBorderColor:de.colorError,activeOutlineColor:de.colorErrorOutline,color:de.colorError})),we(de,{status:"warning",borderColor:de.colorWarning,hoverBorderHover:de.colorWarningHover,activeBorderColor:de.colorWarning,activeOutlineColor:de.colorWarningOutline,color:de.colorWarning})),{[`&${de.componentCls}-disabled`]:{[`&:not(${de.componentCls}-customize-input) ${de.componentCls}-selector`]:{background:de.colorBgContainerDisabled,color:de.colorTextDisabled}},[`&${de.componentCls}-multiple ${de.componentCls}-selection-item`]:{background:de.multipleItemBg,border:`${(0,$e.unit)(de.lineWidth)} ${de.lineType} ${de.multipleItemBorderColor}`}})}),Pe=(de,wt)=>{const{componentCls:Qe,antCls:Ge}=de;return{[`&:not(${Qe}-customize-input) ${Qe}-selector`]:{background:wt.bg,border:`${(0,$e.unit)(de.lineWidth)} ${de.lineType} transparent`,color:wt.color},[`&:not(${Qe}-disabled):not(${Qe}-customize-input):not(${Ge}-pagination-size-changer)`]:{[`&:hover ${Qe}-selector`]:{background:wt.hoverBg},[`${Qe}-focused& ${Qe}-selector`]:{background:de.selectorBg,borderColor:wt.activeBorderColor,outline:0}}}},tt=(de,wt)=>({[`&${de.componentCls}-status-${wt.status}`]:Object.assign({},Pe(de,wt))}),Et=de=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Pe(de,{bg:de.colorFillTertiary,hoverBg:de.colorFillSecondary,activeBorderColor:de.activeBorderColor,color:de.colorText})),tt(de,{status:"error",bg:de.colorErrorBg,hoverBg:de.colorErrorBgHover,activeBorderColor:de.colorError,color:de.colorError})),tt(de,{status:"warning",bg:de.colorWarningBg,hoverBg:de.colorWarningBgHover,activeBorderColor:de.colorWarning,color:de.colorWarning})),{[`&${de.componentCls}-disabled`]:{[`&:not(${de.componentCls}-customize-input) ${de.componentCls}-selector`]:{borderColor:de.colorBorder,background:de.colorBgContainerDisabled,color:de.colorTextDisabled}},[`&${de.componentCls}-multiple ${de.componentCls}-selection-item`]:{background:de.colorBgContainer,border:`${(0,$e.unit)(de.lineWidth)} ${de.lineType} ${de.colorSplit}`}})}),_e=de=>({"&-borderless":{[`${de.componentCls}-selector`]:{background:"transparent",border:`${(0,$e.unit)(de.lineWidth)} ${de.lineType} transparent`},[`&${de.componentCls}-disabled`]:{[`&:not(${de.componentCls}-customize-input) ${de.componentCls}-selector`]:{color:de.colorTextDisabled}},[`&${de.componentCls}-multiple ${de.componentCls}-selection-item`]:{background:de.multipleItemBg,border:`${(0,$e.unit)(de.lineWidth)} ${de.lineType} ${de.multipleItemBorderColor}`},[`&${de.componentCls}-status-error`]:{[`${de.componentCls}-prefix, ${de.componentCls}-selection-item`]:{color:de.colorError}},[`&${de.componentCls}-status-warning`]:{[`${de.componentCls}-prefix, ${de.componentCls}-selection-item`]:{color:de.colorWarning}}}}),Fe=(de,wt)=>{const{componentCls:Qe,antCls:Ge}=de;return{[`&:not(${Qe}-customize-input) ${Qe}-selector`]:{borderWidth:`0 0 ${(0,$e.unit)(de.lineWidth)} 0`,borderStyle:`none none ${de.lineType} none`,borderColor:wt.borderColor,background:de.selectorBg,borderRadius:0},[`&:not(${Qe}-disabled):not(${Qe}-customize-input):not(${Ge}-pagination-size-changer)`]:{[`&:hover ${Qe}-selector`]:{borderColor:wt.hoverBorderHover},[`${Qe}-focused& ${Qe}-selector`]:{borderColor:wt.activeBorderColor,outline:0},[`${Qe}-prefix`]:{color:wt.color}}}},He=(de,wt)=>({[`&${de.componentCls}-status-${wt.status}`]:Object.assign({},Fe(de,wt))}),Xe=de=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Fe(de,{borderColor:de.colorBorder,hoverBorderHover:de.hoverBorderColor,activeBorderColor:de.activeBorderColor,activeOutlineColor:de.activeOutlineColor,color:de.colorText})),He(de,{status:"error",borderColor:de.colorError,hoverBorderHover:de.colorErrorHover,activeBorderColor:de.colorError,activeOutlineColor:de.colorErrorOutline,color:de.colorError})),He(de,{status:"warning",borderColor:de.colorWarning,hoverBorderHover:de.colorWarningHover,activeBorderColor:de.colorWarning,activeOutlineColor:de.colorWarningOutline,color:de.colorWarning})),{[`&${de.componentCls}-disabled`]:{[`&:not(${de.componentCls}-customize-input) ${de.componentCls}-selector`]:{color:de.colorTextDisabled}},[`&${de.componentCls}-multiple ${de.componentCls}-selection-item`]:{background:de.multipleItemBg,border:`${(0,$e.unit)(de.lineWidth)} ${de.lineType} ${de.multipleItemBorderColor}`}})});var gt=de=>({[de.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Ie(de)),Et(de)),_e(de)),Xe(de))});const ot=de=>{const{componentCls:wt}=de;return{position:"relative",transition:`all ${de.motionDurationMid} ${de.motionEaseInOut}`,input:{cursor:"pointer"},[`${wt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${wt}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Ue=de=>{const{componentCls:wt}=de;return{[`${wt}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},Ee=de=>{const{antCls:wt,componentCls:Qe,inputPaddingHorizontalBase:Ge,iconCls:st}=de;return{[Qe]:Object.assign(Object.assign({},(0,y.Wf)(de)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Qe}-customize-input) ${Qe}-selector`]:Object.assign(Object.assign({},ot(de)),Ue(de)),[`${Qe}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},y.vS),{[`> ${wt}-typography`]:{display:"inline"}}),[`${Qe}-selection-placeholder`]:Object.assign(Object.assign({},y.vS),{flex:1,color:de.colorTextPlaceholder,pointerEvents:"none"}),[`${Qe}-arrow`]:Object.assign(Object.assign({},(0,y.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ge,height:de.fontSizeIcon,marginTop:de.calc(de.fontSizeIcon).mul(-1).div(2).equal(),color:de.colorTextQuaternary,fontSize:de.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${de.motionDurationSlow} ease`,[st]:{verticalAlign:"top",transition:`transform ${de.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Qe}-suffix)`]:{pointerEvents:"auto"}},[`${Qe}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Qe}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${Qe}-prefix`]:{flex:"none",marginInlineEnd:de.selectAffixPadding},[`${Qe}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ge,zIndex:1,display:"inline-block",width:de.fontSizeIcon,height:de.fontSizeIcon,marginTop:de.calc(de.fontSizeIcon).mul(-1).div(2).equal(),color:de.colorTextQuaternary,fontSize:de.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${de.motionDurationMid} ease, opacity ${de.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:de.colorTextTertiary}},[`&:hover ${Qe}-clear`]:{opacity:1,background:de.colorBgBase,borderRadius:"50%"}}),[`${Qe}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Qe}-has-feedback`]:{[`${Qe}-clear`]:{insetInlineEnd:de.calc(Ge).add(de.fontSize).add(de.paddingXS).equal()}}}}}},We=de=>{const{componentCls:wt}=de;return[{[wt]:{[`&${wt}-in-form-item`]:{width:"100%"}}},Ee(de),ct(de),(0,fe.ZP)(de),Be(de),{[`${wt}-rtl`]:{direction:"rtl"}},(0,ve.c)(de,{borderElCls:`${wt}-selector`,focusElCls:`${wt}-focused`})]};var Ae=(0,ce.I$)("Select",(de,wt)=>{let{rootPrefixCls:Qe}=wt;const Ge=(0,Le.mergeToken)(de,{rootPrefixCls:Qe,inputPaddingHorizontalBase:de.calc(de.paddingSM).sub(1).equal(),multipleSelectItemHeight:de.multipleItemHeight,selectHeight:de.controlHeight});return[We(Ge),gt(Ge)]},Ke,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(Mn,Yt,E){"use strict";E.d(Yt,{_z:function(){return ge},gp:function(){return Le}});var y=E(36237),ve=E(63356),ce=E(51636);const Le=fe=>{const{multipleSelectItemHeight:$e,paddingXXS:Oe,lineWidth:ct,INTERNAL_FIXED_ITEM_MARGIN:Ke}=fe,Te=fe.max(fe.calc(Oe).sub(ct).equal(),0),we=fe.max(fe.calc(Te).sub(Ke).equal(),0);return{basePadding:Te,containerPadding:we,itemHeight:(0,y.unit)($e),itemLineHeight:(0,y.unit)(fe.calc($e).sub(fe.calc(fe.lineWidth).mul(2)).equal())}},xe=fe=>{const{multipleSelectItemHeight:$e,selectHeight:Oe,lineWidth:ct}=fe;return fe.calc(Oe).sub($e).div(2).sub(ct).equal()},ge=fe=>{const{componentCls:$e,iconCls:Oe,borderRadiusSM:ct,motionDurationSlow:Ke,paddingXS:Te,multipleItemColorDisabled:we,multipleItemBorderColorDisabled:Ie,colorIcon:Pe,colorIconHover:tt,INTERNAL_FIXED_ITEM_MARGIN:Et}=fe;return{[`${$e}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${$e}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:Et,borderRadius:ct,cursor:"default",transition:`font-size ${Ke}, line-height ${Ke}, height ${Ke}`,marginInlineEnd:fe.calc(Et).mul(2).equal(),paddingInlineStart:Te,paddingInlineEnd:fe.calc(Te).div(2).equal(),[`${$e}-disabled&`]:{color:we,borderColor:Ie,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:fe.calc(Te).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,ve.Ro)()),{display:"inline-flex",alignItems:"center",color:Pe,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Oe}`]:{verticalAlign:"-0.2em"},"&:hover":{color:tt}})}}}},Se=(fe,$e)=>{const{componentCls:Oe,INTERNAL_FIXED_ITEM_MARGIN:ct}=fe,Ke=`${Oe}-selection-overflow`,Te=fe.multipleSelectItemHeight,we=xe(fe),Ie=$e?`${Oe}-${$e}`:"",Pe=Le(fe);return{[`${Oe}-multiple${Ie}`]:Object.assign(Object.assign({},ge(fe)),{[`${Oe}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:Pe.basePadding,paddingBlock:Pe.containerPadding,borderRadius:fe.borderRadius,[`${Oe}-disabled&`]:{background:fe.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,y.unit)(ct)} 0`,lineHeight:(0,y.unit)(Te),visibility:"hidden",content:'"\\a0"'}},[`${Oe}-selection-item`]:{height:Pe.itemHeight,lineHeight:(0,y.unit)(Pe.itemLineHeight)},[`${Oe}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,y.unit)(Te),marginBlock:ct}},[`${Oe}-prefix`]:{marginInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(Pe.basePadding).equal()},[`${Ke}-item + ${Ke}-item,
|
|
|
${Oe}-prefix + ${Oe}-selection-wrap
|
|
|
`]:{[`${Oe}-selection-search`]:{marginInlineStart:0},[`${Oe}-selection-placeholder`]:{insetInlineStart:0}},[`${Ke}-item-suffix`]:{minHeight:Pe.itemHeight,marginBlock:ct},[`${Oe}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(we).equal(),"\n &-input,\n &-mirror\n ":{height:Te,fontFamily:fe.fontFamily,lineHeight:(0,y.unit)(Te),transition:`all ${fe.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Oe}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(Pe.basePadding).equal(),insetInlineEnd:fe.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${fe.motionDurationSlow}`}})}};function Ne(fe,$e){const{componentCls:Oe}=fe,ct=$e?`${Oe}-${$e}`:"",Ke={[`${Oe}-multiple${ct}`]:{fontSize:fe.fontSize,[`${Oe}-selector`]:{[`${Oe}-show-search&`]:{cursor:"text"}},[`
|
|
|
&${Oe}-show-arrow ${Oe}-selector,
|
|
|
&${Oe}-allow-clear ${Oe}-selector
|
|
|
`]:{paddingInlineEnd:fe.calc(fe.fontSizeIcon).add(fe.controlPaddingHorizontal).equal()}}};return[Se(fe,$e),Ke]}const Be=fe=>{const{componentCls:$e}=fe,Oe=(0,ce.mergeToken)(fe,{selectHeight:fe.controlHeightSM,multipleSelectItemHeight:fe.multipleItemHeightSM,borderRadius:fe.borderRadiusSM,borderRadiusSM:fe.borderRadiusXS}),ct=(0,ce.mergeToken)(fe,{fontSize:fe.fontSizeLG,selectHeight:fe.controlHeightLG,multipleSelectItemHeight:fe.multipleItemHeightLG,borderRadius:fe.borderRadiusLG,borderRadiusSM:fe.borderRadius});return[Ne(fe),Ne(Oe,"sm"),{[`${$e}-multiple${$e}-sm`]:{[`${$e}-selection-placeholder`]:{insetInline:fe.calc(fe.controlPaddingHorizontalSM).sub(fe.lineWidth).equal()},[`${$e}-selection-search`]:{marginInlineStart:2}}},Ne(ct,"lg")]};Yt.ZP=Be},68525:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Ne}});var y=E(59301),ve=E(40001),ce=E(19248),Le=E(99267),xe=E(84105),ge=E(58617),Se=E(47472);function Ne(Be){let{suffixIcon:fe,clearIcon:$e,menuItemSelectedIcon:Oe,removeIcon:ct,loading:Ke,multiple:Te,hasFeedback:we,prefixCls:Ie,showSuffixIcon:Pe,feedbackIcon:tt,showArrow:Et,componentName:_e}=Be;const Fe=$e!=null?$e:y.createElement(ce.Z,null),He=ot=>fe===null&&!we&&!Et?null:y.createElement(y.Fragment,null,Pe!==!1&&ot,we&&tt);let Xe=null;if(fe!==void 0)Xe=He(fe);else if(Ke)Xe=He(y.createElement(ge.Z,{spin:!0}));else{const ot=`${Ie}-suffix`;Xe=Ue=>{let{open:Ee,showSearch:We}=Ue;return He(Ee&&We?y.createElement(Se.Z,{className:ot}):y.createElement(xe.Z,{className:ot}))}}let St=null;Oe!==void 0?St=Oe:Te?St=y.createElement(ve.Z,null):St=null;let gt=null;return ct!==void 0?gt=ct:gt=y.createElement(Le.Z,null),{clearIcon:Fe,suffixIcon:Xe,itemIcon:St,removeIcon:gt}}},90005:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return y}});function y(ve,ce){return ce!==void 0?ce:ve!==null}},11938:function(Mn,Yt,E){"use strict";E.d(Yt,{default:function(){return Ue}});var y=E(59301),ve=E(40192),ce=E(22703),Le=E(92310),xe=E.n(Le),ge=E(26112),Se=E(48755),Ne=E(458),fe=Ee=>{const{value:We,formatter:Ae,precision:de,decimalSeparator:wt,groupSeparator:Qe="",prefixCls:Ge}=Ee;let st;if(typeof Ae=="function")st=Ae(We);else{const Ce=String(We),be=Ce.match(/^(-?)(\d*)(\.(\d+))?$/);if(!be||Ce==="-")st=Ce;else{const vt=be[1];let zt=be[2]||"0",jt=be[4]||"";zt=zt.replace(/\B(?=(\d{3})+(?!\d))/g,Qe),typeof de=="number"&&(jt=jt.padEnd(de,"0").slice(0,de>0?de:0)),jt&&(jt=`${wt}${jt}`),st=[y.createElement("span",{key:"int",className:`${Ge}-content-value-int`},vt,zt),jt&&y.createElement("span",{key:"decimal",className:`${Ge}-content-value-decimal`},jt)]}}return y.createElement("span",{className:`${Ge}-content-value`},st)},$e=E(63356),Oe=E(16931),ct=E(51636);const Ke=Ee=>{const{componentCls:We,marginXXS:Ae,padding:de,colorTextDescription:wt,titleFontSize:Qe,colorTextHeading:Ge,contentFontSize:st,fontFamily:Ce}=Ee;return{[We]:Object.assign(Object.assign({},(0,$e.Wf)(Ee)),{[`${We}-title`]:{marginBottom:Ae,color:wt,fontSize:Qe},[`${We}-skeleton`]:{paddingTop:de},[`${We}-content`]:{color:Ge,fontSize:st,fontFamily:Ce,[`${We}-content-value`]:{display:"inline-block",direction:"ltr"},[`${We}-content-prefix, ${We}-content-suffix`]:{display:"inline-block"},[`${We}-content-prefix`]:{marginInlineEnd:Ae},[`${We}-content-suffix`]:{marginInlineStart:Ae}}})}},Te=Ee=>{const{fontSizeHeading3:We,fontSize:Ae}=Ee;return{titleFontSize:Ae,contentFontSize:We}};var we=(0,Oe.I$)("Statistic",Ee=>{const We=(0,ct.mergeToken)(Ee,{});return[Ke(We)]},Te),Ie=function(Ee,We){var Ae={};for(var de in Ee)Object.prototype.hasOwnProperty.call(Ee,de)&&We.indexOf(de)<0&&(Ae[de]=Ee[de]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wt=0,de=Object.getOwnPropertySymbols(Ee);wt<de.length;wt++)We.indexOf(de[wt])<0&&Object.prototype.propertyIsEnumerable.call(Ee,de[wt])&&(Ae[de[wt]]=Ee[de[wt]]);return Ae},tt=Ee=>{const{prefixCls:We,className:Ae,rootClassName:de,style:wt,valueStyle:Qe,value:Ge=0,title:st,valueRender:Ce,prefix:be,suffix:vt,loading:zt=!1,formatter:jt,precision:De,decimalSeparator:pt=".",groupSeparator:ut=",",onMouseEnter:Qt,onMouseLeave:yt}=Ee,Ct=Ie(Ee,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:mt,direction:dn,className:Ht,style:ue}=(0,Se.dj)("statistic"),ie=mt("statistic",We),[re,oe,pe]=we(ie),ae=y.createElement(fe,{decimalSeparator:pt,groupSeparator:ut,prefixCls:ie,formatter:jt,precision:De,value:Ge}),me=xe()(ie,{[`${ie}-rtl`]:dn==="rtl"},Ht,Ae,de,oe,pe),Ze=(0,ge.Z)(Ct,{aria:!0,data:!0});return re(y.createElement("div",Object.assign({},Ze,{className:me,style:Object.assign(Object.assign({},ue),wt),onMouseEnter:Qt,onMouseLeave:yt}),st&&y.createElement("div",{className:`${ie}-title`},st),y.createElement(Ne.Z,{paragraph:!1,loading:zt,className:`${ie}-skeleton`},y.createElement("div",{style:Qe,className:`${ie}-content`},be&&y.createElement("span",{className:`${ie}-content-prefix`},be),Ce?Ce(ae):ae,vt&&y.createElement("span",{className:`${ie}-content-suffix`},vt)))))};const Et=[["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 _e(Ee,We){let Ae=Ee;const de=/\[[^\]]*]/g,wt=(We.match(de)||[]).map(Ce=>Ce.slice(1,-1)),Qe=We.replace(de,"[]"),Ge=Et.reduce((Ce,be)=>{let[vt,zt]=be;if(Ce.includes(vt)){const jt=Math.floor(Ae/zt);return Ae-=jt*zt,Ce.replace(new RegExp(`${vt}+`,"g"),De=>{const pt=De.length;return jt.toString().padStart(pt,"0")})}return Ce},Qe);let st=0;return Ge.replace(de,()=>{const Ce=wt[st];return st+=1,Ce})}function Fe(Ee,We){const{format:Ae=""}=We,de=new Date(Ee).getTime(),wt=Date.now(),Qe=Math.max(de-wt,0);return _e(Qe,Ae)}var He=function(Ee,We){var Ae={};for(var de in Ee)Object.prototype.hasOwnProperty.call(Ee,de)&&We.indexOf(de)<0&&(Ae[de]=Ee[de]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wt=0,de=Object.getOwnPropertySymbols(Ee);wt<de.length;wt++)We.indexOf(de[wt])<0&&Object.prototype.propertyIsEnumerable.call(Ee,de[wt])&&(Ae[de[wt]]=Ee[de[wt]]);return Ae};const Xe=1e3/30;function St(Ee){return new Date(Ee).getTime()}const gt=Ee=>{const{value:We,format:Ae="HH:mm:ss",onChange:de,onFinish:wt}=Ee,Qe=He(Ee,["value","format","onChange","onFinish"]),Ge=(0,ve.Z)(),st=y.useRef(null),Ce=()=>{wt==null||wt(),st.current&&(clearInterval(st.current),st.current=null)},be=()=>{const jt=St(We);jt>=Date.now()&&(st.current=setInterval(()=>{Ge(),de==null||de(jt-Date.now()),jt<Date.now()&&Ce()},Xe))};y.useEffect(()=>(be(),()=>{st.current&&(clearInterval(st.current),st.current=null)}),[We]);const vt=(jt,De)=>Fe(jt,Object.assign(Object.assign({},De),{format:Ae})),zt=jt=>(0,ce.Tm)(jt,{title:void 0});return y.createElement(tt,Object.assign({},Qe,{value:We,valueRender:zt,formatter:vt}))};var ot=y.memo(gt);tt.Countdown=ot;var Ue=tt},58755:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return wt}});var y=E(59301),ve=E(58617),ce=E(92310),Le=E.n(ce),xe=E(54476),ge=E(20068),Se=E(42978),Ne=E(75931),Be=E(18929),fe=E(10228),$e=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Oe=y.forwardRef(function(Qe,Ge){var st,Ce=Qe.prefixCls,be=Ce===void 0?"rc-switch":Ce,vt=Qe.className,zt=Qe.checked,jt=Qe.defaultChecked,De=Qe.disabled,pt=Qe.loadingIcon,ut=Qe.checkedChildren,Qt=Qe.unCheckedChildren,yt=Qe.onClick,Ct=Qe.onChange,mt=Qe.onKeyDown,dn=(0,Ne.Z)(Qe,$e),Ht=(0,Be.Z)(!1,{value:zt,defaultValue:jt}),ue=(0,Se.Z)(Ht,2),ie=ue[0],re=ue[1];function oe(Ze,Ot){var at=ie;return De||(at=Ze,re(at),Ct==null||Ct(at,Ot)),at}function pe(Ze){Ze.which===fe.Z.LEFT?oe(!1,Ze):Ze.which===fe.Z.RIGHT&&oe(!0,Ze),mt==null||mt(Ze)}function ae(Ze){var Ot=oe(!ie,Ze);yt==null||yt(Ot,Ze)}var me=Le()(be,vt,(st={},(0,ge.Z)(st,"".concat(be,"-checked"),ie),(0,ge.Z)(st,"".concat(be,"-disabled"),De),st));return y.createElement("button",(0,xe.Z)({},dn,{type:"button",role:"switch","aria-checked":ie,disabled:De,className:me,ref:Ge,onKeyDown:pe,onClick:ae}),pt,y.createElement("span",{className:"".concat(be,"-inner")},y.createElement("span",{className:"".concat(be,"-inner-checked")},ut),y.createElement("span",{className:"".concat(be,"-inner-unchecked")},Qt)))});Oe.displayName="Switch";var ct=Oe,Ke=E(12919),Te=E(48755),we=E(2171),Ie=E(31756),Pe=E(36237),tt=E(17835),Et=E(63356),_e=E(16931),Fe=E(51636);const He=Qe=>{const{componentCls:Ge,trackHeightSM:st,trackPadding:Ce,trackMinWidthSM:be,innerMinMarginSM:vt,innerMaxMarginSM:zt,handleSizeSM:jt,calc:De}=Qe,pt=`${Ge}-inner`,ut=(0,Pe.unit)(De(jt).add(De(Ce).mul(2)).equal()),Qt=(0,Pe.unit)(De(zt).mul(2).equal());return{[Ge]:{[`&${Ge}-small`]:{minWidth:be,height:st,lineHeight:(0,Pe.unit)(st),[`${Ge}-inner`]:{paddingInlineStart:zt,paddingInlineEnd:vt,[`${pt}-checked, ${pt}-unchecked`]:{minHeight:st},[`${pt}-checked`]:{marginInlineStart:`calc(-100% + ${ut} - ${Qt})`,marginInlineEnd:`calc(100% - ${ut} + ${Qt})`},[`${pt}-unchecked`]:{marginTop:De(st).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${Ge}-handle`]:{width:jt,height:jt},[`${Ge}-loading-icon`]:{top:De(De(jt).sub(Qe.switchLoadingIconSize)).div(2).equal(),fontSize:Qe.switchLoadingIconSize},[`&${Ge}-checked`]:{[`${Ge}-inner`]:{paddingInlineStart:vt,paddingInlineEnd:zt,[`${pt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${pt}-unchecked`]:{marginInlineStart:`calc(100% - ${ut} + ${Qt})`,marginInlineEnd:`calc(-100% + ${ut} - ${Qt})`}},[`${Ge}-handle`]:{insetInlineStart:`calc(100% - ${(0,Pe.unit)(De(jt).add(Ce).equal())})`}},[`&:not(${Ge}-disabled):active`]:{[`&:not(${Ge}-checked) ${pt}`]:{[`${pt}-unchecked`]:{marginInlineStart:De(Qe.marginXXS).div(2).equal(),marginInlineEnd:De(Qe.marginXXS).mul(-1).div(2).equal()}},[`&${Ge}-checked ${pt}`]:{[`${pt}-checked`]:{marginInlineStart:De(Qe.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:De(Qe.marginXXS).div(2).equal()}}}}}}},Xe=Qe=>{const{componentCls:Ge,handleSize:st,calc:Ce}=Qe;return{[Ge]:{[`${Ge}-loading-icon${Qe.iconCls}`]:{position:"relative",top:Ce(Ce(st).sub(Qe.fontSize)).div(2).equal(),color:Qe.switchLoadingIconColor,verticalAlign:"top"},[`&${Ge}-checked ${Ge}-loading-icon`]:{color:Qe.switchColor}}}},St=Qe=>{const{componentCls:Ge,trackPadding:st,handleBg:Ce,handleShadow:be,handleSize:vt,calc:zt}=Qe,jt=`${Ge}-handle`;return{[Ge]:{[jt]:{position:"absolute",top:st,insetInlineStart:st,width:vt,height:vt,transition:`all ${Qe.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Ce,borderRadius:zt(vt).div(2).equal(),boxShadow:be,transition:`all ${Qe.switchDuration} ease-in-out`,content:'""'}},[`&${Ge}-checked ${jt}`]:{insetInlineStart:`calc(100% - ${(0,Pe.unit)(zt(vt).add(st).equal())})`},[`&:not(${Ge}-disabled):active`]:{[`${jt}::before`]:{insetInlineEnd:Qe.switchHandleActiveInset,insetInlineStart:0},[`&${Ge}-checked ${jt}::before`]:{insetInlineEnd:0,insetInlineStart:Qe.switchHandleActiveInset}}}}},gt=Qe=>{const{componentCls:Ge,trackHeight:st,trackPadding:Ce,innerMinMargin:be,innerMaxMargin:vt,handleSize:zt,calc:jt}=Qe,De=`${Ge}-inner`,pt=(0,Pe.unit)(jt(zt).add(jt(Ce).mul(2)).equal()),ut=(0,Pe.unit)(jt(vt).mul(2).equal());return{[Ge]:{[De]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:vt,paddingInlineEnd:be,transition:`padding-inline-start ${Qe.switchDuration} ease-in-out, padding-inline-end ${Qe.switchDuration} ease-in-out`,[`${De}-checked, ${De}-unchecked`]:{display:"block",color:Qe.colorTextLightSolid,fontSize:Qe.fontSizeSM,transition:`margin-inline-start ${Qe.switchDuration} ease-in-out, margin-inline-end ${Qe.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:st},[`${De}-checked`]:{marginInlineStart:`calc(-100% + ${pt} - ${ut})`,marginInlineEnd:`calc(100% - ${pt} + ${ut})`},[`${De}-unchecked`]:{marginTop:jt(st).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${Ge}-checked ${De}`]:{paddingInlineStart:be,paddingInlineEnd:vt,[`${De}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${De}-unchecked`]:{marginInlineStart:`calc(100% - ${pt} + ${ut})`,marginInlineEnd:`calc(-100% + ${pt} - ${ut})`}},[`&:not(${Ge}-disabled):active`]:{[`&:not(${Ge}-checked) ${De}`]:{[`${De}-unchecked`]:{marginInlineStart:jt(Ce).mul(2).equal(),marginInlineEnd:jt(Ce).mul(-1).mul(2).equal()}},[`&${Ge}-checked ${De}`]:{[`${De}-checked`]:{marginInlineStart:jt(Ce).mul(-1).mul(2).equal(),marginInlineEnd:jt(Ce).mul(2).equal()}}}}}},ot=Qe=>{const{componentCls:Ge,trackHeight:st,trackMinWidth:Ce}=Qe;return{[Ge]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Et.Wf)(Qe)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Ce,height:st,lineHeight:(0,Pe.unit)(st),verticalAlign:"middle",background:Qe.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Qe.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ge}-disabled)`]:{background:Qe.colorTextTertiary}}),(0,Et.Qy)(Qe)),{[`&${Ge}-checked`]:{background:Qe.switchColor,[`&:hover:not(${Ge}-disabled)`]:{background:Qe.colorPrimaryHover}},[`&${Ge}-loading, &${Ge}-disabled`]:{cursor:"not-allowed",opacity:Qe.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ge}-rtl`]:{direction:"rtl"}})}},Ue=Qe=>{const{fontSize:Ge,lineHeight:st,controlHeight:Ce,colorWhite:be}=Qe,vt=Ge*st,zt=Ce/2,jt=2,De=vt-jt*2,pt=zt-jt*2;return{trackHeight:vt,trackHeightSM:zt,trackMinWidth:De*2+jt*4,trackMinWidthSM:pt*2+jt*2,trackPadding:jt,handleBg:be,handleSize:De,handleSizeSM:pt,handleShadow:`0 2px 4px 0 ${new tt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:De/2,innerMaxMargin:De+jt+jt*2,innerMinMarginSM:pt/2,innerMaxMarginSM:pt+jt+jt*2}};var Ee=(0,_e.I$)("Switch",Qe=>{const Ge=(0,Fe.mergeToken)(Qe,{switchDuration:Qe.motionDurationMid,switchColor:Qe.colorPrimary,switchDisabledOpacity:Qe.opacityLoading,switchLoadingIconSize:Qe.calc(Qe.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Qe.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ot(Ge),gt(Ge),St(Ge),Xe(Ge),He(Ge)]},Ue),We=function(Qe,Ge){var st={};for(var Ce in Qe)Object.prototype.hasOwnProperty.call(Qe,Ce)&&Ge.indexOf(Ce)<0&&(st[Ce]=Qe[Ce]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,Ce=Object.getOwnPropertySymbols(Qe);be<Ce.length;be++)Ge.indexOf(Ce[be])<0&&Object.prototype.propertyIsEnumerable.call(Qe,Ce[be])&&(st[Ce[be]]=Qe[Ce[be]]);return st};const de=y.forwardRef((Qe,Ge)=>{const{prefixCls:st,size:Ce,disabled:be,loading:vt,className:zt,rootClassName:jt,style:De,checked:pt,value:ut,defaultChecked:Qt,defaultValue:yt,onChange:Ct}=Qe,mt=We(Qe,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[dn,Ht]=(0,Be.Z)(!1,{value:pt!=null?pt:ut,defaultValue:Qt!=null?Qt:yt}),{getPrefixCls:ue,direction:ie,switch:re}=y.useContext(Te.E_),oe=y.useContext(we.Z),pe=(be!=null?be:oe)||vt,ae=ue("switch",st),me=y.createElement("div",{className:`${ae}-handle`},vt&&y.createElement(ve.Z,{className:`${ae}-loading-icon`})),[Ze,Ot,at]=Ee(ae),qe=(0,Ie.Z)(Ce),bt=Le()(re==null?void 0:re.className,{[`${ae}-small`]:qe==="small",[`${ae}-loading`]:vt,[`${ae}-rtl`]:ie==="rtl"},zt,jt,Ot,at),At=Object.assign(Object.assign({},re==null?void 0:re.style),De),$t=function(){Ht(arguments.length<=0?void 0:arguments[0]),Ct==null||Ct.apply(void 0,arguments)};return Ze(y.createElement(Ke.Z,{component:"Switch"},y.createElement(ct,Object.assign({},mt,{checked:dn,onChange:$t,prefixCls:ae,className:bt,style:At,disabled:pe,ref:Ge,loadingIcon:me}))))});de.__ANT_SWITCH=!0;var wt=de},70858:function(Mn,Yt,E){"use strict";E.d(Yt,{default:function(){return $l}});var y=E(59301),ve={},ce="rc-table-internal-hook",Le=E(42978),xe=E(6089),ge=E(34280),Se=E(13697),Ne=E(4676);function Be(ke){var Re=y.createContext(void 0),Dt=function(on){var hn=on.value,_n=on.children,Bn=y.useRef(hn);Bn.current=hn;var Zn=y.useState(function(){return{getValue:function(){return Bn.current},listeners:new Set}}),Ln=(0,Le.Z)(Zn,1),wr=Ln[0];return(0,ge.Z)(function(){(0,Ne.unstable_batchedUpdates)(function(){wr.listeners.forEach(function(lr){lr(hn)})})},[hn]),y.createElement(Re.Provider,{value:wr},_n)};return{Context:Re,Provider:Dt,defaultValue:ke}}function fe(ke,Re){var Dt=(0,xe.Z)(typeof Re=="function"?Re:function(lr){if(Re===void 0)return lr;if(!Array.isArray(Re))return lr[Re];var nr={};return Re.forEach(function(Xn){nr[Xn]=lr[Xn]}),nr}),Lt=y.useContext(ke==null?void 0:ke.Context),on=Lt||{},hn=on.listeners,_n=on.getValue,Bn=y.useRef();Bn.current=Dt(Lt?_n():ke==null?void 0:ke.defaultValue);var Zn=y.useState({}),Ln=(0,Le.Z)(Zn,2),wr=Ln[1];return(0,ge.Z)(function(){if(!Lt)return;function lr(nr){var Xn=Dt(nr);(0,Se.Z)(Bn.current,Xn,!0)||wr({})}return hn.add(lr),function(){hn.delete(lr)}},[Lt]),Bn.current}var $e=E(54476),Oe=E(8654);function ct(){var ke=y.createContext(null);function Re(){return y.useContext(ke)}function Dt(on,hn){var _n=(0,Oe.Yr)(on),Bn=function(Ln,wr){var lr=_n?{ref:wr}:{},nr=y.useRef(0),Xn=y.useRef(Ln),Kn=Re();return Kn!==null?y.createElement(on,(0,$e.Z)({},Ln,lr)):((!hn||hn(Xn.current,Ln))&&(nr.current+=1),Xn.current=Ln,y.createElement(ke.Provider,{value:nr.current},y.createElement(on,(0,$e.Z)({},Ln,lr))))};return _n?y.forwardRef(Bn):Bn}function Lt(on,hn){var _n=(0,Oe.Yr)(on),Bn=function(Ln,wr){var lr=_n?{ref:wr}:{};return Re(),y.createElement(on,(0,$e.Z)({},Ln,lr))};return _n?y.memo(y.forwardRef(Bn),hn):y.memo(Bn,hn)}return{makeImmutable:Dt,responseImmutable:Lt,useImmutableMark:Re}}var Ke=ct(),Te=Ke.makeImmutable,we=Ke.responseImmutable,Ie=Ke.useImmutableMark,Pe=ct(),tt=Pe.makeImmutable,Et=Pe.responseImmutable,_e=Pe.useImmutableMark,Fe=Be(),He=Fe;function Xe(ke,Re){var Dt=React.useRef(0);Dt.current+=1;var Lt=React.useRef(ke),on=[];Object.keys(ke||{}).map(function(_n){var Bn;(ke==null?void 0:ke[_n])!==((Bn=Lt.current)===null||Bn===void 0?void 0:Bn[_n])&&on.push(_n)}),Lt.current=ke;var hn=React.useRef([]);return on.length&&(hn.current=on),React.useDebugValue(Dt.current),React.useDebugValue(hn.current.join(", ")),Re&&console.log("".concat(Re,":"),Dt.current,hn.current),Dt.current}var St=null,gt=null,ot=E(76190),Ue=E(33885),Ee=E(20068),We=E(92310),Ae=E.n(We),de=E(80547),wt=E(97938),Qe=E(48736),Ge=y.createContext({renderWithProps:!1}),st=Ge,Ce="RC_TABLE_KEY";function be(ke){return ke==null?[]:Array.isArray(ke)?ke:[ke]}function vt(ke){var Re=[],Dt={};return ke.forEach(function(Lt){for(var on=Lt||{},hn=on.key,_n=on.dataIndex,Bn=hn||be(_n).join("-")||Ce;Dt[Bn];)Bn="".concat(Bn,"_next");Dt[Bn]=!0,Re.push(Bn)}),Re}function zt(ke){return ke!=null}function jt(ke){return typeof ke=="number"&&!Number.isNaN(ke)}function De(ke){return ke&&(0,ot.Z)(ke)==="object"&&!Array.isArray(ke)&&!y.isValidElement(ke)}function pt(ke,Re,Dt,Lt,on,hn){var _n=y.useContext(st),Bn=_e(),Zn=(0,de.Z)(function(){if(zt(Lt))return[Lt];var Ln=Re==null||Re===""?[]:Array.isArray(Re)?Re:[Re],wr=(0,wt.Z)(ke,Ln),lr=wr,nr=void 0;if(on){var Xn=on(wr,ke,Dt);De(Xn)?(lr=Xn.children,nr=Xn.props,_n.renderWithProps=!0):lr=Xn}return[lr,nr]},[Bn,ke,Lt,Re,on,Dt],function(Ln,wr){if(hn){var lr=(0,Le.Z)(Ln,2),nr=lr[1],Xn=(0,Le.Z)(wr,2),Kn=Xn[1];return hn(Kn,nr)}return _n.renderWithProps?!0:!(0,Se.Z)(Ln,wr,!0)});return Zn}function ut(ke,Re,Dt,Lt){var on=ke+Re-1;return ke<=Lt&&on>=Dt}function Qt(ke,Re){return fe(He,function(Dt){var Lt=ut(ke,Re||1,Dt.hoverStartRow,Dt.hoverEndRow);return[Lt,Dt.onHover]})}var yt=E(70425),Ct=function(Re){var Dt=Re.ellipsis,Lt=Re.rowType,on=Re.children,hn,_n=Dt===!0?{showTitle:!0}:Dt;return _n&&(_n.showTitle||Lt==="header")&&(typeof on=="string"||typeof on=="number"?hn=on.toString():y.isValidElement(on)&&typeof on.props.children=="string"&&(hn=on.props.children)),hn};function mt(ke){var Re,Dt,Lt,on,hn,_n,Bn,Zn,Ln=ke.component,wr=ke.children,lr=ke.ellipsis,nr=ke.scope,Xn=ke.prefixCls,Kn=ke.className,ia=ke.align,Tr=ke.record,da=ke.render,Ea=ke.dataIndex,Jr=ke.renderIndex,Oa=ke.shouldCellUpdate,La=ke.index,Qa=ke.rowType,Ua=ke.colSpan,eo=ke.rowSpan,Si=ke.fixLeft,gi=ke.fixRight,ji=ke.firstFixLeft,qa=ke.lastFixLeft,ti=ke.firstFixRight,Ra=ke.lastFixRight,Ca=ke.appendNode,Ja=ke.additionalProps,ni=Ja===void 0?{}:Ja,wi=ke.isSticky,_a="".concat(Xn,"-cell"),lo=fe(He,["supportSticky","allColumnsFixedLeft","rowHoverable"]),so=lo.supportSticky,pl=lo.allColumnsFixedLeft,ul=lo.rowHoverable,el=pt(Tr,Ea,Jr,wr,da,Oa),ol=(0,Le.Z)(el,2),El=ol[0],mo=ol[1],yo={},ll=typeof Si=="number"&&so,cl=typeof gi=="number"&&so;ll&&(yo.position="sticky",yo.left=Si),cl&&(yo.position="sticky",yo.right=gi);var mi=(Re=(Dt=(Lt=mo==null?void 0:mo.colSpan)!==null&&Lt!==void 0?Lt:ni.colSpan)!==null&&Dt!==void 0?Dt:Ua)!==null&&Re!==void 0?Re:1,qi=(on=(hn=(_n=mo==null?void 0:mo.rowSpan)!==null&&_n!==void 0?_n:ni.rowSpan)!==null&&hn!==void 0?hn:eo)!==null&&on!==void 0?on:1,li=Qt(La,qi),Ga=(0,Le.Z)(li,2),po=Ga[0],Mo=Ga[1],sl=(0,yt.zX)(function(zo){var $o;Tr&&Mo(La,La+qi-1),ni==null||($o=ni.onMouseEnter)===null||$o===void 0||$o.call(ni,zo)}),Co=(0,yt.zX)(function(zo){var $o;Tr&&Mo(-1,-1),ni==null||($o=ni.onMouseLeave)===null||$o===void 0||$o.call(ni,zo)});if(mi===0||qi===0)return null;var hl=(Bn=ni.title)!==null&&Bn!==void 0?Bn:Ct({rowType:Qa,ellipsis:lr,children:El}),Bl=Ae()(_a,Kn,(Zn={},(0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)(Zn,"".concat(_a,"-fix-left"),ll&&so),"".concat(_a,"-fix-left-first"),ji&&so),"".concat(_a,"-fix-left-last"),qa&&so),"".concat(_a,"-fix-left-all"),qa&&pl&&so),"".concat(_a,"-fix-right"),cl&&so),"".concat(_a,"-fix-right-first"),ti&&so),"".concat(_a,"-fix-right-last"),Ra&&so),"".concat(_a,"-ellipsis"),lr),"".concat(_a,"-with-append"),Ca),"".concat(_a,"-fix-sticky"),(ll||cl)&&wi&&so),(0,Ee.Z)(Zn,"".concat(_a,"-row-hover"),!mo&&po)),ni.className,mo==null?void 0:mo.className),Bi={};ia&&(Bi.textAlign=ia);var Ri=(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},mo==null?void 0:mo.style),yo),Bi),ni.style),Do=El;return(0,ot.Z)(Do)==="object"&&!Array.isArray(Do)&&!y.isValidElement(Do)&&(Do=null),lr&&(qa||ti)&&(Do=y.createElement("span",{className:"".concat(_a,"-content")},Do)),y.createElement(Ln,(0,$e.Z)({},mo,ni,{className:Bl,style:Ri,title:hl,scope:nr,onMouseEnter:ul?sl:void 0,onMouseLeave:ul?Co:void 0,colSpan:mi!==1?mi:null,rowSpan:qi!==1?qi:null}),Ca,Do)}var dn=y.memo(mt);function Ht(ke,Re,Dt,Lt,on){var hn=Dt[ke]||{},_n=Dt[Re]||{},Bn,Zn;hn.fixed==="left"?Bn=Lt.left[on==="rtl"?Re:ke]:_n.fixed==="right"&&(Zn=Lt.right[on==="rtl"?ke:Re]);var Ln=!1,wr=!1,lr=!1,nr=!1,Xn=Dt[Re+1],Kn=Dt[ke-1],ia=Xn&&!Xn.fixed||Kn&&!Kn.fixed||Dt.every(function(Oa){return Oa.fixed==="left"});if(on==="rtl"){if(Bn!==void 0){var Tr=Kn&&Kn.fixed==="left";nr=!Tr&&ia}else if(Zn!==void 0){var da=Xn&&Xn.fixed==="right";lr=!da&&ia}}else if(Bn!==void 0){var Ea=Xn&&Xn.fixed==="left";Ln=!Ea&&ia}else if(Zn!==void 0){var Jr=Kn&&Kn.fixed==="right";wr=!Jr&&ia}return{fixLeft:Bn,fixRight:Zn,lastFixLeft:Ln,firstFixRight:wr,lastFixRight:lr,firstFixLeft:nr,isSticky:Lt.isSticky}}var ue=y.createContext({}),ie=ue;function re(ke){var Re=ke.className,Dt=ke.index,Lt=ke.children,on=ke.colSpan,hn=on===void 0?1:on,_n=ke.rowSpan,Bn=ke.align,Zn=fe(He,["prefixCls","direction"]),Ln=Zn.prefixCls,wr=Zn.direction,lr=y.useContext(ie),nr=lr.scrollColumnIndex,Xn=lr.stickyOffsets,Kn=lr.flattenColumns,ia=Dt+hn-1,Tr=ia+1===nr?hn+1:hn,da=Ht(Dt,Dt+Tr-1,Kn,Xn,wr);return y.createElement(dn,(0,$e.Z)({className:Re,index:Dt,component:"td",prefixCls:Ln,record:null,dataIndex:null,align:Bn,colSpan:Tr,rowSpan:_n,render:function(){return Lt}},da))}var oe=E(75931),pe=["children"];function ae(ke){var Re=ke.children,Dt=(0,oe.Z)(ke,pe);return y.createElement("tr",Dt,Re)}function me(ke){var Re=ke.children;return Re}me.Row=ae,me.Cell=re;var Ze=me;function Ot(ke){var Re=ke.children,Dt=ke.stickyOffsets,Lt=ke.flattenColumns,on=fe(He,"prefixCls"),hn=Lt.length-1,_n=Lt[hn],Bn=y.useMemo(function(){return{stickyOffsets:Dt,flattenColumns:Lt,scrollColumnIndex:_n!=null&&_n.scrollbar?hn:null}},[_n,Lt,hn,Dt]);return y.createElement(ie.Provider,{value:Bn},y.createElement("tfoot",{className:"".concat(on,"-summary")},Re))}var at=Et(Ot),qe=Ze,bt=E(29301),At=E(3465),$t=E(75152),Ye=E(26112);function rt(ke,Re,Dt,Lt,on,hn,_n){ke.push({record:Re,indent:Dt,index:_n});var Bn=hn(Re),Zn=on==null?void 0:on.has(Bn);if(Re&&Array.isArray(Re[Lt])&&Zn)for(var Ln=0;Ln<Re[Lt].length;Ln+=1)rt(ke,Re[Lt][Ln],Dt+1,Lt,on,hn,Ln)}function Vt(ke,Re,Dt,Lt){var on=y.useMemo(function(){if(Dt!=null&&Dt.size){for(var hn=[],_n=0;_n<(ke==null?void 0:ke.length);_n+=1){var Bn=ke[_n];rt(hn,Bn,0,Re,Dt,Lt,_n)}return hn}return ke==null?void 0:ke.map(function(Zn,Ln){return{record:Zn,indent:0,index:Ln}})},[ke,Re,Dt,Lt]);return on}function sn(ke,Re,Dt,Lt){var on=fe(He,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),hn=on.flattenColumns,_n=on.expandableType,Bn=on.expandedKeys,Zn=on.childrenColumnName,Ln=on.onTriggerExpand,wr=on.rowExpandable,lr=on.onRow,nr=on.expandRowByClick,Xn=on.rowClassName,Kn=_n==="nest",ia=_n==="row"&&(!wr||wr(ke)),Tr=ia||Kn,da=Bn&&Bn.has(Re),Ea=Zn&&ke&&ke[Zn],Jr=(0,yt.zX)(Ln),Oa=lr==null?void 0:lr(ke,Dt),La=Oa==null?void 0:Oa.onClick,Qa=function(gi){nr&&Tr&&Ln(ke,gi);for(var ji=arguments.length,qa=new Array(ji>1?ji-1:0),ti=1;ti<ji;ti++)qa[ti-1]=arguments[ti];La==null||La.apply(void 0,[gi].concat(qa))},Ua;typeof Xn=="string"?Ua=Xn:typeof Xn=="function"&&(Ua=Xn(ke,Dt,Lt));var eo=vt(hn);return(0,Ue.Z)((0,Ue.Z)({},on),{},{columnsKey:eo,nestExpandable:Kn,expanded:da,hasNestChildren:Ea,record:ke,onTriggerExpand:Jr,rowSupportExpand:ia,expandable:Tr,rowProps:(0,Ue.Z)((0,Ue.Z)({},Oa),{},{className:Ae()(Ua,Oa==null?void 0:Oa.className),onClick:Qa})})}function wn(ke){var Re=ke.prefixCls,Dt=ke.children,Lt=ke.component,on=ke.cellComponent,hn=ke.className,_n=ke.expanded,Bn=ke.colSpan,Zn=ke.isEmpty,Ln=fe(He,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),wr=Ln.scrollbarSize,lr=Ln.fixHeader,nr=Ln.fixColumn,Xn=Ln.componentWidth,Kn=Ln.horizonScroll,ia=Dt;return(Zn?Kn&&Xn:nr)&&(ia=y.createElement("div",{style:{width:Xn-(lr&&!Zn?wr:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Re,"-expanded-row-fixed")},ia)),y.createElement(Lt,{className:hn,style:{display:_n?null:"none"}},y.createElement(dn,{component:on,prefixCls:Re,colSpan:Bn},ia))}var pn=wn;function kt(ke){var Re=ke.prefixCls,Dt=ke.record,Lt=ke.onExpand,on=ke.expanded,hn=ke.expandable,_n="".concat(Re,"-row-expand-icon");if(!hn)return y.createElement("span",{className:Ae()(_n,"".concat(Re,"-row-spaced"))});var Bn=function(Ln){Lt(Dt,Ln),Ln.stopPropagation()};return y.createElement("span",{className:Ae()(_n,(0,Ee.Z)((0,Ee.Z)({},"".concat(Re,"-row-expanded"),on),"".concat(Re,"-row-collapsed"),!on)),onClick:Bn})}function Gt(ke,Re,Dt){var Lt=[];function on(hn){(hn||[]).forEach(function(_n,Bn){Lt.push(Re(_n,Bn)),on(_n[Dt])})}return on(ke),Lt}function Pt(ke,Re,Dt,Lt){return typeof ke=="string"?ke:typeof ke=="function"?ke(Re,Dt,Lt):""}function Je(ke,Re,Dt,Lt,on){var hn=ke.record,_n=ke.prefixCls,Bn=ke.columnsKey,Zn=ke.fixedInfoList,Ln=ke.expandIconColumnIndex,wr=ke.nestExpandable,lr=ke.indentSize,nr=ke.expandIcon,Xn=ke.expanded,Kn=ke.hasNestChildren,ia=ke.onTriggerExpand,Tr=Bn[Dt],da=Zn[Dt],Ea;Dt===(Ln||0)&&wr&&(Ea=y.createElement(y.Fragment,null,y.createElement("span",{style:{paddingLeft:"".concat(lr*Lt,"px")},className:"".concat(_n,"-row-indent indent-level-").concat(Lt)}),nr({prefixCls:_n,expanded:Xn,expandable:Kn,record:hn,onExpand:ia})));var Jr;return Re.onCell&&(Jr=Re.onCell(hn,on)),{key:Tr,fixedInfo:da,appendCellNode:Ea,additionalCellProps:Jr||{}}}function It(ke){var Re=ke.className,Dt=ke.style,Lt=ke.record,on=ke.index,hn=ke.renderIndex,_n=ke.rowKey,Bn=ke.indent,Zn=Bn===void 0?0:Bn,Ln=ke.rowComponent,wr=ke.cellComponent,lr=ke.scopeCellComponent,nr=sn(Lt,_n,on,Zn),Xn=nr.prefixCls,Kn=nr.flattenColumns,ia=nr.expandedRowClassName,Tr=nr.expandedRowRender,da=nr.rowProps,Ea=nr.expanded,Jr=nr.rowSupportExpand,Oa=y.useRef(!1);Oa.current||(Oa.current=Ea);var La=Pt(ia,Lt,on,Zn),Qa=y.createElement(Ln,(0,$e.Z)({},da,{"data-row-key":_n,className:Ae()(Re,"".concat(Xn,"-row"),"".concat(Xn,"-row-level-").concat(Zn),da==null?void 0:da.className,(0,Ee.Z)({},La,Zn>=1)),style:(0,Ue.Z)((0,Ue.Z)({},Dt),da==null?void 0:da.style)}),Kn.map(function(Si,gi){var ji=Si.render,qa=Si.dataIndex,ti=Si.className,Ra=Je(nr,Si,gi,Zn,on),Ca=Ra.key,Ja=Ra.fixedInfo,ni=Ra.appendCellNode,wi=Ra.additionalCellProps;return y.createElement(dn,(0,$e.Z)({className:ti,ellipsis:Si.ellipsis,align:Si.align,scope:Si.rowScope,component:Si.rowScope?lr:wr,prefixCls:Xn,key:Ca,record:Lt,index:on,renderIndex:hn,dataIndex:qa,render:ji,shouldCellUpdate:Si.shouldCellUpdate},Ja,{appendNode:ni,additionalProps:wi}))})),Ua;if(Jr&&(Oa.current||Ea)){var eo=Tr(Lt,on,Zn+1,Ea);Ua=y.createElement(pn,{expanded:Ea,className:Ae()("".concat(Xn,"-expanded-row"),"".concat(Xn,"-expanded-row-level-").concat(Zn+1),La),prefixCls:Xn,component:Ln,cellComponent:wr,colSpan:Kn.length,isEmpty:!1},eo)}return y.createElement(y.Fragment,null,Qa,Ua)}var tn=Et(It);function mn(ke){var Re=ke.columnKey,Dt=ke.onColumnResize,Lt=y.useRef();return(0,ge.Z)(function(){Lt.current&&Dt(Re,Lt.current.offsetWidth)},[]),y.createElement(bt.Z,{data:Re},y.createElement("td",{ref:Lt,style:{padding:0,border:0,height:0}},y.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var nt=E(29194);function Nt(ke){var Re=ke.prefixCls,Dt=ke.columnsKey,Lt=ke.onColumnResize,on=y.useRef(null);return y.createElement("tr",{"aria-hidden":"true",className:"".concat(Re,"-measure-row"),style:{height:0,fontSize:0},ref:on},y.createElement(bt.Z.Collection,{onBatchResize:function(_n){(0,nt.Z)(on.current)&&_n.forEach(function(Bn){var Zn=Bn.data,Ln=Bn.size;Lt(Zn,Ln.offsetWidth)})}},Dt.map(function(hn){return y.createElement(mn,{key:hn,columnKey:hn,onColumnResize:Lt})})))}function Jt(ke){var Re=ke.data,Dt=ke.measureColumnWidth,Lt=fe(He,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),on=Lt.prefixCls,hn=Lt.getComponent,_n=Lt.onColumnResize,Bn=Lt.flattenColumns,Zn=Lt.getRowKey,Ln=Lt.expandedKeys,wr=Lt.childrenColumnName,lr=Lt.emptyNode,nr=Vt(Re,wr,Ln,Zn),Xn=y.useRef({renderWithProps:!1}),Kn=hn(["body","wrapper"],"tbody"),ia=hn(["body","row"],"tr"),Tr=hn(["body","cell"],"td"),da=hn(["body","cell"],"th"),Ea;Re.length?Ea=nr.map(function(Oa,La){var Qa=Oa.record,Ua=Oa.indent,eo=Oa.index,Si=Zn(Qa,La);return y.createElement(tn,{key:Si,rowKey:Si,record:Qa,index:La,renderIndex:eo,rowComponent:ia,cellComponent:Tr,scopeCellComponent:da,indent:Ua})}):Ea=y.createElement(pn,{expanded:!0,className:"".concat(on,"-placeholder"),prefixCls:on,component:ia,cellComponent:Tr,colSpan:Bn.length,isEmpty:!0},lr);var Jr=vt(Bn);return y.createElement(st.Provider,{value:Xn.current},y.createElement(Kn,{className:"".concat(on,"-tbody")},Dt&&y.createElement(Nt,{prefixCls:on,columnsKey:Jr,onColumnResize:_n}),Ea))}var xt=Et(Jt),Wt=["expandable"],qt="RC_TABLE_INTERNAL_COL_DEFINE";function Tn(ke){var Re=ke.expandable,Dt=(0,oe.Z)(ke,Wt),Lt;return"expandable"in ke?Lt=(0,Ue.Z)((0,Ue.Z)({},Dt),Re):Lt=Dt,Lt.showExpandColumn===!1&&(Lt.expandIconColumnIndex=-1),Lt}var Gn=["columnType"];function On(ke){for(var Re=ke.colWidths,Dt=ke.columns,Lt=ke.columCount,on=fe(He,["tableLayout"]),hn=on.tableLayout,_n=[],Bn=Lt||Dt.length,Zn=!1,Ln=Bn-1;Ln>=0;Ln-=1){var wr=Re[Ln],lr=Dt&&Dt[Ln],nr=void 0,Xn=void 0;if(lr&&(nr=lr[qt],hn==="auto"&&(Xn=lr.minWidth)),wr||Xn||nr||Zn){var Kn=nr||{},ia=Kn.columnType,Tr=(0,oe.Z)(Kn,Gn);_n.unshift(y.createElement("col",(0,$e.Z)({key:Ln,style:{width:wr,minWidth:Xn}},Tr))),Zn=!0}}return y.createElement("colgroup",null,_n)}var Hn=On,Zt=E(94480),Dn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function nn(ke,Re){return(0,y.useMemo)(function(){for(var Dt=[],Lt=0;Lt<Re;Lt+=1){var on=ke[Lt];if(on!==void 0)Dt[Lt]=on;else return null}return Dt},[ke.join("_"),Re])}var Sn=y.forwardRef(function(ke,Re){var Dt=ke.className,Lt=ke.noData,on=ke.columns,hn=ke.flattenColumns,_n=ke.colWidths,Bn=ke.columCount,Zn=ke.stickyOffsets,Ln=ke.direction,wr=ke.fixHeader,lr=ke.stickyTopOffset,nr=ke.stickyBottomOffset,Xn=ke.stickyClassName,Kn=ke.onScroll,ia=ke.maxContentScroll,Tr=ke.children,da=(0,oe.Z)(ke,Dn),Ea=fe(He,["prefixCls","scrollbarSize","isSticky","getComponent"]),Jr=Ea.prefixCls,Oa=Ea.scrollbarSize,La=Ea.isSticky,Qa=Ea.getComponent,Ua=Qa(["header","table"],"table"),eo=La&&!wr?0:Oa,Si=y.useRef(null),gi=y.useCallback(function(wi){(0,Oe.mH)(Re,wi),(0,Oe.mH)(Si,wi)},[]);y.useEffect(function(){var wi;function _a(lo){var so=lo,pl=so.currentTarget,ul=so.deltaX;ul&&(Kn({currentTarget:pl,scrollLeft:pl.scrollLeft+ul}),lo.preventDefault())}return(wi=Si.current)===null||wi===void 0||wi.addEventListener("wheel",_a,{passive:!1}),function(){var lo;(lo=Si.current)===null||lo===void 0||lo.removeEventListener("wheel",_a)}},[]);var ji=y.useMemo(function(){return hn.every(function(wi){return wi.width})},[hn]),qa=hn[hn.length-1],ti={fixed:qa?qa.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Jr,"-cell-scrollbar")}}},Ra=(0,y.useMemo)(function(){return eo?[].concat((0,Zt.Z)(on),[ti]):on},[eo,on]),Ca=(0,y.useMemo)(function(){return eo?[].concat((0,Zt.Z)(hn),[ti]):hn},[eo,hn]),Ja=(0,y.useMemo)(function(){var wi=Zn.right,_a=Zn.left;return(0,Ue.Z)((0,Ue.Z)({},Zn),{},{left:Ln==="rtl"?[].concat((0,Zt.Z)(_a.map(function(lo){return lo+eo})),[0]):_a,right:Ln==="rtl"?wi:[].concat((0,Zt.Z)(wi.map(function(lo){return lo+eo})),[0]),isSticky:La})},[eo,Zn,La]),ni=nn(_n,Bn);return y.createElement("div",{style:(0,Ue.Z)({overflow:"hidden"},La?{top:lr,bottom:nr}:{}),ref:gi,className:Ae()(Dt,(0,Ee.Z)({},Xn,!!Xn))},y.createElement(Ua,{style:{tableLayout:"fixed",visibility:Lt||ni?null:"hidden"}},(!Lt||!ia||ji)&&y.createElement(Hn,{colWidths:ni?[].concat((0,Zt.Z)(ni),[eo]):[],columCount:Bn+1,columns:Ca}),Tr((0,Ue.Z)((0,Ue.Z)({},da),{},{stickyOffsets:Ja,columns:Ra,flattenColumns:Ca}))))}),rn=y.memo(Sn),En=function(Re){var Dt=Re.cells,Lt=Re.stickyOffsets,on=Re.flattenColumns,hn=Re.rowComponent,_n=Re.cellComponent,Bn=Re.onHeaderRow,Zn=Re.index,Ln=fe(He,["prefixCls","direction"]),wr=Ln.prefixCls,lr=Ln.direction,nr;Bn&&(nr=Bn(Dt.map(function(Kn){return Kn.column}),Zn));var Xn=vt(Dt.map(function(Kn){return Kn.column}));return y.createElement(hn,nr,Dt.map(function(Kn,ia){var Tr=Kn.column,da=Ht(Kn.colStart,Kn.colEnd,on,Lt,lr),Ea;return Tr&&Tr.onHeaderCell&&(Ea=Kn.column.onHeaderCell(Tr)),y.createElement(dn,(0,$e.Z)({},Kn,{scope:Tr.title?Kn.colSpan>1?"colgroup":"col":null,ellipsis:Tr.ellipsis,align:Tr.align,component:_n,prefixCls:wr,key:Xn[ia]},da,{additionalProps:Ea,rowType:"header"}))}))},xn=En;function Vn(ke){var Re=[];function Dt(_n,Bn){var Zn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Re[Zn]=Re[Zn]||[];var Ln=Bn,wr=_n.filter(Boolean).map(function(lr){var nr={key:lr.key,className:lr.className||"",children:lr.title,column:lr,colStart:Ln},Xn=1,Kn=lr.children;return Kn&&Kn.length>0&&(Xn=Dt(Kn,Ln,Zn+1).reduce(function(ia,Tr){return ia+Tr},0),nr.hasSubColumns=!0),"colSpan"in lr&&(Xn=lr.colSpan),"rowSpan"in lr&&(nr.rowSpan=lr.rowSpan),nr.colSpan=Xn,nr.colEnd=nr.colStart+Xn-1,Re[Zn].push(nr),Ln+=Xn,Xn});return wr}Dt(ke,0);for(var Lt=Re.length,on=function(Bn){Re[Bn].forEach(function(Zn){!("rowSpan"in Zn)&&!Zn.hasSubColumns&&(Zn.rowSpan=Lt-Bn)})},hn=0;hn<Lt;hn+=1)on(hn);return Re}var sr=function(Re){var Dt=Re.stickyOffsets,Lt=Re.columns,on=Re.flattenColumns,hn=Re.onHeaderRow,_n=fe(He,["prefixCls","getComponent"]),Bn=_n.prefixCls,Zn=_n.getComponent,Ln=y.useMemo(function(){return Vn(Lt)},[Lt]),wr=Zn(["header","wrapper"],"thead"),lr=Zn(["header","row"],"tr"),nr=Zn(["header","cell"],"th");return y.createElement(wr,{className:"".concat(Bn,"-thead")},Ln.map(function(Xn,Kn){var ia=y.createElement(xn,{key:Kn,flattenColumns:on,cells:Xn,stickyOffsets:Dt,rowComponent:lr,cellComponent:nr,onHeaderRow:hn,index:Kn});return ia}))},er=Et(sr),cr=E(11592);function Dr(ke){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Re=="number"?Re:Re.endsWith("%")?ke*parseFloat(Re)/100:null}function mr(ke,Re,Dt){return y.useMemo(function(){if(Re&&Re>0){var Lt=0,on=0;ke.forEach(function(nr){var Xn=Dr(Re,nr.width);Xn?Lt+=Xn:on+=1});var hn=Math.max(Re,Dt),_n=Math.max(hn-Lt,on),Bn=on,Zn=_n/on,Ln=0,wr=ke.map(function(nr){var Xn=(0,Ue.Z)({},nr),Kn=Dr(Re,Xn.width);if(Kn)Xn.width=Kn;else{var ia=Math.floor(Zn);Xn.width=Bn===1?_n:ia,_n-=ia,Bn-=1}return Ln+=Xn.width,Xn});if(Ln<hn){var lr=hn/Ln;_n=hn,wr.forEach(function(nr,Xn){var Kn=Math.floor(nr.width*lr);nr.width=Xn===wr.length-1?_n:Kn,_n-=Kn})}return[wr,Math.max(Ln,hn)]}return[ke,Re]},[ke,Re,Dt])}var Hr=["children"],Lr=["fixed"];function An(ke){return(0,cr.Z)(ke).filter(function(Re){return y.isValidElement(Re)}).map(function(Re){var Dt=Re.key,Lt=Re.props,on=Lt.children,hn=(0,oe.Z)(Lt,Hr),_n=(0,Ue.Z)({key:Dt},hn);return on&&(_n.children=An(on)),_n})}function Rn(ke){return ke.filter(function(Re){return Re&&(0,ot.Z)(Re)==="object"&&!Re.hidden}).map(function(Re){var Dt=Re.children;return Dt&&Dt.length>0?(0,Ue.Z)((0,Ue.Z)({},Re),{},{children:Rn(Dt)}):Re})}function dr(ke){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return ke.filter(function(Dt){return Dt&&(0,ot.Z)(Dt)==="object"}).reduce(function(Dt,Lt,on){var hn=Lt.fixed,_n=hn===!0?"left":hn,Bn="".concat(Re,"-").concat(on),Zn=Lt.children;return Zn&&Zn.length>0?[].concat((0,Zt.Z)(Dt),(0,Zt.Z)(dr(Zn,Bn).map(function(Ln){return(0,Ue.Z)({fixed:_n},Ln)}))):[].concat((0,Zt.Z)(Dt),[(0,Ue.Z)((0,Ue.Z)({key:Bn},Lt),{},{fixed:_n})])},[])}function vr(ke){return ke.map(function(Re){var Dt=Re.fixed,Lt=(0,oe.Z)(Re,Lr),on=Dt;return Dt==="left"?on="right":Dt==="right"&&(on="left"),(0,Ue.Z)({fixed:on},Lt)})}function Mt(ke,Re){var Dt=ke.prefixCls,Lt=ke.columns,on=ke.children,hn=ke.expandable,_n=ke.expandedKeys,Bn=ke.columnTitle,Zn=ke.getRowKey,Ln=ke.onTriggerExpand,wr=ke.expandIcon,lr=ke.rowExpandable,nr=ke.expandIconColumnIndex,Xn=ke.direction,Kn=ke.expandRowByClick,ia=ke.columnWidth,Tr=ke.fixed,da=ke.scrollWidth,Ea=ke.clientWidth,Jr=y.useMemo(function(){var qa=Lt||An(on)||[];return Rn(qa.slice())},[Lt,on]),Oa=y.useMemo(function(){if(hn){var qa=Jr.slice();if(!qa.includes(ve)){var ti=nr||0;ti>=0&&(ti||Tr==="left"||!Tr)&&qa.splice(ti,0,ve),Tr==="right"&&qa.splice(Jr.length,0,ve)}var Ra=qa.indexOf(ve);qa=qa.filter(function(wi,_a){return wi!==ve||_a===Ra});var Ca=Jr[Ra],Ja;Tr?Ja=Tr:Ja=Ca?Ca.fixed:null;var ni=(0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({},qt,{className:"".concat(Dt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",Bn),"fixed",Ja),"className","".concat(Dt,"-row-expand-icon-cell")),"width",ia),"render",function(_a,lo,so){var pl=Zn(lo,so),ul=_n.has(pl),el=lr?lr(lo):!0,ol=wr({prefixCls:Dt,expanded:ul,expandable:el,record:lo,onExpand:Ln});return Kn?y.createElement("span",{onClick:function(mo){return mo.stopPropagation()}},ol):ol});return qa.map(function(wi){return wi===ve?ni:wi})}return Jr.filter(function(wi){return wi!==ve})},[hn,Jr,Zn,_n,wr,Xn]),La=y.useMemo(function(){var qa=Oa;return Re&&(qa=Re(qa)),qa.length||(qa=[{render:function(){return null}}]),qa},[Re,Oa,Xn]),Qa=y.useMemo(function(){return Xn==="rtl"?vr(dr(La)):dr(La)},[La,Xn,da]),Ua=y.useMemo(function(){for(var qa=-1,ti=Qa.length-1;ti>=0;ti-=1){var Ra=Qa[ti].fixed;if(Ra==="left"||Ra===!0){qa=ti;break}}if(qa>=0)for(var Ca=0;Ca<=qa;Ca+=1){var Ja=Qa[Ca].fixed;if(Ja!=="left"&&Ja!==!0)return!0}var ni=Qa.findIndex(function(lo){var so=lo.fixed;return so==="right"});if(ni>=0)for(var wi=ni;wi<Qa.length;wi+=1){var _a=Qa[wi].fixed;if(_a!=="right")return!0}return!1},[Qa]),eo=mr(Qa,da,Ea),Si=(0,Le.Z)(eo,2),gi=Si[0],ji=Si[1];return[La,gi,ji,Ua]}var Kt=Mt;function ft(ke,Re,Dt){var Lt=Tn(ke),on=Lt.expandIcon,hn=Lt.expandedRowKeys,_n=Lt.defaultExpandedRowKeys,Bn=Lt.defaultExpandAllRows,Zn=Lt.expandedRowRender,Ln=Lt.onExpand,wr=Lt.onExpandedRowsChange,lr=Lt.childrenColumnName,nr=on||kt,Xn=lr||"children",Kn=y.useMemo(function(){return Zn?"row":ke.expandable&&ke.internalHooks===ce&&ke.expandable.__PARENT_RENDER_ICON__||Re.some(function(La){return La&&(0,ot.Z)(La)==="object"&&La[Xn]})?"nest":!1},[!!Zn,Re]),ia=y.useState(function(){return _n||(Bn?Gt(Re,Dt,Xn):[])}),Tr=(0,Le.Z)(ia,2),da=Tr[0],Ea=Tr[1],Jr=y.useMemo(function(){return new Set(hn||da||[])},[hn,da]),Oa=y.useCallback(function(La){var Qa=Dt(La,Re.indexOf(La)),Ua,eo=Jr.has(Qa);eo?(Jr.delete(Qa),Ua=(0,Zt.Z)(Jr)):Ua=[].concat((0,Zt.Z)(Jr),[Qa]),Ea(Ua),Ln&&Ln(!eo,La),wr&&wr(Ua)},[Dt,Jr,Re,Ln,wr]);return[Lt,Kn,Jr,nr,Xn,Oa]}function Rt(ke,Re,Dt){var Lt=ke.map(function(on,hn){return Ht(hn,hn,ke,Re,Dt)});return(0,de.Z)(function(){return Lt},[Lt],function(on,hn){return!(0,Se.Z)(on,hn)})}function it(ke){var Re=(0,y.useRef)(ke),Dt=(0,y.useState)({}),Lt=(0,Le.Z)(Dt,2),on=Lt[1],hn=(0,y.useRef)(null),_n=(0,y.useRef)([]);function Bn(Zn){_n.current.push(Zn);var Ln=Promise.resolve();hn.current=Ln,Ln.then(function(){if(hn.current===Ln){var wr=_n.current,lr=Re.current;_n.current=[],wr.forEach(function(nr){Re.current=nr(Re.current)}),hn.current=null,lr!==Re.current&&on({})}})}return(0,y.useEffect)(function(){return function(){hn.current=null}},[]),[Re.current,Bn]}function ht(ke){var Re=(0,y.useRef)(ke||null),Dt=(0,y.useRef)();function Lt(){window.clearTimeout(Dt.current)}function on(_n){Re.current=_n,Lt(),Dt.current=window.setTimeout(function(){Re.current=null,Dt.current=void 0},100)}function hn(){return Re.current}return(0,y.useEffect)(function(){return Lt},[]),[on,hn]}function fn(){var ke=y.useState(-1),Re=(0,Le.Z)(ke,2),Dt=Re[0],Lt=Re[1],on=y.useState(-1),hn=(0,Le.Z)(on,2),_n=hn[0],Bn=hn[1],Zn=y.useCallback(function(Ln,wr){Lt(Ln),Bn(wr)},[]);return[Dt,_n,Zn]}var ar=E(47273),pr=(0,ar.Z)()?window:null;function Ft(ke,Re){var Dt=(0,ot.Z)(ke)==="object"?ke:{},Lt=Dt.offsetHeader,on=Lt===void 0?0:Lt,hn=Dt.offsetSummary,_n=hn===void 0?0:hn,Bn=Dt.offsetScroll,Zn=Bn===void 0?0:Bn,Ln=Dt.getContainer,wr=Ln===void 0?function(){return pr}:Ln,lr=wr()||pr,nr=!!ke;return y.useMemo(function(){return{isSticky:nr,stickyClassName:nr?"".concat(Re,"-sticky-holder"):"",offsetHeader:on,offsetSummary:_n,offsetScroll:Zn,container:lr}},[nr,Zn,on,_n,Re,lr])}function Tt(ke,Re,Dt){var Lt=(0,y.useMemo)(function(){var on=Re.length,hn=function(Ln,wr,lr){for(var nr=[],Xn=0,Kn=Ln;Kn!==wr;Kn+=lr)nr.push(Xn),Re[Kn].fixed&&(Xn+=ke[Kn]||0);return nr},_n=hn(0,on,1),Bn=hn(on-1,-1,-1).reverse();return Dt==="rtl"?{left:Bn,right:_n}:{left:_n,right:Bn}},[ke,Re,Dt]);return Lt}var _t=Tt;function Ut(ke){var Re=ke.className,Dt=ke.children;return y.createElement("div",{className:Re},Dt)}var Fn=Ut,zn=E(8224),Un=E(16089),jn=E(76846);function gr(ke){var Re=(0,jn.bn)(ke),Dt=Re.getBoundingClientRect(),Lt=document.documentElement;return{left:Dt.left+(window.pageXOffset||Lt.scrollLeft)-(Lt.clientLeft||document.body.clientLeft||0),top:Dt.top+(window.pageYOffset||Lt.scrollTop)-(Lt.clientTop||document.body.clientTop||0)}}var Ir=function(Re,Dt){var Lt,on,hn=Re.scrollBodyRef,_n=Re.onScroll,Bn=Re.offsetScroll,Zn=Re.container,Ln=Re.direction,wr=fe(He,"prefixCls"),lr=((Lt=hn.current)===null||Lt===void 0?void 0:Lt.scrollWidth)||0,nr=((on=hn.current)===null||on===void 0?void 0:on.clientWidth)||0,Xn=lr&&nr*(nr/lr),Kn=y.useRef(),ia=it({scrollLeft:0,isHiddenScrollBar:!0}),Tr=(0,Le.Z)(ia,2),da=Tr[0],Ea=Tr[1],Jr=y.useRef({delta:0,x:0}),Oa=y.useState(!1),La=(0,Le.Z)(Oa,2),Qa=La[0],Ua=La[1],eo=y.useRef(null);y.useEffect(function(){return function(){Un.Z.cancel(eo.current)}},[]);var Si=function(){Ua(!1)},gi=function(Ca){Ca.persist(),Jr.current.delta=Ca.pageX-da.scrollLeft,Jr.current.x=0,Ua(!0),Ca.preventDefault()},ji=function(Ca){var Ja,ni=Ca||((Ja=window)===null||Ja===void 0?void 0:Ja.event),wi=ni.buttons;if(!Qa||wi===0){Qa&&Ua(!1);return}var _a=Jr.current.x+Ca.pageX-Jr.current.x-Jr.current.delta,lo=Ln==="rtl";_a=Math.max(lo?Xn-nr:0,Math.min(lo?0:nr-Xn,_a));var so=!lo||Math.abs(_a)+Math.abs(Xn)<nr;so&&(_n({scrollLeft:_a/nr*(lr+2)}),Jr.current.x=Ca.pageX)},qa=function(){Un.Z.cancel(eo.current),eo.current=(0,Un.Z)(function(){if(hn.current){var Ca=gr(hn.current).top,Ja=Ca+hn.current.offsetHeight,ni=Zn===window?document.documentElement.scrollTop+window.innerHeight:gr(Zn).top+Zn.clientHeight;Ja-(0,$t.Z)()<=ni||Ca>=ni-Bn?Ea(function(wi){return(0,Ue.Z)((0,Ue.Z)({},wi),{},{isHiddenScrollBar:!0})}):Ea(function(wi){return(0,Ue.Z)((0,Ue.Z)({},wi),{},{isHiddenScrollBar:!1})})}})},ti=function(Ca){Ea(function(Ja){return(0,Ue.Z)((0,Ue.Z)({},Ja),{},{scrollLeft:Ca/lr*nr||0})})};return y.useImperativeHandle(Dt,function(){return{setScrollLeft:ti,checkScrollBarVisible:qa}}),y.useEffect(function(){var Ra=(0,zn.Z)(document.body,"mouseup",Si,!1),Ca=(0,zn.Z)(document.body,"mousemove",ji,!1);return qa(),function(){Ra.remove(),Ca.remove()}},[Xn,Qa]),y.useEffect(function(){if(hn.current){for(var Ra=[],Ca=(0,jn.bn)(hn.current);Ca;)Ra.push(Ca),Ca=Ca.parentElement;return Ra.forEach(function(Ja){return Ja.addEventListener("scroll",qa,!1)}),window.addEventListener("resize",qa,!1),window.addEventListener("scroll",qa,!1),Zn.addEventListener("scroll",qa,!1),function(){Ra.forEach(function(Ja){return Ja.removeEventListener("scroll",qa)}),window.removeEventListener("resize",qa),window.removeEventListener("scroll",qa),Zn.removeEventListener("scroll",qa)}}},[Zn]),y.useEffect(function(){da.isHiddenScrollBar||Ea(function(Ra){var Ca=hn.current;return Ca?(0,Ue.Z)((0,Ue.Z)({},Ra),{},{scrollLeft:Ca.scrollLeft/Ca.scrollWidth*Ca.clientWidth}):Ra})},[da.isHiddenScrollBar]),lr<=nr||!Xn||da.isHiddenScrollBar?null:y.createElement("div",{style:{height:(0,$t.Z)(),width:nr,bottom:Bn},className:"".concat(wr,"-sticky-scroll")},y.createElement("div",{onMouseDown:gi,ref:Kn,className:Ae()("".concat(wr,"-sticky-scroll-bar"),(0,Ee.Z)({},"".concat(wr,"-sticky-scroll-bar-active"),Qa)),style:{width:"".concat(Xn,"px"),transform:"translate3d(".concat(da.scrollLeft,"px, 0, 0)")}}))},Mr=y.forwardRef(Ir);function Zr(ke){return null}var Er=Zr;function Rr(ke){return null}var Xr=Rr,oa="rc-table",ta=[],xa={};function Fa(){return"No Data"}function Gr(ke,Re){var Dt=(0,Ue.Z)({rowKey:"key",prefixCls:oa,emptyText:Fa},ke),Lt=Dt.prefixCls,on=Dt.className,hn=Dt.rowClassName,_n=Dt.style,Bn=Dt.data,Zn=Dt.rowKey,Ln=Dt.scroll,wr=Dt.tableLayout,lr=Dt.direction,nr=Dt.title,Xn=Dt.footer,Kn=Dt.summary,ia=Dt.caption,Tr=Dt.id,da=Dt.showHeader,Ea=Dt.components,Jr=Dt.emptyText,Oa=Dt.onRow,La=Dt.onHeaderRow,Qa=Dt.onScroll,Ua=Dt.internalHooks,eo=Dt.transformColumns,Si=Dt.internalRefs,gi=Dt.tailor,ji=Dt.getContainerWidth,qa=Dt.sticky,ti=Dt.rowHoverable,Ra=ti===void 0?!0:ti,Ca=Bn||ta,Ja=!!Ca.length,ni=Ua===ce,wi=y.useCallback(function(Ao,_o){return(0,wt.Z)(Ea,Ao)||_o},[Ea]),_a=y.useMemo(function(){return typeof Zn=="function"?Zn:function(Ao){var _o=Ao&&Ao[Zn];return _o}},[Zn]),lo=wi(["body"]),so=fn(),pl=(0,Le.Z)(so,3),ul=pl[0],el=pl[1],ol=pl[2],El=ft(Dt,Ca,_a),mo=(0,Le.Z)(El,6),yo=mo[0],ll=mo[1],cl=mo[2],mi=mo[3],qi=mo[4],li=mo[5],Ga=Ln==null?void 0:Ln.x,po=y.useState(0),Mo=(0,Le.Z)(po,2),sl=Mo[0],Co=Mo[1],hl=Kt((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},Dt),yo),{},{expandable:!!yo.expandedRowRender,columnTitle:yo.columnTitle,expandedKeys:cl,getRowKey:_a,onTriggerExpand:li,expandIcon:mi,expandIconColumnIndex:yo.expandIconColumnIndex,direction:lr,scrollWidth:ni&&gi&&typeof Ga=="number"?Ga:null,clientWidth:sl}),ni?eo:null),Bl=(0,Le.Z)(hl,4),Bi=Bl[0],Ri=Bl[1],Do=Bl[2],zo=Bl[3],$o=Do!=null?Do:Ga,_l=y.useMemo(function(){return{columns:Bi,flattenColumns:Ri}},[Bi,Ri]),Cl=y.useRef(),Yl=y.useRef(),Uo=y.useRef(),Po=y.useRef();y.useImperativeHandle(Re,function(){return{nativeElement:Cl.current,scrollTo:function(_o){var Ql;if(Uo.current instanceof HTMLElement){var ds=_o.index,Jl=_o.top,Ts=_o.key;if(jt(Jl)){var Ks;(Ks=Uo.current)===null||Ks===void 0||Ks.scrollTo({top:Jl})}else{var Ms,iu=Ts!=null?Ts:_a(Ca[ds]);(Ms=Uo.current.querySelector('[data-row-key="'.concat(iu,'"]')))===null||Ms===void 0||Ms.scrollIntoView()}}else(Ql=Uo.current)!==null&&Ql!==void 0&&Ql.scrollTo&&Uo.current.scrollTo(_o)}}});var Xo=y.useRef(),tl=y.useState(!1),Dl=(0,Le.Z)(tl,2),vl=Dl[0],Oo=Dl[1],nl=y.useState(!1),Lo=(0,Le.Z)(nl,2),Kl=Lo[0],gl=Lo[1],ts=y.useState(new Map),os=(0,Le.Z)(ts,2),Bs=os[0],rl=os[1],fu=vt(Ri),ls=fu.map(function(Ao){return Bs.get(Ao)}),bs=y.useMemo(function(){return ls},[ls.join("_")]),Es=_t(bs,Ri,lr),Wl=Ln&&zt(Ln.y),al=Ln&&zt($o)||!!yo.fixed,ss=al&&Ri.some(function(Ao){var _o=Ao.fixed;return _o}),Hs=y.useRef(),Os=Ft(qa,Lt),Ns=Os.isSticky,nu=Os.offsetHeader,mu=Os.offsetSummary,Su=Os.offsetScroll,wu=Os.stickyClassName,Zu=Os.container,io=y.useMemo(function(){return Kn==null?void 0:Kn(Ca)},[Kn,Ca]),wo=(Wl||Ns)&&y.isValidElement(io)&&io.type===Ze&&io.props.fixed,fl,xl,zl;Wl&&(xl={overflowY:Ja?"scroll":"auto",maxHeight:Ln.y}),al&&(fl={overflowX:"auto"},Wl||(xl={overflowY:"hidden"}),zl={width:$o===!0?"auto":$o,minWidth:"100%"});var Sl=y.useCallback(function(Ao,_o){rl(function(Ql){if(Ql.get(Ao)!==_o){var ds=new Map(Ql);return ds.set(Ao,_o),ds}return Ql})},[]),Ds=ht(null),Ul=(0,Le.Z)(Ds,2),ks=Ul[0],Bu=Ul[1];function ru(Ao,_o){_o&&(typeof _o=="function"?_o(Ao):_o.scrollLeft!==Ao&&(_o.scrollLeft=Ao,_o.scrollLeft!==Ao&&setTimeout(function(){_o.scrollLeft=Ao},0)))}var Ys=(0,xe.Z)(function(Ao){var _o=Ao.currentTarget,Ql=Ao.scrollLeft,ds=lr==="rtl",Jl=typeof Ql=="number"?Ql:_o.scrollLeft,Ts=_o||xa;if(!Bu()||Bu()===Ts){var Ks;ks(Ts),ru(Jl,Yl.current),ru(Jl,Uo.current),ru(Jl,Xo.current),ru(Jl,(Ks=Hs.current)===null||Ks===void 0?void 0:Ks.setScrollLeft)}var Ms=_o||Yl.current;if(Ms){var iu=ni&&gi&&typeof $o=="number"?$o:Ms.scrollWidth,Yu=Ms.clientWidth;if(iu===Yu){Oo(!1),gl(!1);return}ds?(Oo(-Jl<iu-Yu),gl(-Jl>0)):(Oo(Jl>0),gl(Jl<iu-Yu))}}),pu=(0,xe.Z)(function(Ao){Ys(Ao),Qa==null||Qa(Ao)}),Qs=function(){if(al&&Uo.current){var _o;Ys({currentTarget:(0,jn.bn)(Uo.current),scrollLeft:(_o=Uo.current)===null||_o===void 0?void 0:_o.scrollLeft})}else Oo(!1),gl(!1)},ju=function(_o){var Ql,ds=_o.width;(Ql=Hs.current)===null||Ql===void 0||Ql.checkScrollBarVisible();var Jl=Cl.current?Cl.current.offsetWidth:ds;ni&&ji&&Cl.current&&(Jl=ji(Cl.current,Jl)||Jl),Jl!==sl&&(Qs(),Co(Jl))},Ls=y.useRef(!1);y.useEffect(function(){Ls.current&&Qs()},[al,Bn,Bi.length]),y.useEffect(function(){Ls.current=!0},[]);var $u=y.useState(0),tc=(0,Le.Z)($u,2),Vs=tc[0],Wu=tc[1],zu=y.useState(!0),Hu=(0,Le.Z)(zu,2),hu=Hu[0],sc=Hu[1];(0,ge.Z)(function(){(!gi||!ni)&&(Uo.current instanceof Element?Wu((0,$t.o)(Uo.current).width):Wu((0,$t.o)(Po.current).width)),sc((0,At.G)("position","sticky"))},[]),y.useEffect(function(){ni&&Si&&(Si.body.current=Uo.current)});var uc=y.useCallback(function(Ao){return y.createElement(y.Fragment,null,y.createElement(er,Ao),wo==="top"&&y.createElement(at,Ao,io))},[wo,io]),vu=y.useCallback(function(Ao){return y.createElement(at,Ao,io)},[io]),Vu=wi(["table"],"table"),gu=y.useMemo(function(){return wr||(ss?$o==="max-content"?"auto":"fixed":Wl||Ns||Ri.some(function(Ao){var _o=Ao.ellipsis;return _o})?"fixed":"auto")},[Wl,ss,Ri,wr,Ns]),Du,yu={colWidths:bs,columCount:Ri.length,stickyOffsets:Es,onHeaderRow:La,fixHeader:Wl,scroll:Ln},Ku=y.useMemo(function(){return Ja?null:typeof Jr=="function"?Jr():Jr},[Ja,Jr]),nc=y.createElement(xt,{data:Ca,measureColumnWidth:Wl||al||Ns}),Uu=y.createElement(Hn,{colWidths:Ri.map(function(Ao){var _o=Ao.width;return _o}),columns:Ri}),Au=ia!=null?y.createElement("caption",{className:"".concat(Lt,"-caption")},ia):void 0,cc=(0,Ye.Z)(Dt,{data:!0}),Fu=(0,Ye.Z)(Dt,{aria:!0});if(Wl||Ns){var Js;typeof lo=="function"?(Js=lo(Ca,{scrollbarSize:Vs,ref:Uo,onScroll:Ys}),yu.colWidths=Ri.map(function(Ao,_o){var Ql=Ao.width,ds=_o===Ri.length-1?Ql-Vs:Ql;return typeof ds=="number"&&!Number.isNaN(ds)?ds:0})):Js=y.createElement("div",{style:(0,Ue.Z)((0,Ue.Z)({},fl),xl),onScroll:pu,ref:Uo,className:Ae()("".concat(Lt,"-body"))},y.createElement(Vu,(0,$e.Z)({style:(0,Ue.Z)((0,Ue.Z)({},zl),{},{tableLayout:gu})},Fu),Au,Uu,nc,!wo&&io&&y.createElement(at,{stickyOffsets:Es,flattenColumns:Ri},io)));var au=(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({noData:!Ca.length,maxContentScroll:al&&$o==="max-content"},yu),_l),{},{direction:lr,stickyClassName:wu,onScroll:Ys});Du=y.createElement(y.Fragment,null,da!==!1&&y.createElement(rn,(0,$e.Z)({},au,{stickyTopOffset:nu,className:"".concat(Lt,"-header"),ref:Yl}),uc),Js,wo&&wo!=="top"&&y.createElement(rn,(0,$e.Z)({},au,{stickyBottomOffset:mu,className:"".concat(Lt,"-summary"),ref:Xo}),vu),Ns&&Uo.current&&Uo.current instanceof Element&&y.createElement(Mr,{ref:Hs,offsetScroll:Su,scrollBodyRef:Uo,onScroll:Ys,container:Zu,direction:lr}))}else Du=y.createElement("div",{style:(0,Ue.Z)((0,Ue.Z)({},fl),xl),className:Ae()("".concat(Lt,"-content")),onScroll:Ys,ref:Uo},y.createElement(Vu,(0,$e.Z)({style:(0,Ue.Z)((0,Ue.Z)({},zl),{},{tableLayout:gu})},Fu),Au,Uu,da!==!1&&y.createElement(er,(0,$e.Z)({},yu,_l)),nc,io&&y.createElement(at,{stickyOffsets:Es,flattenColumns:Ri},io)));var Gu=y.createElement("div",(0,$e.Z)({className:Ae()(Lt,on,(0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({},"".concat(Lt,"-rtl"),lr==="rtl"),"".concat(Lt,"-ping-left"),vl),"".concat(Lt,"-ping-right"),Kl),"".concat(Lt,"-layout-fixed"),wr==="fixed"),"".concat(Lt,"-fixed-header"),Wl),"".concat(Lt,"-fixed-column"),ss),"".concat(Lt,"-fixed-column-gapped"),ss&&zo),"".concat(Lt,"-scroll-horizontal"),al),"".concat(Lt,"-has-fix-left"),Ri[0]&&Ri[0].fixed),"".concat(Lt,"-has-fix-right"),Ri[Ri.length-1]&&Ri[Ri.length-1].fixed==="right")),style:_n,id:Tr,ref:Cl},cc),nr&&y.createElement(Fn,{className:"".concat(Lt,"-title")},nr(Ca)),y.createElement("div",{ref:Po,className:"".concat(Lt,"-container")},Du),Xn&&y.createElement(Fn,{className:"".concat(Lt,"-footer")},Xn(Ca)));al&&(Gu=y.createElement(bt.Z,{onResize:ju},Gu));var Xu=Rt(Ri,Es,lr),Iu=y.useMemo(function(){return{scrollX:$o,prefixCls:Lt,getComponent:wi,scrollbarSize:Vs,direction:lr,fixedInfoList:Xu,isSticky:Ns,supportSticky:hu,componentWidth:sl,fixHeader:Wl,fixColumn:ss,horizonScroll:al,tableLayout:gu,rowClassName:hn,expandedRowClassName:yo.expandedRowClassName,expandIcon:mi,expandableType:ll,expandRowByClick:yo.expandRowByClick,expandedRowRender:yo.expandedRowRender,onTriggerExpand:li,expandIconColumnIndex:yo.expandIconColumnIndex,indentSize:yo.indentSize,allColumnsFixedLeft:Ri.every(function(Ao){return Ao.fixed==="left"}),emptyNode:Ku,columns:Bi,flattenColumns:Ri,onColumnResize:Sl,hoverStartRow:ul,hoverEndRow:el,onHover:ol,rowExpandable:yo.rowExpandable,onRow:Oa,getRowKey:_a,expandedKeys:cl,childrenColumnName:qi,rowHoverable:Ra}},[$o,Lt,wi,Vs,lr,Xu,Ns,hu,sl,Wl,ss,al,gu,hn,yo.expandedRowClassName,mi,ll,yo.expandRowByClick,yo.expandedRowRender,li,yo.expandIconColumnIndex,yo.indentSize,Ku,Bi,Ri,Sl,ul,el,ol,yo.rowExpandable,Oa,_a,cl,qi,Ra]);return y.createElement(He.Provider,{value:Iu},Gu)}var ya=y.forwardRef(Gr);function Xa(ke){return tt(ya,ke)}var Ia=Xa();Ia.EXPAND_COLUMN=ve,Ia.INTERNAL_HOOKS=ce,Ia.Column=Er,Ia.ColumnGroup=Xr,Ia.Summary=qe;var pa=Ia,kr=E(48911),Za=Be(null),Sa=Be(null);function la(ke,Re,Dt){var Lt=Re||1;return Dt[ke+Lt]-(Dt[ke]||0)}function Kr(ke){var Re=ke.rowInfo,Dt=ke.column,Lt=ke.colIndex,on=ke.indent,hn=ke.index,_n=ke.component,Bn=ke.renderIndex,Zn=ke.record,Ln=ke.style,wr=ke.className,lr=ke.inverse,nr=ke.getHeight,Xn=Dt.render,Kn=Dt.dataIndex,ia=Dt.className,Tr=Dt.width,da=fe(Sa,["columnsOffset"]),Ea=da.columnsOffset,Jr=Je(Re,Dt,Lt,on,hn),Oa=Jr.key,La=Jr.fixedInfo,Qa=Jr.appendCellNode,Ua=Jr.additionalCellProps,eo=Ua.style,Si=Ua.colSpan,gi=Si===void 0?1:Si,ji=Ua.rowSpan,qa=ji===void 0?1:ji,ti=Lt-1,Ra=la(ti,gi,Ea),Ca=gi>1?Tr-Ra:0,Ja=(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},eo),Ln),{},{flex:"0 0 ".concat(Ra,"px"),width:"".concat(Ra,"px"),marginRight:Ca,pointerEvents:"auto"}),ni=y.useMemo(function(){return lr?qa<=1:gi===0||qa===0||qa>1},[qa,gi,lr]);ni?Ja.visibility="hidden":lr&&(Ja.height=nr==null?void 0:nr(qa));var wi=ni?function(){return null}:Xn,_a={};return(qa===0||gi===0)&&(_a.rowSpan=1,_a.colSpan=1),y.createElement(dn,(0,$e.Z)({className:Ae()(ia,wr),ellipsis:Dt.ellipsis,align:Dt.align,scope:Dt.rowScope,component:_n,prefixCls:Re.prefixCls,key:Oa,record:Zn,index:hn,renderIndex:Bn,dataIndex:Kn,render:wi,shouldCellUpdate:Dt.shouldCellUpdate},La,{appendNode:Qa,additionalProps:(0,Ue.Z)((0,Ue.Z)({},Ua),{},{style:Ja},_a)}))}var Ya=Kr,_i=["data","index","className","rowKey","style","extra","getHeight"],$i=y.forwardRef(function(ke,Re){var Dt=ke.data,Lt=ke.index,on=ke.className,hn=ke.rowKey,_n=ke.style,Bn=ke.extra,Zn=ke.getHeight,Ln=(0,oe.Z)(ke,_i),wr=Dt.record,lr=Dt.indent,nr=Dt.index,Xn=fe(He,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Kn=Xn.scrollX,ia=Xn.flattenColumns,Tr=Xn.prefixCls,da=Xn.fixColumn,Ea=Xn.componentWidth,Jr=fe(Za,["getComponent"]),Oa=Jr.getComponent,La=sn(wr,hn,Lt,lr),Qa=Oa(["body","row"],"div"),Ua=Oa(["body","cell"],"div"),eo=La.rowSupportExpand,Si=La.expanded,gi=La.rowProps,ji=La.expandedRowRender,qa=La.expandedRowClassName,ti;if(eo&&Si){var Ra=ji(wr,Lt,lr+1,Si),Ca=Pt(qa,wr,Lt,lr),Ja={};da&&(Ja={style:(0,Ee.Z)({},"--virtual-width","".concat(Ea,"px"))});var ni="".concat(Tr,"-expanded-row-cell");ti=y.createElement(Qa,{className:Ae()("".concat(Tr,"-expanded-row"),"".concat(Tr,"-expanded-row-level-").concat(lr+1),Ca)},y.createElement(dn,{component:Ua,prefixCls:Tr,className:Ae()(ni,(0,Ee.Z)({},"".concat(ni,"-fixed"),da)),additionalProps:Ja},Ra))}var wi=(0,Ue.Z)((0,Ue.Z)({},_n),{},{width:Kn});Bn&&(wi.position="absolute",wi.pointerEvents="none");var _a=y.createElement(Qa,(0,$e.Z)({},gi,Ln,{"data-row-key":hn,ref:eo?null:Re,className:Ae()(on,"".concat(Tr,"-row"),gi==null?void 0:gi.className,(0,Ee.Z)({},"".concat(Tr,"-row-extra"),Bn)),style:(0,Ue.Z)((0,Ue.Z)({},wi),gi==null?void 0:gi.style)}),ia.map(function(lo,so){return y.createElement(Ya,{key:so,component:Ua,rowInfo:La,column:lo,colIndex:so,indent:lr,index:Lt,renderIndex:nr,record:wr,inverse:Bn,getHeight:Zn})}));return eo?y.createElement("div",{ref:Re},_a,ti):_a}),za=Et($i),Di=za,pi=y.forwardRef(function(ke,Re){var Dt=ke.data,Lt=ke.onScroll,on=fe(He,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),hn=on.flattenColumns,_n=on.onColumnResize,Bn=on.getRowKey,Zn=on.expandedKeys,Ln=on.prefixCls,wr=on.childrenColumnName,lr=on.scrollX,nr=on.direction,Xn=fe(Za),Kn=Xn.sticky,ia=Xn.scrollY,Tr=Xn.listItemHeight,da=Xn.getComponent,Ea=Xn.onScroll,Jr=y.useRef(),Oa=Vt(Dt,wr,Zn,Bn),La=y.useMemo(function(){var ti=0;return hn.map(function(Ra){var Ca=Ra.width,Ja=Ra.key;return ti+=Ca,[Ja,Ca,ti]})},[hn]),Qa=y.useMemo(function(){return La.map(function(ti){return ti[2]})},[La]);y.useEffect(function(){La.forEach(function(ti){var Ra=(0,Le.Z)(ti,2),Ca=Ra[0],Ja=Ra[1];_n(Ca,Ja)})},[La]),y.useImperativeHandle(Re,function(){var ti,Ra={scrollTo:function(Ja){var ni;(ni=Jr.current)===null||ni===void 0||ni.scrollTo(Ja)},nativeElement:(ti=Jr.current)===null||ti===void 0?void 0:ti.nativeElement};return Object.defineProperty(Ra,"scrollLeft",{get:function(){var Ja;return((Ja=Jr.current)===null||Ja===void 0?void 0:Ja.getScrollInfo().x)||0},set:function(Ja){var ni;(ni=Jr.current)===null||ni===void 0||ni.scrollTo({left:Ja})}}),Ra});var Ua=function(Ra,Ca){var Ja,ni=(Ja=Oa[Ca])===null||Ja===void 0?void 0:Ja.record,wi=Ra.onCell;if(wi){var _a,lo=wi(ni,Ca);return(_a=lo==null?void 0:lo.rowSpan)!==null&&_a!==void 0?_a:1}return 1},eo=function(Ra){var Ca=Ra.start,Ja=Ra.end,ni=Ra.getSize,wi=Ra.offsetY;if(Ja<0)return null;for(var _a=hn.filter(function(mi){return Ua(mi,Ca)===0}),lo=Ca,so=function(qi){if(_a=_a.filter(function(li){return Ua(li,qi)===0}),!_a.length)return lo=qi,1},pl=Ca;pl>=0&&!so(pl);pl-=1);for(var ul=hn.filter(function(mi){return Ua(mi,Ja)!==1}),el=Ja,ol=function(qi){if(ul=ul.filter(function(li){return Ua(li,qi)!==1}),!ul.length)return el=Math.max(qi-1,Ja),1},El=Ja;El<Oa.length&&!ol(El);El+=1);for(var mo=[],yo=function(qi){var li=Oa[qi];if(!li)return 1;hn.some(function(Ga){return Ua(Ga,qi)>1})&&mo.push(qi)},ll=lo;ll<=el;ll+=1)yo(ll);var cl=mo.map(function(mi){var qi=Oa[mi],li=Bn(qi.record,mi),Ga=function(sl){var Co=mi+sl-1,hl=Bn(Oa[Co].record,Co),Bl=ni(li,hl);return Bl.bottom-Bl.top},po=ni(li);return y.createElement(Di,{key:mi,data:qi,rowKey:li,index:mi,style:{top:-wi+po.top},extra:!0,getHeight:Ga})});return cl},Si=y.useMemo(function(){return{columnsOffset:Qa}},[Qa]),gi="".concat(Ln,"-tbody"),ji=da(["body","wrapper"]),qa={};return Kn&&(qa.position="sticky",qa.bottom=0,(0,ot.Z)(Kn)==="object"&&Kn.offsetScroll&&(qa.bottom=Kn.offsetScroll)),y.createElement(Sa.Provider,{value:Si},y.createElement(kr.Z,{fullHeight:!1,ref:Jr,prefixCls:"".concat(gi,"-virtual"),styles:{horizontalScrollBar:qa},className:gi,height:ia,itemHeight:Tr||24,data:Oa,itemKey:function(Ra){return Bn(Ra.record)},component:ji,scrollWidth:lr,direction:nr,onVirtualScroll:function(Ra){var Ca,Ja=Ra.x;Lt({currentTarget:(Ca=Jr.current)===null||Ca===void 0?void 0:Ca.nativeElement,scrollLeft:Ja})},onScroll:Ea,extraRender:eo},function(ti,Ra,Ca){var Ja=Bn(ti.record,Ra);return y.createElement(Di,{data:ti,rowKey:Ja,index:Ra,style:Ca.style})}))}),Wi=Et(pi),Ci=Wi,ei=function(Re,Dt){var Lt=Dt.ref,on=Dt.onScroll;return y.createElement(Ci,{ref:Lt,data:Re,onScroll:on})};function Pr(ke,Re){var Dt=ke.data,Lt=ke.columns,on=ke.scroll,hn=ke.sticky,_n=ke.prefixCls,Bn=_n===void 0?oa:_n,Zn=ke.className,Ln=ke.listItemHeight,wr=ke.components,lr=ke.onScroll,nr=on||{},Xn=nr.x,Kn=nr.y;typeof Xn!="number"&&(Xn=1),typeof Kn!="number"&&(Kn=500);var ia=(0,yt.zX)(function(Ea,Jr){return(0,wt.Z)(wr,Ea)||Jr}),Tr=(0,yt.zX)(lr),da=y.useMemo(function(){return{sticky:hn,scrollY:Kn,listItemHeight:Ln,getComponent:ia,onScroll:Tr}},[hn,Kn,Ln,ia,Tr]);return y.createElement(Za.Provider,{value:da},y.createElement(pa,(0,$e.Z)({},ke,{className:Ae()(Zn,"".concat(Bn,"-virtual")),scroll:(0,Ue.Z)((0,Ue.Z)({},on),{},{x:Xn}),components:(0,Ue.Z)((0,Ue.Z)({},wr),{},{body:Dt!=null&&Dt.length?ei:void 0}),columns:Lt,internalHooks:ce,tailor:!0,ref:Re})))}var Qn=y.forwardRef(Pr);function Cr(ke){return tt(Qn,ke)}var xr=Cr(),tr=null,sa=ke=>null,Br=ke=>null,$r=E(84105),Qr=E(82661),Ta=E(34643),ja=E(34061),ea=E(18929);function ai(ke){const[Re,Dt]=(0,y.useState)(null);return[(0,y.useCallback)((hn,_n,Bn)=>{const Zn=Re!=null?Re:hn,Ln=Math.min(Zn||0,hn),wr=Math.max(Zn||0,hn),lr=_n.slice(Ln,wr+1).map(Kn=>ke(Kn)),nr=lr.some(Kn=>!Bn.has(Kn)),Xn=[];return lr.forEach(Kn=>{nr?(Bn.has(Kn)||Xn.push(Kn),Bn.add(Kn)):(Bn.delete(Kn),Xn.push(Kn))}),Dt(nr?wr:null),Xn},[Re]),hn=>{Dt(hn)}]}var yi=E(32383),zi=E(62673),Gi=E(75727),Ji=E(47889);const Yi={},co="SELECT_ALL",No="SELECT_INVERT",jo="SELECT_NONE",Wo=[],Da=(ke,Re)=>{let Dt=[];return(Re||[]).forEach(Lt=>{Dt.push(Lt),Lt&&typeof Lt=="object"&&ke in Lt&&(Dt=[].concat((0,Zt.Z)(Dt),(0,Zt.Z)(Da(ke,Lt[ke]))))}),Dt};var ri=(ke,Re)=>{const{preserveSelectedRowKeys:Dt,selectedRowKeys:Lt,defaultSelectedRowKeys:on,getCheckboxProps:hn,onChange:_n,onSelect:Bn,onSelectAll:Zn,onSelectInvert:Ln,onSelectNone:wr,onSelectMultiple:lr,columnWidth:nr,type:Xn,selections:Kn,fixed:ia,renderCell:Tr,hideSelectAll:da,checkStrictly:Ea=!0}=Re||{},{prefixCls:Jr,data:Oa,pageData:La,getRecordByKey:Qa,getRowKey:Ua,expandType:eo,childrenColumnName:Si,locale:gi,getPopupContainer:ji}=ke,qa=(0,yi.ln)("Table"),[ti,Ra]=ai(mi=>mi),[Ca,Ja]=(0,ea.Z)(Lt||on||Wo,{value:Lt}),ni=y.useRef(new Map),wi=(0,y.useCallback)(mi=>{if(Dt){const qi=new Map;mi.forEach(li=>{let Ga=Qa(li);!Ga&&ni.current.has(li)&&(Ga=ni.current.get(li)),qi.set(li,Ga)}),ni.current=qi}},[Qa,Dt]);y.useEffect(()=>{wi(Ca)},[Ca]);const _a=(0,y.useMemo)(()=>Da(Si,La),[Si,La]),{keyEntities:lo}=(0,y.useMemo)(()=>{if(Ea)return{keyEntities:null};let mi=Oa;if(Dt){const qi=new Set(_a.map((Ga,po)=>Ua(Ga,po))),li=Array.from(ni.current).reduce((Ga,po)=>{let[Mo,sl]=po;return qi.has(Mo)?Ga:Ga.concat(sl)},[]);mi=[].concat((0,Zt.Z)(mi),(0,Zt.Z)(li))}return(0,ja.I8)(mi,{externalGetKey:Ua,childrenPropName:Si})},[Oa,Ua,Ea,Si,Dt,_a]),so=(0,y.useMemo)(()=>{const mi=new Map;return _a.forEach((qi,li)=>{const Ga=Ua(qi,li),po=(hn?hn(qi):null)||{};mi.set(Ga,po)}),mi},[_a,Ua,hn]),pl=(0,y.useCallback)(mi=>{const qi=Ua(mi);let li;return so.has(qi)?li=so.get(Ua(mi)):li=hn?hn(mi):void 0,!!(li!=null&&li.disabled)},[so,Ua]),[ul,el]=(0,y.useMemo)(()=>{if(Ea)return[Ca||[],[]];const{checkedKeys:mi,halfCheckedKeys:qi}=(0,Ta.S)(Ca,!0,lo,pl);return[mi||[],qi]},[Ca,Ea,lo,pl]),ol=(0,y.useMemo)(()=>{const mi=Xn==="radio"?ul.slice(0,1):ul;return new Set(mi)},[ul,Xn]),El=(0,y.useMemo)(()=>Xn==="radio"?new Set:new Set(el),[el,Xn]);y.useEffect(()=>{Re||Ja(Wo)},[!!Re]);const mo=(0,y.useCallback)((mi,qi)=>{let li,Ga;wi(mi),Dt?(li=mi,Ga=mi.map(po=>ni.current.get(po))):(li=[],Ga=[],mi.forEach(po=>{const Mo=Qa(po);Mo!==void 0&&(li.push(po),Ga.push(Mo))})),Ja(li),_n==null||_n(li,Ga,{type:qi})},[Ja,Qa,_n,Dt]),yo=(0,y.useCallback)((mi,qi,li,Ga)=>{if(Bn){const po=li.map(Mo=>Qa(Mo));Bn(Qa(mi),qi,po,Ga)}mo(li,"single")},[Bn,Qa,mo]),ll=(0,y.useMemo)(()=>!Kn||da?null:(Kn===!0?[co,No,jo]:Kn).map(qi=>qi===co?{key:"all",text:gi.selectionAll,onSelect(){mo(Oa.map((li,Ga)=>Ua(li,Ga)).filter(li=>{const Ga=so.get(li);return!(Ga!=null&&Ga.disabled)||ol.has(li)}),"all")}}:qi===No?{key:"invert",text:gi.selectInvert,onSelect(){const li=new Set(ol);La.forEach((po,Mo)=>{const sl=Ua(po,Mo),Co=so.get(sl);Co!=null&&Co.disabled||(li.has(sl)?li.delete(sl):li.add(sl))});const Ga=Array.from(li);Ln&&(qa.deprecated(!1,"onSelectInvert","onChange"),Ln(Ga)),mo(Ga,"invert")}}:qi===jo?{key:"none",text:gi.selectNone,onSelect(){wr==null||wr(),mo(Array.from(ol).filter(li=>{const Ga=so.get(li);return Ga==null?void 0:Ga.disabled}),"none")}}:qi).map(qi=>Object.assign(Object.assign({},qi),{onSelect:function(){for(var li,Ga,po=arguments.length,Mo=new Array(po),sl=0;sl<po;sl++)Mo[sl]=arguments[sl];(Ga=qi.onSelect)===null||Ga===void 0||(li=Ga).call.apply(li,[qi].concat(Mo)),Ra(null)}})),[Kn,ol,La,Ua,Ln,mo]);return[(0,y.useCallback)(mi=>{var qi;if(!Re)return mi.filter(Po=>Po!==Yi);let li=(0,Zt.Z)(mi);const Ga=new Set(ol),po=_a.map(Ua).filter(Po=>!so.get(Po).disabled),Mo=po.every(Po=>Ga.has(Po)),sl=po.some(Po=>Ga.has(Po)),Co=()=>{const Po=[];Mo?po.forEach(tl=>{Ga.delete(tl),Po.push(tl)}):po.forEach(tl=>{Ga.has(tl)||(Ga.add(tl),Po.push(tl))});const Xo=Array.from(Ga);Zn==null||Zn(!Mo,Xo.map(tl=>Qa(tl)),Po.map(tl=>Qa(tl))),mo(Xo,"all"),Ra(null)};let hl,Bl;if(Xn!=="radio"){let Po;if(ll){const Oo={getPopupContainer:ji,items:ll.map((nl,Lo)=>{const{key:Kl,text:gl,onSelect:ts}=nl;return{key:Kl!=null?Kl:Lo,onClick:()=>{ts==null||ts(po)},label:gl}})};Po=y.createElement("div",{className:`${Jr}-selection-extra`},y.createElement(Gi.Z,{menu:Oo,getPopupContainer:ji},y.createElement("span",null,y.createElement($r.Z,null))))}const Xo=_a.map((Oo,nl)=>{const Lo=Ua(Oo,nl),Kl=so.get(Lo)||{};return Object.assign({checked:Ga.has(Lo)},Kl)}).filter(Oo=>{let{disabled:nl}=Oo;return nl}),tl=!!Xo.length&&Xo.length===_a.length,Dl=tl&&Xo.every(Oo=>{let{checked:nl}=Oo;return nl}),vl=tl&&Xo.some(Oo=>{let{checked:nl}=Oo;return nl});Bl=y.createElement(zi.default,{checked:tl?Dl:!!_a.length&&Mo,indeterminate:tl?!Dl&&vl:!Mo&&sl,onChange:Co,disabled:_a.length===0||tl,"aria-label":Po?"Custom selection":"Select all",skipGroup:!0}),hl=!da&&y.createElement("div",{className:`${Jr}-selection`},Bl,Po)}let Bi;Xn==="radio"?Bi=(Po,Xo,tl)=>{const Dl=Ua(Xo,tl),vl=Ga.has(Dl),Oo=so.get(Dl);return{node:y.createElement(Ji.ZP,Object.assign({},Oo,{checked:vl,onClick:nl=>{var Lo;nl.stopPropagation(),(Lo=Oo==null?void 0:Oo.onClick)===null||Lo===void 0||Lo.call(Oo,nl)},onChange:nl=>{var Lo;Ga.has(Dl)||yo(Dl,!0,[Dl],nl.nativeEvent),(Lo=Oo==null?void 0:Oo.onChange)===null||Lo===void 0||Lo.call(Oo,nl)}})),checked:vl}}:Bi=(Po,Xo,tl)=>{var Dl;const vl=Ua(Xo,tl),Oo=Ga.has(vl),nl=El.has(vl),Lo=so.get(vl);let Kl;return eo==="nest"?Kl=nl:Kl=(Dl=Lo==null?void 0:Lo.indeterminate)!==null&&Dl!==void 0?Dl:nl,{node:y.createElement(zi.default,Object.assign({},Lo,{indeterminate:Kl,checked:Oo,skipGroup:!0,onClick:gl=>{var ts;gl.stopPropagation(),(ts=Lo==null?void 0:Lo.onClick)===null||ts===void 0||ts.call(Lo,gl)},onChange:gl=>{var ts;const{nativeEvent:os}=gl,{shiftKey:Bs}=os,rl=po.findIndex(ls=>ls===vl),fu=ul.some(ls=>po.includes(ls));if(Bs&&Ea&&fu){const ls=ti(rl,po,Ga),bs=Array.from(Ga);lr==null||lr(!Oo,bs.map(Es=>Qa(Es)),ls.map(Es=>Qa(Es))),mo(bs,"multiple")}else{const ls=ul;if(Ea){const bs=Oo?(0,Qr._5)(ls,vl):(0,Qr.L0)(ls,vl);yo(vl,!Oo,bs,os)}else{const bs=(0,Ta.S)([].concat((0,Zt.Z)(ls),[vl]),!0,lo,pl),{checkedKeys:Es,halfCheckedKeys:Wl}=bs;let al=Es;if(Oo){const ss=new Set(Es);ss.delete(vl),al=(0,Ta.S)(Array.from(ss),{checked:!1,halfCheckedKeys:Wl},lo,pl).checkedKeys}yo(vl,!Oo,al,os)}}Ra(Oo?null:rl),(ts=Lo==null?void 0:Lo.onChange)===null||ts===void 0||ts.call(Lo,gl)}})),checked:Oo}};const Ri=(Po,Xo,tl)=>{const{node:Dl,checked:vl}=Bi(Po,Xo,tl);return Tr?Tr(vl,Xo,tl,Dl):Dl};if(!li.includes(Yi))if(li.findIndex(Po=>{var Xo;return((Xo=Po[qt])===null||Xo===void 0?void 0:Xo.columnType)==="EXPAND_COLUMN"})===0){const[Po,...Xo]=li;li=[Po,Yi].concat((0,Zt.Z)(Xo))}else li=[Yi].concat((0,Zt.Z)(li));const Do=li.indexOf(Yi);li=li.filter((Po,Xo)=>Po!==Yi||Xo===Do);const zo=li[Do-1],$o=li[Do+1];let _l=ia;_l===void 0&&(($o==null?void 0:$o.fixed)!==void 0?_l=$o.fixed:(zo==null?void 0:zo.fixed)!==void 0&&(_l=zo.fixed)),_l&&zo&&((qi=zo[qt])===null||qi===void 0?void 0:qi.columnType)==="EXPAND_COLUMN"&&zo.fixed===void 0&&(zo.fixed=_l);const Cl=Ae()(`${Jr}-selection-col`,{[`${Jr}-selection-col-with-dropdown`]:Kn&&Xn==="checkbox"}),Yl=()=>Re!=null&&Re.columnTitle?typeof Re.columnTitle=="function"?Re.columnTitle(Bl):Re.columnTitle:hl,Uo={fixed:_l,width:nr,className:`${Jr}-selection-column`,title:Yl(),render:Ri,onCell:Re.onCell,[qt]:{className:Cl}};return li.map(Po=>Po===Yi?Uo:Po)},[Ua,_a,Re,ul,ol,El,nr,ll,eo,so,lr,yo,pl]),ol]},So=E(2738);function di(ke,Re){return ke._antProxy=ke._antProxy||{},Object.keys(Re).forEach(Dt=>{if(!(Dt in ke._antProxy)){const Lt=ke[Dt];ke._antProxy[Dt]=Lt,ke[Dt]=Re[Dt]}}),ke}function il(ke,Re){return(0,y.useImperativeHandle)(ke,()=>{const Dt=Re(),{nativeElement:Lt}=Dt;return typeof Proxy!="undefined"?new Proxy(Lt,{get(on,hn){return Dt[hn]?Dt[hn]:Reflect.get(on,hn)}}):di(Lt,Dt)})}var jl=E(83010),Pl=E(48755),Vo=E(38406),Yo=E(83397),no=E(31756),Ol=E(13783),Gl=E(85981),Nl=E(31709),Fo=E(29787),es=E(57700);function as(ke){return Re=>{const{prefixCls:Dt,onExpand:Lt,record:on,expanded:hn,expandable:_n}=Re,Bn=`${Dt}-row-expand-icon`;return y.createElement("button",{type:"button",onClick:Zn=>{Lt(on,Zn),Zn.stopPropagation()},className:Ae()(Bn,{[`${Bn}-spaced`]:!_n,[`${Bn}-expanded`]:_n&&hn,[`${Bn}-collapsed`]:_n&&!hn}),"aria-label":hn?ke.collapse:ke.expand,"aria-expanded":hn})}}var Ni=as;function Qi(ke){return(Dt,Lt)=>{const on=Dt.querySelector(`.${ke}-container`);let hn=Lt;if(on){const _n=getComputedStyle(on),Bn=parseInt(_n.borderLeftWidth,10),Zn=parseInt(_n.borderRightWidth,10);hn=Lt-Bn-Zn}return hn}}const Ii=(ke,Re)=>"key"in ke&&ke.key!==void 0&&ke.key!==null?ke.key:ke.dataIndex?Array.isArray(ke.dataIndex)?ke.dataIndex.join("."):ke.dataIndex:Re;function hi(ke,Re){return Re?`${Re}-${ke}`:`${ke}`}const Hi=(ke,Re)=>typeof ke=="function"?ke(Re):ke,uo=(ke,Re)=>{const Dt=Hi(ke,Re);return Object.prototype.toString.call(Dt)==="[object Object]"?"":Dt};var Fl={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"},oo=Fl,Qo=E(7657),Jo=function(Re,Dt){return y.createElement(Qo.Z,(0,$e.Z)({},Re,{ref:Dt,icon:oo}))},vn=y.forwardRef(Jo),gn=vn,Nn=E(9981),Sr=E(40192);function Or(ke){const Re=y.useRef(ke),Dt=(0,Sr.Z)();return[()=>Re.current,Lt=>{Re.current=Lt,Dt()}]}var rr=E(7939),ir=E(584),kn=E(93041),qn=E(78857),yr=E(18287),na=E(47472),xi=E(49397),fo=ke=>{const{value:Re,filterSearch:Dt,tablePrefixCls:Lt,locale:on,onChange:hn}=ke;return Dt?y.createElement("div",{className:`${Lt}-filter-dropdown-search`},y.createElement(xi.Z,{prefix:y.createElement(na.Z,null),placeholder:on.filterSearchPlaceholder,onChange:hn,value:Re,htmlSize:1,className:`${Lt}-filter-dropdown-search-input`})):null},ro=E(10228);const Ha=ke=>{const{keyCode:Re}=ke;Re===ro.Z.ENTER&&ke.stopPropagation()};var Vr=y.forwardRef((ke,Re)=>y.createElement("div",{className:ke.className,onClick:Dt=>Dt.stopPropagation(),onKeyDown:Ha,ref:Re},ke.children));function Ti(ke){let Re=[];return(ke||[]).forEach(Dt=>{let{value:Lt,children:on}=Dt;Re.push(Lt),on&&(Re=[].concat((0,Zt.Z)(Re),(0,Zt.Z)(Ti(on))))}),Re}function Li(ke){return ke.some(Re=>{let{children:Dt}=Re;return Dt})}function vo(ke,Re){return typeof Re=="string"||typeof Re=="number"?Re==null?void 0:Re.toString().toLowerCase().includes(ke.trim().toLowerCase()):!1}function To(ke){let{filters:Re,prefixCls:Dt,filteredKeys:Lt,filterMultiple:on,searchValue:hn,filterSearch:_n}=ke;return Re.map((Bn,Zn)=>{const Ln=String(Bn.value);if(Bn.children)return{key:Ln||Zn,label:Bn.text,popupClassName:`${Dt}-dropdown-submenu`,children:To({filters:Bn.children,prefixCls:Dt,filteredKeys:Lt,filterMultiple:on,searchValue:hn,filterSearch:_n})};const wr=on?zi.default:Ji.ZP,lr={key:Bn.value!==void 0?Ln:Zn,label:y.createElement(y.Fragment,null,y.createElement(wr,{checked:Lt.includes(Ln)}),y.createElement("span",null,Bn.text))};return hn.trim()?typeof _n=="function"?_n(hn,Bn)?lr:null:vo(hn,Bn.text)?lr:null:lr})}function Pi(ke){return ke||[]}var bi=ke=>{var Re,Dt,Lt,on;const{tablePrefixCls:hn,prefixCls:_n,column:Bn,dropdownPrefixCls:Zn,columnKey:Ln,filterOnClose:wr,filterMultiple:lr,filterMode:nr="menu",filterSearch:Xn=!1,filterState:Kn,triggerFilter:ia,locale:Tr,children:da,getPopupContainer:Ea,rootClassName:Jr}=ke,{filterResetToDefaultFilteredValue:Oa,defaultFilteredValue:La,filterDropdownProps:Qa={},filterDropdownOpen:Ua,filterDropdownVisible:eo,onFilterDropdownVisibleChange:Si,onFilterDropdownOpenChange:gi}=Bn,[ji,qa]=y.useState(!1),ti=!!(Kn&&(!((Re=Kn.filteredKeys)===null||Re===void 0)&&Re.length||Kn.forceFiltered)),Ra=Bi=>{var Ri;qa(Bi),(Ri=Qa.onOpenChange)===null||Ri===void 0||Ri.call(Qa,Bi),gi==null||gi(Bi),Si==null||Si(Bi)},Ca=(on=(Lt=(Dt=Qa.open)!==null&&Dt!==void 0?Dt:Ua)!==null&&Lt!==void 0?Lt:eo)!==null&&on!==void 0?on:ji,Ja=Kn==null?void 0:Kn.filteredKeys,[ni,wi]=Or(Pi(Ja)),_a=Bi=>{let{selectedKeys:Ri}=Bi;wi(Ri)},lo=(Bi,Ri)=>{let{node:Do,checked:zo}=Ri;_a(lr?{selectedKeys:Bi}:{selectedKeys:zo&&Do.key?[Do.key]:[]})};y.useEffect(()=>{ji&&_a({selectedKeys:Pi(Ja)})},[Ja]);const[so,pl]=y.useState([]),ul=Bi=>{pl(Bi)},[el,ol]=y.useState(""),El=Bi=>{const{value:Ri}=Bi.target;ol(Ri)};y.useEffect(()=>{ji||ol("")},[ji]);const mo=Bi=>{const Ri=Bi!=null&&Bi.length?Bi:null;if(Ri===null&&(!Kn||!Kn.filteredKeys)||(0,Se.Z)(Ri,Kn==null?void 0:Kn.filteredKeys,!0))return null;ia({column:Bn,key:Ln,filteredKeys:Ri})},yo=()=>{Ra(!1),mo(ni())},ll=function(){let{confirm:Bi,closeDropdown:Ri}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Bi&&mo([]),Ri&&Ra(!1),ol(""),wi(Oa?(La||[]).map(Do=>String(Do)):[])},cl=function(){let{closeDropdown:Bi}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Bi&&Ra(!1),mo(ni())},mi=(Bi,Ri)=>{Ri.source==="trigger"&&(Bi&&Ja!==void 0&&wi(Pi(Ja)),Ra(Bi),!Bi&&!Bn.filterDropdown&&wr&&yo())},qi=Ae()({[`${Zn}-menu-without-submenu`]:!Li(Bn.filters||[])}),li=Bi=>{if(Bi.target.checked){const Ri=Ti(Bn==null?void 0:Bn.filters).map(Do=>String(Do));wi(Ri)}else wi([])},Ga=Bi=>{let{filters:Ri}=Bi;return(Ri||[]).map((Do,zo)=>{const $o=String(Do.value),_l={title:Do.text,key:Do.value!==void 0?$o:String(zo)};return Do.children&&(_l.children=Ga({filters:Do.children})),_l})},po=Bi=>{var Ri;return Object.assign(Object.assign({},Bi),{text:Bi.title,value:Bi.key,children:((Ri=Bi.children)===null||Ri===void 0?void 0:Ri.map(Do=>po(Do)))||[]})};let Mo;const{direction:sl,renderEmpty:Co}=y.useContext(Pl.E_);if(typeof Bn.filterDropdown=="function")Mo=Bn.filterDropdown({prefixCls:`${Zn}-custom`,setSelectedKeys:Bi=>_a({selectedKeys:Bi}),selectedKeys:ni(),confirm:cl,clearFilters:ll,filters:Bn.filters,visible:Ca,close:()=>{Ra(!1)}});else if(Bn.filterDropdown)Mo=Bn.filterDropdown;else{const Bi=ni()||[],Ri=()=>{var zo,$o;const _l=(zo=Co==null?void 0:Co("Table.filter"))!==null&&zo!==void 0?zo:y.createElement(ir.Z,{image:ir.Z.PRESENTED_IMAGE_SIMPLE,description:Tr.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((Bn.filters||[]).length===0)return _l;if(nr==="tree")return y.createElement(y.Fragment,null,y.createElement(fo,{filterSearch:Xn,value:el,onChange:El,tablePrefixCls:hn,locale:Tr}),y.createElement("div",{className:`${hn}-filter-dropdown-tree`},lr?y.createElement(zi.default,{checked:Bi.length===Ti(Bn.filters).length,indeterminate:Bi.length>0&&Bi.length<Ti(Bn.filters).length,className:`${hn}-filter-dropdown-checkall`,onChange:li},($o=Tr==null?void 0:Tr.filterCheckall)!==null&&$o!==void 0?$o:Tr==null?void 0:Tr.filterCheckAll):null,y.createElement(yr.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:lr,checkStrictly:!lr,className:`${Zn}-menu`,onCheck:lo,checkedKeys:Bi,selectedKeys:Bi,showIcon:!1,treeData:Ga({filters:Bn.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:el.trim()?Uo=>typeof Xn=="function"?Xn(el,po(Uo)):vo(el,Uo.title):void 0})));const Cl=To({filters:Bn.filters||[],filterSearch:Xn,prefixCls:_n,filteredKeys:ni(),filterMultiple:lr,searchValue:el}),Yl=Cl.every(Uo=>Uo===null);return y.createElement(y.Fragment,null,y.createElement(fo,{filterSearch:Xn,value:el,onChange:El,tablePrefixCls:hn,locale:Tr}),Yl?_l:y.createElement(kn.default,{selectable:!0,multiple:lr,prefixCls:`${Zn}-menu`,className:qi,onSelect:_a,onDeselect:_a,selectedKeys:Bi,getPopupContainer:Ea,openKeys:so,onOpenChange:ul,items:Cl}))},Do=()=>Oa?(0,Se.Z)((La||[]).map(zo=>String(zo)),Bi,!0):Bi.length===0;Mo=y.createElement(y.Fragment,null,Ri(),y.createElement("div",{className:`${_n}-dropdown-btns`},y.createElement(rr.ZP,{type:"link",size:"small",disabled:Do(),onClick:()=>ll()},Tr.filterReset),y.createElement(rr.ZP,{type:"primary",size:"small",onClick:yo},Tr.filterConfirm)))}Bn.filterDropdown&&(Mo=y.createElement(qn.J,{selectable:void 0},Mo)),Mo=y.createElement(Vr,{className:`${_n}-dropdown`},Mo);const hl=()=>{let Bi;return typeof Bn.filterIcon=="function"?Bi=Bn.filterIcon(ti):Bn.filterIcon?Bi=Bn.filterIcon:Bi=y.createElement(gn,null),y.createElement("span",{role:"button",tabIndex:-1,className:Ae()(`${_n}-trigger`,{active:ti}),onClick:Ri=>{Ri.stopPropagation()}},Bi)},Bl=(0,Nn.Z)({trigger:["click"],placement:sl==="rtl"?"bottomLeft":"bottomRight",children:hl(),getPopupContainer:Ea},Object.assign(Object.assign({},Qa),{rootClassName:Ae()(Jr,Qa.rootClassName),open:Ca,onOpenChange:mi,dropdownRender:()=>typeof(Qa==null?void 0:Qa.dropdownRender)=="function"?Qa.dropdownRender(Mo):Mo}));return y.createElement("div",{className:`${_n}-column`},y.createElement("span",{className:`${hn}-column-title`},da),y.createElement(Gi.Z,Object.assign({},Bl)))};const ga=(ke,Re,Dt)=>{let Lt=[];return(ke||[]).forEach((on,hn)=>{var _n;const Bn=hi(hn,Dt);if(on.filters||"filterDropdown"in on||"onFilter"in on)if("filteredValue"in on){let Zn=on.filteredValue;"filterDropdown"in on||(Zn=(_n=Zn==null?void 0:Zn.map(String))!==null&&_n!==void 0?_n:Zn),Lt.push({column:on,key:Ii(on,Bn),filteredKeys:Zn,forceFiltered:on.filtered})}else Lt.push({column:on,key:Ii(on,Bn),filteredKeys:Re&&on.defaultFilteredValue?on.defaultFilteredValue:void 0,forceFiltered:on.filtered});"children"in on&&(Lt=[].concat((0,Zt.Z)(Lt),(0,Zt.Z)(ga(on.children,Re,Bn))))}),Lt};function vi(ke,Re,Dt,Lt,on,hn,_n,Bn,Zn){return Dt.map((Ln,wr)=>{const lr=hi(wr,Bn),{filterOnClose:nr=!0,filterMultiple:Xn=!0,filterMode:Kn,filterSearch:ia}=Ln;let Tr=Ln;if(Tr.filters||Tr.filterDropdown){const da=Ii(Tr,lr),Ea=Lt.find(Jr=>{let{key:Oa}=Jr;return da===Oa});Tr=Object.assign(Object.assign({},Tr),{title:Jr=>y.createElement(bi,{tablePrefixCls:ke,prefixCls:`${ke}-filter`,dropdownPrefixCls:Re,column:Tr,columnKey:da,filterState:Ea,filterOnClose:nr,filterMultiple:Xn,filterMode:Kn,filterSearch:ia,triggerFilter:hn,locale:on,getPopupContainer:_n,rootClassName:Zn},Hi(Ln.title,Jr))})}return"children"in Tr&&(Tr=Object.assign(Object.assign({},Tr),{children:vi(ke,Re,Tr.children,Lt,on,hn,_n,lr,Zn)})),Tr})}const fi=ke=>{const Re={};return ke.forEach(Dt=>{let{key:Lt,filteredKeys:on,column:hn}=Dt;const _n=Lt,{filters:Bn,filterDropdown:Zn}=hn;if(Zn)Re[_n]=on||null;else if(Array.isArray(on)){const Ln=Ti(Bn);Re[_n]=Ln.filter(wr=>on.includes(String(wr)))}else Re[_n]=null}),Re},si=(ke,Re,Dt)=>Re.reduce((on,hn)=>{const{column:{onFilter:_n,filters:Bn},filteredKeys:Zn}=hn;return _n&&Zn&&Zn.length?on.map(Ln=>Object.assign({},Ln)).filter(Ln=>Zn.some(wr=>{const lr=Ti(Bn),nr=lr.findIndex(Kn=>String(Kn)===String(wr)),Xn=nr!==-1?lr[nr]:wr;return Ln[Dt]&&(Ln[Dt]=si(Ln[Dt],Re,Dt)),_n(Xn,Ln)})):on},ke),Bt=ke=>ke.flatMap(Re=>"children"in Re?[Re].concat((0,Zt.Z)(Bt(Re.children||[]))):[Re]);var an=ke=>{const{prefixCls:Re,dropdownPrefixCls:Dt,mergedColumns:Lt,onFilterChange:on,getPopupContainer:hn,locale:_n,rootClassName:Bn}=ke,Zn=(0,yi.ln)("Table"),Ln=y.useMemo(()=>Bt(Lt||[]),[Lt]),[wr,lr]=y.useState(()=>ga(Ln,!0)),nr=y.useMemo(()=>{const Tr=ga(Ln,!1);if(Tr.length===0)return Tr;let da=!0,Ea=!0;if(Tr.forEach(Jr=>{let{filteredKeys:Oa}=Jr;Oa!==void 0?da=!1:Ea=!1}),da){const Jr=(Ln||[]).map((Oa,La)=>Ii(Oa,hi(La)));return wr.filter(Oa=>{let{key:La}=Oa;return Jr.includes(La)}).map(Oa=>{const La=Ln[Jr.findIndex(Qa=>Qa===Oa.key)];return Object.assign(Object.assign({},Oa),{column:Object.assign(Object.assign({},Oa.column),La),forceFiltered:La.filtered})})}return Tr},[Ln,wr]),Xn=y.useMemo(()=>fi(nr),[nr]),Kn=Tr=>{const da=nr.filter(Ea=>{let{key:Jr}=Ea;return Jr!==Tr.key});da.push(Tr),lr(da),on(fi(da),da)};return[Tr=>vi(Re,Dt,Tr,nr,_n,Kn,hn,void 0,Bn),nr,Xn]},Va=(ke,Re,Dt)=>{const Lt=y.useRef({});function on(hn){var _n;if(!Lt.current||Lt.current.data!==ke||Lt.current.childrenColumnName!==Re||Lt.current.getRowKey!==Dt){let Zn=function(Ln){Ln.forEach((wr,lr)=>{const nr=Dt(wr,lr);Bn.set(nr,wr),wr&&typeof wr=="object"&&Re in wr&&Zn(wr[Re]||[])})};const Bn=new Map;Zn(ke),Lt.current={data:ke,childrenColumnName:Re,kvMap:Bn,getRowKey:Dt}}return(_n=Lt.current.kvMap)===null||_n===void 0?void 0:_n.get(hn)}return[on]},zr=function(ke,Re){var Dt={};for(var Lt in ke)Object.prototype.hasOwnProperty.call(ke,Lt)&&Re.indexOf(Lt)<0&&(Dt[Lt]=ke[Lt]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var on=0,Lt=Object.getOwnPropertySymbols(ke);on<Lt.length;on++)Re.indexOf(Lt[on])<0&&Object.prototype.propertyIsEnumerable.call(ke,Lt[on])&&(Dt[Lt[on]]=ke[Lt[on]]);return Dt};const Jn=10;function hr(ke,Re){const Dt={current:ke.current,pageSize:ke.pageSize};return Object.keys(Re&&typeof Re=="object"?Re:{}).forEach(on=>{const hn=ke[on];typeof hn!="function"&&(Dt[on]=hn)}),Dt}function Ar(ke,Re,Dt){const Lt=Dt&&typeof Dt=="object"?Dt:{},{total:on=0}=Lt,hn=zr(Lt,["total"]),[_n,Bn]=(0,y.useState)(()=>({current:"defaultCurrent"in hn?hn.defaultCurrent:1,pageSize:"defaultPageSize"in hn?hn.defaultPageSize:Jn})),Zn=(0,Nn.Z)(_n,hn,{total:on>0?on:ke}),Ln=Math.ceil((on||ke)/Zn.pageSize);Zn.current>Ln&&(Zn.current=Ln||1);const wr=(nr,Xn)=>{Bn({current:nr!=null?nr:1,pageSize:Xn||Zn.pageSize})},lr=(nr,Xn)=>{var Kn;Dt&&((Kn=Dt.onChange)===null||Kn===void 0||Kn.call(Dt,nr,Xn)),wr(nr,Xn),Re(nr,Xn||(Zn==null?void 0:Zn.pageSize))};return Dt===!1?[{},()=>{}]:[Object.assign(Object.assign({},Zn),{onChange:lr}),wr]}var aa=Ar,Wr=E(89489),or=E(59477),ha=E(25399);const fa="ascend",Nr="descend",Aa=ke=>typeof ke.sorter=="object"&&typeof ke.sorter.multiple=="number"?ke.sorter.multiple:!1,$a=ke=>typeof ke=="function"?ke:ke&&typeof ke=="object"&&ke.compare?ke.compare:!1,ua=(ke,Re)=>Re?ke[ke.indexOf(Re)+1]:ke[0],fr=(ke,Re,Dt)=>{let Lt=[];const on=(hn,_n)=>{Lt.push({column:hn,key:Ii(hn,_n),multiplePriority:Aa(hn),sortOrder:hn.sortOrder})};return(ke||[]).forEach((hn,_n)=>{const Bn=hi(_n,Dt);hn.children?("sortOrder"in hn&&on(hn,Bn),Lt=[].concat((0,Zt.Z)(Lt),(0,Zt.Z)(fr(hn.children,Re,Bn)))):hn.sorter&&("sortOrder"in hn?on(hn,Bn):Re&&hn.defaultSortOrder&&Lt.push({column:hn,key:Ii(hn,Bn),multiplePriority:Aa(hn),sortOrder:hn.defaultSortOrder}))}),Lt},Yr=(ke,Re,Dt,Lt,on,hn,_n,Bn)=>(Re||[]).map((Ln,wr)=>{const lr=hi(wr,Bn);let nr=Ln;if(nr.sorter){const Xn=nr.sortDirections||on,Kn=nr.showSorterTooltip===void 0?_n:nr.showSorterTooltip,ia=Ii(nr,lr),Tr=Dt.find(Si=>{let{key:gi}=Si;return gi===ia}),da=Tr?Tr.sortOrder:null,Ea=ua(Xn,da);let Jr;if(Ln.sortIcon)Jr=Ln.sortIcon({sortOrder:da});else{const Si=Xn.includes(fa)&&y.createElement(or.Z,{className:Ae()(`${ke}-column-sorter-up`,{active:da===fa})}),gi=Xn.includes(Nr)&&y.createElement(Wr.Z,{className:Ae()(`${ke}-column-sorter-down`,{active:da===Nr})});Jr=y.createElement("span",{className:Ae()(`${ke}-column-sorter`,{[`${ke}-column-sorter-full`]:!!(Si&&gi)})},y.createElement("span",{className:`${ke}-column-sorter-inner`,"aria-hidden":"true"},Si,gi))}const{cancelSort:Oa,triggerAsc:La,triggerDesc:Qa}=hn||{};let Ua=Oa;Ea===Nr?Ua=Qa:Ea===fa&&(Ua=La);const eo=typeof Kn=="object"?Object.assign({title:Ua},Kn):{title:Ua};nr=Object.assign(Object.assign({},nr),{className:Ae()(nr.className,{[`${ke}-column-sort`]:da}),title:Si=>{const gi=`${ke}-column-sorters`,ji=y.createElement("span",{className:`${ke}-column-title`},Hi(Ln.title,Si)),qa=y.createElement("div",{className:gi},ji,Jr);return Kn?typeof Kn!="boolean"&&(Kn==null?void 0:Kn.target)==="sorter-icon"?y.createElement("div",{className:`${gi} ${ke}-column-sorters-tooltip-target-sorter`},ji,y.createElement(ha.Z,Object.assign({},eo),Jr)):y.createElement(ha.Z,Object.assign({},eo),qa):qa},onHeaderCell:Si=>{var gi;const ji=((gi=Ln.onHeaderCell)===null||gi===void 0?void 0:gi.call(Ln,Si))||{},qa=ji.onClick,ti=ji.onKeyDown;ji.onClick=Ja=>{Lt({column:Ln,key:ia,sortOrder:Ea,multiplePriority:Aa(Ln)}),qa==null||qa(Ja)},ji.onKeyDown=Ja=>{Ja.keyCode===ro.Z.ENTER&&(Lt({column:Ln,key:ia,sortOrder:Ea,multiplePriority:Aa(Ln)}),ti==null||ti(Ja))};const Ra=uo(Ln.title,{}),Ca=Ra==null?void 0:Ra.toString();return da&&(ji["aria-sort"]=da==="ascend"?"ascending":"descending"),ji["aria-label"]=Ca||"",ji.className=Ae()(ji.className,`${ke}-column-has-sorters`),ji.tabIndex=0,Ln.ellipsis&&(ji.title=(Ra!=null?Ra:"").toString()),ji}})}return"children"in nr&&(nr=Object.assign(Object.assign({},nr),{children:Yr(ke,nr.children,Dt,Lt,on,hn,_n,lr)})),nr}),ui=ke=>{const{column:Re,sortOrder:Dt}=ke;return{column:Re,order:Dt,field:Re.dataIndex,columnKey:Re.key}},ba=ke=>{const Re=ke.filter(Dt=>{let{sortOrder:Lt}=Dt;return Lt}).map(ui);if(Re.length===0&&ke.length){const Dt=ke.length-1;return Object.assign(Object.assign({},ui(ke[Dt])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return Re.length<=1?Re[0]||{}:Re},ca=(ke,Re,Dt)=>{const Lt=Re.slice().sort((_n,Bn)=>Bn.multiplePriority-_n.multiplePriority),on=ke.slice(),hn=Lt.filter(_n=>{let{column:{sorter:Bn},sortOrder:Zn}=_n;return $a(Bn)&&Zn});return hn.length?on.sort((_n,Bn)=>{for(let Zn=0;Zn<hn.length;Zn+=1){const Ln=hn[Zn],{column:{sorter:wr},sortOrder:lr}=Ln,nr=$a(wr);if(nr&&lr){const Xn=nr(_n,Bn,lr);if(Xn!==0)return lr===fa?Xn:-Xn}}return 0}).map(_n=>{const Bn=_n[Dt];return Bn?Object.assign(Object.assign({},_n),{[Dt]:ca(Bn,Re,Dt)}):_n}):on};var Pa=ke=>{const{prefixCls:Re,mergedColumns:Dt,sortDirections:Lt,tableLocale:on,showSorterTooltip:hn,onSorterChange:_n}=ke,[Bn,Zn]=y.useState(fr(Dt,!0)),Ln=(ia,Tr)=>{const da=[];return ia.forEach((Ea,Jr)=>{const Oa=hi(Jr,Tr);if(da.push(Ii(Ea,Oa)),Array.isArray(Ea.children)){const La=Ln(Ea.children,Oa);da.push.apply(da,(0,Zt.Z)(La))}}),da},wr=y.useMemo(()=>{let ia=!0;const Tr=fr(Dt,!1);if(!Tr.length){const Oa=Ln(Dt);return Bn.filter(La=>{let{key:Qa}=La;return Oa.includes(Qa)})}const da=[];function Ea(Oa){ia?da.push(Oa):da.push(Object.assign(Object.assign({},Oa),{sortOrder:null}))}let Jr=null;return Tr.forEach(Oa=>{Jr===null?(Ea(Oa),Oa.sortOrder&&(Oa.multiplePriority===!1?ia=!1:Jr=!0)):(Jr&&Oa.multiplePriority!==!1||(ia=!1),Ea(Oa))}),da},[Dt,Bn]),lr=y.useMemo(()=>{var ia,Tr;const da=wr.map(Ea=>{let{column:Jr,sortOrder:Oa}=Ea;return{column:Jr,order:Oa}});return{sortColumns:da,sortColumn:(ia=da[0])===null||ia===void 0?void 0:ia.column,sortOrder:(Tr=da[0])===null||Tr===void 0?void 0:Tr.order}},[wr]),nr=ia=>{let Tr;ia.multiplePriority===!1||!wr.length||wr[0].multiplePriority===!1?Tr=[ia]:Tr=[].concat((0,Zt.Z)(wr.filter(da=>{let{key:Ea}=da;return Ea!==ia.key})),[ia]),Zn(Tr),_n(ba(Tr),Tr)};return[ia=>Yr(Re,ia,wr,nr,Lt,on,hn),wr,lr,()=>ba(wr)]};const ao=(ke,Re)=>ke.map(Lt=>{const on=Object.assign({},Lt);return on.title=Hi(Lt.title,Re),"children"in on&&(on.children=ao(on.children,Re)),on});var Ko=ke=>[y.useCallback(Dt=>ao(Dt,ke),[ke])],Oi=Xa((ke,Re)=>{const{_renderTimes:Dt}=ke,{_renderTimes:Lt}=Re;return Dt!==Lt}),Ml=Cr((ke,Re)=>{const{_renderTimes:Dt}=ke,{_renderTimes:Lt}=Re;return Dt!==Lt}),Ur=E(36237),bo=E(17835),Io=E(63356),Eo=E(16931),yl=E(51636),_s=ke=>{const{componentCls:Re,lineWidth:Dt,lineType:Lt,tableBorderColor:on,tableHeaderBg:hn,tablePaddingVertical:_n,tablePaddingHorizontal:Bn,calc:Zn}=ke,Ln=`${(0,Ur.unit)(Dt)} ${Lt} ${on}`,wr=(lr,nr,Xn)=>({[`&${Re}-${lr}`]:{[`> ${Re}-container`]:{[`> ${Re}-content, > ${Re}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Re}-expanded-row-fixed`]:{margin:`${(0,Ur.unit)(Zn(nr).mul(-1).equal())}
|
|
|
${(0,Ur.unit)(Zn(Zn(Xn).add(Dt)).mul(-1).equal())}`}}}}}});return{[`${Re}-wrapper`]:{[`${Re}${Re}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Re}-title`]:{border:Ln,borderBottom:0},[`> ${Re}-container`]:{borderInlineStart:Ln,borderTop:Ln,[`
|
|
|
> ${Re}-content,
|
|
|
> ${Re}-header,
|
|
|
> ${Re}-body,
|
|
|
> ${Re}-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:Ln},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Ln},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Re}-cell-fix-right-first::after`]:{borderInlineEnd:Ln}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Re}-expanded-row-fixed`]:{margin:`${(0,Ur.unit)(Zn(_n).mul(-1).equal())} ${(0,Ur.unit)(Zn(Zn(Bn).add(Dt)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:Dt,bottom:0,borderInlineEnd:Ln,content:'""'}}}}}},[`&${Re}-scroll-horizontal`]:{[`> ${Re}-container > ${Re}-body`]:{"> table > tbody":{[`
|
|
|
> tr${Re}-expanded-row,
|
|
|
> tr${Re}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},wr("middle",ke.tablePaddingVerticalMiddle,ke.tablePaddingHorizontalMiddle)),wr("small",ke.tablePaddingVerticalSmall,ke.tablePaddingHorizontalSmall)),{[`> ${Re}-footer`]:{border:Ln,borderTop:0}}),[`${Re}-cell`]:{[`${Re}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,Ur.unit)(Dt)} 0 ${(0,Ur.unit)(Dt)} ${hn}`}},[`${Re}-bordered ${Re}-cell-scrollbar`]:{borderInlineEnd:Ln}}}},xs=ke=>{const{componentCls:Re}=ke;return{[`${Re}-wrapper`]:{[`${Re}-cell-ellipsis`]:Object.assign(Object.assign({},Io.vS),{wordBreak:"keep-all",[`
|
|
|
&${Re}-cell-fix-left-last,
|
|
|
&${Re}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${Re}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Re}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},tu=ke=>{const{componentCls:Re}=ke;return{[`${Re}-wrapper`]:{[`${Re}-tbody > tr${Re}-placeholder`]:{textAlign:"center",color:ke.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:ke.colorBgContainer}}}}},Ss=ke=>{const{componentCls:Re,antCls:Dt,motionDurationSlow:Lt,lineWidth:on,paddingXS:hn,lineType:_n,tableBorderColor:Bn,tableExpandIconBg:Zn,tableExpandColumnWidth:Ln,borderRadius:wr,tablePaddingVertical:lr,tablePaddingHorizontal:nr,tableExpandedRowBg:Xn,paddingXXS:Kn,expandIconMarginTop:ia,expandIconSize:Tr,expandIconHalfInner:da,expandIconScale:Ea,calc:Jr}=ke,Oa=`${(0,Ur.unit)(on)} ${_n} ${Bn}`,La=Jr(Kn).sub(on).equal();return{[`${Re}-wrapper`]:{[`${Re}-expand-icon-col`]:{width:Ln},[`${Re}-row-expand-icon-cell`]:{textAlign:"center",[`${Re}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Re}-row-indent`]:{height:1,float:"left"},[`${Re}-row-expand-icon`]:Object.assign(Object.assign({},(0,Io.Nd)(ke)),{position:"relative",float:"left",width:Tr,height:Tr,color:"inherit",lineHeight:(0,Ur.unit)(Tr),background:Zn,border:Oa,borderRadius:wr,transform:`scale(${Ea})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Lt} ease-out`,content:'""'},"&::before":{top:da,insetInlineEnd:La,insetInlineStart:La,height:on},"&::after":{top:La,bottom:La,insetInlineStart:da,width:on,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"}}),[`${Re}-row-indent + ${Re}-row-expand-icon`]:{marginTop:ia,marginInlineEnd:hn},[`tr${Re}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Xn}},[`${Dt}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${Re}-expanded-row-fixed`]:{position:"relative",margin:`${(0,Ur.unit)(Jr(lr).mul(-1).equal())} ${(0,Ur.unit)(Jr(nr).mul(-1).equal())}`,padding:`${(0,Ur.unit)(lr)} ${(0,Ur.unit)(nr)}`}}}},Fs=ke=>{const{componentCls:Re,antCls:Dt,iconCls:Lt,tableFilterDropdownWidth:on,tableFilterDropdownSearchWidth:hn,paddingXXS:_n,paddingXS:Bn,colorText:Zn,lineWidth:Ln,lineType:wr,tableBorderColor:lr,headerIconColor:nr,fontSizeSM:Xn,tablePaddingHorizontal:Kn,borderRadius:ia,motionDurationSlow:Tr,colorTextDescription:da,colorPrimary:Ea,tableHeaderFilterActiveBg:Jr,colorTextDisabled:Oa,tableFilterDropdownBg:La,tableFilterDropdownHeight:Qa,controlItemBgHover:Ua,controlItemBgActive:eo,boxShadowSecondary:Si,filterDropdownMenuBg:gi,calc:ji}=ke,qa=`${Dt}-dropdown`,ti=`${Re}-filter-dropdown`,Ra=`${Dt}-tree`,Ca=`${(0,Ur.unit)(Ln)} ${wr} ${lr}`;return[{[`${Re}-wrapper`]:{[`${Re}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Re}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:ji(_n).mul(-1).equal(),marginInline:`${(0,Ur.unit)(_n)} ${(0,Ur.unit)(ji(Kn).div(2).mul(-1).equal())}`,padding:`0 ${(0,Ur.unit)(_n)}`,color:nr,fontSize:Xn,borderRadius:ia,cursor:"pointer",transition:`all ${Tr}`,"&:hover":{color:da,background:Jr},"&.active":{color:Ea}}}},{[`${Dt}-dropdown`]:{[ti]:Object.assign(Object.assign({},(0,Io.Wf)(ke)),{minWidth:on,backgroundColor:La,borderRadius:ia,boxShadow:Si,overflow:"hidden",[`${qa}-menu`]:{maxHeight:Qa,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:gi,"&:empty::after":{display:"block",padding:`${(0,Ur.unit)(Bn)} 0`,color:Oa,fontSize:Xn,textAlign:"center",content:'"Not Found"'}},[`${ti}-tree`]:{paddingBlock:`${(0,Ur.unit)(Bn)} 0`,paddingInline:Bn,[Ra]:{padding:0},[`${Ra}-treenode ${Ra}-node-content-wrapper:hover`]:{backgroundColor:Ua},[`${Ra}-treenode-checkbox-checked ${Ra}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:eo}}},[`${ti}-search`]:{padding:Bn,borderBottom:Ca,"&-input":{input:{minWidth:hn},[Lt]:{color:Oa}}},[`${ti}-checkall`]:{width:"100%",marginBottom:_n,marginInlineStart:_n},[`${ti}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,Ur.unit)(ji(Bn).sub(Ln).equal())} ${(0,Ur.unit)(Bn)}`,overflow:"hidden",borderTop:Ca}})}},{[`${Dt}-dropdown ${ti}, ${ti}-submenu`]:{[`${Dt}-checkbox-wrapper + span`]:{paddingInlineStart:Bn,color:Zn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Ws=ke=>{const{componentCls:Re,lineWidth:Dt,colorSplit:Lt,motionDurationSlow:on,zIndexTableFixed:hn,tableBg:_n,zIndexTableSticky:Bn,calc:Zn}=ke,Ln=Lt;return{[`${Re}-wrapper`]:{[`
|
|
|
${Re}-cell-fix-left,
|
|
|
${Re}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:hn,background:_n},[`
|
|
|
${Re}-cell-fix-left-first::after,
|
|
|
${Re}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:Zn(Dt).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${on}`,content:'""',pointerEvents:"none"},[`${Re}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${Re}-cell-fix-right-first::after,
|
|
|
${Re}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:Zn(Dt).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${on}`,content:'""',pointerEvents:"none"},[`${Re}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Zn(Bn).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${on}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Re}-ping-left`]:{[`&:not(${Re}-has-fix-left) ${Re}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${Ln}`},[`
|
|
|
${Re}-cell-fix-left-first::after,
|
|
|
${Re}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${Ln}`},[`${Re}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Re}-ping-right`]:{[`&:not(${Re}-has-fix-right) ${Re}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${Ln}`},[`
|
|
|
${Re}-cell-fix-right-first::after,
|
|
|
${Re}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${Ln}`}},[`${Re}-fixed-column-gapped`]:{[`
|
|
|
${Re}-cell-fix-left-first::after,
|
|
|
${Re}-cell-fix-left-last::after,
|
|
|
${Re}-cell-fix-right-first::after,
|
|
|
${Re}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:"none"}}}}},Rs=ke=>{const{componentCls:Re,antCls:Dt,margin:Lt}=ke;return{[`${Re}-wrapper`]:{[`${Re}-pagination${Dt}-pagination`]:{margin:`${(0,Ur.unit)(Lt)} 0`},[`${Re}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:ke.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Gs=ke=>{const{componentCls:Re,tableRadius:Dt}=ke;return{[`${Re}-wrapper`]:{[Re]:{[`${Re}-title, ${Re}-header`]:{borderRadius:`${(0,Ur.unit)(Dt)} ${(0,Ur.unit)(Dt)} 0 0`},[`${Re}-title + ${Re}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Re}-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:Dt,borderStartEndRadius:Dt,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Dt},"> *:last-child":{borderStartEndRadius:Dt}}},"&-footer":{borderRadius:`0 0 ${(0,Ur.unit)(Dt)} ${(0,Ur.unit)(Dt)}`}}}}},Cu=ke=>{const{componentCls:Re}=ke;return{[`${Re}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Re}-pagination-left`]:{justifyContent:"flex-end"},[`${Re}-pagination-right`]:{justifyContent:"flex-start"},[`${Re}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Re}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Re}-row-indent`]:{float:"right"}}}}},Ps=ke=>{const{componentCls:Re,antCls:Dt,iconCls:Lt,fontSizeIcon:on,padding:hn,paddingXS:_n,headerIconColor:Bn,headerIconHoverColor:Zn,tableSelectionColumnWidth:Ln,tableSelectedRowBg:wr,tableSelectedRowHoverBg:lr,tableRowHoverBg:nr,tablePaddingHorizontal:Xn,calc:Kn}=ke;return{[`${Re}-wrapper`]:{[`${Re}-selection-col`]:{width:Ln,[`&${Re}-selection-col-with-dropdown`]:{width:Kn(Ln).add(on).add(Kn(hn).div(4)).equal()}},[`${Re}-bordered ${Re}-selection-col`]:{width:Kn(Ln).add(Kn(_n).mul(2)).equal(),[`&${Re}-selection-col-with-dropdown`]:{width:Kn(Ln).add(on).add(Kn(hn).div(4)).add(Kn(_n).mul(2)).equal()}},[`
|
|
|
table tr th${Re}-selection-column,
|
|
|
table tr td${Re}-selection-column,
|
|
|
${Re}-selection-column
|
|
|
`]:{paddingInlineEnd:ke.paddingXS,paddingInlineStart:ke.paddingXS,textAlign:"center",[`${Dt}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Re}-selection-column${Re}-cell-fix-left`]:{zIndex:Kn(ke.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${Re}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Re}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Re}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${ke.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,Ur.unit)(Kn(Xn).div(4).equal()),[Lt]:{color:Bn,fontSize:on,verticalAlign:"baseline","&:hover":{color:Zn}}},[`${Re}-tbody`]:{[`${Re}-row`]:{[`&${Re}-row-selected`]:{[`> ${Re}-cell`]:{background:wr,"&-row-hover":{background:lr}}},[`> ${Re}-cell-row-hover`]:{background:nr}}}}}},xu=ke=>{const{componentCls:Re,tableExpandColumnWidth:Dt,calc:Lt}=ke,on=(hn,_n,Bn,Zn)=>({[`${Re}${Re}-${hn}`]:{fontSize:Zn,[`
|
|
|
${Re}-title,
|
|
|
${Re}-footer,
|
|
|
${Re}-cell,
|
|
|
${Re}-thead > tr > th,
|
|
|
${Re}-tbody > tr > th,
|
|
|
${Re}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${(0,Ur.unit)(_n)} ${(0,Ur.unit)(Bn)}`},[`${Re}-filter-trigger`]:{marginInlineEnd:(0,Ur.unit)(Lt(Bn).div(2).mul(-1).equal())},[`${Re}-expanded-row-fixed`]:{margin:`${(0,Ur.unit)(Lt(_n).mul(-1).equal())} ${(0,Ur.unit)(Lt(Bn).mul(-1).equal())}`},[`${Re}-tbody`]:{[`${Re}-wrapper:only-child ${Re}`]:{marginBlock:(0,Ur.unit)(Lt(_n).mul(-1).equal()),marginInline:`${(0,Ur.unit)(Lt(Dt).sub(Bn).equal())} ${(0,Ur.unit)(Lt(Bn).mul(-1).equal())}`}},[`${Re}-selection-extra`]:{paddingInlineStart:(0,Ur.unit)(Lt(Bn).div(4).equal())}}});return{[`${Re}-wrapper`]:Object.assign(Object.assign({},on("middle",ke.tablePaddingVerticalMiddle,ke.tablePaddingHorizontalMiddle,ke.tableFontSizeMiddle)),on("small",ke.tablePaddingVerticalSmall,ke.tablePaddingHorizontalSmall,ke.tableFontSizeSmall))}},Lu=ke=>{const{componentCls:Re,marginXXS:Dt,fontSizeIcon:Lt,headerIconColor:on,headerIconHoverColor:hn}=ke;return{[`${Re}-wrapper`]:{[`${Re}-thead th${Re}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${ke.motionDurationSlow}, left 0s`,"&:hover":{background:ke.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:ke.colorPrimary},[`
|
|
|
&${Re}-cell-fix-left:hover,
|
|
|
&${Re}-cell-fix-right:hover
|
|
|
`]:{background:ke.tableFixedHeaderSortActiveBg}},[`${Re}-thead th${Re}-column-sort`]:{background:ke.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Re}-column-sort`]:{background:ke.tableBodySortBg},[`${Re}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${Re}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Re}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${Re}-column-sorter`]:{marginInlineStart:Dt,color:on,fontSize:0,transition:`color ${ke.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Lt,"&.active":{color:ke.colorPrimary}},[`${Re}-column-sorter-up + ${Re}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Re}-column-sorters:hover ${Re}-column-sorter`]:{color:hn}}}},wa=ke=>{const{componentCls:Re,opacityLoading:Dt,tableScrollThumbBg:Lt,tableScrollThumbBgHover:on,tableScrollThumbSize:hn,tableScrollBg:_n,zIndexTableSticky:Bn,stickyScrollBarBorderRadius:Zn,lineWidth:Ln,lineType:wr,tableBorderColor:lr}=ke,nr=`${(0,Ur.unit)(Ln)} ${wr} ${lr}`;return{[`${Re}-wrapper`]:{[`${Re}-sticky`]:{"&-holder":{position:"sticky",zIndex:Bn,background:ke.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,Ur.unit)(hn)} !important`,zIndex:Bn,display:"flex",alignItems:"center",background:_n,borderTop:nr,opacity:Dt,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:hn,backgroundColor:Lt,borderRadius:Zn,transition:`all ${ke.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:on}}}}}}},Ma=ke=>{const{componentCls:Re,lineWidth:Dt,tableBorderColor:Lt,calc:on}=ke,hn=`${(0,Ur.unit)(Dt)} ${ke.lineType} ${Lt}`;return{[`${Re}-wrapper`]:{[`${Re}-summary`]:{position:"relative",zIndex:ke.zIndexTableFixed,background:ke.tableBg,"> tr":{"> th, > td":{borderBottom:hn}}},[`div${Re}-summary`]:{boxShadow:`0 ${(0,Ur.unit)(on(Dt).mul(-1).equal())} 0 ${Lt}`}}}},Zi=ke=>{const{componentCls:Re,motionDurationMid:Dt,lineWidth:Lt,lineType:on,tableBorderColor:hn,calc:_n}=ke,Bn=`${(0,Ur.unit)(Lt)} ${on} ${hn}`,Zn=`${Re}-expanded-row-cell`;return{[`${Re}-wrapper`]:{[`${Re}-tbody-virtual`]:{[`${Re}-tbody-virtual-holder-inner`]:{[`
|
|
|
& > ${Re}-row,
|
|
|
& > div:not(${Re}-row) > ${Re}-row
|
|
|
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${Re}-cell`]:{borderBottom:Bn,transition:`background ${Dt}`},[`${Re}-expanded-row`]:{[`${Zn}${Zn}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,Ur.unit)(Lt)})`,borderInlineEnd:"none"}}},[`${Re}-bordered`]:{[`${Re}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Bn,position:"absolute"},[`${Re}-cell`]:{borderInlineEnd:Bn,[`&${Re}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:_n(Lt).mul(-1).equal(),borderInlineStart:Bn}}},[`&${Re}-virtual`]:{[`${Re}-placeholder ${Re}-cell`]:{borderInlineEnd:Bn,borderBottom:Bn}}}}}};const Ki=ke=>{const{componentCls:Re,fontWeightStrong:Dt,tablePaddingVertical:Lt,tablePaddingHorizontal:on,tableExpandColumnWidth:hn,lineWidth:_n,lineType:Bn,tableBorderColor:Zn,tableFontSize:Ln,tableBg:wr,tableRadius:lr,tableHeaderTextColor:nr,motionDurationMid:Xn,tableHeaderBg:Kn,tableHeaderCellSplitColor:ia,tableFooterTextColor:Tr,tableFooterBg:da,calc:Ea}=ke,Jr=`${(0,Ur.unit)(_n)} ${Bn} ${Zn}`;return{[`${Re}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Io.dF)()),{[Re]:Object.assign(Object.assign({},(0,Io.Wf)(ke)),{fontSize:Ln,background:wr,borderRadius:`${(0,Ur.unit)(lr)} ${(0,Ur.unit)(lr)} 0 0`,scrollbarColor:`${ke.tableScrollThumbBg} ${ke.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,Ur.unit)(lr)} ${(0,Ur.unit)(lr)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${Re}-cell,
|
|
|
${Re}-thead > tr > th,
|
|
|
${Re}-tbody > tr > th,
|
|
|
${Re}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${(0,Ur.unit)(Lt)} ${(0,Ur.unit)(on)}`,overflowWrap:"break-word"},[`${Re}-title`]:{padding:`${(0,Ur.unit)(Lt)} ${(0,Ur.unit)(on)}`},[`${Re}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:nr,fontWeight:Dt,textAlign:"start",background:Kn,borderBottom:Jr,transition:`background ${Xn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Re}-selection-column):not(${Re}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:ia,transform:"translateY(-50%)",transition:`background-color ${Xn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Re}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Xn}, border-color ${Xn}`,borderBottom:Jr,[`
|
|
|
> ${Re}-wrapper:only-child,
|
|
|
> ${Re}-expanded-row-fixed > ${Re}-wrapper:only-child
|
|
|
`]:{[Re]:{marginBlock:(0,Ur.unit)(Ea(Lt).mul(-1).equal()),marginInline:`${(0,Ur.unit)(Ea(hn).sub(on).equal())}
|
|
|
${(0,Ur.unit)(Ea(on).mul(-1).equal())}`,[`${Re}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:nr,fontWeight:Dt,textAlign:"start",background:Kn,borderBottom:Jr,transition:`background ${Xn} ease`}}},[`${Re}-footer`]:{padding:`${(0,Ur.unit)(Lt)} ${(0,Ur.unit)(on)}`,color:Tr,background:da}})}},ko=ke=>{const{colorFillAlter:Re,colorBgContainer:Dt,colorTextHeading:Lt,colorFillSecondary:on,colorFillContent:hn,controlItemBgActive:_n,controlItemBgActiveHover:Bn,padding:Zn,paddingSM:Ln,paddingXS:wr,colorBorderSecondary:lr,borderRadiusLG:nr,controlHeight:Xn,colorTextPlaceholder:Kn,fontSize:ia,fontSizeSM:Tr,lineHeight:da,lineWidth:Ea,colorIcon:Jr,colorIconHover:Oa,opacityLoading:La,controlInteractiveSize:Qa}=ke,Ua=new bo.FastColor(on).onBackground(Dt).toHexString(),eo=new bo.FastColor(hn).onBackground(Dt).toHexString(),Si=new bo.FastColor(Re).onBackground(Dt).toHexString(),gi=new bo.FastColor(Jr),ji=new bo.FastColor(Oa),qa=Qa/2-Ea,ti=qa*2+Ea*3;return{headerBg:Si,headerColor:Lt,headerSortActiveBg:Ua,headerSortHoverBg:eo,bodySortBg:Si,rowHoverBg:Si,rowSelectedBg:_n,rowSelectedHoverBg:Bn,rowExpandedBg:Re,cellPaddingBlock:Zn,cellPaddingInline:Zn,cellPaddingBlockMD:Ln,cellPaddingInlineMD:wr,cellPaddingBlockSM:wr,cellPaddingInlineSM:wr,borderColor:lr,headerBorderRadius:nr,footerBg:Si,footerColor:Lt,cellFontSize:ia,cellFontSizeMD:ia,cellFontSizeSM:ia,headerSplitColor:lr,fixedHeaderSortActiveBg:Ua,headerFilterHoverBg:hn,filterDropdownMenuBg:Dt,filterDropdownBg:Dt,expandIconBg:Dt,selectionColumnWidth:Xn,stickyScrollBarBg:Kn,stickyScrollBarBorderRadius:100,expandIconMarginTop:(ia*da-Ea*3)/2-Math.ceil((Tr*1.4-Ea*3)/2),headerIconColor:gi.clone().setA(gi.a*La).toRgbString(),headerIconHoverColor:ji.clone().setA(ji.a*La).toRgbString(),expandIconHalfInner:qa,expandIconSize:ti,expandIconScale:Qa/ti}},Xi=2;var dl=(0,Eo.I$)("Table",ke=>{const{colorTextHeading:Re,colorSplit:Dt,colorBgContainer:Lt,controlInteractiveSize:on,headerBg:hn,headerColor:_n,headerSortActiveBg:Bn,headerSortHoverBg:Zn,bodySortBg:Ln,rowHoverBg:wr,rowSelectedBg:lr,rowSelectedHoverBg:nr,rowExpandedBg:Xn,cellPaddingBlock:Kn,cellPaddingInline:ia,cellPaddingBlockMD:Tr,cellPaddingInlineMD:da,cellPaddingBlockSM:Ea,cellPaddingInlineSM:Jr,borderColor:Oa,footerBg:La,footerColor:Qa,headerBorderRadius:Ua,cellFontSize:eo,cellFontSizeMD:Si,cellFontSizeSM:gi,headerSplitColor:ji,fixedHeaderSortActiveBg:qa,headerFilterHoverBg:ti,filterDropdownBg:Ra,expandIconBg:Ca,selectionColumnWidth:Ja,stickyScrollBarBg:ni,calc:wi}=ke,_a=(0,yl.mergeToken)(ke,{tableFontSize:eo,tableBg:Lt,tableRadius:Ua,tablePaddingVertical:Kn,tablePaddingHorizontal:ia,tablePaddingVerticalMiddle:Tr,tablePaddingHorizontalMiddle:da,tablePaddingVerticalSmall:Ea,tablePaddingHorizontalSmall:Jr,tableBorderColor:Oa,tableHeaderTextColor:_n,tableHeaderBg:hn,tableFooterTextColor:Qa,tableFooterBg:La,tableHeaderCellSplitColor:ji,tableHeaderSortBg:Bn,tableHeaderSortHoverBg:Zn,tableBodySortBg:Ln,tableFixedHeaderSortActiveBg:qa,tableHeaderFilterActiveBg:ti,tableFilterDropdownBg:Ra,tableRowHoverBg:wr,tableSelectedRowBg:lr,tableSelectedRowHoverBg:nr,zIndexTableFixed:Xi,zIndexTableSticky:wi(Xi).add(1).equal({unit:!1}),tableFontSizeMiddle:Si,tableFontSizeSmall:gi,tableSelectionColumnWidth:Ja,tableExpandIconBg:Ca,tableExpandColumnWidth:wi(on).add(wi(ke.padding).mul(2)).equal(),tableExpandedRowBg:Xn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:ni,tableScrollThumbBgHover:Re,tableScrollBg:Dt});return[Ki(_a),Rs(_a),Ma(_a),Lu(_a),Fs(_a),_s(_a),Gs(_a),Ss(_a),Ma(_a),tu(_a),Ps(_a),Ws(_a),wa(_a),xs(_a),xu(_a),Cu(_a),Zi(_a)]},ko,{unitless:{expandIconScale:!0}});const Ro=[],ys=(ke,Re)=>{var Dt,Lt;const{prefixCls:on,className:hn,rootClassName:_n,style:Bn,size:Zn,bordered:Ln,dropdownPrefixCls:wr,dataSource:lr,pagination:nr,rowSelection:Xn,rowKey:Kn="key",rowClassName:ia,columns:Tr,children:da,childrenColumnName:Ea,onChange:Jr,getPopupContainer:Oa,loading:La,expandIcon:Qa,expandable:Ua,expandedRowRender:eo,expandIconColumnIndex:Si,indentSize:gi,scroll:ji,sortDirections:qa,locale:ti,showSorterTooltip:Ra={target:"full-header"},virtual:Ca}=ke,Ja=(0,yi.ln)("Table"),ni=y.useMemo(()=>Tr||An(da),[Tr,da]),wi=y.useMemo(()=>ni.some(io=>io.responsive),[ni]),_a=(0,Ol.Z)(wi),lo=y.useMemo(()=>{const io=new Set(Object.keys(_a).filter(wo=>_a[wo]));return ni.filter(wo=>!wo.responsive||wo.responsive.some(fl=>io.has(fl)))},[ni,_a]),so=(0,So.Z)(ke,["className","style","columns"]),{locale:pl=Gl.Z,direction:ul,table:el,renderEmpty:ol,getPrefixCls:El,getPopupContainer:mo}=y.useContext(Pl.E_),yo=(0,no.Z)(Zn),ll=Object.assign(Object.assign({},pl.Table),ti),cl=lr||Ro,mi=El("table",on),qi=El("dropdown",wr),[,li]=(0,es.ZP)(),Ga=(0,Yo.Z)(mi),[po,Mo,sl]=dl(mi,Ga),Co=Object.assign(Object.assign({childrenColumnName:Ea,expandIconColumnIndex:Si},Ua),{expandIcon:(Dt=Ua==null?void 0:Ua.expandIcon)!==null&&Dt!==void 0?Dt:(Lt=el==null?void 0:el.expandable)===null||Lt===void 0?void 0:Lt.expandIcon}),{childrenColumnName:hl="children"}=Co,Bl=y.useMemo(()=>cl.some(io=>io==null?void 0:io[hl])?"nest":eo||Ua!=null&&Ua.expandedRowRender?"row":null,[cl]),Bi={body:y.useRef(null)},Ri=Qi(mi),Do=y.useRef(null),zo=y.useRef(null);il(Re,()=>Object.assign(Object.assign({},zo.current),{nativeElement:Do.current}));const $o=y.useMemo(()=>typeof Kn=="function"?Kn:io=>io==null?void 0:io[Kn],[Kn]),[_l]=Va(cl,hl,$o),Cl={},Yl=function(io,wo){let fl=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var xl,zl,Sl,Ds;const Ul=Object.assign(Object.assign({},Cl),io);fl&&((xl=Cl.resetPagination)===null||xl===void 0||xl.call(Cl),!((zl=Ul.pagination)===null||zl===void 0)&&zl.current&&(Ul.pagination.current=1),nr&&((Sl=nr.onChange)===null||Sl===void 0||Sl.call(nr,1,(Ds=Ul.pagination)===null||Ds===void 0?void 0:Ds.pageSize))),ji&&ji.scrollToFirstRowOnChange!==!1&&Bi.body.current&&(0,jl.Z)(0,{getContainer:()=>Bi.body.current}),Jr==null||Jr(Ul.pagination,Ul.filters,Ul.sorter,{currentDataSource:si(ca(cl,Ul.sorterStates,hl),Ul.filterStates,hl),action:wo})},Uo=(io,wo)=>{Yl({sorter:io,sorterStates:wo},"sort",!1)},[Po,Xo,tl,Dl]=Pa({prefixCls:mi,mergedColumns:lo,onSorterChange:Uo,sortDirections:qa||["ascend","descend"],tableLocale:ll,showSorterTooltip:Ra}),vl=y.useMemo(()=>ca(cl,Xo,hl),[cl,Xo]);Cl.sorter=Dl(),Cl.sorterStates=Xo;const Oo=(io,wo)=>{Yl({filters:io,filterStates:wo},"filter",!0)},[nl,Lo,Kl]=an({prefixCls:mi,locale:ll,dropdownPrefixCls:qi,mergedColumns:lo,onFilterChange:Oo,getPopupContainer:Oa||mo,rootClassName:Ae()(_n,Ga)}),gl=si(vl,Lo,hl);Cl.filters=Kl,Cl.filterStates=Lo;const ts=y.useMemo(()=>{const io={};return Object.keys(Kl).forEach(wo=>{Kl[wo]!==null&&(io[wo]=Kl[wo])}),Object.assign(Object.assign({},tl),{filters:io})},[tl,Kl]),[os]=Ko(ts),Bs=(io,wo)=>{Yl({pagination:Object.assign(Object.assign({},Cl.pagination),{current:io,pageSize:wo})},"paginate")},[rl,fu]=aa(gl.length,Bs,nr);Cl.pagination=nr===!1?{}:hr(rl,nr),Cl.resetPagination=fu;const ls=y.useMemo(()=>{if(nr===!1||!rl.pageSize)return gl;const{current:io=1,total:wo,pageSize:fl=Jn}=rl;return gl.length<wo?gl.length>fl?gl.slice((io-1)*fl,io*fl):gl:gl.slice((io-1)*fl,io*fl)},[!!nr,gl,rl==null?void 0:rl.current,rl==null?void 0:rl.pageSize,rl==null?void 0:rl.total]),[bs,Es]=ri({prefixCls:mi,data:gl,pageData:ls,getRowKey:$o,getRecordByKey:_l,expandType:Bl,childrenColumnName:hl,locale:ll,getPopupContainer:Oa||mo},Xn),Wl=(io,wo,fl)=>{let xl;return typeof ia=="function"?xl=Ae()(ia(io,wo,fl)):xl=Ae()(ia),Ae()({[`${mi}-row-selected`]:Es.has($o(io,wo))},xl)};Co.__PARENT_RENDER_ICON__=Co.expandIcon,Co.expandIcon=Co.expandIcon||Qa||Ni(ll),Bl==="nest"&&Co.expandIconColumnIndex===void 0?Co.expandIconColumnIndex=Xn?1:0:Co.expandIconColumnIndex>0&&Xn&&(Co.expandIconColumnIndex-=1),typeof Co.indentSize!="number"&&(Co.indentSize=typeof gi=="number"?gi:15);const al=y.useCallback(io=>os(bs(nl(Po(io)))),[Po,nl,bs]);let ss,Hs;if(nr!==!1&&(rl!=null&&rl.total)){let io;rl.size?io=rl.size:io=yo==="small"||yo==="middle"?"small":void 0;const wo=zl=>y.createElement(Nl.Z,Object.assign({},rl,{className:Ae()(`${mi}-pagination ${mi}-pagination-${zl}`,rl.className),size:io})),fl=ul==="rtl"?"left":"right",{position:xl}=rl;if(xl!==null&&Array.isArray(xl)){const zl=xl.find(Ul=>Ul.includes("top")),Sl=xl.find(Ul=>Ul.includes("bottom")),Ds=xl.every(Ul=>`${Ul}`=="none");!zl&&!Sl&&!Ds&&(Hs=wo(fl)),zl&&(ss=wo(zl.toLowerCase().replace("top",""))),Sl&&(Hs=wo(Sl.toLowerCase().replace("bottom","")))}else Hs=wo(fl)}let Os;typeof La=="boolean"?Os={spinning:La}:typeof La=="object"&&(Os=Object.assign({spinning:!0},La));const Ns=Ae()(sl,Ga,`${mi}-wrapper`,el==null?void 0:el.className,{[`${mi}-wrapper-rtl`]:ul==="rtl"},hn,_n,Mo),nu=Object.assign(Object.assign({},el==null?void 0:el.style),Bn),mu=typeof(ti==null?void 0:ti.emptyText)!="undefined"?ti.emptyText:(ol==null?void 0:ol("Table"))||y.createElement(Vo.Z,{componentName:"Table"}),Su=Ca?Ml:Oi,wu={},Zu=y.useMemo(()=>{const{fontSize:io,lineHeight:wo,lineWidth:fl,padding:xl,paddingXS:zl,paddingSM:Sl}=li,Ds=Math.floor(io*wo);switch(yo){case"middle":return Sl*2+Ds+fl;case"small":return zl*2+Ds+fl;default:return xl*2+Ds+fl}},[li,yo]);return Ca&&(wu.listItemHeight=Zu),po(y.createElement("div",{ref:Do,className:Ns,style:nu},y.createElement(Fo.Z,Object.assign({spinning:!1},Os),ss,y.createElement(Su,Object.assign({},wu,so,{ref:zo,columns:lo,direction:ul,expandable:Co,prefixCls:mi,className:Ae()({[`${mi}-middle`]:yo==="middle",[`${mi}-small`]:yo==="small",[`${mi}-bordered`]:Ln,[`${mi}-empty`]:cl.length===0},sl,Ga,Mo),data:ls,rowKey:$o,rowClassName:Wl,emptyText:mu,internalHooks:ce,internalRefs:Bi,transformColumns:al,getContainerWidth:Ri})),Hs)))};var Xs=y.forwardRef(ys);const ci=(ke,Re)=>{const Dt=y.useRef(0);return Dt.current+=1,y.createElement(Xs,Object.assign({},ke,{ref:Re,_renderTimes:Dt.current}))},bl=y.forwardRef(ci);bl.SELECTION_COLUMN=Yi,bl.EXPAND_COLUMN=ve,bl.SELECTION_ALL=co,bl.SELECTION_INVERT=No,bl.SELECTION_NONE=jo,bl.Column=sa,bl.ColumnGroup=Br,bl.Summary=qe;var is=bl,$l=is},96599:function(Mn,Yt,E){"use strict";E.d(Yt,{default:function(){return Ae}});var y=E(59301),ve=E(92310),ce=E.n(ve),Le=E(2738),xe=E(29509),ge=E(78776),Se=E(22703),Ne=E(12919),Be=E(48755),fe=E(36237),$e=E(17835),Oe=E(63356),ct=E(51636),Ke=E(16931);const Te=de=>{const{paddingXXS:wt,lineWidth:Qe,tagPaddingHorizontal:Ge,componentCls:st,calc:Ce}=de,be=Ce(Ge).sub(Qe).equal(),vt=Ce(wt).sub(Qe).equal();return{[st]:Object.assign(Object.assign({},(0,Oe.Wf)(de)),{display:"inline-block",height:"auto",marginInlineEnd:de.marginXS,paddingInline:be,fontSize:de.tagFontSize,lineHeight:de.tagLineHeight,whiteSpace:"nowrap",background:de.defaultBg,border:`${(0,fe.unit)(de.lineWidth)} ${de.lineType} ${de.colorBorder}`,borderRadius:de.borderRadiusSM,opacity:1,transition:`all ${de.motionDurationMid}`,textAlign:"start",position:"relative",[`&${st}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:de.defaultColor},[`${st}-close-icon`]:{marginInlineStart:vt,fontSize:de.tagIconSize,color:de.colorTextDescription,cursor:"pointer",transition:`all ${de.motionDurationMid}`,"&:hover":{color:de.colorTextHeading}},[`&${st}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${de.iconCls}-close, ${de.iconCls}-close:hover`]:{color:de.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${st}-checkable-checked):hover`]:{color:de.colorPrimary,backgroundColor:de.colorFillSecondary},"&:active, &-checked":{color:de.colorTextLightSolid},"&-checked":{backgroundColor:de.colorPrimary,"&:hover":{backgroundColor:de.colorPrimaryHover}},"&:active":{backgroundColor:de.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${de.iconCls} + span, > span + ${de.iconCls}`]:{marginInlineStart:be}}),[`${st}-borderless`]:{borderColor:"transparent",background:de.tagBorderlessBg}}},we=de=>{const{lineWidth:wt,fontSizeIcon:Qe,calc:Ge}=de,st=de.fontSizeSM;return(0,ct.mergeToken)(de,{tagFontSize:st,tagLineHeight:(0,fe.unit)(Ge(de.lineHeightSM).mul(st).equal()),tagIconSize:Ge(Qe).sub(Ge(wt).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:de.defaultBg})},Ie=de=>({defaultBg:new $e.FastColor(de.colorFillQuaternary).onBackground(de.colorBgContainer).toHexString(),defaultColor:de.colorText});var Pe=(0,Ke.I$)("Tag",de=>{const wt=we(de);return Te(wt)},Ie),tt=function(de,wt){var Qe={};for(var Ge in de)Object.prototype.hasOwnProperty.call(de,Ge)&&wt.indexOf(Ge)<0&&(Qe[Ge]=de[Ge]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,Ge=Object.getOwnPropertySymbols(de);st<Ge.length;st++)wt.indexOf(Ge[st])<0&&Object.prototype.propertyIsEnumerable.call(de,Ge[st])&&(Qe[Ge[st]]=de[Ge[st]]);return Qe},_e=y.forwardRef((de,wt)=>{const{prefixCls:Qe,style:Ge,className:st,checked:Ce,onChange:be,onClick:vt}=de,zt=tt(de,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:jt,tag:De}=y.useContext(Be.E_),pt=dn=>{be==null||be(!Ce),vt==null||vt(dn)},ut=jt("tag",Qe),[Qt,yt,Ct]=Pe(ut),mt=ce()(ut,`${ut}-checkable`,{[`${ut}-checkable-checked`]:Ce},De==null?void 0:De.className,st,yt,Ct);return Qt(y.createElement("span",Object.assign({},zt,{ref:wt,style:Object.assign(Object.assign({},Ge),De==null?void 0:De.style),className:mt,onClick:pt})))}),Fe=E(93427);const He=de=>(0,Fe.Z)(de,(wt,Qe)=>{let{textColor:Ge,lightBorderColor:st,lightColor:Ce,darkColor:be}=Qe;return{[`${de.componentCls}${de.componentCls}-${wt}`]:{color:Ge,background:Ce,borderColor:st,"&-inverse":{color:de.colorTextLightSolid,background:be,borderColor:be},[`&${de.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Xe=(0,Ke.bk)(["Tag","preset"],de=>{const wt=we(de);return He(wt)},Ie);function St(de){return typeof de!="string"?de:de.charAt(0).toUpperCase()+de.slice(1)}const gt=(de,wt,Qe)=>{const Ge=St(Qe);return{[`${de.componentCls}${de.componentCls}-${wt}`]:{color:de[`color${Qe}`],background:de[`color${Ge}Bg`],borderColor:de[`color${Ge}Border`],[`&${de.componentCls}-borderless`]:{borderColor:"transparent"}}}};var ot=(0,Ke.bk)(["Tag","status"],de=>{const wt=we(de);return[gt(wt,"success","Success"),gt(wt,"processing","Info"),gt(wt,"error","Error"),gt(wt,"warning","Warning")]},Ie),Ue=function(de,wt){var Qe={};for(var Ge in de)Object.prototype.hasOwnProperty.call(de,Ge)&&wt.indexOf(Ge)<0&&(Qe[Ge]=de[Ge]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,Ge=Object.getOwnPropertySymbols(de);st<Ge.length;st++)wt.indexOf(Ge[st])<0&&Object.prototype.propertyIsEnumerable.call(de,Ge[st])&&(Qe[Ge[st]]=de[Ge[st]]);return Qe};const We=y.forwardRef((de,wt)=>{const{prefixCls:Qe,className:Ge,rootClassName:st,style:Ce,children:be,icon:vt,color:zt,onClose:jt,bordered:De=!0,visible:pt}=de,ut=Ue(de,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:Qt,direction:yt,tag:Ct}=y.useContext(Be.E_),[mt,dn]=y.useState(!0),Ht=(0,Le.Z)(ut,["closeIcon","closable"]);y.useEffect(()=>{pt!==void 0&&dn(pt)},[pt]);const ue=(0,xe.o2)(zt),ie=(0,xe.yT)(zt),re=ue||ie,oe=Object.assign(Object.assign({backgroundColor:zt&&!re?zt:void 0},Ct==null?void 0:Ct.style),Ce),pe=Qt("tag",Qe),[ae,me,Ze]=Pe(pe),Ot=ce()(pe,Ct==null?void 0:Ct.className,{[`${pe}-${zt}`]:re,[`${pe}-has-color`]:zt&&!re,[`${pe}-hidden`]:!mt,[`${pe}-rtl`]:yt==="rtl",[`${pe}-borderless`]:!De},Ge,st,me,Ze),at=rt=>{rt.stopPropagation(),jt==null||jt(rt),!rt.defaultPrevented&&dn(!1)},[,qe]=(0,ge.Z)((0,ge.w)(de),(0,ge.w)(Ct),{closable:!1,closeIconRender:rt=>{const Vt=y.createElement("span",{className:`${pe}-close-icon`,onClick:at},rt);return(0,Se.wm)(rt,Vt,sn=>({onClick:wn=>{var pn;(pn=sn==null?void 0:sn.onClick)===null||pn===void 0||pn.call(sn,wn),at(wn)},className:ce()(sn==null?void 0:sn.className,`${pe}-close-icon`)}))}}),bt=typeof ut.onClick=="function"||be&&be.type==="a",At=vt||null,$t=At?y.createElement(y.Fragment,null,At,be&&y.createElement("span",null,be)):be,Ye=y.createElement("span",Object.assign({},Ht,{ref:wt,className:Ot,style:oe}),$t,qe,ue&&y.createElement(Xe,{key:"preset",prefixCls:pe}),ie&&y.createElement(ot,{key:"status",prefixCls:pe}));return ae(bt?y.createElement(Ne.Z,{component:"Tag"},Ye):Ye)});We.CheckableTag=_e;var Ae=We},71114:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return ot}});var y=E(59301),ve=E(92310),ce=E.n(ve),Le=E(48755),xe=E(83397),ge=E(36237),Se=E(63356),Ne=E(16931),Be=E(51636);const fe=Ue=>{const{componentCls:Ee,calc:We}=Ue;return{[Ee]:Object.assign(Object.assign({},(0,Se.Wf)(Ue)),{margin:0,padding:0,listStyle:"none",[`${Ee}-item`]:{position:"relative",margin:0,paddingBottom:Ue.itemPaddingBottom,fontSize:Ue.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:Ue.itemHeadSize,insetInlineStart:We(We(Ue.itemHeadSize).sub(Ue.tailWidth)).div(2).equal(),height:`calc(100% - ${(0,ge.unit)(Ue.itemHeadSize)})`,borderInlineStart:`${(0,ge.unit)(Ue.tailWidth)} ${Ue.lineType} ${Ue.tailColor}`},"&-pending":{[`${Ee}-item-head`]:{fontSize:Ue.fontSizeSM,backgroundColor:"transparent"},[`${Ee}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:Ue.itemHeadSize,height:Ue.itemHeadSize,backgroundColor:Ue.dotBg,border:`${(0,ge.unit)(Ue.dotBorderWidth)} ${Ue.lineType} transparent`,borderRadius:"50%","&-blue":{color:Ue.colorPrimary,borderColor:Ue.colorPrimary},"&-red":{color:Ue.colorError,borderColor:Ue.colorError},"&-green":{color:Ue.colorSuccess,borderColor:Ue.colorSuccess},"&-gray":{color:Ue.colorTextDisabled,borderColor:Ue.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:We(Ue.itemHeadSize).div(2).equal(),insetInlineStart:We(Ue.itemHeadSize).div(2).equal(),width:"auto",height:"auto",marginBlockStart:0,paddingBlock:Ue.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:We(We(Ue.fontSize).mul(Ue.lineHeight).sub(Ue.fontSize)).mul(-1).add(Ue.lineWidth).equal(),marginInlineStart:We(Ue.margin).add(Ue.itemHeadSize).equal(),marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${Ee}-item-tail`]:{display:"none"},[`> ${Ee}-item-content`]:{minHeight:We(Ue.controlHeightLG).mul(1.2).equal()}}},[`&${Ee}-alternate,
|
|
|
&${Ee}-right,
|
|
|
&${Ee}-label`]:{[`${Ee}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:We(Ue.marginXXS).mul(-1).equal(),"&-custom":{marginInlineStart:We(Ue.tailWidth).div(2).equal()}},"&-left":{[`${Ee}-item-content`]:{insetInlineStart:`calc(50% - ${(0,ge.unit)(Ue.marginXXS)})`,width:`calc(50% - ${(0,ge.unit)(Ue.marginSM)})`,textAlign:"start"}},"&-right":{[`${Ee}-item-content`]:{width:`calc(50% - ${(0,ge.unit)(Ue.marginSM)})`,margin:0,textAlign:"end"}}}},[`&${Ee}-right`]:{[`${Ee}-item-right`]:{[`${Ee}-item-tail,
|
|
|
${Ee}-item-head,
|
|
|
${Ee}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(0,ge.unit)(We(We(Ue.itemHeadSize).add(Ue.tailWidth)).div(2).equal())})`},[`${Ee}-item-content`]:{width:`calc(100% - ${(0,ge.unit)(We(Ue.itemHeadSize).add(Ue.marginXS).equal())})`}}},[`&${Ee}-pending
|
|
|
${Ee}-item-last
|
|
|
${Ee}-item-tail`]:{display:"block",height:`calc(100% - ${(0,ge.unit)(Ue.margin)})`,borderInlineStart:`${(0,ge.unit)(Ue.tailWidth)} dotted ${Ue.tailColor}`},[`&${Ee}-reverse
|
|
|
${Ee}-item-last
|
|
|
${Ee}-item-tail`]:{display:"none"},[`&${Ee}-reverse ${Ee}-item-pending`]:{[`${Ee}-item-tail`]:{insetBlockStart:Ue.margin,display:"block",height:`calc(100% - ${(0,ge.unit)(Ue.margin)})`,borderInlineStart:`${(0,ge.unit)(Ue.tailWidth)} dotted ${Ue.tailColor}`},[`${Ee}-item-content`]:{minHeight:We(Ue.controlHeightLG).mul(1.2).equal()}},[`&${Ee}-label`]:{[`${Ee}-item-label`]:{position:"absolute",insetBlockStart:We(We(Ue.fontSize).mul(Ue.lineHeight).sub(Ue.fontSize)).mul(-1).add(Ue.tailWidth).equal(),width:`calc(50% - ${(0,ge.unit)(Ue.marginSM)})`,textAlign:"end"},[`${Ee}-item-right`]:{[`${Ee}-item-label`]:{insetInlineStart:`calc(50% + ${(0,ge.unit)(Ue.marginSM)})`,width:`calc(50% - ${(0,ge.unit)(Ue.marginSM)})`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${Ee}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},$e=Ue=>({tailColor:Ue.colorSplit,tailWidth:Ue.lineWidthBold,dotBorderWidth:Ue.wireframe?Ue.lineWidthBold:Ue.lineWidth*3,dotBg:Ue.colorBgContainer,itemPaddingBottom:Ue.padding*1.25});var Oe=(0,Ne.I$)("Timeline",Ue=>{const Ee=(0,Be.mergeToken)(Ue,{itemHeadSize:10,customHeadPaddingVertical:Ue.paddingXXS,paddingInlineEnd:2});return[fe(Ee)]},$e),ct=function(Ue,Ee){var We={};for(var Ae in Ue)Object.prototype.hasOwnProperty.call(Ue,Ae)&&Ee.indexOf(Ae)<0&&(We[Ae]=Ue[Ae]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,Ae=Object.getOwnPropertySymbols(Ue);de<Ae.length;de++)Ee.indexOf(Ae[de])<0&&Object.prototype.propertyIsEnumerable.call(Ue,Ae[de])&&(We[Ae[de]]=Ue[Ae[de]]);return We},Te=Ue=>{var{prefixCls:Ee,className:We,color:Ae="blue",dot:de,pending:wt=!1,position:Qe,label:Ge,children:st}=Ue,Ce=ct(Ue,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:be}=y.useContext(Le.E_),vt=be("timeline",Ee),zt=ce()(`${vt}-item`,{[`${vt}-item-pending`]:wt},We),jt=/blue|red|green|gray/.test(Ae||"")?void 0:Ae,De=ce()(`${vt}-item-head`,{[`${vt}-item-head-custom`]:!!de,[`${vt}-item-head-${Ae}`]:!jt});return y.createElement("li",Object.assign({},Ce,{className:zt}),Ge&&y.createElement("div",{className:`${vt}-item-label`},Ge),y.createElement("div",{className:`${vt}-item-tail`}),y.createElement("div",{className:De,style:{borderColor:jt,color:jt}},de),y.createElement("div",{className:`${vt}-item-content`},st))},we=E(94480),Ie=E(58617),Pe=function(Ue,Ee){var We={};for(var Ae in Ue)Object.prototype.hasOwnProperty.call(Ue,Ae)&&Ee.indexOf(Ae)<0&&(We[Ae]=Ue[Ae]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,Ae=Object.getOwnPropertySymbols(Ue);de<Ae.length;de++)Ee.indexOf(Ae[de])<0&&Object.prototype.propertyIsEnumerable.call(Ue,Ae[de])&&(We[Ae[de]]=Ue[Ae[de]]);return We},Et=Ue=>{var{prefixCls:Ee,className:We,pending:Ae=!1,children:de,items:wt,rootClassName:Qe,reverse:Ge=!1,direction:st,hashId:Ce,pendingDot:be,mode:vt=""}=Ue,zt=Pe(Ue,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const jt=(dn,Ht)=>vt==="alternate"?dn==="right"?`${Ee}-item-right`:dn==="left"?`${Ee}-item-left`:Ht%2===0?`${Ee}-item-left`:`${Ee}-item-right`:vt==="left"?`${Ee}-item-left`:vt==="right"?`${Ee}-item-right`:dn==="right"?`${Ee}-item-right`:"",De=(0,we.Z)(wt||[]),pt=typeof Ae=="boolean"?null:Ae;Ae&&De.push({pending:!!Ae,dot:be||y.createElement(Ie.Z,null),children:pt}),Ge&&De.reverse();const ut=De.length,Qt=`${Ee}-item-last`,yt=De.filter(dn=>!!dn).map((dn,Ht)=>{var ue;const ie=Ht===ut-2?Qt:"",re=Ht===ut-1?Qt:"",{className:oe}=dn,pe=Pe(dn,["className"]);return y.createElement(Te,Object.assign({},pe,{className:ce()([oe,!Ge&&Ae?ie:re,jt((ue=dn==null?void 0:dn.position)!==null&&ue!==void 0?ue:"",Ht)]),key:(dn==null?void 0:dn.key)||Ht}))}),Ct=De.some(dn=>!!(dn!=null&&dn.label)),mt=ce()(Ee,{[`${Ee}-pending`]:!!Ae,[`${Ee}-reverse`]:!!Ge,[`${Ee}-${vt}`]:!!vt&&!Ct,[`${Ee}-label`]:Ct,[`${Ee}-rtl`]:st==="rtl"},We,Qe,Ce);return y.createElement("ul",Object.assign({},zt,{className:mt}),yt)},_e=E(11592);function Fe(Ue,Ee){return Ue&&Array.isArray(Ue)?Ue:(0,_e.Z)(Ee).map(We=>{var Ae,de;return Object.assign({children:(de=(Ae=We==null?void 0:We.props)===null||Ae===void 0?void 0:Ae.children)!==null&&de!==void 0?de:""},We.props)})}var He=Fe,Xe=function(Ue,Ee){var We={};for(var Ae in Ue)Object.prototype.hasOwnProperty.call(Ue,Ae)&&Ee.indexOf(Ae)<0&&(We[Ae]=Ue[Ae]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,Ae=Object.getOwnPropertySymbols(Ue);de<Ae.length;de++)Ee.indexOf(Ae[de])<0&&Object.prototype.propertyIsEnumerable.call(Ue,Ae[de])&&(We[Ae[de]]=Ue[Ae[de]]);return We};const St=Ue=>{const{getPrefixCls:Ee,direction:We,timeline:Ae}=y.useContext(Le.E_),{prefixCls:de,children:wt,items:Qe,className:Ge,style:st}=Ue,Ce=Xe(Ue,["prefixCls","children","items","className","style"]),be=Ee("timeline",de),vt=(0,xe.Z)(be),[zt,jt,De]=Oe(be,vt),pt=He(Qe,wt);return zt(y.createElement(Et,Object.assign({},Ce,{className:ce()(Ae==null?void 0:Ae.className,Ge,De,vt),style:Object.assign(Object.assign({},Ae==null?void 0:Ae.style),st),prefixCls:be,direction:We,items:pt,hashId:jt})))};St.Item=Te;var gt=St,ot=gt},18287:function(Mn,Yt,E){"use strict";E.d(Yt,{default:function(){return jt}});var y=E(3741),ve=E(94480),ce=E(59301),Le=E(52671),xe=E(8657),ge=E(54476),Se={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"},Ne=Se,Be=E(7657),fe=function(pt,ut){return ce.createElement(Be.Z,(0,ge.Z)({},pt,{ref:ut,icon:Ne}))},$e=ce.forwardRef(fe),Oe=$e,ct=E(92310),Ke=E.n(ct),Te=E(82661),we=E(34061),Ie=E(48755),Pe=E(56082),tt=E(86641),Et=E(57700),_e=E(12425);const Fe=4;function He(De){const{dropPosition:pt,dropLevelOffset:ut,prefixCls:Qt,indent:yt,direction:Ct="ltr"}=De,mt=Ct==="ltr"?"left":"right",dn=Ct==="ltr"?"right":"left",Ht={[mt]:-ut*yt+Fe,[dn]:0};switch(pt){case-1:Ht.top=-3;break;case 1:Ht.bottom=-3;break;default:Ht.bottom=-3,Ht[mt]=yt+Fe;break}return ce.createElement("div",{style:Ht,className:`${Qt}-drop-indicator`})}var Xe=He,St=E(85278),ot=ce.forwardRef((De,pt)=>{var ut;const{getPrefixCls:Qt,direction:yt,virtual:Ct,tree:mt}=ce.useContext(Ie.E_),{prefixCls:dn,className:Ht,showIcon:ue=!1,showLine:ie,switcherIcon:re,switcherLoadingIcon:oe,blockNode:pe=!1,children:ae,checkable:me=!1,selectable:Ze=!0,draggable:Ot,motion:at,style:qe}=De,bt=Qt("tree",dn),At=Qt(),$t=at!=null?at:Object.assign(Object.assign({},(0,tt.Z)(At)),{motionAppear:!1}),Ye=Object.assign(Object.assign({},De),{checkable:me,selectable:Ze,showIcon:ue,motion:$t,blockNode:pe,showLine:!!ie,dropIndicatorRender:Xe}),[rt,Vt,sn]=(0,_e.ZP)(bt),[,wn]=(0,Et.ZP)(),pn=wn.paddingXS/2+(((ut=wn.Tree)===null||ut===void 0?void 0:ut.titleHeight)||wn.controlHeightSM),kt=ce.useMemo(()=>{if(!Ot)return!1;let Pt={};switch(typeof Ot){case"function":Pt.nodeDraggable=Ot;break;case"object":Pt=Object.assign({},Ot);break;default:break}return Pt.icon!==!1&&(Pt.icon=Pt.icon||ce.createElement(Pe.Z,null)),Pt},[Ot]),Gt=Pt=>ce.createElement(St.Z,{prefixCls:bt,switcherIcon:re,switcherLoadingIcon:oe,treeNodeProps:Pt,showLine:ie});return rt(ce.createElement(y.ZP,Object.assign({itemHeight:pn,ref:pt,virtual:Ct},Ye,{style:Object.assign(Object.assign({},mt==null?void 0:mt.style),qe),prefixCls:bt,className:Ke()({[`${bt}-icon-hide`]:!ue,[`${bt}-block-node`]:pe,[`${bt}-unselectable`]:!Ze,[`${bt}-rtl`]:yt==="rtl"},mt==null?void 0:mt.className,Ht,Vt,sn),direction:yt,checkable:me&&ce.createElement("span",{className:`${bt}-checkbox-inner`}),selectable:Ze,switcherIcon:Gt,draggable:kt}),ae))});const Ue=0,Ee=1,We=2;function Ae(De,pt,ut){const{key:Qt,children:yt}=ut;function Ct(mt){const dn=mt[Qt],Ht=mt[yt];pt(dn,mt)!==!1&&Ae(Ht||[],pt,ut)}De.forEach(Ct)}function de(De){let{treeData:pt,expandedKeys:ut,startKey:Qt,endKey:yt,fieldNames:Ct}=De;const mt=[];let dn=Ue;if(Qt&&Qt===yt)return[Qt];if(!Qt||!yt)return[];function Ht(ue){return ue===Qt||ue===yt}return Ae(pt,ue=>{if(dn===We)return!1;if(Ht(ue)){if(mt.push(ue),dn===Ue)dn=Ee;else if(dn===Ee)return dn=We,!1}else dn===Ee&&mt.push(ue);return ut.includes(ue)},(0,we.w$)(Ct)),mt}function wt(De,pt,ut){const Qt=(0,ve.Z)(pt),yt=[];return Ae(De,(Ct,mt)=>{const dn=Qt.indexOf(Ct);return dn!==-1&&(yt.push(mt),Qt.splice(dn,1)),!!Qt.length},(0,we.w$)(ut)),yt}var Qe=function(De,pt){var ut={};for(var Qt in De)Object.prototype.hasOwnProperty.call(De,Qt)&&pt.indexOf(Qt)<0&&(ut[Qt]=De[Qt]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,Qt=Object.getOwnPropertySymbols(De);yt<Qt.length;yt++)pt.indexOf(Qt[yt])<0&&Object.prototype.propertyIsEnumerable.call(De,Qt[yt])&&(ut[Qt[yt]]=De[Qt[yt]]);return ut};function Ge(De){const{isLeaf:pt,expanded:ut}=De;return pt?ce.createElement(Le.Z,null):ut?ce.createElement(xe.Z,null):ce.createElement(Oe,null)}function st(De){let{treeData:pt,children:ut}=De;return pt||(0,we.zn)(ut)}const Ce=(De,pt)=>{var{defaultExpandAll:ut,defaultExpandParent:Qt,defaultExpandedKeys:yt}=De,Ct=Qe(De,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const mt=ce.useRef(null),dn=ce.useRef(null),Ht=()=>{const{keyEntities:rt}=(0,we.I8)(st(Ct));let Vt;return ut?Vt=Object.keys(rt):Qt?Vt=(0,Te.r7)(Ct.expandedKeys||yt||[],rt):Vt=Ct.expandedKeys||yt||[],Vt},[ue,ie]=ce.useState(Ct.selectedKeys||Ct.defaultSelectedKeys||[]),[re,oe]=ce.useState(()=>Ht());ce.useEffect(()=>{"selectedKeys"in Ct&&ie(Ct.selectedKeys)},[Ct.selectedKeys]),ce.useEffect(()=>{"expandedKeys"in Ct&&oe(Ct.expandedKeys)},[Ct.expandedKeys]);const pe=(rt,Vt)=>{var sn;return"expandedKeys"in Ct||oe(rt),(sn=Ct.onExpand)===null||sn===void 0?void 0:sn.call(Ct,rt,Vt)},ae=(rt,Vt)=>{var sn;const{multiple:wn,fieldNames:pn}=Ct,{node:kt,nativeEvent:Gt}=Vt,{key:Pt=""}=kt,Je=st(Ct),It=Object.assign(Object.assign({},Vt),{selected:!0}),tn=(Gt==null?void 0:Gt.ctrlKey)||(Gt==null?void 0:Gt.metaKey),mn=Gt==null?void 0:Gt.shiftKey;let nt;wn&&tn?(nt=rt,mt.current=Pt,dn.current=nt,It.selectedNodes=wt(Je,nt,pn)):wn&&mn?(nt=Array.from(new Set([].concat((0,ve.Z)(dn.current||[]),(0,ve.Z)(de({treeData:Je,expandedKeys:re,startKey:Pt,endKey:mt.current,fieldNames:pn}))))),It.selectedNodes=wt(Je,nt,pn)):(nt=[Pt],mt.current=Pt,dn.current=nt,It.selectedNodes=wt(Je,nt,pn)),(sn=Ct.onSelect)===null||sn===void 0||sn.call(Ct,nt,It),"selectedKeys"in Ct||ie(nt)},{getPrefixCls:me,direction:Ze}=ce.useContext(Ie.E_),{prefixCls:Ot,className:at,showIcon:qe=!0,expandAction:bt="click"}=Ct,At=Qe(Ct,["prefixCls","className","showIcon","expandAction"]),$t=me("tree",Ot),Ye=Ke()(`${$t}-directory`,{[`${$t}-directory-rtl`]:Ze==="rtl"},at);return ce.createElement(ot,Object.assign({icon:Ge,ref:pt,blockNode:!0},At,{showIcon:qe,expandAction:bt,prefixCls:$t,className:Ye,expandedKeys:re,selectedKeys:ue,onSelect:ae,onExpand:pe}))};var vt=ce.forwardRef(Ce);const zt=ot;zt.DirectoryTree=vt,zt.TreeNode=y.OF;var jt=zt},12425:function(Mn,Yt,E){"use strict";E.d(Yt,{ZP:function(){return Te},Yk:function(){return Oe},TM:function(){return ct}});var y=E(36237),ve=E(36170),ce=E(63356),Le=E(34961),xe=E(51636),ge=E(16931);const Se=we=>{let{treeCls:Ie,treeNodeCls:Pe,directoryNodeSelectedBg:tt,directoryNodeSelectedColor:Et,motionDurationMid:_e,borderRadius:Fe,controlItemBgHover:He}=we;return{[`${Ie}${Ie}-directory ${Pe}`]:{[`${Ie}-node-content-wrapper`]:{position:"static",[`> *:not(${Ie}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${_e}`,content:'""',borderRadius:Fe},"&:hover:before":{background:He}},[`${Ie}-switcher, ${Ie}-checkbox, ${Ie}-draggable-icon`]:{zIndex:1},"&-selected":{[`${Ie}-switcher, ${Ie}-draggable-icon`]:{color:Et},[`${Ie}-node-content-wrapper`]:{color:Et,background:"transparent","&:before, &:hover:before":{background:tt}}}}}},Ne=new y.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Be=(we,Ie)=>({[`.${we}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${Ie.motionDurationSlow}`}}}),fe=(we,Ie)=>({[`.${we}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:Ie.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,y.unit)(Ie.lineWidthBold)} solid ${Ie.colorPrimary}`,borderRadius:"50%",content:'""'}}}),$e=(we,Ie)=>{const{treeCls:Pe,treeNodeCls:tt,treeNodePadding:Et,titleHeight:_e,indentSize:Fe,nodeSelectedBg:He,nodeHoverBg:Xe,colorTextQuaternary:St,controlItemBgActiveDisabled:gt}=Ie;return{[Pe]:Object.assign(Object.assign({},(0,ce.Wf)(Ie)),{background:Ie.colorBgContainer,borderRadius:Ie.borderRadius,transition:`background-color ${Ie.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${Pe}-rtl ${Pe}-switcher_close ${Pe}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${Pe}-active-focused)`]:Object.assign({},(0,ce.oN)(Ie)),[`${Pe}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Pe}-block-node`]:{[`${Pe}-list-holder-inner`]:{alignItems:"stretch",[`${Pe}-node-content-wrapper`]:{flex:"auto"},[`${tt}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${Ie.colorPrimary}`,opacity:0,animationName:Ne,animationDuration:Ie.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:Ie.borderRadius}}},[tt]:{display:"flex",alignItems:"flex-start",marginBottom:Et,lineHeight:(0,y.unit)(_e),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:Et},[`&-disabled ${Pe}-node-content-wrapper`]:{color:Ie.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${Pe}-checkbox-disabled + ${Pe}-node-selected,&${tt}-disabled${tt}-selected ${Pe}-node-content-wrapper`]:{backgroundColor:gt},[`${Pe}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${tt}-disabled)`]:{[`${Pe}-node-content-wrapper`]:{"&:hover":{color:Ie.nodeHoverColor}}},[`&-active ${Pe}-node-content-wrapper`]:{background:Ie.controlItemBgHover},[`&:not(${tt}-disabled).filter-node ${Pe}-title`]:{color:Ie.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${Pe}-draggable-icon`]:{flexShrink:0,width:_e,textAlign:"center",visibility:"visible",color:St},[`&${tt}-disabled ${Pe}-draggable-icon`]:{visibility:"hidden"}}},[`${Pe}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:Fe}},[`${Pe}-draggable-icon`]:{visibility:"hidden"},[`${Pe}-switcher, ${Pe}-checkbox`]:{marginInlineEnd:Ie.calc(Ie.calc(_e).sub(Ie.controlInteractiveSize)).div(2).equal()},[`${Pe}-switcher`]:Object.assign(Object.assign({},Be(we,Ie)),{position:"relative",flex:"none",alignSelf:"stretch",width:_e,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${Ie.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:_e,height:_e,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:Ie.borderRadius,transition:`all ${Ie.motionDurationSlow}`},[`&:not(${Pe}-switcher-noop):hover:before`]:{backgroundColor:Ie.colorBgTextHover},[`&_close ${Pe}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:Ie.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Ie.calc(_e).div(2).equal(),bottom:Ie.calc(Et).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${Ie.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:Ie.calc(Ie.calc(_e).div(2).equal()).mul(.8).equal(),height:Ie.calc(_e).div(2).equal(),borderBottom:`1px solid ${Ie.colorBorder}`,content:'""'}}}),[`${Pe}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:_e,paddingBlock:0,paddingInline:Ie.paddingXS,background:"transparent",borderRadius:Ie.borderRadius,cursor:"pointer",transition:`all ${Ie.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},fe(we,Ie)),{"&:hover":{backgroundColor:Xe},[`&${Pe}-node-selected`]:{color:Ie.nodeSelectedColor,backgroundColor:He},[`${Pe}-iconEle`]:{display:"inline-block",width:_e,height:_e,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${Pe}-unselectable ${Pe}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${tt}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${Ie.colorPrimary}`},"&-show-line":{[`${Pe}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Ie.calc(_e).div(2).equal(),bottom:Ie.calc(Et).mul(-1).equal(),borderInlineEnd:`1px solid ${Ie.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${Pe}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${tt}-leaf-last ${Pe}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,y.unit)(Ie.calc(_e).div(2).equal())} !important`}})}},Oe=function(we,Ie){let Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const tt=`.${we}`,Et=`${tt}-treenode`,_e=Ie.calc(Ie.paddingXS).div(2).equal(),Fe=(0,xe.mergeToken)(Ie,{treeCls:tt,treeNodeCls:Et,treeNodePadding:_e});return[$e(we,Fe),Pe&&Se(Fe)].filter(Boolean)},ct=we=>{const{controlHeightSM:Ie,controlItemBgHover:Pe,controlItemBgActive:tt}=we,Et=Ie;return{titleHeight:Et,indentSize:Et,nodeHoverBg:Pe,nodeHoverColor:we.colorText,nodeSelectedBg:tt,nodeSelectedColor:we.colorText}},Ke=we=>{const{colorTextLightSolid:Ie,colorPrimary:Pe}=we;return Object.assign(Object.assign({},ct(we)),{directoryNodeSelectedColor:Ie,directoryNodeSelectedBg:Pe})};var Te=(0,ge.I$)("Tree",(we,Ie)=>{let{prefixCls:Pe}=Ie;return[{[we.componentCls]:(0,ve.C2)(`${Pe}-checkbox`,we)},Oe(Pe,we),(0,Le.Z)(we)]},Ke)},85278:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Ie}});var y=E(59301),ve=E(54476),ce={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},Le=ce,xe=E(7657),ge=function(tt,Et){return y.createElement(xe.Z,(0,ve.Z)({},tt,{ref:Et,icon:Le}))},Se=y.forwardRef(ge),Ne=Se,Be=E(52671),fe=E(58617),$e=E(15075),Oe=E(43531),ct=E(92310),Ke=E.n(ct),Te=E(22703),Ie=Pe=>{const{prefixCls:tt,switcherIcon:Et,treeNodeProps:_e,showLine:Fe,switcherLoadingIcon:He}=Pe,{isLeaf:Xe,expanded:St,loading:gt}=_e;if(gt)return y.isValidElement(He)?He:y.createElement(fe.Z,{className:`${tt}-switcher-loading-icon`});let ot;if(Fe&&typeof Fe=="object"&&(ot=Fe.showLeafIcon),Xe){if(!Fe)return null;if(typeof ot!="boolean"&&ot){const We=typeof ot=="function"?ot(_e):ot,Ae=`${tt}-switcher-line-custom-icon`;return y.isValidElement(We)?(0,Te.Tm)(We,{className:Ke()(We.props.className||"",Ae)}):We}return ot?y.createElement(Be.Z,{className:`${tt}-switcher-line-icon`}):y.createElement("span",{className:`${tt}-switcher-leaf-line`})}const Ue=`${tt}-switcher-icon`,Ee=typeof Et=="function"?Et(_e):Et;return y.isValidElement(Ee)?(0,Te.Tm)(Ee,{className:Ke()(Ee.props.className||"",Ue)}):Ee!==void 0?Ee:Fe?St?y.createElement($e.Z,{className:`${tt}-switcher-line-icon`}):y.createElement(Oe.Z,{className:`${tt}-switcher-line-icon`}):y.createElement(Ne,{className:Ue})}},99498:function(Mn,Yt,E){(function(y){y(E(89780))})(function(y){y.defineOption("placeholder","",function(Ne,Be,fe){var $e=fe&&fe!=y.Init;if(Be&&!$e)Ne.on("blur",xe),Ne.on("change",ge),Ne.on("swapDoc",ge),y.on(Ne.getInputField(),"compositionupdate",Ne.state.placeholderCompose=function(){Le(Ne)}),ge(Ne);else if(!Be&&$e){Ne.off("blur",xe),Ne.off("change",ge),Ne.off("swapDoc",ge),y.off(Ne.getInputField(),"compositionupdate",Ne.state.placeholderCompose),ve(Ne);var Oe=Ne.getWrapperElement();Oe.className=Oe.className.replace(" CodeMirror-empty","")}Be&&!Ne.hasFocus()&&xe(Ne)});function ve(Ne){Ne.state.placeholder&&(Ne.state.placeholder.parentNode.removeChild(Ne.state.placeholder),Ne.state.placeholder=null)}function ce(Ne){ve(Ne);var Be=Ne.state.placeholder=document.createElement("pre");Be.style.cssText="height: 0; overflow: visible",Be.style.direction=Ne.getOption("direction"),Be.className="CodeMirror-placeholder CodeMirror-line-like";var fe=Ne.getOption("placeholder");typeof fe=="string"&&(fe=document.createTextNode(fe)),Be.appendChild(fe),Ne.display.lineSpace.insertBefore(Be,Ne.display.lineSpace.firstChild)}function Le(Ne){setTimeout(function(){var Be=!1,fe=Ne.getInputField();fe.nodeName=="TEXTAREA"?Be=!fe.value:Ne.lineCount()==1&&(Be=!/[^\u200b]/.test(fe.querySelector(".CodeMirror-line").textContent)),Be?ce(Ne):ve(Ne)},20)}function xe(Ne){Se(Ne)&&ce(Ne)}function ge(Ne){var Be=Ne.getWrapperElement(),fe=Se(Ne);Be.className=Be.className.replace(" CodeMirror-empty","")+(fe?" CodeMirror-empty":""),fe?ce(Ne):ve(Ne)}function Se(Ne){return Ne.lineCount()===1&&Ne.getLine(0)===""}})},25717:function(Mn,Yt,E){(function(y){y(E(89780))})(function(y){var ve={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ce=y.Pos;y.defineOption("autoCloseBrackets",!1,function(Te,we,Ie){Ie&&Ie!=y.Init&&(Te.removeKeyMap(xe),Te.state.closeBrackets=null),we&&(ge(Le(we,"pairs")),Te.state.closeBrackets=we,Te.addKeyMap(xe))});function Le(Te,we){return we=="pairs"&&typeof Te=="string"?Te:typeof Te=="object"&&Te[we]!=null?Te[we]:ve[we]}var xe={Backspace:Be,Enter:fe};function ge(Te){for(var we=0;we<Te.length;we++){var Ie=Te.charAt(we),Pe="'"+Ie+"'";xe[Pe]||(xe[Pe]=Se(Ie))}}ge(ve.pairs+"`");function Se(Te){return function(we){return Oe(we,Te)}}function Ne(Te){var we=Te.state.closeBrackets;if(!we||we.override)return we;var Ie=Te.getModeAt(Te.getCursor());return Ie.closeBrackets||we}function Be(Te){var we=Ne(Te);if(!we||Te.getOption("disableInput"))return y.Pass;for(var Ie=Le(we,"pairs"),Pe=Te.listSelections(),tt=0;tt<Pe.length;tt++){if(!Pe[tt].empty())return y.Pass;var Et=ct(Te,Pe[tt].head);if(!Et||Ie.indexOf(Et)%2!=0)return y.Pass}for(var tt=Pe.length-1;tt>=0;tt--){var _e=Pe[tt].head;Te.replaceRange("",ce(_e.line,_e.ch-1),ce(_e.line,_e.ch+1),"+delete")}}function fe(Te){var we=Ne(Te),Ie=we&&Le(we,"explode");if(!Ie||Te.getOption("disableInput"))return y.Pass;for(var Pe=Te.listSelections(),tt=0;tt<Pe.length;tt++){if(!Pe[tt].empty())return y.Pass;var Et=ct(Te,Pe[tt].head);if(!Et||Ie.indexOf(Et)%2!=0)return y.Pass}Te.operation(function(){var _e=Te.lineSeparator()||`
|
|
|
`;Te.replaceSelection(_e+_e,null),Te.execCommand("goCharLeft"),Pe=Te.listSelections();for(var Fe=0;Fe<Pe.length;Fe++){var He=Pe[Fe].head.line;Te.indentLine(He,null,!0),Te.indentLine(He+1,null,!0)}})}function $e(Te){var we=y.cmpPos(Te.anchor,Te.head)>0;return{anchor:new ce(Te.anchor.line,Te.anchor.ch+(we?-1:1)),head:new ce(Te.head.line,Te.head.ch+(we?1:-1))}}function Oe(Te,we){var Ie=Ne(Te);if(!Ie||Te.getOption("disableInput"))return y.Pass;var Pe=Le(Ie,"pairs"),tt=Pe.indexOf(we);if(tt==-1)return y.Pass;for(var Et=Le(Ie,"closeBefore"),_e=Le(Ie,"triples"),Fe=Pe.charAt(tt+1)==we,He=Te.listSelections(),Xe=tt%2==0,St,gt=0;gt<He.length;gt++){var ot=He[gt],Ue=ot.head,Ee,We=Te.getRange(Ue,ce(Ue.line,Ue.ch+1));if(Xe&&!ot.empty())Ee="surround";else if((Fe||!Xe)&&We==we)Fe&&Ke(Te,Ue)?Ee="both":_e.indexOf(we)>=0&&Te.getRange(Ue,ce(Ue.line,Ue.ch+3))==we+we+we?Ee="skipThree":Ee="skip";else if(Fe&&Ue.ch>1&&_e.indexOf(we)>=0&&Te.getRange(ce(Ue.line,Ue.ch-2),Ue)==we+we){if(Ue.ch>2&&/\bstring/.test(Te.getTokenTypeAt(ce(Ue.line,Ue.ch-2))))return y.Pass;Ee="addFour"}else if(Fe){var Ae=Ue.ch==0?" ":Te.getRange(ce(Ue.line,Ue.ch-1),Ue);if(!y.isWordChar(We)&&Ae!=we&&!y.isWordChar(Ae))Ee="both";else return y.Pass}else if(Xe&&(We.length===0||/\s/.test(We)||Et.indexOf(We)>-1))Ee="both";else return y.Pass;if(!St)St=Ee;else if(St!=Ee)return y.Pass}var de=tt%2?Pe.charAt(tt-1):we,wt=tt%2?we:Pe.charAt(tt+1);Te.operation(function(){if(St=="skip")Te.execCommand("goCharRight");else if(St=="skipThree")for(var Qe=0;Qe<3;Qe++)Te.execCommand("goCharRight");else if(St=="surround"){for(var Ge=Te.getSelections(),Qe=0;Qe<Ge.length;Qe++)Ge[Qe]=de+Ge[Qe]+wt;Te.replaceSelections(Ge,"around"),Ge=Te.listSelections().slice();for(var Qe=0;Qe<Ge.length;Qe++)Ge[Qe]=$e(Ge[Qe]);Te.setSelections(Ge)}else St=="both"?(Te.replaceSelection(de+wt,null),Te.triggerElectric(de+wt),Te.execCommand("goCharLeft")):St=="addFour"&&(Te.replaceSelection(de+de+de+de,"before"),Te.execCommand("goCharRight"))})}function ct(Te,we){var Ie=Te.getRange(ce(we.line,we.ch-1),ce(we.line,we.ch+1));return Ie.length==2?Ie:null}function Ke(Te,we){var Ie=Te.getTokenAt(ce(we.line,we.ch+1));return/\bstring/.test(Ie.type)&&Ie.start==we.ch&&(we.ch==0||!/\bstring/.test(Te.getTokenTypeAt(we)))}})},6313:function(Mn,Yt,E){(function(y){y(E(89780),E(32855))})(function(y){y.defineOption("autoCloseTags",!1,function(Be,fe,$e){if($e!=y.Init&&$e&&Be.removeKeyMap("autoCloseTags"),!!fe){var Oe={name:"autoCloseTags"};(typeof fe!="object"||fe.whenClosing!==!1)&&(Oe["'/'"]=function(ct){return ge(ct)}),(typeof fe!="object"||fe.whenOpening!==!1)&&(Oe["'>'"]=function(ct){return Le(ct)}),Be.addKeyMap(Oe)}});var ve=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ce=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function Le(Be){if(Be.getOption("disableInput"))return y.Pass;for(var fe=Be.listSelections(),$e=[],Oe=Be.getOption("autoCloseTags"),ct=0;ct<fe.length;ct++){if(!fe[ct].empty())return y.Pass;var Ke=fe[ct].head,Te=Be.getTokenAt(Ke),we=y.innerMode(Be.getMode(),Te.state),Ie=we.state,Pe=we.mode.xmlCurrentTag&&we.mode.xmlCurrentTag(Ie),tt=Pe&&Pe.name;if(!tt)return y.Pass;var Et=we.mode.configuration=="html",_e=typeof Oe=="object"&&Oe.dontCloseTags||Et&&ve,Fe=typeof Oe=="object"&&Oe.indentTags||Et&&ce;Te.end>Ke.ch&&(tt=tt.slice(0,tt.length-Te.end+Ke.ch));var He=tt.toLowerCase();if(!tt||Te.type=="string"&&(Te.end!=Ke.ch||!/[\"\']/.test(Te.string.charAt(Te.string.length-1))||Te.string.length==1)||Te.type=="tag"&&Pe.close||Te.string.indexOf("/")==Ke.ch-Te.start-1||_e&&Se(_e,He)>-1||Ne(Be,we.mode.xmlCurrentContext&&we.mode.xmlCurrentContext(Ie)||[],tt,Ke,!0))return y.Pass;var Xe=typeof Oe=="object"&&Oe.emptyTags;if(Xe&&Se(Xe,tt)>-1){$e[ct]={text:"/>",newPos:y.Pos(Ke.line,Ke.ch+2)};continue}var St=Fe&&Se(Fe,He)>-1;$e[ct]={indent:St,text:">"+(St?`
|
|
|
|
|
|
`:"")+"</"+tt+">",newPos:St?y.Pos(Ke.line+1,0):y.Pos(Ke.line,Ke.ch+1)}}for(var gt=typeof Oe=="object"&&Oe.dontIndentOnAutoClose,ct=fe.length-1;ct>=0;ct--){var ot=$e[ct];Be.replaceRange(ot.text,fe[ct].head,fe[ct].anchor,"+insert");var Ue=Be.listSelections().slice(0);Ue[ct]={head:ot.newPos,anchor:ot.newPos},Be.setSelections(Ue),!gt&&ot.indent&&(Be.indentLine(ot.newPos.line,null,!0),Be.indentLine(ot.newPos.line+1,null,!0))}}function xe(Be,fe){for(var $e=Be.listSelections(),Oe=[],ct=fe?"/":"</",Ke=Be.getOption("autoCloseTags"),Te=typeof Ke=="object"&&Ke.dontIndentOnSlash,we=0;we<$e.length;we++){if(!$e[we].empty())return y.Pass;var Ie=$e[we].head,Pe=Be.getTokenAt(Ie),tt=y.innerMode(Be.getMode(),Pe.state),Et=tt.state;if(fe&&(Pe.type=="string"||Pe.string.charAt(0)!="<"||Pe.start!=Ie.ch-1))return y.Pass;var _e,Fe=tt.mode.name!="xml"&&Be.getMode().name=="htmlmixed";if(Fe&&tt.mode.name=="javascript")_e=ct+"script";else if(Fe&&tt.mode.name=="css")_e=ct+"style";else{var He=tt.mode.xmlCurrentContext&&tt.mode.xmlCurrentContext(Et);if(!He||He.length&&Ne(Be,He,He[He.length-1],Ie))return y.Pass;_e=ct+He[He.length-1]}Be.getLine(Ie.line).charAt(Pe.end)!=">"&&(_e+=">"),Oe[we]=_e}if(Be.replaceSelections(Oe),$e=Be.listSelections(),!Te)for(var we=0;we<$e.length;we++)(we==$e.length-1||$e[we].head.line<$e[we+1].head.line)&&Be.indentLine($e[we].head.line)}function ge(Be){return Be.getOption("disableInput")?y.Pass:xe(Be,!0)}y.commands.closeTag=function(Be){return xe(Be)};function Se(Be,fe){if(Be.indexOf)return Be.indexOf(fe);for(var $e=0,Oe=Be.length;$e<Oe;++$e)if(Be[$e]==fe)return $e;return-1}function Ne(Be,fe,$e,Oe,ct){if(!y.scanForClosingTag)return!1;var Ke=Math.min(Be.lastLine()+1,Oe.line+500),Te=y.scanForClosingTag(Be,Oe,null,Ke);if(!Te||Te.tag!=$e)return!1;for(var we=ct?1:0,Ie=fe.length-1;Ie>=0&&fe[Ie]==$e;Ie--)++we;Oe=Te.to;for(var Ie=1;Ie<we;Ie++){var Pe=y.scanForClosingTag(Be,Oe,null,Ke);if(!Pe||Pe.tag!=$e)return!1;Oe=Pe.to}return!0}})},32855:function(Mn,Yt,E){(function(y){y(E(89780))})(function(y){"use strict";var ve=y.Pos;function ce(Ie,Pe){return Ie.line-Pe.line||Ie.ch-Pe.ch}var Le="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",xe=Le+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ge=new RegExp("<(/?)(["+Le+"]["+xe+"]*)","g");function Se(Ie,Pe,tt,Et){this.line=Pe,this.ch=tt,this.cm=Ie,this.text=Ie.getLine(Pe),this.min=Et?Math.max(Et.from,Ie.firstLine()):Ie.firstLine(),this.max=Et?Math.min(Et.to-1,Ie.lastLine()):Ie.lastLine()}function Ne(Ie,Pe){var tt=Ie.cm.getTokenTypeAt(ve(Ie.line,Pe));return tt&&/\btag\b/.test(tt)}function Be(Ie){if(!(Ie.line>=Ie.max))return Ie.ch=0,Ie.text=Ie.cm.getLine(++Ie.line),!0}function fe(Ie){if(!(Ie.line<=Ie.min))return Ie.text=Ie.cm.getLine(--Ie.line),Ie.ch=Ie.text.length,!0}function $e(Ie){for(;;){var Pe=Ie.text.indexOf(">",Ie.ch);if(Pe==-1){if(Be(Ie))continue;return}if(!Ne(Ie,Pe+1)){Ie.ch=Pe+1;continue}var tt=Ie.text.lastIndexOf("/",Pe),Et=tt>-1&&!/\S/.test(Ie.text.slice(tt+1,Pe));return Ie.ch=Pe+1,Et?"selfClose":"regular"}}function Oe(Ie){for(;;){var Pe=Ie.ch?Ie.text.lastIndexOf("<",Ie.ch-1):-1;if(Pe==-1){if(fe(Ie))continue;return}if(!Ne(Ie,Pe+1)){Ie.ch=Pe;continue}ge.lastIndex=Pe,Ie.ch=Pe;var tt=ge.exec(Ie.text);if(tt&&tt.index==Pe)return tt}}function ct(Ie){for(;;){ge.lastIndex=Ie.ch;var Pe=ge.exec(Ie.text);if(!Pe){if(Be(Ie))continue;return}if(!Ne(Ie,Pe.index+1)){Ie.ch=Pe.index+1;continue}return Ie.ch=Pe.index+Pe[0].length,Pe}}function Ke(Ie){for(;;){var Pe=Ie.ch?Ie.text.lastIndexOf(">",Ie.ch-1):-1;if(Pe==-1){if(fe(Ie))continue;return}if(!Ne(Ie,Pe+1)){Ie.ch=Pe;continue}var tt=Ie.text.lastIndexOf("/",Pe),Et=tt>-1&&!/\S/.test(Ie.text.slice(tt+1,Pe));return Ie.ch=Pe+1,Et?"selfClose":"regular"}}function Te(Ie,Pe){for(var tt=[];;){var Et=ct(Ie),_e,Fe=Ie.line,He=Ie.ch-(Et?Et[0].length:0);if(!Et||!(_e=$e(Ie)))return;if(_e!="selfClose")if(Et[1]){for(var Xe=tt.length-1;Xe>=0;--Xe)if(tt[Xe]==Et[2]){tt.length=Xe;break}if(Xe<0&&(!Pe||Pe==Et[2]))return{tag:Et[2],from:ve(Fe,He),to:ve(Ie.line,Ie.ch)}}else tt.push(Et[2])}}function we(Ie,Pe){for(var tt=[];;){var Et=Ke(Ie);if(!Et)return;if(Et=="selfClose"){Oe(Ie);continue}var _e=Ie.line,Fe=Ie.ch,He=Oe(Ie);if(!He)return;if(He[1])tt.push(He[2]);else{for(var Xe=tt.length-1;Xe>=0;--Xe)if(tt[Xe]==He[2]){tt.length=Xe;break}if(Xe<0&&(!Pe||Pe==He[2]))return{tag:He[2],from:ve(Ie.line,Ie.ch),to:ve(_e,Fe)}}}}y.registerHelper("fold","xml",function(Ie,Pe){for(var tt=new Se(Ie,Pe.line,0);;){var Et=ct(tt);if(!Et||tt.line!=Pe.line)return;var _e=$e(tt);if(!_e)return;if(!Et[1]&&_e!="selfClose"){var Fe=ve(tt.line,tt.ch),He=Te(tt,Et[2]);return He&&ce(He.from,Fe)>0?{from:Fe,to:He.from}:null}}}),y.findMatchingTag=function(Ie,Pe,tt){var Et=new Se(Ie,Pe.line,Pe.ch,tt);if(!(Et.text.indexOf(">")==-1&&Et.text.indexOf("<")==-1)){var _e=$e(Et),Fe=_e&&ve(Et.line,Et.ch),He=_e&&Oe(Et);if(!(!_e||!He||ce(Et,Pe)>0)){var Xe={from:ve(Et.line,Et.ch),to:Fe,tag:He[2]};return _e=="selfClose"?{open:Xe,close:null,at:"open"}:He[1]?{open:we(Et,He[2]),close:Xe,at:"close"}:(Et=new Se(Ie,Fe.line,Fe.ch,tt),{open:Xe,close:Te(Et,He[2]),at:"open"})}}},y.findEnclosingTag=function(Ie,Pe,tt,Et){for(var _e=new Se(Ie,Pe.line,Pe.ch,tt);;){var Fe=we(_e,Et);if(!Fe)break;var He=new Se(Ie,Pe.line,Pe.ch,tt),Xe=Te(He,Fe.tag);if(Xe)return{open:Fe,close:Xe}}},y.scanForClosingTag=function(Ie,Pe,tt,Et){var _e=new Se(Ie,Pe.line,Pe.ch,Et?{from:0,to:Et}:null);return Te(_e,tt)}})},89780:function(Mn){(function(Yt,E){Mn.exports=E()})(this,function(){"use strict";var Yt=navigator.userAgent,E=navigator.platform,y=/gecko\/\d/i.test(Yt),ve=/MSIE \d/.test(Yt),ce=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Yt),Le=/Edge\/(\d+)/.exec(Yt),xe=ve||ce||Le,ge=xe&&(ve?document.documentMode||6:+(Le||ce)[1]),Se=!Le&&/WebKit\//.test(Yt),Ne=Se&&/Qt\/\d+\.\d+/.test(Yt),Be=!Le&&/Chrome\//.test(Yt),fe=/Opera\//.test(Yt),$e=/Apple Computer/.test(navigator.vendor),Oe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Yt),ct=/PhantomJS/.test(Yt),Ke=!Le&&/AppleWebKit/.test(Yt)&&/Mobile\/\w+/.test(Yt),Te=/Android/.test(Yt),we=Ke||Te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Yt),Ie=Ke||/Mac/.test(E),Pe=/\bCrOS\b/.test(Yt),tt=/win/i.test(E),Et=fe&&Yt.match(/Version\/(\d*\.\d*)/);Et&&(Et=Number(Et[1])),Et&&Et>=15&&(fe=!1,Se=!0);var _e=Ie&&(Ne||fe&&(Et==null||Et<12.11)),Fe=y||xe&&ge>=9;function He(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Xe=function(a,b){var z=a.className,x=He(b).exec(z);if(x){var ee=z.slice(x.index+x[0].length);a.className=z.slice(0,x.index)+(ee?x[1]+ee:"")}};function St(a){for(var b=a.childNodes.length;b>0;--b)a.removeChild(a.firstChild);return a}function gt(a,b){return St(a).appendChild(b)}function ot(a,b,z,x){var ee=document.createElement(a);if(z&&(ee.className=z),x&&(ee.style.cssText=x),typeof b=="string")ee.appendChild(document.createTextNode(b));else if(b)for(var se=0;se<b.length;++se)ee.appendChild(b[se]);return ee}function Ue(a,b,z,x){var ee=ot(a,b,z,x);return ee.setAttribute("role","presentation"),ee}var Ee;document.createRange?Ee=function(a,b,z,x){var ee=document.createRange();return ee.setEnd(x||a,z),ee.setStart(a,b),ee}:Ee=function(a,b,z){var x=document.body.createTextRange();try{x.moveToElementText(a.parentNode)}catch(ee){return x}return x.collapse(!0),x.moveEnd("character",z),x.moveStart("character",b),x};function We(a,b){if(b.nodeType==3&&(b=b.parentNode),a.contains)return a.contains(b);do if(b.nodeType==11&&(b=b.host),b==a)return!0;while(b=b.parentNode)}function Ae(){var a;try{a=document.activeElement}catch(b){a=document.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function de(a,b){var z=a.className;He(b).test(z)||(a.className+=(z?" ":"")+b)}function wt(a,b){for(var z=a.split(" "),x=0;x<z.length;x++)z[x]&&!He(z[x]).test(b)&&(b+=" "+z[x]);return b}var Qe=function(a){a.select()};Ke?Qe=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:xe&&(Qe=function(a){try{a.select()}catch(b){}});function Ge(a){var b=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,b)}}function st(a,b,z){b||(b={});for(var x in a)a.hasOwnProperty(x)&&(z!==!1||!b.hasOwnProperty(x))&&(b[x]=a[x]);return b}function Ce(a,b,z,x,ee){b==null&&(b=a.search(/[^\s\u00a0]/),b==-1&&(b=a.length));for(var se=x||0,ye=ee||0;;){var Me=a.indexOf(" ",se);if(Me<0||Me>=b)return ye+(b-se);ye+=Me-se,ye+=z-ye%z,se=Me+1}}var be=function(){this.id=null,this.f=null,this.time=0,this.handler=Ge(this.onTimeout,this)};be.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},be.prototype.set=function(a,b){this.f=b;var z=+new Date+a;(!this.id||z<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=z)};function vt(a,b){for(var z=0;z<a.length;++z)if(a[z]==b)return z;return-1}var zt=50,jt={toString:function(){return"CodeMirror.Pass"}},De={scroll:!1},pt={origin:"*mouse"},ut={origin:"+move"};function Qt(a,b,z){for(var x=0,ee=0;;){var se=a.indexOf(" ",x);se==-1&&(se=a.length);var ye=se-x;if(se==a.length||ee+ye>=b)return x+Math.min(ye,b-ee);if(ee+=se-x,ee+=z-ee%z,x=se+1,ee>=b)return x}}var yt=[""];function Ct(a){for(;yt.length<=a;)yt.push(mt(yt)+" ");return yt[a]}function mt(a){return a[a.length-1]}function dn(a,b){for(var z=[],x=0;x<a.length;x++)z[x]=b(a[x],x);return z}function Ht(a,b,z){for(var x=0,ee=z(b);x<a.length&&z(a[x])<=ee;)x++;a.splice(x,0,b)}function ue(){}function ie(a,b){var z;return Object.create?z=Object.create(a):(ue.prototype=a,z=new ue),b&&st(b,z),z}var re=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function oe(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||re.test(a))}function pe(a,b){return b?b.source.indexOf("\\w")>-1&&oe(a)?!0:b.test(a):oe(a)}function ae(a){for(var b in a)if(a.hasOwnProperty(b)&&a[b])return!1;return!0}var me=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ze(a){return a.charCodeAt(0)>=768&&me.test(a)}function Ot(a,b,z){for(;(z<0?b>0:b<a.length)&&Ze(a.charAt(b));)b+=z;return b}function at(a,b,z){for(var x=b>z?-1:1;;){if(b==z)return b;var ee=(b+z)/2,se=x<0?Math.ceil(ee):Math.floor(ee);if(se==b)return a(se)?b:z;a(se)?z=se:b=se+x}}function qe(a,b,z,x){if(!a)return x(b,z,"ltr",0);for(var ee=!1,se=0;se<a.length;++se){var ye=a[se];(ye.from<z&&ye.to>b||b==z&&ye.to==b)&&(x(Math.max(ye.from,b),Math.min(ye.to,z),ye.level==1?"rtl":"ltr",se),ee=!0)}ee||x(b,z,"ltr")}var bt=null;function At(a,b,z){var x;bt=null;for(var ee=0;ee<a.length;++ee){var se=a[ee];if(se.from<b&&se.to>b)return ee;se.to==b&&(se.from!=se.to&&z=="before"?x=ee:bt=ee),se.from==b&&(se.from!=se.to&&z!="before"?x=ee:bt=ee)}return x!=null?x:bt}var $t=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",b="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function z(lt){return lt<=247?a.charAt(lt):1424<=lt&<<=1524?"R":1536<=lt&<<=1785?b.charAt(lt-1536):1774<=lt&<<=2220?"r":8192<=lt&<<=8203?"w":lt==8204?"b":"L"}var x=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ee=/[stwN]/,se=/[LRr]/,ye=/[Lb1n]/,Me=/[1n]/;function Ve(lt,un,bn){this.level=lt,this.from=un,this.to=bn}return function(lt,un){var bn=un=="ltr"?"L":"R";if(lt.length==0||un=="ltr"&&!x.test(lt))return!1;for(var Yn=lt.length,Wn=[],_r=0;_r<Yn;++_r)Wn.push(z(lt.charCodeAt(_r)));for(var qr=0,Ba=bn;qr<Yn;++qr){var Ka=Wn[qr];Ka=="m"?Wn[qr]=Ba:Ba=Ka}for(var ii=0,Wa=bn;ii<Yn;++ii){var Ei=Wn[ii];Ei=="1"&&Wa=="r"?Wn[ii]="n":se.test(Ei)&&(Wa=Ei,Ei=="r"&&(Wn[ii]="R"))}for(var to=1,Ui=Wn[0];to<Yn-1;++to){var Bo=Wn[to];Bo=="+"&&Ui=="1"&&Wn[to+1]=="1"?Wn[to]="1":Bo==","&&Ui==Wn[to+1]&&(Ui=="1"||Ui=="n")&&(Wn[to]=Ui),Ui=Bo}for(var ml=0;ml<Yn;++ml){var ql=Wn[ml];if(ql==",")Wn[ml]="N";else if(ql=="%"){var Al=void 0;for(Al=ml+1;Al<Yn&&Wn[Al]=="%";++Al);for(var Cs=ml&&Wn[ml-1]=="!"||Al<Yn&&Wn[Al]=="1"?"1":"N",fs=ml;fs<Al;++fs)Wn[fs]=Cs;ml=Al-1}}for(var kl=0,ms=bn;kl<Yn;++kl){var ns=Wn[kl];ms=="L"&&ns=="1"?Wn[kl]="L":se.test(ns)&&(ms=ns)}for(var Ll=0;Ll<Yn;++Ll)if(ee.test(Wn[Ll])){var Zl=void 0;for(Zl=Ll+1;Zl<Yn&&ee.test(Wn[Zl]);++Zl);for(var Il=(Ll?Wn[Ll-1]:bn)=="L",ps=(Zl<Yn?Wn[Zl]:bn)=="L",Mu=Il==ps?Il?"L":"R":bn,ou=Ll;ou<Zl;++ou)Wn[ou]=Mu;Ll=Zl-1}for(var rs=[],te,ne=0;ne<Yn;)if(ye.test(Wn[ne])){var le=ne;for(++ne;ne<Yn&&ye.test(Wn[ne]);++ne);rs.push(new Ve(0,le,ne))}else{var he=ne,je=rs.length,ze=un=="rtl"?1:0;for(++ne;ne<Yn&&Wn[ne]!="L";++ne);for(var et=he;et<ne;)if(Me.test(Wn[et])){he<et&&(rs.splice(je,0,new Ve(1,he,et)),je+=ze);var dt=et;for(++et;et<ne&&Me.test(Wn[et]);++et);rs.splice(je,0,new Ve(2,dt,et)),je+=ze,he=et}else++et;he<ne&&rs.splice(je,0,new Ve(1,he,ne))}return un=="ltr"&&(rs[0].level==1&&(te=lt.match(/^\s+/))&&(rs[0].from=te[0].length,rs.unshift(new Ve(0,0,te[0].length))),mt(rs).level==1&&(te=lt.match(/\s+$/))&&(mt(rs).to-=te[0].length,rs.push(new Ve(0,Yn-te[0].length,Yn)))),un=="rtl"?rs.reverse():rs}}();function Ye(a,b){var z=a.order;return z==null&&(z=a.order=$t(a.text,b)),z}var rt=[],Vt=function(a,b,z){if(a.addEventListener)a.addEventListener(b,z,!1);else if(a.attachEvent)a.attachEvent("on"+b,z);else{var x=a._handlers||(a._handlers={});x[b]=(x[b]||rt).concat(z)}};function sn(a,b){return a._handlers&&a._handlers[b]||rt}function wn(a,b,z){if(a.removeEventListener)a.removeEventListener(b,z,!1);else if(a.detachEvent)a.detachEvent("on"+b,z);else{var x=a._handlers,ee=x&&x[b];if(ee){var se=vt(ee,z);se>-1&&(x[b]=ee.slice(0,se).concat(ee.slice(se+1)))}}}function pn(a,b){var z=sn(a,b);if(z.length)for(var x=Array.prototype.slice.call(arguments,2),ee=0;ee<z.length;++ee)z[ee].apply(null,x)}function kt(a,b,z){return typeof b=="string"&&(b={type:b,preventDefault:function(){this.defaultPrevented=!0}}),pn(a,z||b.type,a,b),mn(b)||b.codemirrorIgnore}function Gt(a){var b=a._handlers&&a._handlers.cursorActivity;if(b)for(var z=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),x=0;x<b.length;++x)vt(z,b[x])==-1&&z.push(b[x])}function Pt(a,b){return sn(a,b).length>0}function Je(a){a.prototype.on=function(b,z){Vt(this,b,z)},a.prototype.off=function(b,z){wn(this,b,z)}}function It(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function tn(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function mn(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function nt(a){It(a),tn(a)}function Nt(a){return a.target||a.srcElement}function Jt(a){var b=a.which;return b==null&&(a.button&1?b=1:a.button&2?b=3:a.button&4&&(b=2)),Ie&&a.ctrlKey&&b==1&&(b=3),b}var xt=function(){if(xe&&ge<9)return!1;var a=ot("div");return"draggable"in a||"dragDrop"in a}(),Wt;function qt(a){if(Wt==null){var b=ot("span","\u200B");gt(a,ot("span",[b,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Wt=b.offsetWidth<=1&&b.offsetHeight>2&&!(xe&&ge<8))}var z=Wt?ot("span","\u200B"):ot("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return z.setAttribute("cm-text",""),z}var Tn;function Gn(a){if(Tn!=null)return Tn;var b=gt(a,document.createTextNode("A\u062EA")),z=Ee(b,0,1).getBoundingClientRect(),x=Ee(b,1,2).getBoundingClientRect();return St(a),!z||z.left==z.right?!1:Tn=x.right-z.right<3}var On=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(a){for(var b=0,z=[],x=a.length;b<=x;){var ee=a.indexOf(`
|
|
|
`,b);ee==-1&&(ee=a.length);var se=a.slice(b,a.charAt(ee-1)=="\r"?ee-1:ee),ye=se.indexOf("\r");ye!=-1?(z.push(se.slice(0,ye)),b+=ye+1):(z.push(se),b=ee+1)}return z}:function(a){return a.split(/\r\n?|\n/)},Hn=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(b){return!1}}:function(a){var b;try{b=a.ownerDocument.selection.createRange()}catch(z){}return!b||b.parentElement()!=a?!1:b.compareEndPoints("StartToEnd",b)!=0},Zt=function(){var a=ot("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Dn=null;function nn(a){if(Dn!=null)return Dn;var b=gt(a,ot("span","x")),z=b.getBoundingClientRect(),x=Ee(b,0,1).getBoundingClientRect();return Dn=Math.abs(z.left-x.left)>1}var Sn={},rn={};function En(a,b){arguments.length>2&&(b.dependencies=Array.prototype.slice.call(arguments,2)),Sn[a]=b}function xn(a,b){rn[a]=b}function Vn(a){if(typeof a=="string"&&rn.hasOwnProperty(a))a=rn[a];else if(a&&typeof a.name=="string"&&rn.hasOwnProperty(a.name)){var b=rn[a.name];typeof b=="string"&&(b={name:b}),a=ie(b,a),a.name=b.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return Vn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return Vn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function sr(a,b){b=Vn(b);var z=Sn[b.name];if(!z)return sr(a,"text/plain");var x=z(a,b);if(er.hasOwnProperty(b.name)){var ee=er[b.name];for(var se in ee)ee.hasOwnProperty(se)&&(x.hasOwnProperty(se)&&(x["_"+se]=x[se]),x[se]=ee[se])}if(x.name=b.name,b.helperType&&(x.helperType=b.helperType),b.modeProps)for(var ye in b.modeProps)x[ye]=b.modeProps[ye];return x}var er={};function cr(a,b){var z=er.hasOwnProperty(a)?er[a]:er[a]={};st(b,z)}function Dr(a,b){if(b===!0)return b;if(a.copyState)return a.copyState(b);var z={};for(var x in b){var ee=b[x];ee instanceof Array&&(ee=ee.concat([])),z[x]=ee}return z}function mr(a,b){for(var z;a.innerMode&&(z=a.innerMode(b),!(!z||z.mode==a));)b=z.state,a=z.mode;return z||{mode:a,state:b}}function Hr(a,b,z){return a.startState?a.startState(b,z):!0}var Lr=function(a,b,z){this.pos=this.start=0,this.string=a,this.tabSize=b||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=z};Lr.prototype.eol=function(){return this.pos>=this.string.length},Lr.prototype.sol=function(){return this.pos==this.lineStart},Lr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Lr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Lr.prototype.eat=function(a){var b=this.string.charAt(this.pos),z;if(typeof a=="string"?z=b==a:z=b&&(a.test?a.test(b):a(b)),z)return++this.pos,b},Lr.prototype.eatWhile=function(a){for(var b=this.pos;this.eat(a););return this.pos>b},Lr.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},Lr.prototype.skipToEnd=function(){this.pos=this.string.length},Lr.prototype.skipTo=function(a){var b=this.string.indexOf(a,this.pos);if(b>-1)return this.pos=b,!0},Lr.prototype.backUp=function(a){this.pos-=a},Lr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ce(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ce(this.string,this.lineStart,this.tabSize):0)},Lr.prototype.indentation=function(){return Ce(this.string,null,this.tabSize)-(this.lineStart?Ce(this.string,this.lineStart,this.tabSize):0)},Lr.prototype.match=function(a,b,z){if(typeof a=="string"){var x=function(ye){return z?ye.toLowerCase():ye},ee=this.string.substr(this.pos,a.length);if(x(ee)==x(a))return b!==!1&&(this.pos+=a.length),!0}else{var se=this.string.slice(this.pos).match(a);return se&&se.index>0?null:(se&&b!==!1&&(this.pos+=se[0].length),se)}},Lr.prototype.current=function(){return this.string.slice(this.start,this.pos)},Lr.prototype.hideFirstChars=function(a,b){this.lineStart+=a;try{return b()}finally{this.lineStart-=a}},Lr.prototype.lookAhead=function(a){var b=this.lineOracle;return b&&b.lookAhead(a)},Lr.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function An(a,b){if(b-=a.first,b<0||b>=a.size)throw new Error("There is no line "+(b+a.first)+" in the document.");for(var z=a;!z.lines;)for(var x=0;;++x){var ee=z.children[x],se=ee.chunkSize();if(b<se){z=ee;break}b-=se}return z.lines[b]}function Rn(a,b,z){var x=[],ee=b.line;return a.iter(b.line,z.line+1,function(se){var ye=se.text;ee==z.line&&(ye=ye.slice(0,z.ch)),ee==b.line&&(ye=ye.slice(b.ch)),x.push(ye),++ee}),x}function dr(a,b,z){var x=[];return a.iter(b,z,function(ee){x.push(ee.text)}),x}function vr(a,b){var z=b-a.height;if(z)for(var x=a;x;x=x.parent)x.height+=z}function Mt(a){if(a.parent==null)return null;for(var b=a.parent,z=vt(b.lines,a),x=b.parent;x;b=x,x=x.parent)for(var ee=0;x.children[ee]!=b;++ee)z+=x.children[ee].chunkSize();return z+b.first}function Kt(a,b){var z=a.first;e:do{for(var x=0;x<a.children.length;++x){var ee=a.children[x],se=ee.height;if(b<se){a=ee;continue e}b-=se,z+=ee.chunkSize()}return z}while(!a.lines);for(var ye=0;ye<a.lines.length;++ye){var Me=a.lines[ye],Ve=Me.height;if(b<Ve)break;b-=Ve}return z+ye}function ft(a,b){return b>=a.first&&b<a.first+a.size}function Rt(a,b){return String(a.lineNumberFormatter(b+a.firstLineNumber))}function it(a,b,z){if(z===void 0&&(z=null),!(this instanceof it))return new it(a,b,z);this.line=a,this.ch=b,this.sticky=z}function ht(a,b){return a.line-b.line||a.ch-b.ch}function fn(a,b){return a.sticky==b.sticky&&ht(a,b)==0}function ar(a){return it(a.line,a.ch)}function pr(a,b){return ht(a,b)<0?b:a}function Ft(a,b){return ht(a,b)<0?a:b}function Tt(a,b){return Math.max(a.first,Math.min(b,a.first+a.size-1))}function _t(a,b){if(b.line<a.first)return it(a.first,0);var z=a.first+a.size-1;return b.line>z?it(z,An(a,z).text.length):Ut(b,An(a,b.line).text.length)}function Ut(a,b){var z=a.ch;return z==null||z>b?it(a.line,b):z<0?it(a.line,0):a}function Fn(a,b){for(var z=[],x=0;x<b.length;x++)z[x]=_t(a,b[x]);return z}var zn=function(a,b){this.state=a,this.lookAhead=b},Un=function(a,b,z,x){this.state=b,this.doc=a,this.line=z,this.maxLookAhead=x||0,this.baseTokens=null,this.baseTokenPos=1};Un.prototype.lookAhead=function(a){var b=this.doc.getLine(this.line+a);return b!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),b},Un.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var b=this.baseTokens[this.baseTokenPos+1];return{type:b&&b.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},Un.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Un.fromSaved=function(a,b,z){return b instanceof zn?new Un(a,Dr(a.mode,b.state),z,b.lookAhead):new Un(a,Dr(a.mode,b),z)},Un.prototype.save=function(a){var b=a!==!1?Dr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new zn(b,this.maxLookAhead):b};function jn(a,b,z,x){var ee=[a.state.modeGen],se={};ta(a,b.text,a.doc.mode,z,function(lt,un){return ee.push(lt,un)},se,x);for(var ye=z.state,Me=function(lt){z.baseTokens=ee;var un=a.state.overlays[lt],bn=1,Yn=0;z.state=!0,ta(a,b.text,un.mode,z,function(Wn,_r){for(var qr=bn;Yn<Wn;){var Ba=ee[bn];Ba>Wn&&ee.splice(bn,1,Wn,ee[bn+1],Ba),bn+=2,Yn=Math.min(Wn,Ba)}if(_r)if(un.opaque)ee.splice(qr,bn-qr,Wn,"overlay "+_r),bn=qr+2;else for(;qr<bn;qr+=2){var Ka=ee[qr+1];ee[qr+1]=(Ka?Ka+" ":"")+"overlay "+_r}},se),z.state=ye,z.baseTokens=null,z.baseTokenPos=1},Ve=0;Ve<a.state.overlays.length;++Ve)Me(Ve);return{styles:ee,classes:se.bgClass||se.textClass?se:null}}function gr(a,b,z){if(!b.styles||b.styles[0]!=a.state.modeGen){var x=Ir(a,Mt(b)),ee=b.text.length>a.options.maxHighlightLength&&Dr(a.doc.mode,x.state),se=jn(a,b,x);ee&&(x.state=ee),b.stateAfter=x.save(!ee),b.styles=se.styles,se.classes?b.styleClasses=se.classes:b.styleClasses&&(b.styleClasses=null),z===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return b.styles}function Ir(a,b,z){var x=a.doc,ee=a.display;if(!x.mode.startState)return new Un(x,!0,b);var se=xa(a,b,z),ye=se>x.first&&An(x,se-1).stateAfter,Me=ye?Un.fromSaved(x,ye,se):new Un(x,Hr(x.mode),se);return x.iter(se,b,function(Ve){Mr(a,Ve.text,Me);var lt=Me.line;Ve.stateAfter=lt==b-1||lt%5==0||lt>=ee.viewFrom&<<ee.viewTo?Me.save():null,Me.nextLine()}),z&&(x.modeFrontier=Me.line),Me}function Mr(a,b,z,x){var ee=a.doc.mode,se=new Lr(b,a.options.tabSize,z);for(se.start=se.pos=x||0,b==""&&Zr(ee,z.state);!se.eol();)Er(ee,se,z.state),se.start=se.pos}function Zr(a,b){if(a.blankLine)return a.blankLine(b);if(a.innerMode){var z=mr(a,b);if(z.mode.blankLine)return z.mode.blankLine(z.state)}}function Er(a,b,z,x){for(var ee=0;ee<10;ee++){x&&(x[0]=mr(a,z).mode);var se=a.token(b,z);if(b.pos>b.start)return se}throw new Error("Mode "+a.name+" failed to advance stream.")}var Rr=function(a,b,z){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=b||null,this.state=z};function Xr(a,b,z,x){var ee=a.doc,se=ee.mode,ye;b=_t(ee,b);var Me=An(ee,b.line),Ve=Ir(a,b.line,z),lt=new Lr(Me.text,a.options.tabSize,Ve),un;for(x&&(un=[]);(x||lt.pos<b.ch)&&!lt.eol();)lt.start=lt.pos,ye=Er(se,lt,Ve.state),x&&un.push(new Rr(lt,ye,Dr(ee.mode,Ve.state)));return x?un:new Rr(lt,ye,Ve.state)}function oa(a,b){if(a)for(;;){var z=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!z)break;a=a.slice(0,z.index)+a.slice(z.index+z[0].length);var x=z[1]?"bgClass":"textClass";b[x]==null?b[x]=z[2]:new RegExp("(?:^|\\s)"+z[2]+"(?:$|\\s)").test(b[x])||(b[x]+=" "+z[2])}return a}function ta(a,b,z,x,ee,se,ye){var Me=z.flattenSpans;Me==null&&(Me=a.options.flattenSpans);var Ve=0,lt=null,un=new Lr(b,a.options.tabSize,x),bn,Yn=a.options.addModeClass&&[null];for(b==""&&oa(Zr(z,x.state),se);!un.eol();){if(un.pos>a.options.maxHighlightLength?(Me=!1,ye&&Mr(a,b,x,un.pos),un.pos=b.length,bn=null):bn=oa(Er(z,un,x.state,Yn),se),Yn){var Wn=Yn[0].name;Wn&&(bn="m-"+(bn?Wn+" "+bn:Wn))}if(!Me||lt!=bn){for(;Ve<un.start;)Ve=Math.min(un.start,Ve+5e3),ee(Ve,lt);lt=bn}un.start=un.pos}for(;Ve<un.pos;){var _r=Math.min(un.pos,Ve+5e3);ee(_r,lt),Ve=_r}}function xa(a,b,z){for(var x,ee,se=a.doc,ye=z?-1:b-(a.doc.mode.innerMode?1e3:100),Me=b;Me>ye;--Me){if(Me<=se.first)return se.first;var Ve=An(se,Me-1),lt=Ve.stateAfter;if(lt&&(!z||Me+(lt instanceof zn?lt.lookAhead:0)<=se.modeFrontier))return Me;var un=Ce(Ve.text,null,a.options.tabSize);(ee==null||x>un)&&(ee=Me-1,x=un)}return ee}function Fa(a,b){if(a.modeFrontier=Math.min(a.modeFrontier,b),!(a.highlightFrontier<b-10)){for(var z=a.first,x=b-1;x>z;x--){var ee=An(a,x).stateAfter;if(ee&&(!(ee instanceof zn)||x+ee.lookAhead<b)){z=x+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,z)}}var Gr=!1,ya=!1;function Xa(){Gr=!0}function Ia(){ya=!0}function pa(a,b,z){this.marker=a,this.from=b,this.to=z}function kr(a,b){if(a)for(var z=0;z<a.length;++z){var x=a[z];if(x.marker==b)return x}}function Za(a,b){for(var z,x=0;x<a.length;++x)a[x]!=b&&(z||(z=[])).push(a[x]);return z}function Sa(a,b){a.markedSpans=a.markedSpans?a.markedSpans.concat([b]):[b],b.marker.attachLine(a)}function la(a,b,z){var x;if(a)for(var ee=0;ee<a.length;++ee){var se=a[ee],ye=se.marker,Me=se.from==null||(ye.inclusiveLeft?se.from<=b:se.from<b);if(Me||se.from==b&&ye.type=="bookmark"&&(!z||!se.marker.insertLeft)){var Ve=se.to==null||(ye.inclusiveRight?se.to>=b:se.to>b);(x||(x=[])).push(new pa(ye,se.from,Ve?null:se.to))}}return x}function Kr(a,b,z){var x;if(a)for(var ee=0;ee<a.length;++ee){var se=a[ee],ye=se.marker,Me=se.to==null||(ye.inclusiveRight?se.to>=b:se.to>b);if(Me||se.from==b&&ye.type=="bookmark"&&(!z||se.marker.insertLeft)){var Ve=se.from==null||(ye.inclusiveLeft?se.from<=b:se.from<b);(x||(x=[])).push(new pa(ye,Ve?null:se.from-b,se.to==null?null:se.to-b))}}return x}function Ya(a,b){if(b.full)return null;var z=ft(a,b.from.line)&&An(a,b.from.line).markedSpans,x=ft(a,b.to.line)&&An(a,b.to.line).markedSpans;if(!z&&!x)return null;var ee=b.from.ch,se=b.to.ch,ye=ht(b.from,b.to)==0,Me=la(z,ee,ye),Ve=Kr(x,se,ye),lt=b.text.length==1,un=mt(b.text).length+(lt?ee:0);if(Me)for(var bn=0;bn<Me.length;++bn){var Yn=Me[bn];if(Yn.to==null){var Wn=kr(Ve,Yn.marker);Wn?lt&&(Yn.to=Wn.to==null?null:Wn.to+un):Yn.to=ee}}if(Ve)for(var _r=0;_r<Ve.length;++_r){var qr=Ve[_r];if(qr.to!=null&&(qr.to+=un),qr.from==null){var Ba=kr(Me,qr.marker);Ba||(qr.from=un,lt&&(Me||(Me=[])).push(qr))}else qr.from+=un,lt&&(Me||(Me=[])).push(qr)}Me&&(Me=_i(Me)),Ve&&Ve!=Me&&(Ve=_i(Ve));var Ka=[Me];if(!lt){var ii=b.text.length-2,Wa;if(ii>0&&Me)for(var Ei=0;Ei<Me.length;++Ei)Me[Ei].to==null&&(Wa||(Wa=[])).push(new pa(Me[Ei].marker,null,null));for(var to=0;to<ii;++to)Ka.push(Wa);Ka.push(Ve)}return Ka}function _i(a){for(var b=0;b<a.length;++b){var z=a[b];z.from!=null&&z.from==z.to&&z.marker.clearWhenEmpty!==!1&&a.splice(b--,1)}return a.length?a:null}function $i(a,b,z){var x=null;if(a.iter(b.line,z.line+1,function(Wn){if(Wn.markedSpans)for(var _r=0;_r<Wn.markedSpans.length;++_r){var qr=Wn.markedSpans[_r].marker;qr.readOnly&&(!x||vt(x,qr)==-1)&&(x||(x=[])).push(qr)}}),!x)return null;for(var ee=[{from:b,to:z}],se=0;se<x.length;++se)for(var ye=x[se],Me=ye.find(0),Ve=0;Ve<ee.length;++Ve){var lt=ee[Ve];if(!(ht(lt.to,Me.from)<0||ht(lt.from,Me.to)>0)){var un=[Ve,1],bn=ht(lt.from,Me.from),Yn=ht(lt.to,Me.to);(bn<0||!ye.inclusiveLeft&&!bn)&&un.push({from:lt.from,to:Me.from}),(Yn>0||!ye.inclusiveRight&&!Yn)&&un.push({from:Me.to,to:lt.to}),ee.splice.apply(ee,un),Ve+=un.length-3}}return ee}function za(a){var b=a.markedSpans;if(b){for(var z=0;z<b.length;++z)b[z].marker.detachLine(a);a.markedSpans=null}}function Di(a,b){if(b){for(var z=0;z<b.length;++z)b[z].marker.attachLine(a);a.markedSpans=b}}function pi(a){return a.inclusiveLeft?-1:0}function Wi(a){return a.inclusiveRight?1:0}function Ci(a,b){var z=a.lines.length-b.lines.length;if(z!=0)return z;var x=a.find(),ee=b.find(),se=ht(x.from,ee.from)||pi(a)-pi(b);if(se)return-se;var ye=ht(x.to,ee.to)||Wi(a)-Wi(b);return ye||b.id-a.id}function ei(a,b){var z=ya&&a.markedSpans,x;if(z)for(var ee=void 0,se=0;se<z.length;++se)ee=z[se],ee.marker.collapsed&&(b?ee.from:ee.to)==null&&(!x||Ci(x,ee.marker)<0)&&(x=ee.marker);return x}function Pr(a){return ei(a,!0)}function Qn(a){return ei(a,!1)}function Cr(a,b){var z=ya&&a.markedSpans,x;if(z)for(var ee=0;ee<z.length;++ee){var se=z[ee];se.marker.collapsed&&(se.from==null||se.from<b)&&(se.to==null||se.to>b)&&(!x||Ci(x,se.marker)<0)&&(x=se.marker)}return x}function xr(a,b,z,x,ee){var se=An(a,b),ye=ya&&se.markedSpans;if(ye)for(var Me=0;Me<ye.length;++Me){var Ve=ye[Me];if(Ve.marker.collapsed){var lt=Ve.marker.find(0),un=ht(lt.from,z)||pi(Ve.marker)-pi(ee),bn=ht(lt.to,x)||Wi(Ve.marker)-Wi(ee);if(!(un>=0&&bn<=0||un<=0&&bn>=0)&&(un<=0&&(Ve.marker.inclusiveRight&&ee.inclusiveLeft?ht(lt.to,z)>=0:ht(lt.to,z)>0)||un>=0&&(Ve.marker.inclusiveRight&&ee.inclusiveLeft?ht(lt.from,x)<=0:ht(lt.from,x)<0)))return!0}}}function tr(a){for(var b;b=Pr(a);)a=b.find(-1,!0).line;return a}function jr(a){for(var b;b=Qn(a);)a=b.find(1,!0).line;return a}function sa(a){for(var b,z;b=Qn(a);)a=b.find(1,!0).line,(z||(z=[])).push(a);return z}function br(a,b){var z=An(a,b),x=tr(z);return z==x?b:Mt(x)}function Br(a,b){if(b>a.lastLine())return b;var z=An(a,b),x;if(!$r(a,z))return b;for(;x=Qn(z);)z=x.find(1,!0).line;return Mt(z)+1}function $r(a,b){var z=ya&&b.markedSpans;if(z){for(var x=void 0,ee=0;ee<z.length;++ee)if(x=z[ee],!!x.marker.collapsed){if(x.from==null)return!0;if(!x.marker.widgetNode&&x.from==0&&x.marker.inclusiveLeft&&Qr(a,b,x))return!0}}}function Qr(a,b,z){if(z.to==null){var x=z.marker.find(1,!0);return Qr(a,x.line,kr(x.line.markedSpans,z.marker))}if(z.marker.inclusiveRight&&z.to==b.text.length)return!0;for(var ee=void 0,se=0;se<b.markedSpans.length;++se)if(ee=b.markedSpans[se],ee.marker.collapsed&&!ee.marker.widgetNode&&ee.from==z.to&&(ee.to==null||ee.to!=z.from)&&(ee.marker.inclusiveLeft||z.marker.inclusiveRight)&&Qr(a,b,ee))return!0}function Ta(a){a=tr(a);for(var b=0,z=a.parent,x=0;x<z.lines.length;++x){var ee=z.lines[x];if(ee==a)break;b+=ee.height}for(var se=z.parent;se;z=se,se=z.parent)for(var ye=0;ye<se.children.length;++ye){var Me=se.children[ye];if(Me==z)break;b+=Me.height}return b}function ja(a){if(a.height==0)return 0;for(var b=a.text.length,z,x=a;z=Pr(x);){var ee=z.find(0,!0);x=ee.from.line,b+=ee.from.ch-ee.to.ch}for(x=a;z=Qn(x);){var se=z.find(0,!0);b-=x.text.length-se.from.ch,x=se.to.line,b+=x.text.length-se.to.ch}return b}function ea(a){var b=a.display,z=a.doc;b.maxLine=An(z,z.first),b.maxLineLength=ja(b.maxLine),b.maxLineChanged=!0,z.iter(function(x){var ee=ja(x);ee>b.maxLineLength&&(b.maxLineLength=ee,b.maxLine=x)})}var ai=function(a,b,z){this.text=a,Di(this,b),this.height=z?z(this):1};ai.prototype.lineNo=function(){return Mt(this)},Je(ai);function yi(a,b,z,x){a.text=b,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),za(a),Di(a,z);var ee=x?x(a):1;ee!=a.height&&vr(a,ee)}function zi(a){a.parent=null,za(a)}var Gi={},Ji={};function Yi(a,b){if(!a||/^\s*$/.test(a))return null;var z=b.addModeClass?Ji:Gi;return z[a]||(z[a]=a.replace(/\S+/g,"cm-$&"))}function co(a,b){var z=Ue("span",null,null,Se?"padding-right: .1px":null),x={pre:Ue("pre",[z],"CodeMirror-line"),content:z,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};b.measure={};for(var ee=0;ee<=(b.rest?b.rest.length:0);ee++){var se=ee?b.rest[ee-1]:b.line,ye=void 0;x.pos=0,x.addToken=jo,Gn(a.display.measure)&&(ye=Ye(se,a.doc.direction))&&(x.addToken=Da(x.addToken,ye)),x.map=[];var Me=b!=a.display.externalMeasured&&Mt(se);ri(se,x,gr(a,se,Me)),se.styleClasses&&(se.styleClasses.bgClass&&(x.bgClass=wt(se.styleClasses.bgClass,x.bgClass||"")),se.styleClasses.textClass&&(x.textClass=wt(se.styleClasses.textClass,x.textClass||""))),x.map.length==0&&x.map.push(0,0,x.content.appendChild(qt(a.display.measure))),ee==0?(b.measure.map=x.map,b.measure.cache={}):((b.measure.maps||(b.measure.maps=[])).push(x.map),(b.measure.caches||(b.measure.caches=[])).push({}))}if(Se){var Ve=x.content.lastChild;(/\bcm-tab\b/.test(Ve.className)||Ve.querySelector&&Ve.querySelector(".cm-tab"))&&(x.content.className="cm-tab-wrap-hack")}return pn(a,"renderLine",a,b.line,x.pre),x.pre.className&&(x.textClass=wt(x.pre.className,x.textClass||"")),x}function No(a){var b=ot("span","\u2022","cm-invalidchar");return b.title="\\u"+a.charCodeAt(0).toString(16),b.setAttribute("aria-label",b.title),b}function jo(a,b,z,x,ee,se,ye){if(b){var Me=a.splitSpaces?Wo(b,a.trailingSpace):b,Ve=a.cm.state.specialChars,lt=!1,un;if(!Ve.test(b))a.col+=b.length,un=document.createTextNode(Me),a.map.push(a.pos,a.pos+b.length,un),xe&&ge<9&&(lt=!0),a.pos+=b.length;else{un=document.createDocumentFragment();for(var bn=0;;){Ve.lastIndex=bn;var Yn=Ve.exec(b),Wn=Yn?Yn.index-bn:b.length-bn;if(Wn){var _r=document.createTextNode(Me.slice(bn,bn+Wn));xe&&ge<9?un.appendChild(ot("span",[_r])):un.appendChild(_r),a.map.push(a.pos,a.pos+Wn,_r),a.col+=Wn,a.pos+=Wn}if(!Yn)break;bn+=Wn+1;var qr=void 0;if(Yn[0]==" "){var Ba=a.cm.options.tabSize,Ka=Ba-a.col%Ba;qr=un.appendChild(ot("span",Ct(Ka),"cm-tab")),qr.setAttribute("role","presentation"),qr.setAttribute("cm-text"," "),a.col+=Ka}else Yn[0]=="\r"||Yn[0]==`
|
|
|
`?(qr=un.appendChild(ot("span",Yn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),qr.setAttribute("cm-text",Yn[0]),a.col+=1):(qr=a.cm.options.specialCharPlaceholder(Yn[0]),qr.setAttribute("cm-text",Yn[0]),xe&&ge<9?un.appendChild(ot("span",[qr])):un.appendChild(qr),a.col+=1);a.map.push(a.pos,a.pos+1,qr),a.pos++}}if(a.trailingSpace=Me.charCodeAt(b.length-1)==32,z||x||ee||lt||se||ye){var ii=z||"";x&&(ii+=x),ee&&(ii+=ee);var Wa=ot("span",[un],ii,se);if(ye)for(var Ei in ye)ye.hasOwnProperty(Ei)&&Ei!="style"&&Ei!="class"&&Wa.setAttribute(Ei,ye[Ei]);return a.content.appendChild(Wa)}a.content.appendChild(un)}}function Wo(a,b){if(a.length>1&&!/ /.test(a))return a;for(var z=b,x="",ee=0;ee<a.length;ee++){var se=a.charAt(ee);se==" "&&z&&(ee==a.length-1||a.charCodeAt(ee+1)==32)&&(se="\xA0"),x+=se,z=se==" "}return x}function Da(a,b){return function(z,x,ee,se,ye,Me,Ve){ee=ee?ee+" cm-force-border":"cm-force-border";for(var lt=z.pos,un=lt+x.length;;){for(var bn=void 0,Yn=0;Yn<b.length&&(bn=b[Yn],!(bn.to>lt&&bn.from<=lt));Yn++);if(bn.to>=un)return a(z,x,ee,se,ye,Me,Ve);a(z,x.slice(0,bn.to-lt),ee,se,null,Me,Ve),se=null,x=x.slice(bn.to-lt),lt=bn.to}}}function Fi(a,b,z,x){var ee=!x&&z.widgetNode;ee&&a.map.push(a.pos,a.pos+b,ee),!x&&a.cm.display.input.needsContentAttribute&&(ee||(ee=a.content.appendChild(document.createElement("span"))),ee.setAttribute("cm-marker",z.id)),ee&&(a.cm.display.input.setUneditable(ee),a.content.appendChild(ee)),a.pos+=b,a.trailingSpace=!1}function ri(a,b,z){var x=a.markedSpans,ee=a.text,se=0;if(!x){for(var ye=1;ye<z.length;ye+=2)b.addToken(b,ee.slice(se,se=z[ye]),Yi(z[ye+1],b.cm.options));return}for(var Me=ee.length,Ve=0,lt=1,un="",bn,Yn,Wn=0,_r,qr,Ba,Ka,ii;;){if(Wn==Ve){_r=qr=Ba=Yn="",ii=null,Ka=null,Wn=1/0;for(var Wa=[],Ei=void 0,to=0;to<x.length;++to){var Ui=x[to],Bo=Ui.marker;if(Bo.type=="bookmark"&&Ui.from==Ve&&Bo.widgetNode)Wa.push(Bo);else if(Ui.from<=Ve&&(Ui.to==null||Ui.to>Ve||Bo.collapsed&&Ui.to==Ve&&Ui.from==Ve)){if(Ui.to!=null&&Ui.to!=Ve&&Wn>Ui.to&&(Wn=Ui.to,qr=""),Bo.className&&(_r+=" "+Bo.className),Bo.css&&(Yn=(Yn?Yn+";":"")+Bo.css),Bo.startStyle&&Ui.from==Ve&&(Ba+=" "+Bo.startStyle),Bo.endStyle&&Ui.to==Wn&&(Ei||(Ei=[])).push(Bo.endStyle,Ui.to),Bo.title&&((ii||(ii={})).title=Bo.title),Bo.attributes)for(var ml in Bo.attributes)(ii||(ii={}))[ml]=Bo.attributes[ml];Bo.collapsed&&(!Ka||Ci(Ka.marker,Bo)<0)&&(Ka=Ui)}else Ui.from>Ve&&Wn>Ui.from&&(Wn=Ui.from)}if(Ei)for(var ql=0;ql<Ei.length;ql+=2)Ei[ql+1]==Wn&&(qr+=" "+Ei[ql]);if(!Ka||Ka.from==Ve)for(var Al=0;Al<Wa.length;++Al)Fi(b,0,Wa[Al]);if(Ka&&(Ka.from||0)==Ve){if(Fi(b,(Ka.to==null?Me+1:Ka.to)-Ve,Ka.marker,Ka.from==null),Ka.to==null)return;Ka.to==Ve&&(Ka=!1)}}if(Ve>=Me)break;for(var Cs=Math.min(Me,Wn);;){if(un){var fs=Ve+un.length;if(!Ka){var kl=fs>Cs?un.slice(0,Cs-Ve):un;b.addToken(b,kl,bn?bn+_r:_r,Ba,Ve+kl.length==Wn?qr:"",Yn,ii)}if(fs>=Cs){un=un.slice(Cs-Ve),Ve=Cs;break}Ve=fs,Ba=""}un=ee.slice(se,se=z[lt++]),bn=Yi(z[lt++],b.cm.options)}}}function So(a,b,z){this.line=b,this.rest=sa(b),this.size=this.rest?Mt(mt(this.rest))-z+1:1,this.node=this.text=null,this.hidden=$r(a,b)}function di(a,b,z){for(var x=[],ee,se=b;se<z;se=ee){var ye=new So(a.doc,An(a.doc,se),se);ee=se+ye.size,x.push(ye)}return x}var il=null;function jl(a){il?il.ops.push(a):a.ownsGroup=il={ops:[a],delayedCallbacks:[]}}function Pl(a){var b=a.delayedCallbacks,z=0;do{for(;z<b.length;z++)b[z].call(null);for(var x=0;x<a.ops.length;x++){var ee=a.ops[x];if(ee.cursorActivityHandlers)for(;ee.cursorActivityCalled<ee.cursorActivityHandlers.length;)ee.cursorActivityHandlers[ee.cursorActivityCalled++].call(null,ee.cm)}}while(z<b.length)}function Vo(a,b){var z=a.ownsGroup;if(z)try{Pl(z)}finally{il=null,b(z)}}var Yo=null;function no(a,b){var z=sn(a,b);if(z.length){var x=Array.prototype.slice.call(arguments,2),ee;il?ee=il.delayedCallbacks:Yo?ee=Yo:(ee=Yo=[],setTimeout(Ol,0));for(var se=function(Me){ee.push(function(){return z[Me].apply(null,x)})},ye=0;ye<z.length;++ye)se(ye)}}function Ol(){var a=Yo;Yo=null;for(var b=0;b<a.length;++b)a[b]()}function Gl(a,b,z,x){for(var ee=0;ee<b.changes.length;ee++){var se=b.changes[ee];se=="text"?as(a,b):se=="gutter"?Qi(a,b,z,x):se=="class"?Ni(a,b):se=="widget"&&Ii(a,b,x)}b.changes=null}function Nl(a){return a.node==a.text&&(a.node=ot("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),xe&&ge<8&&(a.node.style.zIndex=2)),a.node}function Fo(a,b){var z=b.bgClass?b.bgClass+" "+(b.line.bgClass||""):b.line.bgClass;if(z&&(z+=" CodeMirror-linebackground"),b.background)z?b.background.className=z:(b.background.parentNode.removeChild(b.background),b.background=null);else if(z){var x=Nl(b);b.background=x.insertBefore(ot("div",null,z),x.firstChild),a.display.input.setUneditable(b.background)}}function es(a,b){var z=a.display.externalMeasured;return z&&z.line==b.line?(a.display.externalMeasured=null,b.measure=z.measure,z.built):co(a,b)}function as(a,b){var z=b.text.className,x=es(a,b);b.text==b.node&&(b.node=x.pre),b.text.parentNode.replaceChild(x.pre,b.text),b.text=x.pre,x.bgClass!=b.bgClass||x.textClass!=b.textClass?(b.bgClass=x.bgClass,b.textClass=x.textClass,Ni(a,b)):z&&(b.text.className=z)}function Ni(a,b){Fo(a,b),b.line.wrapClass?Nl(b).className=b.line.wrapClass:b.node!=b.text&&(b.node.className="");var z=b.textClass?b.textClass+" "+(b.line.textClass||""):b.line.textClass;b.text.className=z||""}function Qi(a,b,z,x){if(b.gutter&&(b.node.removeChild(b.gutter),b.gutter=null),b.gutterBackground&&(b.node.removeChild(b.gutterBackground),b.gutterBackground=null),b.line.gutterClass){var ee=Nl(b);b.gutterBackground=ot("div",null,"CodeMirror-gutter-background "+b.line.gutterClass,"left: "+(a.options.fixedGutter?x.fixedPos:-x.gutterTotalWidth)+"px; width: "+x.gutterTotalWidth+"px"),a.display.input.setUneditable(b.gutterBackground),ee.insertBefore(b.gutterBackground,b.text)}var se=b.line.gutterMarkers;if(a.options.lineNumbers||se){var ye=Nl(b),Me=b.gutter=ot("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?x.fixedPos:-x.gutterTotalWidth)+"px");if(a.display.input.setUneditable(Me),ye.insertBefore(Me,b.text),b.line.gutterClass&&(Me.className+=" "+b.line.gutterClass),a.options.lineNumbers&&(!se||!se["CodeMirror-linenumbers"])&&(b.lineNumber=Me.appendChild(ot("div",Rt(a.options,z),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+x.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),se)for(var Ve=0;Ve<a.display.gutterSpecs.length;++Ve){var lt=a.display.gutterSpecs[Ve].className,un=se.hasOwnProperty(lt)&&se[lt];un&&Me.appendChild(ot("div",[un],"CodeMirror-gutter-elt","left: "+x.gutterLeft[lt]+"px; width: "+x.gutterWidth[lt]+"px"))}}}function Ii(a,b,z){b.alignable&&(b.alignable=null);for(var x=He("CodeMirror-linewidget"),ee=b.node.firstChild,se=void 0;ee;ee=se)se=ee.nextSibling,x.test(ee.className)&&b.node.removeChild(ee);Hi(a,b,z)}function hi(a,b,z,x){var ee=es(a,b);return b.text=b.node=ee.pre,ee.bgClass&&(b.bgClass=ee.bgClass),ee.textClass&&(b.textClass=ee.textClass),Ni(a,b),Qi(a,b,z,x),Hi(a,b,x),b.node}function Hi(a,b,z){if(uo(a,b.line,b,z,!0),b.rest)for(var x=0;x<b.rest.length;x++)uo(a,b.rest[x],b,z,!1)}function uo(a,b,z,x,ee){if(b.widgets)for(var se=Nl(z),ye=0,Me=b.widgets;ye<Me.length;++ye){var Ve=Me[ye],lt=ot("div",[Ve.node],"CodeMirror-linewidget"+(Ve.className?" "+Ve.className:""));Ve.handleMouseEvents||lt.setAttribute("cm-ignore-events","true"),Fl(Ve,lt,z,x),a.display.input.setUneditable(lt),ee&&Ve.above?se.insertBefore(lt,z.gutter||z.text):se.appendChild(lt),no(Ve,"redraw")}}function Fl(a,b,z,x){if(a.noHScroll){(z.alignable||(z.alignable=[])).push(b);var ee=x.wrapperWidth;b.style.left=x.fixedPos+"px",a.coverGutter||(ee-=x.gutterTotalWidth,b.style.paddingLeft=x.gutterTotalWidth+"px"),b.style.width=ee+"px"}a.coverGutter&&(b.style.zIndex=5,b.style.position="relative",a.noHScroll||(b.style.marginLeft=-x.gutterTotalWidth+"px"))}function oo(a){if(a.height!=null)return a.height;var b=a.doc.cm;if(!b)return 0;if(!We(document.body,a.node)){var z="position: relative;";a.coverGutter&&(z+="margin-left: -"+b.display.gutters.offsetWidth+"px;"),a.noHScroll&&(z+="width: "+b.display.wrapper.clientWidth+"px;"),gt(b.display.measure,ot("div",[a.node],null,z))}return a.height=a.node.parentNode.offsetHeight}function Qo(a,b){for(var z=Nt(b);z!=a.wrapper;z=z.parentNode)if(!z||z.nodeType==1&&z.getAttribute("cm-ignore-events")=="true"||z.parentNode==a.sizer&&z!=a.mover)return!0}function Jo(a){return a.lineSpace.offsetTop}function vn(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function gn(a){if(a.cachedPaddingH)return a.cachedPaddingH;var b=gt(a.measure,ot("pre","x","CodeMirror-line-like")),z=window.getComputedStyle?window.getComputedStyle(b):b.currentStyle,x={left:parseInt(z.paddingLeft),right:parseInt(z.paddingRight)};return!isNaN(x.left)&&!isNaN(x.right)&&(a.cachedPaddingH=x),x}function Nn(a){return zt-a.display.nativeBarWidth}function Sr(a){return a.display.scroller.clientWidth-Nn(a)-a.display.barWidth}function Or(a){return a.display.scroller.clientHeight-Nn(a)-a.display.barHeight}function rr(a,b,z){var x=a.options.lineWrapping,ee=x&&Sr(a);if(!b.measure.heights||x&&b.measure.width!=ee){var se=b.measure.heights=[];if(x){b.measure.width=ee;for(var ye=b.text.firstChild.getClientRects(),Me=0;Me<ye.length-1;Me++){var Ve=ye[Me],lt=ye[Me+1];Math.abs(Ve.bottom-lt.bottom)>2&&se.push((Ve.bottom+lt.top)/2-z.top)}}se.push(z.bottom-z.top)}}function ir(a,b,z){if(a.line==b)return{map:a.measure.map,cache:a.measure.cache};for(var x=0;x<a.rest.length;x++)if(a.rest[x]==b)return{map:a.measure.maps[x],cache:a.measure.caches[x]};for(var ee=0;ee<a.rest.length;ee++)if(Mt(a.rest[ee])>z)return{map:a.measure.maps[ee],cache:a.measure.caches[ee],before:!0}}function kn(a,b){b=tr(b);var z=Mt(b),x=a.display.externalMeasured=new So(a.doc,b,z);x.lineN=z;var ee=x.built=co(a,x);return x.text=ee.pre,gt(a.display.lineMeasure,ee.pre),x}function qn(a,b,z,x){return xi(a,na(a,b),z,x)}function yr(a,b){if(b>=a.display.viewFrom&&b<a.display.viewTo)return a.display.view[Aa(a,b)];var z=a.display.externalMeasured;if(z&&b>=z.lineN&&b<z.lineN+z.size)return z}function na(a,b){var z=Mt(b),x=yr(a,z);x&&!x.text?x=null:x&&x.changes&&(Gl(a,x,z,Wr(a)),a.curOp.forceUpdate=!0),x||(x=kn(a,b));var ee=ir(x,b,z);return{line:b,view:x,rect:null,map:ee.map,cache:ee.cache,before:ee.before,hasHeights:!1}}function xi(a,b,z,x,ee){b.before&&(z=-1);var se=z+(x||""),ye;return b.cache.hasOwnProperty(se)?ye=b.cache[se]:(b.rect||(b.rect=b.view.text.getBoundingClientRect()),b.hasHeights||(rr(a,b.view,b.rect),b.hasHeights=!0),ye=Ha(a,b,z,x),ye.bogus||(b.cache[se]=ye)),{left:ye.left,right:ye.right,top:ee?ye.rtop:ye.top,bottom:ee?ye.rbottom:ye.bottom}}var ki={left:0,right:0,top:0,bottom:0};function fo(a,b,z){for(var x,ee,se,ye,Me,Ve,lt=0;lt<a.length;lt+=3)if(Me=a[lt],Ve=a[lt+1],b<Me?(ee=0,se=1,ye="left"):b<Ve?(ee=b-Me,se=ee+1):(lt==a.length-3||b==Ve&&a[lt+3]>b)&&(se=Ve-Me,ee=se-1,b>=Ve&&(ye="right")),ee!=null){if(x=a[lt+2],Me==Ve&&z==(x.insertLeft?"left":"right")&&(ye=z),z=="left"&&ee==0)for(;lt&&a[lt-2]==a[lt-3]&&a[lt-1].insertLeft;)x=a[(lt-=3)+2],ye="left";if(z=="right"&&ee==Ve-Me)for(;lt<a.length-3&&a[lt+3]==a[lt+4]&&!a[lt+5].insertLeft;)x=a[(lt+=3)+2],ye="right";break}return{node:x,start:ee,end:se,collapse:ye,coverStart:Me,coverEnd:Ve}}function ro(a,b){var z=ki;if(b=="left")for(var x=0;x<a.length&&(z=a[x]).left==z.right;x++);else for(var ee=a.length-1;ee>=0&&(z=a[ee]).left==z.right;ee--);return z}function Ha(a,b,z,x){var ee=fo(b.map,z,x),se=ee.node,ye=ee.start,Me=ee.end,Ve=ee.collapse,lt;if(se.nodeType==3){for(var un=0;un<4;un++){for(;ye&&Ze(b.line.text.charAt(ee.coverStart+ye));)--ye;for(;ee.coverStart+Me<ee.coverEnd&&Ze(b.line.text.charAt(ee.coverStart+Me));)++Me;if(xe&&ge<9&&ye==0&&Me==ee.coverEnd-ee.coverStart?lt=se.parentNode.getBoundingClientRect():lt=ro(Ee(se,ye,Me).getClientRects(),x),lt.left||lt.right||ye==0)break;Me=ye,ye=ye-1,Ve="right"}xe&&ge<11&&(lt=ma(a.display.measure,lt))}else{ye>0&&(Ve=x="right");var bn;a.options.lineWrapping&&(bn=se.getClientRects()).length>1?lt=bn[x=="right"?bn.length-1:0]:lt=se.getBoundingClientRect()}if(xe&&ge<9&&!ye&&(!lt||!lt.left&&!lt.right)){var Yn=se.parentNode.getClientRects()[0];Yn?lt={left:Yn.left,right:Yn.left+aa(a.display),top:Yn.top,bottom:Yn.bottom}:lt=ki}for(var Wn=lt.top-b.rect.top,_r=lt.bottom-b.rect.top,qr=(Wn+_r)/2,Ba=b.view.measure.heights,Ka=0;Ka<Ba.length-1&&!(qr<Ba[Ka]);Ka++);var ii=Ka?Ba[Ka-1]:0,Wa=Ba[Ka],Ei={left:(Ve=="right"?lt.right:lt.left)-b.rect.left,right:(Ve=="left"?lt.left:lt.right)-b.rect.left,top:ii,bottom:Wa};return!lt.left&&!lt.right&&(Ei.bogus=!0),a.options.singleCursorHeightPerLine||(Ei.rtop=Wn,Ei.rbottom=_r),Ei}function ma(a,b){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!nn(a))return b;var z=screen.logicalXDPI/screen.deviceXDPI,x=screen.logicalYDPI/screen.deviceYDPI;return{left:b.left*z,right:b.right*z,top:b.top*x,bottom:b.bottom*x}}function Vr(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var b=0;b<a.rest.length;b++)a.measure.caches[b]={}}function Ti(a){a.display.externalMeasure=null,St(a.display.lineMeasure);for(var b=0;b<a.display.view.length;b++)Vr(a.display.view[b])}function Li(a){Ti(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function vo(){return Be&&Te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function To(){return Be&&Te?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Pi(a){var b=0;if(a.widgets)for(var z=0;z<a.widgets.length;++z)a.widgets[z].above&&(b+=oo(a.widgets[z]));return b}function go(a,b,z,x,ee){if(!ee){var se=Pi(b);z.top+=se,z.bottom+=se}if(x=="line")return z;x||(x="local");var ye=Ta(b);if(x=="local"?ye+=Jo(a.display):ye-=a.display.viewOffset,x=="page"||x=="window"){var Me=a.display.lineSpace.getBoundingClientRect();ye+=Me.top+(x=="window"?0:To());var Ve=Me.left+(x=="window"?0:vo());z.left+=Ve,z.right+=Ve}return z.top+=ye,z.bottom+=ye,z}function bi(a,b,z){if(z=="div")return b;var x=b.left,ee=b.top;if(z=="page")x-=vo(),ee-=To();else if(z=="local"||!z){var se=a.display.sizer.getBoundingClientRect();x+=se.left,ee+=se.top}var ye=a.display.lineSpace.getBoundingClientRect();return{left:x-ye.left,top:ee-ye.top}}function ga(a,b,z,x,ee){return x||(x=An(a.doc,b.line)),go(a,x,qn(a,x,b.ch,ee),z)}function vi(a,b,z,x,ee,se){x=x||An(a.doc,b.line),ee||(ee=na(a,x));function ye(_r,qr){var Ba=xi(a,ee,_r,qr?"right":"left",se);return qr?Ba.left=Ba.right:Ba.right=Ba.left,go(a,x,Ba,z)}var Me=Ye(x,a.doc.direction),Ve=b.ch,lt=b.sticky;if(Ve>=x.text.length?(Ve=x.text.length,lt="before"):Ve<=0&&(Ve=0,lt="after"),!Me)return ye(lt=="before"?Ve-1:Ve,lt=="before");function un(_r,qr,Ba){var Ka=Me[qr],ii=Ka.level==1;return ye(Ba?_r-1:_r,ii!=Ba)}var bn=At(Me,Ve,lt),Yn=bt,Wn=un(Ve,bn,lt=="before");return Yn!=null&&(Wn.other=un(Ve,Yn,lt!="before")),Wn}function fi(a,b){var z=0;b=_t(a.doc,b),a.options.lineWrapping||(z=aa(a.display)*b.ch);var x=An(a.doc,b.line),ee=Ta(x)+Jo(a.display);return{left:z,right:z,top:ee,bottom:ee+x.height}}function si(a,b,z,x,ee){var se=it(a,b,z);return se.xRel=ee,x&&(se.outside=x),se}function Bt(a,b,z){var x=a.doc;if(z+=a.display.viewOffset,z<0)return si(x.first,0,null,-1,-1);var ee=Kt(x,z),se=x.first+x.size-1;if(ee>se)return si(x.first+x.size-1,An(x,se).text.length,null,1,1);b<0&&(b=0);for(var ye=An(x,ee);;){var Me=Va(a,ye,ee,b,z),Ve=Cr(ye,Me.ch+(Me.xRel>0||Me.outside>0?1:0));if(!Ve)return Me;var lt=Ve.find(1);if(lt.line==ee)return lt;ye=An(x,ee=lt.line)}}function Xt(a,b,z,x){x-=Pi(b);var ee=b.text.length,se=at(function(ye){return xi(a,z,ye-1).bottom<=x},ee,0);return ee=at(function(ye){return xi(a,z,ye).top>x},se,ee),{begin:se,end:ee}}function an(a,b,z,x){z||(z=na(a,b));var ee=go(a,b,xi(a,z,x),"line").top;return Xt(a,b,z,ee)}function In(a,b,z,x){return a.bottom<=z?!1:a.top>z?!0:(x?a.left:a.right)>b}function Va(a,b,z,x,ee){ee-=Ta(b);var se=na(a,b),ye=Pi(b),Me=0,Ve=b.text.length,lt=!0,un=Ye(b,a.doc.direction);if(un){var bn=(a.options.lineWrapping?Jn:zr)(a,b,z,se,un,x,ee);lt=bn.level!=1,Me=lt?bn.from:bn.to-1,Ve=lt?bn.to:bn.from-1}var Yn=null,Wn=null,_r=at(function(to){var Ui=xi(a,se,to);return Ui.top+=ye,Ui.bottom+=ye,In(Ui,x,ee,!1)?(Ui.top<=ee&&Ui.left<=x&&(Yn=to,Wn=Ui),!0):!1},Me,Ve),qr,Ba,Ka=!1;if(Wn){var ii=x-Wn.left<Wn.right-x,Wa=ii==lt;_r=Yn+(Wa?0:1),Ba=Wa?"after":"before",qr=ii?Wn.left:Wn.right}else{!lt&&(_r==Ve||_r==Me)&&_r++,Ba=_r==0?"after":_r==b.text.length?"before":xi(a,se,_r-(lt?1:0)).bottom+ye<=ee==lt?"after":"before";var Ei=vi(a,it(z,_r,Ba),"line",b,se);qr=Ei.left,Ka=ee<Ei.top?-1:ee>=Ei.bottom?1:0}return _r=Ot(b.text,_r,1),si(z,_r,Ba,Ka,x-qr)}function zr(a,b,z,x,ee,se,ye){var Me=at(function(bn){var Yn=ee[bn],Wn=Yn.level!=1;return In(vi(a,it(z,Wn?Yn.to:Yn.from,Wn?"before":"after"),"line",b,x),se,ye,!0)},0,ee.length-1),Ve=ee[Me];if(Me>0){var lt=Ve.level!=1,un=vi(a,it(z,lt?Ve.from:Ve.to,lt?"after":"before"),"line",b,x);In(un,se,ye,!0)&&un.top>ye&&(Ve=ee[Me-1])}return Ve}function Jn(a,b,z,x,ee,se,ye){var Me=Xt(a,b,x,ye),Ve=Me.begin,lt=Me.end;/\s/.test(b.text.charAt(lt-1))&<--;for(var un=null,bn=null,Yn=0;Yn<ee.length;Yn++){var Wn=ee[Yn];if(!(Wn.from>=lt||Wn.to<=Ve)){var _r=Wn.level!=1,qr=xi(a,x,_r?Math.min(lt,Wn.to)-1:Math.max(Ve,Wn.from)).right,Ba=qr<se?se-qr+1e9:qr-se;(!un||bn>Ba)&&(un=Wn,bn=Ba)}}return un||(un=ee[ee.length-1]),un.from<Ve&&(un={from:Ve,to:un.to,level:un.level}),un.to>lt&&(un={from:un.from,to:lt,level:un.level}),un}var hr;function Ar(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(hr==null){hr=ot("pre",null,"CodeMirror-line-like");for(var b=0;b<49;++b)hr.appendChild(document.createTextNode("x")),hr.appendChild(ot("br"));hr.appendChild(document.createTextNode("x"))}gt(a.measure,hr);var z=hr.offsetHeight/50;return z>3&&(a.cachedTextHeight=z),St(a.measure),z||1}function aa(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var b=ot("span","xxxxxxxxxx"),z=ot("pre",[b],"CodeMirror-line-like");gt(a.measure,z);var x=b.getBoundingClientRect(),ee=(x.right-x.left)/10;return ee>2&&(a.cachedCharWidth=ee),ee||10}function Wr(a){for(var b=a.display,z={},x={},ee=b.gutters.clientLeft,se=b.gutters.firstChild,ye=0;se;se=se.nextSibling,++ye){var Me=a.display.gutterSpecs[ye].className;z[Me]=se.offsetLeft+se.clientLeft+ee,x[Me]=se.clientWidth}return{fixedPos:or(b),gutterTotalWidth:b.gutters.offsetWidth,gutterLeft:z,gutterWidth:x,wrapperWidth:b.wrapper.clientWidth}}function or(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function ha(a){var b=Ar(a.display),z=a.options.lineWrapping,x=z&&Math.max(5,a.display.scroller.clientWidth/aa(a.display)-3);return function(ee){if($r(a.doc,ee))return 0;var se=0;if(ee.widgets)for(var ye=0;ye<ee.widgets.length;ye++)ee.widgets[ye].height&&(se+=ee.widgets[ye].height);return z?se+(Math.ceil(ee.text.length/x)||1)*b:se+b}}function fa(a){var b=a.doc,z=ha(a);b.iter(function(x){var ee=z(x);ee!=x.height&&vr(x,ee)})}function Nr(a,b,z,x){var ee=a.display;if(!z&&Nt(b).getAttribute("cm-not-content")=="true")return null;var se,ye,Me=ee.lineSpace.getBoundingClientRect();try{se=b.clientX-Me.left,ye=b.clientY-Me.top}catch(bn){return null}var Ve=Bt(a,se,ye),lt;if(x&&Ve.xRel>0&&(lt=An(a.doc,Ve.line).text).length==Ve.ch){var un=Ce(lt,lt.length,a.options.tabSize)-lt.length;Ve=it(Ve.line,Math.max(0,Math.round((se-gn(a.display).left)/aa(a.display))-un))}return Ve}function Aa(a,b){if(b>=a.display.viewTo||(b-=a.display.viewFrom,b<0))return null;for(var z=a.display.view,x=0;x<z.length;x++)if(b-=z[x].size,b<0)return x}function $a(a,b,z,x){b==null&&(b=a.doc.first),z==null&&(z=a.doc.first+a.doc.size),x||(x=0);var ee=a.display;if(x&&z<ee.viewTo&&(ee.updateLineNumbers==null||ee.updateLineNumbers>b)&&(ee.updateLineNumbers=b),a.curOp.viewChanged=!0,b>=ee.viewTo)ya&&br(a.doc,b)<ee.viewTo&&fr(a);else if(z<=ee.viewFrom)ya&&Br(a.doc,z+x)>ee.viewFrom?fr(a):(ee.viewFrom+=x,ee.viewTo+=x);else if(b<=ee.viewFrom&&z>=ee.viewTo)fr(a);else if(b<=ee.viewFrom){var se=Yr(a,z,z+x,1);se?(ee.view=ee.view.slice(se.index),ee.viewFrom=se.lineN,ee.viewTo+=x):fr(a)}else if(z>=ee.viewTo){var ye=Yr(a,b,b,-1);ye?(ee.view=ee.view.slice(0,ye.index),ee.viewTo=ye.lineN):fr(a)}else{var Me=Yr(a,b,b,-1),Ve=Yr(a,z,z+x,1);Me&&Ve?(ee.view=ee.view.slice(0,Me.index).concat(di(a,Me.lineN,Ve.lineN)).concat(ee.view.slice(Ve.index)),ee.viewTo+=x):fr(a)}var lt=ee.externalMeasured;lt&&(z<lt.lineN?lt.lineN+=x:b<lt.lineN+lt.size&&(ee.externalMeasured=null))}function ua(a,b,z){a.curOp.viewChanged=!0;var x=a.display,ee=a.display.externalMeasured;if(ee&&b>=ee.lineN&&b<ee.lineN+ee.size&&(x.externalMeasured=null),!(b<x.viewFrom||b>=x.viewTo)){var se=x.view[Aa(a,b)];if(se.node!=null){var ye=se.changes||(se.changes=[]);vt(ye,z)==-1&&ye.push(z)}}}function fr(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Yr(a,b,z,x){var ee=Aa(a,b),se,ye=a.display.view;if(!ya||z==a.doc.first+a.doc.size)return{index:ee,lineN:z};for(var Me=a.display.viewFrom,Ve=0;Ve<ee;Ve++)Me+=ye[Ve].size;if(Me!=b){if(x>0){if(ee==ye.length-1)return null;se=Me+ye[ee].size-b,ee++}else se=Me-b;b+=se,z+=se}for(;br(a.doc,z)!=z;){if(ee==(x<0?0:ye.length-1))return null;z+=x*ye[ee-(x<0?1:0)].size,ee+=x}return{index:ee,lineN:z}}function ui(a,b,z){var x=a.display,ee=x.view;ee.length==0||b>=x.viewTo||z<=x.viewFrom?(x.view=di(a,b,z),x.viewFrom=b):(x.viewFrom>b?x.view=di(a,b,x.viewFrom).concat(x.view):x.viewFrom<b&&(x.view=x.view.slice(Aa(a,b))),x.viewFrom=b,x.viewTo<z?x.view=x.view.concat(di(a,x.viewTo,z)):x.viewTo>z&&(x.view=x.view.slice(0,Aa(a,z)))),x.viewTo=z}function ba(a){for(var b=a.display.view,z=0,x=0;x<b.length;x++){var ee=b[x];!ee.hidden&&(!ee.node||ee.changes)&&++z}return z}function ca(a){a.display.input.showSelection(a.display.input.prepareSelection())}function ra(a,b){b===void 0&&(b=!0);for(var z=a.doc,x={},ee=x.cursors=document.createDocumentFragment(),se=x.selection=document.createDocumentFragment(),ye=0;ye<z.sel.ranges.length;ye++)if(!(!b&&ye==z.sel.primIndex)){var Me=z.sel.ranges[ye];if(!(Me.from().line>=a.display.viewTo||Me.to().line<a.display.viewFrom)){var Ve=Me.empty();(Ve||a.options.showCursorWhenSelecting)&&Pa(a,Me.head,ee),Ve||qo(a,Me,se)}}return x}function Pa(a,b,z){var x=vi(a,b,"div",null,null,!a.options.singleCursorHeightPerLine),ee=z.appendChild(ot("div","\xA0","CodeMirror-cursor"));if(ee.style.left=x.left+"px",ee.style.top=x.top+"px",ee.style.height=Math.max(0,x.bottom-x.top)*a.options.cursorHeight+"px",x.other){var se=z.appendChild(ot("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));se.style.display="",se.style.left=x.other.left+"px",se.style.top=x.other.top+"px",se.style.height=(x.other.bottom-x.other.top)*.85+"px"}}function ao(a,b){return a.top-b.top||a.left-b.left}function qo(a,b,z){var x=a.display,ee=a.doc,se=document.createDocumentFragment(),ye=gn(a.display),Me=ye.left,Ve=Math.max(x.sizerWidth,Sr(a)-x.sizer.offsetLeft)-ye.right,lt=ee.direction=="ltr";function un(Wa,Ei,to,Ui){Ei<0&&(Ei=0),Ei=Math.round(Ei),Ui=Math.round(Ui),se.appendChild(ot("div",null,"CodeMirror-selected","position: absolute; left: "+Wa+`px;
|
|
|
top: `+Ei+"px; width: "+(to==null?Ve-Wa:to)+`px;
|
|
|
height: `+(Ui-Ei)+"px"))}function bn(Wa,Ei,to){var Ui=An(ee,Wa),Bo=Ui.text.length,ml,ql;function Al(kl,ms){return ga(a,it(Wa,kl),"div",Ui,ms)}function Cs(kl,ms,ns){var Ll=an(a,Ui,null,kl),Zl=ms=="ltr"==(ns=="after")?"left":"right",Il=ns=="after"?Ll.begin:Ll.end-(/\s/.test(Ui.text.charAt(Ll.end-1))?2:1);return Al(Il,Zl)[Zl]}var fs=Ye(Ui,ee.direction);return qe(fs,Ei||0,to==null?Bo:to,function(kl,ms,ns,Ll){var Zl=ns=="ltr",Il=Al(kl,Zl?"left":"right"),ps=Al(ms-1,Zl?"right":"left"),Mu=Ei==null&&kl==0,ou=to==null&&ms==Bo,rs=Ll==0,te=!fs||Ll==fs.length-1;if(ps.top-Il.top<=3){var ne=(lt?Mu:ou)&&rs,le=(lt?ou:Mu)&&te,he=ne?Me:(Zl?Il:ps).left,je=le?Ve:(Zl?ps:Il).right;un(he,Il.top,je-he,Il.bottom)}else{var ze,et,dt,en;Zl?(ze=lt&&Mu&&rs?Me:Il.left,et=lt?Ve:Cs(kl,ns,"before"),dt=lt?Me:Cs(ms,ns,"after"),en=lt&&ou&&te?Ve:ps.right):(ze=lt?Cs(kl,ns,"before"):Me,et=!lt&&Mu&&rs?Ve:Il.right,dt=!lt&&ou&&te?Me:ps.left,en=lt?Cs(ms,ns,"after"):Ve),un(ze,Il.top,et-ze,Il.bottom),Il.bottom<ps.top&&un(Me,Il.bottom,null,ps.top),un(dt,ps.top,en-dt,ps.bottom)}(!ml||ao(Il,ml)<0)&&(ml=Il),ao(ps,ml)<0&&(ml=ps),(!ql||ao(Il,ql)<0)&&(ql=Il),ao(ps,ql)<0&&(ql=ps)}),{start:ml,end:ql}}var Yn=b.from(),Wn=b.to();if(Yn.line==Wn.line)bn(Yn.line,Yn.ch,Wn.ch);else{var _r=An(ee,Yn.line),qr=An(ee,Wn.line),Ba=tr(_r)==tr(qr),Ka=bn(Yn.line,Yn.ch,Ba?_r.text.length+1:null).end,ii=bn(Wn.line,Ba?0:null,Wn.ch).start;Ba&&(Ka.top<ii.top-2?(un(Ka.right,Ka.top,null,Ka.bottom),un(Me,ii.top,ii.left,ii.bottom)):un(Ka.right,Ka.top,ii.left-Ka.right,Ka.bottom)),Ka.bottom<ii.top&&un(Me,Ka.bottom,null,ii.top)}z.appendChild(se)}function Ko(a){if(a.state.focused){var b=a.display;clearInterval(b.blinker);var z=!0;b.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?b.blinker=setInterval(function(){a.hasFocus()||Ml(a),b.cursorDiv.style.visibility=(z=!z)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(b.cursorDiv.style.visibility="hidden")}}function Xl(a){a.state.focused||(a.display.input.focus(),Tl(a))}function Oi(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Ml(a))},100)}function Tl(a,b){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(pn(a,"focus",a,b),a.state.focused=!0,de(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Se&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Ko(a))}function Ml(a,b){a.state.delayingBlurEvent||(a.state.focused&&(pn(a,"blur",a,b),a.state.focused=!1,Xe(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Ur(a){for(var b=a.display,z=b.lineDiv.offsetTop,x=0;x<b.view.length;x++){var ee=b.view[x],se=a.options.lineWrapping,ye=void 0,Me=0;if(!ee.hidden){if(xe&&ge<8){var Ve=ee.node.offsetTop+ee.node.offsetHeight;ye=Ve-z,z=Ve}else{var lt=ee.node.getBoundingClientRect();ye=lt.bottom-lt.top,!se&&ee.text.firstChild&&(Me=ee.text.firstChild.getBoundingClientRect().right-lt.left-1)}var un=ee.line.height-ye;if((un>.005||un<-.005)&&(vr(ee.line,ye),bo(ee.line),ee.rest))for(var bn=0;bn<ee.rest.length;bn++)bo(ee.rest[bn]);if(Me>a.display.sizerWidth){var Yn=Math.ceil(Me/aa(a.display));Yn>a.display.maxLineLength&&(a.display.maxLineLength=Yn,a.display.maxLine=ee.line,a.display.maxLineChanged=!0)}}}}function bo(a){if(a.widgets)for(var b=0;b<a.widgets.length;++b){var z=a.widgets[b],x=z.node.parentNode;x&&(z.height=x.offsetHeight)}}function Io(a,b,z){var x=z&&z.top!=null?Math.max(0,z.top):a.scroller.scrollTop;x=Math.floor(x-Jo(a));var ee=z&&z.bottom!=null?z.bottom:x+a.wrapper.clientHeight,se=Kt(b,x),ye=Kt(b,ee);if(z&&z.ensure){var Me=z.ensure.from.line,Ve=z.ensure.to.line;Me<se?(se=Me,ye=Kt(b,Ta(An(b,Me))+a.wrapper.clientHeight)):Math.min(Ve,b.lastLine())>=ye&&(se=Kt(b,Ta(An(b,Ve))-a.wrapper.clientHeight),ye=Ve)}return{from:se,to:Math.max(ye,se+1)}}function Eo(a,b){if(!kt(a,"scrollCursorIntoView")){var z=a.display,x=z.sizer.getBoundingClientRect(),ee=null;if(b.top+x.top<0?ee=!0:b.bottom+x.top>(window.innerHeight||document.documentElement.clientHeight)&&(ee=!1),ee!=null&&!ct){var se=ot("div","\u200B",null,`position: absolute;
|
|
|
top: `+(b.top-z.viewOffset-Jo(a.display))+`px;
|
|
|
height: `+(b.bottom-b.top+Nn(a)+z.barHeight)+`px;
|
|
|
left: `+b.left+"px; width: "+Math.max(2,b.right-b.left)+"px;");a.display.lineSpace.appendChild(se),se.scrollIntoView(ee),a.display.lineSpace.removeChild(se)}}}function yl(a,b,z,x){x==null&&(x=0);var ee;!a.options.lineWrapping&&b==z&&(b=b.ch?it(b.line,b.sticky=="before"?b.ch-1:b.ch,"after"):b,z=b.sticky=="before"?it(b.line,b.ch+1,"before"):b);for(var se=0;se<5;se++){var ye=!1,Me=vi(a,b),Ve=!z||z==b?Me:vi(a,z);ee={left:Math.min(Me.left,Ve.left),top:Math.min(Me.top,Ve.top)-x,right:Math.max(Me.left,Ve.left),bottom:Math.max(Me.bottom,Ve.bottom)+x};var lt=_s(a,ee),un=a.doc.scrollTop,bn=a.doc.scrollLeft;if(lt.scrollTop!=null&&($s(a,lt.scrollTop),Math.abs(a.doc.scrollTop-un)>1&&(ye=!0)),lt.scrollLeft!=null&&(gs(a,lt.scrollLeft),Math.abs(a.doc.scrollLeft-bn)>1&&(ye=!0)),!ye)break}return ee}function js(a,b){var z=_s(a,b);z.scrollTop!=null&&$s(a,z.scrollTop),z.scrollLeft!=null&&gs(a,z.scrollLeft)}function _s(a,b){var z=a.display,x=Ar(a.display);b.top<0&&(b.top=0);var ee=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:z.scroller.scrollTop,se=Or(a),ye={};b.bottom-b.top>se&&(b.bottom=b.top+se);var Me=a.doc.height+vn(z),Ve=b.top<x,lt=b.bottom>Me-x;if(b.top<ee)ye.scrollTop=Ve?0:b.top;else if(b.bottom>ee+se){var un=Math.min(b.top,(lt?Me:b.bottom)-se);un!=ee&&(ye.scrollTop=un)}var bn=a.options.fixedGutter?0:z.gutters.offsetWidth,Yn=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:z.scroller.scrollLeft-bn,Wn=Sr(a)-z.gutters.offsetWidth,_r=b.right-b.left>Wn;return _r&&(b.right=b.left+Wn),b.left<10?ye.scrollLeft=0:b.left<Yn?ye.scrollLeft=Math.max(0,b.left+bn-(_r?0:10)):b.right>Wn+Yn-3&&(ye.scrollLeft=b.right+(_r?0:10)-Wn),ye}function eu(a,b){b!=null&&(cs(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+b)}function xs(a){cs(a);var b=a.getCursor();a.curOp.scrollToPos={from:b,to:b,margin:a.options.cursorScrollMargin}}function As(a,b,z){(b!=null||z!=null)&&cs(a),b!=null&&(a.curOp.scrollLeft=b),z!=null&&(a.curOp.scrollTop=z)}function tu(a,b){cs(a),a.curOp.scrollToPos=b}function cs(a){var b=a.curOp.scrollToPos;if(b){a.curOp.scrollToPos=null;var z=fi(a,b.from),x=fi(a,b.to);Ss(a,z,x,b.margin)}}function Ss(a,b,z,x){var ee=_s(a,{left:Math.min(b.left,z.left),top:Math.min(b.top,z.top)-x,right:Math.max(b.right,z.right),bottom:Math.max(b.bottom,z.bottom)+x});As(a,ee.scrollLeft,ee.scrollTop)}function $s(a,b){Math.abs(a.doc.scrollTop-b)<2||(y||is(a,{top:b}),Fs(a,b,!0),y&&is(a),ko(a,100))}function Fs(a,b,z){b=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,b)),!(a.display.scroller.scrollTop==b&&!z)&&(a.doc.scrollTop=b,a.display.scrollbars.setScrollTop(b),a.display.scroller.scrollTop!=b&&(a.display.scroller.scrollTop=b))}function gs(a,b,z,x){b=Math.max(0,Math.min(b,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((z?b==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-b)<2)&&!x)&&(a.doc.scrollLeft=b,Dt(a),a.display.scroller.scrollLeft!=b&&(a.display.scroller.scrollLeft=b),a.display.scrollbars.setScrollLeft(b))}function Ws(a){var b=a.display,z=b.gutters.offsetWidth,x=Math.round(a.doc.height+vn(a.display));return{clientHeight:b.scroller.clientHeight,viewHeight:b.wrapper.clientHeight,scrollWidth:b.scroller.scrollWidth,clientWidth:b.scroller.clientWidth,viewWidth:b.wrapper.clientWidth,barLeft:a.options.fixedGutter?z:0,docHeight:x,scrollHeight:x+Nn(a)+b.barHeight,nativeBarWidth:b.nativeBarWidth,gutterWidth:z}}var Is=function(a,b,z){this.cm=z;var x=this.vert=ot("div",[ot("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ee=this.horiz=ot("div",[ot("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");x.tabIndex=ee.tabIndex=-1,a(x),a(ee),Vt(x,"scroll",function(){x.clientHeight&&b(x.scrollTop,"vertical")}),Vt(ee,"scroll",function(){ee.clientWidth&&b(ee.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,xe&&ge<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Is.prototype.update=function(a){var b=a.scrollWidth>a.clientWidth+1,z=a.scrollHeight>a.clientHeight+1,x=a.nativeBarWidth;if(z){this.vert.style.display="block",this.vert.style.bottom=b?x+"px":"0";var ee=a.viewHeight-(b?x:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+ee)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(b){this.horiz.style.display="block",this.horiz.style.right=z?x+"px":"0",this.horiz.style.left=a.barLeft+"px";var se=a.viewWidth-a.barLeft-(z?x:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+se)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(x==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:z?x:0,bottom:b?x:0}},Is.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Is.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Is.prototype.zeroWidthHack=function(){var a=Ie&&!Oe?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new be,this.disableVert=new be},Is.prototype.enableZeroWidthBar=function(a,b,z){a.style.pointerEvents="auto";function x(){var ee=a.getBoundingClientRect(),se=z=="vert"?document.elementFromPoint(ee.right-1,(ee.top+ee.bottom)/2):document.elementFromPoint((ee.right+ee.left)/2,ee.bottom-1);se!=a?a.style.pointerEvents="none":b.set(1e3,x)}b.set(1e3,x)},Is.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var Rs=function(){};Rs.prototype.update=function(){return{bottom:0,right:0}},Rs.prototype.setScrollLeft=function(){},Rs.prototype.setScrollTop=function(){},Rs.prototype.clear=function(){};function zs(a,b){b||(b=Ws(a));var z=a.display.barWidth,x=a.display.barHeight;Gs(a,b);for(var ee=0;ee<4&&z!=a.display.barWidth||x!=a.display.barHeight;ee++)z!=a.display.barWidth&&a.options.lineWrapping&&Ur(a),Gs(a,Ws(a)),z=a.display.barWidth,x=a.display.barHeight}function Gs(a,b){var z=a.display,x=z.scrollbars.update(b);z.sizer.style.paddingRight=(z.barWidth=x.right)+"px",z.sizer.style.paddingBottom=(z.barHeight=x.bottom)+"px",z.heightForcer.style.borderBottom=x.bottom+"px solid transparent",x.right&&x.bottom?(z.scrollbarFiller.style.display="block",z.scrollbarFiller.style.height=x.bottom+"px",z.scrollbarFiller.style.width=x.right+"px"):z.scrollbarFiller.style.display="",x.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(z.gutterFiller.style.display="block",z.gutterFiller.style.height=x.bottom+"px",z.gutterFiller.style.width=b.gutterWidth+"px"):z.gutterFiller.style.display=""}var Eu={native:Is,null:Rs};function Cu(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Xe(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Eu[a.options.scrollbarStyle](function(b){a.display.wrapper.insertBefore(b,a.display.scrollbarFiller),Vt(b,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),b.setAttribute("cm-not-content","true")},function(b,z){z=="horizontal"?gs(a,b):$s(a,b)},a),a.display.scrollbars.addClass&&de(a.display.wrapper,a.display.scrollbars.addClass)}var ec=0;function Ps(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++ec},jl(a.curOp)}function ws(a){var b=a.curOp;b&&Vo(b,function(z){for(var x=0;x<z.ops.length;x++)z.ops[x].cm.curOp=null;xu(z)})}function xu(a){for(var b=a.ops,z=0;z<b.length;z++)ku(b[z]);for(var x=0;x<b.length;x++)Lu(b[x]);for(var ee=0;ee<b.length;ee++)$n(b[ee]);for(var se=0;se<b.length;se++)wa(b[se]);for(var ye=0;ye<b.length;ye++)Vi(b[ye])}function ku(a){var b=a.cm,z=b.display;Ro(b),a.updateMaxLine&&ea(b),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<z.viewFrom||a.scrollToPos.to.line>=z.viewTo)||z.maxLineChanged&&b.options.lineWrapping,a.update=a.mustUpdate&&new dl(b,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Lu(a){a.updatedDisplay=a.mustUpdate&&ci(a.cm,a.update)}function $n(a){var b=a.cm,z=b.display;a.updatedDisplay&&Ur(b),a.barMeasure=Ws(b),z.maxLineChanged&&!b.options.lineWrapping&&(a.adjustWidthTo=qn(b,z.maxLine,z.maxLine.text.length).left+3,b.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(z.scroller.clientWidth,z.sizer.offsetLeft+a.adjustWidthTo+Nn(b)+b.display.barWidth),a.maxScrollLeft=Math.max(0,z.sizer.offsetLeft+a.adjustWidthTo-Sr(b))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=z.input.prepareSelection())}function wa(a){var b=a.cm;a.adjustWidthTo!=null&&(b.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<b.doc.scrollLeft&&gs(b,Math.min(b.display.scroller.scrollLeft,a.maxScrollLeft),!0),b.display.maxLineChanged=!1);var z=a.focus&&a.focus==Ae();a.preparedSelection&&b.display.input.showSelection(a.preparedSelection,z),(a.updatedDisplay||a.startHeight!=b.doc.height)&&zs(b,a.barMeasure),a.updatedDisplay&&Re(b,a.barMeasure),a.selectionChanged&&Ko(b),b.state.focused&&a.updateInput&&b.display.input.reset(a.typing),z&&Xl(a.cm)}function Vi(a){var b=a.cm,z=b.display,x=b.doc;if(a.updatedDisplay&&bl(b,a.update),z.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(z.wheelStartX=z.wheelStartY=null),a.scrollTop!=null&&Fs(b,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&gs(b,a.scrollLeft,!0,!0),a.scrollToPos){var ee=yl(b,_t(x,a.scrollToPos.from),_t(x,a.scrollToPos.to),a.scrollToPos.margin);Eo(b,ee)}var se=a.maybeHiddenMarkers,ye=a.maybeUnhiddenMarkers;if(se)for(var Me=0;Me<se.length;++Me)se[Me].lines.length||pn(se[Me],"hide");if(ye)for(var Ve=0;Ve<ye.length;++Ve)ye[Ve].lines.length&&pn(ye[Ve],"unhide");z.wrapper.offsetHeight&&(x.scrollTop=b.display.scroller.scrollTop),a.changeObjs&&pn(b,"changes",b,a.changeObjs),a.update&&a.update.finish()}function Ma(a,b){if(a.curOp)return b();Ps(a);try{return b()}finally{ws(a)}}function Fr(a,b){return function(){if(a.curOp)return b.apply(a,arguments);Ps(a);try{return b.apply(a,arguments)}finally{ws(a)}}}function Zi(a){return function(){if(this.curOp)return a.apply(this,arguments);Ps(this);try{return a.apply(this,arguments)}finally{ws(this)}}}function Ki(a){return function(){var b=this.cm;if(!b||b.curOp)return a.apply(this,arguments);Ps(b);try{return a.apply(this,arguments)}finally{ws(b)}}}function ko(a,b){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(b,Ge(Xi,a))}function Xi(a){var b=a.doc;if(!(b.highlightFrontier>=a.display.viewTo)){var z=+new Date+a.options.workTime,x=Ir(a,b.highlightFrontier),ee=[];b.iter(x.line,Math.min(b.first+b.size,a.display.viewTo+500),function(se){if(x.line>=a.display.viewFrom){var ye=se.styles,Me=se.text.length>a.options.maxHighlightLength?Dr(b.mode,x.state):null,Ve=jn(a,se,x,!0);Me&&(x.state=Me),se.styles=Ve.styles;var lt=se.styleClasses,un=Ve.classes;un?se.styleClasses=un:lt&&(se.styleClasses=null);for(var bn=!ye||ye.length!=se.styles.length||lt!=un&&(!lt||!un||lt.bgClass!=un.bgClass||lt.textClass!=un.textClass),Yn=0;!bn&&Yn<ye.length;++Yn)bn=ye[Yn]!=se.styles[Yn];bn&&ee.push(x.line),se.stateAfter=x.save(),x.nextLine()}else se.text.length<=a.options.maxHighlightLength&&Mr(a,se.text,x),se.stateAfter=x.line%5==0?x.save():null,x.nextLine();if(+new Date>z)return ko(a,a.options.workDelay),!0}),b.highlightFrontier=x.line,b.modeFrontier=Math.max(b.modeFrontier,x.line),ee.length&&Ma(a,function(){for(var se=0;se<ee.length;se++)ua(a,ee[se],"text")})}}var dl=function(a,b,z){var x=a.display;this.viewport=b,this.visible=Io(x,a.doc,b),this.editorIsHidden=!x.wrapper.offsetWidth,this.wrapperHeight=x.wrapper.clientHeight,this.wrapperWidth=x.wrapper.clientWidth,this.oldDisplayWidth=Sr(a),this.force=z,this.dims=Wr(a),this.events=[]};dl.prototype.signal=function(a,b){Pt(a,b)&&this.events.push(arguments)},dl.prototype.finish=function(){for(var a=0;a<this.events.length;a++)pn.apply(null,this.events[a])};function Ro(a){var b=a.display;!b.scrollbarsClipped&&b.scroller.offsetWidth&&(b.nativeBarWidth=b.scroller.offsetWidth-b.scroller.clientWidth,b.heightForcer.style.height=Nn(a)+"px",b.sizer.style.marginBottom=-b.nativeBarWidth+"px",b.sizer.style.borderRightWidth=Nn(a)+"px",b.scrollbarsClipped=!0)}function ys(a){if(a.hasFocus())return null;var b=Ae();if(!b||!We(a.display.lineDiv,b))return null;var z={activeElt:b};if(window.getSelection){var x=window.getSelection();x.anchorNode&&x.extend&&We(a.display.lineDiv,x.anchorNode)&&(z.anchorNode=x.anchorNode,z.anchorOffset=x.anchorOffset,z.focusNode=x.focusNode,z.focusOffset=x.focusOffset)}return z}function Xs(a){if(!(!a||!a.activeElt||a.activeElt==Ae())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&We(document.body,a.anchorNode)&&We(document.body,a.focusNode))){var b=window.getSelection(),z=document.createRange();z.setEnd(a.anchorNode,a.anchorOffset),z.collapse(!1),b.removeAllRanges(),b.addRange(z),b.extend(a.focusNode,a.focusOffset)}}function ci(a,b){var z=a.display,x=a.doc;if(b.editorIsHidden)return fr(a),!1;if(!b.force&&b.visible.from>=z.viewFrom&&b.visible.to<=z.viewTo&&(z.updateLineNumbers==null||z.updateLineNumbers>=z.viewTo)&&z.renderedView==z.view&&ba(a)==0)return!1;Lt(a)&&(fr(a),b.dims=Wr(a));var ee=x.first+x.size,se=Math.max(b.visible.from-a.options.viewportMargin,x.first),ye=Math.min(ee,b.visible.to+a.options.viewportMargin);z.viewFrom<se&&se-z.viewFrom<20&&(se=Math.max(x.first,z.viewFrom)),z.viewTo>ye&&z.viewTo-ye<20&&(ye=Math.min(ee,z.viewTo)),ya&&(se=br(a.doc,se),ye=Br(a.doc,ye));var Me=se!=z.viewFrom||ye!=z.viewTo||z.lastWrapHeight!=b.wrapperHeight||z.lastWrapWidth!=b.wrapperWidth;ui(a,se,ye),z.viewOffset=Ta(An(a.doc,z.viewFrom)),a.display.mover.style.top=z.viewOffset+"px";var Ve=ba(a);if(!Me&&Ve==0&&!b.force&&z.renderedView==z.view&&(z.updateLineNumbers==null||z.updateLineNumbers>=z.viewTo))return!1;var lt=ys(a);return Ve>4&&(z.lineDiv.style.display="none"),$l(a,z.updateLineNumbers,b.dims),Ve>4&&(z.lineDiv.style.display=""),z.renderedView=z.view,Xs(lt),St(z.cursorDiv),St(z.selectionDiv),z.gutters.style.height=z.sizer.style.minHeight=0,Me&&(z.lastWrapHeight=b.wrapperHeight,z.lastWrapWidth=b.wrapperWidth,ko(a,400)),z.updateLineNumbers=null,!0}function bl(a,b){for(var z=b.viewport,x=!0;;x=!1){if(!x||!a.options.lineWrapping||b.oldDisplayWidth==Sr(a)){if(z&&z.top!=null&&(z={top:Math.min(a.doc.height+vn(a.display)-Or(a),z.top)}),b.visible=Io(a.display,a.doc,z),b.visible.from>=a.display.viewFrom&&b.visible.to<=a.display.viewTo)break}else x&&(b.visible=Io(a.display,a.doc,z));if(!ci(a,b))break;Ur(a);var ee=Ws(a);ca(a),zs(a,ee),Re(a,ee),b.force=!1}b.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(b.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function is(a,b){var z=new dl(a,b);if(ci(a,z)){Ur(a),bl(a,z);var x=Ws(a);ca(a),zs(a,x),Re(a,x),z.finish()}}function $l(a,b,z){var x=a.display,ee=a.options.lineNumbers,se=x.lineDiv,ye=se.firstChild;function Me(_r){var qr=_r.nextSibling;return Se&&Ie&&a.display.currentWheelTarget==_r?_r.style.display="none":_r.parentNode.removeChild(_r),qr}for(var Ve=x.view,lt=x.viewFrom,un=0;un<Ve.length;un++){var bn=Ve[un];if(!bn.hidden)if(!bn.node||bn.node.parentNode!=se){var Yn=hi(a,bn,lt,z);se.insertBefore(Yn,ye)}else{for(;ye!=bn.node;)ye=Me(ye);var Wn=ee&&b!=null&&b<=lt&&bn.lineNumber;bn.changes&&(vt(bn.changes,"gutter")>-1&&(Wn=!1),Gl(a,bn,lt,z)),Wn&&(St(bn.lineNumber),bn.lineNumber.appendChild(document.createTextNode(Rt(a.options,lt)))),ye=bn.node.nextSibling}lt+=bn.size}for(;ye;)ye=Me(ye)}function ke(a){var b=a.gutters.offsetWidth;a.sizer.style.marginLeft=b+"px"}function Re(a,b){a.display.sizer.style.minHeight=b.docHeight+"px",a.display.heightForcer.style.top=b.docHeight+"px",a.display.gutters.style.height=b.docHeight+a.display.barHeight+Nn(a)+"px"}function Dt(a){var b=a.display,z=b.view;if(!(!b.alignWidgets&&(!b.gutters.firstChild||!a.options.fixedGutter))){for(var x=or(b)-b.scroller.scrollLeft+a.doc.scrollLeft,ee=b.gutters.offsetWidth,se=x+"px",ye=0;ye<z.length;ye++)if(!z[ye].hidden){a.options.fixedGutter&&(z[ye].gutter&&(z[ye].gutter.style.left=se),z[ye].gutterBackground&&(z[ye].gutterBackground.style.left=se));var Me=z[ye].alignable;if(Me)for(var Ve=0;Ve<Me.length;Ve++)Me[Ve].style.left=se}a.options.fixedGutter&&(b.gutters.style.left=x+ee+"px")}}function Lt(a){if(!a.options.lineNumbers)return!1;var b=a.doc,z=Rt(a.options,b.first+b.size-1),x=a.display;if(z.length!=x.lineNumChars){var ee=x.measure.appendChild(ot("div",[ot("div",z)],"CodeMirror-linenumber CodeMirror-gutter-elt")),se=ee.firstChild.offsetWidth,ye=ee.offsetWidth-se;return x.lineGutter.style.width="",x.lineNumInnerWidth=Math.max(se,x.lineGutter.offsetWidth-ye)+1,x.lineNumWidth=x.lineNumInnerWidth+ye,x.lineNumChars=x.lineNumInnerWidth?z.length:-1,x.lineGutter.style.width=x.lineNumWidth+"px",ke(a.display),!0}return!1}function on(a,b){for(var z=[],x=!1,ee=0;ee<a.length;ee++){var se=a[ee],ye=null;if(typeof se!="string"&&(ye=se.style,se=se.className),se=="CodeMirror-linenumbers")if(b)x=!0;else continue;z.push({className:se,style:ye})}return b&&!x&&z.push({className:"CodeMirror-linenumbers",style:null}),z}function hn(a){var b=a.gutters,z=a.gutterSpecs;St(b),a.lineGutter=null;for(var x=0;x<z.length;++x){var ee=z[x],se=ee.className,ye=ee.style,Me=b.appendChild(ot("div",null,"CodeMirror-gutter "+se));ye&&(Me.style.cssText=ye),se=="CodeMirror-linenumbers"&&(a.lineGutter=Me,Me.style.width=(a.lineNumWidth||1)+"px")}b.style.display=z.length?"":"none",ke(a)}function _n(a){hn(a.display),$a(a),Dt(a)}function Bn(a,b,z,x){var ee=this;this.input=z,ee.scrollbarFiller=ot("div",null,"CodeMirror-scrollbar-filler"),ee.scrollbarFiller.setAttribute("cm-not-content","true"),ee.gutterFiller=ot("div",null,"CodeMirror-gutter-filler"),ee.gutterFiller.setAttribute("cm-not-content","true"),ee.lineDiv=Ue("div",null,"CodeMirror-code"),ee.selectionDiv=ot("div",null,null,"position: relative; z-index: 1"),ee.cursorDiv=ot("div",null,"CodeMirror-cursors"),ee.measure=ot("div",null,"CodeMirror-measure"),ee.lineMeasure=ot("div",null,"CodeMirror-measure"),ee.lineSpace=Ue("div",[ee.measure,ee.lineMeasure,ee.selectionDiv,ee.cursorDiv,ee.lineDiv],null,"position: relative; outline: none");var se=Ue("div",[ee.lineSpace],"CodeMirror-lines");ee.mover=ot("div",[se],null,"position: relative"),ee.sizer=ot("div",[ee.mover],"CodeMirror-sizer"),ee.sizerWidth=null,ee.heightForcer=ot("div",null,null,"position: absolute; height: "+zt+"px; width: 1px;"),ee.gutters=ot("div",null,"CodeMirror-gutters"),ee.lineGutter=null,ee.scroller=ot("div",[ee.sizer,ee.heightForcer,ee.gutters],"CodeMirror-scroll"),ee.scroller.setAttribute("tabIndex","-1"),ee.wrapper=ot("div",[ee.scrollbarFiller,ee.gutterFiller,ee.scroller],"CodeMirror"),xe&&ge<8&&(ee.gutters.style.zIndex=-1,ee.scroller.style.paddingRight=0),!Se&&!(y&&we)&&(ee.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(ee.wrapper):a(ee.wrapper)),ee.viewFrom=ee.viewTo=b.first,ee.reportedViewFrom=ee.reportedViewTo=b.first,ee.view=[],ee.renderedView=null,ee.externalMeasured=null,ee.viewOffset=0,ee.lastWrapHeight=ee.lastWrapWidth=0,ee.updateLineNumbers=null,ee.nativeBarWidth=ee.barHeight=ee.barWidth=0,ee.scrollbarsClipped=!1,ee.lineNumWidth=ee.lineNumInnerWidth=ee.lineNumChars=null,ee.alignWidgets=!1,ee.cachedCharWidth=ee.cachedTextHeight=ee.cachedPaddingH=null,ee.maxLine=null,ee.maxLineLength=0,ee.maxLineChanged=!1,ee.wheelDX=ee.wheelDY=ee.wheelStartX=ee.wheelStartY=null,ee.shift=!1,ee.selForContextMenu=null,ee.activeTouch=null,ee.gutterSpecs=on(x.gutters,x.lineNumbers),hn(ee),z.init(ee)}var Zn=0,Ln=null;xe?Ln=-.53:y?Ln=15:Be?Ln=-.7:$e&&(Ln=-1/3);function wr(a){var b=a.wheelDeltaX,z=a.wheelDeltaY;return b==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(b=a.detail),z==null&&a.detail&&a.axis==a.VERTICAL_AXIS?z=a.detail:z==null&&(z=a.wheelDelta),{x:b,y:z}}function lr(a){var b=wr(a);return b.x*=Ln,b.y*=Ln,b}function nr(a,b){var z=wr(b),x=z.x,ee=z.y,se=a.display,ye=se.scroller,Me=ye.scrollWidth>ye.clientWidth,Ve=ye.scrollHeight>ye.clientHeight;if(x&&Me||ee&&Ve){if(ee&&Ie&&Se){e:for(var lt=b.target,un=se.view;lt!=ye;lt=lt.parentNode)for(var bn=0;bn<un.length;bn++)if(un[bn].node==lt){a.display.currentWheelTarget=lt;break e}}if(x&&!y&&!fe&&Ln!=null){ee&&Ve&&$s(a,Math.max(0,ye.scrollTop+ee*Ln)),gs(a,Math.max(0,ye.scrollLeft+x*Ln)),(!ee||ee&&Ve)&&It(b),se.wheelStartX=null;return}if(ee&&Ln!=null){var Yn=ee*Ln,Wn=a.doc.scrollTop,_r=Wn+se.wrapper.clientHeight;Yn<0?Wn=Math.max(0,Wn+Yn-50):_r=Math.min(a.doc.height,_r+Yn+50),is(a,{top:Wn,bottom:_r})}Zn<20&&(se.wheelStartX==null?(se.wheelStartX=ye.scrollLeft,se.wheelStartY=ye.scrollTop,se.wheelDX=x,se.wheelDY=ee,setTimeout(function(){if(se.wheelStartX!=null){var qr=ye.scrollLeft-se.wheelStartX,Ba=ye.scrollTop-se.wheelStartY,Ka=Ba&&se.wheelDY&&Ba/se.wheelDY||qr&&se.wheelDX&&qr/se.wheelDX;se.wheelStartX=se.wheelStartY=null,Ka&&(Ln=(Ln*Zn+Ka)/(Zn+1),++Zn)}},200)):(se.wheelDX+=x,se.wheelDY+=ee))}}var Xn=function(a,b){this.ranges=a,this.primIndex=b};Xn.prototype.primary=function(){return this.ranges[this.primIndex]},Xn.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var b=0;b<this.ranges.length;b++){var z=this.ranges[b],x=a.ranges[b];if(!fn(z.anchor,x.anchor)||!fn(z.head,x.head))return!1}return!0},Xn.prototype.deepCopy=function(){for(var a=[],b=0;b<this.ranges.length;b++)a[b]=new Kn(ar(this.ranges[b].anchor),ar(this.ranges[b].head));return new Xn(a,this.primIndex)},Xn.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},Xn.prototype.contains=function(a,b){b||(b=a);for(var z=0;z<this.ranges.length;z++){var x=this.ranges[z];if(ht(b,x.from())>=0&&ht(a,x.to())<=0)return z}return-1};var Kn=function(a,b){this.anchor=a,this.head=b};Kn.prototype.from=function(){return Ft(this.anchor,this.head)},Kn.prototype.to=function(){return pr(this.anchor,this.head)},Kn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ia(a,b,z){var x=a&&a.options.selectionsMayTouch,ee=b[z];b.sort(function(Yn,Wn){return ht(Yn.from(),Wn.from())}),z=vt(b,ee);for(var se=1;se<b.length;se++){var ye=b[se],Me=b[se-1],Ve=ht(Me.to(),ye.from());if(x&&!ye.empty()?Ve>0:Ve>=0){var lt=Ft(Me.from(),ye.from()),un=pr(Me.to(),ye.to()),bn=Me.empty()?ye.from()==ye.head:Me.from()==Me.head;se<=z&&--z,b.splice(--se,2,new Kn(bn?un:lt,bn?lt:un))}}return new Xn(b,z)}function Tr(a,b){return new Xn([new Kn(a,b||a)],0)}function da(a){return a.text?it(a.from.line+a.text.length-1,mt(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function Ea(a,b){if(ht(a,b.from)<0)return a;if(ht(a,b.to)<=0)return da(b);var z=a.line+b.text.length-(b.to.line-b.from.line)-1,x=a.ch;return a.line==b.to.line&&(x+=da(b).ch-b.to.ch),it(z,x)}function Jr(a,b){for(var z=[],x=0;x<a.sel.ranges.length;x++){var ee=a.sel.ranges[x];z.push(new Kn(Ea(ee.anchor,b),Ea(ee.head,b)))}return ia(a.cm,z,a.sel.primIndex)}function Oa(a,b,z){return a.line==b.line?it(z.line,a.ch-b.ch+z.ch):it(z.line+(a.line-b.line),a.ch)}function La(a,b,z){for(var x=[],ee=it(a.first,0),se=ee,ye=0;ye<b.length;ye++){var Me=b[ye],Ve=Oa(Me.from,ee,se),lt=Oa(da(Me),ee,se);if(ee=Me.to,se=lt,z=="around"){var un=a.sel.ranges[ye],bn=ht(un.head,un.anchor)<0;x[ye]=new Kn(bn?lt:Ve,bn?Ve:lt)}else x[ye]=new Kn(Ve,Ve)}return new Xn(x,a.sel.primIndex)}function Qa(a){a.doc.mode=sr(a.options,a.doc.modeOption),Ua(a)}function Ua(a){a.doc.iter(function(b){b.stateAfter&&(b.stateAfter=null),b.styles&&(b.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,ko(a,100),a.state.modeGen++,a.curOp&&$a(a)}function eo(a,b){return b.from.ch==0&&b.to.ch==0&&mt(b.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function Si(a,b,z,x){function ee(ii){return z?z[ii]:null}function se(ii,Wa,Ei){yi(ii,Wa,Ei,x),no(ii,"change",ii,b)}function ye(ii,Wa){for(var Ei=[],to=ii;to<Wa;++to)Ei.push(new ai(lt[to],ee(to),x));return Ei}var Me=b.from,Ve=b.to,lt=b.text,un=An(a,Me.line),bn=An(a,Ve.line),Yn=mt(lt),Wn=ee(lt.length-1),_r=Ve.line-Me.line;if(b.full)a.insert(0,ye(0,lt.length)),a.remove(lt.length,a.size-lt.length);else if(eo(a,b)){var qr=ye(0,lt.length-1);se(bn,bn.text,Wn),_r&&a.remove(Me.line,_r),qr.length&&a.insert(Me.line,qr)}else if(un==bn)if(lt.length==1)se(un,un.text.slice(0,Me.ch)+Yn+un.text.slice(Ve.ch),Wn);else{var Ba=ye(1,lt.length-1);Ba.push(new ai(Yn+un.text.slice(Ve.ch),Wn,x)),se(un,un.text.slice(0,Me.ch)+lt[0],ee(0)),a.insert(Me.line+1,Ba)}else if(lt.length==1)se(un,un.text.slice(0,Me.ch)+lt[0]+bn.text.slice(Ve.ch),ee(0)),a.remove(Me.line+1,_r);else{se(un,un.text.slice(0,Me.ch)+lt[0],ee(0)),se(bn,Yn+bn.text.slice(Ve.ch),Wn);var Ka=ye(1,lt.length-1);_r>1&&a.remove(Me.line+1,_r-1),a.insert(Me.line+1,Ka)}no(a,"change",a,b)}function gi(a,b,z){function x(ee,se,ye){if(ee.linked)for(var Me=0;Me<ee.linked.length;++Me){var Ve=ee.linked[Me];if(Ve.doc!=se){var lt=ye&&Ve.sharedHist;z&&!lt||(b(Ve.doc,lt),x(Ve.doc,ee,lt))}}}x(a,null,!0)}function ji(a,b){if(b.cm)throw new Error("This document is already in use.");a.doc=b,b.cm=a,fa(a),Qa(a),qa(a),a.options.lineWrapping||ea(a),a.options.mode=b.modeOption,$a(a)}function qa(a){(a.doc.direction=="rtl"?de:Xe)(a.display.lineDiv,"CodeMirror-rtl")}function ti(a){Ma(a,function(){qa(a),$a(a)})}function Ra(a){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=a||1}function Ca(a,b){var z={from:ar(b.from),to:da(b),text:Rn(a,b.from,b.to)};return pl(a,z,b.from.line,b.to.line+1),gi(a,function(x){return pl(x,z,b.from.line,b.to.line+1)},!0),z}function Ja(a){for(;a.length;){var b=mt(a);if(b.ranges)a.pop();else break}}function ni(a,b){if(b)return Ja(a.done),mt(a.done);if(a.done.length&&!mt(a.done).ranges)return mt(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),mt(a.done)}function wi(a,b,z,x){var ee=a.history;ee.undone.length=0;var se=+new Date,ye,Me;if((ee.lastOp==x||ee.lastOrigin==b.origin&&b.origin&&(b.origin.charAt(0)=="+"&&ee.lastModTime>se-(a.cm?a.cm.options.historyEventDelay:500)||b.origin.charAt(0)=="*"))&&(ye=ni(ee,ee.lastOp==x)))Me=mt(ye.changes),ht(b.from,b.to)==0&&ht(b.from,Me.to)==0?Me.to=da(b):ye.changes.push(Ca(a,b));else{var Ve=mt(ee.done);for((!Ve||!Ve.ranges)&&so(a.sel,ee.done),ye={changes:[Ca(a,b)],generation:ee.generation},ee.done.push(ye);ee.done.length>ee.undoDepth;)ee.done.shift(),ee.done[0].ranges||ee.done.shift()}ee.done.push(z),ee.generation=++ee.maxGeneration,ee.lastModTime=ee.lastSelTime=se,ee.lastOp=ee.lastSelOp=x,ee.lastOrigin=ee.lastSelOrigin=b.origin,Me||pn(a,"historyAdded")}function _a(a,b,z,x){var ee=b.charAt(0);return ee=="*"||ee=="+"&&z.ranges.length==x.ranges.length&&z.somethingSelected()==x.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function lo(a,b,z,x){var ee=a.history,se=x&&x.origin;z==ee.lastSelOp||se&&ee.lastSelOrigin==se&&(ee.lastModTime==ee.lastSelTime&&ee.lastOrigin==se||_a(a,se,mt(ee.done),b))?ee.done[ee.done.length-1]=b:so(b,ee.done),ee.lastSelTime=+new Date,ee.lastSelOrigin=se,ee.lastSelOp=z,x&&x.clearRedo!==!1&&Ja(ee.undone)}function so(a,b){var z=mt(b);z&&z.ranges&&z.equals(a)||b.push(a)}function pl(a,b,z,x){var ee=b["spans_"+a.id],se=0;a.iter(Math.max(a.first,z),Math.min(a.first+a.size,x),function(ye){ye.markedSpans&&((ee||(ee=b["spans_"+a.id]={}))[se]=ye.markedSpans),++se})}function ul(a){if(!a)return null;for(var b,z=0;z<a.length;++z)a[z].marker.explicitlyCleared?b||(b=a.slice(0,z)):b&&b.push(a[z]);return b?b.length?b:null:a}function el(a,b){var z=b["spans_"+a.id];if(!z)return null;for(var x=[],ee=0;ee<b.text.length;++ee)x.push(ul(z[ee]));return x}function ol(a,b){var z=el(a,b),x=Ya(a,b);if(!z)return x;if(!x)return z;for(var ee=0;ee<z.length;++ee){var se=z[ee],ye=x[ee];if(se&&ye)e:for(var Me=0;Me<ye.length;++Me){for(var Ve=ye[Me],lt=0;lt<se.length;++lt)if(se[lt].marker==Ve.marker)continue e;se.push(Ve)}else ye&&(z[ee]=ye)}return z}function El(a,b,z){for(var x=[],ee=0;ee<a.length;++ee){var se=a[ee];if(se.ranges){x.push(z?Xn.prototype.deepCopy.call(se):se);continue}var ye=se.changes,Me=[];x.push({changes:Me});for(var Ve=0;Ve<ye.length;++Ve){var lt=ye[Ve],un=void 0;if(Me.push({from:lt.from,to:lt.to,text:lt.text}),b)for(var bn in lt)(un=bn.match(/^spans_(\d+)$/))&&vt(b,Number(un[1]))>-1&&(mt(Me)[bn]=lt[bn],delete lt[bn])}}return x}function mo(a,b,z,x){if(x){var ee=a.anchor;if(z){var se=ht(b,ee)<0;se!=ht(z,ee)<0?(ee=b,b=z):se!=ht(b,z)<0&&(b=z)}return new Kn(ee,b)}else return new Kn(z||b,b)}function yo(a,b,z,x,ee){ee==null&&(ee=a.cm&&(a.cm.display.shift||a.extend)),Ga(a,new Xn([mo(a.sel.primary(),b,z,ee)],0),x)}function ll(a,b,z){for(var x=[],ee=a.cm&&(a.cm.display.shift||a.extend),se=0;se<a.sel.ranges.length;se++)x[se]=mo(a.sel.ranges[se],b[se],null,ee);var ye=ia(a.cm,x,a.sel.primIndex);Ga(a,ye,z)}function cl(a,b,z,x){var ee=a.sel.ranges.slice(0);ee[b]=z,Ga(a,ia(a.cm,ee,a.sel.primIndex),x)}function mi(a,b,z,x){Ga(a,Tr(b,z),x)}function qi(a,b,z){var x={ranges:b.ranges,update:function(ee){this.ranges=[];for(var se=0;se<ee.length;se++)this.ranges[se]=new Kn(_t(a,ee[se].anchor),_t(a,ee[se].head))},origin:z&&z.origin};return pn(a,"beforeSelectionChange",a,x),a.cm&&pn(a.cm,"beforeSelectionChange",a.cm,x),x.ranges!=b.ranges?ia(a.cm,x.ranges,x.ranges.length-1):b}function li(a,b,z){var x=a.history.done,ee=mt(x);ee&&ee.ranges?(x[x.length-1]=b,po(a,b,z)):Ga(a,b,z)}function Ga(a,b,z){po(a,b,z),lo(a,a.sel,a.cm?a.cm.curOp.id:NaN,z)}function po(a,b,z){(Pt(a,"beforeSelectionChange")||a.cm&&Pt(a.cm,"beforeSelectionChange"))&&(b=qi(a,b,z));var x=z&&z.bias||(ht(b.primary().head,a.sel.primary().head)<0?-1:1);Mo(a,Co(a,b,x,!0)),!(z&&z.scroll===!1)&&a.cm&&xs(a.cm)}function Mo(a,b){b.equals(a.sel)||(a.sel=b,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,Gt(a.cm)),no(a,"cursorActivity",a))}function sl(a){Mo(a,Co(a,a.sel,null,!1))}function Co(a,b,z,x){for(var ee,se=0;se<b.ranges.length;se++){var ye=b.ranges[se],Me=b.ranges.length==a.sel.ranges.length&&a.sel.ranges[se],Ve=Bl(a,ye.anchor,Me&&Me.anchor,z,x),lt=Bl(a,ye.head,Me&&Me.head,z,x);(ee||Ve!=ye.anchor||lt!=ye.head)&&(ee||(ee=b.ranges.slice(0,se)),ee[se]=new Kn(Ve,lt))}return ee?ia(a.cm,ee,b.primIndex):b}function hl(a,b,z,x,ee){var se=An(a,b.line);if(se.markedSpans)for(var ye=0;ye<se.markedSpans.length;++ye){var Me=se.markedSpans[ye],Ve=Me.marker,lt="selectLeft"in Ve?!Ve.selectLeft:Ve.inclusiveLeft,un="selectRight"in Ve?!Ve.selectRight:Ve.inclusiveRight;if((Me.from==null||(lt?Me.from<=b.ch:Me.from<b.ch))&&(Me.to==null||(un?Me.to>=b.ch:Me.to>b.ch))){if(ee&&(pn(Ve,"beforeCursorEnter"),Ve.explicitlyCleared))if(se.markedSpans){--ye;continue}else break;if(!Ve.atomic)continue;if(z){var bn=Ve.find(x<0?1:-1),Yn=void 0;if((x<0?un:lt)&&(bn=Bi(a,bn,-x,bn&&bn.line==b.line?se:null)),bn&&bn.line==b.line&&(Yn=ht(bn,z))&&(x<0?Yn<0:Yn>0))return hl(a,bn,b,x,ee)}var Wn=Ve.find(x<0?-1:1);return(x<0?lt:un)&&(Wn=Bi(a,Wn,x,Wn.line==b.line?se:null)),Wn?hl(a,Wn,b,x,ee):null}}return b}function Bl(a,b,z,x,ee){var se=x||1,ye=hl(a,b,z,se,ee)||!ee&&hl(a,b,z,se,!0)||hl(a,b,z,-se,ee)||!ee&&hl(a,b,z,-se,!0);return ye||(a.cantEdit=!0,it(a.first,0))}function Bi(a,b,z,x){return z<0&&b.ch==0?b.line>a.first?_t(a,it(b.line-1)):null:z>0&&b.ch==(x||An(a,b.line)).text.length?b.line<a.first+a.size-1?it(b.line+1,0):null:new it(b.line,b.ch+z)}function Ri(a){a.setSelection(it(a.firstLine(),0),it(a.lastLine()),De)}function Do(a,b,z){var x={canceled:!1,from:b.from,to:b.to,text:b.text,origin:b.origin,cancel:function(){return x.canceled=!0}};return z&&(x.update=function(ee,se,ye,Me){ee&&(x.from=_t(a,ee)),se&&(x.to=_t(a,se)),ye&&(x.text=ye),Me!==void 0&&(x.origin=Me)}),pn(a,"beforeChange",a,x),a.cm&&pn(a.cm,"beforeChange",a.cm,x),x.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:x.from,to:x.to,text:x.text,origin:x.origin}}function zo(a,b,z){if(a.cm){if(!a.cm.curOp)return Fr(a.cm,zo)(a,b,z);if(a.cm.state.suppressEdits)return}if(!((Pt(a,"beforeChange")||a.cm&&Pt(a.cm,"beforeChange"))&&(b=Do(a,b,!0),!b))){var x=Gr&&!z&&$i(a,b.from,b.to);if(x)for(var ee=x.length-1;ee>=0;--ee)$o(a,{from:x[ee].from,to:x[ee].to,text:ee?[""]:b.text,origin:b.origin});else $o(a,b)}}function $o(a,b){if(!(b.text.length==1&&b.text[0]==""&&ht(b.from,b.to)==0)){var z=Jr(a,b);wi(a,b,z,a.cm?a.cm.curOp.id:NaN),Yl(a,b,z,Ya(a,b));var x=[];gi(a,function(ee,se){!se&&vt(x,ee.history)==-1&&(Dl(ee.history,b),x.push(ee.history)),Yl(ee,b,null,Ya(ee,b))})}}function _l(a,b,z){var x=a.cm&&a.cm.state.suppressEdits;if(!(x&&!z)){for(var ee=a.history,se,ye=a.sel,Me=b=="undo"?ee.done:ee.undone,Ve=b=="undo"?ee.undone:ee.done,lt=0;lt<Me.length&&(se=Me[lt],!(z?se.ranges&&!se.equals(a.sel):!se.ranges));lt++);if(lt!=Me.length){for(ee.lastOrigin=ee.lastSelOrigin=null;;)if(se=Me.pop(),se.ranges){if(so(se,Ve),z&&!se.equals(a.sel)){Ga(a,se,{clearRedo:!1});return}ye=se}else if(x){Me.push(se);return}else break;var un=[];so(ye,Ve),Ve.push({changes:un,generation:ee.generation}),ee.generation=se.generation||++ee.maxGeneration;for(var bn=Pt(a,"beforeChange")||a.cm&&Pt(a.cm,"beforeChange"),Yn=function(qr){var Ba=se.changes[qr];if(Ba.origin=b,bn&&!Do(a,Ba,!1))return Me.length=0,{};un.push(Ca(a,Ba));var Ka=qr?Jr(a,Ba):mt(Me);Yl(a,Ba,Ka,ol(a,Ba)),!qr&&a.cm&&a.cm.scrollIntoView({from:Ba.from,to:da(Ba)});var ii=[];gi(a,function(Wa,Ei){!Ei&&vt(ii,Wa.history)==-1&&(Dl(Wa.history,Ba),ii.push(Wa.history)),Yl(Wa,Ba,null,ol(Wa,Ba))})},Wn=se.changes.length-1;Wn>=0;--Wn){var _r=Yn(Wn);if(_r)return _r.v}}}}function Cl(a,b){if(b!=0&&(a.first+=b,a.sel=new Xn(dn(a.sel.ranges,function(ee){return new Kn(it(ee.anchor.line+b,ee.anchor.ch),it(ee.head.line+b,ee.head.ch))}),a.sel.primIndex),a.cm)){$a(a.cm,a.first,a.first-b,b);for(var z=a.cm.display,x=z.viewFrom;x<z.viewTo;x++)ua(a.cm,x,"gutter")}}function Yl(a,b,z,x){if(a.cm&&!a.cm.curOp)return Fr(a.cm,Yl)(a,b,z,x);if(b.to.line<a.first){Cl(a,b.text.length-1-(b.to.line-b.from.line));return}if(!(b.from.line>a.lastLine())){if(b.from.line<a.first){var ee=b.text.length-1-(a.first-b.from.line);Cl(a,ee),b={from:it(a.first,0),to:it(b.to.line+ee,b.to.ch),text:[mt(b.text)],origin:b.origin}}var se=a.lastLine();b.to.line>se&&(b={from:b.from,to:it(se,An(a,se).text.length),text:[b.text[0]],origin:b.origin}),b.removed=Rn(a,b.from,b.to),z||(z=Jr(a,b)),a.cm?Uo(a.cm,b,x):Si(a,b,x),po(a,z,De),a.cantEdit&&Bl(a,it(a.firstLine(),0))&&(a.cantEdit=!1)}}function Uo(a,b,z){var x=a.doc,ee=a.display,se=b.from,ye=b.to,Me=!1,Ve=se.line;a.options.lineWrapping||(Ve=Mt(tr(An(x,se.line))),x.iter(Ve,ye.line+1,function(Wn){if(Wn==ee.maxLine)return Me=!0,!0})),x.sel.contains(b.from,b.to)>-1&&Gt(a),Si(x,b,z,ha(a)),a.options.lineWrapping||(x.iter(Ve,se.line+b.text.length,function(Wn){var _r=ja(Wn);_r>ee.maxLineLength&&(ee.maxLine=Wn,ee.maxLineLength=_r,ee.maxLineChanged=!0,Me=!1)}),Me&&(a.curOp.updateMaxLine=!0)),Fa(x,se.line),ko(a,400);var lt=b.text.length-(ye.line-se.line)-1;b.full?$a(a):se.line==ye.line&&b.text.length==1&&!eo(a.doc,b)?ua(a,se.line,"text"):$a(a,se.line,ye.line+1,lt);var un=Pt(a,"changes"),bn=Pt(a,"change");if(bn||un){var Yn={from:se,to:ye,text:b.text,removed:b.removed,origin:b.origin};bn&&no(a,"change",a,Yn),un&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Yn)}a.display.selForContextMenu=null}function Po(a,b,z,x,ee){var se;x||(x=z),ht(x,z)<0&&(se=[x,z],z=se[0],x=se[1]),typeof b=="string"&&(b=a.splitLines(b)),zo(a,{from:z,to:x,text:b,origin:ee})}function Xo(a,b,z,x){z<a.line?a.line+=x:b<a.line&&(a.line=b,a.ch=0)}function tl(a,b,z,x){for(var ee=0;ee<a.length;++ee){var se=a[ee],ye=!0;if(se.ranges){se.copied||(se=a[ee]=se.deepCopy(),se.copied=!0);for(var Me=0;Me<se.ranges.length;Me++)Xo(se.ranges[Me].anchor,b,z,x),Xo(se.ranges[Me].head,b,z,x);continue}for(var Ve=0;Ve<se.changes.length;++Ve){var lt=se.changes[Ve];if(z<lt.from.line)lt.from=it(lt.from.line+x,lt.from.ch),lt.to=it(lt.to.line+x,lt.to.ch);else if(b<=lt.to.line){ye=!1;break}}ye||(a.splice(0,ee+1),ee=0)}}function Dl(a,b){var z=b.from.line,x=b.to.line,ee=b.text.length-(x-z)-1;tl(a.done,z,x,ee),tl(a.undone,z,x,ee)}function vl(a,b,z,x){var ee=b,se=b;return typeof b=="number"?se=An(a,Tt(a,b)):ee=Mt(b),ee==null?null:(x(se,ee)&&a.cm&&ua(a.cm,ee,z),se)}function Oo(a){this.lines=a,this.parent=null;for(var b=0,z=0;z<a.length;++z)a[z].parent=this,b+=a[z].height;this.height=b}Oo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,b){for(var z=a,x=a+b;z<x;++z){var ee=this.lines[z];this.height-=ee.height,zi(ee),no(ee,"delete")}this.lines.splice(a,b)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,b,z){this.height+=z,this.lines=this.lines.slice(0,a).concat(b).concat(this.lines.slice(a));for(var x=0;x<b.length;++x)b[x].parent=this},iterN:function(a,b,z){for(var x=a+b;a<x;++a)if(z(this.lines[a]))return!0}};function nl(a){this.children=a;for(var b=0,z=0,x=0;x<a.length;++x){var ee=a[x];b+=ee.chunkSize(),z+=ee.height,ee.parent=this}this.size=b,this.height=z,this.parent=null}nl.prototype={chunkSize:function(){return this.size},removeInner:function(a,b){this.size-=b;for(var z=0;z<this.children.length;++z){var x=this.children[z],ee=x.chunkSize();if(a<ee){var se=Math.min(b,ee-a),ye=x.height;if(x.removeInner(a,se),this.height-=ye-x.height,ee==se&&(this.children.splice(z--,1),x.parent=null),(b-=se)==0)break;a=0}else a-=ee}if(this.size-b<25&&(this.children.length>1||!(this.children[0]instanceof Oo))){var Me=[];this.collapse(Me),this.children=[new Oo(Me)],this.children[0].parent=this}},collapse:function(a){for(var b=0;b<this.children.length;++b)this.children[b].collapse(a)},insertInner:function(a,b,z){this.size+=b.length,this.height+=z;for(var x=0;x<this.children.length;++x){var ee=this.children[x],se=ee.chunkSize();if(a<=se){if(ee.insertInner(a,b,z),ee.lines&&ee.lines.length>50){for(var ye=ee.lines.length%25+25,Me=ye;Me<ee.lines.length;){var Ve=new Oo(ee.lines.slice(Me,Me+=25));ee.height-=Ve.height,this.children.splice(++x,0,Ve),Ve.parent=this}ee.lines=ee.lines.slice(0,ye),this.maybeSpill()}break}a-=se}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var b=a.children.splice(a.children.length-5,5),z=new nl(b);if(a.parent){a.size-=z.size,a.height-=z.height;var ee=vt(a.parent.children,a);a.parent.children.splice(ee+1,0,z)}else{var x=new nl(a.children);x.parent=a,a.children=[x,z],a=x}z.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,b,z){for(var x=0;x<this.children.length;++x){var ee=this.children[x],se=ee.chunkSize();if(a<se){var ye=Math.min(b,se-a);if(ee.iterN(a,ye,z))return!0;if((b-=ye)==0)break;a=0}else a-=se}}};var Lo=function(a,b,z){if(z)for(var x in z)z.hasOwnProperty(x)&&(this[x]=z[x]);this.doc=a,this.node=b};Lo.prototype.clear=function(){var a=this.doc.cm,b=this.line.widgets,z=this.line,x=Mt(z);if(!(x==null||!b)){for(var ee=0;ee<b.length;++ee)b[ee]==this&&b.splice(ee--,1);b.length||(z.widgets=null);var se=oo(this);vr(z,Math.max(0,z.height-se)),a&&(Ma(a,function(){Kl(a,z,-se),ua(a,x,"widget")}),no(a,"lineWidgetCleared",a,this,x))}},Lo.prototype.changed=function(){var a=this,b=this.height,z=this.doc.cm,x=this.line;this.height=null;var ee=oo(this)-b;ee&&($r(this.doc,x)||vr(x,x.height+ee),z&&Ma(z,function(){z.curOp.forceUpdate=!0,Kl(z,x,ee),no(z,"lineWidgetChanged",z,a,Mt(x))}))},Je(Lo);function Kl(a,b,z){Ta(b)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&eu(a,z)}function gl(a,b,z,x){var ee=new Lo(a,z,x),se=a.cm;return se&&ee.noHScroll&&(se.display.alignWidgets=!0),vl(a,b,"widget",function(ye){var Me=ye.widgets||(ye.widgets=[]);if(ee.insertAt==null?Me.push(ee):Me.splice(Math.min(Me.length-1,Math.max(0,ee.insertAt)),0,ee),ee.line=ye,se&&!$r(a,ye)){var Ve=Ta(ye)<a.scrollTop;vr(ye,ye.height+oo(ee)),Ve&&eu(se,ee.height),se.curOp.forceUpdate=!0}return!0}),se&&no(se,"lineWidgetAdded",se,ee,typeof b=="number"?b:Mt(b)),ee}var ts=0,os=function(a,b){this.lines=[],this.type=b,this.doc=a,this.id=++ts};os.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,b=a&&!a.curOp;if(b&&Ps(a),Pt(this,"clear")){var z=this.find();z&&no(this,"clear",z.from,z.to)}for(var x=null,ee=null,se=0;se<this.lines.length;++se){var ye=this.lines[se],Me=kr(ye.markedSpans,this);a&&!this.collapsed?ua(a,Mt(ye),"text"):a&&(Me.to!=null&&(ee=Mt(ye)),Me.from!=null&&(x=Mt(ye))),ye.markedSpans=Za(ye.markedSpans,Me),Me.from==null&&this.collapsed&&!$r(this.doc,ye)&&a&&vr(ye,Ar(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var Ve=0;Ve<this.lines.length;++Ve){var lt=tr(this.lines[Ve]),un=ja(lt);un>a.display.maxLineLength&&(a.display.maxLine=lt,a.display.maxLineLength=un,a.display.maxLineChanged=!0)}x!=null&&a&&this.collapsed&&$a(a,x,ee+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&sl(a.doc)),a&&no(a,"markerCleared",a,this,x,ee),b&&ws(a),this.parent&&this.parent.clear()}},os.prototype.find=function(a,b){a==null&&this.type=="bookmark"&&(a=1);for(var z,x,ee=0;ee<this.lines.length;++ee){var se=this.lines[ee],ye=kr(se.markedSpans,this);if(ye.from!=null&&(z=it(b?se:Mt(se),ye.from),a==-1))return z;if(ye.to!=null&&(x=it(b?se:Mt(se),ye.to),a==1))return x}return z&&{from:z,to:x}},os.prototype.changed=function(){var a=this,b=this.find(-1,!0),z=this,x=this.doc.cm;!b||!x||Ma(x,function(){var ee=b.line,se=Mt(b.line),ye=yr(x,se);if(ye&&(Vr(ye),x.curOp.selectionChanged=x.curOp.forceUpdate=!0),x.curOp.updateMaxLine=!0,!$r(z.doc,ee)&&z.height!=null){var Me=z.height;z.height=null;var Ve=oo(z)-Me;Ve&&vr(ee,ee.height+Ve)}no(x,"markerChanged",x,a)})},os.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(!b.maybeHiddenMarkers||vt(b.maybeHiddenMarkers,this)==-1)&&(b.maybeUnhiddenMarkers||(b.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},os.prototype.detachLine=function(a){if(this.lines.splice(vt(this.lines,a),1),!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(b.maybeHiddenMarkers||(b.maybeHiddenMarkers=[])).push(this)}},Je(os);function Bs(a,b,z,x,ee){if(x&&x.shared)return fu(a,b,z,x,ee);if(a.cm&&!a.cm.curOp)return Fr(a.cm,Bs)(a,b,z,x,ee);var se=new os(a,ee),ye=ht(b,z);if(x&&st(x,se,!1),ye>0||ye==0&&se.clearWhenEmpty!==!1)return se;if(se.replacedWith&&(se.collapsed=!0,se.widgetNode=Ue("span",[se.replacedWith],"CodeMirror-widget"),x.handleMouseEvents||se.widgetNode.setAttribute("cm-ignore-events","true"),x.insertLeft&&(se.widgetNode.insertLeft=!0)),se.collapsed){if(xr(a,b.line,b,z,se)||b.line!=z.line&&xr(a,z.line,b,z,se))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ia()}se.addToHistory&&wi(a,{from:b,to:z,origin:"markText"},a.sel,NaN);var Me=b.line,Ve=a.cm,lt;if(a.iter(Me,z.line+1,function(bn){Ve&&se.collapsed&&!Ve.options.lineWrapping&&tr(bn)==Ve.display.maxLine&&(lt=!0),se.collapsed&&Me!=b.line&&vr(bn,0),Sa(bn,new pa(se,Me==b.line?b.ch:null,Me==z.line?z.ch:null)),++Me}),se.collapsed&&a.iter(b.line,z.line+1,function(bn){$r(a,bn)&&vr(bn,0)}),se.clearOnEnter&&Vt(se,"beforeCursorEnter",function(){return se.clear()}),se.readOnly&&(Xa(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),se.collapsed&&(se.id=++ts,se.atomic=!0),Ve){if(lt&&(Ve.curOp.updateMaxLine=!0),se.collapsed)$a(Ve,b.line,z.line+1);else if(se.className||se.startStyle||se.endStyle||se.css||se.attributes||se.title)for(var un=b.line;un<=z.line;un++)ua(Ve,un,"text");se.atomic&&sl(Ve.doc),no(Ve,"markerAdded",Ve,se)}return se}var rl=function(a,b){this.markers=a,this.primary=b;for(var z=0;z<a.length;++z)a[z].parent=this};rl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();no(this,"clear")}},rl.prototype.find=function(a,b){return this.primary.find(a,b)},Je(rl);function fu(a,b,z,x,ee){x=st(x),x.shared=!1;var se=[Bs(a,b,z,x,ee)],ye=se[0],Me=x.widgetNode;return gi(a,function(Ve){Me&&(x.widgetNode=Me.cloneNode(!0)),se.push(Bs(Ve,_t(Ve,b),_t(Ve,z),x,ee));for(var lt=0;lt<Ve.linked.length;++lt)if(Ve.linked[lt].isParent)return;ye=mt(se)}),new rl(se,ye)}function ls(a){return a.findMarks(it(a.first,0),a.clipPos(it(a.lastLine())),function(b){return b.parent})}function bs(a,b){for(var z=0;z<b.length;z++){var x=b[z],ee=x.find(),se=a.clipPos(ee.from),ye=a.clipPos(ee.to);if(ht(se,ye)){var Me=Bs(a,se,ye,x.primary,x.primary.type);x.markers.push(Me),Me.parent=x}}}function Es(a){for(var b=function(x){var ee=a[x],se=[ee.primary.doc];gi(ee.primary.doc,function(Ve){return se.push(Ve)});for(var ye=0;ye<ee.markers.length;ye++){var Me=ee.markers[ye];vt(se,Me.doc)==-1&&(Me.parent=null,ee.markers.splice(ye--,1))}},z=0;z<a.length;z++)b(z)}var Wl=0,al=function(a,b,z,x,ee){if(!(this instanceof al))return new al(a,b,z,x,ee);z==null&&(z=0),nl.call(this,[new Oo([new ai("",null)])]),this.first=z,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=z;var se=it(z,0);this.sel=Tr(se),this.history=new Ra(null),this.id=++Wl,this.modeOption=b,this.lineSep=x,this.direction=ee=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),Si(this,{from:se,to:se,text:a}),Ga(this,Tr(se),De)};al.prototype=ie(nl.prototype,{constructor:al,iter:function(a,b,z){z?this.iterN(a-this.first,b-a,z):this.iterN(this.first,this.first+this.size,a)},insert:function(a,b){for(var z=0,x=0;x<b.length;++x)z+=b[x].height;this.insertInner(a-this.first,b,z)},remove:function(a,b){this.removeInner(a-this.first,b)},getValue:function(a){var b=dr(this,this.first,this.first+this.size);return a===!1?b:b.join(a||this.lineSeparator())},setValue:Ki(function(a){var b=it(this.first,0),z=this.first+this.size-1;zo(this,{from:b,to:it(z,An(this,z).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&As(this.cm,0,0),Ga(this,Tr(b),De)}),replaceRange:function(a,b,z,x){b=_t(this,b),z=z?_t(this,z):b,Po(this,a,b,z,x)},getRange:function(a,b,z){var x=Rn(this,_t(this,a),_t(this,b));return z===!1?x:x.join(z||this.lineSeparator())},getLine:function(a){var b=this.getLineHandle(a);return b&&b.text},getLineHandle:function(a){if(ft(this,a))return An(this,a)},getLineNumber:function(a){return Mt(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=An(this,a)),tr(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return _t(this,a)},getCursor:function(a){var b=this.sel.primary(),z;return a==null||a=="head"?z=b.head:a=="anchor"?z=b.anchor:a=="end"||a=="to"||a===!1?z=b.to():z=b.from(),z},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ki(function(a,b,z){mi(this,_t(this,typeof a=="number"?it(a,b||0):a),null,z)}),setSelection:Ki(function(a,b,z){mi(this,_t(this,a),_t(this,b||a),z)}),extendSelection:Ki(function(a,b,z){yo(this,_t(this,a),b&&_t(this,b),z)}),extendSelections:Ki(function(a,b){ll(this,Fn(this,a),b)}),extendSelectionsBy:Ki(function(a,b){var z=dn(this.sel.ranges,a);ll(this,Fn(this,z),b)}),setSelections:Ki(function(a,b,z){if(a.length){for(var x=[],ee=0;ee<a.length;ee++)x[ee]=new Kn(_t(this,a[ee].anchor),_t(this,a[ee].head));b==null&&(b=Math.min(a.length-1,this.sel.primIndex)),Ga(this,ia(this.cm,x,b),z)}}),addSelection:Ki(function(a,b,z){var x=this.sel.ranges.slice(0);x.push(new Kn(_t(this,a),_t(this,b||a))),Ga(this,ia(this.cm,x,x.length-1),z)}),getSelection:function(a){for(var b=this.sel.ranges,z,x=0;x<b.length;x++){var ee=Rn(this,b[x].from(),b[x].to());z=z?z.concat(ee):ee}return a===!1?z:z.join(a||this.lineSeparator())},getSelections:function(a){for(var b=[],z=this.sel.ranges,x=0;x<z.length;x++){var ee=Rn(this,z[x].from(),z[x].to());a!==!1&&(ee=ee.join(a||this.lineSeparator())),b[x]=ee}return b},replaceSelection:function(a,b,z){for(var x=[],ee=0;ee<this.sel.ranges.length;ee++)x[ee]=a;this.replaceSelections(x,b,z||"+input")},replaceSelections:Ki(function(a,b,z){for(var x=[],ee=this.sel,se=0;se<ee.ranges.length;se++){var ye=ee.ranges[se];x[se]={from:ye.from(),to:ye.to(),text:this.splitLines(a[se]),origin:z}}for(var Me=b&&b!="end"&&La(this,x,b),Ve=x.length-1;Ve>=0;Ve--)zo(this,x[Ve]);Me?li(this,Me):this.cm&&xs(this.cm)}),undo:Ki(function(){_l(this,"undo")}),redo:Ki(function(){_l(this,"redo")}),undoSelection:Ki(function(){_l(this,"undo",!0)}),redoSelection:Ki(function(){_l(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,b=0,z=0,x=0;x<a.done.length;x++)a.done[x].ranges||++b;for(var ee=0;ee<a.undone.length;ee++)a.undone[ee].ranges||++z;return{undo:b,redo:z}},clearHistory:function(){var a=this;this.history=new Ra(this.history.maxGeneration),gi(this,function(b){return b.history=a.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:El(this.history.done),undone:El(this.history.undone)}},setHistory:function(a){var b=this.history=new Ra(this.history.maxGeneration);b.done=El(a.done.slice(0),null,!0),b.undone=El(a.undone.slice(0),null,!0)},setGutterMarker:Ki(function(a,b,z){return vl(this,a,"gutter",function(x){var ee=x.gutterMarkers||(x.gutterMarkers={});return ee[b]=z,!z&&ae(ee)&&(x.gutterMarkers=null),!0})}),clearGutter:Ki(function(a){var b=this;this.iter(function(z){z.gutterMarkers&&z.gutterMarkers[a]&&vl(b,z,"gutter",function(){return z.gutterMarkers[a]=null,ae(z.gutterMarkers)&&(z.gutterMarkers=null),!0})})}),lineInfo:function(a){var b;if(typeof a=="number"){if(!ft(this,a)||(b=a,a=An(this,a),!a))return null}else if(b=Mt(a),b==null)return null;return{line:b,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:Ki(function(a,b,z){return vl(this,a,b=="gutter"?"gutter":"class",function(x){var ee=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass";if(!x[ee])x[ee]=z;else{if(He(z).test(x[ee]))return!1;x[ee]+=" "+z}return!0})}),removeLineClass:Ki(function(a,b,z){return vl(this,a,b=="gutter"?"gutter":"class",function(x){var ee=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass",se=x[ee];if(se)if(z==null)x[ee]=null;else{var ye=se.match(He(z));if(!ye)return!1;var Me=ye.index+ye[0].length;x[ee]=se.slice(0,ye.index)+(!ye.index||Me==se.length?"":" ")+se.slice(Me)||null}else return!1;return!0})}),addLineWidget:Ki(function(a,b,z){return gl(this,a,b,z)}),removeLineWidget:function(a){a.clear()},markText:function(a,b,z){return Bs(this,_t(this,a),_t(this,b),z,z&&z.type||"range")},setBookmark:function(a,b){var z={replacedWith:b&&(b.nodeType==null?b.widget:b),insertLeft:b&&b.insertLeft,clearWhenEmpty:!1,shared:b&&b.shared,handleMouseEvents:b&&b.handleMouseEvents};return a=_t(this,a),Bs(this,a,a,z,"bookmark")},findMarksAt:function(a){a=_t(this,a);var b=[],z=An(this,a.line).markedSpans;if(z)for(var x=0;x<z.length;++x){var ee=z[x];(ee.from==null||ee.from<=a.ch)&&(ee.to==null||ee.to>=a.ch)&&b.push(ee.marker.parent||ee.marker)}return b},findMarks:function(a,b,z){a=_t(this,a),b=_t(this,b);var x=[],ee=a.line;return this.iter(a.line,b.line+1,function(se){var ye=se.markedSpans;if(ye)for(var Me=0;Me<ye.length;Me++){var Ve=ye[Me];!(Ve.to!=null&&ee==a.line&&a.ch>=Ve.to||Ve.from==null&&ee!=a.line||Ve.from!=null&&ee==b.line&&Ve.from>=b.ch)&&(!z||z(Ve.marker))&&x.push(Ve.marker.parent||Ve.marker)}++ee}),x},getAllMarks:function(){var a=[];return this.iter(function(b){var z=b.markedSpans;if(z)for(var x=0;x<z.length;++x)z[x].from!=null&&a.push(z[x].marker)}),a},posFromIndex:function(a){var b,z=this.first,x=this.lineSeparator().length;return this.iter(function(ee){var se=ee.text.length+x;if(se>a)return b=a,!0;a-=se,++z}),_t(this,it(z,b))},indexFromPos:function(a){a=_t(this,a);var b=a.ch;if(a.line<this.first||a.ch<0)return 0;var z=this.lineSeparator().length;return this.iter(this.first,a.line,function(x){b+=x.text.length+z}),b},copy:function(a){var b=new al(dr(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return b.scrollTop=this.scrollTop,b.scrollLeft=this.scrollLeft,b.sel=this.sel,b.extend=!1,a&&(b.history.undoDepth=this.history.undoDepth,b.setHistory(this.getHistory())),b},linkedDoc:function(a){a||(a={});var b=this.first,z=this.first+this.size;a.from!=null&&a.from>b&&(b=a.from),a.to!=null&&a.to<z&&(z=a.to);var x=new al(dr(this,b,z),a.mode||this.modeOption,b,this.lineSep,this.direction);return a.sharedHist&&(x.history=this.history),(this.linked||(this.linked=[])).push({doc:x,sharedHist:a.sharedHist}),x.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],bs(x,ls(this)),x},unlinkDoc:function(a){if(a instanceof wl&&(a=a.doc),this.linked)for(var b=0;b<this.linked.length;++b){var z=this.linked[b];if(z.doc==a){this.linked.splice(b,1),a.unlinkDoc(this),Es(ls(this));break}}if(a.history==this.history){var x=[a.id];gi(a,function(ee){return x.push(ee.id)},!0),a.history=new Ra(null),a.history.done=El(this.history.done,x),a.history.undone=El(this.history.undone,x)}},iterLinkedDocs:function(a){gi(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):On(a)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:Ki(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(b){return b.order=null}),this.cm&&ti(this.cm))})}),al.prototype.eachLine=al.prototype.iter;var ss=0;function Hs(a){var b=this;if(nu(b),!(kt(b,a)||Qo(b.display,a))){It(a),xe&&(ss=+new Date);var z=Nr(b,a,!0),x=a.dataTransfer.files;if(!(!z||b.isReadOnly()))if(x&&x.length&&window.FileReader&&window.File)for(var ee=x.length,se=Array(ee),ye=0,Me=function(){++ye==ee&&Fr(b,function(){z=_t(b.doc,z);var Wn={from:z,to:z,text:b.doc.splitLines(se.filter(function(_r){return _r!=null}).join(b.doc.lineSeparator())),origin:"paste"};zo(b.doc,Wn),li(b.doc,Tr(_t(b.doc,z),_t(b.doc,da(Wn))))})()},Ve=function(Wn,_r){if(b.options.allowDropFileTypes&&vt(b.options.allowDropFileTypes,Wn.type)==-1){Me();return}var qr=new FileReader;qr.onerror=function(){return Me()},qr.onload=function(){var Ba=qr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ba)){Me();return}se[_r]=Ba,Me()},qr.readAsText(Wn)},lt=0;lt<x.length;lt++)Ve(x[lt],lt);else{if(b.state.draggingText&&b.doc.sel.contains(z)>-1){b.state.draggingText(a),setTimeout(function(){return b.display.input.focus()},20);return}try{var un=a.dataTransfer.getData("Text");if(un){var bn;if(b.state.draggingText&&!b.state.draggingText.copy&&(bn=b.listSelections()),po(b.doc,Tr(z,z)),bn)for(var Yn=0;Yn<bn.length;++Yn)Po(b.doc,"",bn[Yn].anchor,bn[Yn].head,"drag");b.replaceSelection(un,"around","paste"),b.display.input.focus()}}catch(Wn){}}}}function Os(a,b){if(xe&&(!a.state.draggingText||+new Date-ss<100)){nt(b);return}if(!(kt(a,b)||Qo(a.display,b))&&(b.dataTransfer.setData("Text",a.getSelection()),b.dataTransfer.effectAllowed="copyMove",b.dataTransfer.setDragImage&&!$e)){var z=ot("img",null,null,"position: fixed; left: 0; top: 0;");z.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",fe&&(z.width=z.height=1,a.display.wrapper.appendChild(z),z._top=z.offsetTop),b.dataTransfer.setDragImage(z,0,0),fe&&z.parentNode.removeChild(z)}}function Ns(a,b){var z=Nr(a,b);if(z){var x=document.createDocumentFragment();Pa(a,z,x),a.display.dragCursor||(a.display.dragCursor=ot("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),gt(a.display.dragCursor,x)}}function nu(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function mu(a){if(document.getElementsByClassName){for(var b=document.getElementsByClassName("CodeMirror"),z=[],x=0;x<b.length;x++){var ee=b[x].CodeMirror;ee&&z.push(ee)}z.length&&z[0].operation(function(){for(var se=0;se<z.length;se++)a(z[se])})}}var Su=!1;function wu(){Su||(Zu(),Su=!0)}function Zu(){var a;Vt(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,mu(io)},100))}),Vt(window,"blur",function(){return mu(Ml)})}function io(a){var b=a.display;b.cachedCharWidth=b.cachedTextHeight=b.cachedPaddingH=null,b.scrollbarsClipped=!1,a.setSize()}for(var wo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},fl=0;fl<10;fl++)wo[fl+48]=wo[fl+96]=String(fl);for(var xl=65;xl<=90;xl++)wo[xl]=String.fromCharCode(xl);for(var zl=1;zl<=12;zl++)wo[zl+111]=wo[zl+63235]="F"+zl;var Sl={};Sl.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Sl.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Sl.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Sl.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Sl.default=Ie?Sl.macDefault:Sl.pcDefault;function Ds(a){var b=a.split(/-(?!$)/);a=b[b.length-1];for(var z,x,ee,se,ye=0;ye<b.length-1;ye++){var Me=b[ye];if(/^(cmd|meta|m)$/i.test(Me))se=!0;else if(/^a(lt)?$/i.test(Me))z=!0;else if(/^(c|ctrl|control)$/i.test(Me))x=!0;else if(/^s(hift)?$/i.test(Me))ee=!0;else throw new Error("Unrecognized modifier name: "+Me)}return z&&(a="Alt-"+a),x&&(a="Ctrl-"+a),se&&(a="Cmd-"+a),ee&&(a="Shift-"+a),a}function Ul(a){var b={};for(var z in a)if(a.hasOwnProperty(z)){var x=a[z];if(/^(name|fallthrough|(de|at)tach)$/.test(z))continue;if(x=="..."){delete a[z];continue}for(var ee=dn(z.split(" "),Ds),se=0;se<ee.length;se++){var ye=void 0,Me=void 0;se==ee.length-1?(Me=ee.join(" "),ye=x):(Me=ee.slice(0,se+1).join(" "),ye="...");var Ve=b[Me];if(!Ve)b[Me]=ye;else if(Ve!=ye)throw new Error("Inconsistent bindings for "+Me)}delete a[z]}for(var lt in b)a[lt]=b[lt];return a}function ks(a,b,z,x){b=pu(b);var ee=b.call?b.call(a,x):b[a];if(ee===!1)return"nothing";if(ee==="...")return"multi";if(ee!=null&&z(ee))return"handled";if(b.fallthrough){if(Object.prototype.toString.call(b.fallthrough)!="[object Array]")return ks(a,b.fallthrough,z,x);for(var se=0;se<b.fallthrough.length;se++){var ye=ks(a,b.fallthrough[se],z,x);if(ye)return ye}}}function Bu(a){var b=typeof a=="string"?a:wo[a.keyCode];return b=="Ctrl"||b=="Alt"||b=="Shift"||b=="Mod"}function ru(a,b,z){var x=a;return b.altKey&&x!="Alt"&&(a="Alt-"+a),(_e?b.metaKey:b.ctrlKey)&&x!="Ctrl"&&(a="Ctrl-"+a),(_e?b.ctrlKey:b.metaKey)&&x!="Mod"&&(a="Cmd-"+a),!z&&b.shiftKey&&x!="Shift"&&(a="Shift-"+a),a}function Ys(a,b){if(fe&&a.keyCode==34&&a.char)return!1;var z=wo[a.keyCode];return z==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(z=a.code),ru(z,a,b))}function pu(a){return typeof a=="string"?Sl[a]:a}function Qs(a,b){for(var z=a.doc.sel.ranges,x=[],ee=0;ee<z.length;ee++){for(var se=b(z[ee]);x.length&&ht(se.from,mt(x).to)<=0;){var ye=x.pop();if(ht(ye.from,se.from)<0){se.from=ye.from;break}}x.push(se)}Ma(a,function(){for(var Me=x.length-1;Me>=0;Me--)Po(a.doc,"",x[Me].from,x[Me].to,"+delete");xs(a)})}function ju(a,b,z){var x=Ot(a.text,b+z,z);return x<0||x>a.text.length?null:x}function Ls(a,b,z){var x=ju(a,b.ch,z);return x==null?null:new it(b.line,x,z<0?"after":"before")}function $u(a,b,z,x,ee){if(a){b.doc.direction=="rtl"&&(ee=-ee);var se=Ye(z,b.doc.direction);if(se){var ye=ee<0?mt(se):se[0],Me=ee<0==(ye.level==1),Ve=Me?"after":"before",lt;if(ye.level>0||b.doc.direction=="rtl"){var un=na(b,z);lt=ee<0?z.text.length-1:0;var bn=xi(b,un,lt).top;lt=at(function(Yn){return xi(b,un,Yn).top==bn},ee<0==(ye.level==1)?ye.from:ye.to-1,lt),Ve=="before"&&(lt=ju(z,lt,1))}else lt=ee<0?ye.to:ye.from;return new it(x,lt,Ve)}}return new it(x,ee<0?z.text.length:0,ee<0?"before":"after")}function tc(a,b,z,x){var ee=Ye(b,a.doc.direction);if(!ee)return Ls(b,z,x);z.ch>=b.text.length?(z.ch=b.text.length,z.sticky="before"):z.ch<=0&&(z.ch=0,z.sticky="after");var se=At(ee,z.ch,z.sticky),ye=ee[se];if(a.doc.direction=="ltr"&&ye.level%2==0&&(x>0?ye.to>z.ch:ye.from<z.ch))return Ls(b,z,x);var Me=function(Ka,ii){return ju(b,Ka instanceof it?Ka.ch:Ka,ii)},Ve,lt=function(Ka){return a.options.lineWrapping?(Ve=Ve||na(a,b),an(a,b,Ve,Ka)):{begin:0,end:b.text.length}},un=lt(z.sticky=="before"?Me(z,-1):z.ch);if(a.doc.direction=="rtl"||ye.level==1){var bn=ye.level==1==x<0,Yn=Me(z,bn?1:-1);if(Yn!=null&&(bn?Yn<=ye.to&&Yn<=un.end:Yn>=ye.from&&Yn>=un.begin)){var Wn=bn?"before":"after";return new it(z.line,Yn,Wn)}}var _r=function(Ka,ii,Wa){for(var Ei=function(ml,ql){return ql?new it(z.line,Me(ml,1),"before"):new it(z.line,ml,"after")};Ka>=0&&Ka<ee.length;Ka+=ii){var to=ee[Ka],Ui=ii>0==(to.level!=1),Bo=Ui?Wa.begin:Me(Wa.end,-1);if(to.from<=Bo&&Bo<to.to||(Bo=Ui?to.from:Me(to.to,-1),Wa.begin<=Bo&&Bo<Wa.end))return Ei(Bo,Ui)}},qr=_r(se+x,x,un);if(qr)return qr;var Ba=x>0?un.end:Me(un.begin,-1);return Ba!=null&&!(x>0&&Ba==b.text.length)&&(qr=_r(x>0?0:ee.length-1,x,lt(Ba)),qr)?qr:null}var Vs={selectAll:Ri,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),De)},killLine:function(a){return Qs(a,function(b){if(b.empty()){var z=An(a.doc,b.head.line).text.length;return b.head.ch==z&&b.head.line<a.lastLine()?{from:b.head,to:it(b.head.line+1,0)}:{from:b.head,to:it(b.head.line,z)}}else return{from:b.from(),to:b.to()}})},deleteLine:function(a){return Qs(a,function(b){return{from:it(b.from().line,0),to:_t(a.doc,it(b.to().line+1,0))}})},delLineLeft:function(a){return Qs(a,function(b){return{from:it(b.from().line,0),to:b.from()}})},delWrappedLineLeft:function(a){return Qs(a,function(b){var z=a.charCoords(b.head,"div").top+5,x=a.coordsChar({left:0,top:z},"div");return{from:x,to:b.from()}})},delWrappedLineRight:function(a){return Qs(a,function(b){var z=a.charCoords(b.head,"div").top+5,x=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:z},"div");return{from:b.from(),to:x}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(it(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(it(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(b){return Wu(a,b.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(b){return Hu(a,b.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(b){return zu(a,b.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(b){var z=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:z},"div")},ut)},goLineLeft:function(a){return a.extendSelectionsBy(function(b){var z=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:0,top:z},"div")},ut)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(b){var z=a.cursorCoords(b.head,"div").top+5,x=a.coordsChar({left:0,top:z},"div");return x.ch<a.getLine(x.line).search(/\S/)?Hu(a,b.head):x},ut)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var b=[],z=a.listSelections(),x=a.options.tabSize,ee=0;ee<z.length;ee++){var se=z[ee].from(),ye=Ce(a.getLine(se.line),se.ch,x);b.push(Ct(x-ye%x))}a.replaceSelections(b)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return Ma(a,function(){for(var b=a.listSelections(),z=[],x=0;x<b.length;x++)if(b[x].empty()){var ee=b[x].head,se=An(a.doc,ee.line).text;if(se){if(ee.ch==se.length&&(ee=new it(ee.line,ee.ch-1)),ee.ch>0)ee=new it(ee.line,ee.ch+1),a.replaceRange(se.charAt(ee.ch-1)+se.charAt(ee.ch-2),it(ee.line,ee.ch-2),ee,"+transpose");else if(ee.line>a.doc.first){var ye=An(a.doc,ee.line-1).text;ye&&(ee=new it(ee.line,1),a.replaceRange(se.charAt(0)+a.doc.lineSeparator()+ye.charAt(ye.length-1),it(ee.line-1,ye.length-1),ee,"+transpose"))}}z.push(new Kn(ee,ee))}a.setSelections(z)})},newlineAndIndent:function(a){return Ma(a,function(){for(var b=a.listSelections(),z=b.length-1;z>=0;z--)a.replaceRange(a.doc.lineSeparator(),b[z].anchor,b[z].head,"+input");b=a.listSelections();for(var x=0;x<b.length;x++)a.indentLine(b[x].from().line,null,!0);xs(a)})},openLine:function(a){return a.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function Wu(a,b){var z=An(a.doc,b),x=tr(z);return x!=z&&(b=Mt(x)),$u(!0,a,x,b,1)}function zu(a,b){var z=An(a.doc,b),x=jr(z);return x!=z&&(b=Mt(x)),$u(!0,a,z,b,-1)}function Hu(a,b){var z=Wu(a,b.line),x=An(a.doc,z.line),ee=Ye(x,a.doc.direction);if(!ee||ee[0].level==0){var se=Math.max(z.ch,x.text.search(/\S/)),ye=b.line==z.line&&b.ch<=se&&b.ch;return it(z.line,ye?0:se,z.sticky)}return z}function hu(a,b,z){if(typeof b=="string"&&(b=Vs[b],!b))return!1;a.display.input.ensurePolled();var x=a.display.shift,ee=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),z&&(a.display.shift=!1),ee=b(a)!=jt}finally{a.display.shift=x,a.state.suppressEdits=!1}return ee}function sc(a,b,z){for(var x=0;x<a.state.keyMaps.length;x++){var ee=ks(b,a.state.keyMaps[x],z,a);if(ee)return ee}return a.options.extraKeys&&ks(b,a.options.extraKeys,z,a)||ks(b,a.options.keyMap,z,a)}var uc=new be;function vu(a,b,z,x){var ee=a.state.keySeq;if(ee){if(Bu(b))return"handled";if(/\'$/.test(b)?a.state.keySeq=null:uc.set(50,function(){a.state.keySeq==ee&&(a.state.keySeq=null,a.display.input.reset())}),Vu(a,ee+" "+b,z,x))return!0}return Vu(a,b,z,x)}function Vu(a,b,z,x){var ee=sc(a,b,x);return ee=="multi"&&(a.state.keySeq=b),ee=="handled"&&no(a,"keyHandled",a,b,z),(ee=="handled"||ee=="multi")&&(It(z),Ko(a)),!!ee}function gu(a,b){var z=Ys(b,!0);return z?b.shiftKey&&!a.state.keySeq?vu(a,"Shift-"+z,b,function(x){return hu(a,x,!0)})||vu(a,z,b,function(x){if(typeof x=="string"?/^go[A-Z]/.test(x):x.motion)return hu(a,x)}):vu(a,z,b,function(x){return hu(a,x)}):!1}function Du(a,b,z){return vu(a,"'"+z+"'",b,function(x){return hu(a,x,!0)})}var yu=null;function Ku(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&(b.curOp.focus=Ae(),!kt(b,a))){xe&&ge<11&&a.keyCode==27&&(a.returnValue=!1);var z=a.keyCode;b.display.shift=z==16||a.shiftKey;var x=gu(b,a);fe&&(yu=x?z:null,!x&&z==88&&!Zt&&(Ie?a.metaKey:a.ctrlKey)&&b.replaceSelection("",null,"cut")),y&&!Ie&&!x&&z==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),z==18&&!/\bCodeMirror-crosshair\b/.test(b.display.lineDiv.className)&&nc(b)}}function nc(a){var b=a.display.lineDiv;de(b,"CodeMirror-crosshair");function z(x){(x.keyCode==18||!x.altKey)&&(Xe(b,"CodeMirror-crosshair"),wn(document,"keyup",z),wn(document,"mouseover",z))}Vt(document,"keyup",z),Vt(document,"mouseover",z)}function Uu(a){a.keyCode==16&&(this.doc.sel.shift=!1),kt(this,a)}function Au(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&!(Qo(b.display,a)||kt(b,a)||a.ctrlKey&&!a.altKey||Ie&&a.metaKey)){var z=a.keyCode,x=a.charCode;if(fe&&z==yu){yu=null,It(a);return}if(!(fe&&(!a.which||a.which<10)&&gu(b,a))){var ee=String.fromCharCode(x==null?z:x);ee!="\b"&&(Du(b,a,ee)||b.display.input.onKeyPress(a))}}}var cc=400,Fu=function(a,b,z){this.time=a,this.pos=b,this.button=z};Fu.prototype.compare=function(a,b,z){return this.time+cc>a&&ht(b,this.pos)==0&&z==this.button};var Js,au;function Gu(a,b){var z=+new Date;return au&&au.compare(z,a,b)?(Js=au=null,"triple"):Js&&Js.compare(z,a,b)?(au=new Fu(z,a,b),Js=null,"double"):(Js=new Fu(z,a,b),au=null,"single")}function Xu(a){var b=this,z=b.display;if(!(kt(b,a)||z.activeTouch&&z.input.supportsTouch())){if(z.input.ensurePolled(),z.shift=a.shiftKey,Qo(z,a)){Se||(z.scroller.draggable=!1,setTimeout(function(){return z.scroller.draggable=!0},100));return}if(!Ms(b,a)){var x=Nr(b,a),ee=Jt(a),se=x?Gu(x,ee):"single";window.focus(),ee==1&&b.state.selectingText&&b.state.selectingText(a),!(x&&Iu(b,ee,x,se,a))&&(ee==1?x?_o(b,x,se,a):Nt(a)==z.scroller&&It(a):ee==2?(x&&yo(b.doc,x),setTimeout(function(){return z.input.focus()},20)):ee==3&&(Fe?b.display.input.onContextMenu(a):Oi(b)))}}}function Iu(a,b,z,x,ee){var se="Click";return x=="double"?se="Double"+se:x=="triple"&&(se="Triple"+se),se=(b==1?"Left":b==2?"Middle":"Right")+se,vu(a,ru(se,ee),ee,function(ye){if(typeof ye=="string"&&(ye=Vs[ye]),!ye)return!1;var Me=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),Me=ye(a,z)!=jt}finally{a.state.suppressEdits=!1}return Me})}function Ao(a,b,z){var x=a.getOption("configureMouse"),ee=x?x(a,b,z):{};if(ee.unit==null){var se=Pe?z.shiftKey&&z.metaKey:z.altKey;ee.unit=se?"rectangle":b=="single"?"char":b=="double"?"word":"line"}return(ee.extend==null||a.doc.extend)&&(ee.extend=a.doc.extend||z.shiftKey),ee.addNew==null&&(ee.addNew=Ie?z.metaKey:z.ctrlKey),ee.moveOnDrag==null&&(ee.moveOnDrag=!(Ie?z.altKey:z.ctrlKey)),ee}function _o(a,b,z,x){xe?setTimeout(Ge(Xl,a),0):a.curOp.focus=Ae();var ee=Ao(a,z,x),se=a.doc.sel,ye;a.options.dragDrop&&xt&&!a.isReadOnly()&&z=="single"&&(ye=se.contains(b))>-1&&(ht((ye=se.ranges[ye]).from(),b)<0||b.xRel>0)&&(ht(ye.to(),b)>0||b.xRel<0)?Ql(a,x,b,ee):Jl(a,x,b,ee)}function Ql(a,b,z,x){var ee=a.display,se=!1,ye=Fr(a,function(lt){Se&&(ee.scroller.draggable=!1),a.state.draggingText=!1,wn(ee.wrapper.ownerDocument,"mouseup",ye),wn(ee.wrapper.ownerDocument,"mousemove",Me),wn(ee.scroller,"dragstart",Ve),wn(ee.scroller,"drop",ye),se||(It(lt),x.addNew||yo(a.doc,z,null,null,x.extend),Se&&!$e||xe&&ge==9?setTimeout(function(){ee.wrapper.ownerDocument.body.focus({preventScroll:!0}),ee.input.focus()},20):ee.input.focus())}),Me=function(lt){se=se||Math.abs(b.clientX-lt.clientX)+Math.abs(b.clientY-lt.clientY)>=10},Ve=function(){return se=!0};Se&&(ee.scroller.draggable=!0),a.state.draggingText=ye,ye.copy=!x.moveOnDrag,ee.scroller.dragDrop&&ee.scroller.dragDrop(),Vt(ee.wrapper.ownerDocument,"mouseup",ye),Vt(ee.wrapper.ownerDocument,"mousemove",Me),Vt(ee.scroller,"dragstart",Ve),Vt(ee.scroller,"drop",ye),Oi(a),setTimeout(function(){return ee.input.focus()},20)}function ds(a,b,z){if(z=="char")return new Kn(b,b);if(z=="word")return a.findWordAt(b);if(z=="line")return new Kn(it(b.line,0),_t(a.doc,it(b.line+1,0)));var x=z(a,b);return new Kn(x.from,x.to)}function Jl(a,b,z,x){var ee=a.display,se=a.doc;It(b);var ye,Me,Ve=se.sel,lt=Ve.ranges;if(x.addNew&&!x.extend?(Me=se.sel.contains(z),Me>-1?ye=lt[Me]:ye=new Kn(z,z)):(ye=se.sel.primary(),Me=se.sel.primIndex),x.unit=="rectangle")x.addNew||(ye=new Kn(z,z)),z=Nr(a,b,!0,!0),Me=-1;else{var un=ds(a,z,x.unit);x.extend?ye=mo(ye,un.anchor,un.head,x.extend):ye=un}x.addNew?Me==-1?(Me=lt.length,Ga(se,ia(a,lt.concat([ye]),Me),{scroll:!1,origin:"*mouse"})):lt.length>1&<[Me].empty()&&x.unit=="char"&&!x.extend?(Ga(se,ia(a,lt.slice(0,Me).concat(lt.slice(Me+1)),0),{scroll:!1,origin:"*mouse"}),Ve=se.sel):cl(se,Me,ye,pt):(Me=0,Ga(se,new Xn([ye],0),pt),Ve=se.sel);var bn=z;function Yn(Wa){if(ht(bn,Wa)!=0)if(bn=Wa,x.unit=="rectangle"){for(var Ei=[],to=a.options.tabSize,Ui=Ce(An(se,z.line).text,z.ch,to),Bo=Ce(An(se,Wa.line).text,Wa.ch,to),ml=Math.min(Ui,Bo),ql=Math.max(Ui,Bo),Al=Math.min(z.line,Wa.line),Cs=Math.min(a.lastLine(),Math.max(z.line,Wa.line));Al<=Cs;Al++){var fs=An(se,Al).text,kl=Qt(fs,ml,to);ml==ql?Ei.push(new Kn(it(Al,kl),it(Al,kl))):fs.length>kl&&Ei.push(new Kn(it(Al,kl),it(Al,Qt(fs,ql,to))))}Ei.length||Ei.push(new Kn(z,z)),Ga(se,ia(a,Ve.ranges.slice(0,Me).concat(Ei),Me),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Wa)}else{var ms=ye,ns=ds(a,Wa,x.unit),Ll=ms.anchor,Zl;ht(ns.anchor,Ll)>0?(Zl=ns.head,Ll=Ft(ms.from(),ns.anchor)):(Zl=ns.anchor,Ll=pr(ms.to(),ns.head));var Il=Ve.ranges.slice(0);Il[Me]=Ts(a,new Kn(_t(se,Ll),Zl)),Ga(se,ia(a,Il,Me),pt)}}var Wn=ee.wrapper.getBoundingClientRect(),_r=0;function qr(Wa){var Ei=++_r,to=Nr(a,Wa,!0,x.unit=="rectangle");if(to)if(ht(to,bn)!=0){a.curOp.focus=Ae(),Yn(to);var Ui=Io(ee,se);(to.line>=Ui.to||to.line<Ui.from)&&setTimeout(Fr(a,function(){_r==Ei&&qr(Wa)}),150)}else{var Bo=Wa.clientY<Wn.top?-20:Wa.clientY>Wn.bottom?20:0;Bo&&setTimeout(Fr(a,function(){_r==Ei&&(ee.scroller.scrollTop+=Bo,qr(Wa))}),50)}}function Ba(Wa){a.state.selectingText=!1,_r=1/0,Wa&&(It(Wa),ee.input.focus()),wn(ee.wrapper.ownerDocument,"mousemove",Ka),wn(ee.wrapper.ownerDocument,"mouseup",ii),se.history.lastSelOrigin=null}var Ka=Fr(a,function(Wa){Wa.buttons===0||!Jt(Wa)?Ba(Wa):qr(Wa)}),ii=Fr(a,Ba);a.state.selectingText=ii,Vt(ee.wrapper.ownerDocument,"mousemove",Ka),Vt(ee.wrapper.ownerDocument,"mouseup",ii)}function Ts(a,b){var z=b.anchor,x=b.head,ee=An(a.doc,z.line);if(ht(z,x)==0&&z.sticky==x.sticky)return b;var se=Ye(ee);if(!se)return b;var ye=At(se,z.ch,z.sticky),Me=se[ye];if(Me.from!=z.ch&&Me.to!=z.ch)return b;var Ve=ye+(Me.from==z.ch==(Me.level!=1)?0:1);if(Ve==0||Ve==se.length)return b;var lt;if(x.line!=z.line)lt=(x.line-z.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var un=At(se,x.ch,x.sticky),bn=un-ye||(x.ch-z.ch)*(Me.level==1?-1:1);un==Ve-1||un==Ve?lt=bn<0:lt=bn>0}var Yn=se[Ve+(lt?-1:0)],Wn=lt==(Yn.level==1),_r=Wn?Yn.from:Yn.to,qr=Wn?"after":"before";return z.ch==_r&&z.sticky==qr?b:new Kn(new it(z.line,_r,qr),x)}function Ks(a,b,z,x){var ee,se;if(b.touches)ee=b.touches[0].clientX,se=b.touches[0].clientY;else try{ee=b.clientX,se=b.clientY}catch(Yn){return!1}if(ee>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;x&&It(b);var ye=a.display,Me=ye.lineDiv.getBoundingClientRect();if(se>Me.bottom||!Pt(a,z))return mn(b);se-=Me.top-ye.viewOffset;for(var Ve=0;Ve<a.display.gutterSpecs.length;++Ve){var lt=ye.gutters.childNodes[Ve];if(lt&<.getBoundingClientRect().right>=ee){var un=Kt(a.doc,se),bn=a.display.gutterSpecs[Ve];return pn(a,z,a,un,bn.className,b),mn(b)}}}function Ms(a,b){return Ks(a,b,"gutterClick",!0)}function iu(a,b){Qo(a.display,b)||Yu(a,b)||kt(a,b,"contextmenu")||Fe||a.display.input.onContextMenu(b)}function Yu(a,b){return Pt(a,"gutterContextMenu")?Ks(a,b,"gutterContextMenu",!1):!1}function Mc(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Li(a)}var Pu={toString:function(){return"CodeMirror.Init"}},rc={},ac={};function _c(a){var b=a.optionHandlers;function z(x,ee,se,ye){a.defaults[x]=ee,se&&(b[x]=ye?function(Me,Ve,lt){lt!=Pu&&se(Me,Ve,lt)}:se)}a.defineOption=z,a.Init=Pu,z("value","",function(x,ee){return x.setValue(ee)},!0),z("mode",null,function(x,ee){x.doc.modeOption=ee,Qa(x)},!0),z("indentUnit",2,Qa,!0),z("indentWithTabs",!1),z("smartIndent",!0),z("tabSize",4,function(x){Ua(x),Li(x),$a(x)},!0),z("lineSeparator",null,function(x,ee){if(x.doc.lineSep=ee,!!ee){var se=[],ye=x.doc.first;x.doc.iter(function(Ve){for(var lt=0;;){var un=Ve.text.indexOf(ee,lt);if(un==-1)break;lt=un+ee.length,se.push(it(ye,un))}ye++});for(var Me=se.length-1;Me>=0;Me--)Po(x.doc,ee,se[Me],it(se[Me].line,se[Me].ch+ee.length))}}),z("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(x,ee,se){x.state.specialChars=new RegExp(ee.source+(ee.test(" ")?"":"| "),"g"),se!=Pu&&x.refresh()}),z("specialCharPlaceholder",No,function(x){return x.refresh()},!0),z("electricChars",!0),z("inputStyle",we?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),z("spellcheck",!1,function(x,ee){return x.getInputField().spellcheck=ee},!0),z("autocorrect",!1,function(x,ee){return x.getInputField().autocorrect=ee},!0),z("autocapitalize",!1,function(x,ee){return x.getInputField().autocapitalize=ee},!0),z("rtlMoveVisually",!tt),z("wholeLineUpdateBefore",!0),z("theme","default",function(x){Mc(x),_n(x)},!0),z("keyMap","default",function(x,ee,se){var ye=pu(ee),Me=se!=Pu&&pu(se);Me&&Me.detach&&Me.detach(x,ye),ye.attach&&ye.attach(x,Me||null)}),z("extraKeys",null),z("configureMouse",null),z("lineWrapping",!1,bc,!0),z("gutters",[],function(x,ee){x.display.gutterSpecs=on(ee,x.options.lineNumbers),_n(x)},!0),z("fixedGutter",!0,function(x,ee){x.display.gutters.style.left=ee?or(x.display)+"px":"0",x.refresh()},!0),z("coverGutterNextToScrollbar",!1,function(x){return zs(x)},!0),z("scrollbarStyle","native",function(x){Cu(x),zs(x),x.display.scrollbars.setScrollTop(x.doc.scrollTop),x.display.scrollbars.setScrollLeft(x.doc.scrollLeft)},!0),z("lineNumbers",!1,function(x,ee){x.display.gutterSpecs=on(x.options.gutters,ee),_n(x)},!0),z("firstLineNumber",1,_n,!0),z("lineNumberFormatter",function(x){return x},_n,!0),z("showCursorWhenSelecting",!1,ca,!0),z("resetSelectionOnContextMenu",!0),z("lineWiseCopyCut",!0),z("pasteLinesPerSelection",!0),z("selectionsMayTouch",!1),z("readOnly",!1,function(x,ee){ee=="nocursor"&&(Ml(x),x.display.input.blur()),x.display.input.readOnlyChanged(ee)}),z("screenReaderLabel",null,function(x,ee){ee=ee===""?null:ee,x.display.input.screenReaderLabelChanged(ee)}),z("disableInput",!1,function(x,ee){ee||x.display.input.reset()},!0),z("dragDrop",!0,Rc),z("allowDropFileTypes",null),z("cursorBlinkRate",530),z("cursorScrollMargin",0),z("cursorHeight",1,ca,!0),z("singleCursorHeightPerLine",!0,ca,!0),z("workTime",100),z("workDelay",100),z("flattenSpans",!0,Ua,!0),z("addModeClass",!1,Ua,!0),z("pollInterval",100),z("undoDepth",200,function(x,ee){return x.doc.history.undoDepth=ee}),z("historyEventDelay",1250),z("viewportMargin",10,function(x){return x.refresh()},!0),z("maxHighlightLength",1e4,Ua,!0),z("moveInputWithCursor",!0,function(x,ee){ee||x.display.input.resetPosition()}),z("tabindex",null,function(x,ee){return x.display.input.getField().tabIndex=ee||""}),z("autofocus",null),z("direction","ltr",function(x,ee){return x.doc.setDirection(ee)},!0),z("phrases",null)}function Rc(a,b,z){var x=z&&z!=Pu;if(!b!=!x){var ee=a.display.dragFunctions,se=b?Vt:wn;se(a.display.scroller,"dragstart",ee.start),se(a.display.scroller,"dragenter",ee.enter),se(a.display.scroller,"dragover",ee.over),se(a.display.scroller,"dragleave",ee.leave),se(a.display.scroller,"drop",ee.drop)}}function bc(a){a.options.lineWrapping?(de(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Xe(a.display.wrapper,"CodeMirror-wrap"),ea(a)),fa(a),$a(a),Li(a),setTimeout(function(){return zs(a)},100)}function wl(a,b){var z=this;if(!(this instanceof wl))return new wl(a,b);this.options=b=b?st(b):{},st(rc,b,!1);var x=b.value;typeof x=="string"?x=new al(x,b.mode,null,b.lineSeparator,b.direction):b.mode&&(x.modeOption=b.mode),this.doc=x;var ee=new wl.inputStyles[b.inputStyle](this),se=this.display=new Bn(a,x,ee,b);se.wrapper.CodeMirror=this,Mc(this),b.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Cu(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new be,keySeq:null,specialChars:null},b.autofocus&&!we&&se.input.focus(),xe&&ge<11&&setTimeout(function(){return z.display.input.reset(!0)},20),Ec(this),wu(),Ps(this),this.curOp.forceUpdate=!0,ji(this,x),b.autofocus&&!we||this.hasFocus()?setTimeout(function(){z.hasFocus()&&!z.state.focused&&Tl(z)},20):Ml(this);for(var ye in ac)ac.hasOwnProperty(ye)&&ac[ye](this,b[ye],Pu);Lt(this),b.finishInit&&b.finishInit(this);for(var Me=0;Me<dc.length;++Me)dc[Me](this);ws(this),Se&&b.lineWrapping&&getComputedStyle(se.lineDiv).textRendering=="optimizelegibility"&&(se.lineDiv.style.textRendering="auto")}wl.defaults=rc,wl.optionHandlers=ac;function Ec(a){var b=a.display;Vt(b.scroller,"mousedown",Fr(a,Xu)),xe&&ge<11?Vt(b.scroller,"dblclick",Fr(a,function(Ve){if(!kt(a,Ve)){var lt=Nr(a,Ve);if(!(!lt||Ms(a,Ve)||Qo(a.display,Ve))){It(Ve);var un=a.findWordAt(lt);yo(a.doc,un.anchor,un.head)}}})):Vt(b.scroller,"dblclick",function(Ve){return kt(a,Ve)||It(Ve)}),Vt(b.scroller,"contextmenu",function(Ve){return iu(a,Ve)}),Vt(b.input.getField(),"contextmenu",function(Ve){b.scroller.contains(Ve.target)||iu(a,Ve)});var z,x={end:0};function ee(){b.activeTouch&&(z=setTimeout(function(){return b.activeTouch=null},1e3),x=b.activeTouch,x.end=+new Date)}function se(Ve){if(Ve.touches.length!=1)return!1;var lt=Ve.touches[0];return lt.radiusX<=1&<.radiusY<=1}function ye(Ve,lt){if(lt.left==null)return!0;var un=lt.left-Ve.left,bn=lt.top-Ve.top;return un*un+bn*bn>20*20}Vt(b.scroller,"touchstart",function(Ve){if(!kt(a,Ve)&&!se(Ve)&&!Ms(a,Ve)){b.input.ensurePolled(),clearTimeout(z);var lt=+new Date;b.activeTouch={start:lt,moved:!1,prev:lt-x.end<=300?x:null},Ve.touches.length==1&&(b.activeTouch.left=Ve.touches[0].pageX,b.activeTouch.top=Ve.touches[0].pageY)}}),Vt(b.scroller,"touchmove",function(){b.activeTouch&&(b.activeTouch.moved=!0)}),Vt(b.scroller,"touchend",function(Ve){var lt=b.activeTouch;if(lt&&!Qo(b,Ve)&<.left!=null&&!lt.moved&&new Date-lt.start<300){var un=a.coordsChar(b.activeTouch,"page"),bn;!lt.prev||ye(lt,lt.prev)?bn=new Kn(un,un):!lt.prev.prev||ye(lt,lt.prev.prev)?bn=a.findWordAt(un):bn=new Kn(it(un.line,0),_t(a.doc,it(un.line+1,0))),a.setSelection(bn.anchor,bn.head),a.focus(),It(Ve)}ee()}),Vt(b.scroller,"touchcancel",ee),Vt(b.scroller,"scroll",function(){b.scroller.clientHeight&&($s(a,b.scroller.scrollTop),gs(a,b.scroller.scrollLeft,!0),pn(a,"scroll",a))}),Vt(b.scroller,"mousewheel",function(Ve){return nr(a,Ve)}),Vt(b.scroller,"DOMMouseScroll",function(Ve){return nr(a,Ve)}),Vt(b.wrapper,"scroll",function(){return b.wrapper.scrollTop=b.wrapper.scrollLeft=0}),b.dragFunctions={enter:function(Ve){kt(a,Ve)||nt(Ve)},over:function(Ve){kt(a,Ve)||(Ns(a,Ve),nt(Ve))},start:function(Ve){return Os(a,Ve)},drop:Fr(a,Hs),leave:function(Ve){kt(a,Ve)||nu(a)}};var Me=b.input.getField();Vt(Me,"keyup",function(Ve){return Uu.call(a,Ve)}),Vt(Me,"keydown",Fr(a,Ku)),Vt(Me,"keypress",Fr(a,Au)),Vt(Me,"focus",function(Ve){return Tl(a,Ve)}),Vt(Me,"blur",function(Ve){return Ml(a,Ve)})}var dc=[];wl.defineInitHook=function(a){return dc.push(a)};function Ou(a,b,z,x){var ee=a.doc,se;z==null&&(z="add"),z=="smart"&&(ee.mode.indent?se=Ir(a,b).state:z="prev");var ye=a.options.tabSize,Me=An(ee,b),Ve=Ce(Me.text,null,ye);Me.stateAfter&&(Me.stateAfter=null);var lt=Me.text.match(/^\s*/)[0],un;if(!x&&!/\S/.test(Me.text))un=0,z="not";else if(z=="smart"&&(un=ee.mode.indent(se,Me.text.slice(lt.length),Me.text),un==jt||un>150)){if(!x)return;z="prev"}z=="prev"?b>ee.first?un=Ce(An(ee,b-1).text,null,ye):un=0:z=="add"?un=Ve+a.options.indentUnit:z=="subtract"?un=Ve-a.options.indentUnit:typeof z=="number"&&(un=Ve+z),un=Math.max(0,un);var bn="",Yn=0;if(a.options.indentWithTabs)for(var Wn=Math.floor(un/ye);Wn;--Wn)Yn+=ye,bn+=" ";if(Yn<un&&(bn+=Ct(un-Yn)),bn!=lt)return Po(ee,bn,it(b,0),it(b,lt.length),"+input"),Me.stateAfter=null,!0;for(var _r=0;_r<ee.sel.ranges.length;_r++){var qr=ee.sel.ranges[_r];if(qr.head.line==b&&qr.head.ch<lt.length){var Ba=it(b,lt.length);cl(ee,_r,new Kn(Ba,Ba));break}}}var Us=null;function Nu(a){Us=a}function fc(a,b,z,x,ee){var se=a.doc;a.display.shift=!1,x||(x=se.sel);var ye=+new Date-200,Me=ee=="paste"||a.state.pasteIncoming>ye,Ve=On(b),lt=null;if(Me&&x.ranges.length>1)if(Us&&Us.text.join(`
|
|
|
`)==b){if(x.ranges.length%Us.text.length==0){lt=[];for(var un=0;un<Us.text.length;un++)lt.push(se.splitLines(Us.text[un]))}}else Ve.length==x.ranges.length&&a.options.pasteLinesPerSelection&&(lt=dn(Ve,function(Ka){return[Ka]}));for(var bn=a.curOp.updateInput,Yn=x.ranges.length-1;Yn>=0;Yn--){var Wn=x.ranges[Yn],_r=Wn.from(),qr=Wn.to();Wn.empty()&&(z&&z>0?_r=it(_r.line,_r.ch-z):a.state.overwrite&&!Me?qr=it(qr.line,Math.min(An(se,qr.line).text.length,qr.ch+mt(Ve).length)):Me&&Us&&Us.lineWise&&Us.text.join(`
|
|
|
`)==Ve.join(`
|
|
|
`)&&(_r=qr=it(_r.line,0)));var Ba={from:_r,to:qr,text:lt?lt[Yn%lt.length]:Ve,origin:ee||(Me?"paste":a.state.cutIncoming>ye?"cut":"+input")};zo(a.doc,Ba),no(a,"inputRead",a,Ba)}b&&!Me&&xc(a,b),xs(a),a.curOp.updateInput<2&&(a.curOp.updateInput=bn),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Cc(a,b){var z=a.clipboardData&&a.clipboardData.getData("Text");if(z)return a.preventDefault(),!b.isReadOnly()&&!b.options.disableInput&&Ma(b,function(){return fc(b,z,0,null,"paste")}),!0}function xc(a,b){if(!(!a.options.electricChars||!a.options.smartIndent))for(var z=a.doc.sel,x=z.ranges.length-1;x>=0;x--){var ee=z.ranges[x];if(!(ee.head.ch>100||x&&z.ranges[x-1].head.line==ee.head.line)){var se=a.getModeAt(ee.head),ye=!1;if(se.electricChars){for(var Me=0;Me<se.electricChars.length;Me++)if(b.indexOf(se.electricChars.charAt(Me))>-1){ye=Ou(a,ee.head.line,"smart");break}}else se.electricInput&&se.electricInput.test(An(a.doc,ee.head.line).text.slice(0,ee.head.ch))&&(ye=Ou(a,ee.head.line,"smart"));ye&&no(a,"electricInput",a,ee.head.line)}}}function Sc(a){for(var b=[],z=[],x=0;x<a.doc.sel.ranges.length;x++){var ee=a.doc.sel.ranges[x].head.line,se={anchor:it(ee,0),head:it(ee+1,0)};z.push(se),b.push(a.getRange(se.anchor,se.head))}return{text:b,ranges:z}}function wc(a,b,z,x){a.setAttribute("autocorrect",z?"":"off"),a.setAttribute("autocapitalize",x?"":"off"),a.setAttribute("spellcheck",!!b)}function Bc(){var a=ot("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),b=ot("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Se?a.style.width="1000px":a.setAttribute("wrap","off"),Ke&&(a.style.border="1px solid black"),wc(a),b}function kc(a){var b=a.optionHandlers,z=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(x,ee){var se=this.options,ye=se[x];se[x]==ee&&x!="mode"||(se[x]=ee,b.hasOwnProperty(x)&&Fr(this,b[x])(this,ee,ye),pn(this,"optionChange",this,x))},getOption:function(x){return this.options[x]},getDoc:function(){return this.doc},addKeyMap:function(x,ee){this.state.keyMaps[ee?"push":"unshift"](pu(x))},removeKeyMap:function(x){for(var ee=this.state.keyMaps,se=0;se<ee.length;++se)if(ee[se]==x||ee[se].name==x)return ee.splice(se,1),!0},addOverlay:Zi(function(x,ee){var se=x.token?x:a.getMode(this.options,x);if(se.startState)throw new Error("Overlays may not be stateful.");Ht(this.state.overlays,{mode:se,modeSpec:x,opaque:ee&&ee.opaque,priority:ee&&ee.priority||0},function(ye){return ye.priority}),this.state.modeGen++,$a(this)}),removeOverlay:Zi(function(x){for(var ee=this.state.overlays,se=0;se<ee.length;++se){var ye=ee[se].modeSpec;if(ye==x||typeof x=="string"&&ye.name==x){ee.splice(se,1),this.state.modeGen++,$a(this);return}}}),indentLine:Zi(function(x,ee,se){typeof ee!="string"&&typeof ee!="number"&&(ee==null?ee=this.options.smartIndent?"smart":"prev":ee=ee?"add":"subtract"),ft(this.doc,x)&&Ou(this,x,ee,se)}),indentSelection:Zi(function(x){for(var ee=this.doc.sel.ranges,se=-1,ye=0;ye<ee.length;ye++){var Me=ee[ye];if(Me.empty())Me.head.line>se&&(Ou(this,Me.head.line,x,!0),se=Me.head.line,ye==this.doc.sel.primIndex&&xs(this));else{var Ve=Me.from(),lt=Me.to(),un=Math.max(se,Ve.line);se=Math.min(this.lastLine(),lt.line-(lt.ch?0:1))+1;for(var bn=un;bn<se;++bn)Ou(this,bn,x);var Yn=this.doc.sel.ranges;Ve.ch==0&&ee.length==Yn.length&&Yn[ye].from().ch>0&&cl(this.doc,ye,new Kn(Ve,Yn[ye].to()),De)}}}),getTokenAt:function(x,ee){return Xr(this,x,ee)},getLineTokens:function(x,ee){return Xr(this,it(x),ee,!0)},getTokenTypeAt:function(x){x=_t(this.doc,x);var ee=gr(this,An(this.doc,x.line)),se=0,ye=(ee.length-1)/2,Me=x.ch,Ve;if(Me==0)Ve=ee[2];else for(;;){var lt=se+ye>>1;if((lt?ee[lt*2-1]:0)>=Me)ye=lt;else if(ee[lt*2+1]<Me)se=lt+1;else{Ve=ee[lt*2+2];break}}var un=Ve?Ve.indexOf("overlay "):-1;return un<0?Ve:un==0?null:Ve.slice(0,un-1)},getModeAt:function(x){var ee=this.doc.mode;return ee.innerMode?a.innerMode(ee,this.getTokenAt(x).state).mode:ee},getHelper:function(x,ee){return this.getHelpers(x,ee)[0]},getHelpers:function(x,ee){var se=[];if(!z.hasOwnProperty(ee))return se;var ye=z[ee],Me=this.getModeAt(x);if(typeof Me[ee]=="string")ye[Me[ee]]&&se.push(ye[Me[ee]]);else if(Me[ee])for(var Ve=0;Ve<Me[ee].length;Ve++){var lt=ye[Me[ee][Ve]];lt&&se.push(lt)}else Me.helperType&&ye[Me.helperType]?se.push(ye[Me.helperType]):ye[Me.name]&&se.push(ye[Me.name]);for(var un=0;un<ye._global.length;un++){var bn=ye._global[un];bn.pred(Me,this)&&vt(se,bn.val)==-1&&se.push(bn.val)}return se},getStateAfter:function(x,ee){var se=this.doc;return x=Tt(se,x==null?se.first+se.size-1:x),Ir(this,x+1,ee).state},cursorCoords:function(x,ee){var se,ye=this.doc.sel.primary();return x==null?se=ye.head:typeof x=="object"?se=_t(this.doc,x):se=x?ye.from():ye.to(),vi(this,se,ee||"page")},charCoords:function(x,ee){return ga(this,_t(this.doc,x),ee||"page")},coordsChar:function(x,ee){return x=bi(this,x,ee||"page"),Bt(this,x.left,x.top)},lineAtHeight:function(x,ee){return x=bi(this,{top:x,left:0},ee||"page").top,Kt(this.doc,x+this.display.viewOffset)},heightAtLine:function(x,ee,se){var ye=!1,Me;if(typeof x=="number"){var Ve=this.doc.first+this.doc.size-1;x<this.doc.first?x=this.doc.first:x>Ve&&(x=Ve,ye=!0),Me=An(this.doc,x)}else Me=x;return go(this,Me,{top:0,left:0},ee||"page",se||ye).top+(ye?this.doc.height-Ta(Me):0)},defaultTextHeight:function(){return Ar(this.display)},defaultCharWidth:function(){return aa(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(x,ee,se,ye,Me){var Ve=this.display;x=vi(this,_t(this.doc,x));var lt=x.bottom,un=x.left;if(ee.style.position="absolute",ee.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ee),Ve.sizer.appendChild(ee),ye=="over")lt=x.top;else if(ye=="above"||ye=="near"){var bn=Math.max(Ve.wrapper.clientHeight,this.doc.height),Yn=Math.max(Ve.sizer.clientWidth,Ve.lineSpace.clientWidth);(ye=="above"||x.bottom+ee.offsetHeight>bn)&&x.top>ee.offsetHeight?lt=x.top-ee.offsetHeight:x.bottom+ee.offsetHeight<=bn&&(lt=x.bottom),un+ee.offsetWidth>Yn&&(un=Yn-ee.offsetWidth)}ee.style.top=lt+"px",ee.style.left=ee.style.right="",Me=="right"?(un=Ve.sizer.clientWidth-ee.offsetWidth,ee.style.right="0px"):(Me=="left"?un=0:Me=="middle"&&(un=(Ve.sizer.clientWidth-ee.offsetWidth)/2),ee.style.left=un+"px"),se&&js(this,{left:un,top:lt,right:un+ee.offsetWidth,bottom:lt+ee.offsetHeight})},triggerOnKeyDown:Zi(Ku),triggerOnKeyPress:Zi(Au),triggerOnKeyUp:Uu,triggerOnMouseDown:Zi(Xu),execCommand:function(x){if(Vs.hasOwnProperty(x))return Vs[x].call(null,this)},triggerElectric:Zi(function(x){xc(this,x)}),findPosH:function(x,ee,se,ye){var Me=1;ee<0&&(Me=-1,ee=-ee);for(var Ve=_t(this.doc,x),lt=0;lt<ee&&(Ve=ic(this.doc,Ve,Me,se,ye),!Ve.hitSide);++lt);return Ve},moveH:Zi(function(x,ee){var se=this;this.extendSelectionsBy(function(ye){return se.display.shift||se.doc.extend||ye.empty()?ic(se.doc,ye.head,x,ee,se.options.rtlMoveVisually):x<0?ye.from():ye.to()},ut)}),deleteH:Zi(function(x,ee){var se=this.doc.sel,ye=this.doc;se.somethingSelected()?ye.replaceSelection("",null,"+delete"):Qs(this,function(Me){var Ve=ic(ye,Me.head,x,ee,!1);return x<0?{from:Ve,to:Me.head}:{from:Me.head,to:Ve}})}),findPosV:function(x,ee,se,ye){var Me=1,Ve=ye;ee<0&&(Me=-1,ee=-ee);for(var lt=_t(this.doc,x),un=0;un<ee;++un){var bn=vi(this,lt,"div");if(Ve==null?Ve=bn.left:bn.left=Ve,lt=Qu(this,bn,Me,se),lt.hitSide)break}return lt},moveV:Zi(function(x,ee){var se=this,ye=this.doc,Me=[],Ve=!this.display.shift&&!ye.extend&&ye.sel.somethingSelected();if(ye.extendSelectionsBy(function(un){if(Ve)return x<0?un.from():un.to();var bn=vi(se,un.head,"div");un.goalColumn!=null&&(bn.left=un.goalColumn),Me.push(bn.left);var Yn=Qu(se,bn,x,ee);return ee=="page"&&un==ye.sel.primary()&&eu(se,ga(se,Yn,"div").top-bn.top),Yn},ut),Me.length)for(var lt=0;lt<ye.sel.ranges.length;lt++)ye.sel.ranges[lt].goalColumn=Me[lt]}),findWordAt:function(x){var ee=this.doc,se=An(ee,x.line).text,ye=x.ch,Me=x.ch;if(se){var Ve=this.getHelper(x,"wordChars");(x.sticky=="before"||Me==se.length)&&ye?--ye:++Me;for(var lt=se.charAt(ye),un=pe(lt,Ve)?function(bn){return pe(bn,Ve)}:/\s/.test(lt)?function(bn){return/\s/.test(bn)}:function(bn){return!/\s/.test(bn)&&!pe(bn)};ye>0&&un(se.charAt(ye-1));)--ye;for(;Me<se.length&&un(se.charAt(Me));)++Me}return new Kn(it(x.line,ye),it(x.line,Me))},toggleOverwrite:function(x){x!=null&&x==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?de(this.display.cursorDiv,"CodeMirror-overwrite"):Xe(this.display.cursorDiv,"CodeMirror-overwrite"),pn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ae()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Zi(function(x,ee){As(this,x,ee)}),getScrollInfo:function(){var x=this.display.scroller;return{left:x.scrollLeft,top:x.scrollTop,height:x.scrollHeight-Nn(this)-this.display.barHeight,width:x.scrollWidth-Nn(this)-this.display.barWidth,clientHeight:Or(this),clientWidth:Sr(this)}},scrollIntoView:Zi(function(x,ee){x==null?(x={from:this.doc.sel.primary().head,to:null},ee==null&&(ee=this.options.cursorScrollMargin)):typeof x=="number"?x={from:it(x,0),to:null}:x.from==null&&(x={from:x,to:null}),x.to||(x.to=x.from),x.margin=ee||0,x.from.line!=null?tu(this,x):Ss(this,x.from,x.to,x.margin)}),setSize:Zi(function(x,ee){var se=this,ye=function(Ve){return typeof Ve=="number"||/^\d+$/.test(String(Ve))?Ve+"px":Ve};x!=null&&(this.display.wrapper.style.width=ye(x)),ee!=null&&(this.display.wrapper.style.height=ye(ee)),this.options.lineWrapping&&Ti(this);var Me=this.display.viewFrom;this.doc.iter(Me,this.display.viewTo,function(Ve){if(Ve.widgets){for(var lt=0;lt<Ve.widgets.length;lt++)if(Ve.widgets[lt].noHScroll){ua(se,Me,"widget");break}}++Me}),this.curOp.forceUpdate=!0,pn(this,"refresh",this)}),operation:function(x){return Ma(this,x)},startOperation:function(){return Ps(this)},endOperation:function(){return ws(this)},refresh:Zi(function(){var x=this.display.cachedTextHeight;$a(this),this.curOp.forceUpdate=!0,Li(this),As(this,this.doc.scrollLeft,this.doc.scrollTop),ke(this.display),(x==null||Math.abs(x-Ar(this.display))>.5||this.options.lineWrapping)&&fa(this),pn(this,"refresh",this)}),swapDoc:Zi(function(x){var ee=this.doc;return ee.cm=null,this.state.selectingText&&this.state.selectingText(),ji(this,x),Li(this),this.display.input.reset(),As(this,x.scrollLeft,x.scrollTop),this.curOp.forceScroll=!0,no(this,"swapDoc",this,ee),ee}),phrase:function(x){var ee=this.options.phrases;return ee&&Object.prototype.hasOwnProperty.call(ee,x)?ee[x]:x},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Je(a),a.registerHelper=function(x,ee,se){z.hasOwnProperty(x)||(z[x]=a[x]={_global:[]}),z[x][ee]=se},a.registerGlobalHelper=function(x,ee,se,ye){a.registerHelper(x,ee,ye),z[x]._global.push({pred:se,val:ye})}}function ic(a,b,z,x,ee){var se=b,ye=z,Me=An(a,b.line),Ve=ee&&a.direction=="rtl"?-z:z;function lt(){var ii=b.line+Ve;return ii<a.first||ii>=a.first+a.size?!1:(b=new it(ii,b.ch,b.sticky),Me=An(a,ii))}function un(ii){var Wa;if(x=="codepoint"){var Ei=Me.text.charCodeAt(b.ch+(x>0?0:-1));isNaN(Ei)?Wa=null:Wa=new it(b.line,Math.max(0,Math.min(Me.text.length,b.ch+z*(Ei>=55296&&Ei<56320?2:1))),-z)}else ee?Wa=tc(a.cm,Me,b,z):Wa=Ls(Me,b,z);if(Wa==null)if(!ii&<())b=$u(ee,a.cm,Me,b.line,Ve);else return!1;else b=Wa;return!0}if(x=="char"||x=="codepoint")un();else if(x=="column")un(!0);else if(x=="word"||x=="group")for(var bn=null,Yn=x=="group",Wn=a.cm&&a.cm.getHelper(b,"wordChars"),_r=!0;!(z<0&&!un(!_r));_r=!1){var qr=Me.text.charAt(b.ch)||`
|
|
|
`,Ba=pe(qr,Wn)?"w":Yn&&qr==`
|
|
|
`?"n":!Yn||/\s/.test(qr)?null:"p";if(Yn&&!_r&&!Ba&&(Ba="s"),bn&&bn!=Ba){z<0&&(z=1,un(),b.sticky="after");break}if(Ba&&(bn=Ba),z>0&&!un(!_r))break}var Ka=Bl(a,b,se,ye,!0);return fn(se,Ka)&&(Ka.hitSide=!0),Ka}function Qu(a,b,z,x){var ee=a.doc,se=b.left,ye;if(x=="page"){var Me=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Ve=Math.max(Me-.5*Ar(a.display),3);ye=(z>0?b.bottom:b.top)+z*Ve}else x=="line"&&(ye=z>0?b.bottom+3:b.top-3);for(var lt;lt=Bt(a,se,ye),!!lt.outside;){if(z<0?ye<=0:ye>=ee.height){lt.hitSide=!0;break}ye+=z*5}return lt}var Go=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new be,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Go.prototype.init=function(a){var b=this,z=this,x=z.cm,ee=z.div=a.lineDiv;wc(ee,x.options.spellcheck,x.options.autocorrect,x.options.autocapitalize);function se(Me){for(var Ve=Me.target;Ve;Ve=Ve.parentNode){if(Ve==ee)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Ve.className))break}return!1}Vt(ee,"paste",function(Me){!se(Me)||kt(x,Me)||Cc(Me,x)||ge<=11&&setTimeout(Fr(x,function(){return b.updateFromDOM()}),20)}),Vt(ee,"compositionstart",function(Me){b.composing={data:Me.data,done:!1}}),Vt(ee,"compositionupdate",function(Me){b.composing||(b.composing={data:Me.data,done:!1})}),Vt(ee,"compositionend",function(Me){b.composing&&(Me.data!=b.composing.data&&b.readFromDOMSoon(),b.composing.done=!0)}),Vt(ee,"touchstart",function(){return z.forceCompositionEnd()}),Vt(ee,"input",function(){b.composing||b.readFromDOMSoon()});function ye(Me){if(!(!se(Me)||kt(x,Me))){if(x.somethingSelected())Nu({lineWise:!1,text:x.getSelections()}),Me.type=="cut"&&x.replaceSelection("",null,"cut");else if(x.options.lineWiseCopyCut){var Ve=Sc(x);Nu({lineWise:!0,text:Ve.text}),Me.type=="cut"&&x.operation(function(){x.setSelections(Ve.ranges,0,De),x.replaceSelection("",null,"cut")})}else return;if(Me.clipboardData){Me.clipboardData.clearData();var lt=Us.text.join(`
|
|
|
`);if(Me.clipboardData.setData("Text",lt),Me.clipboardData.getData("Text")==lt){Me.preventDefault();return}}var un=Bc(),bn=un.firstChild;x.display.lineSpace.insertBefore(un,x.display.lineSpace.firstChild),bn.value=Us.text.join(`
|
|
|
`);var Yn=document.activeElement;Qe(bn),setTimeout(function(){x.display.lineSpace.removeChild(un),Yn.focus(),Yn==ee&&z.showPrimarySelection()},50)}}Vt(ee,"copy",ye),Vt(ee,"cut",ye)},Go.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Go.prototype.prepareSelection=function(){var a=ra(this.cm,!1);return a.focus=document.activeElement==this.div,a},Go.prototype.showSelection=function(a,b){!a||!this.cm.display.view.length||((a.focus||b)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Go.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Go.prototype.showPrimarySelection=function(){var a=this.getSelection(),b=this.cm,z=b.doc.sel.primary(),x=z.from(),ee=z.to();if(b.display.viewTo==b.display.viewFrom||x.line>=b.display.viewTo||ee.line<b.display.viewFrom){a.removeAllRanges();return}var se=oc(b,a.anchorNode,a.anchorOffset),ye=oc(b,a.focusNode,a.focusOffset);if(!(se&&!se.bad&&ye&&!ye.bad&&ht(Ft(se,ye),x)==0&&ht(pr(se,ye),ee)==0)){var Me=b.display.view,Ve=x.line>=b.display.viewFrom&&Dc(b,x)||{node:Me[0].measure.map[2],offset:0},lt=ee.line<b.display.viewTo&&Dc(b,ee);if(!lt){var un=Me[Me.length-1].measure,bn=un.maps?un.maps[un.maps.length-1]:un.map;lt={node:bn[bn.length-1],offset:bn[bn.length-2]-bn[bn.length-3]}}if(!Ve||!lt){a.removeAllRanges();return}var Yn=a.rangeCount&&a.getRangeAt(0),Wn;try{Wn=Ee(Ve.node,Ve.offset,lt.offset,lt.node)}catch(_r){}Wn&&(!y&&b.state.focused?(a.collapse(Ve.node,Ve.offset),Wn.collapsed||(a.removeAllRanges(),a.addRange(Wn))):(a.removeAllRanges(),a.addRange(Wn)),Yn&&a.anchorNode==null?a.addRange(Yn):y&&this.startGracePeriod()),this.rememberSelection()}},Go.prototype.startGracePeriod=function(){var a=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){a.gracePeriod=!1,a.selectionChanged()&&a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)},Go.prototype.showMultipleSelections=function(a){gt(this.cm.display.cursorDiv,a.cursors),gt(this.cm.display.selectionDiv,a.selection)},Go.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},Go.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var b=a.getRangeAt(0).commonAncestorContainer;return We(this.div,b)},Go.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Go.prototype.blur=function(){this.div.blur()},Go.prototype.getField=function(){return this.div},Go.prototype.supportsTouch=function(){return!0},Go.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():Ma(this.cm,function(){return a.cm.curOp.selectionChanged=!0});function b(){a.cm.state.focused&&(a.pollSelection(),a.polling.set(a.cm.options.pollInterval,b))}this.polling.set(this.cm.options.pollInterval,b)},Go.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},Go.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),b=this.cm;if(Te&&Be&&this.cm.display.gutterSpecs.length&&mc(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var z=oc(b,a.anchorNode,a.anchorOffset),x=oc(b,a.focusNode,a.focusOffset);z&&x&&Ma(b,function(){Ga(b.doc,Tr(z,x),De),(z.bad||x.bad)&&(b.curOp.selectionChanged=!0)})}}},Go.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,b=a.display,z=a.doc.sel.primary(),x=z.from(),ee=z.to();if(x.ch==0&&x.line>a.firstLine()&&(x=it(x.line-1,An(a.doc,x.line-1).length)),ee.ch==An(a.doc,ee.line).text.length&&ee.line<a.lastLine()&&(ee=it(ee.line+1,0)),x.line<b.viewFrom||ee.line>b.viewTo-1)return!1;var se,ye,Me;x.line==b.viewFrom||(se=Aa(a,x.line))==0?(ye=Mt(b.view[0].line),Me=b.view[0].node):(ye=Mt(b.view[se].line),Me=b.view[se-1].node.nextSibling);var Ve=Aa(a,ee.line),lt,un;if(Ve==b.view.length-1?(lt=b.viewTo-1,un=b.lineDiv.lastChild):(lt=Mt(b.view[Ve+1].line)-1,un=b.view[Ve+1].node.previousSibling),!Me)return!1;for(var bn=a.doc.splitLines(Lc(a,Me,un,ye,lt)),Yn=Rn(a.doc,it(ye,0),it(lt,An(a.doc,lt).text.length));bn.length>1&&Yn.length>1;)if(mt(bn)==mt(Yn))bn.pop(),Yn.pop(),lt--;else if(bn[0]==Yn[0])bn.shift(),Yn.shift(),ye++;else break;for(var Wn=0,_r=0,qr=bn[0],Ba=Yn[0],Ka=Math.min(qr.length,Ba.length);Wn<Ka&&qr.charCodeAt(Wn)==Ba.charCodeAt(Wn);)++Wn;for(var ii=mt(bn),Wa=mt(Yn),Ei=Math.min(ii.length-(bn.length==1?Wn:0),Wa.length-(Yn.length==1?Wn:0));_r<Ei&&ii.charCodeAt(ii.length-_r-1)==Wa.charCodeAt(Wa.length-_r-1);)++_r;if(bn.length==1&&Yn.length==1&&ye==x.line)for(;Wn&&Wn>x.ch&&ii.charCodeAt(ii.length-_r-1)==Wa.charCodeAt(Wa.length-_r-1);)Wn--,_r++;bn[bn.length-1]=ii.slice(0,ii.length-_r).replace(/^\u200b+/,""),bn[0]=bn[0].slice(Wn).replace(/\u200b+$/,"");var to=it(ye,Wn),Ui=it(lt,Yn.length?mt(Yn).length-_r:0);if(bn.length>1||bn[0]||ht(to,Ui))return Po(a.doc,bn,to,Ui,"+input"),!0},Go.prototype.ensurePolled=function(){this.forceCompositionEnd()},Go.prototype.reset=function(){this.forceCompositionEnd()},Go.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Go.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},Go.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Ma(this.cm,function(){return $a(a.cm)})},Go.prototype.setUneditable=function(a){a.contentEditable="false"},Go.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Fr(this.cm,fc)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Go.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Go.prototype.onContextMenu=function(){},Go.prototype.resetPosition=function(){},Go.prototype.needsContentAttribute=!0;function Dc(a,b){var z=yr(a,b.line);if(!z||z.hidden)return null;var x=An(a.doc,b.line),ee=ir(z,x,b.line),se=Ye(x,a.doc.direction),ye="left";if(se){var Me=At(se,b.ch);ye=Me%2?"right":"left"}var Ve=fo(ee.map,b.ch,ye);return Ve.offset=Ve.collapse=="right"?Ve.end:Ve.start,Ve}function mc(a){for(var b=a;b;b=b.parentNode)if(/CodeMirror-gutter-wrapper/.test(b.className))return!0;return!1}function bu(a,b){return b&&(a.bad=!0),a}function Lc(a,b,z,x,ee){var se="",ye=!1,Me=a.doc.lineSeparator(),Ve=!1;function lt(Wn){return function(_r){return _r.id==Wn}}function un(){ye&&(se+=Me,Ve&&(se+=Me),ye=Ve=!1)}function bn(Wn){Wn&&(un(),se+=Wn)}function Yn(Wn){if(Wn.nodeType==1){var _r=Wn.getAttribute("cm-text");if(_r){bn(_r);return}var qr=Wn.getAttribute("cm-marker"),Ba;if(qr){var Ka=a.findMarks(it(x,0),it(ee+1,0),lt(+qr));Ka.length&&(Ba=Ka[0].find(0))&&bn(Rn(a.doc,Ba.from,Ba.to).join(Me));return}if(Wn.getAttribute("contenteditable")=="false")return;var ii=/^(pre|div|p|li|table|br)$/i.test(Wn.nodeName);if(!/^br$/i.test(Wn.nodeName)&&Wn.textContent.length==0)return;ii&&un();for(var Wa=0;Wa<Wn.childNodes.length;Wa++)Yn(Wn.childNodes[Wa]);/^(pre|p)$/i.test(Wn.nodeName)&&(Ve=!0),ii&&(ye=!0)}else Wn.nodeType==3&&bn(Wn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Yn(b),b!=z;)b=b.nextSibling,Ve=!1;return se}function oc(a,b,z){var x;if(b==a.display.lineDiv){if(x=a.display.lineDiv.childNodes[z],!x)return bu(a.clipPos(it(a.display.viewTo-1)),!0);b=null,z=0}else for(x=b;;x=x.parentNode){if(!x||x==a.display.lineDiv)return null;if(x.parentNode&&x.parentNode==a.display.lineDiv)break}for(var ee=0;ee<a.display.view.length;ee++){var se=a.display.view[ee];if(se.node==x)return Zc(se,b,z)}}function Zc(a,b,z){var x=a.text.firstChild,ee=!1;if(!b||!We(x,b))return bu(it(Mt(a.line),0),!0);if(b==x&&(ee=!0,b=x.childNodes[z],z=0,!b)){var se=a.rest?mt(a.rest):a.line;return bu(it(Mt(se),se.text.length),ee)}var ye=b.nodeType==3?b:null,Me=b;for(!ye&&b.childNodes.length==1&&b.firstChild.nodeType==3&&(ye=b.firstChild,z&&(z=ye.nodeValue.length));Me.parentNode!=x;)Me=Me.parentNode;var Ve=a.measure,lt=Ve.maps;function un(Ba,Ka,ii){for(var Wa=-1;Wa<(lt?lt.length:0);Wa++)for(var Ei=Wa<0?Ve.map:lt[Wa],to=0;to<Ei.length;to+=3){var Ui=Ei[to+2];if(Ui==Ba||Ui==Ka){var Bo=Mt(Wa<0?a.line:a.rest[Wa]),ml=Ei[to]+ii;return(ii<0||Ui!=Ba)&&(ml=Ei[to+(ii?1:0)]),it(Bo,ml)}}}var bn=un(ye,Me,z);if(bn)return bu(bn,ee);for(var Yn=Me.nextSibling,Wn=ye?ye.nodeValue.length-z:0;Yn;Yn=Yn.nextSibling){if(bn=un(Yn,Yn.firstChild,0),bn)return bu(it(bn.line,bn.ch-Wn),ee);Wn+=Yn.textContent.length}for(var _r=Me.previousSibling,qr=z;_r;_r=_r.previousSibling){if(bn=un(_r,_r.firstChild,-1),bn)return bu(it(bn.line,bn.ch+qr),ee);qr+=_r.textContent.length}}var Rl=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new be,this.hasSelection=!1,this.composing=null};Rl.prototype.init=function(a){var b=this,z=this,x=this.cm;this.createField(a);var ee=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),Ke&&(ee.style.width="0px"),Vt(ee,"input",function(){xe&&ge>=9&&b.hasSelection&&(b.hasSelection=null),z.poll()}),Vt(ee,"paste",function(ye){kt(x,ye)||Cc(ye,x)||(x.state.pasteIncoming=+new Date,z.fastPoll())});function se(ye){if(!kt(x,ye)){if(x.somethingSelected())Nu({lineWise:!1,text:x.getSelections()});else if(x.options.lineWiseCopyCut){var Me=Sc(x);Nu({lineWise:!0,text:Me.text}),ye.type=="cut"?x.setSelections(Me.ranges,null,De):(z.prevInput="",ee.value=Me.text.join(`
|
|
|
`),Qe(ee))}else return;ye.type=="cut"&&(x.state.cutIncoming=+new Date)}}Vt(ee,"cut",se),Vt(ee,"copy",se),Vt(a.scroller,"paste",function(ye){if(!(Qo(a,ye)||kt(x,ye))){if(!ee.dispatchEvent){x.state.pasteIncoming=+new Date,z.focus();return}var Me=new Event("paste");Me.clipboardData=ye.clipboardData,ee.dispatchEvent(Me)}}),Vt(a.lineSpace,"selectstart",function(ye){Qo(a,ye)||It(ye)}),Vt(ee,"compositionstart",function(){var ye=x.getCursor("from");z.composing&&z.composing.range.clear(),z.composing={start:ye,range:x.markText(ye,x.getCursor("to"),{className:"CodeMirror-composing"})}}),Vt(ee,"compositionend",function(){z.composing&&(z.poll(),z.composing.range.clear(),z.composing=null)})},Rl.prototype.createField=function(a){this.wrapper=Bc(),this.textarea=this.wrapper.firstChild},Rl.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Rl.prototype.prepareSelection=function(){var a=this.cm,b=a.display,z=a.doc,x=ra(a);if(a.options.moveInputWithCursor){var ee=vi(a,z.sel.primary().head,"div"),se=b.wrapper.getBoundingClientRect(),ye=b.lineDiv.getBoundingClientRect();x.teTop=Math.max(0,Math.min(b.wrapper.clientHeight-10,ee.top+ye.top-se.top)),x.teLeft=Math.max(0,Math.min(b.wrapper.clientWidth-10,ee.left+ye.left-se.left))}return x},Rl.prototype.showSelection=function(a){var b=this.cm,z=b.display;gt(z.cursorDiv,a.cursors),gt(z.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Rl.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var b=this.cm;if(b.somethingSelected()){this.prevInput="";var z=b.getSelection();this.textarea.value=z,b.state.focused&&Qe(this.textarea),xe&&ge>=9&&(this.hasSelection=z)}else a||(this.prevInput=this.textarea.value="",xe&&ge>=9&&(this.hasSelection=null))}},Rl.prototype.getField=function(){return this.textarea},Rl.prototype.supportsTouch=function(){return!1},Rl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!we||Ae()!=this.textarea))try{this.textarea.focus()}catch(a){}},Rl.prototype.blur=function(){this.textarea.blur()},Rl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Rl.prototype.receivedFocus=function(){this.slowPoll()},Rl.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Rl.prototype.fastPoll=function(){var a=!1,b=this;b.pollingFast=!0;function z(){var x=b.poll();!x&&!a?(a=!0,b.polling.set(60,z)):(b.pollingFast=!1,b.slowPoll())}b.polling.set(20,z)},Rl.prototype.poll=function(){var a=this,b=this.cm,z=this.textarea,x=this.prevInput;if(this.contextMenuPending||!b.state.focused||Hn(z)&&!x&&!this.composing||b.isReadOnly()||b.options.disableInput||b.state.keySeq)return!1;var ee=z.value;if(ee==x&&!b.somethingSelected())return!1;if(xe&&ge>=9&&this.hasSelection===ee||Ie&&/[\uf700-\uf7ff]/.test(ee))return b.display.input.reset(),!1;if(b.doc.sel==b.display.selForContextMenu){var se=ee.charCodeAt(0);if(se==8203&&!x&&(x="\u200B"),se==8666)return this.reset(),this.cm.execCommand("undo")}for(var ye=0,Me=Math.min(x.length,ee.length);ye<Me&&x.charCodeAt(ye)==ee.charCodeAt(ye);)++ye;return Ma(b,function(){fc(b,ee.slice(ye),x.length-ye,null,a.composing?"*compose":null),ee.length>1e3||ee.indexOf(`
|
|
|
`)>-1?z.value=a.prevInput="":a.prevInput=ee,a.composing&&(a.composing.range.clear(),a.composing.range=b.markText(a.composing.start,b.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Rl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Rl.prototype.onKeyPress=function(){xe&&ge>=9&&(this.hasSelection=null),this.fastPoll()},Rl.prototype.onContextMenu=function(a){var b=this,z=b.cm,x=z.display,ee=b.textarea;b.contextMenuPending&&b.contextMenuPending();var se=Nr(z,a),ye=x.scroller.scrollTop;if(!se||fe)return;var Me=z.options.resetSelectionOnContextMenu;Me&&z.doc.sel.contains(se)==-1&&Fr(z,Ga)(z.doc,Tr(se),De);var Ve=ee.style.cssText,lt=b.wrapper.style.cssText,un=b.wrapper.offsetParent.getBoundingClientRect();b.wrapper.style.cssText="position: static",ee.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(a.clientY-un.top-5)+"px; left: "+(a.clientX-un.left-5)+`px;
|
|
|
z-index: 1000; background: `+(xe?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var bn;Se&&(bn=window.scrollY),x.input.focus(),Se&&window.scrollTo(null,bn),x.input.reset(),z.somethingSelected()||(ee.value=b.prevInput=" "),b.contextMenuPending=Wn,x.selForContextMenu=z.doc.sel,clearTimeout(x.detectingSelectAll);function Yn(){if(ee.selectionStart!=null){var qr=z.somethingSelected(),Ba="\u200B"+(qr?ee.value:"");ee.value="\u21DA",ee.value=Ba,b.prevInput=qr?"":"\u200B",ee.selectionStart=1,ee.selectionEnd=Ba.length,x.selForContextMenu=z.doc.sel}}function Wn(){if(b.contextMenuPending==Wn&&(b.contextMenuPending=!1,b.wrapper.style.cssText=lt,ee.style.cssText=Ve,xe&&ge<9&&x.scrollbars.setScrollTop(x.scroller.scrollTop=ye),ee.selectionStart!=null)){(!xe||xe&&ge<9)&&Yn();var qr=0,Ba=function(){x.selForContextMenu==z.doc.sel&&ee.selectionStart==0&&ee.selectionEnd>0&&b.prevInput=="\u200B"?Fr(z,Ri)(z):qr++<10?x.detectingSelectAll=setTimeout(Ba,500):(x.selForContextMenu=null,x.input.reset())};x.detectingSelectAll=setTimeout(Ba,200)}}if(xe&&ge>=9&&Yn(),Fe){nt(a);var _r=function(){wn(window,"mouseup",_r),setTimeout(Wn,20)};Vt(window,"mouseup",_r)}else setTimeout(Wn,50)},Rl.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Rl.prototype.setUneditable=function(){},Rl.prototype.needsContentAttribute=!1;function pc(a,b){if(b=b?st(b):{},b.value=a.value,!b.tabindex&&a.tabIndex&&(b.tabindex=a.tabIndex),!b.placeholder&&a.placeholder&&(b.placeholder=a.placeholder),b.autofocus==null){var z=Ae();b.autofocus=z==a||a.getAttribute("autofocus")!=null&&z==document.body}function x(){a.value=Me.getValue()}var ee;if(a.form&&(Vt(a.form,"submit",x),!b.leaveSubmitMethodAlone)){var se=a.form;ee=se.submit;try{var ye=se.submit=function(){x(),se.submit=ee,se.submit(),se.submit=ye}}catch(Ve){}}b.finishInit=function(Ve){Ve.save=x,Ve.getTextArea=function(){return a},Ve.toTextArea=function(){Ve.toTextArea=isNaN,x(),a.parentNode.removeChild(Ve.getWrapperElement()),a.style.display="",a.form&&(wn(a.form,"submit",x),!b.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=ee))}},a.style.display="none";var Me=wl(function(Ve){return a.parentNode.insertBefore(Ve,a.nextSibling)},b);return Me}function Ac(a){a.off=wn,a.on=Vt,a.wheelEventPixels=lr,a.Doc=al,a.splitLines=On,a.countColumn=Ce,a.findColumn=Qt,a.isWordChar=oe,a.Pass=jt,a.signal=pn,a.Line=ai,a.changeEnd=da,a.scrollbarModel=Eu,a.Pos=it,a.cmpPos=ht,a.modes=Sn,a.mimeModes=rn,a.resolveMode=Vn,a.getMode=sr,a.modeExtensions=er,a.extendMode=cr,a.copyState=Dr,a.startState=Hr,a.innerMode=mr,a.commands=Vs,a.keyMap=Sl,a.keyName=Ys,a.isModifierKey=Bu,a.lookupKey=ks,a.normalizeKeyMap=Ul,a.StringStream=Lr,a.SharedTextMarker=rl,a.TextMarker=os,a.LineWidget=Lo,a.e_preventDefault=It,a.e_stopPropagation=tn,a.e_stop=nt,a.addClass=de,a.contains=We,a.rmClass=Xe,a.keyNames=wo}_c(wl),kc(wl);var hc="iter insert remove copy getEditor constructor".split(" ");for(var Tu in al.prototype)al.prototype.hasOwnProperty(Tu)&&vt(hc,Tu)<0&&(wl.prototype[Tu]=function(a){return function(){return a.apply(this.doc,arguments)}}(al.prototype[Tu]));return Je(al),wl.inputStyles={textarea:Rl,contenteditable:Go},wl.defineMode=function(a){!wl.defaults.mode&&a!="null"&&(wl.defaults.mode=a),En.apply(this,arguments)},wl.defineMIME=xn,wl.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),wl.defineMIME("text/plain","null"),wl.defineExtension=function(a,b){wl.prototype[a]=b},wl.defineDocExtension=function(a,b){al.prototype[a]=b},wl.fromTextArea=pc,Ac(wl),wl.version="5.58.2",wl})},25419:function(Mn,Yt,E){(function(y){y(E(89780),E(15525),E(98101))})(function(y){"use strict";y.defineMode("markdown",function(ve,ce){var Le=y.getMode(ve,"text/html"),xe=Le.name=="null";function ge(Ce){if(y.findModeByName){var be=y.findModeByName(Ce);be&&(Ce=be.mime||be.mimes[0])}var vt=y.getMode(ve,Ce);return vt.name=="null"?null:vt}ce.highlightFormatting===void 0&&(ce.highlightFormatting=!1),ce.maxBlockquoteDepth===void 0&&(ce.maxBlockquoteDepth=0),ce.taskLists===void 0&&(ce.taskLists=!1),ce.strikethrough===void 0&&(ce.strikethrough=!1),ce.emoji===void 0&&(ce.emoji=!1),ce.fencedCodeBlockHighlighting===void 0&&(ce.fencedCodeBlockHighlighting=!0),ce.fencedCodeBlockDefaultMode===void 0&&(ce.fencedCodeBlockDefaultMode="text/plain"),ce.xml===void 0&&(ce.xml=!0),ce.tokenTypeOverrides===void 0&&(ce.tokenTypeOverrides={});var Se={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var Ne in Se)Se.hasOwnProperty(Ne)&&ce.tokenTypeOverrides[Ne]&&(Se[Ne]=ce.tokenTypeOverrides[Ne]);var Be=/^([*\-_])(?:\s*\1){2,}\s*$/,fe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,$e=/^\[(x| )\](?=\s)/i,Oe=ce.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,ct=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ke=/^[^#!\[\]*_\\<>` "'(~:]+/,Te=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,we=/^\s*\[[^\]]+?\]:.*$/,Ie=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,Pe=" ";function tt(Ce,be,vt){return be.f=be.inline=vt,vt(Ce,be)}function Et(Ce,be,vt){return be.f=be.block=vt,vt(Ce,be)}function _e(Ce){return!Ce||!/\S/.test(Ce.string)}function Fe(Ce){if(Ce.linkTitle=!1,Ce.linkHref=!1,Ce.linkText=!1,Ce.em=!1,Ce.strong=!1,Ce.strikethrough=!1,Ce.quote=0,Ce.indentedCode=!1,Ce.f==Xe){var be=xe;if(!be){var vt=y.innerMode(Le,Ce.htmlState);be=vt.mode.name=="xml"&&vt.state.tagStart===null&&!vt.state.context&&vt.state.tokenize.isInText}be&&(Ce.f=Ue,Ce.block=He,Ce.htmlState=null)}return Ce.trailingSpace=0,Ce.trailingSpaceNewLine=!1,Ce.prevLine=Ce.thisLine,Ce.thisLine={stream:null},null}function He(Ce,be){var vt=Ce.column()===be.indentation,zt=_e(be.prevLine.stream),jt=be.indentedCode,De=be.prevLine.hr,pt=be.list!==!1,ut=(be.listStack[be.listStack.length-1]||0)+3;be.indentedCode=!1;var Qt=be.indentation;if(be.indentationDiff===null&&(be.indentationDiff=be.indentation,pt)){for(be.list=null;Qt<be.listStack[be.listStack.length-1];)be.listStack.pop(),be.listStack.length?be.indentation=be.listStack[be.listStack.length-1]:be.list=!1;be.list!==!1&&(be.indentationDiff=Qt-be.listStack[be.listStack.length-1])}var yt=!zt&&!De&&!be.prevLine.header&&(!pt||!jt)&&!be.prevLine.fencedCodeEnd,Ct=(be.list===!1||De||zt)&&be.indentation<=ut&&Ce.match(Be),mt=null;if(be.indentationDiff>=4&&(jt||be.prevLine.fencedCodeEnd||be.prevLine.header||zt))return Ce.skipToEnd(),be.indentedCode=!0,Se.code;if(Ce.eatSpace())return null;if(vt&&be.indentation<=ut&&(mt=Ce.match(Oe))&&mt[1].length<=6)return be.quote=0,be.header=mt[1].length,be.thisLine.header=!0,ce.highlightFormatting&&(be.formatting="header"),be.f=be.inline,gt(be);if(be.indentation<=ut&&Ce.eat(">"))return be.quote=vt?1:be.quote+1,ce.highlightFormatting&&(be.formatting="quote"),Ce.eatSpace(),gt(be);if(!Ct&&!be.setext&&vt&&be.indentation<=ut&&(mt=Ce.match(fe))){var dn=mt[1]?"ol":"ul";return be.indentation=Qt+Ce.current().length,be.list=!0,be.quote=0,be.listStack.push(be.indentation),be.em=!1,be.strong=!1,be.code=!1,be.strikethrough=!1,ce.taskLists&&Ce.match($e,!1)&&(be.taskList=!0),be.f=be.inline,ce.highlightFormatting&&(be.formatting=["list","list-"+dn]),gt(be)}else{if(vt&&be.indentation<=ut&&(mt=Ce.match(Te,!0)))return be.quote=0,be.fencedEndRE=new RegExp(mt[1]+"+ *$"),be.localMode=ce.fencedCodeBlockHighlighting&&ge(mt[2]||ce.fencedCodeBlockDefaultMode),be.localMode&&(be.localState=y.startState(be.localMode)),be.f=be.block=St,ce.highlightFormatting&&(be.formatting="code-block"),be.code=-1,gt(be);if(be.setext||(!yt||!pt)&&!be.quote&&be.list===!1&&!be.code&&!Ct&&!we.test(Ce.string)&&(mt=Ce.lookAhead(1))&&(mt=mt.match(ct)))return be.setext?(be.header=be.setext,be.setext=0,Ce.skipToEnd(),ce.highlightFormatting&&(be.formatting="header")):(be.header=mt[0].charAt(0)=="="?1:2,be.setext=be.header),be.thisLine.header=!0,be.f=be.inline,gt(be);if(Ct)return Ce.skipToEnd(),be.hr=!0,be.thisLine.hr=!0,Se.hr;if(Ce.peek()==="[")return tt(Ce,be,wt)}return tt(Ce,be,be.inline)}function Xe(Ce,be){var vt=Le.token(Ce,be.htmlState);if(!xe){var zt=y.innerMode(Le,be.htmlState);(zt.mode.name=="xml"&&zt.state.tagStart===null&&!zt.state.context&&zt.state.tokenize.isInText||be.md_inside&&Ce.current().indexOf(">")>-1)&&(be.f=Ue,be.block=He,be.htmlState=null)}return vt}function St(Ce,be){var vt=be.listStack[be.listStack.length-1]||0,zt=be.indentation<vt,jt=vt+3;if(be.fencedEndRE&&be.indentation<=jt&&(zt||Ce.match(be.fencedEndRE))){ce.highlightFormatting&&(be.formatting="code-block");var De;return zt||(De=gt(be)),be.localMode=be.localState=null,be.block=He,be.f=Ue,be.fencedEndRE=null,be.code=0,be.thisLine.fencedCodeEnd=!0,zt?Et(Ce,be,be.block):De}else return be.localMode?be.localMode.token(Ce,be.localState):(Ce.skipToEnd(),Se.code)}function gt(Ce){var be=[];if(Ce.formatting){be.push(Se.formatting),typeof Ce.formatting=="string"&&(Ce.formatting=[Ce.formatting]);for(var vt=0;vt<Ce.formatting.length;vt++)be.push(Se.formatting+"-"+Ce.formatting[vt]),Ce.formatting[vt]==="header"&&be.push(Se.formatting+"-"+Ce.formatting[vt]+"-"+Ce.header),Ce.formatting[vt]==="quote"&&(!ce.maxBlockquoteDepth||ce.maxBlockquoteDepth>=Ce.quote?be.push(Se.formatting+"-"+Ce.formatting[vt]+"-"+Ce.quote):be.push("error"))}if(Ce.taskOpen)return be.push("meta"),be.length?be.join(" "):null;if(Ce.taskClosed)return be.push("property"),be.length?be.join(" "):null;if(Ce.linkHref?be.push(Se.linkHref,"url"):(Ce.strong&&be.push(Se.strong),Ce.em&&be.push(Se.em),Ce.strikethrough&&be.push(Se.strikethrough),Ce.emoji&&be.push(Se.emoji),Ce.linkText&&be.push(Se.linkText),Ce.code&&be.push(Se.code),Ce.image&&be.push(Se.image),Ce.imageAltText&&be.push(Se.imageAltText,"link"),Ce.imageMarker&&be.push(Se.imageMarker)),Ce.header&&be.push(Se.header,Se.header+"-"+Ce.header),Ce.quote&&(be.push(Se.quote),!ce.maxBlockquoteDepth||ce.maxBlockquoteDepth>=Ce.quote?be.push(Se.quote+"-"+Ce.quote):be.push(Se.quote+"-"+ce.maxBlockquoteDepth)),Ce.list!==!1){var zt=(Ce.listStack.length-1)%3;zt?zt===1?be.push(Se.list2):be.push(Se.list3):be.push(Se.list1)}return Ce.trailingSpaceNewLine?be.push("trailing-space-new-line"):Ce.trailingSpace&&be.push("trailing-space-"+(Ce.trailingSpace%2?"a":"b")),be.length?be.join(" "):null}function ot(Ce,be){if(Ce.match(Ke,!0))return gt(be)}function Ue(Ce,be){var vt=be.text(Ce,be);if(typeof vt!="undefined")return vt;if(be.list)return be.list=null,gt(be);if(be.taskList){var zt=Ce.match($e,!0)[1]===" ";return zt?be.taskOpen=!0:be.taskClosed=!0,ce.highlightFormatting&&(be.formatting="task"),be.taskList=!1,gt(be)}if(be.taskOpen=!1,be.taskClosed=!1,be.header&&Ce.match(/^#+$/,!0))return ce.highlightFormatting&&(be.formatting="header"),gt(be);var jt=Ce.next();if(be.linkTitle){be.linkTitle=!1;var De=jt;jt==="("&&(De=")"),De=(De+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var pt="^\\s*(?:[^"+De+"\\\\]+|\\\\\\\\|\\\\.)"+De;if(Ce.match(new RegExp(pt),!0))return Se.linkHref}if(jt==="`"){var ut=be.formatting;ce.highlightFormatting&&(be.formatting="code"),Ce.eatWhile("`");var Qt=Ce.current().length;if(be.code==0&&(!be.quote||Qt==1))return be.code=Qt,gt(be);if(Qt==be.code){var yt=gt(be);return be.code=0,yt}else return be.formatting=ut,gt(be)}else if(be.code)return gt(be);if(jt==="\\"&&(Ce.next(),ce.highlightFormatting)){var Ct=gt(be),mt=Se.formatting+"-escape";return Ct?Ct+" "+mt:mt}if(jt==="!"&&Ce.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return be.imageMarker=!0,be.image=!0,ce.highlightFormatting&&(be.formatting="image"),gt(be);if(jt==="["&&be.imageMarker&&Ce.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return be.imageMarker=!1,be.imageAltText=!0,ce.highlightFormatting&&(be.formatting="image"),gt(be);if(jt==="]"&&be.imageAltText){ce.highlightFormatting&&(be.formatting="image");var Ct=gt(be);return be.imageAltText=!1,be.image=!1,be.inline=be.f=We,Ct}if(jt==="["&&!be.image)return be.linkText&&Ce.match(/^.*?\]/)||(be.linkText=!0,ce.highlightFormatting&&(be.formatting="link")),gt(be);if(jt==="]"&&be.linkText){ce.highlightFormatting&&(be.formatting="link");var Ct=gt(be);return be.linkText=!1,be.inline=be.f=Ce.match(/\(.*?\)| ?\[.*?\]/,!1)?We:Ue,Ct}if(jt==="<"&&Ce.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){be.f=be.inline=Ee,ce.highlightFormatting&&(be.formatting="link");var Ct=gt(be);return Ct?Ct+=" ":Ct="",Ct+Se.linkInline}if(jt==="<"&&Ce.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){be.f=be.inline=Ee,ce.highlightFormatting&&(be.formatting="link");var Ct=gt(be);return Ct?Ct+=" ":Ct="",Ct+Se.linkEmail}if(ce.xml&&jt==="<"&&Ce.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var dn=Ce.string.indexOf(">",Ce.pos);if(dn!=-1){var Ht=Ce.string.substring(Ce.start,dn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Ht)&&(be.md_inside=!0)}return Ce.backUp(1),be.htmlState=y.startState(Le),Et(Ce,be,Xe)}if(ce.xml&&jt==="<"&&Ce.match(/^\/\w*?>/))return be.md_inside=!1,"tag";if(jt==="*"||jt==="_"){for(var ue=1,ie=Ce.pos==1?" ":Ce.string.charAt(Ce.pos-2);ue<3&&Ce.eat(jt);)ue++;var re=Ce.peek()||" ",oe=!/\s/.test(re)&&(!Ie.test(re)||/\s/.test(ie)||Ie.test(ie)),pe=!/\s/.test(ie)&&(!Ie.test(ie)||/\s/.test(re)||Ie.test(re)),ae=null,me=null;if(ue%2&&(!be.em&&oe&&(jt==="*"||!pe||Ie.test(ie))?ae=!0:be.em==jt&&pe&&(jt==="*"||!oe||Ie.test(re))&&(ae=!1)),ue>1&&(!be.strong&&oe&&(jt==="*"||!pe||Ie.test(ie))?me=!0:be.strong==jt&&pe&&(jt==="*"||!oe||Ie.test(re))&&(me=!1)),me!=null||ae!=null){ce.highlightFormatting&&(be.formatting=ae==null?"strong":me==null?"em":"strong em"),ae===!0&&(be.em=jt),me===!0&&(be.strong=jt);var yt=gt(be);return ae===!1&&(be.em=!1),me===!1&&(be.strong=!1),yt}}else if(jt===" "&&(Ce.eat("*")||Ce.eat("_"))){if(Ce.peek()===" ")return gt(be);Ce.backUp(1)}if(ce.strikethrough){if(jt==="~"&&Ce.eatWhile(jt)){if(be.strikethrough){ce.highlightFormatting&&(be.formatting="strikethrough");var yt=gt(be);return be.strikethrough=!1,yt}else if(Ce.match(/^[^\s]/,!1))return be.strikethrough=!0,ce.highlightFormatting&&(be.formatting="strikethrough"),gt(be)}else if(jt===" "&&Ce.match(/^~~/,!0)){if(Ce.peek()===" ")return gt(be);Ce.backUp(2)}}if(ce.emoji&&jt===":"&&Ce.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){be.emoji=!0,ce.highlightFormatting&&(be.formatting="emoji");var Ze=gt(be);return be.emoji=!1,Ze}return jt===" "&&(Ce.match(/^ +$/,!1)?be.trailingSpace++:be.trailingSpace&&(be.trailingSpaceNewLine=!0)),gt(be)}function Ee(Ce,be){var vt=Ce.next();if(vt===">"){be.f=be.inline=Ue,ce.highlightFormatting&&(be.formatting="link");var zt=gt(be);return zt?zt+=" ":zt="",zt+Se.linkInline}return Ce.match(/^[^>]+/,!0),Se.linkInline}function We(Ce,be){if(Ce.eatSpace())return null;var vt=Ce.next();return vt==="("||vt==="["?(be.f=be.inline=de(vt==="("?")":"]"),ce.highlightFormatting&&(be.formatting="link-string"),be.linkHref=!0,gt(be)):"error"}var Ae={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function de(Ce){return function(be,vt){var zt=be.next();if(zt===Ce){vt.f=vt.inline=Ue,ce.highlightFormatting&&(vt.formatting="link-string");var jt=gt(vt);return vt.linkHref=!1,jt}return be.match(Ae[Ce]),vt.linkHref=!0,gt(vt)}}function wt(Ce,be){return Ce.match(/^([^\]\\]|\\.)*\]:/,!1)?(be.f=Qe,Ce.next(),ce.highlightFormatting&&(be.formatting="link"),be.linkText=!0,gt(be)):tt(Ce,be,Ue)}function Qe(Ce,be){if(Ce.match(/^\]:/,!0)){be.f=be.inline=Ge,ce.highlightFormatting&&(be.formatting="link");var vt=gt(be);return be.linkText=!1,vt}return Ce.match(/^([^\]\\]|\\.)+/,!0),Se.linkText}function Ge(Ce,be){return Ce.eatSpace()?null:(Ce.match(/^[^\s]+/,!0),Ce.peek()===void 0?be.linkTitle=!0:Ce.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),be.f=be.inline=Ue,Se.linkHref+" url")}var st={startState:function(){return{f:He,prevLine:{stream:null},thisLine:{stream:null},block:He,htmlState:null,indentation:0,inline:Ue,text:ot,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(Ce){return{f:Ce.f,prevLine:Ce.prevLine,thisLine:Ce.thisLine,block:Ce.block,htmlState:Ce.htmlState&&y.copyState(Le,Ce.htmlState),indentation:Ce.indentation,localMode:Ce.localMode,localState:Ce.localMode?y.copyState(Ce.localMode,Ce.localState):null,inline:Ce.inline,text:Ce.text,formatting:!1,linkText:Ce.linkText,linkTitle:Ce.linkTitle,linkHref:Ce.linkHref,code:Ce.code,em:Ce.em,strong:Ce.strong,strikethrough:Ce.strikethrough,emoji:Ce.emoji,header:Ce.header,setext:Ce.setext,hr:Ce.hr,taskList:Ce.taskList,list:Ce.list,listStack:Ce.listStack.slice(0),quote:Ce.quote,indentedCode:Ce.indentedCode,trailingSpace:Ce.trailingSpace,trailingSpaceNewLine:Ce.trailingSpaceNewLine,md_inside:Ce.md_inside,fencedEndRE:Ce.fencedEndRE}},token:function(Ce,be){if(be.formatting=!1,Ce!=be.thisLine.stream){if(be.header=0,be.hr=!1,Ce.match(/^\s*$/,!0))return Fe(be),null;if(be.prevLine=be.thisLine,be.thisLine={stream:Ce},be.taskList=!1,be.trailingSpace=0,be.trailingSpaceNewLine=!1,!be.localState&&(be.f=be.block,be.f!=Xe)){var vt=Ce.match(/^\s*/,!0)[0].replace(/\t/g,Pe).length;if(be.indentation=vt,be.indentationDiff=null,vt>0)return null}}return be.f(Ce,be)},innerMode:function(Ce){return Ce.block==Xe?{state:Ce.htmlState,mode:Le}:Ce.localState?{state:Ce.localState,mode:Ce.localMode}:{state:Ce,mode:st}},indent:function(Ce,be,vt){return Ce.block==Xe&&Le.indent?Le.indent(Ce.htmlState,be,vt):Ce.localState&&Ce.localMode.indent?Ce.localMode.indent(Ce.localState,be,vt):y.Pass},blankLine:Fe,getType:gt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return st},"xml"),y.defineMIME("text/markdown","markdown"),y.defineMIME("text/x-markdown","markdown")})},98101:function(Mn,Yt,E){(function(y){y(E(89780))})(function(y){"use strict";y.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var ve=0;ve<y.modeInfo.length;ve++){var ce=y.modeInfo[ve];ce.mimes&&(ce.mime=ce.mimes[0])}y.findModeByMIME=function(Le){Le=Le.toLowerCase();for(var xe=0;xe<y.modeInfo.length;xe++){var ge=y.modeInfo[xe];if(ge.mime==Le)return ge;if(ge.mimes){for(var Se=0;Se<ge.mimes.length;Se++)if(ge.mimes[Se]==Le)return ge}}if(/\+xml$/.test(Le))return y.findModeByMIME("application/xml");if(/\+json$/.test(Le))return y.findModeByMIME("application/json")},y.findModeByExtension=function(Le){Le=Le.toLowerCase();for(var xe=0;xe<y.modeInfo.length;xe++){var ge=y.modeInfo[xe];if(ge.ext){for(var Se=0;Se<ge.ext.length;Se++)if(ge.ext[Se]==Le)return ge}}},y.findModeByFileName=function(Le){for(var xe=0;xe<y.modeInfo.length;xe++){var ge=y.modeInfo[xe];if(ge.file&&ge.file.test(Le))return ge}var Se=Le.lastIndexOf("."),Ne=Se>-1&&Le.substring(Se+1,Le.length);if(Ne)return y.findModeByExtension(Ne)},y.findModeByName=function(Le){Le=Le.toLowerCase();for(var xe=0;xe<y.modeInfo.length;xe++){var ge=y.modeInfo[xe];if(ge.name.toLowerCase()==Le)return ge;if(ge.alias){for(var Se=0;Se<ge.alias.length;Se++)if(ge.alias[Se].toLowerCase()==Le)return ge}}}})},67549:function(Mn,Yt,E){(function(y){y(E(89780))})(function(y){"use strict";y.defineMode("stex",function(ve,ce){"use strict";function Le(Ke,Te){Ke.cmdState.push(Te)}function xe(Ke){return Ke.cmdState.length>0?Ke.cmdState[Ke.cmdState.length-1]:null}function ge(Ke){var Te=Ke.cmdState.pop();Te&&Te.closeBracket()}function Se(Ke){for(var Te=Ke.cmdState,we=Te.length-1;we>=0;we--){var Ie=Te[we];if(Ie.name!="DEFAULT")return Ie}return{styleIdentifier:function(){return null}}}function Ne(Ke,Te,we){return function(){this.name=Ke,this.bracketNo=0,this.style=Te,this.styles=we,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Be={};Be.importmodule=Ne("importmodule","tag",["string","builtin"]),Be.documentclass=Ne("documentclass","tag",["","atom"]),Be.usepackage=Ne("usepackage","tag",["atom"]),Be.begin=Ne("begin","tag",["atom"]),Be.end=Ne("end","tag",["atom"]),Be.label=Ne("label","tag",["atom"]),Be.ref=Ne("ref","tag",["atom"]),Be.eqref=Ne("eqref","tag",["atom"]),Be.cite=Ne("cite","tag",["atom"]),Be.bibitem=Ne("bibitem","tag",["atom"]),Be.Bibitem=Ne("Bibitem","tag",["atom"]),Be.RBibitem=Ne("RBibitem","tag",["atom"]),Be.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function fe(Ke,Te){Ke.f=Te}function $e(Ke,Te){var we;if(Ke.match(/^\\[a-zA-Z@]+/)){var Ie=Ke.current().slice(1);return we=Be.hasOwnProperty(Ie)?Be[Ie]:Be.DEFAULT,we=new we,Le(Te,we),fe(Te,ct),we.style}if(Ke.match(/^\\[$&%#{}_]/)||Ke.match(/^\\[,;!\/\\]/))return"tag";if(Ke.match("\\["))return fe(Te,function(tt,Et){return Oe(tt,Et,"\\]")}),"keyword";if(Ke.match("\\("))return fe(Te,function(tt,Et){return Oe(tt,Et,"\\)")}),"keyword";if(Ke.match("$$"))return fe(Te,function(tt,Et){return Oe(tt,Et,"$$")}),"keyword";if(Ke.match("$"))return fe(Te,function(tt,Et){return Oe(tt,Et,"$")}),"keyword";var Pe=Ke.next();if(Pe=="%")return Ke.skipToEnd(),"comment";if(Pe=="}"||Pe=="]"){if(we=xe(Te),we)we.closeBracket(Pe),fe(Te,ct);else return"error";return"bracket"}else return Pe=="{"||Pe=="["?(we=Be.DEFAULT,we=new we,Le(Te,we),"bracket"):/\d/.test(Pe)?(Ke.eatWhile(/[\w.%]/),"atom"):(Ke.eatWhile(/[\w\-_]/),we=Se(Te),we.name=="begin"&&(we.argument=Ke.current()),we.styleIdentifier())}function Oe(Ke,Te,we){if(Ke.eatSpace())return null;if(we&&Ke.match(we))return fe(Te,$e),"keyword";if(Ke.match(/^\\[a-zA-Z@]+/))return"tag";if(Ke.match(/^[a-zA-Z]+/))return"variable-2";if(Ke.match(/^\\[$&%#{}_]/)||Ke.match(/^\\[,;!\/]/)||Ke.match(/^[\^_&]/))return"tag";if(Ke.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ke.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Ie=Ke.next();return Ie=="{"||Ie=="}"||Ie=="["||Ie=="]"||Ie=="("||Ie==")"?"bracket":Ie=="%"?(Ke.skipToEnd(),"comment"):"error"}function ct(Ke,Te){var we=Ke.peek(),Ie;return we=="{"||we=="["?(Ie=xe(Te),Ie.openBracket(we),Ke.eat(we),fe(Te,$e),"bracket"):/[ \t\r]/.test(we)?(Ke.eat(we),null):(fe(Te,$e),ge(Te),$e(Ke,Te))}return{startState:function(){var Ke=ce.inMathMode?function(Te,we){return Oe(Te,we)}:$e;return{cmdState:[],f:Ke}},copyState:function(Ke){return{cmdState:Ke.cmdState.slice(),f:Ke.f}},token:function(Ke,Te){return Te.f(Ke,Te)},blankLine:function(Ke){Ke.f=$e,Ke.cmdState.length=0},lineComment:"%"}}),y.defineMIME("text/x-stex","stex"),y.defineMIME("text/x-latex","stex")})},15525:function(Mn,Yt,E){(function(y){y(E(89780))})(function(y){"use strict";var ve={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},ce={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};y.defineMode("xml",function(Le,xe){var ge=Le.indentUnit,Se={},Ne=xe.htmlMode?ve:ce;for(var Be in Ne)Se[Be]=Ne[Be];for(var Be in xe)Se[Be]=xe[Be];var fe,$e;function Oe(Ee,We){function Ae(Qe){return We.tokenize=Qe,Qe(Ee,We)}var de=Ee.next();if(de=="<")return Ee.eat("!")?Ee.eat("[")?Ee.match("CDATA[")?Ae(Te("atom","]]>")):null:Ee.match("--")?Ae(Te("comment","-->")):Ee.match("DOCTYPE",!0,!0)?(Ee.eatWhile(/[\w\._\-]/),Ae(we(1))):null:Ee.eat("?")?(Ee.eatWhile(/[\w\._\-]/),We.tokenize=Te("meta","?>"),"meta"):(fe=Ee.eat("/")?"closeTag":"openTag",We.tokenize=ct,"tag bracket");if(de=="&"){var wt;return Ee.eat("#")?Ee.eat("x")?wt=Ee.eatWhile(/[a-fA-F\d]/)&&Ee.eat(";"):wt=Ee.eatWhile(/[\d]/)&&Ee.eat(";"):wt=Ee.eatWhile(/[\w\.\-:]/)&&Ee.eat(";"),wt?"atom":"error"}else return Ee.eatWhile(/[^&<]/),null}Oe.isInText=!0;function ct(Ee,We){var Ae=Ee.next();if(Ae==">"||Ae=="/"&&Ee.eat(">"))return We.tokenize=Oe,fe=Ae==">"?"endTag":"selfcloseTag","tag bracket";if(Ae=="=")return fe="equals",null;if(Ae=="<"){We.tokenize=Oe,We.state=Et,We.tagName=We.tagStart=null;var de=We.tokenize(Ee,We);return de?de+" tag error":"tag error"}else return/[\'\"]/.test(Ae)?(We.tokenize=Ke(Ae),We.stringStartCol=Ee.column(),We.tokenize(Ee,We)):(Ee.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ke(Ee){var We=function(Ae,de){for(;!Ae.eol();)if(Ae.next()==Ee){de.tokenize=ct;break}return"string"};return We.isInAttribute=!0,We}function Te(Ee,We){return function(Ae,de){for(;!Ae.eol();){if(Ae.match(We)){de.tokenize=Oe;break}Ae.next()}return Ee}}function we(Ee){return function(We,Ae){for(var de;(de=We.next())!=null;){if(de=="<")return Ae.tokenize=we(Ee+1),Ae.tokenize(We,Ae);if(de==">")if(Ee==1){Ae.tokenize=Oe;break}else return Ae.tokenize=we(Ee-1),Ae.tokenize(We,Ae)}return"meta"}}function Ie(Ee,We,Ae){this.prev=Ee.context,this.tagName=We,this.indent=Ee.indented,this.startOfLine=Ae,(Se.doNotIndent.hasOwnProperty(We)||Ee.context&&Ee.context.noIndent)&&(this.noIndent=!0)}function Pe(Ee){Ee.context&&(Ee.context=Ee.context.prev)}function tt(Ee,We){for(var Ae;;){if(!Ee.context||(Ae=Ee.context.tagName,!Se.contextGrabbers.hasOwnProperty(Ae)||!Se.contextGrabbers[Ae].hasOwnProperty(We)))return;Pe(Ee)}}function Et(Ee,We,Ae){return Ee=="openTag"?(Ae.tagStart=We.column(),_e):Ee=="closeTag"?Fe:Et}function _e(Ee,We,Ae){return Ee=="word"?(Ae.tagName=We.current(),$e="tag",St):Se.allowMissingTagName&&Ee=="endTag"?($e="tag bracket",St(Ee,We,Ae)):($e="error",_e)}function Fe(Ee,We,Ae){if(Ee=="word"){var de=We.current();return Ae.context&&Ae.context.tagName!=de&&Se.implicitlyClosed.hasOwnProperty(Ae.context.tagName)&&Pe(Ae),Ae.context&&Ae.context.tagName==de||Se.matchClosing===!1?($e="tag",He):($e="tag error",Xe)}else return Se.allowMissingTagName&&Ee=="endTag"?($e="tag bracket",He(Ee,We,Ae)):($e="error",Xe)}function He(Ee,We,Ae){return Ee!="endTag"?($e="error",He):(Pe(Ae),Et)}function Xe(Ee,We,Ae){return $e="error",He(Ee,We,Ae)}function St(Ee,We,Ae){if(Ee=="word")return $e="attribute",gt;if(Ee=="endTag"||Ee=="selfcloseTag"){var de=Ae.tagName,wt=Ae.tagStart;return Ae.tagName=Ae.tagStart=null,Ee=="selfcloseTag"||Se.autoSelfClosers.hasOwnProperty(de)?tt(Ae,de):(tt(Ae,de),Ae.context=new Ie(Ae,de,wt==Ae.indented)),Et}return $e="error",St}function gt(Ee,We,Ae){return Ee=="equals"?ot:(Se.allowMissing||($e="error"),St(Ee,We,Ae))}function ot(Ee,We,Ae){return Ee=="string"?Ue:Ee=="word"&&Se.allowUnquoted?($e="string",St):($e="error",St(Ee,We,Ae))}function Ue(Ee,We,Ae){return Ee=="string"?Ue:St(Ee,We,Ae)}return{startState:function(Ee){var We={tokenize:Oe,state:Et,indented:Ee||0,tagName:null,tagStart:null,context:null};return Ee!=null&&(We.baseIndent=Ee),We},token:function(Ee,We){if(!We.tagName&&Ee.sol()&&(We.indented=Ee.indentation()),Ee.eatSpace())return null;fe=null;var Ae=We.tokenize(Ee,We);return(Ae||fe)&&Ae!="comment"&&($e=null,We.state=We.state(fe||Ae,Ee,We),$e&&(Ae=$e=="error"?Ae+" error":$e)),Ae},indent:function(Ee,We,Ae){var de=Ee.context;if(Ee.tokenize.isInAttribute)return Ee.tagStart==Ee.indented?Ee.stringStartCol+1:Ee.indented+ge;if(de&&de.noIndent)return y.Pass;if(Ee.tokenize!=ct&&Ee.tokenize!=Oe)return Ae?Ae.match(/^(\s*)/)[0].length:0;if(Ee.tagName)return Se.multilineTagIndentPastTag!==!1?Ee.tagStart+Ee.tagName.length+2:Ee.tagStart+ge*(Se.multilineTagIndentFactor||1);if(Se.alignCDATA&&/<!\[CDATA\[/.test(We))return 0;var wt=We&&/^<(\/)?([\w_:\.-]*)/.exec(We);if(wt&&wt[1])for(;de;)if(de.tagName==wt[2]){de=de.prev;break}else if(Se.implicitlyClosed.hasOwnProperty(de.tagName))de=de.prev;else break;else if(wt)for(;de;){var Qe=Se.contextGrabbers[de.tagName];if(Qe&&Qe.hasOwnProperty(wt[2]))de=de.prev;else break}for(;de&&de.prev&&!de.startOfLine;)de=de.prev;return de?de.indent+ge:Ee.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Se.htmlMode?"html":"xml",helperType:Se.htmlMode?"html":"xml",skipAttribute:function(Ee){Ee.state==ot&&(Ee.state=St)},xmlCurrentTag:function(Ee){return Ee.tagName?{name:Ee.tagName,close:Ee.type=="closeTag"}:null},xmlCurrentContext:function(Ee){for(var We=[],Ae=Ee.context;Ae;Ae=Ae.prev)Ae.tagName&&We.push(Ae.tagName);return We.reverse()}}}),y.defineMIME("text/xml","xml"),y.defineMIME("application/xml","xml"),y.mimeModes.hasOwnProperty("text/html")||y.defineMIME("text/html",{name:"xml",htmlMode:!0})})},24334:function(Mn,Yt,E){var y,ve;(function(ce,Le){Mn.exports=Le(ce)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof E.g!="undefined"?E.g:this,function(ce){"use strict";ce=ce||{};var Le=ce.Base64,xe="2.6.4",ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Se=function(Ae){for(var de={},wt=0,Qe=Ae.length;wt<Qe;wt++)de[Ae.charAt(wt)]=wt;return de}(ge),Ne=String.fromCharCode,Be=function(Ae){if(Ae.length<2){var de=Ae.charCodeAt(0);return de<128?Ae:de<2048?Ne(192|de>>>6)+Ne(128|de&63):Ne(224|de>>>12&15)+Ne(128|de>>>6&63)+Ne(128|de&63)}else{var de=65536+(Ae.charCodeAt(0)-55296)*1024+(Ae.charCodeAt(1)-56320);return Ne(240|de>>>18&7)+Ne(128|de>>>12&63)+Ne(128|de>>>6&63)+Ne(128|de&63)}},fe=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,$e=function(Ae){return Ae.replace(fe,Be)},Oe=function(Ae){var de=[0,2,1][Ae.length%3],wt=Ae.charCodeAt(0)<<16|(Ae.length>1?Ae.charCodeAt(1):0)<<8|(Ae.length>2?Ae.charCodeAt(2):0),Qe=[ge.charAt(wt>>>18),ge.charAt(wt>>>12&63),de>=2?"=":ge.charAt(wt>>>6&63),de>=1?"=":ge.charAt(wt&63)];return Qe.join("")},ct=ce.btoa&&typeof ce.btoa=="function"?function(Ae){return ce.btoa(Ae)}:function(Ae){if(Ae.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ae.replace(/[\s\S]{1,3}/g,Oe)},Ke=function(Ae){return ct($e(String(Ae)))},Te=function(Ae){return Ae.replace(/[+\/]/g,function(de){return de=="+"?"-":"_"}).replace(/=/g,"")},we=function(Ae,de){return de?Te(Ke(Ae)):Ke(Ae)},Ie=function(Ae){return we(Ae,!0)},Pe;ce.Uint8Array&&(Pe=function(Ae,de){for(var wt="",Qe=0,Ge=Ae.length;Qe<Ge;Qe+=3){var st=Ae[Qe],Ce=Ae[Qe+1],be=Ae[Qe+2],vt=st<<16|Ce<<8|be;wt+=ge.charAt(vt>>>18)+ge.charAt(vt>>>12&63)+(typeof Ce!="undefined"?ge.charAt(vt>>>6&63):"=")+(typeof be!="undefined"?ge.charAt(vt&63):"=")}return de?Te(wt):wt});var tt=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Et=function(Ae){switch(Ae.length){case 4:var de=(7&Ae.charCodeAt(0))<<18|(63&Ae.charCodeAt(1))<<12|(63&Ae.charCodeAt(2))<<6|63&Ae.charCodeAt(3),wt=de-65536;return Ne((wt>>>10)+55296)+Ne((wt&1023)+56320);case 3:return Ne((15&Ae.charCodeAt(0))<<12|(63&Ae.charCodeAt(1))<<6|63&Ae.charCodeAt(2));default:return Ne((31&Ae.charCodeAt(0))<<6|63&Ae.charCodeAt(1))}},_e=function(Ae){return Ae.replace(tt,Et)},Fe=function(Ae){var de=Ae.length,wt=de%4,Qe=(de>0?Se[Ae.charAt(0)]<<18:0)|(de>1?Se[Ae.charAt(1)]<<12:0)|(de>2?Se[Ae.charAt(2)]<<6:0)|(de>3?Se[Ae.charAt(3)]:0),Ge=[Ne(Qe>>>16),Ne(Qe>>>8&255),Ne(Qe&255)];return Ge.length-=[0,0,2,1][wt],Ge.join("")},He=ce.atob&&typeof ce.atob=="function"?function(Ae){return ce.atob(Ae)}:function(Ae){return Ae.replace(/\S{1,4}/g,Fe)},Xe=function(Ae){return He(String(Ae).replace(/[^A-Za-z0-9\+\/]/g,""))},St=function(Ae){return _e(He(Ae))},gt=function(Ae){return String(Ae).replace(/[-_]/g,function(de){return de=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},ot=function(Ae){return St(gt(Ae))},Ue;ce.Uint8Array&&(Ue=function(Ae){return Uint8Array.from(Xe(gt(Ae)),function(de){return de.charCodeAt(0)})});var Ee=function(){var Ae=ce.Base64;return ce.Base64=Le,Ae};if(ce.Base64={VERSION:xe,atob:Xe,btoa:ct,fromBase64:ot,toBase64:we,utob:$e,encode:we,encodeURI:Ie,btou:_e,decode:ot,noConflict:Ee,fromUint8Array:Pe,toUint8Array:Ue},typeof Object.defineProperty=="function"){var We=function(Ae){return{value:Ae,enumerable:!1,writable:!0,configurable:!0}};ce.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",We(function(){return ot(this)})),Object.defineProperty(String.prototype,"toBase64",We(function(Ae){return we(this,Ae)})),Object.defineProperty(String.prototype,"toBase64URI",We(function(){return we(this,!0)}))}}return ce.Meteor&&(Base64=ce.Base64),Mn.exports?Mn.exports.Base64=ce.Base64:(y=[],ve=function(){return ce.Base64}.apply(Yt,y),ve!==void 0&&(Mn.exports=ve)),{Base64:ce.Base64}})},2859:function(Mn,Yt,E){"use strict";E.d(Yt,{hP:function(){return Ht}});var y=function(ue,ie){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,oe){re.__proto__=oe}||function(re,oe){for(var pe in oe)Object.prototype.hasOwnProperty.call(oe,pe)&&(re[pe]=oe[pe])})(ue,ie)};function ve(ue,ie){function re(){this.constructor=ue}y(ue,ie),ue.prototype=ie===null?Object.create(ie):(re.prototype=ie.prototype,new re)}function ce(ue,ie,re,oe){return new(re||(re=Promise))(function(pe,ae){function me(at){try{Ot(oe.next(at))}catch(qe){ae(qe)}}function Ze(at){try{Ot(oe.throw(at))}catch(qe){ae(qe)}}function Ot(at){var qe;at.done?pe(at.value):(qe=at.value,qe instanceof re?qe:new re(function(bt){bt(qe)})).then(me,Ze)}Ot((oe=oe.apply(ue,ie||[])).next())})}function Le(ue,ie){var re,oe,pe,ae,me={label:0,sent:function(){if(1&pe[0])throw pe[1];return pe[1]},trys:[],ops:[]};return ae={next:Ze(0),throw:Ze(1),return:Ze(2)},typeof Symbol=="function"&&(ae[Symbol.iterator]=function(){return this}),ae;function Ze(Ot){return function(at){return function(qe){if(re)throw new TypeError("Generator is already executing.");for(;me;)try{if(re=1,oe&&(pe=2&qe[0]?oe.return:qe[0]?oe.throw||((pe=oe.return)&&pe.call(oe),0):oe.next)&&!(pe=pe.call(oe,qe[1])).done)return pe;switch(oe=0,pe&&(qe=[2&qe[0],pe.value]),qe[0]){case 0:case 1:pe=qe;break;case 4:return me.label++,{value:qe[1],done:!1};case 5:me.label++,oe=qe[1],qe=[0];continue;case 7:qe=me.ops.pop(),me.trys.pop();continue;default:if(pe=me.trys,!((pe=pe.length>0&&pe[pe.length-1])||qe[0]!==6&&qe[0]!==2)){me=0;continue}if(qe[0]===3&&(!pe||qe[1]>pe[0]&&qe[1]<pe[3])){me.label=qe[1];break}if(qe[0]===6&&me.label<pe[1]){me.label=pe[1],pe=qe;break}if(pe&&me.label<pe[2]){me.label=pe[2],me.ops.push(qe);break}pe[2]&&me.ops.pop(),me.trys.pop();continue}qe=ie.call(ue,me)}catch(bt){qe=[6,bt],oe=0}finally{re=pe=0}if(5&qe[0])throw qe[1];return{value:qe[0]?qe[1]:void 0,done:!0}}([Ot,at])}}}function xe(){for(var ue=0,ie=0,re=arguments.length;ie<re;ie++)ue+=arguments[ie].length;var oe=Array(ue),pe=0;for(ie=0;ie<re;ie++)for(var ae=arguments[ie],me=0,Ze=ae.length;me<Ze;me++,pe++)oe[pe]=ae[me];return oe}var ge=function(){function ue(){}return ue.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ue.setAttributes=function(ie,re){for(var oe=0,pe=re;oe<pe.length;oe++){var ae=pe[oe],me=ae[0],Ze=ae[1];ie.setAttribute(me,Ze)}},ue.createRect=function(ie,re,oe){var pe=document.createElementNS("http://www.w3.org/2000/svg","rect");return pe.setAttribute("width",ie.toString()),pe.setAttribute("height",re.toString()),oe&&ue.setAttributes(pe,oe),pe},ue.createLine=function(ie,re,oe,pe,ae){var me=document.createElementNS("http://www.w3.org/2000/svg","line");return me.setAttribute("x1",ie.toString()),me.setAttribute("y1",re.toString()),me.setAttribute("x2",oe.toString()),me.setAttribute("y2",pe.toString()),ae&&ue.setAttributes(me,ae),me},ue.createPolygon=function(ie,re){var oe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return oe.setAttribute("points",ie),re&&ue.setAttributes(oe,re),oe},ue.createCircle=function(ie,re){var oe=document.createElementNS("http://www.w3.org/2000/svg","circle");return oe.setAttribute("cx",(ie/2).toString()),oe.setAttribute("cy",(ie/2).toString()),oe.setAttribute("r",ie.toString()),re&&ue.setAttributes(oe,re),oe},ue.createEllipse=function(ie,re,oe){var pe=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return pe.setAttribute("cx",(ie/2).toString()),pe.setAttribute("cy",(re/2).toString()),pe.setAttribute("rx",(ie/2).toString()),pe.setAttribute("ry",(re/2).toString()),oe&&ue.setAttributes(pe,oe),pe},ue.createGroup=function(ie){var re=document.createElementNS("http://www.w3.org/2000/svg","g");return ie&&ue.setAttributes(re,ie),re},ue.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ue.createMarker=function(ie,re,oe,pe,ae,me,Ze){var Ot=document.createElementNS("http://www.w3.org/2000/svg","marker");return ue.setAttributes(Ot,[["id",ie],["orient",re],["markerWidth",oe.toString()],["markerHeight",pe.toString()],["refX",ae.toString()],["refY",me.toString()]]),Ot.appendChild(Ze),Ot},ue.createText=function(ie){var re=document.createElementNS("http://www.w3.org/2000/svg","text");return re.setAttribute("x","0"),re.setAttribute("y","0"),ie&&ue.setAttributes(re,ie),re},ue.createTSpan=function(ie,re){var oe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return oe.textContent=ie,re&&ue.setAttributes(oe,re),oe},ue.createImage=function(ie){var re=document.createElementNS("http://www.w3.org/2000/svg","image");return ie&&ue.setAttributes(re,ie),re},ue.createPoint=function(ie,re){var oe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return oe.x=ie,oe.y=re,oe},ue.createPath=function(ie,re){var oe=document.createElementNS("http://www.w3.org/2000/svg","path");return oe.setAttribute("d",ie),re&&ue.setAttributes(oe,re),oe},ue}(),Se=function(){function ue(){}return ue.addKey=function(ie){ue.key=ie},Object.defineProperty(ue,"isLicensed",{get:function(){return!!ue.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ue.key)},enumerable:!1,configurable:!0}),ue}(),Ne=function(){function ue(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ue.prototype.rasterize=function(ie,re,oe){var pe=this;return new Promise(function(ae){var me=oe!==void 0?oe:document.createElement("canvas");ie===null&&(pe.markersOnly=!0,pe.naturalSize=!1);var Ze=document.createElementNS("http://www.w3.org/2000/svg","svg");Ze.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ze.setAttribute("width",re.width.baseVal.valueAsString),Ze.setAttribute("height",re.height.baseVal.valueAsString),Ze.setAttribute("viewBox","0 0 "+re.viewBox.baseVal.width.toString()+" "+re.viewBox.baseVal.height.toString()),Ze.innerHTML=re.innerHTML,pe.naturalSize===!0?(Ze.width.baseVal.value=ie.naturalWidth,Ze.height.baseVal.value=ie.naturalHeight):pe.width!==void 0&&pe.height!==void 0&&(Ze.width.baseVal.value=pe.width,Ze.height.baseVal.value=pe.height),me.width=Ze.width.baseVal.value,me.height=Ze.height.baseVal.value;var Ot=Ze.outerHTML,at=me.getContext("2d");pe.markersOnly!==!0&&at.drawImage(ie,0,0,me.width,me.height);var qe=window.URL,bt=new Image(me.width,me.height);bt.setAttribute("crossOrigin","anonymous");var At=new Blob([Ot],{type:"image/svg+xml"}),$t=qe.createObjectURL(At);bt.onload=function(){at.drawImage(bt,0,0),qe.revokeObjectURL($t);var Ye=me.toDataURL(pe.imageType,pe.imageQuality);ae(Ye)},bt.src=$t})},ue}(),Be=function(){},fe=function(){function ue(ie){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+ie+"_"}return Object.defineProperty(ue.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ue.prototype.addClass=function(ie){return this.styleSheet===void 0&&this.addStyleSheet(),ie.name=""+this.classNamePrefix+ie.localName,this.classes.push(ie),this.styleSheet.sheet.insertRule("."+ie.name+" {"+ie.style+"}",this.styleSheet.sheet.cssRules.length),ie},ue.prototype.addRule=function(ie){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(ie),this.styleSheet.sheet.insertRule(ie.selector+" {"+ie.style+"}",this.styleSheet.sheet.cssRules.length)},ue.prototype.addStyleSheet=function(){var ie;this.styleSheet=document.createElement("style"),((ie=this.styleSheetRoot)!==null&&ie!==void 0?ie:document.head).appendChild(this.styleSheet),this.addRule(new $e("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new $e("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new $e("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new Oe("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new Oe("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},ue.prototype.removeStyleSheet=function(){var ie;this.styleSheet&&(((ie=this.styleSheetRoot)!==null&&ie!==void 0?ie:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ue}(),$e=function(ue,ie){this.selector=ue,this.style=ie},Oe=function(ue,ie){this.localName=ue,this.style=ie},ct=function(){function ue(ie,re,oe,pe,ae){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=ie,this.displayMode=re,this.markerItems=oe,this.uiStyleSettings=pe,this.styles=ae,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ue.prototype.show=function(ie){var re=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ie,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var oe=document.createElement("div");oe.className=this.toolbarBlockStyleClass.name,oe.style.whiteSpace="nowrap",this.uiContainer.appendChild(oe),this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(ae){var me=document.createElement("div");me.className=""+re.toolbarButtonStyleClass.name,me.setAttribute("data-type-name",ae.typeName),me.innerHTML=ae.icon,me.addEventListener("click",function(){re.markerToolbarButtonClicked(me,ae)}),re.buttons.push(me),re.markerButtons.push(me)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var pe=document.createElement("div");pe.className=this.toolbarBlockStyleClass.name,pe.style.whiteSpace="nowrap",pe.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(pe),this.addActionButton(pe,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(pe,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},ue.prototype.addButtonClickListener=function(ie){this.buttonClickListeners.push(ie)},ue.prototype.removeButtonClickListener=function(ie){this.buttonClickListeners.indexOf(ie)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ie),1)},ue.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ue.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var ie=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var re=0;re<this.markerButtons.length;re++)re<ie||re===ie&&this.markerButtons.length-1===ie?this.markerButtonBlock.appendChild(this.markerButtons[re]):(re===ie&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[re]))}},ue.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},ue.prototype.resetButtonStyles=function(){var ie=this;this.buttons.forEach(function(re){re.className=re.className.replace(ie.uiStyleSettings.toolbarButtonStyleColorsClassName?ie.uiStyleSettings.toolbarButtonStyleColorsClassName:ie.toolbarButtonStyleColorsClass.name,"").trim(),re.className=re.className.replace(ie.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?ie.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:ie.toolbarActiveButtonStyleColorsClass.name,"").trim(),re.className+=" "+(ie.uiStyleSettings.toolbarButtonStyleColorsClassName?ie.uiStyleSettings.toolbarButtonStyleColorsClassName:ie.toolbarButtonStyleColorsClass.name)})},ue.prototype.addActionButton=function(ie,re,oe){var pe=this,ae=document.createElement("div");switch(ae.className=""+this.toolbarButtonStyleClass.name,ae.innerHTML=re,ae.setAttribute("data-action",oe),ae.addEventListener("click",function(){pe.actionToolbarButtonClicked(ae,oe)}),oe){case"select":ae.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":ae.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":ae.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":ae.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":ae.style.fill=this.uiStyleSettings.closeButtonColor}ie.appendChild(ae),this.buttons.push(ae)},ue.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Oe("toolbar",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-between;
|
|
|
height: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolbarStyleColorsClass=this.styles.addClass(new Oe("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Oe("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Oe("toolbar-overflow-block",`
|
|
|
position: absolute;
|
|
|
top: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
z-index: 10;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new Oe("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var ie=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Oe("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*ie)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*ie)+`px;
|
|
|
padding: `+ie+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Oe("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Oe("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new $e("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new $e("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},ue.prototype.markerToolbarButtonClicked=function(ie,re){this.setActiveButton(ie),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("marker",re)}),this.markerButtonOverflowBlock.style.display="none"},ue.prototype.actionToolbarButtonClicked=function(ie,re){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("action",re)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ue.prototype.setActiveButton=function(ie){this.resetButtonStyles(),ie.className=ie.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),ie.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ue.prototype.setActiveMarkerButton=function(ie){var re=this.markerButtons.find(function(oe){return oe.getAttribute("data-type-name")===ie});re&&this.setActiveButton(re)},ue.prototype.setCurrentMarker=function(ie){var re=this;this.currentMarker=ie,this.buttons.filter(function(oe){return/delete|notes/.test(oe.getAttribute("data-action"))}).forEach(function(oe){re.currentMarker===void 0?(oe.style.fillOpacity="0.4",oe.style.pointerEvents="none"):(oe.style.fillOpacity="1",oe.style.pointerEvents="all")})},ue}(),Ke=function(){function ue(ie,re,oe,pe){this.panels=[],this.panelButtons=[],this.markerjsContainer=ie,this.displayMode=re,this.uiStyleSettings=oe,this.styles=pe,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ue.prototype.addStyles=function(){var ie;this.toolboxStyleClass=this.styles.addClass(new Oe("toolbox",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
font-family: sans-serif;
|
|
|
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolboxStyleColorsClass=this.styles.addClass(new Oe("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var re=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Oe("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Oe("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Oe("toolbox-panel-row",`
|
|
|
display: flex;
|
|
|
`+(this.displayMode==="inline"?"position: absolute;":"")+`
|
|
|
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
cursor: default;
|
|
|
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
`+(this.displayMode==="inline"?"width: 100%;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new Oe("toolbox-panel-row_colors",`
|
|
|
background-color: `+((ie=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ie!==void 0?ie:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Oe("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*re)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*re)+`px;
|
|
|
padding: `+re+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Oe("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Oe("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new $e("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new $e("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},ue.prototype.show=function(ie){var re;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ie,this.uiContainer.className=this.toolboxStyleClass.name+" "+((re=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&re!==void 0?re:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ue.prototype.setPanelButtons=function(ie){var re,oe,pe=this;this.panels=ie,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((re=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&re!==void 0?re:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((oe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&oe!==void 0?oe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ae){var me;ae.uiStyleSettings=pe.uiStyleSettings;var Ze=document.createElement("div");Ze.className=pe.toolboxButtonStyleClass.name+" "+((me=pe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&me!==void 0?me:pe.toolboxButtonStyleColorsClass.name),Ze.innerHTML=ae.icon,Ze.title=ae.title,Ze.addEventListener("click",function(){pe.panelButtonClick(ae)}),pe.panelButtons.push(Ze),pe.buttonRow.appendChild(Ze)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ue.prototype.panelButtonClick=function(ie){var re=this,oe=-1;if(ie!==this.activePanel){oe=this.panels.indexOf(ie),this.panelRow.innerHTML="";var pe=ie.getUi();pe.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(pe),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=ie}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){re.displayMode==="inline"?re.panelRow.style.display="none":re.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ae,me){var Ze,Ot;ae.className=re.toolboxButtonStyleClass.name+" "+(me===oe?""+((Ze=re.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ze!==void 0?Ze:re.toolboxActiveButtonStyleColorsClass.name):""+((Ot=re.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ot!==void 0?Ot:re.toolboxButtonStyleColorsClass.name))})},ue}(),Te=function(ue,ie){this.title=ue,this.icon=ie},we=function(ue){function ie(re,oe,pe,ae){var me=ue.call(this,re,ae||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return me.colors=[],me.addTransparent=!1,me.colorBoxes=[],me.colors=oe,me.currentColor=pe,me.setCurrentColor=me.setCurrentColor.bind(me),me.getColorBox=me.getColorBox.bind(me),me}return ve(ie,ue),ie.prototype.getUi=function(){var re=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(pe){var ae=re.getColorBox(pe);oe.appendChild(ae),re.colorBoxes.push(ae)}),oe},ie.prototype.getColorBox=function(re){var oe=this,pe=this.uiStyleSettings.toolbarHeight/4,ae=this.uiStyleSettings.toolbarHeight-pe,me=document.createElement("div");me.style.display="inline-block",me.style.boxSizing="content-box",me.style.width=ae-2+"px",me.style.height=ae-2+"px",me.style.padding="1px",me.style.marginRight="2px",me.style.marginBottom="2px",me.style.borderWidth="2px",me.style.borderStyle="solid",me.style.borderRadius=(ae+2)/2+"px",me.style.borderColor=re===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",me.addEventListener("click",function(){oe.setCurrentColor(re,me)});var Ze=document.createElement("div");return Ze.style.display="inline-block",Ze.style.width=ae-2+"px",Ze.style.height=ae-2+"px",Ze.style.backgroundColor=re,Ze.style.borderRadius=ae/2+"px",re==="transparent"&&(Ze.style.fill=this.uiStyleSettings.toolboxAccentColor,Ze.innerHTML=`<svg viewBox="0 0 24 24">
|
|
|
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
|
|
|
</svg>`),me.appendChild(Ze),me},ie.prototype.setCurrentColor=function(re,oe){var pe=this;this.currentColor=re,this.colorBoxes.forEach(function(ae){ae.style.borderColor=ae===oe?pe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(re)},ie}(Te),Ie=function(){function ue(ie,re,oe){this._state="new",this._isSelected=!1,this._container=ie,this._overlayContainer=re,this.globalSettings=oe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ue.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ue.prototype.ownsTarget=function(ie){return!1},Object.defineProperty(ue.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ue.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ue.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ue.prototype.pointerDown=function(ie,re){},ue.prototype.dblClick=function(ie,re){},ue.prototype.manipulate=function(ie){},ue.prototype.pointerUp=function(ie){this.stateChanged()},ue.prototype.dispose=function(){},ue.prototype.addMarkerVisualToContainer=function(ie){this.container.childNodes.length>0?this.container.insertBefore(ie,this.container.childNodes[0]):this.container.appendChild(ie)},ue.prototype.getState=function(){return{typeName:ue.typeName,state:this.state,notes:this.notes}},ue.prototype.restoreState=function(ie){this._state=ie.state,this.notes=ie.notes},ue.prototype.scale=function(ie,re){},ue.prototype.colorChanged=function(ie){this.onColorChanged&&this.onColorChanged(ie),this.stateChanged()},ue.prototype.fillColorChanged=function(ie){this.onFillColorChanged&&this.onFillColorChanged(ie),this.stateChanged()},ue.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var ie=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),ie.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(ie)&&this.onStateChanged(this)}},ue.typeName="MarkerBase",ue}(),Pe=function(){function ue(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ue.prototype.findGripByVisual=function(ie){return this.topLeft.ownsTarget(ie)?this.topLeft:this.topCenter.ownsTarget(ie)?this.topCenter:this.topRight.ownsTarget(ie)?this.topRight:this.centerLeft.ownsTarget(ie)?this.centerLeft:this.centerRight.ownsTarget(ie)?this.centerRight:this.bottomLeft.ownsTarget(ie)?this.bottomLeft:this.bottomCenter.ownsTarget(ie)?this.bottomCenter:this.bottomRight.ownsTarget(ie)?this.bottomRight:void 0},ue}(),tt=function(){function ue(){this.GRIP_SIZE=10,this.visual=ge.createGroup(),this.visual.appendChild(ge.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ge.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ue.prototype.ownsTarget=function(ie){return ie===this.visual||ie===this.visual.childNodes[0]||ie===this.visual.childNodes[1]},ue}(),Et=function(){function ue(){}return ue.toITransformMatrix=function(ie){return{a:ie.a,b:ie.b,c:ie.c,d:ie.d,e:ie.e,f:ie.f}},ue.toSVGMatrix=function(ie,re){return ie.a=re.a,ie.b=re.b,ie.c=re.c,ie.d=re.d,ie.e=re.e,ie.f=re.f,ie},ue}(),_e=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,oe,pe)||this;return ae.left=0,ae.top=0,ae.width=0,ae.height=0,ae.defaultSize={x:50,y:20},ae.offsetX=0,ae.offsetY=0,ae.rotationAngle=0,ae.CB_DISTANCE=10,ae._suppressMarkerCreateEvent=!1,ae.container.transform.baseVal.appendItem(ge.createTransform()),ae.setupControlBox(),ae}return ve(ie,ue),Object.defineProperty(ie.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"visual",{get:function(){return this._visual},set:function(re){this._visual=re;var oe=ge.createTransform();this._visual.transform.baseVal.appendItem(oe)},enumerable:!1,configurable:!0}),ie.prototype.ownsTarget=function(re){return!!ue.prototype.ownsTarget.call(this,re)||!!(this.controlGrips.findGripByVisual(re)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(re))},ie.prototype.pointerDown=function(re,oe){ue.prototype.pointerDown.call(this,re,oe),this.state==="new"&&(this.left=re.x,this.top=re.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var pe=this.unrotatePoint(re);if(this.manipulationStartX=pe.x,this.manipulationStartY=pe.y,this.offsetX=pe.x-this.left,this.offsetY=pe.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(oe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(oe)){this.activeGrip=this.rotatorGrip;var ae=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ae.x-this.width/2,this.top=ae.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var me=this.container.transform.baseVal.getItem(0);me.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(me,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},ie.prototype.pointerUp=function(re){var oe=this.state;ue.prototype.pointerUp.call(this,re),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(re),this._state="select",oe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},ie.prototype.moveVisual=function(re){this.visual.style.transform="translate("+re.x+"px, "+re.y+"px)"},ie.prototype.manipulate=function(re){var oe=this.unrotatePoint(re);this.state==="creating"?this.resize(re):this.state==="move"?(this.left=this.manipulationStartLeft+(oe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(oe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(oe):this.state==="rotate"&&this.rotate(re)},ie.prototype.resize=function(re){var oe=this.manipulationStartLeft,pe=this.manipulationStartWidth,ae=this.manipulationStartTop,me=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+re.x-this.manipulationStartX,pe=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:pe=this.manipulationStartWidth+re.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ae=this.manipulationStartTop+re.y-this.manipulationStartY,me=this.manipulationStartHeight+this.manipulationStartTop-ae;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:me=this.manipulationStartHeight+re.y-this.manipulationStartY}pe>=0?(this.left=oe,this.width=pe):(this.left=oe+pe,this.width=-pe),me>=0?(this.top=ae,this.height=me):(this.top=ae+me,this.height=-me),this.setSize()},ie.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},ie.prototype.rotate=function(re){if(Math.abs(re.x-this.centerX)>.1){var oe=Math.sign(re.x-this.centerX);this.rotationAngle=180*Math.atan((re.y-this.centerY)/(re.x-this.centerX))/Math.PI+90*oe,this.applyRotation()}},ie.prototype.applyRotation=function(){var re=this.container.transform.baseVal.getItem(0);re.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(re,0)},ie.prototype.rotatePoint=function(re){if(this.rotationAngle===0)return re;var oe=this.container.getCTM(),pe=ge.createPoint(re.x,re.y);return{x:(pe=pe.matrixTransform(oe)).x,y:pe.y}},ie.prototype.unrotatePoint=function(re){if(this.rotationAngle===0)return re;var oe=this.container.getCTM();oe=oe.inverse();var pe=ge.createPoint(re.x,re.y);return{x:(pe=pe.matrixTransform(oe)).x,y:pe.y}},ie.prototype.select=function(){ue.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ie.prototype.deselect=function(){ue.prototype.deselect.call(this),this.controlBox.style.display="none"},ie.prototype.setupControlBox=function(){this.controlBox=ge.createGroup();var re=ge.createTransform();re.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(re),this.container.appendChild(this.controlBox),this.controlRect=ge.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=ge.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Pe,this.addControlGrips(),this.controlBox.style.display="none"},ie.prototype.adjustControlBox=function(){var re=this.controlBox.transform.baseVal.getItem(0);re.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(re,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},ie.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},ie.prototype.createGrip=function(){var re=new tt;return re.visual.transform.baseVal.appendItem(ge.createTransform()),this.controlBox.appendChild(re.visual),re},ie.prototype.positionGrips=function(){var re=this.controlGrips.topLeft.GRIP_SIZE,oe=-re/2,pe=oe,ae=(this.width+this.CB_DISTANCE)/2-re/2,me=(this.height+this.CB_DISTANCE)/2-re/2,Ze=this.height+this.CB_DISTANCE-re/2,Ot=this.width+this.CB_DISTANCE-re/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,pe),this.positionGrip(this.controlGrips.topCenter.visual,ae,pe),this.positionGrip(this.controlGrips.topRight.visual,Ot,pe),this.positionGrip(this.controlGrips.centerLeft.visual,oe,me),this.positionGrip(this.controlGrips.centerRight.visual,Ot,me),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,Ze),this.positionGrip(this.controlGrips.bottomCenter.visual,ae,Ze),this.positionGrip(this.controlGrips.bottomRight.visual,Ot,Ze),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ae,pe-3*this.CB_DISTANCE)},ie.prototype.positionGrip=function(re,oe,pe){var ae=re.transform.baseVal.getItem(0);ae.setTranslate(oe,pe),re.transform.baseVal.replaceItem(ae,0)},ie.prototype.hideControlBox=function(){this.controlBox.style.display="none"},ie.prototype.showControlBox=function(){this.controlBox.style.display=""},ie.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Et.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Et.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ue.prototype.getState.call(this))},ie.prototype.restoreState=function(re){ue.prototype.restoreState.call(this,re);var oe=re;this.left=oe.left,this.top=oe.top,this.width=oe.width,this.height=oe.height,this.rotationAngle=oe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Et.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Et.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},ie.prototype.scale=function(re,oe){ue.prototype.scale.call(this,re,oe);var pe=this.rotatePoint({x:this.left,y:this.top}),ae=this.unrotatePoint({x:pe.x*re,y:pe.y*oe});this.left=ae.x,this.top=ae.y,this.width=this.width*re,this.height=this.height*oe,this.adjustControlBox()},ie}(Ie),Fe=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,oe,pe)||this;return ae.fillColor="transparent",ae.strokeColor="transparent",ae.strokeWidth=0,ae.strokeDasharray="",ae.opacity=1,ae.setStrokeColor=ae.setStrokeColor.bind(ae),ae.setFillColor=ae.setFillColor.bind(ae),ae.setStrokeWidth=ae.setStrokeWidth.bind(ae),ae.setStrokeDasharray=ae.setStrokeDasharray.bind(ae),ae.createVisual=ae.createVisual.bind(ae),ae}return ve(ie,ue),ie.prototype.ownsTarget=function(re){return!(!ue.prototype.ownsTarget.call(this,re)&&re!==this.visual)},ie.prototype.createVisual=function(){this.visual=ge.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},ie.prototype.pointerDown=function(re,oe){ue.prototype.pointerDown.call(this,re,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(re),this._state="creating")},ie.prototype.manipulate=function(re){ue.prototype.manipulate.call(this,re)},ie.prototype.resize=function(re){ue.prototype.resize.call(this,re),this.setSize()},ie.prototype.setSize=function(){ue.prototype.setSize.call(this),ge.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ie.prototype.pointerUp=function(re){ue.prototype.pointerUp.call(this,re),this.setSize()},ie.prototype.setStrokeColor=function(re){this.strokeColor=re,this.visual&&ge.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(re),this.stateChanged()},ie.prototype.setFillColor=function(re){this.fillColor=re,this.visual&&ge.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ie.prototype.setStrokeWidth=function(re){this.strokeWidth=re,this.visual&&ge.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ie.prototype.setStrokeDasharray=function(re){this.strokeDasharray=re,this.visual&&ge.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ie.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ue.prototype.getState.call(this))},ie.prototype.restoreState=function(re){var oe=re;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),ue.prototype.restoreState.call(this,re),this.setSize()},ie.prototype.scale=function(re,oe){ue.prototype.scale.call(this,re,oe),this.setSize()},ie.title="Rectangle marker",ie}(_e),He=function(ue){function ie(re,oe,pe,ae){var me=ue.call(this,re,ae||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return me.widths=[],me.widthBoxes=[],me.widths=oe,me.currentWidth=pe,me.setCurrentWidth=me.setCurrentWidth.bind(me),me}return ve(ie,ue),ie.prototype.getUi=function(){var re=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.widths.forEach(function(pe){var ae=document.createElement("div");ae.style.display="flex",ae.style.flexGrow="2",ae.style.alignItems="center",ae.style.justifyContent="space-between",ae.style.padding="5px",ae.style.borderWidth="2px",ae.style.borderStyle="solid",ae.style.borderColor=pe===re.currentWidth?re.uiStyleSettings.toolboxAccentColor:"transparent",ae.addEventListener("click",function(){re.setCurrentWidth(pe,ae)}),oe.appendChild(ae);var me=document.createElement("div");me.innerText=pe.toString(),me.style.marginRight="5px",ae.appendChild(me);var Ze=document.createElement("div");Ze.style.minHeight="20px",Ze.style.flexGrow="2",Ze.style.display="flex",Ze.style.alignItems="center";var Ot=document.createElement("hr");Ot.style.minWidth="20px",Ot.style.border="0px",Ot.style.borderTop=pe+"px solid "+re.uiStyleSettings.toolboxColor,Ot.style.flexGrow="2",Ze.appendChild(Ot),ae.appendChild(Ze),re.widthBoxes.push(ae)}),oe},ie.prototype.setCurrentWidth=function(re,oe){var pe=this;this.currentWidth=re,this.widthBoxes.forEach(function(ae){ae.style.borderColor=ae===oe?pe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ie}(Te),Xe=function(ue){function ie(re,oe,pe,ae){var me=ue.call(this,re,ae||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return me.styles=[],me.styleBoxes=[],me.styles=oe,me.currentStyle=pe,me.setCurrentStyle=me.setCurrentStyle.bind(me),me}return ve(ie,ue),ie.prototype.getUi=function(){var re=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.styles.forEach(function(pe){var ae=document.createElement("div");ae.style.display="flex",ae.style.alignItems="center",ae.style.justifyContent="space-between",ae.style.padding="5px",ae.style.borderWidth="2px",ae.style.borderStyle="solid",ae.style.overflow="hidden",ae.style.maxWidth=100/re.styles.length-5+"%",ae.style.borderColor=pe===re.currentStyle?re.uiStyleSettings.toolboxAccentColor:"transparent",ae.addEventListener("click",function(){re.setCurrentStyle(pe,ae)}),oe.appendChild(ae);var me=document.createElement("div");me.style.minHeight="20px",me.style.flexGrow="2",me.style.overflow="hidden";var Ze=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+re.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(pe!==""?'stroke-dasharray="'+pe+'"':"")+` />
|
|
|
</svg>`;me.innerHTML=Ze,ae.appendChild(me),re.styleBoxes.push(ae)}),oe},ie.prototype.setCurrentStyle=function(re,oe){var pe=this;this.currentStyle=re,this.styleBoxes.forEach(function(ae){ae.style.borderColor=ae===oe?pe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ie}(Te),St=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,oe,pe)||this;return ae.strokeColor=pe.defaultColor,ae.strokeWidth=pe.defaultStrokeWidth,ae.strokeDasharray=pe.defaultStrokeDasharray,ae.strokePanel=new we("Line color",pe.defaultColorSet,pe.defaultColor),ae.strokePanel.onColorChanged=ae.setStrokeColor,ae.strokeWidthPanel=new He("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),ae.strokeWidthPanel.onWidthChanged=ae.setStrokeWidth,ae.strokeStylePanel=new Xe("Line style",pe.defaultStrokeDasharrays,pe.defaultStrokeDasharray),ae.strokeStylePanel.onStyleChanged=ae.setStrokeDasharray,ae}return ve(ie,ue),Object.defineProperty(ie.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ie.prototype.getState=function(){var re=ue.prototype.getState.call(this);return re.typeName=ie.typeName,re},ie.typeName="FrameMarker",ie.title="Frame marker",ie.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',ie}(Fe),gt=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},ot=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,oe,pe)||this;return ae.x1=0,ae.y1=0,ae.x2=0,ae.y2=0,ae.defaultLength=50,ae.manipulationStartX=0,ae.manipulationStartY=0,ae.manipulationStartX1=0,ae.manipulationStartY1=0,ae.manipulationStartX2=0,ae.manipulationStartY2=0,ae.setupControlBox(),ae}return ve(ie,ue),ie.prototype.ownsTarget=function(re){return!!ue.prototype.ownsTarget.call(this,re)||!(!this.grip1.ownsTarget(re)&&!this.grip2.ownsTarget(re))},ie.prototype.pointerDown=function(re,oe){ue.prototype.pointerDown.call(this,re,oe),this.manipulationStartX=re.x,this.manipulationStartY=re.y,this.state==="new"&&(this.x1=re.x,this.y1=re.y,this.x2=re.x,this.y2=re.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(oe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(oe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},ie.prototype.pointerUp=function(re){var oe=this.state;ue.prototype.pointerUp.call(this,re),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(re),this._state="select",oe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},ie.prototype.adjustVisual=function(){},ie.prototype.manipulate=function(re){this.state==="creating"?this.resize(re):this.state==="move"?(this.x1=this.manipulationStartX1+re.x-this.manipulationStartX,this.y1=this.manipulationStartY1+re.y-this.manipulationStartY,this.x2=this.manipulationStartX2+re.x-this.manipulationStartX,this.y2=this.manipulationStartY2+re.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(re)},ie.prototype.resize=function(re){switch(this.activeGrip){case this.grip1:this.x1=re.x,this.y1=re.y;break;case this.grip2:case void 0:this.x2=re.x,this.y2=re.y}this.adjustVisual(),this.adjustControlBox()},ie.prototype.select=function(){ue.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ie.prototype.deselect=function(){ue.prototype.deselect.call(this),this.controlBox.style.display="none"},ie.prototype.setupControlBox=function(){this.controlBox=ge.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},ie.prototype.adjustControlBox=function(){this.positionGrips()},ie.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},ie.prototype.createGrip=function(){var re=new tt;return re.visual.transform.baseVal.appendItem(ge.createTransform()),this.controlBox.appendChild(re.visual),re},ie.prototype.positionGrips=function(){var re=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-re/2,this.y1-re/2),this.positionGrip(this.grip2.visual,this.x2-re/2,this.y2-re/2)},ie.prototype.positionGrip=function(re,oe,pe){var ae=re.transform.baseVal.getItem(0);ae.setTranslate(oe,pe),re.transform.baseVal.replaceItem(ae,0)},ie.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ue.prototype.getState.call(this))},ie.prototype.restoreState=function(re){ue.prototype.restoreState.call(this,re);var oe=re;this.x1=oe.x1,this.y1=oe.y1,this.x2=oe.x2,this.y2=oe.y2},ie.prototype.scale=function(re,oe){ue.prototype.scale.call(this,re,oe),this.x1=this.x1*re,this.y1=this.y1*oe,this.x2=this.x2*re,this.y2=this.y2*oe,this.adjustVisual(),this.adjustControlBox()},ie}(Ie),Ue=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,oe,pe)||this;return ae.strokeColor="transparent",ae.strokeWidth=0,ae.strokeDasharray="",ae.setStrokeColor=ae.setStrokeColor.bind(ae),ae.setStrokeWidth=ae.setStrokeWidth.bind(ae),ae.setStrokeDasharray=ae.setStrokeDasharray.bind(ae),ae.strokeColor=pe.defaultColor,ae.strokeWidth=pe.defaultStrokeWidth,ae.strokeDasharray=pe.defaultStrokeDasharray,ae.strokePanel=new we("Line color",pe.defaultColorSet,pe.defaultColor),ae.strokePanel.onColorChanged=ae.setStrokeColor,ae.strokeWidthPanel=new He("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),ae.strokeWidthPanel.onWidthChanged=ae.setStrokeWidth,ae.strokeStylePanel=new Xe("Line style",pe.defaultStrokeDasharrays,pe.defaultStrokeDasharray),ae.strokeStylePanel.onStyleChanged=ae.setStrokeDasharray,ae}return ve(ie,ue),ie.prototype.ownsTarget=function(re){return!(!ue.prototype.ownsTarget.call(this,re)&&re!==this.visual&&re!==this.selectorLine&&re!==this.visibleLine)},ie.prototype.createVisual=function(){this.visual=ge.createGroup(),this.selectorLine=ge.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ge.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},ie.prototype.pointerDown=function(re,oe){ue.prototype.pointerDown.call(this,re,oe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},ie.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),ge.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ge.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ge.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ie.prototype.setStrokeColor=function(re){this.strokeColor=re,this.adjustVisual(),this.colorChanged(re)},ie.prototype.setStrokeWidth=function(re){this.strokeWidth=re,this.adjustVisual()},ie.prototype.setStrokeDasharray=function(re){this.strokeDasharray=re,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ie.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ie.prototype.getState=function(){var re=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ue.prototype.getState.call(this));return re.typeName=ie.typeName,re},ie.prototype.restoreState=function(re){ue.prototype.restoreState.call(this,re);var oe=re;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.createVisual(),this.adjustVisual()},ie.typeName="LineMarker",ie.title="Line marker",ie.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',ie}(ot),Ee=function(ue){function ie(re,oe,pe,ae){var me=ue.call(this,re,ae||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return me.fonts=[],me.fontBoxes=[],me.fonts=oe,me.currentFont=pe,me.setCurrentFont=me.setCurrentFont.bind(me),me}return ve(ie,ue),ie.prototype.getUi=function(){var re=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(pe){var ae=document.createElement("div");ae.style.display="inline-block",ae.style.alignItems="center",ae.style.justifyContent="space-between",ae.style.padding="5px",ae.style.borderWidth="2px",ae.style.borderStyle="solid",ae.style.overflow="hidden",ae.style.maxWidth=100/re.fonts.length-5+"%",ae.style.borderColor=pe===re.currentFont?re.uiStyleSettings.toolboxAccentColor:"transparent",ae.addEventListener("click",function(){re.setCurrentFont(pe,ae)}),oe.appendChild(ae);var me=document.createElement("div");me.style.display="flex",me.style.minHeight="20px",me.style.flexGrow="2",me.style.fontFamily=pe,me.style.overflow="hidden";var Ze=document.createElement("div");Ze.style.whiteSpace="nowrap",Ze.style.overflow="hidden",Ze.style.textOverflow="ellipsis",Ze.innerHTML="The quick brown fox jumps over the lazy dog",me.appendChild(Ze),ae.appendChild(me),re.fontBoxes.push(ae)}),oe},ie.prototype.setCurrentFont=function(re,oe){var pe=this;this.currentFont=re,this.fontBoxes.forEach(function(ae){ae.style.borderColor=ae===oe?pe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ie}(Te),We=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,oe,pe)||this;return ae.color="transparent",ae.padding=5,ae.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",ae.text=ae.DEFAULT_TEXT,ae.isMoved=!1,ae.color=pe.defaultColor,ae.fontFamily=pe.defaultFontFamily,ae.defaultSize={x:100,y:30},ae.setColor=ae.setColor.bind(ae),ae.setFont=ae.setFont.bind(ae),ae.renderText=ae.renderText.bind(ae),ae.sizeText=ae.sizeText.bind(ae),ae.textEditDivClicked=ae.textEditDivClicked.bind(ae),ae.showTextEditor=ae.showTextEditor.bind(ae),ae.setSize=ae.setSize.bind(ae),ae.positionTextEditor=ae.positionTextEditor.bind(ae),ae.colorPanel=new we("Color",pe.defaultColorSet,pe.defaultColor),ae.colorPanel.onColorChanged=ae.setColor,ae.fontFamilyPanel=new Ee("Font",pe.defaultFontFamilies,pe.defaultFontFamily),ae.fontFamilyPanel.onFontChanged=ae.setFont,ae}return ve(ie,ue),ie.prototype.ownsTarget=function(re){if(ue.prototype.ownsTarget.call(this,re)||re===this.visual||re===this.textElement||re===this.bgRectangle)return!0;var oe=!1;return this.textElement.childNodes.forEach(function(pe){pe===re&&(oe=!0)}),oe},ie.prototype.createVisual=function(){this.visual=ge.createGroup(),this.bgRectangle=ge.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ge.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ge.createTransform()),this.textElement.transform.baseVal.appendItem(ge.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},ie.prototype.pointerDown=function(re,oe){ue.prototype.pointerDown.call(this,re,oe),this.isMoved=!1,this.pointerDownPoint=re,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(re),this._state="creating")},ie.prototype.renderText=function(){var re=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(oe){re.textElement.appendChild(ge.createTSpan(oe.trim()===""?" ":oe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ie.prototype.getTextScale=function(){var re=this.textElement.getBBox(),oe=1;if(re.width>0&&re.height>0){var pe=(1*this.width-this.width*this.padding*2/100)/re.width,ae=(1*this.height-this.height*this.padding*2/100)/re.height;oe=Math.min(pe,ae)}return oe},ie.prototype.getTextPosition=function(re){var oe=this.textElement.getBBox(),pe=0,ae=0;return oe.width>0&&oe.height>0&&(pe=(this.width-oe.width*re)/2,ae=this.height/2-oe.height*re/2),{x:pe,y:ae}},ie.prototype.sizeText=function(){var re=this.textElement.getBBox(),oe=this.getTextScale(),pe=this.getTextPosition(oe);pe.y-=re.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+pe.x+"px, "+pe.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(pe.x,pe.y),this.textElement.transform.baseVal.getItem(1).setScale(oe,oe))},ie.prototype.manipulate=function(re){ue.prototype.manipulate.call(this,re),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(re.x-this.pointerDownPoint.x)>5||Math.abs(re.y-this.pointerDownPoint.y)>5)},ie.prototype.resize=function(re){ue.prototype.resize.call(this,re),this.isMoved=!0,this.setSize(),this.sizeText()},ie.prototype.setSize=function(){ue.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(ge.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ge.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},ie.prototype.pointerUp=function(re){var oe=this.state;oe==="creating"&&(this._suppressMarkerCreateEvent=!0),ue.prototype.pointerUp.call(this,re),this.setSize(),(oe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},ie.prototype.showTextEditor=function(){var re=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(oe){oe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var oe=Number.parseFloat(re.textEditor.style.fontSize);re.textEditor.clientWidth>=Number.parseInt(re.textEditor.style.maxWidth)&&oe>.9;)oe-=.1,re.textEditor.style.fontSize=Math.max(oe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(oe){if(oe.clipboardData){var pe=oe.clipboardData.getData("text"),ae=window.getSelection();if(!ae.rangeCount)return!1;ae.deleteFromDocument(),ae.getRangeAt(0).insertNode(document.createTextNode(pe)),oe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){re.textEditDivClicked(re.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},ie.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var re=this.getTextScale(),oe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),pe=this.textElement.getBBox(),ae={x:pe.width*re,y:pe.height*re};oe.x-=ae.x/2,oe.y-=ae.y/2,this.textEditor.style.top=oe.y+"px",this.textEditor.style.left=oe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-oe.x+"px",this.textEditor.style.fontSize=Math.max(16*re,12)+"px",this.textElement.style.display="none"}},ie.prototype.textEditDivClicked=function(re){this.text=re.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},ie.prototype.select=function(){ue.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ie.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ue.prototype.deselect.call(this)},ie.prototype.dblClick=function(re,oe){ue.prototype.dblClick.call(this,re,oe),this.showTextEditor()},ie.prototype.setColor=function(re){this.textElement&&ge.setAttributes(this.textElement,[["fill",re]]),this.color=re,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(re)},ie.prototype.setFont=function(re){this.textElement&&ge.setAttributes(this.textElement,[["font-family",re]]),this.fontFamily=re,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},ie.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},ie.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(ie.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ie.prototype.getState=function(){var re=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ue.prototype.getState.call(this));return re.typeName=ie.typeName,re},ie.prototype.restoreState=function(re){var oe=re;this.color=oe.color,this.fontFamily=oe.fontFamily,this.padding=oe.padding,this.text=oe.text,this.createVisual(),ue.prototype.restoreState.call(this,re),this.setSize()},ie.prototype.scale=function(re,oe){ue.prototype.scale.call(this,re,oe),this.setSize(),this.sizeText(),this.positionTextEditor()},ie.typeName="TextMarker",ie.title="Text marker",ie.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',ie}(_e),Ae=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,oe,pe)||this;return ae.color="transparent",ae.lineWidth=3,ae.drawing=!1,ae.pixelRatio=1,ae.color=pe.defaultColor,ae.lineWidth=pe.defaultStrokeWidth,ae.pixelRatio=pe.freehandPixelRatio,ae.setColor=ae.setColor.bind(ae),ae.addCanvas=ae.addCanvas.bind(ae),ae.finishCreation=ae.finishCreation.bind(ae),ae.setLineWidth=ae.setLineWidth.bind(ae),ae.colorPanel=new we("Color",pe.defaultColorSet,pe.defaultColor),ae.colorPanel.onColorChanged=ae.setColor,ae.lineWidthPanel=new He("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),ae.lineWidthPanel.onWidthChanged=ae.setLineWidth,ae}return ve(ie,ue),ie.prototype.ownsTarget=function(re){return!(!ue.prototype.ownsTarget.call(this,re)&&re!==this.visual&&re!==this.drawingImage)},ie.prototype.createVisual=function(){this.visual=ge.createGroup(),this.drawingImage=ge.createImage(),this.visual.appendChild(this.drawingImage);var re=ge.createTransform();this.visual.transform.baseVal.appendItem(re),this.addMarkerVisualToContainer(this.visual)},ie.prototype.pointerDown=function(re,oe){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(re.x,re.y),this.drawing=!0):ue.prototype.pointerDown.call(this,re,oe)},ie.prototype.manipulate=function(re){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(re.x,re.y),this.canvasContext.stroke()):ue.prototype.manipulate.call(this,re)},ie.prototype.resize=function(re){ue.prototype.resize.call(this,re),ge.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ge.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},ie.prototype.pointerUp=function(re){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ue.prototype.pointerUp.call(this,re)},ie.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},ie.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ue.prototype.select.call(this)},ie.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ue.prototype.deselect.call(this)},ie.prototype.finishCreation=function(){for(var re=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),oe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],pe=oe[0],ae=oe[1],me=oe[2],Ze=oe[3],Ot=!1,at=0;at<this.canvasElement.height;at++)for(var qe=0;qe<this.canvasElement.width;qe++)re.data[at*this.canvasElement.width*4+4*qe+3]>0&&(Ot=!0,at<ae&&(ae=at),qe<pe&&(pe=qe),at>Ze&&(Ze=at),qe>me&&(me=qe));if(Ot){this.left=pe/this.pixelRatio,this.top=ae/this.pixelRatio,this.width=(me-pe)/this.pixelRatio,this.height=(Ze-ae)/this.pixelRatio;var bt=document.createElement("canvas");bt.width=me-pe,bt.height=Ze-ae,bt.getContext("2d").putImageData(this.canvasContext.getImageData(pe,ae,me-pe,Ze-ae),0,0),this.drawingImgUrl=bt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ie.prototype.setDrawingImage=function(){ge.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ge.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},ie.prototype.setColor=function(re){this.color=re,this.colorChanged(re)},ie.prototype.setLineWidth=function(re){this.lineWidth=re},Object.defineProperty(ie.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),ie.prototype.getState=function(){var re=Object.assign({drawingImgUrl:this.drawingImgUrl},ue.prototype.getState.call(this));return re.typeName=ie.typeName,re},ie.prototype.restoreState=function(re){this.createVisual(),ue.prototype.restoreState.call(this,re),this.drawingImgUrl=re.drawingImgUrl,this.setDrawingImage()},ie.prototype.scale=function(re,oe){ue.prototype.scale.call(this,re,oe),this.setDrawingImage()},ie.typeName="FreehandMarker",ie.title="Freehand marker",ie.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',ie}(_e),de=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,pe||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return ae.typeBoxes=[],ae.currentType=oe,ae.setCurrentType=ae.setCurrentType.bind(ae),ae}return ve(ie,ue),ie.prototype.getUi=function(){var re=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var pe=function(Ze){var Ot="both";switch(Ze){case 0:Ot="both";break;case 1:Ot="start";break;case 2:Ot="end";break;case 3:Ot="none"}var at=document.createElement("div");if(at.style.display="flex",at.style.flexGrow="2",at.style.alignItems="center",at.style.justifyContent="space-between",at.style.padding="5px",at.style.borderWidth="2px",at.style.borderStyle="solid",at.style.borderColor=Ot===ae.currentType?ae.uiStyleSettings.toolboxAccentColor:"transparent",at.addEventListener("click",function(){re.setCurrentType(Ot,at)}),oe.appendChild(at),Ot==="both"||Ot==="start"){var qe=document.createElement("div");qe.style.display="flex",qe.style.alignItems="center",qe.style.minHeight="20px",qe.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,5 10,0 10,10" fill="`+(ae.uiStyleSettings!==void 0?ae.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,qe.style.marginLeft="5px",at.appendChild(qe)}var bt=document.createElement("div");bt.style.display="flex",bt.style.alignItems="center",bt.style.minHeight="20px",bt.style.flexGrow="2";var At=document.createElement("hr");if(At.style.minWidth="20px",At.style.border="0px",At.style.borderTop="3px solid "+(ae.uiStyleSettings!==void 0?ae.uiStyleSettings.toolboxColor:"#eeeeee"),At.style.flexGrow="2",bt.appendChild(At),at.appendChild(bt),Ot==="both"||Ot==="end"){var $t=document.createElement("div");$t.style.display="flex",$t.style.alignItems="center",$t.style.minHeight="20px",$t.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,0 10,5 0,10" fill="`+(ae.uiStyleSettings!==void 0?ae.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,$t.style.marginRight="5px",at.appendChild($t)}ae.typeBoxes.push(at)},ae=this,me=0;me<4;me++)pe(me);return oe},ie.prototype.setCurrentType=function(re,oe){var pe=this;this.currentType=re,this.typeBoxes.forEach(function(ae){ae.style.borderColor=ae===oe?pe.uiStyleSettings!==void 0?pe.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ie}(Te),wt=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,oe,pe)||this;return ae.arrowType="end",ae.arrowBaseHeight=10,ae.arrowBaseWidth=10,ae.getArrowPoints=ae.getArrowPoints.bind(ae),ae.setArrowType=ae.setArrowType.bind(ae),ae.arrowTypePanel=new de("Arrow type","end"),ae.arrowTypePanel.onArrowTypeChanged=ae.setArrowType,ae}return ve(ie,ue),ie.prototype.ownsTarget=function(re){return!(!ue.prototype.ownsTarget.call(this,re)&&re!==this.arrow1&&re!==this.arrow2)},ie.prototype.getArrowPoints=function(re,oe){var pe=this.arrowBaseWidth+2*this.strokeWidth,ae=this.arrowBaseHeight+2*this.strokeWidth;return re-pe/2+","+(oe+ae/2)+" "+re+","+(oe-ae/2)+" "+(re+pe/2)+","+(oe+ae/2)},ie.prototype.createTips=function(){this.arrow1=ge.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ge.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ge.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ge.createTransform()),this.visual.appendChild(this.arrow2)},ie.prototype.pointerDown=function(re,oe){ue.prototype.pointerDown.call(this,re,oe),this.state==="creating"&&this.createTips()},ie.prototype.adjustVisual=function(){if(ue.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",ge.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ge.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var re=0;Math.abs(this.x1-this.x2)>.1&&(re=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var oe=this.arrow1.transform.baseVal.getItem(0);oe.setRotate(re,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(oe,0);var pe=this.arrow2.transform.baseVal.getItem(0);pe.setRotate(re+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(pe,0)}},ie.prototype.setArrowType=function(re){this.arrowType=re,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ie.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),ie.prototype.getState=function(){var re=Object.assign({arrowType:this.arrowType},ue.prototype.getState.call(this));return re.typeName=ie.typeName,re},ie.prototype.restoreState=function(re){ue.prototype.restoreState.call(this,re);var oe=re;this.arrowType=oe.arrowType,this.createTips(),this.adjustVisual()},ie.typeName="ArrowMarker",ie.title="Arrow marker",ie.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',ie}(Ue),Qe=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,oe,pe)||this;return ae.fillColor=pe.defaultFillColor,ae.strokeWidth=0,ae.fillPanel=new we("Color",pe.defaultColorSet,pe.defaultFillColor),ae.fillPanel.onColorChanged=ae.setFillColor,ae}return ve(ie,ue),Object.defineProperty(ie.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ie.prototype.getState=function(){var re=ue.prototype.getState.call(this);return re.typeName=ie.typeName,re},ie.typeName="CoverMarker",ie.title="Cover marker",ie.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',ie}(Fe),Ge=function(ue){function ie(re,oe,pe,ae){var me=ue.call(this,re,ae||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return me.opacities=[],me.opacityBoxes=[],me.opacities=oe,me.currentOpacity=pe,me.setCurrentOpacity=me.setCurrentOpacity.bind(me),me}return ve(ie,ue),ie.prototype.getUi=function(){var re=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",oe.style.justifyContent="space-between",this.opacities.forEach(function(pe){var ae=document.createElement("div");ae.style.display="flex",ae.style.alignItems="center",ae.style.justifyContent="center",ae.style.padding="5px",ae.style.borderWidth="2px",ae.style.borderStyle="solid",ae.style.borderColor=pe===re.currentOpacity?re.uiStyleSettings.toolboxAccentColor:"transparent",ae.addEventListener("click",function(){re.setCurrentOpacity(pe,ae)}),oe.appendChild(ae);var me=document.createElement("div");me.innerText=100*pe+"%",ae.appendChild(me),re.opacityBoxes.push(ae)}),oe},ie.prototype.setCurrentOpacity=function(re,oe){var pe=this;this.currentOpacity=re,this.opacityBoxes.forEach(function(ae){ae.style.borderColor=ae===oe?pe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ie}(Te),st=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,oe,pe)||this;return ae.setOpacity=ae.setOpacity.bind(ae),ae.fillColor=pe.defaultHighlightColor,ae.strokeWidth=0,ae.opacity=pe.defaultHighlightOpacity,ae.fillPanel=new we("Color",pe.defaultColorSet,ae.fillColor),ae.fillPanel.onColorChanged=ae.setFillColor,ae.opacityPanel=new Ge("Opacity",pe.defaultOpacitySteps,ae.opacity),ae.opacityPanel.onOpacityChanged=ae.setOpacity,ae}return ve(ie,ue),ie.prototype.setOpacity=function(re){this.opacity=re,this.visual&&ge.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ie.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ie.prototype.getState=function(){var re=ue.prototype.getState.call(this);return re.typeName=ie.typeName,re},ie.typeName="HighlightMarker",ie.title="Highlight marker",ie.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',ie}(Qe),Ce='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',be='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',vt=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,oe,pe)||this;return ae.bgColor="transparent",ae.tipPosition={x:0,y:0},ae.tipBase1Position={x:0,y:0},ae.tipBase2Position={x:0,y:0},ae.tipMoving=!1,ae.color=pe.defaultStrokeColor,ae.bgColor=pe.defaultFillColor,ae.fontFamily=pe.defaultFontFamily,ae.defaultSize={x:100,y:30},ae.setBgColor=ae.setBgColor.bind(ae),ae.getTipPoints=ae.getTipPoints.bind(ae),ae.positionTip=ae.positionTip.bind(ae),ae.setTipPoints=ae.setTipPoints.bind(ae),ae.colorPanel=new we("Text color",pe.defaultColorSet,ae.color,Ce),ae.colorPanel.onColorChanged=ae.setColor,ae.bgColorPanel=new we("Fill color",pe.defaultColorSet,ae.bgColor,be),ae.bgColorPanel.onColorChanged=ae.setBgColor,ae.fontFamilyPanel=new Ee("Font",pe.defaultFontFamilies,pe.defaultFontFamily),ae.fontFamilyPanel.onFontChanged=ae.setFont,ae.tipGrip=new tt,ae.tipGrip.visual.transform.baseVal.appendItem(ge.createTransform()),ae.controlBox.appendChild(ae.tipGrip.visual),ae}return ve(ie,ue),ie.prototype.ownsTarget=function(re){return ue.prototype.ownsTarget.call(this,re)||this.tipGrip.ownsTarget(re)||this.tip===re},ie.prototype.createTip=function(){ge.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ge.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},ie.prototype.pointerDown=function(re,oe){this.state==="new"&&ue.prototype.pointerDown.call(this,re,oe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(oe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ue.prototype.pointerDown.call(this,re,oe)},ie.prototype.pointerUp=function(re){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ue.prototype.pointerUp.call(this,re);else{var oe=this.state==="creating";ue.prototype.pointerUp.call(this,re),this.setTipPoints(oe),this.positionTip()}},ie.prototype.manipulate=function(re){if(this.tipMoving){var oe=this.unrotatePoint(re);this.tipPosition={x:oe.x-this.manipulationStartLeft,y:oe.y-this.manipulationStartTop},this.positionTip()}else ue.prototype.manipulate.call(this,re)},ie.prototype.setBgColor=function(re){this.bgRectangle&&this.tip&&(ge.setAttributes(this.bgRectangle,[["fill",re]]),ge.setAttributes(this.tip,[["fill",re]])),this.bgColor=re,this.fillColorChanged(re)},ie.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},ie.prototype.setTipPoints=function(re){re===void 0&&(re=!1);var oe=Math.min(this.height/2,15),pe=this.height/5;re&&(this.tipPosition={x:oe+pe/2,y:this.height+20});var ae=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?ae<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(pe=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:0},this.tipBase2Position={x:oe+pe,y:0}):(this.tipBase1Position={x:0,y:oe},this.tipBase2Position={x:0,y:oe+pe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?ae<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(pe=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-pe,y:0},this.tipBase2Position={x:this.width-oe,y:0}):(this.tipBase1Position={x:this.width,y:oe},this.tipBase2Position={x:this.width,y:oe+pe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?ae<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(pe=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-pe,y:this.height},this.tipBase2Position={x:this.width-oe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-oe-pe},this.tipBase2Position={x:this.width,y:this.height-oe}):ae<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(pe=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:this.height},this.tipBase2Position={x:oe+pe,y:this.height}):(this.tipBase1Position={x:0,y:this.height-oe},this.tipBase2Position={x:0,y:this.height-oe-pe})},ie.prototype.resize=function(re){ue.prototype.resize.call(this,re),this.positionTip()},ie.prototype.positionTip=function(){ge.setAttributes(this.tip,[["points",this.getTipPoints()]]);var re=this.tipGrip.visual.transform.baseVal.getItem(0);re.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(re,0)},Object.defineProperty(ie.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ie.prototype.select=function(){this.positionTip(),ue.prototype.select.call(this)},ie.prototype.getState=function(){var re=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ue.prototype.getState.call(this));return re.typeName=ie.typeName,re},ie.prototype.restoreState=function(re){var oe=re;this.bgColor=oe.bgColor,this.tipPosition=oe.tipPosition,ue.prototype.restoreState.call(this,re),this.createTip(),this.setTipPoints()},ie.prototype.scale=function(re,oe){ue.prototype.scale.call(this,re,oe),this.tipPosition={x:this.tipPosition.x*re,y:this.tipPosition.y*oe},this.positionTip()},ie.typeName="CalloutMarker",ie.title="Callout marker",ie.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',ie}(We),zt=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,oe,pe)||this;return ae.fillColor="transparent",ae.strokeColor="transparent",ae.strokeWidth=0,ae.strokeDasharray="",ae.opacity=1,ae.strokeColor=pe.defaultColor,ae.strokeWidth=pe.defaultStrokeWidth,ae.strokeDasharray=pe.defaultStrokeDasharray,ae.fillColor=pe.defaultFillColor,ae.setStrokeColor=ae.setStrokeColor.bind(ae),ae.setFillColor=ae.setFillColor.bind(ae),ae.setStrokeWidth=ae.setStrokeWidth.bind(ae),ae.setStrokeDasharray=ae.setStrokeDasharray.bind(ae),ae.setOpacity=ae.setOpacity.bind(ae),ae.createVisual=ae.createVisual.bind(ae),ae.strokePanel=new we("Line color",xe(pe.defaultColorSet,["transparent"]),pe.defaultColor),ae.strokePanel.onColorChanged=ae.setStrokeColor,ae.fillPanel=new we("Fill color",xe(pe.defaultColorSet,["transparent"]),ae.fillColor,be),ae.fillPanel.onColorChanged=ae.setFillColor,ae.strokeWidthPanel=new He("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),ae.strokeWidthPanel.onWidthChanged=ae.setStrokeWidth,ae.strokeStylePanel=new Xe("Line style",pe.defaultStrokeDasharrays,pe.defaultStrokeDasharray),ae.strokeStylePanel.onStyleChanged=ae.setStrokeDasharray,ae.opacityPanel=new Ge("Opacity",pe.defaultOpacitySteps,ae.opacity),ae.opacityPanel.onOpacityChanged=ae.setOpacity,ae}return ve(ie,ue),ie.prototype.ownsTarget=function(re){return!(!ue.prototype.ownsTarget.call(this,re)&&re!==this.visual)},ie.prototype.createVisual=function(){this.visual=ge.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},ie.prototype.pointerDown=function(re,oe){ue.prototype.pointerDown.call(this,re,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(re),this._state="creating")},ie.prototype.manipulate=function(re){ue.prototype.manipulate.call(this,re)},ie.prototype.resize=function(re){ue.prototype.resize.call(this,re),this.setSize()},ie.prototype.setSize=function(){ue.prototype.setSize.call(this),ge.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},ie.prototype.pointerUp=function(re){ue.prototype.pointerUp.call(this,re),this.setSize()},ie.prototype.setStrokeColor=function(re){this.strokeColor=re,this.visual&&ge.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(re),this.stateChanged()},ie.prototype.setFillColor=function(re){this.fillColor=re,this.visual&&ge.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(re),this.stateChanged()},ie.prototype.setStrokeWidth=function(re){this.strokeWidth=re,this.visual&&ge.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ie.prototype.setStrokeDasharray=function(re){this.strokeDasharray=re,this.visual&&ge.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ie.prototype.setOpacity=function(re){this.opacity=re,this.visual&&ge.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ie.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ie.prototype.getState=function(){var re=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ue.prototype.getState.call(this));return re.typeName=ie.typeName,re},ie.prototype.restoreState=function(re){var oe=re;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),ue.prototype.restoreState.call(this,re),this.setSize()},ie.prototype.scale=function(re,oe){ue.prototype.scale.call(this,re,oe),this.setSize()},ie.typeName="EllipseMarker",ie.title="Ellipse marker",ie.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',ie}(_e),jt=function(ue){function ie(re,oe,pe){return ue.call(this,re,oe,pe)||this}return ve(ie,ue),Object.defineProperty(ie.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),ie.prototype.ownsTarget=function(re){return!(!ue.prototype.ownsTarget.call(this,re)&&re!==this.tip1&&re!==this.tip2)},ie.prototype.createTips=function(){this.tip1=ge.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(ge.createTransform()),this.visual.appendChild(this.tip1),this.tip2=ge.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(ge.createTransform()),this.visual.appendChild(this.tip2)},ie.prototype.pointerDown=function(re,oe){ue.prototype.pointerDown.call(this,re,oe),this.state==="creating"&&this.createTips()},ie.prototype.adjustVisual=function(){if(ue.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(ge.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),ge.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var re=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),oe=this.tip1.transform.baseVal.getItem(0);oe.setRotate(re,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(oe,0);var pe=this.tip2.transform.baseVal.getItem(0);pe.setRotate(re+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(pe,0)}},Object.defineProperty(ie.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ie.prototype.getState=function(){var re=ue.prototype.getState.call(this);return re.typeName=ie.typeName,re},ie.prototype.restoreState=function(re){ue.prototype.restoreState.call(this,re),this.createTips(),this.adjustVisual()},ie.typeName="MeasurementMarker",ie.title="Measurement marker",ie.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',ie}(Ue),De=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,oe,pe)||this;return ae.strokePanel.colors=pe.defaultColorSet,ae.fillColor="transparent",ae}return ve(ie,ue),Object.defineProperty(ie.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ie.prototype.getState=function(){var re=ue.prototype.getState.call(this);return re.typeName=ie.typeName,re},ie.typeName="EllipseFrameMarker",ie.title="Ellipse frame marker",ie.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',ie}(zt),pt=function(){function ue(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ue.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ue.prototype.addUndoStep=function(ie){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(ie)||(this.undoStack.push(ie),JSON.stringify(this.lastRedoStep)!==JSON.stringify(ie)&&this.redoStack.splice(0,this.redoStack.length))},ue.prototype.replaceLastUndoStep=function(ie){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ie)},ue.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ue.prototype.undo=function(){if(this.undoStack.length>1){var ie=this.undoStack.pop();return ie!==void 0&&this.redoStack.push(ie),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ue.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ue}(),ut=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,oe,pe)||this;return ae.strokeColor="transparent",ae.strokeWidth=0,ae.strokeDasharray="",ae.curveX=0,ae.curveY=0,ae.manipulationStartCurveX=0,ae.manipulationStartCurveY=0,ae.setStrokeColor=ae.setStrokeColor.bind(ae),ae.setStrokeWidth=ae.setStrokeWidth.bind(ae),ae.setStrokeDasharray=ae.setStrokeDasharray.bind(ae),ae.positionGrips=ae.positionGrips.bind(ae),ae.addControlGrips=ae.addControlGrips.bind(ae),ae.adjustVisual=ae.adjustVisual.bind(ae),ae.setupControlBox=ae.setupControlBox.bind(ae),ae.resize=ae.resize.bind(ae),ae.strokeColor=pe.defaultColor,ae.strokeWidth=pe.defaultStrokeWidth,ae.strokeDasharray=pe.defaultStrokeDasharray,ae.strokePanel=new we("Line color",pe.defaultColorSet,pe.defaultColor),ae.strokePanel.onColorChanged=ae.setStrokeColor,ae.strokeWidthPanel=new He("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),ae.strokeWidthPanel.onWidthChanged=ae.setStrokeWidth,ae.strokeStylePanel=new Xe("Line style",pe.defaultStrokeDasharrays,pe.defaultStrokeDasharray),ae.strokeStylePanel.onStyleChanged=ae.setStrokeDasharray,ae}return ve(ie,ue),ie.prototype.ownsTarget=function(re){return!(!ue.prototype.ownsTarget.call(this,re)&&re!==this.visual&&re!==this.selectorCurve&&re!==this.visibleCurve&&!this.curveGrip.ownsTarget(re))},ie.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},ie.prototype.createVisual=function(){this.visual=ge.createGroup(),this.selectorCurve=ge.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ge.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},ie.prototype.pointerDown=function(re,oe){ue.prototype.pointerDown.call(this,re,oe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=re.x,this.curveY=re.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(oe)&&(this.activeGrip=this.curveGrip,this._state="resize")},ie.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),ge.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ge.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ge.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ie.prototype.setupControlBox=function(){ue.prototype.setupControlBox.call(this),this.curveControlLine1=ge.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ge.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},ie.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ue.prototype.addControlGrips.call(this)},ie.prototype.positionGrips=function(){ue.prototype.positionGrips.call(this);var re=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-re/2,this.curveY-re/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},ie.prototype.manipulate=function(re){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+re.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+re.y-this.manipulationStartY),ue.prototype.manipulate.call(this,re)},ie.prototype.resize=function(re){this.activeGrip===this.curveGrip&&(this.curveX=re.x,this.curveY=re.y),ue.prototype.resize.call(this,re),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},ie.prototype.setStrokeColor=function(re){this.strokeColor=re,this.adjustVisual(),this.colorChanged(re)},ie.prototype.setStrokeWidth=function(re){this.strokeWidth=re,this.adjustVisual()},ie.prototype.setStrokeDasharray=function(re){this.strokeDasharray=re,this.adjustVisual()},ie.prototype.scale=function(re,oe){this.curveX=this.curveX*re,this.curveY=this.curveY*oe,ue.prototype.scale.call(this,re,oe)},Object.defineProperty(ie.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ie.prototype.getState=function(){var re=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ue.prototype.getState.call(this));return re.typeName=ie.typeName,re},ie.prototype.restoreState=function(re){ue.prototype.restoreState.call(this,re);var oe=re;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.curveX=oe.curveX,this.curveY=oe.curveY,this.createVisual(),this.adjustVisual()},ie.typeName="CurveMarker",ie.title="Curve marker",ie.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',ie}(ot),Qt=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,oe,pe)||this;return ae.fillColor="transparent",ae.strokeColor="transparent",ae.strokeWidth=0,ae.strokeDasharray="",ae.textColor="transparent",ae.fontSize="1rem",ae.isMoved=!1,ae.captionText="Caption",ae.PADDING=5,ae.captionBoxWidth=0,ae.captionBoxHeight=0,ae.strokeColor=pe.defaultColor,ae.strokeWidth=pe.defaultStrokeWidth,ae.strokeDasharray=pe.defaultStrokeDasharray,ae.fillColor=pe.defaultFillColor,ae.textColor=pe.defaultStrokeColor,ae.fontFamily=pe.defaultFontFamily,ae.fontSize=pe.defaultCaptionFontSize,ae.captionText=pe.defaultCaptionText,ae.setStrokeColor=ae.setStrokeColor.bind(ae),ae.setFillColor=ae.setFillColor.bind(ae),ae.setStrokeWidth=ae.setStrokeWidth.bind(ae),ae.setStrokeDasharray=ae.setStrokeDasharray.bind(ae),ae.createVisual=ae.createVisual.bind(ae),ae.sizeCaption=ae.sizeCaption.bind(ae),ae.setCaptionText=ae.setCaptionText.bind(ae),ae.showTextEditor=ae.showTextEditor.bind(ae),ae.positionTextEditor=ae.positionTextEditor.bind(ae),ae.finishTextEditing=ae.finishTextEditing.bind(ae),ae.setFont=ae.setFont.bind(ae),ae.setTextColor=ae.setTextColor.bind(ae),ae.strokePanel=new we("Line color",xe(pe.defaultColorSet,["transparent"]),ae.strokeColor),ae.strokePanel.onColorChanged=ae.setStrokeColor,ae.fillPanel=new we("Fill color",xe(pe.defaultColorSet,["transparent"]),ae.fillColor,be),ae.fillPanel.onColorChanged=ae.setFillColor,ae.strokeWidthPanel=new He("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),ae.strokeWidthPanel.onWidthChanged=ae.setStrokeWidth,ae.strokeStylePanel=new Xe("Line style",pe.defaultStrokeDasharrays,pe.defaultStrokeDasharray),ae.strokeStylePanel.onStyleChanged=ae.setStrokeDasharray,ae.fontFamilyPanel=new Ee("Font",pe.defaultFontFamilies,pe.defaultFontFamily),ae.fontFamilyPanel.onFontChanged=ae.setFont,ae.textColorPanel=new we("Text color",pe.defaultColorSet,ae.textColor,Ce),ae.textColorPanel.onColorChanged=ae.setTextColor,ae}return ve(ie,ue),ie.prototype.ownsTarget=function(re){return!(!ue.prototype.ownsTarget.call(this,re)&&re!==this.visual&&re!==this.frame&&re!==this.captionBg&&re!==this.captionElement)},ie.prototype.createVisual=function(){this.visual=ge.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=ge.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=ge.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=ge.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},ie.prototype.setCaptionText=function(re){this.captionText=re,this.captionElement.textContent=this.captionText,this.sizeCaption()},ie.prototype.pointerDown=function(re,oe){ue.prototype.pointerDown.call(this,re,oe),this.isMoved=!1,this.pointerDownPoint=re,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(re),this._state="creating")},ie.prototype.manipulate=function(re){ue.prototype.manipulate.call(this,re),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(re.x-this.pointerDownPoint.x)>5||Math.abs(re.y-this.pointerDownPoint.y)>5)},ie.prototype.resize=function(re){ue.prototype.resize.call(this,re),this.setSize()},ie.prototype.sizeCaption=function(){var re=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=re.width+2*this.PADDING,this.captionBoxHeight=re.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),ge.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),ge.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},ie.prototype.showTextEditor=function(){var re=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(oe){oe.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(oe){oe.key==="Enter"&&re.finishTextEditing(re.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){re.finishTextEditing(re.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){re.finishTextEditing(re.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},ie.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},ie.prototype.finishTextEditing=function(re){this.setCaptionText(re.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},ie.prototype.setFont=function(re){this.captionElement&&ge.setAttributes(this.captionElement,[["font-family",re]]),this.fontFamily=re,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},ie.prototype.setTextColor=function(re){this.captionElement&&ge.setAttributes(this.captionElement,[["fill",re]]),this.textColor=re,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},ie.prototype.setSize=function(){ue.prototype.setSize.call(this),ge.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ie.prototype.pointerUp=function(re){ue.prototype.pointerUp.call(this,re),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},ie.prototype.dblClick=function(re,oe){ue.prototype.dblClick.call(this,re,oe),this.showTextEditor()},ie.prototype.setStrokeColor=function(re){this.strokeColor=re,this.frame&&ge.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(re),this.stateChanged()},ie.prototype.setFillColor=function(re){this.fillColor=re,this.captionBg&&ge.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(re),this.stateChanged()},ie.prototype.setStrokeWidth=function(re){this.strokeWidth=re,this.frame&&ge.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ie.prototype.setStrokeDasharray=function(re){this.strokeDasharray=re,this.frame&&ge.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(ie.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),ie.prototype.getState=function(){var re=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},ue.prototype.getState.call(this));return re.typeName=this.typeName,re},ie.prototype.restoreState=function(re){var oe=re;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.textColor=oe.textColor,this.fontFamily=oe.fontFamily,this.captionText=oe.captionText,this.fontSize=oe.fontSize,this.createVisual(),ue.prototype.restoreState.call(this,re),this.setSize()},ie.prototype.scale=function(re,oe){ue.prototype.scale.call(this,re,oe),this.setSize()},ie.typeName="CaptionFrameMarker",ie.title="Caption frame marker",ie.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',ie}(_e),yt=function(){function ue(ie,re){re===void 0&&(re=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ie,this.cancelable=re}return Object.defineProperty(ue.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ue.prototype.preventDefault=function(){this._defaultPrevented=!0},ue}(),Ct=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,!1)||this;return ae.dataUrl=oe,ae.state=pe,ae}return ve(ie,ue),ie}(yt),mt=function(ue){function ie(re,oe,pe){pe===void 0&&(pe=!1);var ae=ue.call(this,re,pe)||this;return ae.marker=oe,ae}return ve(ie,ue),ie}(yt),dn=function(){function ue(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return ue.prototype.addEventListener=function(ie,re){this[ie].push(re)},ue.prototype.removeEventListener=function(ie,re){var oe=this[ie].indexOf(re);oe>-1&&this[ie].splice(oe,1)},ue}(),Ht=function(){function ue(ie){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new gt,this._isOpen=!1,this.undoRedoManager=new pt,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new dn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ue.instanceCounter++,this.styles=new fe(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=ie,this.targetRoot=document.body,this.width=ie.clientWidth,this.height=ie.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(ue.prototype,"ALL_MARKER_TYPES",{get:function(){return[St,Ae,wt,We,De,zt,st,vt,jt,Qe,Ue,ut,Qt]},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[St,Ae,wt,We,zt,st,vt]},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"BASIC_MARKER_TYPES",{get:function(){return[St,Ae,wt,We,st]},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(ie){var re=this;this._availableMarkerTypes.splice(0),ie.forEach(function(oe){if(typeof oe=="string"){var pe=re.ALL_MARKER_TYPES.find(function(ae){return ae.typeName===oe});pe!==void 0&&re._availableMarkerTypes.push(pe)}else re._availableMarkerTypes.push(oe)})},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(ie){this._zoomLevel=ie,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ue.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Se.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ue.prototype.show=function(){var ie=this;this.styles.styleSheetRoot===void 0&&Be.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Be.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(re){return re(new yt(ie))})},ue.prototype.render=function(){return ce(this,void 0,void 0,function(){var ie;return Le(this,function(re){switch(re.label){case 0:return this.setCurrentMarker(),(ie=new Ne).naturalSize=this.renderAtNaturalSize,ie.imageType=this.renderImageType,ie.imageQuality=this.renderImageQuality,ie.markersOnly=this.renderMarkersOnly,ie.width=this.renderWidth,ie.height=this.renderHeight,[4,ie.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return re.sent(),[4,ie.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,re.sent()]}})})},ue.prototype.close=function(ie){var re=this;if(ie===void 0&&(ie=!1),this.isOpen){var oe=!1;ie||this.eventListeners.beforeclose.forEach(function(pe){var ae=new yt(re,!0);pe(ae),ae.defaultPrevented&&(oe=!0)}),oe||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(pe){return pe(new yt(re))}),this.detachEvents(),this._isOpen=!1)}},ue.prototype.addMarkersToToolbar=function(){for(var ie,re=[],oe=0;oe<arguments.length;oe++)re[oe]=arguments[oe];(ie=this._availableMarkerTypes).push.apply(ie,re)},ue.prototype.addRenderEventListener=function(ie){this.addEventListener("render",function(re){ie(re.dataUrl,re.state)})},ue.prototype.removeRenderEventListener=function(ie){},ue.prototype.addCloseEventListener=function(ie){this.addEventListener("close",function(){ie()})},ue.prototype.removeCloseEventListener=function(ie){},ue.prototype.setupResizeObserver=function(){var ie=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){ie.resize(ie.target.clientWidth,ie.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return ie.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ue.prototype.onPopupTargetResize=function(){var ie=1*this.target.clientWidth/this.target.clientHeight,re=this.editorCanvas.clientWidth/ie>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ie:this.editorCanvas.clientWidth,oe=re<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/ie;this.resize(re,oe)},ue.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ue.prototype.resize=function(ie,re){this._isResizing=!0;var oe=ie/this.imageWidth,pe=re/this.imageHeight;this.imageWidth=Math.round(ie),this.imageHeight=Math.round(re),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(oe,pe),this._isResizing=!1},ue.prototype.scaleMarkers=function(ie,re){var oe,pe=this;this._currentMarker&&this._currentMarker instanceof We?this._currentMarker.scale(ie,re):(oe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(ae){ae!==pe._currentMarker&&ae.scale(ie,re)}),oe!==void 0&&this.setCurrentMarker(oe)},ue.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},ue.prototype.setTopLeft=function(){var ie=this.editingTarget.getBoundingClientRect(),re=this.editorCanvas.getBoundingClientRect();this.left=ie.left-re.left,this.top=ie.top-re.top},ue.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},ue.prototype.addDefs=function(){for(var ie,re=[],oe=0;oe<arguments.length;oe++)re[oe]=arguments[oe];this.defs=ge.createDefs(),this.addDefsToImage(),(ie=this.defs).append.apply(ie,re)},ue.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ue.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},ue.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ue.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ue.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},ue.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ue.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},ue.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var ie=document.createElement("a");ie.href="https://markerjs.com/",ie.target="_blank",ie.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',ie.title="Powered by marker.js",ie.style.display="grid",ie.style.alignItems="center",ie.style.justifyItems="center",ie.style.padding="3px",ie.style.width="20px",ie.style.height="20px",this.logoUI.appendChild(ie),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ue.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},ue.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},ue.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ue.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var ie=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ie+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new ct(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new Ke(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ue.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ue.prototype.removeMarker=function(ie){this.markerImage.removeChild(ie.container),this.markers.indexOf(ie)>-1&&this.markers.splice(this.markers.indexOf(ie),1),ie.dispose()},ue.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},ue.prototype.toolbarButtonClicked=function(ie,re){if(ie==="marker"&&re!==void 0)this.createNewMarker(re);else if(ie==="action")switch(re){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},ue.prototype.deleteSelectedMarker=function(){var ie=this;if(this._currentMarker!==void 0){var re=!1;if(this.eventListeners.markerbeforedelete.forEach(function(pe){var ae=new mt(ie,ie._currentMarker,!0);pe(ae),ae.defaultPrevented&&(re=!0)}),!re){var oe=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(pe){return pe(new mt(ie,oe))})}}},ue.prototype.clear=function(){var ie=this,re=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(me){var Ze=new mt(ie,void 0,!0);me(Ze),Ze.defaultPrevented&&(re=!0)}),!re)){this.setCurrentMarker();for(var oe=function(me){var Ze=pe.markers[me];pe.setCurrentMarker(pe.markers[me]),pe._currentMarker.dispose(),pe.markerImage.removeChild(pe._currentMarker.container),pe.markers.splice(pe.markers.indexOf(pe._currentMarker),1),pe.eventListeners.markerdelete.forEach(function(Ot){return Ot(new mt(ie,Ze))})},pe=this,ae=this.markers.length-1;ae>=0;ae--)oe(ae);this.addUndoStep()}},Object.defineProperty(ue.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ue.prototype.showNotesEditor=function(){var ie;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(ie=this._currentMarker.notes)!==null&&ie!==void 0?ie:"",this.overlayContainer.appendChild(this.notesArea))},ue.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},ue.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ue.prototype.addUndoStep=function(){var ie=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var re=this.getState(),oe=this.undoRedoManager.getLastUndoStep();if(!oe||oe.width===re.width&&oe.height===re.height){var pe=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(re),pe<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(ae){return ae(new yt(ie))})}else this.undoRedoManager.replaceLastUndoStep(re),this.eventListeners.statechange.forEach(function(ae){return ae(new yt(ie))})}},ue.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ue.prototype.undoStep=function(){var ie=this,re=this.undoRedoManager.undo();re!==void 0&&(this.restoreState(re),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new yt(ie))}))},ue.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ue.prototype.redoStep=function(){var ie=this,re=this.undoRedoManager.redo();re!==void 0&&(this.restoreState(re),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new yt(ie))}))},ue.prototype.stepZoom=function(){var ie=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=ie<this.zoomSteps.length-1?this.zoomSteps[ie+1]:this.zoomSteps[0]},ue.prototype.panTo=function(ie){this.contentDiv.scrollBy({left:this.prevPanPoint.x-ie.x,top:this.prevPanPoint.y-ie.y}),this.prevPanPoint=ie},ue.prototype.startRenderAndClose=function(){return ce(this,void 0,void 0,function(){var ie,re,oe=this;return Le(this,function(pe){switch(pe.label){case 0:return[4,this.render()];case 1:return ie=pe.sent(),re=this.getState(),this.eventListeners.render.forEach(function(ae){return ae(new Ct(oe,ie,re))}),this.close(!0),[2]}})})},ue.prototype.getState=function(ie){ie===!0&&this.setCurrentMarker();var re={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(oe){return re.markers.push(oe.getState())}),re},ue.prototype.restoreState=function(ie){var re=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);ie.markers.forEach(function(oe){var pe=re._availableMarkerTypes.find(function(me){return me.typeName===oe.typeName});if(pe!==void 0){var ae=re.addNewMarker(pe);ae.restoreState(oe),re.markers.push(ae)}}),ie.width&&ie.height&&(ie.width!==this.imageWidth||ie.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/ie.width,this.imageHeight/ie.height),this.eventListeners.restorestate.forEach(function(oe){return oe(new yt(re))})},ue.prototype.addNewMarker=function(ie){var re=ge.createGroup();return this.markerImage.appendChild(re),new ie(re,this.overlayContainer,this.settings)},ue.prototype.createNewMarker=function(ie){var re,oe=this;(re=typeof ie=="string"?this._availableMarkerTypes.find(function(pe){return pe.typeName===ie}):ie)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(re),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(re.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(pe){return pe(new mt(oe,oe._currentMarker))}))},ue.prototype.markerCreated=function(ie){var re=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(ie),this.setCurrentMarker(ie),ie instanceof Ae&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ae):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(oe){return oe(new mt(re,re._currentMarker))})},ue.prototype.colorChanged=function(ie){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=ie,this.settings.defaultStrokeColor=ie)},ue.prototype.fillColorChanged=function(ie){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=ie)},ue.prototype.markerStateChanged=function(ie){var re=this;this.eventListeners.markerchange.forEach(function(oe){return oe(new mt(re,ie))})},ue.prototype.setCurrentMarker=function(ie){var re=this;this._currentMarker!==ie&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(oe){return oe(new mt(re,re._currentMarker))})),this._currentMarker=ie,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(oe){return oe(new mt(re,re._currentMarker))}))},ue.prototype.onPointerDown=function(ie){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||ie.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var re=this.markers.find(function(oe){return oe.ownsTarget(ie.target)});re!==void 0?(this.setCurrentMarker(re),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ie.clientX,ie.clientY),ie.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:ie.clientX,y:ie.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ie.clientX,ie.clientY))},ue.prototype.onDblClick=function(ie){if(this._isFocused||this.focus(),this.mode==="select"){var re=this.markers.find(function(oe){return oe.ownsTarget(ie.target)});re!==void 0&&re!==this._currentMarker&&this.setCurrentMarker(re),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(ie.clientX,ie.clientY),ie.target):this.setCurrentMarker()}},ue.prototype.onPointerMove=function(ie){this.touchPoints!==1&&ie.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||ie.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(ie.clientX,ie.clientY)):this.zoomLevel>1&&this.panTo({x:ie.clientX,y:ie.clientY}))},ue.prototype.onPointerUp=function(ie){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(ie.clientX,ie.clientY)),this.isDragging=!1,this.addUndoStep()},ue.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ue.prototype.onKeyUp=function(ie){this._currentMarker===void 0||this.notesArea!==void 0||ie.key!=="Delete"&&ie.key!=="Backspace"||this.deleteSelectedMarker()},ue.prototype.clientToLocalCoordinates=function(ie,re){var oe=this.markerImage.getBoundingClientRect();return{x:(ie-oe.left)/this.zoomLevel,y:(re-oe.top)/this.zoomLevel}},ue.prototype.onWindowResize=function(){this.positionUI()},ue.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var ie=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ie+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},ue.prototype.addLicenseKey=function(ie){Se.addKey(ie)},ue.prototype.addEventListener=function(ie,re){this.eventListeners.addEventListener(ie,re)},ue.prototype.removeEventListener=function(ie,re){this.eventListeners.removeEventListener(ie,re)},ue.prototype.renderState=function(ie){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(ie),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ue.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ue.prototype.focus=function(){var ie=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(re){return re(new yt(ie))}))},ue.prototype.blur=function(){var ie=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(re){return re(new yt(ie))}))},ue.instanceCounter=0,ue}()},6551:function(Mn,Yt,E){"use strict";E.d(Yt,{ZP:function(){return Se}});var y=E(42978),ve=E(59301),ce=E(47273),Le=0,xe=(0,ce.Z)();function ge(){var Ne;return xe?(Ne=Le,Le+=1):Ne="TEST_OR_SSR",Ne}function Se(Ne){var Be=ve.useState(),fe=(0,y.Z)(Be,2),$e=fe[0],Oe=fe[1];return ve.useEffect(function(){Oe("rc_select_".concat(ge()))},[]),Ne||$e}},37463:function(Mn,Yt,E){"use strict";E.d(Yt,{Ac:function(){return kt},Xo:function(){return Pt},Wx:function(){return It},ZP:function(){return vr},lk:function(){return Et}});var y=E(54476),ve=E(94480),ce=E(20068),Le=E(33885),xe=E(42978),ge=E(75931),Se=E(76190),Ne=E(18929),Be=E(48736),fe=E(59301),$e=E(92310),Oe=E.n($e),ct=E(34280),Ke=E(49658),Te=E(8654),we=function(Kt){var ft=Kt.className,Rt=Kt.customizeIcon,it=Kt.customizeIconProps,ht=Kt.children,fn=Kt.onMouseDown,ar=Kt.onClick,pr=typeof Rt=="function"?Rt(it):Rt;return fe.createElement("span",{className:ft,onMouseDown:function(Tt){Tt.preventDefault(),fn==null||fn(Tt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:ar,"aria-hidden":!0},pr!==void 0?pr:fe.createElement("span",{className:Oe()(ft.split(/\s+/).map(function(Ft){return"".concat(Ft,"-icon")}))},ht))},Ie=we,Pe=function(Kt,ft,Rt,it,ht){var fn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,ar=arguments.length>6?arguments[6]:void 0,pr=arguments.length>7?arguments[7]:void 0,Ft=fe.useMemo(function(){if((0,Se.Z)(it)==="object")return it.clearIcon;if(ht)return ht},[it,ht]),Tt=fe.useMemo(function(){return!!(!fn&&it&&(Rt.length||ar)&&!(pr==="combobox"&&ar===""))},[it,fn,Rt.length,ar,pr]);return{allowClear:Tt,clearIcon:fe.createElement(Ie,{className:"".concat(Kt,"-clear"),onMouseDown:ft,customizeIcon:Ft},"\xD7")}},tt=fe.createContext(null);function Et(){return fe.useContext(tt)}function _e(){var Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Kt=fe.useState(!1),ft=(0,xe.Z)(Kt,2),Rt=ft[0],it=ft[1],ht=fe.useRef(null),fn=function(){window.clearTimeout(ht.current)};fe.useEffect(function(){return fn},[]);var ar=function(Ft,Tt){fn(),ht.current=window.setTimeout(function(){it(Ft),Tt&&Tt()},Mt)};return[Rt,ar,fn]}function Fe(){var Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Kt=fe.useRef(null),ft=fe.useRef(null);fe.useEffect(function(){return function(){window.clearTimeout(ft.current)}},[]);function Rt(it){(it||Kt.current===null)&&(Kt.current=it),window.clearTimeout(ft.current),ft.current=window.setTimeout(function(){Kt.current=null},Mt)}return[function(){return Kt.current},Rt]}function He(Mt,Kt,ft,Rt){var it=fe.useRef(null);it.current={open:Kt,triggerOpen:ft,customizedTrigger:Rt},fe.useEffect(function(){function ht(fn){var ar;if(!((ar=it.current)!==null&&ar!==void 0&&ar.customizedTrigger)){var pr=fn.target;pr.shadowRoot&&fn.composed&&(pr=fn.composedPath()[0]||pr),it.current.open&&Mt().filter(function(Ft){return Ft}).every(function(Ft){return!Ft.contains(pr)&&Ft!==pr})&&it.current.triggerOpen(!1)}}return window.addEventListener("mousedown",ht),function(){return window.removeEventListener("mousedown",ht)}},[])}var Xe=E(10228);function St(Mt){return Mt&&![Xe.Z.ESC,Xe.Z.SHIFT,Xe.Z.BACKSPACE,Xe.Z.TAB,Xe.Z.WIN_KEY,Xe.Z.ALT,Xe.Z.META,Xe.Z.WIN_KEY_RIGHT,Xe.Z.CTRL,Xe.Z.SEMICOLON,Xe.Z.EQUALS,Xe.Z.CAPS_LOCK,Xe.Z.CONTEXT_MENU,Xe.Z.F1,Xe.Z.F2,Xe.Z.F3,Xe.Z.F4,Xe.Z.F5,Xe.Z.F6,Xe.Z.F7,Xe.Z.F8,Xe.Z.F9,Xe.Z.F10,Xe.Z.F11,Xe.Z.F12].includes(Mt)}var gt=E(26112),ot=E(83836);function Ue(Mt,Kt,ft){var Rt=(0,Le.Z)((0,Le.Z)({},Mt),ft?Kt:{});return Object.keys(Kt).forEach(function(it){var ht=Kt[it];typeof ht=="function"&&(Rt[it]=function(){for(var fn,ar=arguments.length,pr=new Array(ar),Ft=0;Ft<ar;Ft++)pr[Ft]=arguments[Ft];return ht.apply(void 0,pr),(fn=Mt[it])===null||fn===void 0?void 0:fn.call.apply(fn,[Mt].concat(pr))})}),Rt}var Ee=Ue,We=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Ae=function(Kt,ft){var Rt=Kt.prefixCls,it=Kt.id,ht=Kt.inputElement,fn=Kt.autoFocus,ar=Kt.autoComplete,pr=Kt.editable,Ft=Kt.activeDescendantId,Tt=Kt.value,_t=Kt.open,Ut=Kt.attrs,Fn=(0,ge.Z)(Kt,We),zn=ht||fe.createElement("input",null),Un=zn,jn=Un.ref,gr=Un.props;return(0,Be.Kp)(!("maxLength"in zn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),zn=fe.cloneElement(zn,(0,Le.Z)((0,Le.Z)((0,Le.Z)({type:"search"},Ee(Fn,gr,!0)),{},{id:it,ref:(0,Te.sQ)(ft,jn),autoComplete:ar||"off",autoFocus:fn,className:Oe()("".concat(Rt,"-selection-search-input"),gr==null?void 0:gr.className),role:"combobox","aria-expanded":_t||!1,"aria-haspopup":"listbox","aria-owns":"".concat(it,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(it,"_list"),"aria-activedescendant":_t?Ft:void 0},Ut),{},{value:pr?Tt:"",readOnly:!pr,unselectable:pr?null:"on",style:(0,Le.Z)((0,Le.Z)({},gr.style),{},{opacity:pr?null:0})})),zn},de=fe.forwardRef(Ae),wt=de;function Qe(Mt){return Array.isArray(Mt)?Mt:Mt!==void 0?[Mt]:[]}var Ge=typeof window!="undefined"&&window.document&&window.document.documentElement,st=Ge;function Ce(Mt){return Mt!=null}function be(Mt){return!Mt&&Mt!==0}function vt(Mt){return["string","number"].includes((0,Se.Z)(Mt))}function zt(Mt){var Kt=void 0;return Mt&&(vt(Mt.title)?Kt=Mt.title.toString():vt(Mt.label)&&(Kt=Mt.label.toString())),Kt}function jt(Mt,Kt){st?fe.useLayoutEffect(Mt,Kt):fe.useEffect(Mt,Kt)}function De(Mt){var Kt;return(Kt=Mt.key)!==null&&Kt!==void 0?Kt:Mt.value}var pt=function(Kt){Kt.preventDefault(),Kt.stopPropagation()},ut=function(Kt){var ft=Kt.id,Rt=Kt.prefixCls,it=Kt.values,ht=Kt.open,fn=Kt.searchValue,ar=Kt.autoClearSearchValue,pr=Kt.inputRef,Ft=Kt.placeholder,Tt=Kt.disabled,_t=Kt.mode,Ut=Kt.showSearch,Fn=Kt.autoFocus,zn=Kt.autoComplete,Un=Kt.activeDescendantId,jn=Kt.tabIndex,gr=Kt.removeIcon,Ir=Kt.maxTagCount,Mr=Kt.maxTagTextLength,Zr=Kt.maxTagPlaceholder,Er=Zr===void 0?function(xr){return"+ ".concat(xr.length," ...")}:Zr,Rr=Kt.tagRender,Xr=Kt.onToggleOpen,oa=Kt.onRemove,ta=Kt.onInputChange,xa=Kt.onInputPaste,Fa=Kt.onInputKeyDown,Gr=Kt.onInputMouseDown,ya=Kt.onInputCompositionStart,Xa=Kt.onInputCompositionEnd,Ia=Kt.onInputBlur,pa=fe.useRef(null),kr=(0,fe.useState)(0),Za=(0,xe.Z)(kr,2),Sa=Za[0],la=Za[1],Kr=(0,fe.useState)(!1),Ya=(0,xe.Z)(Kr,2),_i=Ya[0],$i=Ya[1],za="".concat(Rt,"-selection"),Di=ht||_t==="multiple"&&ar===!1||_t==="tags"?fn:"",pi=_t==="tags"||_t==="multiple"&&ar===!1||Ut&&(ht||_i);jt(function(){la(pa.current.scrollWidth)},[Di]);var Wi=function(tr,jr,sa,br,Br){return fe.createElement("span",{title:zt(tr),className:Oe()("".concat(za,"-item"),(0,ce.Z)({},"".concat(za,"-item-disabled"),sa))},fe.createElement("span",{className:"".concat(za,"-item-content")},jr),br&&fe.createElement(Ie,{className:"".concat(za,"-item-remove"),onMouseDown:pt,onClick:Br,customizeIcon:gr},"\xD7"))},Ci=function(tr,jr,sa,br,Br,$r){var Qr=function(ja){pt(ja),Xr(!ht)};return fe.createElement("span",{onMouseDown:Qr},Rr({label:jr,value:tr,disabled:sa,closable:br,onClose:Br,isMaxTag:!!$r}))},ei=function(tr){var jr=tr.disabled,sa=tr.label,br=tr.value,Br=!Tt&&!jr,$r=sa;if(typeof Mr=="number"&&(typeof sa=="string"||typeof sa=="number")){var Qr=String($r);Qr.length>Mr&&($r="".concat(Qr.slice(0,Mr),"..."))}var Ta=function(ea){ea&&ea.stopPropagation(),oa(tr)};return typeof Rr=="function"?Ci(br,$r,jr,Br,Ta):Wi(tr,$r,jr,Br,Ta)},Pr=function(tr){if(!it.length)return null;var jr=typeof Er=="function"?Er(tr):Er;return typeof Rr=="function"?Ci(void 0,jr,!1,!1,void 0,!0):Wi({title:jr},jr,!1)},Qn=fe.createElement("div",{className:"".concat(za,"-search"),style:{width:Sa},onFocus:function(){$i(!0)},onBlur:function(){$i(!1)}},fe.createElement(wt,{ref:pr,open:ht,prefixCls:Rt,id:ft,inputElement:null,disabled:Tt,autoFocus:Fn,autoComplete:zn,editable:pi,activeDescendantId:Un,value:Di,onKeyDown:Fa,onMouseDown:Gr,onChange:ta,onPaste:xa,onCompositionStart:ya,onCompositionEnd:Xa,onBlur:Ia,tabIndex:jn,attrs:(0,gt.Z)(Kt,!0)}),fe.createElement("span",{ref:pa,className:"".concat(za,"-search-mirror"),"aria-hidden":!0},Di,"\xA0")),Cr=fe.createElement(ot.Z,{prefixCls:"".concat(za,"-overflow"),data:it,renderItem:ei,renderRest:Pr,suffix:Qn,itemKey:De,maxCount:Ir});return fe.createElement("span",{className:"".concat(za,"-wrap")},Cr,!it.length&&!Di&&fe.createElement("span",{className:"".concat(za,"-placeholder")},Ft))},Qt=ut,yt=function(Kt){var ft=Kt.inputElement,Rt=Kt.prefixCls,it=Kt.id,ht=Kt.inputRef,fn=Kt.disabled,ar=Kt.autoFocus,pr=Kt.autoComplete,Ft=Kt.activeDescendantId,Tt=Kt.mode,_t=Kt.open,Ut=Kt.values,Fn=Kt.placeholder,zn=Kt.tabIndex,Un=Kt.showSearch,jn=Kt.searchValue,gr=Kt.activeValue,Ir=Kt.maxLength,Mr=Kt.onInputKeyDown,Zr=Kt.onInputMouseDown,Er=Kt.onInputChange,Rr=Kt.onInputPaste,Xr=Kt.onInputCompositionStart,oa=Kt.onInputCompositionEnd,ta=Kt.onInputBlur,xa=Kt.title,Fa=fe.useState(!1),Gr=(0,xe.Z)(Fa,2),ya=Gr[0],Xa=Gr[1],Ia=Tt==="combobox",pa=Ia||Un,kr=Ut[0],Za=jn||"";Ia&&gr&&!ya&&(Za=gr),fe.useEffect(function(){Ia&&Xa(!1)},[Ia,gr]);var Sa=Tt!=="combobox"&&!_t&&!Un?!1:!!Za,la=xa===void 0?zt(kr):xa,Kr=fe.useMemo(function(){return kr?null:fe.createElement("span",{className:"".concat(Rt,"-selection-placeholder"),style:Sa?{visibility:"hidden"}:void 0},Fn)},[kr,Sa,Fn,Rt]);return fe.createElement("span",{className:"".concat(Rt,"-selection-wrap")},fe.createElement("span",{className:"".concat(Rt,"-selection-search")},fe.createElement(wt,{ref:ht,prefixCls:Rt,id:it,open:_t,inputElement:ft,disabled:fn,autoFocus:ar,autoComplete:pr,editable:pa,activeDescendantId:Ft,value:Za,onKeyDown:Mr,onMouseDown:Zr,onChange:function(_i){Xa(!0),Er(_i)},onPaste:Rr,onCompositionStart:Xr,onCompositionEnd:oa,onBlur:ta,tabIndex:zn,attrs:(0,gt.Z)(Kt,!0),maxLength:Ia?Ir:void 0})),!Ia&&kr?fe.createElement("span",{className:"".concat(Rt,"-selection-item"),title:la,style:Sa?{visibility:"hidden"}:void 0},kr.label):null,Kr)},Ct=yt,mt=function(Kt,ft){var Rt=(0,fe.useRef)(null),it=(0,fe.useRef)(!1),ht=Kt.prefixCls,fn=Kt.open,ar=Kt.mode,pr=Kt.showSearch,Ft=Kt.tokenWithEnter,Tt=Kt.disabled,_t=Kt.prefix,Ut=Kt.autoClearSearchValue,Fn=Kt.onSearch,zn=Kt.onSearchSubmit,Un=Kt.onToggleOpen,jn=Kt.onInputKeyDown,gr=Kt.onInputBlur,Ir=Kt.domRef;fe.useImperativeHandle(ft,function(){return{focus:function(la){Rt.current.focus(la)},blur:function(){Rt.current.blur()}}});var Mr=Fe(0),Zr=(0,xe.Z)(Mr,2),Er=Zr[0],Rr=Zr[1],Xr=function(la){var Kr=la.which,Ya=Rt.current instanceof HTMLTextAreaElement;!Ya&&fn&&(Kr===Xe.Z.UP||Kr===Xe.Z.DOWN)&&la.preventDefault(),jn&&jn(la),Kr===Xe.Z.ENTER&&ar==="tags"&&!it.current&&!fn&&(zn==null||zn(la.target.value)),!(Ya&&!fn&&~[Xe.Z.UP,Xe.Z.DOWN,Xe.Z.LEFT,Xe.Z.RIGHT].indexOf(Kr))&&St(Kr)&&Un(!0)},oa=function(){Rr(!0)},ta=(0,fe.useRef)(null),xa=function(la){Fn(la,!0,it.current)!==!1&&Un(!0)},Fa=function(){it.current=!0},Gr=function(la){it.current=!1,ar!=="combobox"&&xa(la.target.value)},ya=function(la){var Kr=la.target.value;if(Ft&&ta.current&&/[\r\n]/.test(ta.current)){var Ya=ta.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Kr=Kr.replace(Ya,ta.current)}ta.current=null,xa(Kr)},Xa=function(la){var Kr=la.clipboardData,Ya=Kr==null?void 0:Kr.getData("text");ta.current=Ya||""},Ia=function(la){var Kr=la.target;if(Kr!==Rt.current){var Ya=document.body.style.msTouchAction!==void 0;Ya?setTimeout(function(){Rt.current.focus()}):Rt.current.focus()}},pa=function(la){var Kr=Er();la.target!==Rt.current&&!Kr&&!(ar==="combobox"&&Tt)&&la.preventDefault(),(ar!=="combobox"&&(!pr||!Kr)||!fn)&&(fn&&Ut!==!1&&Fn("",!0,!1),Un())},kr={inputRef:Rt,onInputKeyDown:Xr,onInputMouseDown:oa,onInputChange:ya,onInputPaste:Xa,onInputCompositionStart:Fa,onInputCompositionEnd:Gr,onInputBlur:gr},Za=ar==="multiple"||ar==="tags"?fe.createElement(Qt,(0,y.Z)({},Kt,kr)):fe.createElement(Ct,(0,y.Z)({},Kt,kr));return fe.createElement("div",{ref:Ir,className:"".concat(ht,"-selector"),onClick:Ia,onMouseDown:pa},_t&&fe.createElement("div",{className:"".concat(ht,"-prefix")},_t),Za)},dn=fe.forwardRef(mt),Ht=dn,ue=E(65030),ie=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],re=function(Kt){var ft=Kt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:ft,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:ft,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:ft,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:ft,adjustY:1},htmlRegion:"scroll"}}},oe=function(Kt,ft){var Rt=Kt.prefixCls,it=Kt.disabled,ht=Kt.visible,fn=Kt.children,ar=Kt.popupElement,pr=Kt.animation,Ft=Kt.transitionName,Tt=Kt.dropdownStyle,_t=Kt.dropdownClassName,Ut=Kt.direction,Fn=Ut===void 0?"ltr":Ut,zn=Kt.placement,Un=Kt.builtinPlacements,jn=Kt.dropdownMatchSelectWidth,gr=Kt.dropdownRender,Ir=Kt.dropdownAlign,Mr=Kt.getPopupContainer,Zr=Kt.empty,Er=Kt.getTriggerDOMNode,Rr=Kt.onPopupVisibleChange,Xr=Kt.onPopupMouseEnter,oa=(0,ge.Z)(Kt,ie),ta="".concat(Rt,"-dropdown"),xa=ar;gr&&(xa=gr(ar));var Fa=fe.useMemo(function(){return Un||re(jn)},[Un,jn]),Gr=pr?"".concat(ta,"-").concat(pr):Ft,ya=typeof jn=="number",Xa=fe.useMemo(function(){return ya?null:jn===!1?"minWidth":"width"},[jn,ya]),Ia=Tt;ya&&(Ia=(0,Le.Z)((0,Le.Z)({},Ia),{},{width:jn}));var pa=fe.useRef(null);return fe.useImperativeHandle(ft,function(){return{getPopupElement:function(){var Za;return(Za=pa.current)===null||Za===void 0?void 0:Za.popupElement}}}),fe.createElement(ue.Z,(0,y.Z)({},oa,{showAction:Rr?["click"]:[],hideAction:Rr?["click"]:[],popupPlacement:zn||(Fn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Fa,prefixCls:ta,popupTransitionName:Gr,popup:fe.createElement("div",{onMouseEnter:Xr},xa),ref:pa,stretch:Xa,popupAlign:Ir,popupVisible:ht,getPopupContainer:Mr,popupClassName:Oe()(_t,(0,ce.Z)({},"".concat(ta,"-empty"),Zr)),popupStyle:Ia,getTriggerDOMNode:Er,onPopupVisibleChange:Rr}),fn)},pe=fe.forwardRef(oe),ae=pe,me=E(66712);function Ze(Mt,Kt){var ft=Mt.key,Rt;return"value"in Mt&&(Rt=Mt.value),ft!=null?ft:Rt!==void 0?Rt:"rc-index-key-".concat(Kt)}function Ot(Mt){return typeof Mt!="undefined"&&!Number.isNaN(Mt)}function at(Mt,Kt){var ft=Mt||{},Rt=ft.label,it=ft.value,ht=ft.options,fn=ft.groupLabel,ar=Rt||(Kt?"children":"label");return{label:ar,value:it||"value",options:ht||"options",groupLabel:fn||ar}}function qe(Mt){var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ft=Kt.fieldNames,Rt=Kt.childrenAsData,it=[],ht=at(ft,!1),fn=ht.label,ar=ht.value,pr=ht.options,Ft=ht.groupLabel;function Tt(_t,Ut){Array.isArray(_t)&&_t.forEach(function(Fn){if(Ut||!(pr in Fn)){var zn=Fn[ar];it.push({key:Ze(Fn,it.length),groupOption:Ut,data:Fn,label:Fn[fn],value:zn})}else{var Un=Fn[Ft];Un===void 0&&Rt&&(Un=Fn.label),it.push({key:Ze(Fn,it.length),group:!0,data:Fn,label:Un}),Tt(Fn[pr],!0)}})}return Tt(Mt,!1),it}function bt(Mt){var Kt=(0,Le.Z)({},Mt);return"props"in Kt||Object.defineProperty(Kt,"props",{get:function(){return(0,Be.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Kt}}),Kt}var At=function(Kt,ft,Rt){if(!ft||!ft.length)return null;var it=!1,ht=function ar(pr,Ft){var Tt=(0,me.Z)(Ft),_t=Tt[0],Ut=Tt.slice(1);if(!_t)return[pr];var Fn=pr.split(_t);return it=it||Fn.length>1,Fn.reduce(function(zn,Un){return[].concat((0,ve.Z)(zn),(0,ve.Z)(ar(Un,Ut)))},[]).filter(Boolean)},fn=ht(Kt,ft);return it?typeof Rt!="undefined"?fn.slice(0,Rt):fn:null},$t=fe.createContext(null),Ye=$t;function rt(Mt){var Kt=Mt.visible,ft=Mt.values;if(!Kt)return null;var Rt=50;return fe.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(ft.slice(0,Rt).map(function(it){var ht=it.label,fn=it.value;return["number","string"].includes((0,Se.Z)(ht))?ht:fn}).join(", ")),ft.length>Rt?", ...":null)}var Vt=["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","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],sn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],wn=function(Kt){return Kt==="tags"||Kt==="multiple"},pn=fe.forwardRef(function(Mt,Kt){var ft,Rt=Mt.id,it=Mt.prefixCls,ht=Mt.className,fn=Mt.showSearch,ar=Mt.tagRender,pr=Mt.direction,Ft=Mt.omitDomProps,Tt=Mt.displayValues,_t=Mt.onDisplayValuesChange,Ut=Mt.emptyOptions,Fn=Mt.notFoundContent,zn=Fn===void 0?"Not Found":Fn,Un=Mt.onClear,jn=Mt.mode,gr=Mt.disabled,Ir=Mt.loading,Mr=Mt.getInputElement,Zr=Mt.getRawInputElement,Er=Mt.open,Rr=Mt.defaultOpen,Xr=Mt.onDropdownVisibleChange,oa=Mt.activeValue,ta=Mt.onActiveValueChange,xa=Mt.activeDescendantId,Fa=Mt.searchValue,Gr=Mt.autoClearSearchValue,ya=Mt.onSearch,Xa=Mt.onSearchSplit,Ia=Mt.tokenSeparators,pa=Mt.allowClear,kr=Mt.prefix,Za=Mt.suffixIcon,Sa=Mt.clearIcon,la=Mt.OptionList,Kr=Mt.animation,Ya=Mt.transitionName,_i=Mt.dropdownStyle,$i=Mt.dropdownClassName,za=Mt.dropdownMatchSelectWidth,Di=Mt.dropdownRender,pi=Mt.dropdownAlign,Wi=Mt.placement,Ci=Mt.builtinPlacements,ei=Mt.getPopupContainer,Pr=Mt.showAction,Qn=Pr===void 0?[]:Pr,Cr=Mt.onFocus,xr=Mt.onBlur,tr=Mt.onKeyUp,jr=Mt.onKeyDown,sa=Mt.onMouseDown,br=(0,ge.Z)(Mt,Vt),Br=wn(jn),$r=(fn!==void 0?fn:Br)||jn==="combobox",Qr=(0,Le.Z)({},br);sn.forEach(function(fi){delete Qr[fi]}),Ft==null||Ft.forEach(function(fi){delete Qr[fi]});var Ta=fe.useState(!1),ja=(0,xe.Z)(Ta,2),ea=ja[0],ai=ja[1];fe.useEffect(function(){ai((0,Ke.Z)())},[]);var yi=fe.useRef(null),zi=fe.useRef(null),Gi=fe.useRef(null),Ji=fe.useRef(null),Yi=fe.useRef(null),co=fe.useRef(!1),No=_e(),jo=(0,xe.Z)(No,3),Wo=jo[0],Da=jo[1],Fi=jo[2];fe.useImperativeHandle(Kt,function(){var fi,si;return{focus:(fi=Ji.current)===null||fi===void 0?void 0:fi.focus,blur:(si=Ji.current)===null||si===void 0?void 0:si.blur,scrollTo:function(Xt){var an;return(an=Yi.current)===null||an===void 0?void 0:an.scrollTo(Xt)},nativeElement:yi.current||zi.current}});var ri=fe.useMemo(function(){var fi;if(jn!=="combobox")return Fa;var si=(fi=Tt[0])===null||fi===void 0?void 0:fi.value;return typeof si=="string"||typeof si=="number"?String(si):""},[Fa,jn,Tt]),So=jn==="combobox"&&typeof Mr=="function"&&Mr()||null,di=typeof Zr=="function"&&Zr(),il=(0,Te.x1)(zi,di==null||(ft=di.props)===null||ft===void 0?void 0:ft.ref),jl=fe.useState(!1),Pl=(0,xe.Z)(jl,2),Vo=Pl[0],Yo=Pl[1];(0,ct.Z)(function(){Yo(!0)},[]);var no=(0,Ne.Z)(!1,{defaultValue:Rr,value:Er}),Ol=(0,xe.Z)(no,2),Gl=Ol[0],Nl=Ol[1],Fo=Vo?Gl:!1,es=!zn&&Ut;(gr||es&&Fo&&jn==="combobox")&&(Fo=!1);var as=es?!1:Fo,Ni=fe.useCallback(function(fi){var si=fi!==void 0?fi:!Fo;gr||(Nl(si),Fo!==si&&(Xr==null||Xr(si)))},[gr,Fo,Nl,Xr]),Qi=fe.useMemo(function(){return(Ia||[]).some(function(fi){return[`
|
|
|
`,`\r
|
|
|
`].includes(fi)})},[Ia]),Ii=fe.useContext(Ye)||{},hi=Ii.maxCount,Hi=Ii.rawValues,uo=function(si,Bt,Xt){if(!(Br&&Ot(hi)&&(Hi==null?void 0:Hi.size)>=hi)){var an=!0,In=si;ta==null||ta(null);var Va=At(si,Ia,Ot(hi)?hi-Hi.size:void 0),zr=Xt?null:Va;return jn!=="combobox"&&zr&&(In="",Xa==null||Xa(zr),Ni(!1),an=!1),ya&&ri!==In&&ya(In,{source:Bt?"typing":"effect"}),an}},Fl=function(si){!si||!si.trim()||ya(si,{source:"submit"})};fe.useEffect(function(){!Fo&&!Br&&jn!=="combobox"&&uo("",!1,!1)},[Fo]),fe.useEffect(function(){Gl&&gr&&Nl(!1),gr&&!co.current&&Da(!1)},[gr]);var oo=Fe(),Qo=(0,xe.Z)(oo,2),Jo=Qo[0],vn=Qo[1],gn=fe.useRef(!1),Nn=function(si){var Bt=Jo(),Xt=si.key,an=Xt==="Enter";if(an&&(jn!=="combobox"&&si.preventDefault(),Fo||Ni(!0)),vn(!!ri),Xt==="Backspace"&&!Bt&&Br&&!ri&&Tt.length){for(var In=(0,ve.Z)(Tt),Va=null,zr=In.length-1;zr>=0;zr-=1){var Jn=In[zr];if(!Jn.disabled){In.splice(zr,1),Va=Jn;break}}Va&&_t(In,{type:"remove",values:[Va]})}for(var hr=arguments.length,Ar=new Array(hr>1?hr-1:0),aa=1;aa<hr;aa++)Ar[aa-1]=arguments[aa];if(Fo&&(!an||!gn.current)){var Wr;an&&(gn.current=!0),(Wr=Yi.current)===null||Wr===void 0||Wr.onKeyDown.apply(Wr,[si].concat(Ar))}jr==null||jr.apply(void 0,[si].concat(Ar))},Sr=function(si){for(var Bt=arguments.length,Xt=new Array(Bt>1?Bt-1:0),an=1;an<Bt;an++)Xt[an-1]=arguments[an];if(Fo){var In;(In=Yi.current)===null||In===void 0||In.onKeyUp.apply(In,[si].concat(Xt))}si.key==="Enter"&&(gn.current=!1),tr==null||tr.apply(void 0,[si].concat(Xt))},Or=function(si){var Bt=Tt.filter(function(Xt){return Xt!==si});_t(Bt,{type:"remove",values:[si]})},rr=function(){gn.current=!1},ir=fe.useRef(!1),kn=function(){Da(!0),gr||(Cr&&!ir.current&&Cr.apply(void 0,arguments),Qn.includes("focus")&&Ni(!0)),ir.current=!0},qn=function(){co.current=!0,Da(!1,function(){ir.current=!1,co.current=!1,Ni(!1)}),!gr&&(ri&&(jn==="tags"?ya(ri,{source:"submit"}):jn==="multiple"&&ya("",{source:"blur"})),xr&&xr.apply(void 0,arguments))},yr=[];fe.useEffect(function(){return function(){yr.forEach(function(fi){return clearTimeout(fi)}),yr.splice(0,yr.length)}},[]);var na=function(si){var Bt,Xt=si.target,an=(Bt=Gi.current)===null||Bt===void 0?void 0:Bt.getPopupElement();if(an&&an.contains(Xt)){var In=setTimeout(function(){var hr=yr.indexOf(In);if(hr!==-1&&yr.splice(hr,1),Fi(),!ea&&!an.contains(document.activeElement)){var Ar;(Ar=Ji.current)===null||Ar===void 0||Ar.focus()}});yr.push(In)}for(var Va=arguments.length,zr=new Array(Va>1?Va-1:0),Jn=1;Jn<Va;Jn++)zr[Jn-1]=arguments[Jn];sa==null||sa.apply(void 0,[si].concat(zr))},xi=fe.useState({}),ki=(0,xe.Z)(xi,2),fo=ki[1];function ro(){fo({})}var Ha;di&&(Ha=function(si){Ni(si)}),He(function(){var fi;return[yi.current,(fi=Gi.current)===null||fi===void 0?void 0:fi.getPopupElement()]},as,Ni,!!di);var ma=fe.useMemo(function(){return(0,Le.Z)((0,Le.Z)({},Mt),{},{notFoundContent:zn,open:Fo,triggerOpen:as,id:Rt,showSearch:$r,multiple:Br,toggleOpen:Ni})},[Mt,zn,as,Fo,Rt,$r,Br,Ni]),Vr=!!Za||Ir,Ti;Vr&&(Ti=fe.createElement(Ie,{className:Oe()("".concat(it,"-arrow"),(0,ce.Z)({},"".concat(it,"-arrow-loading"),Ir)),customizeIcon:Za,customizeIconProps:{loading:Ir,searchValue:ri,open:Fo,focused:Wo,showSearch:$r}}));var Li=function(){var si;Un==null||Un(),(si=Ji.current)===null||si===void 0||si.focus(),_t([],{type:"clear",values:Tt}),uo("",!1,!1)},vo=Pe(it,Li,Tt,pa,Sa,gr,ri,jn),To=vo.allowClear,Pi=vo.clearIcon,go=fe.createElement(la,{ref:Yi}),bi=Oe()(it,ht,(0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)({},"".concat(it,"-focused"),Wo),"".concat(it,"-multiple"),Br),"".concat(it,"-single"),!Br),"".concat(it,"-allow-clear"),pa),"".concat(it,"-show-arrow"),Vr),"".concat(it,"-disabled"),gr),"".concat(it,"-loading"),Ir),"".concat(it,"-open"),Fo),"".concat(it,"-customize-input"),So),"".concat(it,"-show-search"),$r)),ga=fe.createElement(ae,{ref:Gi,disabled:gr,prefixCls:it,visible:as,popupElement:go,animation:Kr,transitionName:Ya,dropdownStyle:_i,dropdownClassName:$i,direction:pr,dropdownMatchSelectWidth:za,dropdownRender:Di,dropdownAlign:pi,placement:Wi,builtinPlacements:Ci,getPopupContainer:ei,empty:Ut,getTriggerDOMNode:function(si){return zi.current||si},onPopupVisibleChange:Ha,onPopupMouseEnter:ro},di?fe.cloneElement(di,{ref:il}):fe.createElement(Ht,(0,y.Z)({},Mt,{domRef:zi,prefixCls:it,inputElement:So,ref:Ji,id:Rt,prefix:kr,showSearch:$r,autoClearSearchValue:Gr,mode:jn,activeDescendantId:xa,tagRender:ar,values:Tt,open:Fo,onToggleOpen:Ni,activeValue:oa,searchValue:ri,onSearch:uo,onSearchSubmit:Fl,onRemove:Or,tokenWithEnter:Qi,onInputBlur:rr}))),vi;return di?vi=ga:vi=fe.createElement("div",(0,y.Z)({className:bi},Qr,{ref:yi,onMouseDown:na,onKeyDown:Nn,onKeyUp:Sr,onFocus:kn,onBlur:qn}),fe.createElement(rt,{visible:Wo&&!Fo,values:Tt}),ga,Ti,To&&Pi),fe.createElement(tt.Provider,{value:ma},vi)}),kt=pn,Gt=function(){return null};Gt.isSelectOptGroup=!0;var Pt=Gt,Je=function(){return null};Je.isSelectOption=!0;var It=Je,tn=E(80547),mn=E(2738),nt=E(48911);function Nt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Jt=["disabled","title","children","style","className"];function xt(Mt){return typeof Mt=="string"||typeof Mt=="number"}var Wt=function(Kt,ft){var Rt=Et(),it=Rt.prefixCls,ht=Rt.id,fn=Rt.open,ar=Rt.multiple,pr=Rt.mode,Ft=Rt.searchValue,Tt=Rt.toggleOpen,_t=Rt.notFoundContent,Ut=Rt.onPopupScroll,Fn=fe.useContext(Ye),zn=Fn.maxCount,Un=Fn.flattenOptions,jn=Fn.onActiveValue,gr=Fn.defaultActiveFirstOption,Ir=Fn.onSelect,Mr=Fn.menuItemSelectedIcon,Zr=Fn.rawValues,Er=Fn.fieldNames,Rr=Fn.virtual,Xr=Fn.direction,oa=Fn.listHeight,ta=Fn.listItemHeight,xa=Fn.optionRender,Fa="".concat(it,"-item"),Gr=(0,tn.Z)(function(){return Un},[fn,Un],function(Pr,Qn){return Qn[0]&&Pr[1]!==Qn[1]}),ya=fe.useRef(null),Xa=fe.useMemo(function(){return ar&&Ot(zn)&&(Zr==null?void 0:Zr.size)>=zn},[ar,zn,Zr==null?void 0:Zr.size]),Ia=function(Qn){Qn.preventDefault()},pa=function(Qn){var Cr;(Cr=ya.current)===null||Cr===void 0||Cr.scrollTo(typeof Qn=="number"?{index:Qn}:Qn)},kr=fe.useCallback(function(Pr){return pr==="combobox"?!1:Zr.has(Pr)},[pr,(0,ve.Z)(Zr).toString(),Zr.size]),Za=function(Qn){for(var Cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,xr=Gr.length,tr=0;tr<xr;tr+=1){var jr=(Qn+tr*Cr+xr)%xr,sa=Gr[jr]||{},br=sa.group,Br=sa.data;if(!br&&!(Br!=null&&Br.disabled)&&(kr(Br.value)||!Xa))return jr}return-1},Sa=fe.useState(function(){return Za(0)}),la=(0,xe.Z)(Sa,2),Kr=la[0],Ya=la[1],_i=function(Qn){var Cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Ya(Qn);var xr={source:Cr?"keyboard":"mouse"},tr=Gr[Qn];if(!tr){jn(null,-1,xr);return}jn(tr.value,Qn,xr)};(0,fe.useEffect)(function(){_i(gr!==!1?Za(0):-1)},[Gr.length,Ft]);var $i=fe.useCallback(function(Pr){return pr==="combobox"?String(Pr).toLowerCase()===Ft.toLowerCase():Zr.has(Pr)},[pr,Ft,(0,ve.Z)(Zr).toString(),Zr.size]);(0,fe.useEffect)(function(){var Pr=setTimeout(function(){if(!ar&&fn&&Zr.size===1){var Cr=Array.from(Zr)[0],xr=Gr.findIndex(function(tr){var jr=tr.data;return Ft?String(jr.value).startsWith(Ft):jr.value===Cr});xr!==-1&&(_i(xr),pa(xr))}});if(fn){var Qn;(Qn=ya.current)===null||Qn===void 0||Qn.scrollTo(void 0)}return function(){return clearTimeout(Pr)}},[fn,Ft]);var za=function(Qn){Qn!==void 0&&Ir(Qn,{selected:!Zr.has(Qn)}),ar||Tt(!1)};if(fe.useImperativeHandle(ft,function(){return{onKeyDown:function(Qn){var Cr=Qn.which,xr=Qn.ctrlKey;switch(Cr){case Xe.Z.N:case Xe.Z.P:case Xe.Z.UP:case Xe.Z.DOWN:{var tr=0;if(Cr===Xe.Z.UP?tr=-1:Cr===Xe.Z.DOWN?tr=1:Nt()&&xr&&(Cr===Xe.Z.N?tr=1:Cr===Xe.Z.P&&(tr=-1)),tr!==0){var jr=Za(Kr+tr,tr);pa(jr),_i(jr,!0)}break}case Xe.Z.TAB:case Xe.Z.ENTER:{var sa,br=Gr[Kr];br&&!(br!=null&&(sa=br.data)!==null&&sa!==void 0&&sa.disabled)&&!Xa?za(br.value):za(void 0),fn&&Qn.preventDefault();break}case Xe.Z.ESC:Tt(!1),fn&&Qn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Qn){pa(Qn)}}}),Gr.length===0)return fe.createElement("div",{role:"listbox",id:"".concat(ht,"_list"),className:"".concat(Fa,"-empty"),onMouseDown:Ia},_t);var Di=Object.keys(Er).map(function(Pr){return Er[Pr]}),pi=function(Qn){return Qn.label};function Wi(Pr,Qn){var Cr=Pr.group;return{role:Cr?"presentation":"option",id:"".concat(ht,"_list_").concat(Qn)}}var Ci=function(Qn){var Cr=Gr[Qn];if(!Cr)return null;var xr=Cr.data||{},tr=xr.value,jr=Cr.group,sa=(0,gt.Z)(xr,!0),br=pi(Cr);return Cr?fe.createElement("div",(0,y.Z)({"aria-label":typeof br=="string"&&!jr?br:null},sa,{key:Qn},Wi(Cr,Qn),{"aria-selected":$i(tr)}),tr):null},ei={role:"listbox",id:"".concat(ht,"_list")};return fe.createElement(fe.Fragment,null,Rr&&fe.createElement("div",(0,y.Z)({},ei,{style:{height:0,width:0,overflow:"hidden"}}),Ci(Kr-1),Ci(Kr),Ci(Kr+1)),fe.createElement(nt.Z,{itemKey:"key",ref:ya,data:Gr,height:oa,itemHeight:ta,fullHeight:!1,onMouseDown:Ia,onScroll:Ut,virtual:Rr,direction:Xr,innerProps:Rr?null:ei},function(Pr,Qn){var Cr=Pr.group,xr=Pr.groupOption,tr=Pr.data,jr=Pr.label,sa=Pr.value,br=tr.key;if(Cr){var Br,$r=(Br=tr.title)!==null&&Br!==void 0?Br:xt(jr)?jr.toString():void 0;return fe.createElement("div",{className:Oe()(Fa,"".concat(Fa,"-group"),tr.className),title:$r},jr!==void 0?jr:br)}var Qr=tr.disabled,Ta=tr.title,ja=tr.children,ea=tr.style,ai=tr.className,yi=(0,ge.Z)(tr,Jt),zi=(0,mn.Z)(yi,Di),Gi=kr(sa),Ji=Qr||!Gi&&Xa,Yi="".concat(Fa,"-option"),co=Oe()(Fa,Yi,ai,(0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)({},"".concat(Yi,"-grouped"),xr),"".concat(Yi,"-active"),Kr===Qn&&!Ji),"".concat(Yi,"-disabled"),Ji),"".concat(Yi,"-selected"),Gi)),No=pi(Pr),jo=!Mr||typeof Mr=="function"||Gi,Wo=typeof No=="number"?No:No||sa,Da=xt(Wo)?Wo.toString():void 0;return Ta!==void 0&&(Da=Ta),fe.createElement("div",(0,y.Z)({},(0,gt.Z)(zi),Rr?{}:Wi(Pr,Qn),{"aria-selected":$i(sa),className:co,title:Da,onMouseMove:function(){Kr===Qn||Ji||_i(Qn)},onClick:function(){Ji||za(sa)},style:ea}),fe.createElement("div",{className:"".concat(Yi,"-content")},typeof xa=="function"?xa(Pr,{index:Qn}):Wo),fe.isValidElement(Mr)||Gi,jo&&fe.createElement(Ie,{className:"".concat(Fa,"-option-state"),customizeIcon:Mr,customizeIconProps:{value:sa,disabled:Ji,isSelected:Gi}},Gi?"\u2713":null))}))},qt=fe.forwardRef(Wt),Tn=qt,Gn=function(Mt,Kt){var ft=fe.useRef({values:new Map,options:new Map}),Rt=fe.useMemo(function(){var ht=ft.current,fn=ht.values,ar=ht.options,pr=Mt.map(function(_t){if(_t.label===void 0){var Ut;return(0,Le.Z)((0,Le.Z)({},_t),{},{label:(Ut=fn.get(_t.value))===null||Ut===void 0?void 0:Ut.label})}return _t}),Ft=new Map,Tt=new Map;return pr.forEach(function(_t){Ft.set(_t.value,_t),Tt.set(_t.value,Kt.get(_t.value)||ar.get(_t.value))}),ft.current.values=Ft,ft.current.options=Tt,pr},[Mt,Kt]),it=fe.useCallback(function(ht){return Kt.get(ht)||ft.current.options.get(ht)},[Kt]);return[Rt,it]};function On(Mt,Kt){return Qe(Mt).join("").toUpperCase().includes(Kt)}var Hn=function(Mt,Kt,ft,Rt,it){return fe.useMemo(function(){if(!ft||Rt===!1)return Mt;var ht=Kt.options,fn=Kt.label,ar=Kt.value,pr=[],Ft=typeof Rt=="function",Tt=ft.toUpperCase(),_t=Ft?Rt:function(Fn,zn){return it?On(zn[it],Tt):zn[ht]?On(zn[fn!=="children"?fn:"label"],Tt):On(zn[ar],Tt)},Ut=Ft?function(Fn){return bt(Fn)}:function(Fn){return Fn};return Mt.forEach(function(Fn){if(Fn[ht]){var zn=_t(ft,Ut(Fn));if(zn)pr.push(Fn);else{var Un=Fn[ht].filter(function(jn){return _t(ft,Ut(jn))});Un.length&&pr.push((0,Le.Z)((0,Le.Z)({},Fn),{},(0,ce.Z)({},ht,Un)))}return}_t(ft,Ut(Fn))&&pr.push(Fn)}),pr},[Mt,Rt,it,ft,Kt])},Zt=E(6551),Dn=E(11592),nn=["children","value"],Sn=["children"];function rn(Mt){var Kt=Mt,ft=Kt.key,Rt=Kt.props,it=Rt.children,ht=Rt.value,fn=(0,ge.Z)(Rt,nn);return(0,Le.Z)({key:ft,value:ht!==void 0?ht:ft,children:it},fn)}function En(Mt){var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Dn.Z)(Mt).map(function(ft,Rt){if(!fe.isValidElement(ft)||!ft.type)return null;var it=ft,ht=it.type.isSelectOptGroup,fn=it.key,ar=it.props,pr=ar.children,Ft=(0,ge.Z)(ar,Sn);return Kt||!ht?rn(ft):(0,Le.Z)((0,Le.Z)({key:"__RC_SELECT_GRP__".concat(fn===null?Rt:fn,"__"),label:fn},Ft),{},{options:En(pr)})}).filter(function(ft){return ft})}var xn=function(Kt,ft,Rt,it,ht){return fe.useMemo(function(){var fn=Kt,ar=!Kt;ar&&(fn=En(ft));var pr=new Map,Ft=new Map,Tt=function(Fn,zn,Un){Un&&typeof Un=="string"&&Fn.set(zn[Un],zn)},_t=function Ut(Fn){for(var zn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Un=0;Un<Fn.length;Un+=1){var jn=Fn[Un];!jn[Rt.options]||zn?(pr.set(jn[Rt.value],jn),Tt(Ft,jn,Rt.label),Tt(Ft,jn,it),Tt(Ft,jn,ht)):Ut(jn[Rt.options],!0)}};return _t(fn),{options:fn,valueOptions:pr,labelOptions:Ft}},[Kt,ft,Rt,it,ht])},Vn=xn;function sr(Mt){var Kt=fe.useRef();Kt.current=Mt;var ft=fe.useCallback(function(){return Kt.current.apply(Kt,arguments)},[]);return ft}function er(Mt){var Kt=Mt.mode,ft=Mt.options,Rt=Mt.children,it=Mt.backfill,ht=Mt.allowClear,fn=Mt.placeholder,ar=Mt.getInputElement,pr=Mt.showSearch,Ft=Mt.onSearch,Tt=Mt.defaultOpen,_t=Mt.autoFocus,Ut=Mt.labelInValue,Fn=Mt.value,zn=Mt.inputValue,Un=Mt.optionLabelProp,jn=isMultiple(Kt),gr=pr!==void 0?pr:jn||Kt==="combobox",Ir=ft||convertChildrenToData(Rt);if(warning(Kt!=="tags"||Ir.every(function(Rr){return!Rr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Kt==="tags"||Kt==="combobox"){var Mr=Ir.some(function(Rr){return Rr.options?Rr.options.some(function(Xr){return typeof("value"in Xr?Xr.value:Xr.key)=="number"}):typeof("value"in Rr?Rr.value:Rr.key)=="number"});warning(!Mr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Kt!=="combobox"||!Un,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Kt==="combobox"||!it,"`backfill` only works with `combobox` mode."),warning(Kt==="combobox"||!ar,"`getInputElement` only work with `combobox` mode."),noteOnce(Kt!=="combobox"||!ar||!ht||!fn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ft&&!gr&&Kt!=="combobox"&&Kt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Tt||_t,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Fn!=null){var Zr=toArray(Fn);warning(!Ut||Zr.every(function(Rr){return _typeof(Rr)==="object"&&("key"in Rr||"value"in Rr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!jn||Array.isArray(Fn),"`value` should be array when `mode` is `multiple` or `tags`")}if(Rt){var Er=null;toNodeArray(Rt).some(function(Rr){if(!React.isValidElement(Rr)||!Rr.type)return!1;var Xr=Rr,oa=Xr.type;if(oa.isSelectOption)return!1;if(oa.isSelectOptGroup){var ta=toNodeArray(Rr.props.children).every(function(xa){return!React.isValidElement(xa)||!Rr.type||xa.type.isSelectOption?!0:(Er=xa.type,!1)});return!ta}return Er=oa,!0}),Er&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Er.displayName||Er.name||Er,"`.")),warning(zn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function cr(Mt,Kt){if(Mt){var ft=function Rt(it){for(var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,fn=0;fn<it.length;fn++){var ar=it[fn];if(ar[Kt==null?void 0:Kt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!ht&&Array.isArray(ar[Kt==null?void 0:Kt.options])&&Rt(ar[Kt==null?void 0:Kt.options],!0))break}};ft(Mt)}}var Dr=null,mr=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Hr=["inputValue"];function Lr(Mt){return!Mt||(0,Se.Z)(Mt)!=="object"}var An=fe.forwardRef(function(Mt,Kt){var ft=Mt.id,Rt=Mt.mode,it=Mt.prefixCls,ht=it===void 0?"rc-select":it,fn=Mt.backfill,ar=Mt.fieldNames,pr=Mt.inputValue,Ft=Mt.searchValue,Tt=Mt.onSearch,_t=Mt.autoClearSearchValue,Ut=_t===void 0?!0:_t,Fn=Mt.onSelect,zn=Mt.onDeselect,Un=Mt.dropdownMatchSelectWidth,jn=Un===void 0?!0:Un,gr=Mt.filterOption,Ir=Mt.filterSort,Mr=Mt.optionFilterProp,Zr=Mt.optionLabelProp,Er=Mt.options,Rr=Mt.optionRender,Xr=Mt.children,oa=Mt.defaultActiveFirstOption,ta=Mt.menuItemSelectedIcon,xa=Mt.virtual,Fa=Mt.direction,Gr=Mt.listHeight,ya=Gr===void 0?200:Gr,Xa=Mt.listItemHeight,Ia=Xa===void 0?20:Xa,pa=Mt.labelRender,kr=Mt.value,Za=Mt.defaultValue,Sa=Mt.labelInValue,la=Mt.onChange,Kr=Mt.maxCount,Ya=(0,ge.Z)(Mt,mr),_i=(0,Zt.ZP)(ft),$i=wn(Rt),za=!!(!Er&&Xr),Di=fe.useMemo(function(){return gr===void 0&&Rt==="combobox"?!1:gr},[gr,Rt]),pi=fe.useMemo(function(){return at(ar,za)},[JSON.stringify(ar),za]),Wi=(0,Ne.Z)("",{value:Ft!==void 0?Ft:pr,postState:function(Qi){return Qi||""}}),Ci=(0,xe.Z)(Wi,2),ei=Ci[0],Pr=Ci[1],Qn=Vn(Er,Xr,pi,Mr,Zr),Cr=Qn.valueOptions,xr=Qn.labelOptions,tr=Qn.options,jr=fe.useCallback(function(Ni){var Qi=Qe(Ni);return Qi.map(function(Ii){var hi,Hi,uo,Fl,oo;if(Lr(Ii))hi=Ii;else{var Qo;uo=Ii.key,Hi=Ii.label,hi=(Qo=Ii.value)!==null&&Qo!==void 0?Qo:uo}var Jo=Cr.get(hi);if(Jo){var vn;if(Hi===void 0&&(Hi=Jo==null?void 0:Jo[Zr||pi.label]),uo===void 0&&(uo=(vn=Jo==null?void 0:Jo.key)!==null&&vn!==void 0?vn:hi),Fl=Jo==null?void 0:Jo.disabled,oo=Jo==null?void 0:Jo.title,0)var gn}return{label:Hi,value:hi,key:uo,disabled:Fl,title:oo}})},[pi,Zr,Cr]),sa=(0,Ne.Z)(Za,{value:kr}),br=(0,xe.Z)(sa,2),Br=br[0],$r=br[1],Qr=fe.useMemo(function(){var Ni,Qi=$i&&Br===null?[]:Br,Ii=jr(Qi);return Rt==="combobox"&&be((Ni=Ii[0])===null||Ni===void 0?void 0:Ni.value)?[]:Ii},[Br,jr,Rt,$i]),Ta=Gn(Qr,Cr),ja=(0,xe.Z)(Ta,2),ea=ja[0],ai=ja[1],yi=fe.useMemo(function(){if(!Rt&&ea.length===1){var Ni=ea[0];if(Ni.value===null&&(Ni.label===null||Ni.label===void 0))return[]}return ea.map(function(Qi){var Ii;return(0,Le.Z)((0,Le.Z)({},Qi),{},{label:(Ii=typeof pa=="function"?pa(Qi):Qi.label)!==null&&Ii!==void 0?Ii:Qi.value})})},[Rt,ea,pa]),zi=fe.useMemo(function(){return new Set(ea.map(function(Ni){return Ni.value}))},[ea]);fe.useEffect(function(){if(Rt==="combobox"){var Ni,Qi=(Ni=ea[0])===null||Ni===void 0?void 0:Ni.value;Pr(Ce(Qi)?String(Qi):"")}},[ea]);var Gi=sr(function(Ni,Qi){var Ii=Qi!=null?Qi:Ni;return(0,ce.Z)((0,ce.Z)({},pi.value,Ni),pi.label,Ii)}),Ji=fe.useMemo(function(){if(Rt!=="tags")return tr;var Ni=(0,ve.Z)(tr),Qi=function(hi){return Cr.has(hi)};return(0,ve.Z)(ea).sort(function(Ii,hi){return Ii.value<hi.value?-1:1}).forEach(function(Ii){var hi=Ii.value;Qi(hi)||Ni.push(Gi(hi,Ii.label))}),Ni},[Gi,tr,Cr,ea,Rt]),Yi=Hn(Ji,pi,ei,Di,Mr),co=fe.useMemo(function(){return Rt!=="tags"||!ei||Yi.some(function(Ni){return Ni[Mr||"value"]===ei})||Yi.some(function(Ni){return Ni[pi.value]===ei})?Yi:[Gi(ei)].concat((0,ve.Z)(Yi))},[Gi,Mr,Rt,Yi,ei,pi]),No=function Ni(Qi){var Ii=(0,ve.Z)(Qi).sort(function(hi,Hi){return Ir(hi,Hi,{searchValue:ei})});return Ii.map(function(hi){return Array.isArray(hi.options)?(0,Le.Z)((0,Le.Z)({},hi),{},{options:hi.options.length>0?Ni(hi.options):hi.options}):hi})},jo=fe.useMemo(function(){return Ir?No(co):co},[co,Ir,ei]),Wo=fe.useMemo(function(){return qe(jo,{fieldNames:pi,childrenAsData:za})},[jo,pi,za]),Da=function(Qi){var Ii=jr(Qi);if($r(Ii),la&&(Ii.length!==ea.length||Ii.some(function(uo,Fl){var oo;return((oo=ea[Fl])===null||oo===void 0?void 0:oo.value)!==(uo==null?void 0:uo.value)}))){var hi=Sa?Ii:Ii.map(function(uo){return uo.value}),Hi=Ii.map(function(uo){return bt(ai(uo.value))});la($i?hi:hi[0],$i?Hi:Hi[0])}},Fi=fe.useState(null),ri=(0,xe.Z)(Fi,2),So=ri[0],di=ri[1],il=fe.useState(0),jl=(0,xe.Z)(il,2),Pl=jl[0],Vo=jl[1],Yo=oa!==void 0?oa:Rt!=="combobox",no=fe.useCallback(function(Ni,Qi){var Ii=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},hi=Ii.source,Hi=hi===void 0?"keyboard":hi;Vo(Qi),fn&&Rt==="combobox"&&Ni!==null&&Hi==="keyboard"&&di(String(Ni))},[fn,Rt]),Ol=function(Qi,Ii,hi){var Hi=function(){var Or,rr=ai(Qi);return[Sa?{label:rr==null?void 0:rr[pi.label],value:Qi,key:(Or=rr==null?void 0:rr.key)!==null&&Or!==void 0?Or:Qi}:Qi,bt(rr)]};if(Ii&&Fn){var uo=Hi(),Fl=(0,xe.Z)(uo,2),oo=Fl[0],Qo=Fl[1];Fn(oo,Qo)}else if(!Ii&&zn&&hi!=="clear"){var Jo=Hi(),vn=(0,xe.Z)(Jo,2),gn=vn[0],Nn=vn[1];zn(gn,Nn)}},Gl=sr(function(Ni,Qi){var Ii,hi=$i?Qi.selected:!0;hi?Ii=$i?[].concat((0,ve.Z)(ea),[Ni]):[Ni]:Ii=ea.filter(function(Hi){return Hi.value!==Ni}),Da(Ii),Ol(Ni,hi),Rt==="combobox"?di(""):(!wn||Ut)&&(Pr(""),di(""))}),Nl=function(Qi,Ii){Da(Qi);var hi=Ii.type,Hi=Ii.values;(hi==="remove"||hi==="clear")&&Hi.forEach(function(uo){Ol(uo.value,!1,hi)})},Fo=function(Qi,Ii){if(Pr(Qi),di(null),Ii.source==="submit"){var hi=(Qi||"").trim();if(hi){var Hi=Array.from(new Set([].concat((0,ve.Z)(zi),[hi])));Da(Hi),Ol(hi,!0),Pr("")}return}Ii.source!=="blur"&&(Rt==="combobox"&&Da(Qi),Tt==null||Tt(Qi))},es=function(Qi){var Ii=Qi;Rt!=="tags"&&(Ii=Qi.map(function(Hi){var uo=xr.get(Hi);return uo==null?void 0:uo.value}).filter(function(Hi){return Hi!==void 0}));var hi=Array.from(new Set([].concat((0,ve.Z)(zi),(0,ve.Z)(Ii))));Da(hi),hi.forEach(function(Hi){Ol(Hi,!0)})},as=fe.useMemo(function(){var Ni=xa!==!1&&jn!==!1;return(0,Le.Z)((0,Le.Z)({},Qn),{},{flattenOptions:Wo,onActiveValue:no,defaultActiveFirstOption:Yo,onSelect:Gl,menuItemSelectedIcon:ta,rawValues:zi,fieldNames:pi,virtual:Ni,direction:Fa,listHeight:ya,listItemHeight:Ia,childrenAsData:za,maxCount:Kr,optionRender:Rr})},[Kr,Qn,Wo,no,Yo,Gl,ta,zi,pi,xa,jn,Fa,ya,Ia,za,Rr]);return fe.createElement(Ye.Provider,{value:as},fe.createElement(kt,(0,y.Z)({},Ya,{id:_i,prefixCls:ht,ref:Kt,omitDomProps:Hr,mode:Rt,displayValues:yi,onDisplayValuesChange:Nl,direction:Fa,searchValue:ei,onSearch:Fo,autoClearSearchValue:Ut,onSearchSplit:es,dropdownMatchSelectWidth:jn,OptionList:Tn,emptyOptions:!Wo.length,activeValue:So,activeDescendantId:"".concat(_i,"_list_").concat(Pl)})))}),Rn=An;Rn.Option=It,Rn.OptGroup=Pt;var dr=Rn,vr=dr},22711:function(Mn,Yt,E){"use strict";E.r(Yt),E.d(Yt,{ResizableTextArea:function(){return Ee},default:function(){return wt}});var y=E(54476),ve=E(20068),ce=E(33885),Le=E(94480),xe=E(42978),ge=E(75931),Se=E(92310),Ne=E.n(Se),Be=E(36901),fe=E(66003),$e=E(30292),Oe=E(18929),ct=E(59301),Ke=E(76190),Te=E(29301),we=E(34280),Ie=E(16089),Pe=`
|
|
|
min-height:0 !important;
|
|
|
max-height:none !important;
|
|
|
height:0 !important;
|
|
|
visibility:hidden !important;
|
|
|
overflow:hidden !important;
|
|
|
position:absolute !important;
|
|
|
z-index:-1000 !important;
|
|
|
top:0 !important;
|
|
|
right:0 !important;
|
|
|
pointer-events: none !important;
|
|
|
`,tt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Et={},_e;function Fe(Qe){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,st=Qe.getAttribute("id")||Qe.getAttribute("data-reactid")||Qe.getAttribute("name");if(Ge&&Et[st])return Et[st];var Ce=window.getComputedStyle(Qe),be=Ce.getPropertyValue("box-sizing")||Ce.getPropertyValue("-moz-box-sizing")||Ce.getPropertyValue("-webkit-box-sizing"),vt=parseFloat(Ce.getPropertyValue("padding-bottom"))+parseFloat(Ce.getPropertyValue("padding-top")),zt=parseFloat(Ce.getPropertyValue("border-bottom-width"))+parseFloat(Ce.getPropertyValue("border-top-width")),jt=tt.map(function(pt){return"".concat(pt,":").concat(Ce.getPropertyValue(pt))}).join(";"),De={sizingStyle:jt,paddingSize:vt,borderSize:zt,boxSizing:be};return Ge&&st&&(Et[st]=De),De}function He(Qe){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ce=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;_e||(_e=document.createElement("textarea"),_e.setAttribute("tab-index","-1"),_e.setAttribute("aria-hidden","true"),_e.setAttribute("name","hiddenTextarea"),document.body.appendChild(_e)),Qe.getAttribute("wrap")?_e.setAttribute("wrap",Qe.getAttribute("wrap")):_e.removeAttribute("wrap");var be=Fe(Qe,Ge),vt=be.paddingSize,zt=be.borderSize,jt=be.boxSizing,De=be.sizingStyle;_e.setAttribute("style","".concat(De,";").concat(Pe)),_e.value=Qe.value||Qe.placeholder||"";var pt=void 0,ut=void 0,Qt,yt=_e.scrollHeight;if(jt==="border-box"?yt+=zt:jt==="content-box"&&(yt-=vt),st!==null||Ce!==null){_e.value=" ";var Ct=_e.scrollHeight-vt;st!==null&&(pt=Ct*st,jt==="border-box"&&(pt=pt+vt+zt),yt=Math.max(pt,yt)),Ce!==null&&(ut=Ct*Ce,jt==="border-box"&&(ut=ut+vt+zt),Qt=yt>ut?"":"hidden",yt=Math.min(ut,yt))}var mt={height:yt,overflowY:Qt,resize:"none"};return pt&&(mt.minHeight=pt),ut&&(mt.maxHeight=ut),mt}var Xe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],St=0,gt=1,ot=2,Ue=ct.forwardRef(function(Qe,Ge){var st=Qe,Ce=st.prefixCls,be=st.defaultValue,vt=st.value,zt=st.autoSize,jt=st.onResize,De=st.className,pt=st.style,ut=st.disabled,Qt=st.onChange,yt=st.onInternalAutoSize,Ct=(0,ge.Z)(st,Xe),mt=(0,Oe.Z)(be,{value:vt,postState:function(It){return It!=null?It:""}}),dn=(0,xe.Z)(mt,2),Ht=dn[0],ue=dn[1],ie=function(It){ue(It.target.value),Qt==null||Qt(It)},re=ct.useRef();ct.useImperativeHandle(Ge,function(){return{textArea:re.current}});var oe=ct.useMemo(function(){return zt&&(0,Ke.Z)(zt)==="object"?[zt.minRows,zt.maxRows]:[]},[zt]),pe=(0,xe.Z)(oe,2),ae=pe[0],me=pe[1],Ze=!!zt,Ot=function(){try{if(document.activeElement===re.current){var It=re.current,tn=It.selectionStart,mn=It.selectionEnd,nt=It.scrollTop;re.current.setSelectionRange(tn,mn),re.current.scrollTop=nt}}catch(Nt){}},at=ct.useState(ot),qe=(0,xe.Z)(at,2),bt=qe[0],At=qe[1],$t=ct.useState(),Ye=(0,xe.Z)($t,2),rt=Ye[0],Vt=Ye[1],sn=function(){At(St)};(0,we.Z)(function(){Ze&&sn()},[vt,ae,me,Ze]),(0,we.Z)(function(){if(bt===St)At(gt);else if(bt===gt){var Je=He(re.current,!1,ae,me);At(ot),Vt(Je)}else Ot()},[bt]);var wn=ct.useRef(),pn=function(){Ie.Z.cancel(wn.current)},kt=function(It){bt===ot&&(jt==null||jt(It),zt&&(pn(),wn.current=(0,Ie.Z)(function(){sn()})))};ct.useEffect(function(){return pn},[]);var Gt=Ze?rt:null,Pt=(0,ce.Z)((0,ce.Z)({},pt),Gt);return(bt===St||bt===gt)&&(Pt.overflowY="hidden",Pt.overflowX="hidden"),ct.createElement(Te.Z,{onResize:kt,disabled:!(zt||jt)},ct.createElement("textarea",(0,y.Z)({},Ct,{ref:re,style:Pt,className:Ne()(Ce,De,(0,ve.Z)({},"".concat(Ce,"-disabled"),ut)),disabled:ut,value:Ht,onChange:ie})))}),Ee=Ue,We=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Ae=ct.forwardRef(function(Qe,Ge){var st,Ce=Qe.defaultValue,be=Qe.value,vt=Qe.onFocus,zt=Qe.onBlur,jt=Qe.onChange,De=Qe.allowClear,pt=Qe.maxLength,ut=Qe.onCompositionStart,Qt=Qe.onCompositionEnd,yt=Qe.suffix,Ct=Qe.prefixCls,mt=Ct===void 0?"rc-textarea":Ct,dn=Qe.showCount,Ht=Qe.count,ue=Qe.className,ie=Qe.style,re=Qe.disabled,oe=Qe.hidden,pe=Qe.classNames,ae=Qe.styles,me=Qe.onResize,Ze=Qe.onClear,Ot=Qe.onPressEnter,at=Qe.readOnly,qe=Qe.autoSize,bt=Qe.onKeyDown,At=(0,ge.Z)(Qe,We),$t=(0,Oe.Z)(Ce,{value:be,defaultValue:Ce}),Ye=(0,xe.Z)($t,2),rt=Ye[0],Vt=Ye[1],sn=rt==null?"":String(rt),wn=ct.useState(!1),pn=(0,xe.Z)(wn,2),kt=pn[0],Gt=pn[1],Pt=ct.useRef(!1),Je=ct.useState(null),It=(0,xe.Z)(Je,2),tn=It[0],mn=It[1],nt=(0,ct.useRef)(null),Nt=(0,ct.useRef)(null),Jt=function(){var Rn;return(Rn=Nt.current)===null||Rn===void 0?void 0:Rn.textArea},xt=function(){Jt().focus()};(0,ct.useImperativeHandle)(Ge,function(){var An;return{resizableTextArea:Nt.current,focus:xt,blur:function(){Jt().blur()},nativeElement:((An=nt.current)===null||An===void 0?void 0:An.nativeElement)||Jt()}}),(0,ct.useEffect)(function(){Gt(function(An){return!re&&An})},[re]);var Wt=ct.useState(null),qt=(0,xe.Z)(Wt,2),Tn=qt[0],Gn=qt[1];ct.useEffect(function(){if(Tn){var An;(An=Jt()).setSelectionRange.apply(An,(0,Le.Z)(Tn))}},[Tn]);var On=(0,fe.Z)(Ht,dn),Hn=(st=On.max)!==null&&st!==void 0?st:pt,Zt=Number(Hn)>0,Dn=On.strategy(sn),nn=!!Hn&&Dn>Hn,Sn=function(Rn,dr){var vr=dr;!Pt.current&&On.exceedFormatter&&On.max&&On.strategy(dr)>On.max&&(vr=On.exceedFormatter(dr,{max:On.max}),dr!==vr&&Gn([Jt().selectionStart||0,Jt().selectionEnd||0])),Vt(vr),(0,$e.rJ)(Rn.currentTarget,Rn,jt,vr)},rn=function(Rn){Pt.current=!0,ut==null||ut(Rn)},En=function(Rn){Pt.current=!1,Sn(Rn,Rn.currentTarget.value),Qt==null||Qt(Rn)},xn=function(Rn){Sn(Rn,Rn.target.value)},Vn=function(Rn){Rn.key==="Enter"&&Ot&&Ot(Rn),bt==null||bt(Rn)},sr=function(Rn){Gt(!0),vt==null||vt(Rn)},er=function(Rn){Gt(!1),zt==null||zt(Rn)},cr=function(Rn){Vt(""),xt(),(0,$e.rJ)(Jt(),Rn,jt)},Dr=yt,mr;On.show&&(On.showFormatter?mr=On.showFormatter({value:sn,count:Dn,maxLength:Hn}):mr="".concat(Dn).concat(Zt?" / ".concat(Hn):""),Dr=ct.createElement(ct.Fragment,null,Dr,ct.createElement("span",{className:Ne()("".concat(mt,"-data-count"),pe==null?void 0:pe.count),style:ae==null?void 0:ae.count},mr)));var Hr=function(Rn){var dr;me==null||me(Rn),(dr=Jt())!==null&&dr!==void 0&&dr.style.height&&mn(!0)},Lr=!qe&&!dn&&!De;return ct.createElement(Be.BaseInput,{ref:nt,value:sn,allowClear:De,handleReset:cr,suffix:Dr,prefixCls:mt,classNames:(0,ce.Z)((0,ce.Z)({},pe),{},{affixWrapper:Ne()(pe==null?void 0:pe.affixWrapper,(0,ve.Z)((0,ve.Z)({},"".concat(mt,"-show-count"),dn),"".concat(mt,"-textarea-allow-clear"),De))}),disabled:re,focused:kt,className:Ne()(ue,nn&&"".concat(mt,"-out-of-range")),style:(0,ce.Z)((0,ce.Z)({},ie),tn&&!Lr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof mr=="string"?mr:void 0}},hidden:oe,readOnly:at,onClear:Ze},ct.createElement(Ee,(0,y.Z)({},At,{autoSize:qe,maxLength:pt,onKeyDown:Vn,onChange:xn,onFocus:sr,onBlur:er,onCompositionStart:rn,onCompositionEnd:En,className:Ne()(pe==null?void 0:pe.textarea),style:(0,ce.Z)((0,ce.Z)({},ae==null?void 0:ae.textarea),{},{resize:ie==null?void 0:ie.resize}),disabled:re,prefixCls:mt,onResize:Hr,ref:Nt,readOnly:at})))}),de=Ae,wt=de},639:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Et}});var y=E(54476),ve=E(20068),ce=E(33885),Le=E(42978),xe=E(75931),ge=E(59301),Se=E(92310),Ne=E.n(Se),Be=E(26112),fe=E(30699),$e=function(Fe){for(var He=Fe.prefixCls,Xe=Fe.level,St=Fe.isStart,gt=Fe.isEnd,ot="".concat(He,"-indent-unit"),Ue=[],Ee=0;Ee<Xe;Ee+=1)Ue.push(ge.createElement("span",{key:Ee,className:Ne()(ot,(0,ve.Z)((0,ve.Z)({},"".concat(ot,"-start"),St[Ee]),"".concat(ot,"-end"),gt[Ee]))}));return ge.createElement("span",{"aria-hidden":"true",className:"".concat(He,"-indent")},Ue)},Oe=ge.memo($e),ct=E(65065),Ke=E(34061),Te=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],we="open",Ie="close",Pe="---",tt=function(Fe){var He,Xe,St,gt=Fe.eventKey,ot=Fe.className,Ue=Fe.style,Ee=Fe.dragOver,We=Fe.dragOverGapTop,Ae=Fe.dragOverGapBottom,de=Fe.isLeaf,wt=Fe.isStart,Qe=Fe.isEnd,Ge=Fe.expanded,st=Fe.selected,Ce=Fe.checked,be=Fe.halfChecked,vt=Fe.loading,zt=Fe.domRef,jt=Fe.active,De=Fe.data,pt=Fe.onMouseMove,ut=Fe.selectable,Qt=(0,xe.Z)(Fe,Te),yt=ge.useContext(fe.k),Ct=ge.useContext(fe.y),mt=ge.useRef(null),dn=ge.useState(!1),Ht=(0,Le.Z)(dn,2),ue=Ht[0],ie=Ht[1],re=!!(yt.disabled||Fe.disabled||(He=Ct.nodeDisabled)!==null&&He!==void 0&&He.call(Ct,De)),oe=ge.useMemo(function(){return!yt.checkable||Fe.checkable===!1?!1:yt.checkable},[yt.checkable,Fe.checkable]),pe=function(Dn){re||yt.onNodeSelect(Dn,(0,Ke.F)(Fe))},ae=function(Dn){re||!oe||Fe.disableCheckbox||yt.onNodeCheck(Dn,(0,Ke.F)(Fe),!Ce)},me=ge.useMemo(function(){return typeof ut=="boolean"?ut:yt.selectable},[ut,yt.selectable]),Ze=function(Dn){yt.onNodeClick(Dn,(0,Ke.F)(Fe)),me?pe(Dn):ae(Dn)},Ot=function(Dn){yt.onNodeDoubleClick(Dn,(0,Ke.F)(Fe))},at=function(Dn){yt.onNodeMouseEnter(Dn,(0,Ke.F)(Fe))},qe=function(Dn){yt.onNodeMouseLeave(Dn,(0,Ke.F)(Fe))},bt=function(Dn){yt.onNodeContextMenu(Dn,(0,Ke.F)(Fe))},At=ge.useMemo(function(){return!!(yt.draggable&&(!yt.draggable.nodeDraggable||yt.draggable.nodeDraggable(De)))},[yt.draggable,De]),$t=function(Dn){Dn.stopPropagation(),ie(!0),yt.onNodeDragStart(Dn,Fe);try{Dn.dataTransfer.setData("text/plain","")}catch(nn){}},Ye=function(Dn){Dn.preventDefault(),Dn.stopPropagation(),yt.onNodeDragEnter(Dn,Fe)},rt=function(Dn){Dn.preventDefault(),Dn.stopPropagation(),yt.onNodeDragOver(Dn,Fe)},Vt=function(Dn){Dn.stopPropagation(),yt.onNodeDragLeave(Dn,Fe)},sn=function(Dn){Dn.stopPropagation(),ie(!1),yt.onNodeDragEnd(Dn,Fe)},wn=function(Dn){Dn.preventDefault(),Dn.stopPropagation(),ie(!1),yt.onNodeDrop(Dn,Fe)},pn=function(Dn){vt||yt.onNodeExpand(Dn,(0,Ke.F)(Fe))},kt=ge.useMemo(function(){var Zt=(0,ct.Z)(yt.keyEntities,gt)||{},Dn=Zt.children;return!!(Dn||[]).length},[yt.keyEntities,gt]),Gt=ge.useMemo(function(){return de===!1?!1:de||!yt.loadData&&!kt||yt.loadData&&Fe.loaded&&!kt},[de,yt.loadData,kt,Fe.loaded]);ge.useEffect(function(){vt||typeof yt.loadData=="function"&&Ge&&!Gt&&!Fe.loaded&&yt.onNodeLoad((0,Ke.F)(Fe))},[vt,yt.loadData,yt.onNodeLoad,Ge,Gt,Fe]);var Pt=ge.useMemo(function(){var Zt;return(Zt=yt.draggable)!==null&&Zt!==void 0&&Zt.icon?ge.createElement("span",{className:"".concat(yt.prefixCls,"-draggable-icon")},yt.draggable.icon):null},[yt.draggable]),Je=function(Dn){var nn=Fe.switcherIcon||yt.switcherIcon;return typeof nn=="function"?nn((0,ce.Z)((0,ce.Z)({},Fe),{},{isLeaf:Dn})):nn},It=function(){if(Gt){var Dn=Je(!0);return Dn!==!1?ge.createElement("span",{className:Ne()("".concat(yt.prefixCls,"-switcher"),"".concat(yt.prefixCls,"-switcher-noop"))},Dn):null}var nn=Je(!1);return nn!==!1?ge.createElement("span",{onClick:pn,className:Ne()("".concat(yt.prefixCls,"-switcher"),"".concat(yt.prefixCls,"-switcher_").concat(Ge?we:Ie))},nn):null},tn=ge.useMemo(function(){if(!oe)return null;var Zt=typeof oe!="boolean"?oe:null;return ge.createElement("span",{className:Ne()("".concat(yt.prefixCls,"-checkbox"),(0,ve.Z)((0,ve.Z)((0,ve.Z)({},"".concat(yt.prefixCls,"-checkbox-checked"),Ce),"".concat(yt.prefixCls,"-checkbox-indeterminate"),!Ce&&be),"".concat(yt.prefixCls,"-checkbox-disabled"),re||Fe.disableCheckbox)),onClick:ae,role:"checkbox","aria-checked":be?"mixed":Ce,"aria-disabled":re||Fe.disableCheckbox,"aria-label":"Select ".concat(typeof Fe.title=="string"?Fe.title:"tree node")},Zt)},[oe,Ce,be,re,Fe.disableCheckbox,Fe.title]),mn=ge.useMemo(function(){return Gt?null:Ge?we:Ie},[Gt,Ge]),nt=ge.useMemo(function(){return ge.createElement("span",{className:Ne()("".concat(yt.prefixCls,"-iconEle"),"".concat(yt.prefixCls,"-icon__").concat(mn||"docu"),(0,ve.Z)({},"".concat(yt.prefixCls,"-icon_loading"),vt))})},[yt.prefixCls,mn,vt]),Nt=ge.useMemo(function(){var Zt=!!yt.draggable,Dn=!Fe.disabled&&Zt&&yt.dragOverNodeKey===gt;return Dn?yt.dropIndicatorRender({dropPosition:yt.dropPosition,dropLevelOffset:yt.dropLevelOffset,indent:yt.indent,prefixCls:yt.prefixCls,direction:yt.direction}):null},[yt.dropPosition,yt.dropLevelOffset,yt.indent,yt.prefixCls,yt.direction,yt.draggable,yt.dragOverNodeKey,yt.dropIndicatorRender]),Jt=ge.useMemo(function(){var Zt=Fe.title,Dn=Zt===void 0?Pe:Zt,nn="".concat(yt.prefixCls,"-node-content-wrapper"),Sn;if(yt.showIcon){var rn=Fe.icon||yt.icon;Sn=rn?ge.createElement("span",{className:Ne()("".concat(yt.prefixCls,"-iconEle"),"".concat(yt.prefixCls,"-icon__customize"))},typeof rn=="function"?rn(Fe):rn):nt}else yt.loadData&&vt&&(Sn=nt);var En;return typeof Dn=="function"?En=Dn(De):yt.titleRender?En=yt.titleRender(De):En=Dn,ge.createElement("span",{ref:mt,title:typeof Dn=="string"?Dn:"",className:Ne()(nn,"".concat(nn,"-").concat(mn||"normal"),(0,ve.Z)({},"".concat(yt.prefixCls,"-node-selected"),!re&&(st||ue))),onMouseEnter:at,onMouseLeave:qe,onContextMenu:bt,onClick:Ze,onDoubleClick:Ot},Sn,ge.createElement("span",{className:"".concat(yt.prefixCls,"-title")},En),Nt)},[yt.prefixCls,yt.showIcon,Fe,yt.icon,nt,yt.titleRender,De,mn,at,qe,bt,Ze,Ot]),xt=(0,Be.Z)(Qt,{aria:!0,data:!0}),Wt=(0,ct.Z)(yt.keyEntities,gt)||{},qt=Wt.level,Tn=Qe[Qe.length-1],Gn=!re&&At,On=yt.draggingNodeKey===gt,Hn=ut!==void 0?{"aria-selected":!!ut}:void 0;return ge.createElement("div",(0,y.Z)({ref:zt,role:"treeitem","aria-expanded":de?void 0:Ge,className:Ne()(ot,"".concat(yt.prefixCls,"-treenode"),(St={},(0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)(St,"".concat(yt.prefixCls,"-treenode-disabled"),re),"".concat(yt.prefixCls,"-treenode-switcher-").concat(Ge?"open":"close"),!de),"".concat(yt.prefixCls,"-treenode-checkbox-checked"),Ce),"".concat(yt.prefixCls,"-treenode-checkbox-indeterminate"),be),"".concat(yt.prefixCls,"-treenode-selected"),st),"".concat(yt.prefixCls,"-treenode-loading"),vt),"".concat(yt.prefixCls,"-treenode-active"),jt),"".concat(yt.prefixCls,"-treenode-leaf-last"),Tn),"".concat(yt.prefixCls,"-treenode-draggable"),At),"dragging",On),(0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)(St,"drop-target",yt.dropTargetKey===gt),"drop-container",yt.dropContainerKey===gt),"drag-over",!re&&Ee),"drag-over-gap-top",!re&&We),"drag-over-gap-bottom",!re&&Ae),"filter-node",(Xe=yt.filterTreeNode)===null||Xe===void 0?void 0:Xe.call(yt,(0,Ke.F)(Fe))),"".concat(yt.prefixCls,"-treenode-leaf"),Gt))),style:Ue,draggable:Gn,onDragStart:Gn?$t:void 0,onDragEnter:At?Ye:void 0,onDragOver:At?rt:void 0,onDragLeave:At?Vt:void 0,onDrop:At?wn:void 0,onDragEnd:At?sn:void 0,onMouseMove:pt},Hn,xt),ge.createElement(Oe,{prefixCls:yt.prefixCls,level:qt,isStart:wt,isEnd:Qe}),Pt,It(),tn,Jt)};tt.isTreeNode=1;var Et=tt},30699:function(Mn,Yt,E){"use strict";E.d(Yt,{k:function(){return ve},y:function(){return ce}});var y=E(59301),ve=y.createContext(null),ce=y.createContext({})},3741:function(Mn,Yt,E){"use strict";E.d(Yt,{OF:function(){return gt.Z},y6:function(){return Ie.y},ZP:function(){return re}});var y=E(54476),ve=E(76190),ce=E(33885),Le=E(94480),xe=E(67732),ge=E(83652),Se=E(31226),Ne=E(42403),Be=E(158),fe=E(20068),$e=E(92310),Oe=E.n($e),ct=E(10228),Ke=E(26112),Te=E(48736),we=E(59301),Ie=E(30699),Pe=function(pe){var ae=pe.dropPosition,me=pe.dropLevelOffset,Ze=pe.indent,Ot={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(ae){case-1:Ot.top=0,Ot.left=-me*Ze;break;case 1:Ot.bottom=0,Ot.left=-me*Ze;break;case 0:Ot.bottom=0,Ot.left=Ze;break}return we.createElement("div",{style:Ot})},tt=Pe;function Et(oe){if(oe==null)throw new TypeError("Cannot destructure "+oe)}var _e=E(42978),Fe=E(75931),He=E(34280),Xe=E(48911),St=E(77900),gt=E(639);function ot(oe,pe){var ae=we.useState(!1),me=(0,_e.Z)(ae,2),Ze=me[0],Ot=me[1];(0,He.Z)(function(){if(Ze)return oe(),function(){pe()}},[Ze]),(0,He.Z)(function(){return Ot(!0),function(){Ot(!1)}},[])}var Ue=ot,Ee=E(34061),We=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Ae=we.forwardRef(function(oe,pe){var ae=oe.className,me=oe.style,Ze=oe.motion,Ot=oe.motionNodes,at=oe.motionType,qe=oe.onMotionStart,bt=oe.onMotionEnd,At=oe.active,$t=oe.treeNodeRequiredProps,Ye=(0,Fe.Z)(oe,We),rt=we.useState(!0),Vt=(0,_e.Z)(rt,2),sn=Vt[0],wn=Vt[1],pn=we.useContext(Ie.k),kt=pn.prefixCls,Gt=Ot&&at!=="hide";(0,He.Z)(function(){Ot&&Gt!==sn&&wn(Gt)},[Ot]);var Pt=function(){Ot&&qe()},Je=we.useRef(!1),It=function(){Ot&&!Je.current&&(Je.current=!0,bt())};Ue(Pt,It);var tn=function(nt){Gt===nt&&It()};return Ot?we.createElement(St.default,(0,y.Z)({ref:pe,visible:sn},Ze,{motionAppear:at==="show",onVisibleChanged:tn}),function(mn,nt){var Nt=mn.className,Jt=mn.style;return we.createElement("div",{ref:nt,className:Oe()("".concat(kt,"-treenode-motion"),Nt),style:Jt},Ot.map(function(xt){var Wt=Object.assign({},(Et(xt.data),xt.data)),qt=xt.title,Tn=xt.key,Gn=xt.isStart,On=xt.isEnd;delete Wt.children;var Hn=(0,Ee.H8)(Tn,$t);return we.createElement(gt.Z,(0,y.Z)({},Wt,Hn,{title:qt,active:At,data:xt.data,key:Tn,isStart:Gn,isEnd:On}))}))}):we.createElement(gt.Z,(0,y.Z)({domRef:pe,className:ae,style:me},Ye,{active:At}))}),de=Ae;function wt(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ae=oe.length,me=pe.length;if(Math.abs(ae-me)!==1)return{add:!1,key:null};function Ze(Ot,at){var qe=new Map;Ot.forEach(function(At){qe.set(At,!0)});var bt=at.filter(function(At){return!qe.has(At)});return bt.length===1?bt[0]:null}return ae<me?{add:!0,key:Ze(oe,pe)}:{add:!1,key:Ze(pe,oe)}}function Qe(oe,pe,ae){var me=oe.findIndex(function(qe){return qe.key===ae}),Ze=oe[me+1],Ot=pe.findIndex(function(qe){return qe.key===ae});if(Ze){var at=pe.findIndex(function(qe){return qe.key===Ze.key});return pe.slice(Ot+1,at)}return pe.slice(Ot+1)}var Ge=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],st={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ce=function(){},be="RC_TREE_MOTION_".concat(Math.random()),vt={key:be},zt={key:be,level:0,index:0,pos:"0",node:vt,nodes:[vt]},jt={parent:null,children:[],pos:zt.pos,data:vt,title:null,key:be,isStart:[],isEnd:[]};function De(oe,pe,ae,me){return pe===!1||!ae?oe:oe.slice(0,Math.ceil(ae/me)+1)}function pt(oe){var pe=oe.key,ae=oe.pos;return(0,Ee.km)(pe,ae)}function ut(oe){for(var pe=String(oe.data.key),ae=oe;ae.parent;)ae=ae.parent,pe="".concat(ae.data.key," > ").concat(pe);return pe}var Qt=we.forwardRef(function(oe,pe){var ae=oe.prefixCls,me=oe.data,Ze=oe.selectable,Ot=oe.checkable,at=oe.expandedKeys,qe=oe.selectedKeys,bt=oe.checkedKeys,At=oe.loadedKeys,$t=oe.loadingKeys,Ye=oe.halfCheckedKeys,rt=oe.keyEntities,Vt=oe.disabled,sn=oe.dragging,wn=oe.dragOverNodeKey,pn=oe.dropPosition,kt=oe.motion,Gt=oe.height,Pt=oe.itemHeight,Je=oe.virtual,It=oe.scrollWidth,tn=oe.focusable,mn=oe.activeItem,nt=oe.focused,Nt=oe.tabIndex,Jt=oe.onKeyDown,xt=oe.onFocus,Wt=oe.onBlur,qt=oe.onActiveChange,Tn=oe.onListChangeStart,Gn=oe.onListChangeEnd,On=(0,Fe.Z)(oe,Ge),Hn=we.useRef(null),Zt=we.useRef(null);we.useImperativeHandle(pe,function(){return{scrollTo:function(ar){Hn.current.scrollTo(ar)},getIndentWidth:function(){return Zt.current.offsetWidth}}});var Dn=we.useState(at),nn=(0,_e.Z)(Dn,2),Sn=nn[0],rn=nn[1],En=we.useState(me),xn=(0,_e.Z)(En,2),Vn=xn[0],sr=xn[1],er=we.useState(me),cr=(0,_e.Z)(er,2),Dr=cr[0],mr=cr[1],Hr=we.useState([]),Lr=(0,_e.Z)(Hr,2),An=Lr[0],Rn=Lr[1],dr=we.useState(null),vr=(0,_e.Z)(dr,2),Mt=vr[0],Kt=vr[1],ft=we.useRef(me);ft.current=me;function Rt(){var fn=ft.current;sr(fn),mr(fn),Rn([]),Kt(null),Gn()}(0,He.Z)(function(){rn(at);var fn=wt(Sn,at);if(fn.key!==null)if(fn.add){var ar=Vn.findIndex(function(Fn){var zn=Fn.key;return zn===fn.key}),pr=De(Qe(Vn,me,fn.key),Je,Gt,Pt),Ft=Vn.slice();Ft.splice(ar+1,0,jt),mr(Ft),Rn(pr),Kt("show")}else{var Tt=me.findIndex(function(Fn){var zn=Fn.key;return zn===fn.key}),_t=De(Qe(me,Vn,fn.key),Je,Gt,Pt),Ut=me.slice();Ut.splice(Tt+1,0,jt),mr(Ut),Rn(_t),Kt("hide")}else Vn!==me&&(sr(me),mr(me))},[at,me]),we.useEffect(function(){sn||Rt()},[sn]);var it=kt?Dr:me,ht={expandedKeys:at,selectedKeys:qe,loadedKeys:At,loadingKeys:$t,checkedKeys:bt,halfCheckedKeys:Ye,dragOverNodeKey:wn,dropPosition:pn,keyEntities:rt};return we.createElement(we.Fragment,null,nt&&mn&&we.createElement("span",{style:st,"aria-live":"assertive"},ut(mn)),we.createElement("div",null,we.createElement("input",{style:st,disabled:tn===!1||Vt,tabIndex:tn!==!1?Nt:null,onKeyDown:Jt,onFocus:xt,onBlur:Wt,value:"",onChange:Ce,"aria-label":"for screen reader"})),we.createElement("div",{className:"".concat(ae,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},we.createElement("div",{className:"".concat(ae,"-indent")},we.createElement("div",{ref:Zt,className:"".concat(ae,"-indent-unit")}))),we.createElement(Xe.Z,(0,y.Z)({},On,{data:it,itemKey:pt,height:Gt,fullHeight:!1,virtual:Je,itemHeight:Pt,scrollWidth:It,prefixCls:"".concat(ae,"-list"),ref:Hn,role:"tree",onVisibleChange:function(ar){ar.every(function(pr){return pt(pr)!==be})&&Rt()}}),function(fn){var ar=fn.pos,pr=Object.assign({},(Et(fn.data),fn.data)),Ft=fn.title,Tt=fn.key,_t=fn.isStart,Ut=fn.isEnd,Fn=(0,Ee.km)(Tt,ar);delete pr.key,delete pr.children;var zn=(0,Ee.H8)(Fn,ht);return we.createElement(de,(0,y.Z)({},pr,zn,{title:Ft,active:!!mn&&Tt===mn.key,pos:ar,data:fn.data,isStart:_t,isEnd:Ut,motion:kt,motionNodes:Tt===be?An:null,motionType:Mt,onMotionStart:Tn,onMotionEnd:Rt,treeNodeRequiredProps:ht,onMouseMove:function(){qt(null)}}))}))}),yt=Qt,Ct=E(82661),mt=E(34643),dn=E(65065),Ht=10,ue=function(oe){(0,Ne.Z)(ae,oe);var pe=(0,Be.Z)(ae);function ae(){var me;(0,xe.Z)(this,ae);for(var Ze=arguments.length,Ot=new Array(Ze),at=0;at<Ze;at++)Ot[at]=arguments[at];return me=pe.call.apply(pe,[this].concat(Ot)),(0,fe.Z)((0,Se.Z)(me),"destroyed",!1),(0,fe.Z)((0,Se.Z)(me),"delayedDragEnterLogic",void 0),(0,fe.Z)((0,Se.Z)(me),"loadingRetryTimes",{}),(0,fe.Z)((0,Se.Z)(me),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,Ee.w$)()}),(0,fe.Z)((0,Se.Z)(me),"dragStartMousePosition",null),(0,fe.Z)((0,Se.Z)(me),"dragNodeProps",null),(0,fe.Z)((0,Se.Z)(me),"currentMouseOverDroppableNodeKey",null),(0,fe.Z)((0,Se.Z)(me),"listRef",we.createRef()),(0,fe.Z)((0,Se.Z)(me),"onNodeDragStart",function(qe,bt){var At=me.state,$t=At.expandedKeys,Ye=At.keyEntities,rt=me.props.onDragStart,Vt=bt.eventKey;me.dragNodeProps=bt,me.dragStartMousePosition={x:qe.clientX,y:qe.clientY};var sn=(0,Ct._5)($t,Vt);me.setState({draggingNodeKey:Vt,dragChildrenKeys:(0,Ct.wA)(Vt,Ye),indent:me.listRef.current.getIndentWidth()}),me.setExpandedKeys(sn),window.addEventListener("dragend",me.onWindowDragEnd),rt==null||rt({event:qe,node:(0,Ee.F)(bt)})}),(0,fe.Z)((0,Se.Z)(me),"onNodeDragEnter",function(qe,bt){var At=me.state,$t=At.expandedKeys,Ye=At.keyEntities,rt=At.dragChildrenKeys,Vt=At.flattenNodes,sn=At.indent,wn=me.props,pn=wn.onDragEnter,kt=wn.onExpand,Gt=wn.allowDrop,Pt=wn.direction,Je=bt.pos,It=bt.eventKey;if(me.currentMouseOverDroppableNodeKey!==It&&(me.currentMouseOverDroppableNodeKey=It),!me.dragNodeProps){me.resetDragState();return}var tn=(0,Ct.OM)(qe,me.dragNodeProps,bt,sn,me.dragStartMousePosition,Gt,Vt,Ye,$t,Pt),mn=tn.dropPosition,nt=tn.dropLevelOffset,Nt=tn.dropTargetKey,Jt=tn.dropContainerKey,xt=tn.dropTargetPos,Wt=tn.dropAllowed,qt=tn.dragOverNodeKey;if(rt.includes(Nt)||!Wt){me.resetDragState();return}if(me.delayedDragEnterLogic||(me.delayedDragEnterLogic={}),Object.keys(me.delayedDragEnterLogic).forEach(function(Tn){clearTimeout(me.delayedDragEnterLogic[Tn])}),me.dragNodeProps.eventKey!==bt.eventKey&&(qe.persist(),me.delayedDragEnterLogic[Je]=window.setTimeout(function(){if(me.state.draggingNodeKey!==null){var Tn=(0,Le.Z)($t),Gn=(0,dn.Z)(Ye,bt.eventKey);Gn&&(Gn.children||[]).length&&(Tn=(0,Ct.L0)($t,bt.eventKey)),me.props.hasOwnProperty("expandedKeys")||me.setExpandedKeys(Tn),kt==null||kt(Tn,{node:(0,Ee.F)(bt),expanded:!0,nativeEvent:qe.nativeEvent})}},800)),me.dragNodeProps.eventKey===Nt&&nt===0){me.resetDragState();return}me.setState({dragOverNodeKey:qt,dropPosition:mn,dropLevelOffset:nt,dropTargetKey:Nt,dropContainerKey:Jt,dropTargetPos:xt,dropAllowed:Wt}),pn==null||pn({event:qe,node:(0,Ee.F)(bt),expandedKeys:$t})}),(0,fe.Z)((0,Se.Z)(me),"onNodeDragOver",function(qe,bt){var At=me.state,$t=At.dragChildrenKeys,Ye=At.flattenNodes,rt=At.keyEntities,Vt=At.expandedKeys,sn=At.indent,wn=me.props,pn=wn.onDragOver,kt=wn.allowDrop,Gt=wn.direction;if(me.dragNodeProps){var Pt=(0,Ct.OM)(qe,me.dragNodeProps,bt,sn,me.dragStartMousePosition,kt,Ye,rt,Vt,Gt),Je=Pt.dropPosition,It=Pt.dropLevelOffset,tn=Pt.dropTargetKey,mn=Pt.dropContainerKey,nt=Pt.dropTargetPos,Nt=Pt.dropAllowed,Jt=Pt.dragOverNodeKey;$t.includes(tn)||!Nt||(me.dragNodeProps.eventKey===tn&&It===0?me.state.dropPosition===null&&me.state.dropLevelOffset===null&&me.state.dropTargetKey===null&&me.state.dropContainerKey===null&&me.state.dropTargetPos===null&&me.state.dropAllowed===!1&&me.state.dragOverNodeKey===null||me.resetDragState():Je===me.state.dropPosition&&It===me.state.dropLevelOffset&&tn===me.state.dropTargetKey&&mn===me.state.dropContainerKey&&nt===me.state.dropTargetPos&&Nt===me.state.dropAllowed&&Jt===me.state.dragOverNodeKey||me.setState({dropPosition:Je,dropLevelOffset:It,dropTargetKey:tn,dropContainerKey:mn,dropTargetPos:nt,dropAllowed:Nt,dragOverNodeKey:Jt}),pn==null||pn({event:qe,node:(0,Ee.F)(bt)}))}}),(0,fe.Z)((0,Se.Z)(me),"onNodeDragLeave",function(qe,bt){me.currentMouseOverDroppableNodeKey===bt.eventKey&&!qe.currentTarget.contains(qe.relatedTarget)&&(me.resetDragState(),me.currentMouseOverDroppableNodeKey=null);var At=me.props.onDragLeave;At==null||At({event:qe,node:(0,Ee.F)(bt)})}),(0,fe.Z)((0,Se.Z)(me),"onWindowDragEnd",function(qe){me.onNodeDragEnd(qe,null,!0),window.removeEventListener("dragend",me.onWindowDragEnd)}),(0,fe.Z)((0,Se.Z)(me),"onNodeDragEnd",function(qe,bt){var At=me.props.onDragEnd;me.setState({dragOverNodeKey:null}),me.cleanDragState(),At==null||At({event:qe,node:(0,Ee.F)(bt)}),me.dragNodeProps=null,window.removeEventListener("dragend",me.onWindowDragEnd)}),(0,fe.Z)((0,Se.Z)(me),"onNodeDrop",function(qe,bt){var At,$t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ye=me.state,rt=Ye.dragChildrenKeys,Vt=Ye.dropPosition,sn=Ye.dropTargetKey,wn=Ye.dropTargetPos,pn=Ye.dropAllowed;if(pn){var kt=me.props.onDrop;if(me.setState({dragOverNodeKey:null}),me.cleanDragState(),sn!==null){var Gt=(0,ce.Z)((0,ce.Z)({},(0,Ee.H8)(sn,me.getTreeNodeRequiredProps())),{},{active:((At=me.getActiveItem())===null||At===void 0?void 0:At.key)===sn,data:(0,dn.Z)(me.state.keyEntities,sn).node}),Pt=rt.includes(sn);(0,Te.ZP)(!Pt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Je=(0,Ct.yx)(wn),It={event:qe,node:(0,Ee.F)(Gt),dragNode:me.dragNodeProps?(0,Ee.F)(me.dragNodeProps):null,dragNodesKeys:[me.dragNodeProps.eventKey].concat(rt),dropToGap:Vt!==0,dropPosition:Vt+Number(Je[Je.length-1])};$t||kt==null||kt(It),me.dragNodeProps=null}}}),(0,fe.Z)((0,Se.Z)(me),"cleanDragState",function(){var qe=me.state.draggingNodeKey;qe!==null&&me.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),me.dragStartMousePosition=null,me.currentMouseOverDroppableNodeKey=null}),(0,fe.Z)((0,Se.Z)(me),"triggerExpandActionExpand",function(qe,bt){var At=me.state,$t=At.expandedKeys,Ye=At.flattenNodes,rt=bt.expanded,Vt=bt.key,sn=bt.isLeaf;if(!(sn||qe.shiftKey||qe.metaKey||qe.ctrlKey)){var wn=Ye.filter(function(kt){return kt.key===Vt})[0],pn=(0,Ee.F)((0,ce.Z)((0,ce.Z)({},(0,Ee.H8)(Vt,me.getTreeNodeRequiredProps())),{},{data:wn.data}));me.setExpandedKeys(rt?(0,Ct._5)($t,Vt):(0,Ct.L0)($t,Vt)),me.onNodeExpand(qe,pn)}}),(0,fe.Z)((0,Se.Z)(me),"onNodeClick",function(qe,bt){var At=me.props,$t=At.onClick,Ye=At.expandAction;Ye==="click"&&me.triggerExpandActionExpand(qe,bt),$t==null||$t(qe,bt)}),(0,fe.Z)((0,Se.Z)(me),"onNodeDoubleClick",function(qe,bt){var At=me.props,$t=At.onDoubleClick,Ye=At.expandAction;Ye==="doubleClick"&&me.triggerExpandActionExpand(qe,bt),$t==null||$t(qe,bt)}),(0,fe.Z)((0,Se.Z)(me),"onNodeSelect",function(qe,bt){var At=me.state.selectedKeys,$t=me.state,Ye=$t.keyEntities,rt=$t.fieldNames,Vt=me.props,sn=Vt.onSelect,wn=Vt.multiple,pn=bt.selected,kt=bt[rt.key],Gt=!pn;Gt?wn?At=(0,Ct.L0)(At,kt):At=[kt]:At=(0,Ct._5)(At,kt);var Pt=At.map(function(Je){var It=(0,dn.Z)(Ye,Je);return It?It.node:null}).filter(Boolean);me.setUncontrolledState({selectedKeys:At}),sn==null||sn(At,{event:"select",selected:Gt,node:bt,selectedNodes:Pt,nativeEvent:qe.nativeEvent})}),(0,fe.Z)((0,Se.Z)(me),"onNodeCheck",function(qe,bt,At){var $t=me.state,Ye=$t.keyEntities,rt=$t.checkedKeys,Vt=$t.halfCheckedKeys,sn=me.props,wn=sn.checkStrictly,pn=sn.onCheck,kt=bt.key,Gt,Pt={event:"check",node:bt,checked:At,nativeEvent:qe.nativeEvent};if(wn){var Je=At?(0,Ct.L0)(rt,kt):(0,Ct._5)(rt,kt),It=(0,Ct._5)(Vt,kt);Gt={checked:Je,halfChecked:It},Pt.checkedNodes=Je.map(function(xt){return(0,dn.Z)(Ye,xt)}).filter(Boolean).map(function(xt){return xt.node}),me.setUncontrolledState({checkedKeys:Je})}else{var tn=(0,mt.S)([].concat((0,Le.Z)(rt),[kt]),!0,Ye),mn=tn.checkedKeys,nt=tn.halfCheckedKeys;if(!At){var Nt=new Set(mn);Nt.delete(kt);var Jt=(0,mt.S)(Array.from(Nt),{checked:!1,halfCheckedKeys:nt},Ye);mn=Jt.checkedKeys,nt=Jt.halfCheckedKeys}Gt=mn,Pt.checkedNodes=[],Pt.checkedNodesPositions=[],Pt.halfCheckedKeys=nt,mn.forEach(function(xt){var Wt=(0,dn.Z)(Ye,xt);if(Wt){var qt=Wt.node,Tn=Wt.pos;Pt.checkedNodes.push(qt),Pt.checkedNodesPositions.push({node:qt,pos:Tn})}}),me.setUncontrolledState({checkedKeys:mn},!1,{halfCheckedKeys:nt})}pn==null||pn(Gt,Pt)}),(0,fe.Z)((0,Se.Z)(me),"onNodeLoad",function(qe){var bt,At=qe.key,$t=me.state.keyEntities,Ye=(0,dn.Z)($t,At);if(!(Ye!=null&&(bt=Ye.children)!==null&&bt!==void 0&&bt.length)){var rt=new Promise(function(Vt,sn){me.setState(function(wn){var pn=wn.loadedKeys,kt=pn===void 0?[]:pn,Gt=wn.loadingKeys,Pt=Gt===void 0?[]:Gt,Je=me.props,It=Je.loadData,tn=Je.onLoad;if(!It||kt.includes(At)||Pt.includes(At))return null;var mn=It(qe);return mn.then(function(){var nt=me.state.loadedKeys,Nt=(0,Ct.L0)(nt,At);tn==null||tn(Nt,{event:"load",node:qe}),me.setUncontrolledState({loadedKeys:Nt}),me.setState(function(Jt){return{loadingKeys:(0,Ct._5)(Jt.loadingKeys,At)}}),Vt()}).catch(function(nt){if(me.setState(function(Jt){return{loadingKeys:(0,Ct._5)(Jt.loadingKeys,At)}}),me.loadingRetryTimes[At]=(me.loadingRetryTimes[At]||0)+1,me.loadingRetryTimes[At]>=Ht){var Nt=me.state.loadedKeys;(0,Te.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),me.setUncontrolledState({loadedKeys:(0,Ct.L0)(Nt,At)}),Vt()}sn(nt)}),{loadingKeys:(0,Ct.L0)(Pt,At)}})});return rt.catch(function(){}),rt}}),(0,fe.Z)((0,Se.Z)(me),"onNodeMouseEnter",function(qe,bt){var At=me.props.onMouseEnter;At==null||At({event:qe,node:bt})}),(0,fe.Z)((0,Se.Z)(me),"onNodeMouseLeave",function(qe,bt){var At=me.props.onMouseLeave;At==null||At({event:qe,node:bt})}),(0,fe.Z)((0,Se.Z)(me),"onNodeContextMenu",function(qe,bt){var At=me.props.onRightClick;At&&(qe.preventDefault(),At({event:qe,node:bt}))}),(0,fe.Z)((0,Se.Z)(me),"onFocus",function(){var qe=me.props.onFocus;me.setState({focused:!0});for(var bt=arguments.length,At=new Array(bt),$t=0;$t<bt;$t++)At[$t]=arguments[$t];qe==null||qe.apply(void 0,At)}),(0,fe.Z)((0,Se.Z)(me),"onBlur",function(){var qe=me.props.onBlur;me.setState({focused:!1}),me.onActiveChange(null);for(var bt=arguments.length,At=new Array(bt),$t=0;$t<bt;$t++)At[$t]=arguments[$t];qe==null||qe.apply(void 0,At)}),(0,fe.Z)((0,Se.Z)(me),"getTreeNodeRequiredProps",function(){var qe=me.state,bt=qe.expandedKeys,At=qe.selectedKeys,$t=qe.loadedKeys,Ye=qe.loadingKeys,rt=qe.checkedKeys,Vt=qe.halfCheckedKeys,sn=qe.dragOverNodeKey,wn=qe.dropPosition,pn=qe.keyEntities;return{expandedKeys:bt||[],selectedKeys:At||[],loadedKeys:$t||[],loadingKeys:Ye||[],checkedKeys:rt||[],halfCheckedKeys:Vt||[],dragOverNodeKey:sn,dropPosition:wn,keyEntities:pn}}),(0,fe.Z)((0,Se.Z)(me),"setExpandedKeys",function(qe){var bt=me.state,At=bt.treeData,$t=bt.fieldNames,Ye=(0,Ee.oH)(At,qe,$t);me.setUncontrolledState({expandedKeys:qe,flattenNodes:Ye},!0)}),(0,fe.Z)((0,Se.Z)(me),"onNodeExpand",function(qe,bt){var At=me.state.expandedKeys,$t=me.state,Ye=$t.listChanging,rt=$t.fieldNames,Vt=me.props,sn=Vt.onExpand,wn=Vt.loadData,pn=bt.expanded,kt=bt[rt.key];if(!Ye){var Gt=At.includes(kt),Pt=!pn;if((0,Te.ZP)(pn&&Gt||!pn&&!Gt,"Expand state not sync with index check"),At=Pt?(0,Ct.L0)(At,kt):(0,Ct._5)(At,kt),me.setExpandedKeys(At),sn==null||sn(At,{node:bt,expanded:Pt,nativeEvent:qe.nativeEvent}),Pt&&wn){var Je=me.onNodeLoad(bt);Je&&Je.then(function(){var It=(0,Ee.oH)(me.state.treeData,At,rt);me.setUncontrolledState({flattenNodes:It})}).catch(function(){var It=me.state.expandedKeys,tn=(0,Ct._5)(It,kt);me.setExpandedKeys(tn)})}}}),(0,fe.Z)((0,Se.Z)(me),"onListChangeStart",function(){me.setUncontrolledState({listChanging:!0})}),(0,fe.Z)((0,Se.Z)(me),"onListChangeEnd",function(){setTimeout(function(){me.setUncontrolledState({listChanging:!1})})}),(0,fe.Z)((0,Se.Z)(me),"onActiveChange",function(qe){var bt=me.state.activeKey,At=me.props,$t=At.onActiveChange,Ye=At.itemScrollOffset,rt=Ye===void 0?0:Ye;bt!==qe&&(me.setState({activeKey:qe}),qe!==null&&me.scrollTo({key:qe,offset:rt}),$t==null||$t(qe))}),(0,fe.Z)((0,Se.Z)(me),"getActiveItem",function(){var qe=me.state,bt=qe.activeKey,At=qe.flattenNodes;return bt===null?null:At.find(function($t){var Ye=$t.key;return Ye===bt})||null}),(0,fe.Z)((0,Se.Z)(me),"offsetActiveKey",function(qe){var bt=me.state,At=bt.flattenNodes,$t=bt.activeKey,Ye=At.findIndex(function(sn){var wn=sn.key;return wn===$t});Ye===-1&&qe<0&&(Ye=At.length),Ye=(Ye+qe+At.length)%At.length;var rt=At[Ye];if(rt){var Vt=rt.key;me.onActiveChange(Vt)}else me.onActiveChange(null)}),(0,fe.Z)((0,Se.Z)(me),"onKeyDown",function(qe){var bt=me.state,At=bt.activeKey,$t=bt.expandedKeys,Ye=bt.checkedKeys,rt=bt.fieldNames,Vt=me.props,sn=Vt.onKeyDown,wn=Vt.checkable,pn=Vt.selectable;switch(qe.which){case ct.Z.UP:{me.offsetActiveKey(-1),qe.preventDefault();break}case ct.Z.DOWN:{me.offsetActiveKey(1),qe.preventDefault();break}}var kt=me.getActiveItem();if(kt&&kt.data){var Gt=me.getTreeNodeRequiredProps(),Pt=kt.data.isLeaf===!1||!!(kt.data[rt.children]||[]).length,Je=(0,Ee.F)((0,ce.Z)((0,ce.Z)({},(0,Ee.H8)(At,Gt)),{},{data:kt.data,active:!0}));switch(qe.which){case ct.Z.LEFT:{Pt&&$t.includes(At)?me.onNodeExpand({},Je):kt.parent&&me.onActiveChange(kt.parent.key),qe.preventDefault();break}case ct.Z.RIGHT:{Pt&&!$t.includes(At)?me.onNodeExpand({},Je):kt.children&&kt.children.length&&me.onActiveChange(kt.children[0].key),qe.preventDefault();break}case ct.Z.ENTER:case ct.Z.SPACE:{wn&&!Je.disabled&&Je.checkable!==!1&&!Je.disableCheckbox?me.onNodeCheck({},Je,!Ye.includes(At)):!wn&&pn&&!Je.disabled&&Je.selectable!==!1&&me.onNodeSelect({},Je);break}}}sn==null||sn(qe)}),(0,fe.Z)((0,Se.Z)(me),"setUncontrolledState",function(qe){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,At=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!me.destroyed){var $t=!1,Ye=!0,rt={};Object.keys(qe).forEach(function(Vt){if(me.props.hasOwnProperty(Vt)){Ye=!1;return}$t=!0,rt[Vt]=qe[Vt]}),$t&&(!bt||Ye)&&me.setState((0,ce.Z)((0,ce.Z)({},rt),At))}}),(0,fe.Z)((0,Se.Z)(me),"scrollTo",function(qe){me.listRef.current.scrollTo(qe)}),me}return(0,ge.Z)(ae,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Ze=this.props,Ot=Ze.activeKey,at=Ze.itemScrollOffset,qe=at===void 0?0:at;Ot!==void 0&&Ot!==this.state.activeKey&&(this.setState({activeKey:Ot}),Ot!==null&&this.scrollTo({key:Ot,offset:qe}))}},{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 Ze=this.state,Ot=Ze.focused,at=Ze.flattenNodes,qe=Ze.keyEntities,bt=Ze.draggingNodeKey,At=Ze.activeKey,$t=Ze.dropLevelOffset,Ye=Ze.dropContainerKey,rt=Ze.dropTargetKey,Vt=Ze.dropPosition,sn=Ze.dragOverNodeKey,wn=Ze.indent,pn=this.props,kt=pn.prefixCls,Gt=pn.className,Pt=pn.style,Je=pn.showLine,It=pn.focusable,tn=pn.tabIndex,mn=tn===void 0?0:tn,nt=pn.selectable,Nt=pn.showIcon,Jt=pn.icon,xt=pn.switcherIcon,Wt=pn.draggable,qt=pn.checkable,Tn=pn.checkStrictly,Gn=pn.disabled,On=pn.motion,Hn=pn.loadData,Zt=pn.filterTreeNode,Dn=pn.height,nn=pn.itemHeight,Sn=pn.scrollWidth,rn=pn.virtual,En=pn.titleRender,xn=pn.dropIndicatorRender,Vn=pn.onContextMenu,sr=pn.onScroll,er=pn.direction,cr=pn.rootClassName,Dr=pn.rootStyle,mr=(0,Ke.Z)(this.props,{aria:!0,data:!0}),Hr;Wt&&((0,ve.Z)(Wt)==="object"?Hr=Wt:typeof Wt=="function"?Hr={nodeDraggable:Wt}:Hr={});var Lr={prefixCls:kt,selectable:nt,showIcon:Nt,icon:Jt,switcherIcon:xt,draggable:Hr,draggingNodeKey:bt,checkable:qt,checkStrictly:Tn,disabled:Gn,keyEntities:qe,dropLevelOffset:$t,dropContainerKey:Ye,dropTargetKey:rt,dropPosition:Vt,dragOverNodeKey:sn,indent:wn,direction:er,dropIndicatorRender:xn,loadData:Hn,filterTreeNode:Zt,titleRender:En,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};return we.createElement(Ie.k.Provider,{value:Lr},we.createElement("div",{className:Oe()(kt,Gt,cr,(0,fe.Z)((0,fe.Z)((0,fe.Z)({},"".concat(kt,"-show-line"),Je),"".concat(kt,"-focused"),Ot),"".concat(kt,"-active-focused"),At!==null)),style:Dr},we.createElement(yt,(0,y.Z)({ref:this.listRef,prefixCls:kt,style:Pt,data:at,disabled:Gn,selectable:nt,checkable:!!qt,motion:On,dragging:bt!==null,height:Dn,itemHeight:nn,virtual:rn,focusable:It,focused:Ot,tabIndex:mn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Vn,onScroll:sr,scrollWidth:Sn},this.getTreeNodeRequiredProps(),mr))))}}],[{key:"getDerivedStateFromProps",value:function(Ze,Ot){var at=Ot.prevProps,qe={prevProps:Ze};function bt(mn){return!at&&Ze.hasOwnProperty(mn)||at&&at[mn]!==Ze[mn]}var At,$t=Ot.fieldNames;if(bt("fieldNames")&&($t=(0,Ee.w$)(Ze.fieldNames),qe.fieldNames=$t),bt("treeData")?At=Ze.treeData:bt("children")&&((0,Te.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),At=(0,Ee.zn)(Ze.children)),At){qe.treeData=At;var Ye=(0,Ee.I8)(At,{fieldNames:$t});qe.keyEntities=(0,ce.Z)((0,fe.Z)({},be,zt),Ye.keyEntities)}var rt=qe.keyEntities||Ot.keyEntities;if(bt("expandedKeys")||at&&bt("autoExpandParent"))qe.expandedKeys=Ze.autoExpandParent||!at&&Ze.defaultExpandParent?(0,Ct.r7)(Ze.expandedKeys,rt):Ze.expandedKeys;else if(!at&&Ze.defaultExpandAll){var Vt=(0,ce.Z)({},rt);delete Vt[be];var sn=[];Object.keys(Vt).forEach(function(mn){var nt=Vt[mn];nt.children&&nt.children.length&&sn.push(nt.key)}),qe.expandedKeys=sn}else!at&&Ze.defaultExpandedKeys&&(qe.expandedKeys=Ze.autoExpandParent||Ze.defaultExpandParent?(0,Ct.r7)(Ze.defaultExpandedKeys,rt):Ze.defaultExpandedKeys);if(qe.expandedKeys||delete qe.expandedKeys,At||qe.expandedKeys){var wn=(0,Ee.oH)(At||Ot.treeData,qe.expandedKeys||Ot.expandedKeys,$t);qe.flattenNodes=wn}if(Ze.selectable&&(bt("selectedKeys")?qe.selectedKeys=(0,Ct.BT)(Ze.selectedKeys,Ze):!at&&Ze.defaultSelectedKeys&&(qe.selectedKeys=(0,Ct.BT)(Ze.defaultSelectedKeys,Ze))),Ze.checkable){var pn;if(bt("checkedKeys")?pn=(0,Ct.E6)(Ze.checkedKeys)||{}:!at&&Ze.defaultCheckedKeys?pn=(0,Ct.E6)(Ze.defaultCheckedKeys)||{}:At&&(pn=(0,Ct.E6)(Ze.checkedKeys)||{checkedKeys:Ot.checkedKeys,halfCheckedKeys:Ot.halfCheckedKeys}),pn){var kt=pn,Gt=kt.checkedKeys,Pt=Gt===void 0?[]:Gt,Je=kt.halfCheckedKeys,It=Je===void 0?[]:Je;if(!Ze.checkStrictly){var tn=(0,mt.S)(Pt,!0,rt);Pt=tn.checkedKeys,It=tn.halfCheckedKeys}qe.checkedKeys=Pt,qe.halfCheckedKeys=It}}return bt("loadedKeys")&&(qe.loadedKeys=Ze.loadedKeys),qe}}]),ae}(we.Component);(0,fe.Z)(ue,"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:tt,allowDrop:function(){return!0},expandAction:!1}),(0,fe.Z)(ue,"TreeNode",gt.Z);var ie=ue,re=ie},82661:function(Mn,Yt,E){"use strict";E.d(Yt,{BT:function(){return we},E6:function(){return tt},L0:function(){return fe},OM:function(){return Te},_5:function(){return Be},r7:function(){return Et},wA:function(){return Oe},yx:function(){return $e}});var y=E(94480),ve=E(76190),ce=E(48736),Le=E(59301),xe=E(639),ge=E(65065),Se=E(34061),Ne=null;function Be(_e,Fe){if(!_e)return[];var He=_e.slice(),Xe=He.indexOf(Fe);return Xe>=0&&He.splice(Xe,1),He}function fe(_e,Fe){var He=(_e||[]).slice();return He.indexOf(Fe)===-1&&He.push(Fe),He}function $e(_e){return _e.split("-")}function Oe(_e,Fe){var He=[],Xe=(0,ge.Z)(Fe,_e);function St(){var gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];gt.forEach(function(ot){var Ue=ot.key,Ee=ot.children;He.push(Ue),St(Ee)})}return St(Xe.children),He}function ct(_e){if(_e.parent){var Fe=$e(_e.pos);return Number(Fe[Fe.length-1])===_e.parent.children.length-1}return!1}function Ke(_e){var Fe=$e(_e.pos);return Number(Fe[Fe.length-1])===0}function Te(_e,Fe,He,Xe,St,gt,ot,Ue,Ee,We){var Ae,de=_e.clientX,wt=_e.clientY,Qe=_e.target.getBoundingClientRect(),Ge=Qe.top,st=Qe.height,Ce=(We==="rtl"?-1:1)*(((St==null?void 0:St.x)||0)-de),be=(Ce-12)/Xe,vt=Ee.filter(function(re){var oe;return(oe=Ue[re])===null||oe===void 0||(oe=oe.children)===null||oe===void 0?void 0:oe.length}),zt=(0,ge.Z)(Ue,He.eventKey);if(wt<Ge+st/2){var jt=ot.findIndex(function(re){return re.key===zt.key}),De=jt<=0?0:jt-1,pt=ot[De].key;zt=(0,ge.Z)(Ue,pt)}var ut=zt.key,Qt=zt,yt=zt.key,Ct=0,mt=0;if(!vt.includes(ut))for(var dn=0;dn<be&&ct(zt);dn+=1)zt=zt.parent,mt+=1;var Ht=Fe.data,ue=zt.node,ie=!0;return Ke(zt)&&zt.level===0&&wt<Ge+st/2&>({dragNode:Ht,dropNode:ue,dropPosition:-1})&&zt.key===He.eventKey?Ct=-1:(Qt.children||[]).length&&vt.includes(yt)?gt({dragNode:Ht,dropNode:ue,dropPosition:0})?Ct=0:ie=!1:mt===0?be>-1.5?gt({dragNode:Ht,dropNode:ue,dropPosition:1})?Ct=1:ie=!1:gt({dragNode:Ht,dropNode:ue,dropPosition:0})?Ct=0:gt({dragNode:Ht,dropNode:ue,dropPosition:1})?Ct=1:ie=!1:gt({dragNode:Ht,dropNode:ue,dropPosition:1})?Ct=1:ie=!1,{dropPosition:Ct,dropLevelOffset:mt,dropTargetKey:zt.key,dropTargetPos:zt.pos,dragOverNodeKey:yt,dropContainerKey:Ct===0?null:((Ae=zt.parent)===null||Ae===void 0?void 0:Ae.key)||null,dropAllowed:ie}}function we(_e,Fe){if(_e){var He=Fe.multiple;return He?_e.slice():_e.length?[_e[0]]:_e}}var Ie=function(Fe){return Fe};function Pe(_e,Fe){if(!_e)return[];var He=Fe||{},Xe=He.processProps,St=Xe===void 0?Ie:Xe,gt=Array.isArray(_e)?_e:[_e];return gt.map(function(ot){var Ue=ot.children,Ee=_objectWithoutProperties(ot,Ne),We=Pe(Ue,Fe);return React.createElement(TreeNode,_extends({key:Ee.key},St(Ee)),We)})}function tt(_e){if(!_e)return null;var Fe;if(Array.isArray(_e))Fe={checkedKeys:_e,halfCheckedKeys:void 0};else if((0,ve.Z)(_e)==="object")Fe={checkedKeys:_e.checked||void 0,halfCheckedKeys:_e.halfChecked||void 0};else return(0,ce.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Fe}function Et(_e,Fe){var He=new Set;function Xe(St){if(!He.has(St)){var gt=(0,ge.Z)(Fe,St);if(gt){He.add(St);var ot=gt.parent,Ue=gt.node;Ue.disabled||ot&&Xe(ot.key)}}}return(_e||[]).forEach(function(St){Xe(St)}),(0,y.Z)(He)}},34643:function(Mn,Yt,E){"use strict";E.d(Yt,{S:function(){return Se}});var y=E(48736),ve=E(65065);function ce(Ne,Be){var fe=new Set;return Ne.forEach(function($e){Be.has($e)||fe.add($e)}),fe}function Le(Ne){var Be=Ne||{},fe=Be.disabled,$e=Be.disableCheckbox,Oe=Be.checkable;return!!(fe||$e)||Oe===!1}function xe(Ne,Be,fe,$e){for(var Oe=new Set(Ne),ct=new Set,Ke=0;Ke<=fe;Ke+=1){var Te=Be.get(Ke)||new Set;Te.forEach(function(tt){var Et=tt.key,_e=tt.node,Fe=tt.children,He=Fe===void 0?[]:Fe;Oe.has(Et)&&!$e(_e)&&He.filter(function(Xe){return!$e(Xe.node)}).forEach(function(Xe){Oe.add(Xe.key)})})}for(var we=new Set,Ie=fe;Ie>=0;Ie-=1){var Pe=Be.get(Ie)||new Set;Pe.forEach(function(tt){var Et=tt.parent,_e=tt.node;if(!($e(_e)||!tt.parent||we.has(tt.parent.key))){if($e(tt.parent.node)){we.add(Et.key);return}var Fe=!0,He=!1;(Et.children||[]).filter(function(Xe){return!$e(Xe.node)}).forEach(function(Xe){var St=Xe.key,gt=Oe.has(St);Fe&&!gt&&(Fe=!1),!He&&(gt||ct.has(St))&&(He=!0)}),Fe&&Oe.add(Et.key),He&&ct.add(Et.key),we.add(Et.key)}})}return{checkedKeys:Array.from(Oe),halfCheckedKeys:Array.from(ce(ct,Oe))}}function ge(Ne,Be,fe,$e,Oe){for(var ct=new Set(Ne),Ke=new Set(Be),Te=0;Te<=$e;Te+=1){var we=fe.get(Te)||new Set;we.forEach(function(Et){var _e=Et.key,Fe=Et.node,He=Et.children,Xe=He===void 0?[]:He;!ct.has(_e)&&!Ke.has(_e)&&!Oe(Fe)&&Xe.filter(function(St){return!Oe(St.node)}).forEach(function(St){ct.delete(St.key)})})}Ke=new Set;for(var Ie=new Set,Pe=$e;Pe>=0;Pe-=1){var tt=fe.get(Pe)||new Set;tt.forEach(function(Et){var _e=Et.parent,Fe=Et.node;if(!(Oe(Fe)||!Et.parent||Ie.has(Et.parent.key))){if(Oe(Et.parent.node)){Ie.add(_e.key);return}var He=!0,Xe=!1;(_e.children||[]).filter(function(St){return!Oe(St.node)}).forEach(function(St){var gt=St.key,ot=ct.has(gt);He&&!ot&&(He=!1),!Xe&&(ot||Ke.has(gt))&&(Xe=!0)}),He||ct.delete(_e.key),Xe&&Ke.add(_e.key),Ie.add(_e.key)}})}return{checkedKeys:Array.from(ct),halfCheckedKeys:Array.from(ce(Ke,ct))}}function Se(Ne,Be,fe,$e){var Oe=[],ct;$e?ct=$e:ct=Le;var Ke=new Set(Ne.filter(function(Pe){var tt=!!(0,ve.Z)(fe,Pe);return tt||Oe.push(Pe),tt})),Te=new Map,we=0;Object.keys(fe).forEach(function(Pe){var tt=fe[Pe],Et=tt.level,_e=Te.get(Et);_e||(_e=new Set,Te.set(Et,_e)),_e.add(tt),we=Math.max(we,Et)}),(0,y.ZP)(!Oe.length,"Tree missing follow keys: ".concat(Oe.slice(0,100).map(function(Pe){return"'".concat(Pe,"'")}).join(", ")));var Ie;return Be===!0?Ie=xe(Ke,Te,we,ct):Ie=ge(Ke,Be.halfCheckedKeys,Te,we,ct),Ie}},65065:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return y}});function y(ve,ce){return ve[ce]}},34061:function(Mn,Yt,E){"use strict";E.d(Yt,{F:function(){return Et},H8:function(){return tt},I8:function(){return Pe},km:function(){return Oe},oH:function(){return we},w$:function(){return ct},zn:function(){return Te}});var y=E(76190),ve=E(94480),ce=E(33885),Le=E(75931),xe=E(11592),ge=E(2738),Se=E(48736),Ne=E(65065),Be=["children"];function fe(_e,Fe){return"".concat(_e,"-").concat(Fe)}function $e(_e){return _e&&_e.type&&_e.type.isTreeNode}function Oe(_e,Fe){return _e!=null?_e:Fe}function ct(_e){var Fe=_e||{},He=Fe.title,Xe=Fe._title,St=Fe.key,gt=Fe.children,ot=He||"title";return{title:ot,_title:Xe||[ot],key:St||"key",children:gt||"children"}}function Ke(_e,Fe){var He=new Map;function Xe(St){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(St||[]).forEach(function(ot){var Ue=ot[Fe.key],Ee=ot[Fe.children];warning(Ue!=null,"Tree node must have a certain key: [".concat(gt).concat(Ue,"]"));var We=String(Ue);warning(!He.has(We)||Ue===null||Ue===void 0,"Same 'key' exist in the Tree: ".concat(We)),He.set(We,!0),Xe(Ee,"".concat(gt).concat(We," > "))})}Xe(_e)}function Te(_e){function Fe(He){var Xe=(0,xe.Z)(He);return Xe.map(function(St){if(!$e(St))return(0,Se.ZP)(!St,"Tree/TreeNode can only accept TreeNode as children."),null;var gt=St.key,ot=St.props,Ue=ot.children,Ee=(0,Le.Z)(ot,Be),We=(0,ce.Z)({key:gt},Ee),Ae=Fe(Ue);return Ae.length&&(We.children=Ae),We}).filter(function(St){return St})}return Fe(_e)}function we(_e,Fe,He){var Xe=ct(He),St=Xe._title,gt=Xe.key,ot=Xe.children,Ue=new Set(Fe===!0?[]:Fe),Ee=[];function We(Ae){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ae.map(function(wt,Qe){for(var Ge=fe(de?de.pos:"0",Qe),st=Oe(wt[gt],Ge),Ce,be=0;be<St.length;be+=1){var vt=St[be];if(wt[vt]!==void 0){Ce=wt[vt];break}}var zt=Object.assign((0,ge.Z)(wt,[].concat((0,ve.Z)(St),[gt,ot])),{title:Ce,key:st,parent:de,pos:Ge,children:null,data:wt,isStart:[].concat((0,ve.Z)(de?de.isStart:[]),[Qe===0]),isEnd:[].concat((0,ve.Z)(de?de.isEnd:[]),[Qe===Ae.length-1])});return Ee.push(zt),Fe===!0||Ue.has(st)?zt.children=We(wt[ot]||[],zt):zt.children=[],zt})}return We(_e),Ee}function Ie(_e,Fe,He){var Xe={};(0,y.Z)(He)==="object"?Xe=He:Xe={externalGetKey:He},Xe=Xe||{};var St=Xe,gt=St.childrenPropName,ot=St.externalGetKey,Ue=St.fieldNames,Ee=ct(Ue),We=Ee.key,Ae=Ee.children,de=gt||Ae,wt;ot?typeof ot=="string"?wt=function(st){return st[ot]}:typeof ot=="function"&&(wt=function(st){return ot(st)}):wt=function(st,Ce){return Oe(st[We],Ce)};function Qe(Ge,st,Ce,be){var vt=Ge?Ge[de]:_e,zt=Ge?fe(Ce.pos,st):"0",jt=Ge?[].concat((0,ve.Z)(be),[Ge]):[];if(Ge){var De=wt(Ge,zt),pt={node:Ge,index:st,pos:zt,key:De,parentPos:Ce.node?Ce.pos:null,level:Ce.level+1,nodes:jt};Fe(pt)}vt&&vt.forEach(function(ut,Qt){Qe(ut,Qt,{node:Ge,pos:zt,level:Ce?Ce.level+1:-1},jt)})}Qe(null)}function Pe(_e){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},He=Fe.initWrapper,Xe=Fe.processEntity,St=Fe.onProcessFinished,gt=Fe.externalGetKey,ot=Fe.childrenPropName,Ue=Fe.fieldNames,Ee=arguments.length>2?arguments[2]:void 0,We=gt||Ee,Ae={},de={},wt={posEntities:Ae,keyEntities:de};return He&&(wt=He(wt)||wt),Ie(_e,function(Qe){var Ge=Qe.node,st=Qe.index,Ce=Qe.pos,be=Qe.key,vt=Qe.parentPos,zt=Qe.level,jt=Qe.nodes,De={node:Ge,nodes:jt,index:st,key:be,pos:Ce,level:zt},pt=Oe(be,Ce);Ae[Ce]=De,de[pt]=De,De.parent=Ae[vt],De.parent&&(De.parent.children=De.parent.children||[],De.parent.children.push(De)),Xe&&Xe(De,wt)},{externalGetKey:We,childrenPropName:ot,fieldNames:Ue}),St&&St(wt),wt}function tt(_e,Fe){var He=Fe.expandedKeys,Xe=Fe.selectedKeys,St=Fe.loadedKeys,gt=Fe.loadingKeys,ot=Fe.checkedKeys,Ue=Fe.halfCheckedKeys,Ee=Fe.dragOverNodeKey,We=Fe.dropPosition,Ae=Fe.keyEntities,de=(0,Ne.Z)(Ae,_e),wt={eventKey:_e,expanded:He.indexOf(_e)!==-1,selected:Xe.indexOf(_e)!==-1,loaded:St.indexOf(_e)!==-1,loading:gt.indexOf(_e)!==-1,checked:ot.indexOf(_e)!==-1,halfChecked:Ue.indexOf(_e)!==-1,pos:String(de?de.pos:""),dragOver:Ee===_e&&We===0,dragOverGapTop:Ee===_e&&We===-1,dragOverGapBottom:Ee===_e&&We===1};return wt}function Et(_e){var Fe=_e.data,He=_e.expanded,Xe=_e.selected,St=_e.checked,gt=_e.loaded,ot=_e.loading,Ue=_e.halfChecked,Ee=_e.dragOver,We=_e.dragOverGapTop,Ae=_e.dragOverGapBottom,de=_e.pos,wt=_e.active,Qe=_e.eventKey,Ge=(0,ce.Z)((0,ce.Z)({},Fe),{},{expanded:He,selected:Xe,checked:St,loaded:gt,loading:ot,halfChecked:Ue,dragOver:Ee,dragOverGapTop:We,dragOverGapBottom:Ae,pos:de,active:wt,key:Qe});return"props"in Ge||Object.defineProperty(Ge,"props",{get:function(){return(0,Se.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),_e}}),Ge}},8224:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return ve}});var y=E(4676);function ve(ce,Le,xe,ge){var Se=y.unstable_batchedUpdates?function(Be){y.unstable_batchedUpdates(xe,Be)}:xe;return ce!=null&&ce.addEventListener&&ce.addEventListener(Le,Se,ge),{remove:function(){ce!=null&&ce.removeEventListener&&ce.removeEventListener(Le,Se,ge)}}}},3465:function(Mn,Yt,E){"use strict";E.d(Yt,{G:function(){return Le}});var y=E(47273),ve=function(ge){if((0,y.Z)()&&window.document.documentElement){var Se=Array.isArray(ge)?ge:[ge],Ne=window.document.documentElement;return Se.some(function(Be){return Be in Ne.style})}return!1},ce=function(ge,Se){if(!ve(ge))return!1;var Ne=document.createElement("div"),Be=Ne.style[ge];return Ne.style[ge]=Se,Ne.style[ge]!==Be};function Le(xe,ge){return!Array.isArray(xe)&&ge!==void 0?ce(xe,ge):ve(xe)}},48911:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Ht}});var y=E(54476),ve=E(76190),ce=E(33885),Le=E(20068),xe=E(42978),ge=E(75931),Se=E(92310),Ne=E.n(Se),Be=E(29301),fe=E(70425),$e=E(34280),Oe=E(59301),ct=E(4676),Ke=Oe.forwardRef(function(ue,ie){var re=ue.height,oe=ue.offsetY,pe=ue.offsetX,ae=ue.children,me=ue.prefixCls,Ze=ue.onInnerResize,Ot=ue.innerProps,at=ue.rtl,qe=ue.extra,bt={},At={display:"flex",flexDirection:"column"};return oe!==void 0&&(bt={height:re,position:"relative",overflow:"hidden"},At=(0,ce.Z)((0,ce.Z)({},At),{},(0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)({transform:"translateY(".concat(oe,"px)")},at?"marginRight":"marginLeft",-pe),"position","absolute"),"left",0),"right",0),"top",0))),Oe.createElement("div",{style:bt},Oe.createElement(Be.Z,{onResize:function(Ye){var rt=Ye.offsetHeight;rt&&Ze&&Ze()}},Oe.createElement("div",(0,y.Z)({style:At,className:Ne()((0,Le.Z)({},"".concat(me,"-holder-inner"),me)),ref:ie},Ot),ae,qe)))});Ke.displayName="Filler";var Te=Ke;function we(ue){var ie=ue.children,re=ue.setRef,oe=Oe.useCallback(function(pe){re(pe)},[]);return Oe.cloneElement(ie,{ref:oe})}function Ie(ue,ie,re,oe,pe,ae,me,Ze){var Ot=Ze.getKey;return ue.slice(ie,re+1).map(function(at,qe){var bt=ie+qe,At=me(at,bt,{style:{width:oe},offsetX:pe}),$t=Ot(at);return Oe.createElement(we,{key:$t,setRef:function(rt){return ae(at,rt)}},At)})}function Pe(ue,ie,re,oe){var pe=re-ue,ae=ie-re,me=Math.min(pe,ae)*2;if(oe<=me){var Ze=Math.floor(oe/2);return oe%2?re+Ze+1:re-Ze}return pe>ae?re-(oe-ae):re+(oe-pe)}function tt(ue,ie,re){var oe=ue.length,pe=ie.length,ae,me;if(oe===0&&pe===0)return null;oe<pe?(ae=ue,me=ie):(ae=ie,me=ue);var Ze={__EMPTY_ITEM__:!0};function Ot(Ye){return Ye!==void 0?re(Ye):Ze}for(var at=null,qe=Math.abs(oe-pe)!==1,bt=0;bt<me.length;bt+=1){var At=Ot(ae[bt]),$t=Ot(me[bt]);if(At!==$t){at=bt,qe=qe||At!==Ot(me[bt+1]);break}}return at===null?null:{index:at,multiple:qe}}function Et(ue,ie,re){var oe=Oe.useState(ue),pe=(0,xe.Z)(oe,2),ae=pe[0],me=pe[1],Ze=Oe.useState(null),Ot=(0,xe.Z)(Ze,2),at=Ot[0],qe=Ot[1];return Oe.useEffect(function(){var bt=tt(ae||[],ue||[],ie);(bt==null?void 0:bt.index)!==void 0&&(re==null||re(bt.index),qe(ue[bt.index])),me(ue)},[ue]),[at]}var _e=E(16089),Fe=(typeof navigator=="undefined"?"undefined":(0,ve.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),He=Fe,Xe=function(ue,ie,re,oe){var pe=(0,Oe.useRef)(!1),ae=(0,Oe.useRef)(null);function me(){clearTimeout(ae.current),pe.current=!0,ae.current=setTimeout(function(){pe.current=!1},50)}var Ze=(0,Oe.useRef)({top:ue,bottom:ie,left:re,right:oe});return Ze.current.top=ue,Ze.current.bottom=ie,Ze.current.left=re,Ze.current.right=oe,function(Ot,at){var qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,bt=Ot?at<0&&Ze.current.left||at>0&&Ze.current.right:at<0&&Ze.current.top||at>0&&Ze.current.bottom;return qe&&bt?(clearTimeout(ae.current),pe.current=!1):(!bt||pe.current)&&me(),!pe.current&&bt}};function St(ue,ie,re,oe,pe,ae,me){var Ze=(0,Oe.useRef)(0),Ot=(0,Oe.useRef)(null),at=(0,Oe.useRef)(null),qe=(0,Oe.useRef)(!1),bt=Xe(ie,re,oe,pe);function At(wn,pn){if(_e.Z.cancel(Ot.current),!bt(!1,pn)){var kt=wn;if(!kt._virtualHandled)kt._virtualHandled=!0;else return;Ze.current+=pn,at.current=pn,He||kt.preventDefault(),Ot.current=(0,_e.Z)(function(){var Gt=qe.current?10:1;me(Ze.current*Gt,!1),Ze.current=0})}}function $t(wn,pn){me(pn,!0),He||wn.preventDefault()}var Ye=(0,Oe.useRef)(null),rt=(0,Oe.useRef)(null);function Vt(wn){if(ue){_e.Z.cancel(rt.current),rt.current=(0,_e.Z)(function(){Ye.current=null},2);var pn=wn.deltaX,kt=wn.deltaY,Gt=wn.shiftKey,Pt=pn,Je=kt;(Ye.current==="sx"||!Ye.current&&Gt&&kt&&!pn)&&(Pt=kt,Je=0,Ye.current="sx");var It=Math.abs(Pt),tn=Math.abs(Je);Ye.current===null&&(Ye.current=ae&&It>tn?"x":"y"),Ye.current==="y"?At(wn,Je):$t(wn,Pt)}}function sn(wn){ue&&(qe.current=wn.detail===at.current)}return[Vt,sn]}function gt(ue,ie,re,oe){var pe=Oe.useMemo(function(){return[new Map,[]]},[ue,re.id,oe]),ae=(0,xe.Z)(pe,2),me=ae[0],Ze=ae[1],Ot=function(qe){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qe,At=me.get(qe),$t=me.get(bt);if(At===void 0||$t===void 0)for(var Ye=ue.length,rt=Ze.length;rt<Ye;rt+=1){var Vt,sn=ue[rt],wn=ie(sn);me.set(wn,rt);var pn=(Vt=re.get(wn))!==null&&Vt!==void 0?Vt:oe;if(Ze[rt]=(Ze[rt-1]||0)+pn,wn===qe&&(At=rt),wn===bt&&($t=rt),At!==void 0&&$t!==void 0)break}return{top:Ze[At-1]||0,bottom:Ze[$t]}};return Ot}var ot=E(67732),Ue=E(83652),Ee=function(){function ue(){(0,ot.Z)(this,ue),(0,Le.Z)(this,"maps",void 0),(0,Le.Z)(this,"id",0),(0,Le.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Ue.Z)(ue,[{key:"set",value:function(re,oe){this.diffRecords.set(re,this.maps[re]),this.maps[re]=oe,this.id+=1}},{key:"get",value:function(re){return this.maps[re]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),ue}(),We=Ee;function Ae(ue){var ie=parseFloat(ue);return isNaN(ie)?0:ie}function de(ue,ie,re){var oe=Oe.useState(0),pe=(0,xe.Z)(oe,2),ae=pe[0],me=pe[1],Ze=(0,Oe.useRef)(new Map),Ot=(0,Oe.useRef)(new We),at=(0,Oe.useRef)(0);function qe(){at.current+=1}function bt(){var $t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;qe();var Ye=function(){var sn=!1;Ze.current.forEach(function(wn,pn){if(wn&&wn.offsetParent){var kt=wn.offsetHeight,Gt=getComputedStyle(wn),Pt=Gt.marginTop,Je=Gt.marginBottom,It=Ae(Pt),tn=Ae(Je),mn=kt+It+tn;Ot.current.get(pn)!==mn&&(Ot.current.set(pn,mn),sn=!0)}}),sn&&me(function(wn){return wn+1})};if($t)Ye();else{at.current+=1;var rt=at.current;Promise.resolve().then(function(){rt===at.current&&Ye()})}}function At($t,Ye){var rt=ue($t),Vt=Ze.current.get(rt);Ye?(Ze.current.set(rt,Ye),bt()):Ze.current.delete(rt),!Vt!=!Ye&&(Ye?ie==null||ie($t):re==null||re($t))}return(0,Oe.useEffect)(function(){return qe},[]),[At,bt,Ot.current,ae]}var wt=14/15;function Qe(ue,ie,re){var oe=(0,Oe.useRef)(!1),pe=(0,Oe.useRef)(0),ae=(0,Oe.useRef)(0),me=(0,Oe.useRef)(null),Ze=(0,Oe.useRef)(null),Ot,at=function($t){if(oe.current){var Ye=Math.ceil($t.touches[0].pageX),rt=Math.ceil($t.touches[0].pageY),Vt=pe.current-Ye,sn=ae.current-rt,wn=Math.abs(Vt)>Math.abs(sn);wn?pe.current=Ye:ae.current=rt;var pn=re(wn,wn?Vt:sn,!1,$t);pn&&$t.preventDefault(),clearInterval(Ze.current),pn&&(Ze.current=setInterval(function(){wn?Vt*=wt:sn*=wt;var kt=Math.floor(wn?Vt:sn);(!re(wn,kt,!0)||Math.abs(kt)<=.1)&&clearInterval(Ze.current)},16))}},qe=function(){oe.current=!1,Ot()},bt=function($t){Ot(),$t.touches.length===1&&!oe.current&&(oe.current=!0,pe.current=Math.ceil($t.touches[0].pageX),ae.current=Math.ceil($t.touches[0].pageY),me.current=$t.target,me.current.addEventListener("touchmove",at,{passive:!1}),me.current.addEventListener("touchend",qe,{passive:!0}))};Ot=function(){me.current&&(me.current.removeEventListener("touchmove",at),me.current.removeEventListener("touchend",qe))},(0,$e.Z)(function(){return ue&&ie.current.addEventListener("touchstart",bt,{passive:!0}),function(){var At;(At=ie.current)===null||At===void 0||At.removeEventListener("touchstart",bt),Ot(),clearInterval(Ze.current)}},[ue])}function Ge(ue){return Math.floor(Math.pow(ue,.5))}function st(ue,ie){var re="touches"in ue?ue.touches[0]:ue;return re[ie?"pageX":"pageY"]-window[ie?"scrollX":"scrollY"]}function Ce(ue,ie,re){Oe.useEffect(function(){var oe=ie.current;if(ue&&oe){var pe=!1,ae,me,Ze=function(){_e.Z.cancel(ae)},Ot=function At(){Ze(),ae=(0,_e.Z)(function(){re(me),At()})},at=function(){pe=!1,Ze()},qe=function($t){if(!($t.target.draggable||$t.button!==0)){var Ye=$t;Ye._virtualHandled||(Ye._virtualHandled=!0,pe=!0)}},bt=function($t){if(pe){var Ye=st($t,!1),rt=oe.getBoundingClientRect(),Vt=rt.top,sn=rt.bottom;if(Ye<=Vt){var wn=Vt-Ye;me=-Ge(wn),Ot()}else if(Ye>=sn){var pn=Ye-sn;me=Ge(pn),Ot()}else Ze()}};return oe.addEventListener("mousedown",qe),oe.ownerDocument.addEventListener("mouseup",at),oe.ownerDocument.addEventListener("mousemove",bt),oe.ownerDocument.addEventListener("dragend",at),function(){oe.removeEventListener("mousedown",qe),oe.ownerDocument.removeEventListener("mouseup",at),oe.ownerDocument.removeEventListener("mousemove",bt),oe.ownerDocument.removeEventListener("dragend",at),Ze()}}},[ue])}var be=10;function vt(ue,ie,re,oe,pe,ae,me,Ze){var Ot=Oe.useRef(),at=Oe.useState(null),qe=(0,xe.Z)(at,2),bt=qe[0],At=qe[1];return(0,$e.Z)(function(){if(bt&&bt.times<be){if(!ue.current){At(function(On){return(0,ce.Z)({},On)});return}ae();var $t=bt.targetAlign,Ye=bt.originAlign,rt=bt.index,Vt=bt.offset,sn=ue.current.clientHeight,wn=!1,pn=$t,kt=null;if(sn){for(var Gt=$t||Ye,Pt=0,Je=0,It=0,tn=Math.min(ie.length-1,rt),mn=0;mn<=tn;mn+=1){var nt=pe(ie[mn]);Je=Pt;var Nt=re.get(nt);It=Je+(Nt===void 0?oe:Nt),Pt=It}for(var Jt=Gt==="top"?Vt:sn-Vt,xt=tn;xt>=0;xt-=1){var Wt=pe(ie[xt]),qt=re.get(Wt);if(qt===void 0){wn=!0;break}if(Jt-=qt,Jt<=0)break}switch(Gt){case"top":kt=Je-Vt;break;case"bottom":kt=It-sn+Vt;break;default:{var Tn=ue.current.scrollTop,Gn=Tn+sn;Je<Tn?pn="top":It>Gn&&(pn="bottom")}}kt!==null&&me(kt),kt!==bt.lastTop&&(wn=!0)}wn&&At((0,ce.Z)((0,ce.Z)({},bt),{},{times:bt.times+1,targetAlign:pn,lastTop:kt}))}},[bt,ue.current]),function($t){if($t==null){Ze();return}if(_e.Z.cancel(Ot.current),typeof $t=="number")me($t);else if($t&&(0,ve.Z)($t)==="object"){var Ye,rt=$t.align;"index"in $t?Ye=$t.index:Ye=ie.findIndex(function(wn){return pe(wn)===$t.key});var Vt=$t.offset,sn=Vt===void 0?0:Vt;At({times:0,index:Ye,offset:sn,originAlign:rt})}}}var zt=Oe.forwardRef(function(ue,ie){var re=ue.prefixCls,oe=ue.rtl,pe=ue.scrollOffset,ae=ue.scrollRange,me=ue.onStartMove,Ze=ue.onStopMove,Ot=ue.onScroll,at=ue.horizontal,qe=ue.spinSize,bt=ue.containerSize,At=ue.style,$t=ue.thumbStyle,Ye=ue.showScrollBar,rt=Oe.useState(!1),Vt=(0,xe.Z)(rt,2),sn=Vt[0],wn=Vt[1],pn=Oe.useState(null),kt=(0,xe.Z)(pn,2),Gt=kt[0],Pt=kt[1],Je=Oe.useState(null),It=(0,xe.Z)(Je,2),tn=It[0],mn=It[1],nt=!oe,Nt=Oe.useRef(),Jt=Oe.useRef(),xt=Oe.useState(Ye),Wt=(0,xe.Z)(xt,2),qt=Wt[0],Tn=Wt[1],Gn=Oe.useRef(),On=function(){Ye===!0||Ye===!1||(clearTimeout(Gn.current),Tn(!0),Gn.current=setTimeout(function(){Tn(!1)},3e3))},Hn=ae-bt||0,Zt=bt-qe||0,Dn=Oe.useMemo(function(){if(pe===0||Hn===0)return 0;var cr=pe/Hn;return cr*Zt},[pe,Hn,Zt]),nn=function(Dr){Dr.stopPropagation(),Dr.preventDefault()},Sn=Oe.useRef({top:Dn,dragging:sn,pageY:Gt,startTop:tn});Sn.current={top:Dn,dragging:sn,pageY:Gt,startTop:tn};var rn=function(Dr){wn(!0),Pt(st(Dr,at)),mn(Sn.current.top),me(),Dr.stopPropagation(),Dr.preventDefault()};Oe.useEffect(function(){var cr=function(Lr){Lr.preventDefault()},Dr=Nt.current,mr=Jt.current;return Dr.addEventListener("touchstart",cr,{passive:!1}),mr.addEventListener("touchstart",rn,{passive:!1}),function(){Dr.removeEventListener("touchstart",cr),mr.removeEventListener("touchstart",rn)}},[]);var En=Oe.useRef();En.current=Hn;var xn=Oe.useRef();xn.current=Zt,Oe.useEffect(function(){if(sn){var cr,Dr=function(Lr){var An=Sn.current,Rn=An.dragging,dr=An.pageY,vr=An.startTop;_e.Z.cancel(cr);var Mt=Nt.current.getBoundingClientRect(),Kt=bt/(at?Mt.width:Mt.height);if(Rn){var ft=(st(Lr,at)-dr)*Kt,Rt=vr;!nt&&at?Rt-=ft:Rt+=ft;var it=En.current,ht=xn.current,fn=ht?Rt/ht:0,ar=Math.ceil(fn*it);ar=Math.max(ar,0),ar=Math.min(ar,it),cr=(0,_e.Z)(function(){Ot(ar,at)})}},mr=function(){wn(!1),Ze()};return window.addEventListener("mousemove",Dr,{passive:!0}),window.addEventListener("touchmove",Dr,{passive:!0}),window.addEventListener("mouseup",mr,{passive:!0}),window.addEventListener("touchend",mr,{passive:!0}),function(){window.removeEventListener("mousemove",Dr),window.removeEventListener("touchmove",Dr),window.removeEventListener("mouseup",mr),window.removeEventListener("touchend",mr),_e.Z.cancel(cr)}}},[sn]),Oe.useEffect(function(){return On(),function(){clearTimeout(Gn.current)}},[pe]),Oe.useImperativeHandle(ie,function(){return{delayHidden:On}});var Vn="".concat(re,"-scrollbar"),sr={position:"absolute",visibility:qt?null:"hidden"},er={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return at?(Object.assign(sr,{height:8,left:0,right:0,bottom:0}),Object.assign(er,(0,Le.Z)({height:"100%",width:qe},nt?"left":"right",Dn))):(Object.assign(sr,(0,Le.Z)({width:8,top:0,bottom:0},nt?"right":"left",0)),Object.assign(er,{width:"100%",height:qe,top:Dn})),Oe.createElement("div",{ref:Nt,className:Ne()(Vn,(0,Le.Z)((0,Le.Z)((0,Le.Z)({},"".concat(Vn,"-horizontal"),at),"".concat(Vn,"-vertical"),!at),"".concat(Vn,"-visible"),qt)),style:(0,ce.Z)((0,ce.Z)({},sr),At),onMouseDown:nn,onMouseMove:On},Oe.createElement("div",{ref:Jt,className:Ne()("".concat(Vn,"-thumb"),(0,Le.Z)({},"".concat(Vn,"-thumb-moving"),sn)),style:(0,ce.Z)((0,ce.Z)({},er),$t),onMouseDown:rn}))}),jt=zt,De=20;function pt(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,re=ue/ie*ue;return isNaN(re)&&(re=0),re=Math.max(re,De),Math.floor(re)}var ut=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Qt=[],yt={overflowY:"auto",overflowAnchor:"none"};function Ct(ue,ie){var re=ue.prefixCls,oe=re===void 0?"rc-virtual-list":re,pe=ue.className,ae=ue.height,me=ue.itemHeight,Ze=ue.fullHeight,Ot=Ze===void 0?!0:Ze,at=ue.style,qe=ue.data,bt=ue.children,At=ue.itemKey,$t=ue.virtual,Ye=ue.direction,rt=ue.scrollWidth,Vt=ue.component,sn=Vt===void 0?"div":Vt,wn=ue.onScroll,pn=ue.onVirtualScroll,kt=ue.onVisibleChange,Gt=ue.innerProps,Pt=ue.extraRender,Je=ue.styles,It=ue.showScrollBar,tn=It===void 0?"optional":It,mn=(0,ge.Z)(ue,ut),nt=Oe.useCallback(function(Qn){return typeof At=="function"?At(Qn):Qn==null?void 0:Qn[At]},[At]),Nt=de(nt,null,null),Jt=(0,xe.Z)(Nt,4),xt=Jt[0],Wt=Jt[1],qt=Jt[2],Tn=Jt[3],Gn=!!($t!==!1&&ae&&me),On=Oe.useMemo(function(){return Object.values(qt.maps).reduce(function(Qn,Cr){return Qn+Cr},0)},[qt.id,qt.maps]),Hn=Gn&&qe&&(Math.max(me*qe.length,On)>ae||!!rt),Zt=Ye==="rtl",Dn=Ne()(oe,(0,Le.Z)({},"".concat(oe,"-rtl"),Zt),pe),nn=qe||Qt,Sn=(0,Oe.useRef)(),rn=(0,Oe.useRef)(),En=(0,Oe.useRef)(),xn=(0,Oe.useState)(0),Vn=(0,xe.Z)(xn,2),sr=Vn[0],er=Vn[1],cr=(0,Oe.useState)(0),Dr=(0,xe.Z)(cr,2),mr=Dr[0],Hr=Dr[1],Lr=(0,Oe.useState)(!1),An=(0,xe.Z)(Lr,2),Rn=An[0],dr=An[1],vr=function(){dr(!0)},Mt=function(){dr(!1)},Kt={getKey:nt};function ft(Qn){er(function(Cr){var xr;typeof Qn=="function"?xr=Qn(Cr):xr=Qn;var tr=oa(xr);return Sn.current.scrollTop=tr,tr})}var Rt=(0,Oe.useRef)({start:0,end:nn.length}),it=(0,Oe.useRef)(),ht=Et(nn,nt),fn=(0,xe.Z)(ht,1),ar=fn[0];it.current=ar;var pr=Oe.useMemo(function(){if(!Gn)return{scrollHeight:void 0,start:0,end:nn.length-1,offset:void 0};if(!Hn){var Qn;return{scrollHeight:((Qn=rn.current)===null||Qn===void 0?void 0:Qn.offsetHeight)||0,start:0,end:nn.length-1,offset:void 0}}for(var Cr=0,xr,tr,jr,sa=nn.length,br=0;br<sa;br+=1){var Br=nn[br],$r=nt(Br),Qr=qt.get($r),Ta=Cr+(Qr===void 0?me:Qr);Ta>=sr&&xr===void 0&&(xr=br,tr=Cr),Ta>sr+ae&&jr===void 0&&(jr=br),Cr=Ta}return xr===void 0&&(xr=0,tr=0,jr=Math.ceil(ae/me)),jr===void 0&&(jr=nn.length-1),jr=Math.min(jr+1,nn.length-1),{scrollHeight:Cr,start:xr,end:jr,offset:tr}},[Hn,Gn,sr,nn,Tn,ae]),Ft=pr.scrollHeight,Tt=pr.start,_t=pr.end,Ut=pr.offset;Rt.current.start=Tt,Rt.current.end=_t,Oe.useLayoutEffect(function(){var Qn=qt.getRecord();if(Qn.size===1){var Cr=Array.from(Qn.keys())[0],xr=Qn.get(Cr),tr=nn[Tt];if(tr&&xr===void 0){var jr=nt(tr);if(jr===Cr){var sa=qt.get(Cr),br=sa-me;ft(function(Br){return Br+br})}}}qt.resetRecord()},[Ft]);var Fn=Oe.useState({width:0,height:ae}),zn=(0,xe.Z)(Fn,2),Un=zn[0],jn=zn[1],gr=function(Cr){jn({width:Cr.offsetWidth,height:Cr.offsetHeight})},Ir=(0,Oe.useRef)(),Mr=(0,Oe.useRef)(),Zr=Oe.useMemo(function(){return pt(Un.width,rt)},[Un.width,rt]),Er=Oe.useMemo(function(){return pt(Un.height,Ft)},[Un.height,Ft]),Rr=Ft-ae,Xr=(0,Oe.useRef)(Rr);Xr.current=Rr;function oa(Qn){var Cr=Qn;return Number.isNaN(Xr.current)||(Cr=Math.min(Cr,Xr.current)),Cr=Math.max(Cr,0),Cr}var ta=sr<=0,xa=sr>=Rr,Fa=mr<=0,Gr=mr>=rt,ya=Xe(ta,xa,Fa,Gr),Xa=function(){return{x:Zt?-mr:mr,y:sr}},Ia=(0,Oe.useRef)(Xa()),pa=(0,fe.zX)(function(Qn){if(pn){var Cr=(0,ce.Z)((0,ce.Z)({},Xa()),Qn);(Ia.current.x!==Cr.x||Ia.current.y!==Cr.y)&&(pn(Cr),Ia.current=Cr)}});function kr(Qn,Cr){var xr=Qn;Cr?((0,ct.flushSync)(function(){Hr(xr)}),pa()):ft(xr)}function Za(Qn){var Cr=Qn.currentTarget.scrollTop;Cr!==sr&&ft(Cr),wn==null||wn(Qn),pa()}var Sa=function(Cr){var xr=Cr,tr=rt?rt-Un.width:0;return xr=Math.max(xr,0),xr=Math.min(xr,tr),xr},la=(0,fe.zX)(function(Qn,Cr){Cr?((0,ct.flushSync)(function(){Hr(function(xr){var tr=xr+(Zt?-Qn:Qn);return Sa(tr)})}),pa()):ft(function(xr){var tr=xr+Qn;return tr})}),Kr=St(Gn,ta,xa,Fa,Gr,!!rt,la),Ya=(0,xe.Z)(Kr,2),_i=Ya[0],$i=Ya[1];Qe(Gn,Sn,function(Qn,Cr,xr,tr){var jr=tr;return ya(Qn,Cr,xr)?!1:!jr||!jr._virtualHandled?(jr&&(jr._virtualHandled=!0),_i({preventDefault:function(){},deltaX:Qn?Cr:0,deltaY:Qn?0:Cr}),!0):!1}),Ce(Hn,Sn,function(Qn){ft(function(Cr){return Cr+Qn})}),(0,$e.Z)(function(){function Qn(xr){var tr=ta&&xr.detail<0,jr=xa&&xr.detail>0;Gn&&!tr&&!jr&&xr.preventDefault()}var Cr=Sn.current;return Cr.addEventListener("wheel",_i,{passive:!1}),Cr.addEventListener("DOMMouseScroll",$i,{passive:!0}),Cr.addEventListener("MozMousePixelScroll",Qn,{passive:!1}),function(){Cr.removeEventListener("wheel",_i),Cr.removeEventListener("DOMMouseScroll",$i),Cr.removeEventListener("MozMousePixelScroll",Qn)}},[Gn,ta,xa]),(0,$e.Z)(function(){if(rt){var Qn=Sa(mr);Hr(Qn),pa({x:Qn})}},[Un.width,rt]);var za=function(){var Cr,xr;(Cr=Ir.current)===null||Cr===void 0||Cr.delayHidden(),(xr=Mr.current)===null||xr===void 0||xr.delayHidden()},Di=vt(Sn,nn,qt,me,nt,function(){return Wt(!0)},ft,za);Oe.useImperativeHandle(ie,function(){return{nativeElement:En.current,getScrollInfo:Xa,scrollTo:function(Cr){function xr(tr){return tr&&(0,ve.Z)(tr)==="object"&&("left"in tr||"top"in tr)}xr(Cr)?(Cr.left!==void 0&&Hr(Sa(Cr.left)),Di(Cr.top)):Di(Cr)}}}),(0,$e.Z)(function(){if(kt){var Qn=nn.slice(Tt,_t+1);kt(Qn,nn)}},[Tt,_t,nn]);var pi=gt(nn,nt,qt,me),Wi=Pt==null?void 0:Pt({start:Tt,end:_t,virtual:Hn,offsetX:mr,offsetY:Ut,rtl:Zt,getSize:pi}),Ci=Ie(nn,Tt,_t,rt,mr,xt,bt,Kt),ei=null;ae&&(ei=(0,ce.Z)((0,Le.Z)({},Ot?"height":"maxHeight",ae),yt),Gn&&(ei.overflowY="hidden",rt&&(ei.overflowX="hidden"),Rn&&(ei.pointerEvents="none")));var Pr={};return Zt&&(Pr.dir="rtl"),Oe.createElement("div",(0,y.Z)({ref:En,style:(0,ce.Z)((0,ce.Z)({},at),{},{position:"relative"}),className:Dn},Pr,mn),Oe.createElement(Be.Z,{onResize:gr},Oe.createElement(sn,{className:"".concat(oe,"-holder"),style:ei,ref:Sn,onScroll:Za,onMouseEnter:za},Oe.createElement(Te,{prefixCls:oe,height:Ft,offsetX:mr,offsetY:Ut,scrollWidth:rt,onInnerResize:Wt,ref:rn,innerProps:Gt,rtl:Zt,extra:Wi},Ci))),Hn&&Ft>ae&&Oe.createElement(jt,{ref:Ir,prefixCls:oe,scrollOffset:sr,scrollRange:Ft,rtl:Zt,onScroll:kr,onStartMove:vr,onStopMove:Mt,spinSize:Er,containerSize:Un.height,style:Je==null?void 0:Je.verticalScrollBar,thumbStyle:Je==null?void 0:Je.verticalScrollBarThumb,showScrollBar:tn}),Hn&&rt>Un.width&&Oe.createElement(jt,{ref:Mr,prefixCls:oe,scrollOffset:mr,scrollRange:rt,rtl:Zt,onScroll:kr,onStartMove:vr,onStopMove:Mt,spinSize:Zr,containerSize:Un.width,horizontal:!0,style:Je==null?void 0:Je.horizontalScrollBar,thumbStyle:Je==null?void 0:Je.horizontalScrollBarThumb,showScrollBar:tn}))}var mt=Oe.forwardRef(Ct);mt.displayName="List";var dn=mt,Ht=dn},22061:function(Mn,Yt,E){"use strict";E.d(Yt,{Z5:function(){return Pu},_l:function(){return ms},bK:function(){return rs}});var y=E(59301),ve=E(69168),ce=E(54476),Le=E(59781),xe=y.createContext(null),ge=null;function Se(te){te()}var Ne=Se,Be=function(ne){return Ne=ne},fe=function(){return Ne};function $e(){var te=fe(),ne=null,le=null;return{clear:function(){ne=null,le=null},notify:function(){te(function(){for(var je=ne;je;)je.callback(),je=je.next})},get:function(){for(var je=[],ze=ne;ze;)je.push(ze),ze=ze.next;return je},subscribe:function(je){var ze=!0,et=le={callback:je,next:null,prev:le};return et.prev?et.prev.next=et:ne=et,function(){!ze||ne===null||(ze=!1,et.next?et.next.prev=et.prev:le=et.prev,et.prev?et.prev.next=et.next:ne=et.next)}}}}var Oe={notify:function(){},get:function(){return[]}};function ct(te,ne){var le,he=Oe;function je(ln){return en(),he.subscribe(ln)}function ze(){he.notify()}function et(){yn.onStateChange&&yn.onStateChange()}function dt(){return!!le}function en(){le||(le=ne?ne.addNestedSub(et):te.subscribe(et),he=$e())}function Cn(){le&&(le(),le=void 0,he.clear(),he=Oe)}var yn={addNestedSub:je,notifyNestedSubs:ze,handleChangeWrapper:et,isSubscribed:dt,trySubscribe:en,tryUnsubscribe:Cn,getListeners:function(){return he}};return yn}var Ke=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?y.useLayoutEffect:y.useEffect;function Te(te){var ne=te.store,le=te.context,he=te.children,je=(0,y.useMemo)(function(){var dt=ct(ne);return{store:ne,subscription:dt}},[ne]),ze=(0,y.useMemo)(function(){return ne.getState()},[ne]);Ke(function(){var dt=je.subscription;return dt.onStateChange=dt.notifyNestedSubs,dt.trySubscribe(),ze!==ne.getState()&&dt.notifyNestedSubs(),function(){dt.tryUnsubscribe(),dt.onStateChange=null}},[je,ze]);var et=le||xe;return y.createElement(et.Provider,{value:je},he)}var we=Te,Ie=E(85377),Pe=E(94266),tt=E.n(Pe),Et=E(53410),_e=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],Fe=["reactReduxForwardedRef"],He=[],Xe=[null,null],St=function(ne){try{return JSON.stringify(ne)}catch(le){return String(ne)}};function gt(te,ne){var le=te[1];return[ne.payload,le+1]}function ot(te,ne,le){Ke(function(){return te.apply(void 0,ne)},le)}function Ue(te,ne,le,he,je,ze,et){te.current=he,ne.current=je,le.current=!1,ze.current&&(ze.current=null,et())}function Ee(te,ne,le,he,je,ze,et,dt,en,Cn){if(te){var yn=!1,ln=null,cn=function(){if(!yn){var va=ne.getState(),Na,ka;try{Na=he(va,je.current)}catch(oi){ka=oi,ln=oi}ka||(ln=null),Na===ze.current?et.current||en():(ze.current=Na,dt.current=Na,et.current=!0,Cn({type:"STORE_UPDATED",payload:{error:ka}}))}};le.onStateChange=cn,le.trySubscribe(),cn();var Pn=function(){if(yn=!0,le.tryUnsubscribe(),le.onStateChange=null,ln)throw ln};return Pn}}var We=function(){return[null,0]};function Ae(te,ne){ne===void 0&&(ne={});var le=ne,he=le.getDisplayName,je=he===void 0?function(ho){return"ConnectAdvanced("+ho+")"}:he,ze=le.methodName,et=ze===void 0?"connectAdvanced":ze,dt=le.renderCountProp,en=dt===void 0?void 0:dt,Cn=le.shouldHandleStateChanges,yn=Cn===void 0?!0:Cn,ln=le.storeKey,cn=ln===void 0?"store":ln,Pn=le.withRef,ur=Pn===void 0?!1:Pn,va=le.forwardRef,Na=va===void 0?!1:va,ka=le.context,oi=ka===void 0?xe:ka,Ai=(0,Ie.Z)(le,_e);if(0)var Mi;var xo=oi;return function(Zo){var Hl=Zo.displayName||Zo.name||"Component",Ho=je(Hl),Vl=(0,ce.Z)({},Ai,{getDisplayName:je,methodName:et,renderCountProp:en,shouldHandleStateChanges:yn,storeKey:cn,displayName:Ho,wrappedComponentName:Hl,WrappedComponent:Zo}),us=Ai.pure;function hs(vs){return te(vs.dispatch,Vl)}var lu=us?y.useMemo:function(vs){return vs()};function qs(vs){var _u=(0,y.useMemo)(function(){var yc=vs.reactReduxForwardedRef,zc=(0,Ie.Z)(vs,Fe);return[vs.context,yc,zc]},[vs]),uu=_u[0],vc=_u[1],Ju=_u[2],Ru=(0,y.useMemo)(function(){return uu&&uu.Consumer&&(0,Et.isContextConsumer)(y.createElement(uu.Consumer,null))?uu:xo},[uu,xo]),cu=(0,y.useContext)(Ru),qu=!!vs.store&&!!vs.store.getState&&!!vs.store.dispatch,Fc=!!cu&&!!cu.store,du=qu?vs.store:cu.store,gc=(0,y.useMemo)(function(){return hs(du)},[du]),Ic=(0,y.useMemo)(function(){if(!yn)return Xe;var yc=ct(du,qu?null:cu.subscription),zc=yc.notifyNestedSubs.bind(yc);return[yc,zc]},[du,qu,cu]),lc=Ic[0],Pc=Ic[1],Oc=(0,y.useMemo)(function(){return qu?cu:(0,ce.Z)({},cu,{subscription:lc})},[qu,cu,lc]),Hc=(0,y.useReducer)(gt,He,We),Gc=Hc[0],Nc=Gc[0],Xc=Hc[1];if(Nc&&Nc.error)throw Nc.error;var Vc=(0,y.useRef)(),jc=(0,y.useRef)(Ju),Tc=(0,y.useRef)(),Kc=(0,y.useRef)(!1),$c=lu(function(){return Tc.current&&Ju===jc.current?Tc.current:gc(du.getState(),Ju)},[du,Nc,Ju]);ot(Ue,[jc,Vc,Kc,Ju,$c,Tc,Pc]),ot(Ee,[yn,du,lc,gc,jc,Vc,Kc,Tc,Pc,Xc],[du,lc,gc]);var Wc=(0,y.useMemo)(function(){return y.createElement(Zo,(0,ce.Z)({},$c,{ref:vc}))},[vc,Zo,$c]),Yc=(0,y.useMemo)(function(){return yn?y.createElement(Ru.Provider,{value:Oc},Wc):Wc},[Ru,Wc,Oc]);return Yc}var Zs=us?y.memo(qs):qs;if(Zs.WrappedComponent=Zo,Zs.displayName=qs.displayName=Ho,Na){var su=y.forwardRef(function(_u,uu){return y.createElement(Zs,(0,ce.Z)({},_u,{reactReduxForwardedRef:uu}))});return su.displayName=Ho,su.WrappedComponent=Zo,tt()(su,Zo)}return tt()(Zs,Zo)}}function de(te,ne){return te===ne?te!==0||ne!==0||1/te===1/ne:te!==te&&ne!==ne}function wt(te,ne){if(de(te,ne))return!0;if(typeof te!="object"||te===null||typeof ne!="object"||ne===null)return!1;var le=Object.keys(te),he=Object.keys(ne);if(le.length!==he.length)return!1;for(var je=0;je<le.length;je++)if(!Object.prototype.hasOwnProperty.call(ne,le[je])||!de(te[le[je]],ne[le[je]]))return!1;return!0}function Qe(te,ne){var le={},he=function(et){var dt=te[et];typeof dt=="function"&&(le[et]=function(){return ne(dt.apply(void 0,arguments))})};for(var je in te)he(je);return le}function Ge(te){return function(le,he){var je=te(le,he);function ze(){return je}return ze.dependsOnOwnProps=!1,ze}}function st(te){return te.dependsOnOwnProps!==null&&te.dependsOnOwnProps!==void 0?!!te.dependsOnOwnProps:te.length!==1}function Ce(te,ne){return function(he,je){var ze=je.displayName,et=function(en,Cn){return et.dependsOnOwnProps?et.mapToProps(en,Cn):et.mapToProps(en)};return et.dependsOnOwnProps=!0,et.mapToProps=function(en,Cn){et.mapToProps=te,et.dependsOnOwnProps=st(te);var yn=et(en,Cn);return typeof yn=="function"&&(et.mapToProps=yn,et.dependsOnOwnProps=st(yn),yn=et(en,Cn)),yn},et}}function be(te){return typeof te=="function"?Ce(te,"mapDispatchToProps"):void 0}function vt(te){return te?void 0:Ge(function(ne){return{dispatch:ne}})}function zt(te){return te&&typeof te=="object"?Ge(function(ne){return Qe(te,ne)}):void 0}var jt=[be,vt,zt];function De(te){return typeof te=="function"?Ce(te,"mapStateToProps"):void 0}function pt(te){return te?void 0:Ge(function(){return{}})}var ut=[De,pt];function Qt(te,ne,le){return(0,ce.Z)({},le,te,ne)}function yt(te){return function(le,he){var je=he.displayName,ze=he.pure,et=he.areMergedPropsEqual,dt=!1,en;return function(yn,ln,cn){var Pn=te(yn,ln,cn);return dt?(!ze||!et(Pn,en))&&(en=Pn):(dt=!0,en=Pn),en}}}function Ct(te){return typeof te=="function"?yt(te):void 0}function mt(te){return te?void 0:function(){return Qt}}var dn=[Ct,mt],Ht=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function ue(te,ne,le,he){return function(ze,et){return le(te(ze,et),ne(he,et),et)}}function ie(te,ne,le,he,je){var ze=je.areStatesEqual,et=je.areOwnPropsEqual,dt=je.areStatePropsEqual,en=!1,Cn,yn,ln,cn,Pn;function ur(Ai,Mi){return Cn=Ai,yn=Mi,ln=te(Cn,yn),cn=ne(he,yn),Pn=le(ln,cn,yn),en=!0,Pn}function va(){return ln=te(Cn,yn),ne.dependsOnOwnProps&&(cn=ne(he,yn)),Pn=le(ln,cn,yn),Pn}function Na(){return te.dependsOnOwnProps&&(ln=te(Cn,yn)),ne.dependsOnOwnProps&&(cn=ne(he,yn)),Pn=le(ln,cn,yn),Pn}function ka(){var Ai=te(Cn,yn),Mi=!dt(Ai,ln);return ln=Ai,Mi&&(Pn=le(ln,cn,yn)),Pn}function oi(Ai,Mi){var xo=!et(Mi,yn),ho=!ze(Ai,Cn,Mi,yn);return Cn=Ai,yn=Mi,xo&&ho?va():xo?Na():ho?ka():Pn}return function(Mi,xo){return en?oi(Mi,xo):ur(Mi,xo)}}function re(te,ne){var le=ne.initMapStateToProps,he=ne.initMapDispatchToProps,je=ne.initMergeProps,ze=(0,Ie.Z)(ne,Ht),et=le(te,ze),dt=he(te,ze),en=je(te,ze),Cn=ze.pure?ie:ue;return Cn(et,dt,en,te,ze)}var oe=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function pe(te,ne,le){for(var he=ne.length-1;he>=0;he--){var je=ne[he](te);if(je)return je}return function(ze,et){throw new Error("Invalid value of type "+typeof te+" for "+le+" argument when connecting component "+et.wrappedComponentName+".")}}function ae(te,ne){return te===ne}function me(te){var ne=te===void 0?{}:te,le=ne.connectHOC,he=le===void 0?Ae:le,je=ne.mapStateToPropsFactories,ze=je===void 0?ut:je,et=ne.mapDispatchToPropsFactories,dt=et===void 0?jt:et,en=ne.mergePropsFactories,Cn=en===void 0?dn:en,yn=ne.selectorFactory,ln=yn===void 0?re:yn;return function(Pn,ur,va,Na){Na===void 0&&(Na={});var ka=Na,oi=ka.pure,Ai=oi===void 0?!0:oi,Mi=ka.areStatesEqual,xo=Mi===void 0?ae:Mi,ho=ka.areOwnPropsEqual,Zo=ho===void 0?wt:ho,Hl=ka.areStatePropsEqual,Ho=Hl===void 0?wt:Hl,Vl=ka.areMergedPropsEqual,us=Vl===void 0?wt:Vl,hs=(0,Ie.Z)(ka,oe),lu=pe(Pn,ze,"mapStateToProps"),qs=pe(ur,dt,"mapDispatchToProps"),Zs=pe(va,Cn,"mergeProps");return he(ln,(0,ce.Z)({methodName:"connect",getDisplayName:function(vs){return"Connect("+vs+")"},shouldHandleStateChanges:!!Pn,initMapStateToProps:lu,initMapDispatchToProps:qs,initMergeProps:Zs,pure:Ai,areStatesEqual:xo,areOwnPropsEqual:Zo,areStatePropsEqual:Ho,areMergedPropsEqual:us},hs))}}var Ze=me();function Ot(){var te=useContext(ReactReduxContext);return te}function at(te){te===void 0&&(te=ReactReduxContext);var ne=te===ReactReduxContext?useDefaultReduxContext:function(){return useContext(te)};return function(){var he=ne(),je=he.store;return je}}var qe=null;function bt(te){te===void 0&&(te=ReactReduxContext);var ne=te===ReactReduxContext?useDefaultStore:createStoreHook(te);return function(){var he=ne();return he.dispatch}}var At=null,$t=function(ne,le){return ne===le};function Ye(te,ne,le,he){var je=useReducer(function(ur){return ur+1},0),ze=je[1],et=useMemo(function(){return createSubscription(le,he)},[le,he]),dt=useRef(),en=useRef(),Cn=useRef(),yn=useRef(),ln=le.getState(),cn;try{if(te!==en.current||ln!==Cn.current||dt.current){var Pn=te(ln);yn.current===void 0||!ne(Pn,yn.current)?cn=Pn:cn=yn.current}else cn=yn.current}catch(ur){throw dt.current&&(ur.message+=`
|
|
|
The error may be correlated with this previous error:
|
|
|
`+dt.current.stack+`
|
|
|
|
|
|
`),ur}return useIsomorphicLayoutEffect(function(){en.current=te,Cn.current=ln,yn.current=cn,dt.current=void 0}),useIsomorphicLayoutEffect(function(){function ur(){try{var va=le.getState();if(va===Cn.current)return;var Na=en.current(va);if(ne(Na,yn.current))return;yn.current=Na,Cn.current=va}catch(ka){dt.current=ka}ze()}return et.onStateChange=ur,et.trySubscribe(),ur(),function(){return et.tryUnsubscribe()}},[le,et]),cn}function rt(te){te===void 0&&(te=ReactReduxContext);var ne=te===ReactReduxContext?useDefaultReduxContext:function(){return useContext(te)};return function(he,je){je===void 0&&(je=$t);var ze=ne(),et=ze.store,dt=ze.subscription,en=Ye(he,je,et,dt);return useDebugValue(en),en}}var Vt=null,sn=E(4676);Be(sn.unstable_batchedUpdates);function wn(te,ne){if(te.length!==ne.length)return!1;for(var le=0;le<te.length;le++)if(te[le]!==ne[le])return!1;return!0}function pn(te,ne){var le=(0,y.useState)(function(){return{inputs:ne,result:te()}})[0],he=(0,y.useRef)(!0),je=(0,y.useRef)(le),ze=he.current||!!(ne&&je.current.inputs&&wn(ne,je.current.inputs)),et=ze?je.current:{inputs:ne,result:te()};return(0,y.useEffect)(function(){he.current=!1,je.current=et},[et]),et.result}function kt(te,ne){return pn(function(){return te},ne)}var Gt=pn,Pt=kt,Je=!0,It="Invariant failed";function tn(te,ne){if(!te){if(Je)throw new Error(It);var le=typeof ne=="function"?ne():ne,he=le?"".concat(It,": ").concat(le):It;throw new Error(he)}}var mn=function(ne){var le=ne.top,he=ne.right,je=ne.bottom,ze=ne.left,et=he-ze,dt=je-le,en={top:le,right:he,bottom:je,left:ze,width:et,height:dt,x:ze,y:le,center:{x:(he+ze)/2,y:(je+le)/2}};return en},nt=function(ne,le){return{top:ne.top-le.top,left:ne.left-le.left,bottom:ne.bottom+le.bottom,right:ne.right+le.right}},Nt=function(ne,le){return{top:ne.top+le.top,left:ne.left+le.left,bottom:ne.bottom-le.bottom,right:ne.right-le.right}},Jt=function(ne,le){return{top:ne.top+le.y,left:ne.left+le.x,bottom:ne.bottom+le.y,right:ne.right+le.x}},xt={top:0,right:0,bottom:0,left:0},Wt=function(ne){var le=ne.borderBox,he=ne.margin,je=he===void 0?xt:he,ze=ne.border,et=ze===void 0?xt:ze,dt=ne.padding,en=dt===void 0?xt:dt,Cn=mn(nt(le,je)),yn=mn(Nt(le,et)),ln=mn(Nt(yn,en));return{marginBox:Cn,borderBox:mn(le),paddingBox:yn,contentBox:ln,margin:je,border:et,padding:en}},qt=function(ne){var le=ne.slice(0,-2),he=ne.slice(-2);if(he!=="px")return 0;var je=Number(le);return isNaN(je)&&tn(!1),je},Tn=function(){return{x:window.pageXOffset,y:window.pageYOffset}},Gn=function(ne,le){var he=ne.borderBox,je=ne.border,ze=ne.margin,et=ne.padding,dt=Jt(he,le);return Wt({borderBox:dt,border:je,margin:ze,padding:et})},On=function(ne,le){return le===void 0&&(le=Tn()),Gn(ne,le)},Hn=function(ne,le){var he={top:qt(le.marginTop),right:qt(le.marginRight),bottom:qt(le.marginBottom),left:qt(le.marginLeft)},je={top:qt(le.paddingTop),right:qt(le.paddingRight),bottom:qt(le.paddingBottom),left:qt(le.paddingLeft)},ze={top:qt(le.borderTopWidth),right:qt(le.borderRightWidth),bottom:qt(le.borderBottomWidth),left:qt(le.borderLeftWidth)};return Wt({borderBox:ne,margin:he,padding:je,border:ze})},Zt=function(ne){var le=ne.getBoundingClientRect(),he=window.getComputedStyle(ne);return Hn(le,he)},Dn=Number.isNaN||function(ne){return typeof ne=="number"&&ne!==ne};function nn(te,ne){return!!(te===ne||Dn(te)&&Dn(ne))}function Sn(te,ne){if(te.length!==ne.length)return!1;for(var le=0;le<te.length;le++)if(!nn(te[le],ne[le]))return!1;return!0}function rn(te,ne){ne===void 0&&(ne=Sn);var le,he=[],je,ze=!1;function et(){for(var dt=[],en=0;en<arguments.length;en++)dt[en]=arguments[en];return ze&&le===this&&ne(dt,he)||(je=te.apply(this,dt),ze=!0,le=this,he=dt),je}return et}var En=rn,xn=function(ne){var le=[],he=null,je=function(){for(var et=arguments.length,dt=new Array(et),en=0;en<et;en++)dt[en]=arguments[en];le=dt,!he&&(he=requestAnimationFrame(function(){he=null,ne.apply(void 0,le)}))};return je.cancel=function(){he&&(cancelAnimationFrame(he),he=null)},je},Vn=xn,sr=!0,er=/[ \t]{2,}/g,cr=/^[ \t]*/gm,Dr=function(ne){return ne.replace(er," ").replace(cr,"").trim()},mr=function(ne){return Dr(`
|
|
|
%creact-beautiful-dnd
|
|
|
|
|
|
%c`+Dr(ne)+`
|
|
|
|
|
|
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
|
|
|
`)},Hr=function(ne){return[mr(ne),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},Lr="__react-beautiful-dnd-disable-dev-warnings";function An(te,ne){var le;sr||typeof window!="undefined"&&window[Lr]||(le=console)[te].apply(le,Hr(ne))}var Rn=An.bind(null,"warn"),dr=An.bind(null,"error");function vr(){}function Mt(te,ne){return(0,ce.Z)({},te,{},ne)}function Kt(te,ne,le){var he=ne.map(function(je){var ze=Mt(le,je.options);return te.addEventListener(je.eventName,je.fn,ze),function(){te.removeEventListener(je.eventName,je.fn,ze)}});return function(){he.forEach(function(ze){ze()})}}var ft=!0,Rt="Invariant failed";function it(te){this.message=te}it.prototype.toString=function(){return this.message};function ht(te,ne){if(!te)throw ft?new it(Rt):new it(Rt+": "+(ne||""))}var fn=function(te){(0,ve.Z)(ne,te);function ne(){for(var he,je=arguments.length,ze=new Array(je),et=0;et<je;et++)ze[et]=arguments[et];return he=te.call.apply(te,[this].concat(ze))||this,he.callbacks=null,he.unbind=vr,he.onWindowError=function(dt){var en=he.getCallbacks();en.isDragging()&&en.tryAbort();var Cn=dt.error;Cn instanceof it&&dt.preventDefault()},he.getCallbacks=function(){if(!he.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return he.callbacks},he.setCallbacks=function(dt){he.callbacks=dt},he}var le=ne.prototype;return le.componentDidMount=function(){this.unbind=Kt(window,[{eventName:"error",fn:this.onWindowError}])},le.componentWillUnmount=function(){this.unbind()},le.componentDidCatch=function(je){if(je instanceof it){this.setState({});return}throw je},le.render=function(){return this.props.children(this.setCallbacks)},ne}(y.Component),ar=`
|
|
|
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
|
|
|
`,pr=function(ne){return ne+1},Ft=function(ne){return`
|
|
|
You have lifted an item in position `+pr(ne.source.index)+`
|
|
|
`},Tt=function(ne,le){var he=ne.droppableId===le.droppableId,je=pr(ne.index),ze=pr(le.index);return he?`
|
|
|
You have moved the item from position `+je+`
|
|
|
to position `+ze+`
|
|
|
`:`
|
|
|
You have moved the item from position `+je+`
|
|
|
in list `+ne.droppableId+`
|
|
|
to list `+le.droppableId+`
|
|
|
in position `+ze+`
|
|
|
`},_t=function(ne,le,he){var je=le.droppableId===he.droppableId;return je?`
|
|
|
The item `+ne+`
|
|
|
has been combined with `+he.draggableId:`
|
|
|
The item `+ne+`
|
|
|
in list `+le.droppableId+`
|
|
|
has been combined with `+he.draggableId+`
|
|
|
in list `+he.droppableId+`
|
|
|
`},Ut=function(ne){var le=ne.destination;if(le)return Tt(ne.source,le);var he=ne.combine;return he?_t(ne.draggableId,ne.source,he):"You are over an area that cannot be dropped on"},Fn=function(ne){return`
|
|
|
The item has returned to its starting position
|
|
|
of `+pr(ne.index)+`
|
|
|
`},zn=function(ne){if(ne.reason==="CANCEL")return`
|
|
|
Movement cancelled.
|
|
|
`+Fn(ne.source)+`
|
|
|
`;var le=ne.destination,he=ne.combine;return le?`
|
|
|
You have dropped the item.
|
|
|
`+Tt(ne.source,le)+`
|
|
|
`:he?`
|
|
|
You have dropped the item.
|
|
|
`+_t(ne.draggableId,ne.source,he)+`
|
|
|
`:`
|
|
|
The item has been dropped while not over a drop area.
|
|
|
`+Fn(ne.source)+`
|
|
|
`},Un={dragHandleUsageInstructions:ar,onDragStart:Ft,onDragUpdate:Ut,onDragEnd:zn},jn={x:0,y:0},gr=function(ne,le){return{x:ne.x+le.x,y:ne.y+le.y}},Ir=function(ne,le){return{x:ne.x-le.x,y:ne.y-le.y}},Mr=function(ne,le){return ne.x===le.x&&ne.y===le.y},Zr=function(ne){return{x:ne.x!==0?-ne.x:0,y:ne.y!==0?-ne.y:0}},Er=function(ne,le,he){var je;return he===void 0&&(he=0),je={},je[ne]=le,je[ne==="x"?"y":"x"]=he,je},Rr=function(ne,le){return Math.sqrt(Math.pow(le.x-ne.x,2)+Math.pow(le.y-ne.y,2))},Xr=function(ne,le){return Math.min.apply(Math,le.map(function(he){return Rr(ne,he)}))},oa=function(ne){return function(le){return{x:ne(le.x),y:ne(le.y)}}},ta=function(te,ne){var le=mn({top:Math.max(ne.top,te.top),right:Math.min(ne.right,te.right),bottom:Math.min(ne.bottom,te.bottom),left:Math.max(ne.left,te.left)});return le.width<=0||le.height<=0?null:le},xa=function(ne,le){return{top:ne.top+le.y,left:ne.left+le.x,bottom:ne.bottom+le.y,right:ne.right+le.x}},Fa=function(ne){return[{x:ne.left,y:ne.top},{x:ne.right,y:ne.top},{x:ne.left,y:ne.bottom},{x:ne.right,y:ne.bottom}]},Gr={top:0,right:0,bottom:0,left:0},ya=function(ne,le){return le?xa(ne,le.scroll.diff.displacement):ne},Xa=function(ne,le,he){if(he&&he.increasedBy){var je;return(0,ce.Z)({},ne,(je={},je[le.end]=ne[le.end]+he.increasedBy[le.line],je))}return ne},Ia=function(ne,le){return le&&le.shouldClipSubject?ta(le.pageMarginBox,ne):mn(ne)},pa=function(te){var ne=te.page,le=te.withPlaceholder,he=te.axis,je=te.frame,ze=ya(ne.marginBox,je),et=Xa(ze,he,le),dt=Ia(et,je);return{page:ne,withPlaceholder:le,active:dt}},kr=function(te,ne){te.frame||ht(!1);var le=te.frame,he=Ir(ne,le.scroll.initial),je=Zr(he),ze=(0,ce.Z)({},le,{scroll:{initial:le.scroll.initial,current:ne,diff:{value:he,displacement:je},max:le.scroll.max}}),et=pa({page:te.subject.page,withPlaceholder:te.subject.withPlaceholder,axis:te.axis,frame:ze}),dt=(0,ce.Z)({},te,{frame:ze,subject:et});return dt};function Za(te){return Number.isInteger?Number.isInteger(te):typeof te=="number"&&isFinite(te)&&Math.floor(te)===te}function Sa(te){return Object.values?Object.values(te):Object.keys(te).map(function(ne){return te[ne]})}function la(te,ne){if(te.findIndex)return te.findIndex(ne);for(var le=0;le<te.length;le++)if(ne(te[le]))return le;return-1}function Kr(te,ne){if(te.find)return te.find(ne);var le=la(te,ne);if(le!==-1)return te[le]}function Ya(te){return Array.prototype.slice.call(te)}var _i=En(function(te){return te.reduce(function(ne,le){return ne[le.descriptor.id]=le,ne},{})}),$i=En(function(te){return te.reduce(function(ne,le){return ne[le.descriptor.id]=le,ne},{})}),za=En(function(te){return Sa(te)}),Di=En(function(te){return Sa(te)}),pi=En(function(te,ne){var le=Di(ne).filter(function(he){return te===he.descriptor.droppableId}).sort(function(he,je){return he.descriptor.index-je.descriptor.index});return le});function Wi(te){return te.at&&te.at.type==="REORDER"?te.at.destination:null}function Ci(te){return te.at&&te.at.type==="COMBINE"?te.at.combine:null}var ei=En(function(te,ne){return ne.filter(function(le){return le.descriptor.id!==te.descriptor.id})}),Pr=function(te){var ne=te.isMovingForward,le=te.draggable,he=te.destination,je=te.insideDestination,ze=te.previousImpact;if(!he.isCombineEnabled)return null;var et=Wi(ze);if(!et)return null;function dt(va){var Na={type:"COMBINE",combine:{draggableId:va,droppableId:he.descriptor.id}};return(0,ce.Z)({},ze,{at:Na})}var en=ze.displaced.all,Cn=en.length?en[0]:null;if(ne)return Cn?dt(Cn):null;var yn=ei(le,je);if(!Cn){if(!yn.length)return null;var ln=yn[yn.length-1];return dt(ln.descriptor.id)}var cn=la(yn,function(va){return va.descriptor.id===Cn});cn===-1&&ht(!1);var Pn=cn-1;if(Pn<0)return null;var ur=yn[Pn];return dt(ur.descriptor.id)},Qn=function(te,ne){return te.descriptor.droppableId===ne.descriptor.id},Cr={point:jn,value:0},xr={invisible:{},visible:{},all:[]},tr={displaced:xr,displacedBy:Cr,at:null},jr=function(te,ne){return function(le){return te<=le&&le<=ne}},sa=function(te){var ne=jr(te.top,te.bottom),le=jr(te.left,te.right);return function(he){var je=ne(he.top)&&ne(he.bottom)&&le(he.left)&&le(he.right);if(je)return!0;var ze=ne(he.top)||ne(he.bottom),et=le(he.left)||le(he.right),dt=ze&&et;if(dt)return!0;var en=he.top<te.top&&he.bottom>te.bottom,Cn=he.left<te.left&&he.right>te.right,yn=en&&Cn;if(yn)return!0;var ln=en&&et||Cn&&ze;return ln}},br=function(te){var ne=jr(te.top,te.bottom),le=jr(te.left,te.right);return function(he){var je=ne(he.top)&&ne(he.bottom)&&le(he.left)&&le(he.right);return je}},Br={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},$r={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Qr=function(te){return function(ne){var le=jr(ne.top,ne.bottom),he=jr(ne.left,ne.right);return function(je){return te===Br?le(je.top)&&le(je.bottom):he(je.left)&&he(je.right)}}},Ta=function(ne,le){var he=le.frame?le.frame.scroll.diff.displacement:jn;return xa(ne,he)},ja=function(ne,le,he){return le.subject.active?he(le.subject.active)(ne):!1},ea=function(ne,le,he){return he(le)(ne)},ai=function(ne){var le=ne.target,he=ne.destination,je=ne.viewport,ze=ne.withDroppableDisplacement,et=ne.isVisibleThroughFrameFn,dt=ze?Ta(le,he):le;return ja(dt,he,et)&&ea(dt,je,et)},yi=function(ne){return ai((0,ce.Z)({},ne,{isVisibleThroughFrameFn:sa}))},zi=function(ne){return ai((0,ce.Z)({},ne,{isVisibleThroughFrameFn:br}))},Gi=function(ne){return ai((0,ce.Z)({},ne,{isVisibleThroughFrameFn:Qr(ne.destination.axis)}))},Ji=function(ne,le,he){if(typeof he=="boolean")return he;if(!le)return!0;var je=le.invisible,ze=le.visible;if(je[ne])return!1;var et=ze[ne];return et?et.shouldAnimate:!0};function Yi(te,ne){var le=te.page.marginBox,he={top:ne.point.y,right:0,bottom:0,left:ne.point.x};return mn(nt(le,he))}function co(te){var ne=te.afterDragging,le=te.destination,he=te.displacedBy,je=te.viewport,ze=te.forceShouldAnimate,et=te.last;return ne.reduce(function(en,Cn){var yn=Yi(Cn,he),ln=Cn.descriptor.id;en.all.push(ln);var cn=yi({target:yn,destination:le,viewport:je,withDroppableDisplacement:!0});if(!cn)return en.invisible[Cn.descriptor.id]=!0,en;var Pn=Ji(ln,et,ze),ur={draggableId:ln,shouldAnimate:Pn};return en.visible[ln]=ur,en},{all:[],visible:{},invisible:{}})}function No(te,ne){if(!te.length)return 0;var le=te[te.length-1].descriptor.index;return ne.inHomeList?le:le+1}function jo(te){var ne=te.insideDestination,le=te.inHomeList,he=te.displacedBy,je=te.destination,ze=No(ne,{inHomeList:le});return{displaced:xr,displacedBy:he,at:{type:"REORDER",destination:{droppableId:je.descriptor.id,index:ze}}}}function Wo(te){var ne=te.draggable,le=te.insideDestination,he=te.destination,je=te.viewport,ze=te.displacedBy,et=te.last,dt=te.index,en=te.forceShouldAnimate,Cn=Qn(ne,he);if(dt==null)return jo({insideDestination:le,inHomeList:Cn,displacedBy:ze,destination:he});var yn=Kr(le,function(va){return va.descriptor.index===dt});if(!yn)return jo({insideDestination:le,inHomeList:Cn,displacedBy:ze,destination:he});var ln=ei(ne,le),cn=le.indexOf(yn),Pn=ln.slice(cn),ur=co({afterDragging:Pn,destination:he,displacedBy:ze,last:et,viewport:je.frame,forceShouldAnimate:en});return{displaced:ur,displacedBy:ze,at:{type:"REORDER",destination:{droppableId:he.descriptor.id,index:dt}}}}function Da(te,ne){return!!ne.effected[te]}var Fi=function(te){var ne=te.isMovingForward,le=te.destination,he=te.draggables,je=te.combine,ze=te.afterCritical;if(!le.isCombineEnabled)return null;var et=je.draggableId,dt=he[et],en=dt.descriptor.index,Cn=Da(et,ze);return Cn?ne?en:en-1:ne?en+1:en},ri=function(te){var ne=te.isMovingForward,le=te.isInHomeList,he=te.insideDestination,je=te.location;if(!he.length)return null;var ze=je.index,et=ne?ze+1:ze-1,dt=he[0].descriptor.index,en=he[he.length-1].descriptor.index,Cn=le?en:en+1;return et<dt||et>Cn?null:et},So=function(te){var ne=te.isMovingForward,le=te.isInHomeList,he=te.draggable,je=te.draggables,ze=te.destination,et=te.insideDestination,dt=te.previousImpact,en=te.viewport,Cn=te.afterCritical,yn=dt.at;if(yn||ht(!1),yn.type==="REORDER"){var ln=ri({isMovingForward:ne,isInHomeList:le,location:yn.destination,insideDestination:et});return ln==null?null:Wo({draggable:he,insideDestination:et,destination:ze,viewport:en,last:dt.displaced,displacedBy:dt.displacedBy,index:ln})}var cn=Fi({isMovingForward:ne,destination:ze,displaced:dt.displaced,draggables:je,combine:yn.combine,afterCritical:Cn});return cn==null?null:Wo({draggable:he,insideDestination:et,destination:ze,viewport:en,last:dt.displaced,displacedBy:dt.displacedBy,index:cn})},di=function(te){var ne=te.displaced,le=te.afterCritical,he=te.combineWith,je=te.displacedBy,ze=!!(ne.visible[he]||ne.invisible[he]);return Da(he,le)?ze?jn:Zr(je.point):ze?je.point:jn},il=function(te){var ne=te.afterCritical,le=te.impact,he=te.draggables,je=Ci(le);je||ht(!1);var ze=je.draggableId,et=he[ze].page.borderBox.center,dt=di({displaced:le.displaced,afterCritical:ne,combineWith:ze,displacedBy:le.displacedBy});return gr(et,dt)},jl=function(ne,le){return le.margin[ne.start]+le.borderBox[ne.size]/2},Pl=function(ne,le){return le.margin[ne.end]+le.borderBox[ne.size]/2},Vo=function(ne,le,he){return le[ne.crossAxisStart]+he.margin[ne.crossAxisStart]+he.borderBox[ne.crossAxisSize]/2},Yo=function(ne){var le=ne.axis,he=ne.moveRelativeTo,je=ne.isMoving;return Er(le.line,he.marginBox[le.end]+jl(le,je),Vo(le,he.marginBox,je))},no=function(ne){var le=ne.axis,he=ne.moveRelativeTo,je=ne.isMoving;return Er(le.line,he.marginBox[le.start]-Pl(le,je),Vo(le,he.marginBox,je))},Ol=function(ne){var le=ne.axis,he=ne.moveInto,je=ne.isMoving;return Er(le.line,he.contentBox[le.start]+jl(le,je),Vo(le,he.contentBox,je))},Gl=function(te){var ne=te.impact,le=te.draggable,he=te.draggables,je=te.droppable,ze=te.afterCritical,et=pi(je.descriptor.id,he),dt=le.page,en=je.axis;if(!et.length)return Ol({axis:en,moveInto:je.page,isMoving:dt});var Cn=ne.displaced,yn=ne.displacedBy,ln=Cn.all[0];if(ln){var cn=he[ln];if(Da(ln,ze))return no({axis:en,moveRelativeTo:cn.page,isMoving:dt});var Pn=Gn(cn.page,yn.point);return no({axis:en,moveRelativeTo:Pn,isMoving:dt})}var ur=et[et.length-1];if(ur.descriptor.id===le.descriptor.id)return dt.borderBox.center;if(Da(ur.descriptor.id,ze)){var va=Gn(ur.page,Zr(ze.displacedBy.point));return Yo({axis:en,moveRelativeTo:va,isMoving:dt})}return Yo({axis:en,moveRelativeTo:ur.page,isMoving:dt})},Nl=function(te,ne){var le=te.frame;return le?gr(ne,le.scroll.diff.displacement):ne},Fo=function(ne){var le=ne.impact,he=ne.draggable,je=ne.droppable,ze=ne.draggables,et=ne.afterCritical,dt=he.page.borderBox.center,en=le.at;return!je||!en?dt:en.type==="REORDER"?Gl({impact:le,draggable:he,draggables:ze,droppable:je,afterCritical:et}):il({impact:le,draggables:ze,afterCritical:et})},es=function(te){var ne=Fo(te),le=te.droppable,he=le?Nl(le,ne):ne;return he},as=function(te,ne){var le=Ir(ne,te.scroll.initial),he=Zr(le),je=mn({top:ne.y,bottom:ne.y+te.frame.height,left:ne.x,right:ne.x+te.frame.width}),ze={frame:je,scroll:{initial:te.scroll.initial,max:te.scroll.max,current:ne,diff:{value:le,displacement:he}}};return ze};function Ni(te,ne){return te.map(function(le){return ne[le]})}function Qi(te,ne){for(var le=0;le<ne.length;le++){var he=ne[le].visible[te];if(he)return he}return null}var Ii=function(te){var ne=te.impact,le=te.viewport,he=te.destination,je=te.draggables,ze=te.maxScrollChange,et=as(le,gr(le.scroll.current,ze)),dt=he.frame?kr(he,gr(he.frame.scroll.current,ze)):he,en=ne.displaced,Cn=co({afterDragging:Ni(en.all,je),destination:he,displacedBy:ne.displacedBy,viewport:et.frame,last:en,forceShouldAnimate:!1}),yn=co({afterDragging:Ni(en.all,je),destination:dt,displacedBy:ne.displacedBy,viewport:le.frame,last:en,forceShouldAnimate:!1}),ln={},cn={},Pn=[en,Cn,yn];en.all.forEach(function(va){var Na=Qi(va,Pn);if(Na){cn[va]=Na;return}ln[va]=!0});var ur=(0,ce.Z)({},ne,{displaced:{all:en.all,invisible:ln,visible:cn}});return ur},hi=function(te,ne){return gr(te.scroll.diff.displacement,ne)},Hi=function(te){var ne=te.pageBorderBoxCenter,le=te.draggable,he=te.viewport,je=hi(he,ne),ze=Ir(je,le.page.borderBox.center);return gr(le.client.borderBox.center,ze)},uo=function(te){var ne=te.draggable,le=te.destination,he=te.newPageBorderBoxCenter,je=te.viewport,ze=te.withDroppableDisplacement,et=te.onlyOnMainAxis,dt=et===void 0?!1:et,en=Ir(he,ne.page.borderBox.center),Cn=xa(ne.page.borderBox,en),yn={target:Cn,destination:le,withDroppableDisplacement:ze,viewport:je};return dt?Gi(yn):zi(yn)},Fl=function(te){var ne=te.isMovingForward,le=te.draggable,he=te.destination,je=te.draggables,ze=te.previousImpact,et=te.viewport,dt=te.previousPageBorderBoxCenter,en=te.previousClientSelection,Cn=te.afterCritical;if(!he.isEnabled)return null;var yn=pi(he.descriptor.id,je),ln=Qn(le,he),cn=Pr({isMovingForward:ne,draggable:le,destination:he,insideDestination:yn,previousImpact:ze})||So({isMovingForward:ne,isInHomeList:ln,draggable:le,draggables:je,destination:he,insideDestination:yn,previousImpact:ze,viewport:et,afterCritical:Cn});if(!cn)return null;var Pn=es({impact:cn,draggable:le,droppable:he,draggables:je,afterCritical:Cn}),ur=uo({draggable:le,destination:he,newPageBorderBoxCenter:Pn,viewport:et.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(ur){var va=Hi({pageBorderBoxCenter:Pn,draggable:le,viewport:et});return{clientSelection:va,impact:cn,scrollJumpRequest:null}}var Na=Ir(Pn,dt),ka=Ii({impact:cn,viewport:et,destination:he,draggables:je,maxScrollChange:Na});return{clientSelection:en,impact:ka,scrollJumpRequest:Na}},oo=function(ne){var le=ne.subject.active;return le||ht(!1),le},Qo=function(te){var ne=te.isMovingForward,le=te.pageBorderBoxCenter,he=te.source,je=te.droppables,ze=te.viewport,et=he.subject.active;if(!et)return null;var dt=he.axis,en=jr(et[dt.start],et[dt.end]),Cn=za(je).filter(function(ln){return ln!==he}).filter(function(ln){return ln.isEnabled}).filter(function(ln){return!!ln.subject.active}).filter(function(ln){return sa(ze.frame)(oo(ln))}).filter(function(ln){var cn=oo(ln);return ne?et[dt.crossAxisEnd]<cn[dt.crossAxisEnd]:cn[dt.crossAxisStart]<et[dt.crossAxisStart]}).filter(function(ln){var cn=oo(ln),Pn=jr(cn[dt.start],cn[dt.end]);return en(cn[dt.start])||en(cn[dt.end])||Pn(et[dt.start])||Pn(et[dt.end])}).sort(function(ln,cn){var Pn=oo(ln)[dt.crossAxisStart],ur=oo(cn)[dt.crossAxisStart];return ne?Pn-ur:ur-Pn}).filter(function(ln,cn,Pn){return oo(ln)[dt.crossAxisStart]===oo(Pn[0])[dt.crossAxisStart]});if(!Cn.length)return null;if(Cn.length===1)return Cn[0];var yn=Cn.filter(function(ln){var cn=jr(oo(ln)[dt.start],oo(ln)[dt.end]);return cn(le[dt.line])});return yn.length===1?yn[0]:yn.length>1?yn.sort(function(ln,cn){return oo(ln)[dt.start]-oo(cn)[dt.start]})[0]:Cn.sort(function(ln,cn){var Pn=Xr(le,Fa(oo(ln))),ur=Xr(le,Fa(oo(cn)));return Pn!==ur?Pn-ur:oo(ln)[dt.start]-oo(cn)[dt.start]})[0]},Jo=function(ne,le){var he=ne.page.borderBox.center;return Da(ne.descriptor.id,le)?Ir(he,le.displacedBy.point):he},vn=function(ne,le){var he=ne.page.borderBox;return Da(ne.descriptor.id,le)?xa(he,Zr(le.displacedBy.point)):he},gn=function(te){var ne=te.pageBorderBoxCenter,le=te.viewport,he=te.destination,je=te.insideDestination,ze=te.afterCritical,et=je.filter(function(dt){return zi({target:vn(dt,ze),destination:he,viewport:le.frame,withDroppableDisplacement:!0})}).sort(function(dt,en){var Cn=Rr(ne,Nl(he,Jo(dt,ze))),yn=Rr(ne,Nl(he,Jo(en,ze)));return Cn<yn?-1:yn<Cn?1:dt.descriptor.index-en.descriptor.index});return et[0]||null},Nn=En(function(ne,le){var he=le[ne.line];return{value:he,point:Er(ne.line,he)}}),Sr=function(ne,le,he){var je=ne.axis;if(ne.descriptor.mode==="virtual")return Er(je.line,le[je.line]);var ze=ne.subject.page.contentBox[je.size],et=pi(ne.descriptor.id,he),dt=et.reduce(function(yn,ln){return yn+ln.client.marginBox[je.size]},0),en=dt+le[je.line],Cn=en-ze;return Cn<=0?null:Er(je.line,Cn)},Or=function(ne,le){return(0,ce.Z)({},ne,{scroll:(0,ce.Z)({},ne.scroll,{max:le})})},rr=function(ne,le,he){var je=ne.frame;Qn(le,ne)&&ht(!1),ne.subject.withPlaceholder&&ht(!1);var ze=Nn(ne.axis,le.displaceBy).point,et=Sr(ne,ze,he),dt={placeholderSize:ze,increasedBy:et,oldFrameMaxScroll:ne.frame?ne.frame.scroll.max:null};if(!je){var en=pa({page:ne.subject.page,withPlaceholder:dt,axis:ne.axis,frame:ne.frame});return(0,ce.Z)({},ne,{subject:en})}var Cn=et?gr(je.scroll.max,et):je.scroll.max,yn=Or(je,Cn),ln=pa({page:ne.subject.page,withPlaceholder:dt,axis:ne.axis,frame:yn});return(0,ce.Z)({},ne,{subject:ln,frame:yn})},ir=function(ne){var le=ne.subject.withPlaceholder;le||ht(!1);var he=ne.frame;if(!he){var je=pa({page:ne.subject.page,axis:ne.axis,frame:null,withPlaceholder:null});return(0,ce.Z)({},ne,{subject:je})}var ze=le.oldFrameMaxScroll;ze||ht(!1);var et=Or(he,ze),dt=pa({page:ne.subject.page,axis:ne.axis,frame:et,withPlaceholder:null});return(0,ce.Z)({},ne,{subject:dt,frame:et})},kn=function(te){var ne=te.previousPageBorderBoxCenter,le=te.moveRelativeTo,he=te.insideDestination,je=te.draggable,ze=te.draggables,et=te.destination,dt=te.viewport,en=te.afterCritical;if(!le){if(he.length)return null;var Cn={displaced:xr,displacedBy:Cr,at:{type:"REORDER",destination:{droppableId:et.descriptor.id,index:0}}},yn=es({impact:Cn,draggable:je,droppable:et,draggables:ze,afterCritical:en}),ln=Qn(je,et)?et:rr(et,je,ze),cn=uo({draggable:je,destination:ln,newPageBorderBoxCenter:yn,viewport:dt.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return cn?Cn:null}var Pn=ne[et.axis.line]<=le.page.borderBox.center[et.axis.line],ur=function(){var Na=le.descriptor.index;return le.descriptor.id===je.descriptor.id||Pn?Na:Na+1}(),va=Nn(et.axis,je.displaceBy);return Wo({draggable:je,insideDestination:he,destination:et,viewport:dt,displacedBy:va,last:xr,index:ur})},qn=function(te){var ne=te.isMovingForward,le=te.previousPageBorderBoxCenter,he=te.draggable,je=te.isOver,ze=te.draggables,et=te.droppables,dt=te.viewport,en=te.afterCritical,Cn=Qo({isMovingForward:ne,pageBorderBoxCenter:le,source:je,droppables:et,viewport:dt});if(!Cn)return null;var yn=pi(Cn.descriptor.id,ze),ln=gn({pageBorderBoxCenter:le,viewport:dt,destination:Cn,insideDestination:yn,afterCritical:en}),cn=kn({previousPageBorderBoxCenter:le,destination:Cn,draggable:he,draggables:ze,moveRelativeTo:ln,insideDestination:yn,viewport:dt,afterCritical:en});if(!cn)return null;var Pn=es({impact:cn,draggable:he,droppable:Cn,draggables:ze,afterCritical:en}),ur=Hi({pageBorderBoxCenter:Pn,draggable:he,viewport:dt});return{clientSelection:ur,impact:cn,scrollJumpRequest:null}},yr=function(te){var ne=te.at;return ne?ne.type==="REORDER"?ne.destination.droppableId:ne.combine.droppableId:null},na=function(ne,le){var he=yr(ne);return he?le[he]:null},xi=function(te){var ne=te.state,le=te.type,he=na(ne.impact,ne.dimensions.droppables),je=!!he,ze=ne.dimensions.droppables[ne.critical.droppable.id],et=he||ze,dt=et.axis.direction,en=dt==="vertical"&&(le==="MOVE_UP"||le==="MOVE_DOWN")||dt==="horizontal"&&(le==="MOVE_LEFT"||le==="MOVE_RIGHT");if(en&&!je)return null;var Cn=le==="MOVE_DOWN"||le==="MOVE_RIGHT",yn=ne.dimensions.draggables[ne.critical.draggable.id],ln=ne.current.page.borderBoxCenter,cn=ne.dimensions,Pn=cn.draggables,ur=cn.droppables;return en?Fl({isMovingForward:Cn,previousPageBorderBoxCenter:ln,draggable:yn,destination:et,draggables:Pn,viewport:ne.viewport,previousClientSelection:ne.current.client.selection,previousImpact:ne.impact,afterCritical:ne.afterCritical}):qn({isMovingForward:Cn,previousPageBorderBoxCenter:ln,draggable:yn,isOver:et,draggables:Pn,droppables:ur,viewport:ne.viewport,afterCritical:ne.afterCritical})};function ki(te){return te.phase==="DRAGGING"||te.phase==="COLLECTING"}function fo(te){var ne=jr(te.top,te.bottom),le=jr(te.left,te.right);return function(je){return ne(je.y)&&le(je.x)}}function ro(te,ne){return te.left<ne.right&&te.right>ne.left&&te.top<ne.bottom&&te.bottom>ne.top}function Ha(te){var ne=te.pageBorderBox,le=te.draggable,he=te.candidates,je=le.page.borderBox.center,ze=he.map(function(et){var dt=et.axis,en=Er(et.axis.line,ne.center[dt.line],et.page.borderBox.center[dt.crossAxisLine]);return{id:et.descriptor.id,distance:Rr(je,en)}}).sort(function(et,dt){return dt.distance-et.distance});return ze[0]?ze[0].id:null}function ma(te){var ne=te.pageBorderBox,le=te.draggable,he=te.droppables,je=za(he).filter(function(ze){if(!ze.isEnabled)return!1;var et=ze.subject.active;if(!et||!ro(ne,et))return!1;if(fo(et)(ne.center))return!0;var dt=ze.axis,en=et.center[dt.crossAxisLine],Cn=ne[dt.crossAxisStart],yn=ne[dt.crossAxisEnd],ln=jr(et[dt.crossAxisStart],et[dt.crossAxisEnd]),cn=ln(Cn),Pn=ln(yn);return!cn&&!Pn?!0:cn?Cn<en:yn>en});return je.length?je.length===1?je[0].descriptor.id:Ha({pageBorderBox:ne,draggable:le,candidates:je}):null}var Vr=function(ne,le){return mn(xa(ne,le))},Ti=function(te,ne){var le=te.frame;return le?Vr(ne,le.scroll.diff.value):ne};function Li(te){var ne=te.displaced,le=te.id;return!!(ne.visible[le]||ne.invisible[le])}function vo(te){var ne=te.draggable,le=te.closest,he=te.inHomeList;return le?he&&le.descriptor.index>ne.descriptor.index?le.descriptor.index-1:le.descriptor.index:null}var To=function(te){var ne=te.pageBorderBoxWithDroppableScroll,le=te.draggable,he=te.destination,je=te.insideDestination,ze=te.last,et=te.viewport,dt=te.afterCritical,en=he.axis,Cn=Nn(he.axis,le.displaceBy),yn=Cn.value,ln=ne[en.start],cn=ne[en.end],Pn=ei(le,je),ur=Kr(Pn,function(Na){var ka=Na.descriptor.id,oi=Na.page.borderBox.center[en.line],Ai=Da(ka,dt),Mi=Li({displaced:ze,id:ka});return Ai?Mi?cn<=oi:ln<oi-yn:Mi?cn<=oi+yn:ln<oi}),va=vo({draggable:le,closest:ur,inHomeList:Qn(le,he)});return Wo({draggable:le,insideDestination:je,destination:he,viewport:et,last:ze,displacedBy:Cn,index:va})},Pi=4,go=function(te){var ne=te.draggable,le=te.pageBorderBoxWithDroppableScroll,he=te.previousImpact,je=te.destination,ze=te.insideDestination,et=te.afterCritical;if(!je.isCombineEnabled)return null;var dt=je.axis,en=Nn(je.axis,ne.displaceBy),Cn=en.value,yn=le[dt.start],ln=le[dt.end],cn=ei(ne,ze),Pn=Kr(cn,function(va){var Na=va.descriptor.id,ka=va.page.borderBox,oi=ka[dt.size],Ai=oi/Pi,Mi=Da(Na,et),xo=Li({displaced:he.displaced,id:Na});return Mi?xo?ln>ka[dt.start]+Ai&&ln<ka[dt.end]-Ai:yn>ka[dt.start]-Cn+Ai&&yn<ka[dt.end]-Cn-Ai:xo?ln>ka[dt.start]+Cn+Ai&&ln<ka[dt.end]+Cn-Ai:yn>ka[dt.start]+Ai&&yn<ka[dt.end]-Ai});if(!Pn)return null;var ur={displacedBy:en,displaced:he.displaced,at:{type:"COMBINE",combine:{draggableId:Pn.descriptor.id,droppableId:je.descriptor.id}}};return ur},bi=function(te){var ne=te.pageOffset,le=te.draggable,he=te.draggables,je=te.droppables,ze=te.previousImpact,et=te.viewport,dt=te.afterCritical,en=Vr(le.page.borderBox,ne),Cn=ma({pageBorderBox:en,draggable:le,droppables:je});if(!Cn)return tr;var yn=je[Cn],ln=pi(yn.descriptor.id,he),cn=Ti(yn,en);return go({pageBorderBoxWithDroppableScroll:cn,draggable:le,previousImpact:ze,destination:yn,insideDestination:ln,afterCritical:dt})||To({pageBorderBoxWithDroppableScroll:cn,draggable:le,destination:yn,insideDestination:ln,last:ze.displaced,viewport:et,afterCritical:dt})},ga=function(te,ne){var le;return(0,ce.Z)({},te,(le={},le[ne.descriptor.id]=ne,le))},vi=function(ne){var le=ne.previousImpact,he=ne.impact,je=ne.droppables,ze=yr(le),et=yr(he);if(!ze||ze===et)return je;var dt=je[ze];if(!dt.subject.withPlaceholder)return je;var en=ir(dt);return ga(je,en)},fi=function(te){var ne=te.draggable,le=te.draggables,he=te.droppables,je=te.previousImpact,ze=te.impact,et=vi({previousImpact:je,impact:ze,droppables:he}),dt=yr(ze);if(!dt)return et;var en=he[dt];if(Qn(ne,en)||en.subject.withPlaceholder)return et;var Cn=rr(en,ne,le);return ga(et,Cn)},si=function(te){var ne=te.state,le=te.clientSelection,he=te.dimensions,je=te.viewport,ze=te.impact,et=te.scrollJumpRequest,dt=je||ne.viewport,en=he||ne.dimensions,Cn=le||ne.current.client.selection,yn=Ir(Cn,ne.initial.client.selection),ln={offset:yn,selection:Cn,borderBoxCenter:gr(ne.initial.client.borderBoxCenter,yn)},cn={selection:gr(ln.selection,dt.scroll.current),borderBoxCenter:gr(ln.borderBoxCenter,dt.scroll.current),offset:gr(ln.offset,dt.scroll.diff.value)},Pn={client:ln,page:cn};if(ne.phase==="COLLECTING")return(0,ce.Z)({phase:"COLLECTING"},ne,{dimensions:en,viewport:dt,current:Pn});var ur=en.draggables[ne.critical.draggable.id],va=ze||bi({pageOffset:cn.offset,draggable:ur,draggables:en.draggables,droppables:en.droppables,previousImpact:ne.impact,viewport:dt,afterCritical:ne.afterCritical}),Na=fi({draggable:ur,impact:va,previousImpact:ne.impact,draggables:en.draggables,droppables:en.droppables}),ka=(0,ce.Z)({},ne,{current:Pn,dimensions:{draggables:en.draggables,droppables:Na},impact:va,viewport:dt,scrollJumpRequest:et||null,forceShouldAnimate:et?!1:null});return ka};function Bt(te,ne){return te.map(function(le){return ne[le]})}var Xt=function(te){var ne=te.impact,le=te.viewport,he=te.draggables,je=te.destination,ze=te.forceShouldAnimate,et=ne.displaced,dt=Bt(et.all,he),en=co({afterDragging:dt,destination:je,displacedBy:ne.displacedBy,viewport:le.frame,forceShouldAnimate:ze,last:et});return(0,ce.Z)({},ne,{displaced:en})},an=function(te){var ne=te.impact,le=te.draggable,he=te.droppable,je=te.draggables,ze=te.viewport,et=te.afterCritical,dt=es({impact:ne,draggable:le,draggables:je,droppable:he,afterCritical:et});return Hi({pageBorderBoxCenter:dt,draggable:le,viewport:ze})},In=function(te){var ne=te.state,le=te.dimensions,he=te.viewport;ne.movementMode!=="SNAP"&&ht(!1);var je=ne.impact,ze=he||ne.viewport,et=le||ne.dimensions,dt=et.draggables,en=et.droppables,Cn=dt[ne.critical.draggable.id],yn=yr(je);yn||ht(!1);var ln=en[yn],cn=Xt({impact:je,viewport:ze,destination:ln,draggables:dt}),Pn=an({impact:cn,draggable:Cn,droppable:ln,draggables:dt,viewport:ze,afterCritical:ne.afterCritical});return si({impact:cn,clientSelection:Pn,state:ne,dimensions:et,viewport:ze})},Va=function(te){return{index:te.index,droppableId:te.droppableId}},zr=function(te){var ne=te.draggable,le=te.home,he=te.draggables,je=te.viewport,ze=Nn(le.axis,ne.displaceBy),et=pi(le.descriptor.id,he),dt=et.indexOf(ne);dt===-1&&ht(!1);var en=et.slice(dt+1),Cn=en.reduce(function(Pn,ur){return Pn[ur.descriptor.id]=!0,Pn},{}),yn={inVirtualList:le.descriptor.mode==="virtual",displacedBy:ze,effected:Cn},ln=co({afterDragging:en,destination:le,displacedBy:ze,last:null,viewport:je.frame,forceShouldAnimate:!1}),cn={displaced:ln,displacedBy:ze,at:{type:"REORDER",destination:Va(ne.descriptor)}};return{impact:cn,afterCritical:yn}},Jn=function(te,ne){return{draggables:te.draggables,droppables:ga(te.droppables,ne)}},hr=function(ne){},Ar=function(ne){},aa=function(te){var ne=te.draggable,le=te.offset,he=te.initialWindowScroll,je=Gn(ne.client,le),ze=On(je,he),et=(0,ce.Z)({},ne,{placeholder:(0,ce.Z)({},ne.placeholder,{client:je}),client:je,page:ze});return et},Wr=function(te){var ne=te.frame;return ne||ht(!1),ne},or=function(te){var ne=te.additions,le=te.updatedDroppables,he=te.viewport,je=he.scroll.diff.value;return ne.map(function(ze){var et=ze.descriptor.droppableId,dt=le[et],en=Wr(dt),Cn=en.scroll.diff.value,yn=gr(je,Cn),ln=aa({draggable:ze,offset:yn,initialWindowScroll:he.scroll.initial});return ln})},ha=function(te){var ne=te.state,le=te.published;hr();var he=le.modified.map(function(Ai){var Mi=ne.dimensions.droppables[Ai.droppableId],xo=kr(Mi,Ai.scroll);return xo}),je=(0,ce.Z)({},ne.dimensions.droppables,{},_i(he)),ze=$i(or({additions:le.additions,updatedDroppables:je,viewport:ne.viewport})),et=(0,ce.Z)({},ne.dimensions.draggables,{},ze);le.removals.forEach(function(Ai){delete et[Ai]});var dt={droppables:je,draggables:et},en=yr(ne.impact),Cn=en?dt.droppables[en]:null,yn=dt.draggables[ne.critical.draggable.id],ln=dt.droppables[ne.critical.droppable.id],cn=zr({draggable:yn,home:ln,draggables:et,viewport:ne.viewport}),Pn=cn.impact,ur=cn.afterCritical,va=Cn&&Cn.isCombineEnabled?ne.impact:Pn,Na=bi({pageOffset:ne.current.page.offset,draggable:dt.draggables[ne.critical.draggable.id],draggables:dt.draggables,droppables:dt.droppables,previousImpact:va,viewport:ne.viewport,afterCritical:ur});Ar();var ka=(0,ce.Z)({phase:"DRAGGING"},ne,{phase:"DRAGGING",impact:Na,onLiftImpact:Pn,dimensions:dt,afterCritical:ur,forceShouldAnimate:!1});if(ne.phase==="COLLECTING")return ka;var oi=(0,ce.Z)({phase:"DROP_PENDING"},ka,{phase:"DROP_PENDING",reason:ne.reason,isWaiting:!1});return oi},fa=function(ne){return ne.movementMode==="SNAP"},Nr=function(ne,le,he){var je=Jn(ne.dimensions,le);return!fa(ne)||he?si({state:ne,dimensions:je}):In({state:ne,dimensions:je})};function Aa(te){return te.isDragging&&te.movementMode==="SNAP"?(0,ce.Z)({phase:"DRAGGING"},te,{scrollJumpRequest:null}):te}var $a={phase:"IDLE",completed:null,shouldFlush:!1},ua=function(te,ne){if(te===void 0&&(te=$a),ne.type==="FLUSH")return(0,ce.Z)({},$a,{shouldFlush:!0});if(ne.type==="INITIAL_PUBLISH"){te.phase!=="IDLE"&&ht(!1);var le=ne.payload,he=le.critical,je=le.clientSelection,ze=le.viewport,et=le.dimensions,dt=le.movementMode,en=et.draggables[he.draggable.id],Cn=et.droppables[he.droppable.id],yn={selection:je,borderBoxCenter:en.client.borderBox.center,offset:jn},ln={client:yn,page:{selection:gr(yn.selection,ze.scroll.initial),borderBoxCenter:gr(yn.selection,ze.scroll.initial),offset:gr(yn.selection,ze.scroll.diff.value)}},cn=za(et.droppables).every(function(Oc){return!Oc.isFixedOnPage}),Pn=zr({draggable:en,home:Cn,draggables:et.draggables,viewport:ze}),ur=Pn.impact,va=Pn.afterCritical,Na={phase:"DRAGGING",isDragging:!0,critical:he,movementMode:dt,dimensions:et,initial:ln,current:ln,isWindowScrollAllowed:cn,impact:ur,afterCritical:va,onLiftImpact:ur,viewport:ze,scrollJumpRequest:null,forceShouldAnimate:null};return Na}if(ne.type==="COLLECTION_STARTING"){if(te.phase==="COLLECTING"||te.phase==="DROP_PENDING")return te;te.phase!=="DRAGGING"&&ht(!1);var ka=(0,ce.Z)({phase:"COLLECTING"},te,{phase:"COLLECTING"});return ka}if(ne.type==="PUBLISH_WHILE_DRAGGING")return te.phase==="COLLECTING"||te.phase==="DROP_PENDING"||ht(!1),ha({state:te,published:ne.payload});if(ne.type==="MOVE"){if(te.phase==="DROP_PENDING")return te;ki(te)||ht(!1);var oi=ne.payload.client;return Mr(oi,te.current.client.selection)?te:si({state:te,clientSelection:oi,impact:fa(te)?te.impact:null})}if(ne.type==="UPDATE_DROPPABLE_SCROLL"){if(te.phase==="DROP_PENDING"||te.phase==="COLLECTING")return Aa(te);ki(te)||ht(!1);var Ai=ne.payload,Mi=Ai.id,xo=Ai.newScroll,ho=te.dimensions.droppables[Mi];if(!ho)return te;var Zo=kr(ho,xo);return Nr(te,Zo,!1)}if(ne.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(te.phase==="DROP_PENDING")return te;ki(te)||ht(!1);var Hl=ne.payload,Ho=Hl.id,Vl=Hl.isEnabled,us=te.dimensions.droppables[Ho];us||ht(!1),us.isEnabled===Vl&&ht(!1);var hs=(0,ce.Z)({},us,{isEnabled:Vl});return Nr(te,hs,!0)}if(ne.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(te.phase==="DROP_PENDING")return te;ki(te)||ht(!1);var lu=ne.payload,qs=lu.id,Zs=lu.isCombineEnabled,su=te.dimensions.droppables[qs];su||ht(!1),su.isCombineEnabled===Zs&&ht(!1);var vs=(0,ce.Z)({},su,{isCombineEnabled:Zs});return Nr(te,vs,!0)}if(ne.type==="MOVE_BY_WINDOW_SCROLL"){if(te.phase==="DROP_PENDING"||te.phase==="DROP_ANIMATING")return te;ki(te)||ht(!1),te.isWindowScrollAllowed||ht(!1);var _u=ne.payload.newScroll;if(Mr(te.viewport.scroll.current,_u))return Aa(te);var uu=as(te.viewport,_u);return fa(te)?In({state:te,viewport:uu}):si({state:te,viewport:uu})}if(ne.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!ki(te))return te;var vc=ne.payload.maxScroll;if(Mr(vc,te.viewport.scroll.max))return te;var Ju=(0,ce.Z)({},te.viewport,{scroll:(0,ce.Z)({},te.viewport.scroll,{max:vc})});return(0,ce.Z)({phase:"DRAGGING"},te,{viewport:Ju})}if(ne.type==="MOVE_UP"||ne.type==="MOVE_DOWN"||ne.type==="MOVE_LEFT"||ne.type==="MOVE_RIGHT"){if(te.phase==="COLLECTING"||te.phase==="DROP_PENDING")return te;te.phase!=="DRAGGING"&&ht(!1);var Ru=xi({state:te,type:ne.type});return Ru?si({state:te,impact:Ru.impact,clientSelection:Ru.clientSelection,scrollJumpRequest:Ru.scrollJumpRequest}):te}if(ne.type==="DROP_PENDING"){var cu=ne.payload.reason;te.phase!=="COLLECTING"&&ht(!1);var qu=(0,ce.Z)({phase:"DROP_PENDING"},te,{phase:"DROP_PENDING",isWaiting:!0,reason:cu});return qu}if(ne.type==="DROP_ANIMATE"){var Fc=ne.payload,du=Fc.completed,gc=Fc.dropDuration,Ic=Fc.newHomeClientOffset;te.phase==="DRAGGING"||te.phase==="DROP_PENDING"||ht(!1);var lc={phase:"DROP_ANIMATING",completed:du,dropDuration:gc,newHomeClientOffset:Ic,dimensions:te.dimensions};return lc}if(ne.type==="DROP_COMPLETE"){var Pc=ne.payload.completed;return{phase:"IDLE",completed:Pc,shouldFlush:!1}}return te},fr=function(ne){return{type:"BEFORE_INITIAL_CAPTURE",payload:ne}},Yr=function(ne){return{type:"LIFT",payload:ne}},ui=function(ne){return{type:"INITIAL_PUBLISH",payload:ne}},ba=function(ne){return{type:"PUBLISH_WHILE_DRAGGING",payload:ne}},ca=function(){return{type:"COLLECTION_STARTING",payload:null}},ra=function(ne){return{type:"UPDATE_DROPPABLE_SCROLL",payload:ne}},Pa=function(ne){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:ne}},ao=function(ne){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:ne}},qo=function(ne){return{type:"MOVE",payload:ne}},Ko=function(ne){return{type:"MOVE_BY_WINDOW_SCROLL",payload:ne}},Xl=function(ne){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:ne}},Oi=function(){return{type:"MOVE_UP",payload:null}},Tl=function(){return{type:"MOVE_DOWN",payload:null}},Ml=function(){return{type:"MOVE_RIGHT",payload:null}},Ur=function(){return{type:"MOVE_LEFT",payload:null}},bo=function(){return{type:"FLUSH",payload:null}},Io=function(ne){return{type:"DROP_ANIMATE",payload:ne}},Eo=function(ne){return{type:"DROP_COMPLETE",payload:ne}},yl=function(ne){return{type:"DROP",payload:ne}},js=function(ne){return{type:"DROP_PENDING",payload:ne}},_s=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function eu(te){if(!(te.length<=1)){for(var ne=te.map(function(dt){return dt.descriptor.index}),le={},he=1;he<ne.length;he++){var je=ne[he],ze=ne[he-1];je!==ze+1&&(le[je]=!0)}if(Object.keys(le).length)var et=ne.map(function(dt){var en=!!le[dt];return en?"[\u{1F525}"+dt+"]":""+dt}).join(", ")}}function xs(te,ne){if(0)var le}var As=function(te){return function(ne){var le=ne.getState,he=ne.dispatch;return function(je){return function(ze){if(ze.type!=="LIFT"){je(ze);return}var et=ze.payload,dt=et.id,en=et.clientSelection,Cn=et.movementMode,yn=le();yn.phase==="DROP_ANIMATING"&&he(Eo({completed:yn.completed})),le().phase!=="IDLE"&&ht(!1),he(bo()),he(fr({draggableId:dt,movementMode:Cn}));var ln={shouldPublishImmediately:Cn==="SNAP"},cn={draggableId:dt,scrollOptions:ln},Pn=te.startPublishing(cn),ur=Pn.critical,va=Pn.dimensions,Na=Pn.viewport;xs(ur,va),he(ui({critical:ur,dimensions:va,clientSelection:en,movementMode:Cn,viewport:Na}))}}}},tu=function(te){return function(){return function(ne){return function(le){le.type==="INITIAL_PUBLISH"&&te.dragging(),le.type==="DROP_ANIMATE"&&te.dropping(le.payload.completed.result.reason),(le.type==="FLUSH"||le.type==="DROP_COMPLETE")&&te.resting(),ne(le)}}}},cs={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Ss={opacity:{drop:0,combining:.7},scale:{drop:.75}},$s={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Fs=$s.outOfTheWay+"s "+cs.outOfTheWay,gs={fluid:"opacity "+Fs,snap:"transform "+Fs+", opacity "+Fs,drop:function(ne){var le=ne+"s "+cs.drop;return"transform "+le+", opacity "+le},outOfTheWay:"transform "+Fs,placeholder:"height "+Fs+", width "+Fs+", margin "+Fs},Ws=function(ne){return Mr(ne,jn)?null:"translate("+ne.x+"px, "+ne.y+"px)"},Is={moveTo:Ws,drop:function(ne,le){var he=Ws(ne);return he?le?he+" scale("+Ss.scale.drop+")":he:null}},Rs=$s.minDropTime,zs=$s.maxDropTime,Gs=zs-Rs,Eu=1500,Cu=.6,ec=function(te){var ne=te.current,le=te.destination,he=te.reason,je=Rr(ne,le);if(je<=0)return Rs;if(je>=Eu)return zs;var ze=je/Eu,et=Rs+Gs*ze,dt=he==="CANCEL"?et*Cu:et;return Number(dt.toFixed(2))},Ps=function(te){var ne=te.impact,le=te.draggable,he=te.dimensions,je=te.viewport,ze=te.afterCritical,et=he.draggables,dt=he.droppables,en=yr(ne),Cn=en?dt[en]:null,yn=dt[le.descriptor.droppableId],ln=an({impact:ne,draggable:le,draggables:et,afterCritical:ze,droppable:Cn||yn,viewport:je}),cn=Ir(ln,le.client.borderBox.center);return cn},ws=function(te){var ne=te.draggables,le=te.reason,he=te.lastImpact,je=te.home,ze=te.viewport,et=te.onLiftImpact;if(!he.at||le!=="DROP"){var dt=Xt({draggables:ne,impact:et,destination:je,viewport:ze,forceShouldAnimate:!0});return{impact:dt,didDropInsideDroppable:!1}}if(he.at.type==="REORDER")return{impact:he,didDropInsideDroppable:!0};var en=(0,ce.Z)({},he,{displaced:xr});return{impact:en,didDropInsideDroppable:!0}},xu=function(te){var ne=te.getState,le=te.dispatch;return function(he){return function(je){if(je.type!=="DROP"){he(je);return}var ze=ne(),et=je.payload.reason;if(ze.phase==="COLLECTING"){le(js({reason:et}));return}if(ze.phase!=="IDLE"){var dt=ze.phase==="DROP_PENDING"&&ze.isWaiting;dt&&ht(!1),ze.phase==="DRAGGING"||ze.phase==="DROP_PENDING"||ht(!1);var en=ze.critical,Cn=ze.dimensions,yn=Cn.draggables[ze.critical.draggable.id],ln=ws({reason:et,lastImpact:ze.impact,afterCritical:ze.afterCritical,onLiftImpact:ze.onLiftImpact,home:ze.dimensions.droppables[ze.critical.droppable.id],viewport:ze.viewport,draggables:ze.dimensions.draggables}),cn=ln.impact,Pn=ln.didDropInsideDroppable,ur=Pn?Wi(cn):null,va=Pn?Ci(cn):null,Na={index:en.draggable.index,droppableId:en.droppable.id},ka={draggableId:yn.descriptor.id,type:yn.descriptor.type,source:Na,reason:et,mode:ze.movementMode,destination:ur,combine:va},oi=Ps({impact:cn,draggable:yn,dimensions:Cn,viewport:ze.viewport,afterCritical:ze.afterCritical}),Ai={critical:ze.critical,afterCritical:ze.afterCritical,result:ka,impact:cn},Mi=!Mr(ze.current.client.offset,oi)||!!ka.combine;if(!Mi){le(Eo({completed:Ai}));return}var xo=ec({current:ze.current.client.offset,destination:oi,reason:et}),ho={newHomeClientOffset:oi,dropDuration:xo,completed:Ai};le(Io(ho))}}}},ku=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Lu(te){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(le){le.target!==window&&le.target!==window.document||te()}}}function $n(te){var ne=te.onWindowScroll;function le(){ne(ku())}var he=Vn(le),je=Lu(he),ze=vr;function et(){return ze!==vr}function dt(){et()&&ht(!1),ze=Kt(window,[je])}function en(){et()||ht(!1),he.cancel(),ze(),ze=vr}return{start:dt,stop:en,isActive:et}}var wa=function(ne){return ne.type==="DROP_COMPLETE"||ne.type==="DROP_ANIMATE"||ne.type==="FLUSH"},Vi=function(te){var ne=$n({onWindowScroll:function(he){te.dispatch(Ko({newScroll:he}))}});return function(le){return function(he){!ne.isActive()&&he.type==="INITIAL_PUBLISH"&&ne.start(),ne.isActive()&&wa(he)&&ne.stop(),le(he)}}},Ma=function(te){var ne=!1,le=!1,he=setTimeout(function(){le=!0}),je=function(et){ne||le||(ne=!0,te(et),clearTimeout(he))};return je.wasCalled=function(){return ne},je},Fr=function(){var te=[],ne=function(ze){var et=la(te,function(Cn){return Cn.timerId===ze});et===-1&&ht(!1);var dt=te.splice(et,1),en=dt[0];en.callback()},le=function(ze){var et=setTimeout(function(){return ne(et)}),dt={timerId:et,callback:ze};te.push(dt)},he=function(){if(te.length){var ze=[].concat(te);te.length=0,ze.forEach(function(et){clearTimeout(et.timerId),et.callback()})}};return{add:le,flush:he}},Zi=function(ne,le){return ne==null&&le==null?!0:ne==null||le==null?!1:ne.droppableId===le.droppableId&&ne.index===le.index},Ki=function(ne,le){return ne==null&&le==null?!0:ne==null||le==null?!1:ne.draggableId===le.draggableId&&ne.droppableId===le.droppableId},ko=function(ne,le){if(ne===le)return!0;var he=ne.draggable.id===le.draggable.id&&ne.draggable.droppableId===le.draggable.droppableId&&ne.draggable.type===le.draggable.type&&ne.draggable.index===le.draggable.index,je=ne.droppable.id===le.droppable.id&&ne.droppable.type===le.droppable.type;return he&&je},Xi=function(ne,le){hr(),le(),Ar()},dl=function(ne,le){return{draggableId:ne.draggable.id,type:ne.droppable.type,source:{droppableId:ne.droppable.id,index:ne.draggable.index},mode:le}},Ro=function(ne,le,he,je){if(!ne){he(je(le));return}var ze=Ma(he),et={announce:ze};ne(le,et),ze.wasCalled()||he(je(le))},ys=function(te,ne){var le=Fr(),he=null,je=function(cn,Pn){he&&ht(!1),Xi("onBeforeCapture",function(){var ur=te().onBeforeCapture;if(ur){var va={draggableId:cn,mode:Pn};ur(va)}})},ze=function(cn,Pn){he&&ht(!1),Xi("onBeforeDragStart",function(){var ur=te().onBeforeDragStart;ur&&ur(dl(cn,Pn))})},et=function(cn,Pn){he&&ht(!1);var ur=dl(cn,Pn);he={mode:Pn,lastCritical:cn,lastLocation:ur.source,lastCombine:null},le.add(function(){Xi("onDragStart",function(){return Ro(te().onDragStart,ur,ne,Un.onDragStart)})})},dt=function(cn,Pn){var ur=Wi(Pn),va=Ci(Pn);he||ht(!1);var Na=!ko(cn,he.lastCritical);Na&&(he.lastCritical=cn);var ka=!Zi(he.lastLocation,ur);ka&&(he.lastLocation=ur);var oi=!Ki(he.lastCombine,va);if(oi&&(he.lastCombine=va),!(!Na&&!ka&&!oi)){var Ai=(0,ce.Z)({},dl(cn,he.mode),{combine:va,destination:ur});le.add(function(){Xi("onDragUpdate",function(){return Ro(te().onDragUpdate,Ai,ne,Un.onDragUpdate)})})}},en=function(){he||ht(!1),le.flush()},Cn=function(cn){he||ht(!1),he=null,Xi("onDragEnd",function(){return Ro(te().onDragEnd,cn,ne,Un.onDragEnd)})},yn=function(){if(he){var cn=(0,ce.Z)({},dl(he.lastCritical,he.mode),{combine:null,destination:null,reason:"CANCEL"});Cn(cn)}};return{beforeCapture:je,beforeStart:ze,start:et,update:dt,flush:en,drop:Cn,abort:yn}},Xs=function(te,ne){var le=ys(te,ne);return function(he){return function(je){return function(ze){if(ze.type==="BEFORE_INITIAL_CAPTURE"){le.beforeCapture(ze.payload.draggableId,ze.payload.movementMode);return}if(ze.type==="INITIAL_PUBLISH"){var et=ze.payload.critical;le.beforeStart(et,ze.payload.movementMode),je(ze),le.start(et,ze.payload.movementMode);return}if(ze.type==="DROP_COMPLETE"){var dt=ze.payload.completed.result;le.flush(),je(ze),le.drop(dt);return}if(je(ze),ze.type==="FLUSH"){le.abort();return}var en=he.getState();en.phase==="DRAGGING"&&le.update(en.critical,en.impact)}}}},ci=function(te){return function(ne){return function(le){if(le.type!=="DROP_ANIMATION_FINISHED"){ne(le);return}var he=te.getState();he.phase!=="DROP_ANIMATING"&&ht(!1),te.dispatch(Eo({completed:he.completed}))}}},bl=function(te){var ne=null,le=null;function he(){le&&(cancelAnimationFrame(le),le=null),ne&&(ne(),ne=null)}return function(je){return function(ze){if((ze.type==="FLUSH"||ze.type==="DROP_COMPLETE"||ze.type==="DROP_ANIMATION_FINISHED")&&he(),je(ze),ze.type==="DROP_ANIMATE"){var et={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var en=te.getState();en.phase==="DROP_ANIMATING"&&te.dispatch(_s())}};le=requestAnimationFrame(function(){le=null,ne=Kt(window,[et])})}}}},is=function(te){return function(){return function(ne){return function(le){(le.type==="DROP_COMPLETE"||le.type==="FLUSH"||le.type==="DROP_ANIMATE")&&te.stopPublishing(),ne(le)}}}},$l=function(te){var ne=!1;return function(){return function(le){return function(he){if(he.type==="INITIAL_PUBLISH"){ne=!0,te.tryRecordFocus(he.payload.critical.draggable.id),le(he),te.tryRestoreFocusRecorded();return}if(le(he),!!ne){if(he.type==="FLUSH"){ne=!1,te.tryRestoreFocusRecorded();return}if(he.type==="DROP_COMPLETE"){ne=!1;var je=he.payload.completed.result;je.combine&&te.tryShiftRecord(je.draggableId,je.combine.draggableId),te.tryRestoreFocusRecorded()}}}}}},ke=function(ne){return ne.type==="DROP_COMPLETE"||ne.type==="DROP_ANIMATE"||ne.type==="FLUSH"},Re=function(te){return function(ne){return function(le){return function(he){if(ke(he)){te.stop(),le(he);return}if(he.type==="INITIAL_PUBLISH"){le(he);var je=ne.getState();je.phase!=="DRAGGING"&&ht(!1),te.start(je);return}le(he),te.scroll(ne.getState())}}}},Dt=function(te){return function(ne){return function(le){if(ne(le),le.type==="PUBLISH_WHILE_DRAGGING"){var he=te.getState();he.phase==="DROP_PENDING"&&(he.isWaiting||te.dispatch(yl({reason:he.reason})))}}}},Lt=Le.qC,on=function(te){var ne=te.dimensionMarshal,le=te.focusMarshal,he=te.styleMarshal,je=te.getResponders,ze=te.announce,et=te.autoScroller;return(0,Le.MT)(ua,Lt((0,Le.md)(tu(he),is(ne),As(ne),xu,ci,bl,Dt,Re(et),Vi,$l(le),Xs(je,ze))))},hn=function(){return{additions:{},removals:{},modified:{}}};function _n(te){var ne=te.registry,le=te.callbacks,he=hn(),je=null,ze=function(){je||(le.collectionStarting(),je=requestAnimationFrame(function(){je=null,hr();var yn=he,ln=yn.additions,cn=yn.removals,Pn=yn.modified,ur=Object.keys(ln).map(function(ka){return ne.draggable.getById(ka).getDimension(jn)}).sort(function(ka,oi){return ka.descriptor.index-oi.descriptor.index}),va=Object.keys(Pn).map(function(ka){var oi=ne.droppable.getById(ka),Ai=oi.callbacks.getScrollWhileDragging();return{droppableId:ka,scroll:Ai}}),Na={additions:ur,removals:Object.keys(cn),modified:va};he=hn(),Ar(),le.publish(Na)}))},et=function(yn){var ln=yn.descriptor.id;he.additions[ln]=yn,he.modified[yn.descriptor.droppableId]=!0,he.removals[ln]&&delete he.removals[ln],ze()},dt=function(yn){var ln=yn.descriptor;he.removals[ln.id]=!0,he.modified[ln.droppableId]=!0,he.additions[ln.id]&&delete he.additions[ln.id],ze()},en=function(){je&&(cancelAnimationFrame(je),je=null,he=hn())};return{add:et,remove:dt,stop:en}}var Bn=function(te){var ne=te.scrollHeight,le=te.scrollWidth,he=te.height,je=te.width,ze=Ir({x:le,y:ne},{x:je,y:he}),et={x:Math.max(0,ze.x),y:Math.max(0,ze.y)};return et},Zn=function(){var te=document.documentElement;return te||ht(!1),te},Ln=function(){var te=Zn(),ne=Bn({scrollHeight:te.scrollHeight,scrollWidth:te.scrollWidth,width:te.clientWidth,height:te.clientHeight});return ne},wr=function(){var te=ku(),ne=Ln(),le=te.y,he=te.x,je=Zn(),ze=je.clientWidth,et=je.clientHeight,dt=he+ze,en=le+et,Cn=mn({top:le,left:he,right:dt,bottom:en}),yn={frame:Cn,scroll:{initial:te,current:te,max:ne,diff:{value:jn,displacement:jn}}};return yn},lr=function(te){var ne=te.critical,le=te.scrollOptions,he=te.registry;hr();var je=wr(),ze=je.scroll.current,et=ne.droppable,dt=he.droppable.getAllByType(et.type).map(function(ln){return ln.callbacks.getDimensionAndWatchScroll(ze,le)}),en=he.draggable.getAllByType(ne.draggable.type).map(function(ln){return ln.getDimension(ze)}),Cn={draggables:$i(en),droppables:_i(dt)};Ar();var yn={dimensions:Cn,critical:ne,viewport:je};return yn};function nr(te,ne,le){if(le.descriptor.id===ne.id||le.descriptor.type!==ne.type)return!1;var he=te.droppable.getById(le.descriptor.droppableId);return he.descriptor.mode==="virtual"}var Xn=function(te,ne){var le=null,he=_n({callbacks:{publish:ne.publishWhileDragging,collectionStarting:ne.collectionStarting},registry:te}),je=function(Pn,ur){te.droppable.exists(Pn)||ht(!1),le&&ne.updateDroppableIsEnabled({id:Pn,isEnabled:ur})},ze=function(Pn,ur){le&&(te.droppable.exists(Pn)||ht(!1),ne.updateDroppableIsCombineEnabled({id:Pn,isCombineEnabled:ur}))},et=function(Pn,ur){le&&(te.droppable.exists(Pn)||ht(!1),ne.updateDroppableScroll({id:Pn,newScroll:ur}))},dt=function(Pn,ur){le&&te.droppable.getById(Pn).callbacks.scroll(ur)},en=function(){if(le){he.stop();var Pn=le.critical.droppable;te.droppable.getAllByType(Pn.type).forEach(function(ur){return ur.callbacks.dragStopped()}),le.unsubscribe(),le=null}},Cn=function(Pn){le||ht(!1);var ur=le.critical.draggable;Pn.type==="ADDITION"&&nr(te,ur,Pn.value)&&he.add(Pn.value),Pn.type==="REMOVAL"&&nr(te,ur,Pn.value)&&he.remove(Pn.value)},yn=function(Pn){le&&ht(!1);var ur=te.draggable.getById(Pn.draggableId),va=te.droppable.getById(ur.descriptor.droppableId),Na={draggable:ur.descriptor,droppable:va.descriptor},ka=te.subscribe(Cn);return le={critical:Na,unsubscribe:ka},lr({critical:Na,registry:te,scrollOptions:Pn.scrollOptions})},ln={updateDroppableIsEnabled:je,updateDroppableIsCombineEnabled:ze,scrollDroppable:dt,updateDroppableScroll:et,startPublishing:yn,stopPublishing:en};return ln},Kn=function(te,ne){return te.phase==="IDLE"?!0:te.phase!=="DROP_ANIMATING"||te.completed.result.draggableId===ne?!1:te.completed.result.reason==="DROP"},ia=function(te){window.scrollBy(te.x,te.y)},Tr=En(function(te){return za(te).filter(function(ne){return!(!ne.isEnabled||!ne.frame)})}),da=function(ne,le){var he=Kr(Tr(le),function(je){return je.frame||ht(!1),fo(je.frame.pageMarginBox)(ne)});return he},Ea=function(te){var ne=te.center,le=te.destination,he=te.droppables;if(le){var je=he[le];return je.frame?je:null}var ze=da(ne,he);return ze},Jr={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(ne){return Math.pow(ne,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},Oa=function(te,ne){var le=te[ne.size]*Jr.startFromPercentage,he=te[ne.size]*Jr.maxScrollAtPercentage,je={startScrollingFrom:le,maxScrollValueAt:he};return je},La=function(te){var ne=te.startOfRange,le=te.endOfRange,he=te.current,je=le-ne;if(je===0)return 0;var ze=he-ne,et=ze/je;return et},Qa=1,Ua=function(te,ne){if(te>ne.startScrollingFrom)return 0;if(te<=ne.maxScrollValueAt)return Jr.maxPixelScroll;if(te===ne.startScrollingFrom)return Qa;var le=La({startOfRange:ne.maxScrollValueAt,endOfRange:ne.startScrollingFrom,current:te}),he=1-le,je=Jr.maxPixelScroll*Jr.ease(he);return Math.ceil(je)},eo=Jr.durationDampening.accelerateAt,Si=Jr.durationDampening.stopDampeningAt,gi=function(te,ne){var le=ne,he=Si,je=Date.now(),ze=je-le;if(ze>=Si)return te;if(ze<eo)return Qa;var et=La({startOfRange:eo,endOfRange:he,current:ze}),dt=te*Jr.ease(et);return Math.ceil(dt)},ji=function(te){var ne=te.distanceToEdge,le=te.thresholds,he=te.dragStartTime,je=te.shouldUseTimeDampening,ze=Ua(ne,le);return ze===0?0:je?Math.max(gi(ze,he),Qa):ze},qa=function(te){var ne=te.container,le=te.distanceToEdges,he=te.dragStartTime,je=te.axis,ze=te.shouldUseTimeDampening,et=Oa(ne,je),dt=le[je.end]<le[je.start];return dt?ji({distanceToEdge:le[je.end],thresholds:et,dragStartTime:he,shouldUseTimeDampening:ze}):-1*ji({distanceToEdge:le[je.start],thresholds:et,dragStartTime:he,shouldUseTimeDampening:ze})},ti=function(te){var ne=te.container,le=te.subject,he=te.proposedScroll,je=le.height>ne.height,ze=le.width>ne.width;return!ze&&!je?he:ze&&je?null:{x:ze?0:he.x,y:je?0:he.y}},Ra=oa(function(te){return te===0?0:te}),Ca=function(te){var ne=te.dragStartTime,le=te.container,he=te.subject,je=te.center,ze=te.shouldUseTimeDampening,et={top:je.y-le.top,right:le.right-je.x,bottom:le.bottom-je.y,left:je.x-le.left},dt=qa({container:le,distanceToEdges:et,dragStartTime:ne,axis:Br,shouldUseTimeDampening:ze}),en=qa({container:le,distanceToEdges:et,dragStartTime:ne,axis:$r,shouldUseTimeDampening:ze}),Cn=Ra({x:en,y:dt});if(Mr(Cn,jn))return null;var yn=ti({container:le,subject:he,proposedScroll:Cn});return yn?Mr(yn,jn)?null:yn:null},Ja=oa(function(te){return te===0?0:te>0?1:-1}),ni=function(){var te=function(le,he){return le<0?le:le>he?le-he:0};return function(ne){var le=ne.current,he=ne.max,je=ne.change,ze=gr(le,je),et={x:te(ze.x,he.x),y:te(ze.y,he.y)};return Mr(et,jn)?null:et}}(),wi=function(ne){var le=ne.max,he=ne.current,je=ne.change,ze={x:Math.max(he.x,le.x),y:Math.max(he.y,le.y)},et=Ja(je),dt=ni({max:ze,current:he,change:et});return!dt||et.x!==0&&dt.x===0||et.y!==0&&dt.y===0},_a=function(ne,le){return wi({current:ne.scroll.current,max:ne.scroll.max,change:le})},lo=function(ne,le){if(!_a(ne,le))return null;var he=ne.scroll.max,je=ne.scroll.current;return ni({current:je,max:he,change:le})},so=function(ne,le){var he=ne.frame;return he?wi({current:he.scroll.current,max:he.scroll.max,change:le}):!1},pl=function(ne,le){var he=ne.frame;return!he||!so(ne,le)?null:ni({current:he.scroll.current,max:he.scroll.max,change:le})},ul=function(te){var ne=te.viewport,le=te.subject,he=te.center,je=te.dragStartTime,ze=te.shouldUseTimeDampening,et=Ca({dragStartTime:je,container:ne.frame,subject:le,center:he,shouldUseTimeDampening:ze});return et&&_a(ne,et)?et:null},el=function(te){var ne=te.droppable,le=te.subject,he=te.center,je=te.dragStartTime,ze=te.shouldUseTimeDampening,et=ne.frame;if(!et)return null;var dt=Ca({dragStartTime:je,container:et.pageMarginBox,subject:le,center:he,shouldUseTimeDampening:ze});return dt&&so(ne,dt)?dt:null},ol=function(te){var ne=te.state,le=te.dragStartTime,he=te.shouldUseTimeDampening,je=te.scrollWindow,ze=te.scrollDroppable,et=ne.current.page.borderBoxCenter,dt=ne.dimensions.draggables[ne.critical.draggable.id],en=dt.page.marginBox;if(ne.isWindowScrollAllowed){var Cn=ne.viewport,yn=ul({dragStartTime:le,viewport:Cn,subject:en,center:et,shouldUseTimeDampening:he});if(yn){je(yn);return}}var ln=Ea({center:et,destination:yr(ne.impact),droppables:ne.dimensions.droppables});if(ln){var cn=el({dragStartTime:le,droppable:ln,subject:en,center:et,shouldUseTimeDampening:he});cn&&ze(ln.descriptor.id,cn)}},El=function(te){var ne=te.scrollWindow,le=te.scrollDroppable,he=Vn(ne),je=Vn(le),ze=null,et=function(yn){ze||ht(!1);var ln=ze,cn=ln.shouldUseTimeDampening,Pn=ln.dragStartTime;ol({state:yn,scrollWindow:he,scrollDroppable:je,dragStartTime:Pn,shouldUseTimeDampening:cn})},dt=function(yn){hr(),ze&&ht(!1);var ln=Date.now(),cn=!1,Pn=function(){cn=!0};ol({state:yn,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:Pn,scrollDroppable:Pn}),ze={dragStartTime:ln,shouldUseTimeDampening:cn},Ar(),cn&&et(yn)},en=function(){ze&&(he.cancel(),je.cancel(),ze=null)};return{start:dt,stop:en,scroll:et}},mo=function(te){var ne=te.move,le=te.scrollDroppable,he=te.scrollWindow,je=function(Cn,yn){var ln=gr(Cn.current.client.selection,yn);ne({client:ln})},ze=function(Cn,yn){if(!so(Cn,yn))return yn;var ln=pl(Cn,yn);if(!ln)return le(Cn.descriptor.id,yn),null;var cn=Ir(yn,ln);le(Cn.descriptor.id,cn);var Pn=Ir(yn,cn);return Pn},et=function(Cn,yn,ln){if(!Cn||!_a(yn,ln))return ln;var cn=lo(yn,ln);if(!cn)return he(ln),null;var Pn=Ir(ln,cn);he(Pn);var ur=Ir(ln,Pn);return ur},dt=function(Cn){var yn=Cn.scrollJumpRequest;if(yn){var ln=yr(Cn.impact);ln||ht(!1);var cn=ze(Cn.dimensions.droppables[ln],yn);if(cn){var Pn=Cn.viewport,ur=et(Cn.isWindowScrollAllowed,Pn,cn);ur&&je(Cn,ur)}}};return dt},yo=function(te){var ne=te.scrollDroppable,le=te.scrollWindow,he=te.move,je=El({scrollWindow:le,scrollDroppable:ne}),ze=mo({move:he,scrollWindow:le,scrollDroppable:ne}),et=function(Cn){if(Cn.phase==="DRAGGING"){if(Cn.movementMode==="FLUID"){je.scroll(Cn);return}Cn.scrollJumpRequest&&ze(Cn)}},dt={scroll:et,start:je.start,stop:je.stop};return dt},ll="data-rbd",cl=function(){var te=ll+"-drag-handle";return{base:te,draggableId:te+"-draggable-id",contextId:te+"-context-id"}}(),mi=function(){var te=ll+"-draggable";return{base:te,contextId:te+"-context-id",id:te+"-id"}}(),qi=function(){var te=ll+"-droppable";return{base:te,contextId:te+"-context-id",id:te+"-id"}}(),li={contextId:ll+"-scroll-container-context-id"},Ga=function(ne){return function(le){return"["+le+'="'+ne+'"]'}},po=function(ne,le){return ne.map(function(he){var je=he.styles[le];return je?he.selector+" { "+je+" }":""}).join(" ")},Mo="pointer-events: none;",sl=function(te){var ne=Ga(te),le=function(){var dt=`
|
|
|
cursor: -webkit-grab;
|
|
|
cursor: grab;
|
|
|
`;return{selector:ne(cl.contextId),styles:{always:`
|
|
|
-webkit-touch-callout: none;
|
|
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
|
touch-action: manipulation;
|
|
|
`,resting:dt,dragging:Mo,dropAnimating:dt}}}(),he=function(){var dt=`
|
|
|
transition: `+gs.outOfTheWay+`;
|
|
|
`;return{selector:ne(mi.contextId),styles:{dragging:dt,dropAnimating:dt,userCancel:dt}}}(),je={selector:ne(qi.contextId),styles:{always:"overflow-anchor: none;"}},ze={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;
|
|
|
`}},et=[he,le,je,ze];return{always:po(et,"always"),resting:po(et,"resting"),dragging:po(et,"dragging"),dropAnimating:po(et,"dropAnimating"),userCancel:po(et,"userCancel")}},Co=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?y.useLayoutEffect:y.useEffect,hl=function(){var ne=document.querySelector("head");return ne||ht(!1),ne},Bl=function(ne){var le=document.createElement("style");return ne&&le.setAttribute("nonce",ne),le.type="text/css",le};function Bi(te,ne){var le=Gt(function(){return sl(te)},[te]),he=(0,y.useRef)(null),je=(0,y.useRef)(null),ze=Pt(En(function(ln){var cn=je.current;cn||ht(!1),cn.textContent=ln}),[]),et=Pt(function(ln){var cn=he.current;cn||ht(!1),cn.textContent=ln},[]);Co(function(){!he.current&&!je.current||ht(!1);var ln=Bl(ne),cn=Bl(ne);return he.current=ln,je.current=cn,ln.setAttribute(ll+"-always",te),cn.setAttribute(ll+"-dynamic",te),hl().appendChild(ln),hl().appendChild(cn),et(le.always),ze(le.resting),function(){var Pn=function(va){var Na=va.current;Na||ht(!1),hl().removeChild(Na),va.current=null};Pn(he),Pn(je)}},[ne,et,ze,le.always,le.resting,te]);var dt=Pt(function(){return ze(le.dragging)},[ze,le.dragging]),en=Pt(function(ln){if(ln==="DROP"){ze(le.dropAnimating);return}ze(le.userCancel)},[ze,le.dropAnimating,le.userCancel]),Cn=Pt(function(){je.current&&ze(le.resting)},[ze,le.resting]),yn=Gt(function(){return{dragging:dt,dropping:en,resting:Cn}},[dt,en,Cn]);return yn}var Ri=function(te){return te&&te.ownerDocument?te.ownerDocument.defaultView:window};function Do(te){return te instanceof Ri(te).HTMLElement}function zo(te,ne){var le="["+cl.contextId+'="'+te+'"]',he=Ya(document.querySelectorAll(le));if(!he.length)return null;var je=Kr(he,function(ze){return ze.getAttribute(cl.draggableId)===ne});return!je||!Do(je)?null:je}function $o(te){var ne=(0,y.useRef)({}),le=(0,y.useRef)(null),he=(0,y.useRef)(null),je=(0,y.useRef)(!1),ze=Pt(function(cn,Pn){var ur={id:cn,focus:Pn};return ne.current[cn]=ur,function(){var Na=ne.current,ka=Na[cn];ka!==ur&&delete Na[cn]}},[]),et=Pt(function(cn){var Pn=zo(te,cn);Pn&&Pn!==document.activeElement&&Pn.focus()},[te]),dt=Pt(function(cn,Pn){le.current===cn&&(le.current=Pn)},[]),en=Pt(function(){he.current||je.current&&(he.current=requestAnimationFrame(function(){he.current=null;var cn=le.current;cn&&et(cn)}))},[et]),Cn=Pt(function(cn){le.current=null;var Pn=document.activeElement;Pn&&Pn.getAttribute(cl.draggableId)===cn&&(le.current=cn)},[]);Co(function(){return je.current=!0,function(){je.current=!1;var cn=he.current;cn&&cancelAnimationFrame(cn)}},[]);var yn=Gt(function(){return{register:ze,tryRecordFocus:Cn,tryRestoreFocusRecorded:en,tryShiftRecord:dt}},[ze,Cn,en,dt]);return yn}function _l(){var te={draggables:{},droppables:{}},ne=[];function le(ln){return ne.push(ln),function(){var Pn=ne.indexOf(ln);Pn!==-1&&ne.splice(Pn,1)}}function he(ln){ne.length&&ne.forEach(function(cn){return cn(ln)})}function je(ln){return te.draggables[ln]||null}function ze(ln){var cn=je(ln);return cn||ht(!1),cn}var et={register:function(cn){te.draggables[cn.descriptor.id]=cn,he({type:"ADDITION",value:cn})},update:function(cn,Pn){var ur=te.draggables[Pn.descriptor.id];ur&&ur.uniqueId===cn.uniqueId&&(delete te.draggables[Pn.descriptor.id],te.draggables[cn.descriptor.id]=cn)},unregister:function(cn){var Pn=cn.descriptor.id,ur=je(Pn);ur&&cn.uniqueId===ur.uniqueId&&(delete te.draggables[Pn],he({type:"REMOVAL",value:cn}))},getById:ze,findById:je,exists:function(cn){return!!je(cn)},getAllByType:function(cn){return Sa(te.draggables).filter(function(Pn){return Pn.descriptor.type===cn})}};function dt(ln){return te.droppables[ln]||null}function en(ln){var cn=dt(ln);return cn||ht(!1),cn}var Cn={register:function(cn){te.droppables[cn.descriptor.id]=cn},unregister:function(cn){var Pn=dt(cn.descriptor.id);Pn&&cn.uniqueId===Pn.uniqueId&&delete te.droppables[cn.descriptor.id]},getById:en,findById:dt,exists:function(cn){return!!dt(cn)},getAllByType:function(cn){return Sa(te.droppables).filter(function(Pn){return Pn.descriptor.type===cn})}};function yn(){te.draggables={},te.droppables={},ne.length=0}return{draggable:et,droppable:Cn,subscribe:le,clean:yn}}function Cl(){var te=Gt(_l,[]);return(0,y.useEffect)(function(){return function(){requestAnimationFrame(te.clean)}},[te]),te}var Yl=y.createContext(null),Uo=function(){var te=document.body;return te||ht(!1),te},Po={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Xo=function(ne){return"rbd-announcement-"+ne};function tl(te){var ne=Gt(function(){return Xo(te)},[te]),le=(0,y.useRef)(null);(0,y.useEffect)(function(){var ze=document.createElement("div");return le.current=ze,ze.id=ne,ze.setAttribute("aria-live","assertive"),ze.setAttribute("aria-atomic","true"),(0,ce.Z)(ze.style,Po),Uo().appendChild(ze),function(){setTimeout(function(){var en=Uo();en.contains(ze)&&en.removeChild(ze),ze===le.current&&(le.current=null)})}},[ne]);var he=Pt(function(je){var ze=le.current;if(ze){ze.textContent=je;return}},[]);return he}var Dl=0,vl={separator:"::"};function Oo(){Dl=0}function nl(te,ne){return ne===void 0&&(ne=vl),Gt(function(){return""+te+ne.separator+Dl++},[ne.separator,te])}function Lo(te){var ne=te.contextId,le=te.uniqueId;return"rbd-hidden-text-"+ne+"-"+le}function Kl(te){var ne=te.contextId,le=te.text,he=nl("hidden-text",{separator:"-"}),je=Gt(function(){return Lo({contextId:ne,uniqueId:he})},[he,ne]);return(0,y.useEffect)(function(){var et=document.createElement("div");return et.id=je,et.textContent=le,et.style.display="none",Uo().appendChild(et),function(){var en=Uo();en.contains(et)&&en.removeChild(et)}},[je,le]),je}var gl=y.createContext(null),ts={react:"^16.8.5","react-dom":"^16.8.5"},os=/(\d+)\.(\d+)\.(\d+)/,Bs=function(ne){var le=os.exec(ne);le==null&&ht(!1);var he=Number(le[1]),je=Number(le[2]),ze=Number(le[3]);return{major:he,minor:je,patch:ze,raw:ne}},rl=function(ne,le){return le.major>ne.major?!0:le.major<ne.major?!1:le.minor>ne.minor?!0:le.minor<ne.minor?!1:le.patch>=ne.patch},fu=function(te,ne){var le=Bs(te),he=Bs(ne);rl(le,he)},ls=`
|
|
|
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
|
|
|
`,bs=function(te){var ne=te.doctype;ne&&(ne.name.toLowerCase(),ne.publicId)};function Es(te){}function Wl(te,ne){}function al(){Wl(function(){fu(ts.react,y.version),bs(document)},[])}function ss(te){var ne=(0,y.useRef)(te);return(0,y.useEffect)(function(){ne.current=te}),ne}function Hs(){var te=null;function ne(){return!!te}function le(et){return et===te}function he(et){te&&ht(!1);var dt={abandon:et};return te=dt,dt}function je(){te||ht(!1),te=null}function ze(){te&&(te.abandon(),je())}return{isClaimed:ne,isActive:le,claim:he,release:je,tryAbandon:ze}}var Os=9,Ns=13,nu=27,mu=32,Su=33,wu=34,Zu=35,io=36,wo=37,fl=38,xl=39,zl=40,Sl,Ds=(Sl={},Sl[Ns]=!0,Sl[Os]=!0,Sl),Ul=function(te){Ds[te.keyCode]&&te.preventDefault()},ks=function(){var te="visibilitychange";if(typeof document=="undefined")return te;var ne=[te,"ms"+te,"webkit"+te,"moz"+te,"o"+te],le=Kr(ne,function(he){return"on"+he in document});return le||te}(),Bu=0,ru=5;function Ys(te,ne){return Math.abs(ne.x-te.x)>=ru||Math.abs(ne.y-te.y)>=ru}var pu={type:"IDLE"};function Qs(te){var ne=te.cancel,le=te.completed,he=te.getPhase,je=te.setPhase;return[{eventName:"mousemove",fn:function(et){var dt=et.button,en=et.clientX,Cn=et.clientY;if(dt===Bu){var yn={x:en,y:Cn},ln=he();if(ln.type==="DRAGGING"){et.preventDefault(),ln.actions.move(yn);return}ln.type!=="PENDING"&&ht(!1);var cn=ln.point;if(Ys(cn,yn)){et.preventDefault();var Pn=ln.actions.fluidLift(yn);je({type:"DRAGGING",actions:Pn})}}}},{eventName:"mouseup",fn:function(et){var dt=he();if(dt.type!=="DRAGGING"){ne();return}et.preventDefault(),dt.actions.drop({shouldBlockNextClick:!0}),le()}},{eventName:"mousedown",fn:function(et){he().type==="DRAGGING"&&et.preventDefault(),ne()}},{eventName:"keydown",fn:function(et){var dt=he();if(dt.type==="PENDING"){ne();return}if(et.keyCode===nu){et.preventDefault(),ne();return}Ul(et)}},{eventName:"resize",fn:ne},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){he().type==="PENDING"&&ne()}},{eventName:"webkitmouseforcedown",fn:function(et){var dt=he();if(dt.type==="IDLE"&&ht(!1),dt.actions.shouldRespectForcePress()){ne();return}et.preventDefault()}},{eventName:ks,fn:ne}]}function ju(te){var ne=(0,y.useRef)(pu),le=(0,y.useRef)(vr),he=Gt(function(){return{eventName:"mousedown",fn:function(ln){if(!ln.defaultPrevented&&ln.button===Bu&&!(ln.ctrlKey||ln.metaKey||ln.shiftKey||ln.altKey)){var cn=te.findClosestDraggableId(ln);if(cn){var Pn=te.tryGetLock(cn,et,{sourceEvent:ln});if(Pn){ln.preventDefault();var ur={x:ln.clientX,y:ln.clientY};le.current(),Cn(Pn,ur)}}}}}},[te]),je=Gt(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(ln){if(!ln.defaultPrevented){var cn=te.findClosestDraggableId(ln);if(cn){var Pn=te.findOptionsForDraggable(cn);Pn&&(Pn.shouldRespectForcePress||te.canGetLock(cn)&&ln.preventDefault())}}}}},[te]),ze=Pt(function(){var ln={passive:!1,capture:!0};le.current=Kt(window,[je,he],ln)},[je,he]),et=Pt(function(){var yn=ne.current;yn.type!=="IDLE"&&(ne.current=pu,le.current(),ze())},[ze]),dt=Pt(function(){var yn=ne.current;et(),yn.type==="DRAGGING"&&yn.actions.cancel({shouldBlockNextClick:!0}),yn.type==="PENDING"&&yn.actions.abort()},[et]),en=Pt(function(){var ln={capture:!0,passive:!1},cn=Qs({cancel:dt,completed:et,getPhase:function(){return ne.current},setPhase:function(ur){ne.current=ur}});le.current=Kt(window,cn,ln)},[dt,et]),Cn=Pt(function(ln,cn){ne.current.type!=="IDLE"&&ht(!1),ne.current={type:"PENDING",point:cn,actions:ln},en()},[en]);Co(function(){return ze(),function(){le.current()}},[ze])}var Ls;function $u(){}var tc=(Ls={},Ls[wu]=!0,Ls[Su]=!0,Ls[io]=!0,Ls[Zu]=!0,Ls);function Vs(te,ne){function le(){ne(),te.cancel()}function he(){ne(),te.drop()}return[{eventName:"keydown",fn:function(ze){if(ze.keyCode===nu){ze.preventDefault(),le();return}if(ze.keyCode===mu){ze.preventDefault(),he();return}if(ze.keyCode===zl){ze.preventDefault(),te.moveDown();return}if(ze.keyCode===fl){ze.preventDefault(),te.moveUp();return}if(ze.keyCode===xl){ze.preventDefault(),te.moveRight();return}if(ze.keyCode===wo){ze.preventDefault(),te.moveLeft();return}if(tc[ze.keyCode]){ze.preventDefault();return}Ul(ze)}},{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:ks,fn:le}]}function Wu(te){var ne=(0,y.useRef)($u),le=Gt(function(){return{eventName:"keydown",fn:function(ze){if(ze.defaultPrevented||ze.keyCode!==mu)return;var et=te.findClosestDraggableId(ze);if(!et)return;var dt=te.tryGetLock(et,yn,{sourceEvent:ze});if(!dt)return;ze.preventDefault();var en=!0,Cn=dt.snapLift();ne.current();function yn(){en||ht(!1),en=!1,ne.current(),he()}ne.current=Kt(window,Vs(Cn,yn),{capture:!0,passive:!1})}}},[te]),he=Pt(function(){var ze={passive:!1,capture:!0};ne.current=Kt(window,[le],ze)},[le]);Co(function(){return he(),function(){ne.current()}},[he])}var zu={type:"IDLE"},Hu=120,hu=.15;function sc(te){var ne=te.cancel,le=te.getPhase;return[{eventName:"orientationchange",fn:ne},{eventName:"resize",fn:ne},{eventName:"contextmenu",fn:function(je){je.preventDefault()}},{eventName:"keydown",fn:function(je){if(le().type!=="DRAGGING"){ne();return}je.keyCode===nu&&je.preventDefault(),ne()}},{eventName:ks,fn:ne}]}function uc(te){var ne=te.cancel,le=te.completed,he=te.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(ze){var et=he();if(et.type!=="DRAGGING"){ne();return}et.hasMoved=!0;var dt=ze.touches[0],en=dt.clientX,Cn=dt.clientY,yn={x:en,y:Cn};ze.preventDefault(),et.actions.move(yn)}},{eventName:"touchend",fn:function(ze){var et=he();if(et.type!=="DRAGGING"){ne();return}ze.preventDefault(),et.actions.drop({shouldBlockNextClick:!0}),le()}},{eventName:"touchcancel",fn:function(ze){if(he().type!=="DRAGGING"){ne();return}ze.preventDefault(),ne()}},{eventName:"touchforcechange",fn:function(ze){var et=he();et.type==="IDLE"&&ht(!1);var dt=ze.touches[0];if(dt){var en=dt.force>=hu;if(en){var Cn=et.actions.shouldRespectForcePress();if(et.type==="PENDING"){Cn&&ne();return}if(Cn){if(et.hasMoved){ze.preventDefault();return}ne();return}ze.preventDefault()}}}},{eventName:ks,fn:ne}]}function vu(te){var ne=(0,y.useRef)(zu),le=(0,y.useRef)(vr),he=Pt(function(){return ne.current},[]),je=Pt(function(Pn){ne.current=Pn},[]),ze=Gt(function(){return{eventName:"touchstart",fn:function(Pn){if(!Pn.defaultPrevented){var ur=te.findClosestDraggableId(Pn);if(ur){var va=te.tryGetLock(ur,dt,{sourceEvent:Pn});if(va){var Na=Pn.touches[0],ka=Na.clientX,oi=Na.clientY,Ai={x:ka,y:oi};le.current(),ln(va,Ai)}}}}}},[te]),et=Pt(function(){var Pn={capture:!0,passive:!1};le.current=Kt(window,[ze],Pn)},[ze]),dt=Pt(function(){var cn=ne.current;cn.type!=="IDLE"&&(cn.type==="PENDING"&&clearTimeout(cn.longPressTimerId),je(zu),le.current(),et())},[et,je]),en=Pt(function(){var cn=ne.current;dt(),cn.type==="DRAGGING"&&cn.actions.cancel({shouldBlockNextClick:!0}),cn.type==="PENDING"&&cn.actions.abort()},[dt]),Cn=Pt(function(){var Pn={capture:!0,passive:!1},ur={cancel:en,completed:dt,getPhase:he},va=Kt(window,uc(ur),Pn),Na=Kt(window,sc(ur),Pn);le.current=function(){va(),Na()}},[en,he,dt]),yn=Pt(function(){var Pn=he();Pn.type!=="PENDING"&&ht(!1);var ur=Pn.actions.fluidLift(Pn.point);je({type:"DRAGGING",actions:ur,hasMoved:!1})},[he,je]),ln=Pt(function(Pn,ur){he().type!=="IDLE"&&ht(!1);var va=setTimeout(yn,Hu);je({type:"PENDING",point:ur,actions:Pn,longPressTimerId:va}),Cn()},[Cn,he,je,yn]);Co(function(){return et(),function(){le.current();var ur=he();ur.type==="PENDING"&&(clearTimeout(ur.longPressTimerId),je(zu))}},[he,et,je]),Co(function(){var Pn=Kt(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return Pn},[])}function Vu(te){}var gu={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Du(te,ne){if(ne==null)return!1;var le=!!gu[ne.tagName.toLowerCase()];if(le)return!0;var he=ne.getAttribute("contenteditable");return he==="true"||he===""?!0:ne===te?!1:Du(te,ne.parentElement)}function yu(te,ne){var le=ne.target;return Do(le)?Du(te,le):!1}var Ku=function(te){return mn(te.getBoundingClientRect()).center};function nc(te){return te instanceof Ri(te).Element}var Uu=function(){var te="matches";if(typeof document=="undefined")return te;var ne=[te,"msMatchesSelector","webkitMatchesSelector"],le=Kr(ne,function(he){return he in Element.prototype});return le||te}();function Au(te,ne){return te==null?null:te[Uu](ne)?te:Au(te.parentElement,ne)}function cc(te,ne){return te.closest?te.closest(ne):Au(te,ne)}function Fu(te){return"["+cl.contextId+'="'+te+'"]'}function Js(te,ne){var le=ne.target;if(!nc(le))return null;var he=Fu(te),je=cc(le,he);return!je||!Do(je)?null:je}function au(te,ne){var le=Js(te,ne);return le?le.getAttribute(cl.draggableId):null}function Gu(te,ne){var le="["+mi.contextId+'="'+te+'"]',he=Ya(document.querySelectorAll(le)),je=Kr(he,function(ze){return ze.getAttribute(mi.id)===ne});return!je||!Do(je)?null:je}function Xu(te){te.preventDefault()}function Iu(te){var ne=te.expected,le=te.phase,he=te.isLockActive,je=te.shouldWarn;return!(!he()||ne!==le)}function Ao(te){var ne=te.lockAPI,le=te.store,he=te.registry,je=te.draggableId;if(ne.isClaimed())return!1;var ze=he.draggable.findById(je);return!(!ze||!ze.options.isEnabled||!Kn(le.getState(),je))}function _o(te){var ne=te.lockAPI,le=te.contextId,he=te.store,je=te.registry,ze=te.draggableId,et=te.forceSensorStop,dt=te.sourceEvent,en=Ao({lockAPI:ne,store:he,registry:je,draggableId:ze});if(!en)return null;var Cn=je.draggable.getById(ze),yn=Gu(le,Cn.descriptor.id);if(!yn||dt&&!Cn.options.canDragInteractiveElements&&yu(yn,dt))return null;var ln=ne.claim(et||vr),cn="PRE_DRAG";function Pn(){return Cn.options.shouldRespectForcePress}function ur(){return ne.isActive(ln)}function va(ho,Zo){Iu({expected:ho,phase:cn,isLockActive:ur,shouldWarn:!0})&&he.dispatch(Zo())}var Na=va.bind(null,"DRAGGING");function ka(ho){function Zo(){ne.release(),cn="COMPLETED"}cn!=="PRE_DRAG"&&(Zo(),cn!=="PRE_DRAG"&&ht(!1)),he.dispatch(Yr(ho.liftActionArgs)),cn="DRAGGING";function Hl(Ho,Vl){if(Vl===void 0&&(Vl={shouldBlockNextClick:!1}),ho.cleanup(),Vl.shouldBlockNextClick){var us=Kt(window,[{eventName:"click",fn:Xu,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(us)}Zo(),he.dispatch(yl({reason:Ho}))}return(0,ce.Z)({isActive:function(){return Iu({expected:"DRAGGING",phase:cn,isLockActive:ur,shouldWarn:!1})},shouldRespectForcePress:Pn,drop:function(Vl){return Hl("DROP",Vl)},cancel:function(Vl){return Hl("CANCEL",Vl)}},ho.actions)}function oi(ho){var Zo=Vn(function(Ho){Na(function(){return qo({client:Ho})})}),Hl=ka({liftActionArgs:{id:ze,clientSelection:ho,movementMode:"FLUID"},cleanup:function(){return Zo.cancel()},actions:{move:Zo}});return(0,ce.Z)({},Hl,{move:Zo})}function Ai(){var ho={moveUp:function(){return Na(Oi)},moveRight:function(){return Na(Ml)},moveDown:function(){return Na(Tl)},moveLeft:function(){return Na(Ur)}};return ka({liftActionArgs:{id:ze,clientSelection:Ku(yn),movementMode:"SNAP"},cleanup:vr,actions:ho})}function Mi(){var ho=Iu({expected:"PRE_DRAG",phase:cn,isLockActive:ur,shouldWarn:!0});ho&&ne.release()}var xo={isActive:function(){return Iu({expected:"PRE_DRAG",phase:cn,isLockActive:ur,shouldWarn:!1})},shouldRespectForcePress:Pn,fluidLift:oi,snapLift:Ai,abort:Mi};return xo}var Ql=[ju,Wu,vu];function ds(te){var ne=te.contextId,le=te.store,he=te.registry,je=te.customSensors,ze=te.enableDefaultSensors,et=[].concat(ze?Ql:[],je||[]),dt=(0,y.useState)(function(){return Hs()})[0],en=Pt(function(oi,Ai){oi.isDragging&&!Ai.isDragging&&dt.tryAbandon()},[dt]);Co(function(){var oi=le.getState(),Ai=le.subscribe(function(){var Mi=le.getState();en(oi,Mi),oi=Mi});return Ai},[dt,le,en]),Co(function(){return dt.tryAbandon},[dt.tryAbandon]);var Cn=Pt(function(ka){return Ao({lockAPI:dt,registry:he,store:le,draggableId:ka})},[dt,he,le]),yn=Pt(function(ka,oi,Ai){return _o({lockAPI:dt,registry:he,contextId:ne,store:le,draggableId:ka,forceSensorStop:oi,sourceEvent:Ai&&Ai.sourceEvent?Ai.sourceEvent:null})},[ne,dt,he,le]),ln=Pt(function(ka){return au(ne,ka)},[ne]),cn=Pt(function(ka){var oi=he.draggable.findById(ka);return oi?oi.options:null},[he.draggable]),Pn=Pt(function(){dt.isClaimed()&&(dt.tryAbandon(),le.getState().phase!=="IDLE"&&le.dispatch(bo()))},[dt,le]),ur=Pt(dt.isClaimed,[dt]),va=Gt(function(){return{canGetLock:Cn,tryGetLock:yn,findClosestDraggableId:ln,findOptionsForDraggable:cn,tryReleaseLock:Pn,isLockClaimed:ur}},[Cn,yn,ln,cn,Pn,ur]);Vu(et);for(var Na=0;Na<et.length;Na++)et[Na](va)}var Jl=function(ne){return{onBeforeCapture:ne.onBeforeCapture,onBeforeDragStart:ne.onBeforeDragStart,onDragStart:ne.onDragStart,onDragEnd:ne.onDragEnd,onDragUpdate:ne.onDragUpdate}};function Ts(te){return te.current||ht(!1),te.current}function Ks(te){var ne=te.contextId,le=te.setCallbacks,he=te.sensors,je=te.nonce,ze=te.dragHandleUsageInstructions,et=(0,y.useRef)(null);al();var dt=ss(te),en=Pt(function(){return Jl(dt.current)},[dt]),Cn=tl(ne),yn=Kl({contextId:ne,text:ze}),ln=Bi(ne,je),cn=Pt(function(Ho){Ts(et).dispatch(Ho)},[]),Pn=Gt(function(){return(0,Le.DE)({publishWhileDragging:ba,updateDroppableScroll:ra,updateDroppableIsEnabled:Pa,updateDroppableIsCombineEnabled:ao,collectionStarting:ca},cn)},[cn]),ur=Cl(),va=Gt(function(){return Xn(ur,Pn)},[ur,Pn]),Na=Gt(function(){return yo((0,ce.Z)({scrollWindow:ia,scrollDroppable:va.scrollDroppable},(0,Le.DE)({move:qo},cn)))},[va.scrollDroppable,cn]),ka=$o(ne),oi=Gt(function(){return on({announce:Cn,autoScroller:Na,dimensionMarshal:va,focusMarshal:ka,getResponders:en,styleMarshal:ln})},[Cn,Na,va,ka,en,ln]);et.current=oi;var Ai=Pt(function(){var Ho=Ts(et),Vl=Ho.getState();Vl.phase!=="IDLE"&&Ho.dispatch(bo())},[]),Mi=Pt(function(){var Ho=Ts(et).getState();return Ho.isDragging||Ho.phase==="DROP_ANIMATING"},[]),xo=Gt(function(){return{isDragging:Mi,tryAbort:Ai}},[Mi,Ai]);le(xo);var ho=Pt(function(Ho){return Kn(Ts(et).getState(),Ho)},[]),Zo=Pt(function(){return ki(Ts(et).getState())},[]),Hl=Gt(function(){return{marshal:va,focus:ka,contextId:ne,canLift:ho,isMovementAllowed:Zo,dragHandleUsageInstructionsId:yn,registry:ur}},[ne,va,yn,ka,ho,Zo,ur]);return ds({contextId:ne,store:oi,registry:ur,customSensors:he,enableDefaultSensors:te.enableDefaultSensors!==!1}),(0,y.useEffect)(function(){return Ai},[Ai]),y.createElement(gl.Provider,{value:Hl},y.createElement(we,{context:Yl,store:oi},te.children))}var Ms=0;function iu(){Ms=0}function Yu(){return Gt(function(){return""+Ms++},[])}function Mc(){iu(),Oo()}function Pu(te){var ne=Yu(),le=te.dragHandleUsageInstructions||Un.dragHandleUsageInstructions;return y.createElement(fn,null,function(he){return y.createElement(Ks,{nonce:te.nonce,contextId:ne,setCallbacks:he,dragHandleUsageInstructions:le,enableDefaultSensors:te.enableDefaultSensors,sensors:te.sensors,onBeforeCapture:te.onBeforeCapture,onBeforeDragStart:te.onBeforeDragStart,onDragStart:te.onDragStart,onDragUpdate:te.onDragUpdate,onDragEnd:te.onDragEnd},te.children)})}var rc=function(ne){return function(le){return ne===le}},ac=rc("scroll"),_c=rc("auto"),Rc=rc("visible"),bc=function(ne,le){return le(ne.overflowX)||le(ne.overflowY)},wl=function(ne,le){return le(ne.overflowX)&&le(ne.overflowY)},Ec=function(ne){var le=window.getComputedStyle(ne),he={overflowX:le.overflowX,overflowY:le.overflowY};return bc(he,ac)||bc(he,_c)},dc=function(){return!1;var ne,le,he,je},Ou=function te(ne){return ne==null?null:ne===document.body?dc()?ne:null:ne===document.documentElement?null:Ec(ne)?ne:te(ne.parentElement)},Us=function(te){if(te)var ne=Ou(te.parentElement)},Nu=function(te){return{x:te.scrollLeft,y:te.scrollTop}},fc=function te(ne){if(!ne)return!1;var le=window.getComputedStyle(ne);return le.position==="fixed"?!0:te(ne.parentElement)},Cc=function(te){var ne=Ou(te),le=fc(te);return{closestScrollable:ne,isFixedOnPage:le}},xc=function(te){var ne=te.descriptor,le=te.isEnabled,he=te.isCombineEnabled,je=te.isFixedOnPage,ze=te.direction,et=te.client,dt=te.page,en=te.closest,Cn=function(){if(!en)return null;var Pn=en.scrollSize,ur=en.client,va=Bn({scrollHeight:Pn.scrollHeight,scrollWidth:Pn.scrollWidth,height:ur.paddingBox.height,width:ur.paddingBox.width});return{pageMarginBox:en.page.marginBox,frameClient:ur,scrollSize:Pn,shouldClipSubject:en.shouldClipSubject,scroll:{initial:en.scroll,current:en.scroll,max:va,diff:{value:jn,displacement:jn}}}}(),yn=ze==="vertical"?Br:$r,ln=pa({page:dt,withPlaceholder:null,axis:yn,frame:Cn}),cn={descriptor:ne,isCombineEnabled:he,isFixedOnPage:je,axis:yn,isEnabled:le,client:et,page:dt,frame:Cn,subject:ln};return cn},Sc=function(ne,le){var he=Zt(ne);if(!le||ne!==le)return he;var je=he.paddingBox.top-le.scrollTop,ze=he.paddingBox.left-le.scrollLeft,et=je+le.scrollHeight,dt=ze+le.scrollWidth,en={top:je,right:dt,bottom:et,left:ze},Cn=nt(en,he.border),yn=Wt({borderBox:Cn,margin:he.margin,border:he.border,padding:he.padding});return yn},wc=function(te){var ne=te.ref,le=te.descriptor,he=te.env,je=te.windowScroll,ze=te.direction,et=te.isDropDisabled,dt=te.isCombineEnabled,en=te.shouldClipSubject,Cn=he.closestScrollable,yn=Sc(ne,Cn),ln=On(yn,je),cn=function(){if(!Cn)return null;var ur=Zt(Cn),va={scrollHeight:Cn.scrollHeight,scrollWidth:Cn.scrollWidth};return{client:ur,page:On(ur,je),scroll:Nu(Cn),scrollSize:va,shouldClipSubject:en}}(),Pn=xc({descriptor:le,isEnabled:!et,isCombineEnabled:dt,isFixedOnPage:he.isFixedOnPage,direction:ze,client:yn,page:ln,closest:cn});return Pn},Bc={passive:!1},kc={passive:!0},ic=function(te){return te.shouldPublishImmediately?Bc:kc};function Qu(te){var ne=(0,y.useContext)(te);return ne||ht(!1),ne}var Go=function(ne){return ne&&ne.env.closestScrollable||null};function Dc(te){var ne=(0,y.useRef)(null),le=Qu(gl),he=nl("droppable"),je=le.registry,ze=le.marshal,et=ss(te),dt=Gt(function(){return{id:te.droppableId,type:te.type,mode:te.mode}},[te.droppableId,te.mode,te.type]),en=(0,y.useRef)(dt),Cn=Gt(function(){return En(function(Mi,xo){ne.current||ht(!1);var ho={x:Mi,y:xo};ze.updateDroppableScroll(dt.id,ho)})},[dt.id,ze]),yn=Pt(function(){var Mi=ne.current;return!Mi||!Mi.env.closestScrollable?jn:Nu(Mi.env.closestScrollable)},[]),ln=Pt(function(){var Mi=yn();Cn(Mi.x,Mi.y)},[yn,Cn]),cn=Gt(function(){return Vn(ln)},[ln]),Pn=Pt(function(){var Mi=ne.current,xo=Go(Mi);Mi&&xo||ht(!1);var ho=Mi.scrollOptions;if(ho.shouldPublishImmediately){ln();return}cn()},[cn,ln]),ur=Pt(function(Mi,xo){ne.current&&ht(!1);var ho=et.current,Zo=ho.getDroppableRef();Zo||ht(!1);var Hl=Cc(Zo),Ho={ref:Zo,descriptor:dt,env:Hl,scrollOptions:xo};ne.current=Ho;var Vl=wc({ref:Zo,descriptor:dt,env:Hl,windowScroll:Mi,direction:ho.direction,isDropDisabled:ho.isDropDisabled,isCombineEnabled:ho.isCombineEnabled,shouldClipSubject:!ho.ignoreContainerClipping}),us=Hl.closestScrollable;return us&&(us.setAttribute(li.contextId,le.contextId),us.addEventListener("scroll",Pn,ic(Ho.scrollOptions))),Vl},[le.contextId,dt,Pn,et]),va=Pt(function(){var Mi=ne.current,xo=Go(Mi);return Mi&&xo||ht(!1),Nu(xo)},[]),Na=Pt(function(){var Mi=ne.current;Mi||ht(!1);var xo=Go(Mi);ne.current=null,xo&&(cn.cancel(),xo.removeAttribute(li.contextId),xo.removeEventListener("scroll",Pn,ic(Mi.scrollOptions)))},[Pn,cn]),ka=Pt(function(Mi){var xo=ne.current;xo||ht(!1);var ho=Go(xo);ho||ht(!1),ho.scrollTop+=Mi.y,ho.scrollLeft+=Mi.x},[]),oi=Gt(function(){return{getDimensionAndWatchScroll:ur,getScrollWhileDragging:va,dragStopped:Na,scroll:ka}},[Na,ur,va,ka]),Ai=Gt(function(){return{uniqueId:he,descriptor:dt,callbacks:oi}},[oi,dt,he]);Co(function(){return en.current=Ai.descriptor,je.droppable.register(Ai),function(){ne.current&&Na(),je.droppable.unregister(Ai)}},[oi,dt,Na,Ai,ze,je.droppable]),Co(function(){ne.current&&ze.updateDroppableIsEnabled(en.current.id,!te.isDropDisabled)},[te.isDropDisabled,ze]),Co(function(){ne.current&&ze.updateDroppableIsCombineEnabled(en.current.id,te.isCombineEnabled)},[te.isCombineEnabled,ze])}function mc(){}var bu={width:0,height:0,margin:Gr},Lc=function(ne){var le=ne.isAnimatingOpenOnMount,he=ne.placeholder,je=ne.animate;return le||je==="close"?bu:{height:he.client.borderBox.height,width:he.client.borderBox.width,margin:he.client.margin}},oc=function(ne){var le=ne.isAnimatingOpenOnMount,he=ne.placeholder,je=ne.animate,ze=Lc({isAnimatingOpenOnMount:le,placeholder:he,animate:je});return{display:he.display,boxSizing:"border-box",width:ze.width,height:ze.height,marginTop:ze.margin.top,marginRight:ze.margin.right,marginBottom:ze.margin.bottom,marginLeft:ze.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:je!=="none"?gs.placeholder:null}};function Zc(te){var ne=(0,y.useRef)(null),le=Pt(function(){ne.current&&(clearTimeout(ne.current),ne.current=null)},[]),he=te.animate,je=te.onTransitionEnd,ze=te.onClose,et=te.contextId,dt=(0,y.useState)(te.animate==="open"),en=dt[0],Cn=dt[1];(0,y.useEffect)(function(){return en?he!=="open"?(le(),Cn(!1),mc):ne.current?mc:(ne.current=setTimeout(function(){ne.current=null,Cn(!1)}),le):mc},[he,en,le]);var yn=Pt(function(cn){cn.propertyName==="height"&&(je(),he==="close"&&ze())},[he,ze,je]),ln=oc({isAnimatingOpenOnMount:en,animate:te.animate,placeholder:te.placeholder});return y.createElement(te.placeholder.tagName,{style:ln,"data-rbd-placeholder-context-id":et,onTransitionEnd:yn,ref:te.innerRef})}var Rl=y.memo(Zc),pc=y.createContext(null);function Ac(te){te&&Do(te)||ht(!1)}function hc(te){return typeof te=="boolean"}function Tu(te,ne){ne.forEach(function(le){return le(te)})}var a=[function(ne){var le=ne.props;le.droppableId||ht(!1),typeof le.droppableId!="string"&&ht(!1)},function(ne){var le=ne.props;hc(le.isDropDisabled)||ht(!1),hc(le.isCombineEnabled)||ht(!1),hc(le.ignoreContainerClipping)||ht(!1)},function(ne){var le=ne.getDroppableRef;Ac(le())}],b=[function(ne){var le=ne.props,he=ne.getPlaceholderRef;if(le.placeholder)var je=he()}],z=[function(ne){var le=ne.props;le.renderClone||ht(!1)},function(ne){var le=ne.getPlaceholderRef;le()&&ht(!1)}];function x(te){Wl(function(){Tu(te,a),te.props.mode==="standard"&&Tu(te,b),te.props.mode==="virtual"&&Tu(te,z)})}var ee=function(te){(0,ve.Z)(ne,te);function ne(){for(var he,je=arguments.length,ze=new Array(je),et=0;et<je;et++)ze[et]=arguments[et];return he=te.call.apply(te,[this].concat(ze))||this,he.state={isVisible:!!he.props.on,data:he.props.on,animate:he.props.shouldAnimate&&he.props.on?"open":"none"},he.onClose=function(){he.state.animate==="close"&&he.setState({isVisible:!1})},he}ne.getDerivedStateFromProps=function(je,ze){return je.shouldAnimate?je.on?{isVisible:!0,data:je.on,animate:"open"}:ze.isVisible?{isVisible:!0,data:ze.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!je.on,data:je.on,animate:"none"}};var le=ne.prototype;return le.render=function(){if(!this.state.isVisible)return null;var je={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(je)},ne}(y.PureComponent),se={dragging:5e3,dropAnimating:4500},ye=function(ne,le){return le?gs.drop(le.duration):ne?gs.snap:gs.fluid},Me=function(ne,le){return ne?le?Ss.opacity.drop:Ss.opacity.combining:null},Ve=function(ne){return ne.forceShouldAnimate!=null?ne.forceShouldAnimate:ne.mode==="SNAP"};function lt(te){var ne=te.dimension,le=ne.client,he=te.offset,je=te.combineWith,ze=te.dropping,et=!!je,dt=Ve(te),en=!!ze,Cn=en?Is.drop(he,et):Is.moveTo(he),yn={position:"fixed",top:le.marginBox.top,left:le.marginBox.left,boxSizing:"border-box",width:le.borderBox.width,height:le.borderBox.height,transition:ye(dt,ze),transform:Cn,opacity:Me(et,en),zIndex:en?se.dropAnimating:se.dragging,pointerEvents:"none"};return yn}function un(te){return{transform:Is.moveTo(te.offset),transition:te.shouldAnimateDisplacement?null:"none"}}function bn(te){return te.type==="DRAGGING"?lt(te):un(te)}function Yn(te,ne,le){le===void 0&&(le=jn);var he=window.getComputedStyle(ne),je=ne.getBoundingClientRect(),ze=Hn(je,he),et=On(ze,le),dt={client:ze,tagName:ne.tagName.toLowerCase(),display:he.display},en={x:ze.marginBox.width,y:ze.marginBox.height},Cn={descriptor:te,placeholder:dt,displaceBy:en,client:ze,page:et};return Cn}function Wn(te){var ne=nl("draggable"),le=te.descriptor,he=te.registry,je=te.getDraggableRef,ze=te.canDragInteractiveElements,et=te.shouldRespectForcePress,dt=te.isEnabled,en=Gt(function(){return{canDragInteractiveElements:ze,shouldRespectForcePress:et,isEnabled:dt}},[ze,dt,et]),Cn=Pt(function(Pn){var ur=je();return ur||ht(!1),Yn(le,ur,Pn)},[le,je]),yn=Gt(function(){return{uniqueId:ne,descriptor:le,options:en,getDimension:Cn}},[le,Cn,en,ne]),ln=(0,y.useRef)(yn),cn=(0,y.useRef)(!0);Co(function(){return he.draggable.register(ln.current),function(){return he.draggable.unregister(ln.current)}},[he.draggable]),Co(function(){if(cn.current){cn.current=!1;return}var Pn=ln.current;ln.current=yn,he.draggable.update(yn,Pn)},[yn,he.draggable])}function _r(te,ne,le){Wl(function(){function he(ze){return"Draggable[id: "+ze+"]: "}var je=te.draggableId;je||ht(!1),typeof je!="string"&&ht(!1),Za(te.index)||ht(!1),te.mapped.type!=="DRAGGING"&&(Ac(le()),te.isEnabled&&(zo(ne,je)||ht(!1)))})}function qr(te){}function Ba(te){te.preventDefault()}function Ka(te){var ne=(0,y.useRef)(null),le=Pt(function(Ho){ne.current=Ho},[]),he=Pt(function(){return ne.current},[]),je=Qu(gl),ze=je.contextId,et=je.dragHandleUsageInstructionsId,dt=je.registry,en=Qu(pc),Cn=en.type,yn=en.droppableId,ln=Gt(function(){return{id:te.draggableId,index:te.index,type:Cn,droppableId:yn}},[te.draggableId,te.index,Cn,yn]),cn=te.children,Pn=te.draggableId,ur=te.isEnabled,va=te.shouldRespectForcePress,Na=te.canDragInteractiveElements,ka=te.isClone,oi=te.mapped,Ai=te.dropAnimationFinished;if(_r(te,ze,he),qr(ka),!ka){var Mi=Gt(function(){return{descriptor:ln,registry:dt,getDraggableRef:he,canDragInteractiveElements:Na,shouldRespectForcePress:va,isEnabled:ur}},[ln,dt,he,Na,va,ur]);Wn(Mi)}var xo=Gt(function(){return ur?{tabIndex:0,role:"button","aria-describedby":et,"data-rbd-drag-handle-draggable-id":Pn,"data-rbd-drag-handle-context-id":ze,draggable:!1,onDragStart:Ba}:null},[ze,et,Pn,ur]),ho=Pt(function(Ho){oi.type==="DRAGGING"&&oi.dropping&&Ho.propertyName==="transform"&&Ai()},[Ai,oi]),Zo=Gt(function(){var Ho=bn(oi),Vl=oi.type==="DRAGGING"&&oi.dropping?ho:null,us={innerRef:le,draggableProps:{"data-rbd-draggable-context-id":ze,"data-rbd-draggable-id":Pn,style:Ho,onTransitionEnd:Vl},dragHandleProps:xo};return us},[ze,xo,Pn,oi,ho,le]),Hl=Gt(function(){return{draggableId:ln.id,type:ln.type,source:{index:ln.index,droppableId:ln.droppableId}}},[ln.droppableId,ln.id,ln.index,ln.type]);return cn(Zo,oi.snapshot,Hl)}var ii=function(te,ne){return te===ne},Wa=function(te){var ne=te.combine,le=te.destination;return le?le.droppableId:ne?ne.droppableId:null},Ei=function(ne){return ne.combine?ne.combine.draggableId:null},to=function(ne){return ne.at&&ne.at.type==="COMBINE"?ne.at.combine.draggableId:null};function Ui(){var te=En(function(je,ze){return{x:je,y:ze}}),ne=En(function(je,ze,et,dt,en){return{isDragging:!0,isClone:ze,isDropAnimating:!!en,dropAnimation:en,mode:je,draggingOver:et,combineWith:dt,combineTargetFor:null}}),le=En(function(je,ze,et,dt,en,Cn,yn){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:en,combineWith:Cn,mode:ze,offset:je,dimension:et,forceShouldAnimate:yn,snapshot:ne(ze,dt,en,Cn,null)}}}),he=function(ze,et){if(ze.isDragging){if(ze.critical.draggable.id!==et.draggableId)return null;var dt=ze.current.client.offset,en=ze.dimensions.draggables[et.draggableId],Cn=yr(ze.impact),yn=to(ze.impact),ln=ze.forceShouldAnimate;return le(te(dt.x,dt.y),ze.movementMode,en,et.isClone,Cn,yn,ln)}if(ze.phase==="DROP_ANIMATING"){var cn=ze.completed;if(cn.result.draggableId!==et.draggableId)return null;var Pn=et.isClone,ur=ze.dimensions.draggables[et.draggableId],va=cn.result,Na=va.mode,ka=Wa(va),oi=Ei(va),Ai=ze.dropDuration,Mi={duration:Ai,curve:cs.drop,moveTo:ze.newHomeClientOffset,opacity:oi?Ss.opacity.drop:null,scale:oi?Ss.scale.drop:null};return{mapped:{type:"DRAGGING",offset:ze.newHomeClientOffset,dimension:ur,dropping:Mi,draggingOver:ka,combineWith:oi,mode:Na,forceShouldAnimate:null,snapshot:ne(Na,Pn,ka,oi,Mi)}}}return null};return he}function Bo(te){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:te,combineWith:null}}var ml={mapped:{type:"SECONDARY",offset:jn,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Bo(null)}};function ql(){var te=En(function(et,dt){return{x:et,y:dt}}),ne=En(Bo),le=En(function(et,dt,en){return dt===void 0&&(dt=null),{mapped:{type:"SECONDARY",offset:et,combineTargetFor:dt,shouldAnimateDisplacement:en,snapshot:ne(dt)}}}),he=function(dt){return dt?le(jn,dt,!0):null},je=function(dt,en,Cn,yn){var ln=Cn.displaced.visible[dt],cn=!!(yn.inVirtualList&&yn.effected[dt]),Pn=Ci(Cn),ur=Pn&&Pn.draggableId===dt?en:null;if(!ln){if(!cn)return he(ur);if(Cn.displaced.invisible[dt])return null;var va=Zr(yn.displacedBy.point),Na=te(va.x,va.y);return le(Na,ur,!0)}if(cn)return he(ur);var ka=Cn.displacedBy.point,oi=te(ka.x,ka.y);return le(oi,ur,ln.shouldAnimate)},ze=function(dt,en){if(dt.isDragging)return dt.critical.draggable.id===en.draggableId?null:je(en.draggableId,dt.critical.draggable.id,dt.impact,dt.afterCritical);if(dt.phase==="DROP_ANIMATING"){var Cn=dt.completed;return Cn.result.draggableId===en.draggableId?null:je(en.draggableId,Cn.result.draggableId,Cn.impact,Cn.afterCritical)}return null};return ze}var Al=function(){var ne=Ui(),le=ql(),he=function(ze,et){return ne(ze,et)||le(ze,et)||ml};return he},Cs={dropAnimationFinished:_s},fs=Ze(Al,Cs,null,{context:Yl,pure:!0,areStatePropsEqual:ii})(Ka);function kl(te){var ne=Qu(pc),le=ne.isUsingCloneFor;return le===te.draggableId&&!te.isClone?null:y.createElement(fs,te)}function ms(te){var ne=typeof te.isDragDisabled=="boolean"?!te.isDragDisabled:!0,le=!!te.disableInteractiveElementBlocking,he=!!te.shouldRespectForcePress;return y.createElement(kl,(0,ce.Z)({},te,{isClone:!1,isEnabled:ne,canDragInteractiveElements:le,shouldRespectForcePress:he}))}function ns(te){var ne=(0,y.useContext)(gl);ne||ht(!1);var le=ne.contextId,he=ne.isMovementAllowed,je=(0,y.useRef)(null),ze=(0,y.useRef)(null),et=te.children,dt=te.droppableId,en=te.type,Cn=te.mode,yn=te.direction,ln=te.ignoreContainerClipping,cn=te.isDropDisabled,Pn=te.isCombineEnabled,ur=te.snapshot,va=te.useClone,Na=te.updateViewportMaxScroll,ka=te.getContainerForClone,oi=Pt(function(){return je.current},[]),Ai=Pt(function(hs){je.current=hs},[]),Mi=Pt(function(){return ze.current},[]),xo=Pt(function(hs){ze.current=hs},[]);x({props:te,getDroppableRef:oi,getPlaceholderRef:Mi});var ho=Pt(function(){he()&&Na({maxScroll:Ln()})},[he,Na]);Dc({droppableId:dt,type:en,mode:Cn,direction:yn,isDropDisabled:cn,isCombineEnabled:Pn,ignoreContainerClipping:ln,getDroppableRef:oi});var Zo=y.createElement(ee,{on:te.placeholder,shouldAnimate:te.shouldAnimatePlaceholder},function(hs){var lu=hs.onClose,qs=hs.data,Zs=hs.animate;return y.createElement(Rl,{placeholder:qs,onClose:lu,innerRef:xo,animate:Zs,contextId:le,onTransitionEnd:ho})}),Hl=Gt(function(){return{innerRef:Ai,placeholder:Zo,droppableProps:{"data-rbd-droppable-id":dt,"data-rbd-droppable-context-id":le}}},[le,dt,Zo,Ai]),Ho=va?va.dragging.draggableId:null,Vl=Gt(function(){return{droppableId:dt,type:en,isUsingCloneFor:Ho}},[dt,Ho,en]);function us(){if(!va)return null;var hs=va.dragging,lu=va.render,qs=y.createElement(kl,{draggableId:hs.draggableId,index:hs.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(Zs,su){return lu(Zs,su,hs)});return sn.createPortal(qs,ka())}return y.createElement(pc.Provider,{value:Vl},et(Hl,ur),us())}var Ll=function(ne,le){return ne===le.droppable.type},Zl=function(ne,le){return le.draggables[ne.draggable.id]},Il=function(){var ne={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},le=(0,ce.Z)({},ne,{shouldAnimatePlaceholder:!1}),he=En(function(et){return{draggableId:et.id,type:et.type,source:{index:et.index,droppableId:et.droppableId}}}),je=En(function(et,dt,en,Cn,yn,ln){var cn=yn.descriptor.id,Pn=yn.descriptor.droppableId===et;if(Pn){var ur=ln?{render:ln,dragging:he(yn.descriptor)}:null,va={isDraggingOver:en,draggingOverWith:en?cn:null,draggingFromThisWith:cn,isUsingPlaceholder:!0};return{placeholder:yn.placeholder,shouldAnimatePlaceholder:!1,snapshot:va,useClone:ur}}if(!dt)return le;if(!Cn)return ne;var Na={isDraggingOver:en,draggingOverWith:cn,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:yn.placeholder,shouldAnimatePlaceholder:!0,snapshot:Na,useClone:null}}),ze=function(dt,en){var Cn=en.droppableId,yn=en.type,ln=!en.isDropDisabled,cn=en.renderClone;if(dt.isDragging){var Pn=dt.critical;if(!Ll(yn,Pn))return le;var ur=Zl(Pn,dt.dimensions),va=yr(dt.impact)===Cn;return je(Cn,ln,va,va,ur,cn)}if(dt.phase==="DROP_ANIMATING"){var Na=dt.completed;if(!Ll(yn,Na.critical))return le;var ka=Zl(Na.critical,dt.dimensions);return je(Cn,ln,Wa(Na.result)===Cn,yr(Na.impact)===Cn,ka,cn)}if(dt.phase==="IDLE"&&dt.completed&&!dt.shouldFlush){var oi=dt.completed;if(!Ll(yn,oi.critical))return le;var Ai=yr(oi.impact)===Cn,Mi=!!(oi.impact.at&&oi.impact.at.type==="COMBINE"),xo=oi.critical.droppable.id===Cn;return Ai?Mi?ne:le:xo?ne:le}return le};return ze},ps={updateViewportMaxScroll:Xl};function Mu(){return document.body||ht(!1),document.body}var ou={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Mu},rs=Ze(Il,ps,null,{context:Yl,pure:!0,areStatePropsEqual:ii})(ns);rs.defaultProps=ou},38486:function(Mn,Yt){"use strict";var E;var y=60103,ve=60106,ce=60107,Le=60108,xe=60114,ge=60109,Se=60110,Ne=60112,Be=60113,fe=60120,$e=60115,Oe=60116,ct=60121,Ke=60122,Te=60117,we=60129,Ie=60131;if(typeof Symbol=="function"&&Symbol.for){var Pe=Symbol.for;y=Pe("react.element"),ve=Pe("react.portal"),ce=Pe("react.fragment"),Le=Pe("react.strict_mode"),xe=Pe("react.profiler"),ge=Pe("react.provider"),Se=Pe("react.context"),Ne=Pe("react.forward_ref"),Be=Pe("react.suspense"),fe=Pe("react.suspense_list"),$e=Pe("react.memo"),Oe=Pe("react.lazy"),ct=Pe("react.block"),Ke=Pe("react.server.block"),Te=Pe("react.fundamental"),we=Pe("react.debug_trace_mode"),Ie=Pe("react.legacy_hidden")}function tt(We){if(typeof We=="object"&&We!==null){var Ae=We.$$typeof;switch(Ae){case y:switch(We=We.type,We){case ce:case xe:case Le:case Be:case fe:return We;default:switch(We=We&&We.$$typeof,We){case Se:case Ne:case Oe:case $e:case ge:return We;default:return Ae}}case ve:return Ae}}}var Et=ge,_e=y,Fe=Ne,He=ce,Xe=Oe,St=$e,gt=ve,ot=xe,Ue=Le,Ee=Be;E=Se,E=Et,E=_e,E=Fe,E=He,E=Xe,E=St,E=gt,E=ot,E=Ue,E=Ee,E=function(){return!1},E=function(){return!1},Yt.isContextConsumer=function(We){return tt(We)===Se},E=function(We){return tt(We)===ge},E=function(We){return typeof We=="object"&&We!==null&&We.$$typeof===y},E=function(We){return tt(We)===Ne},E=function(We){return tt(We)===ce},E=function(We){return tt(We)===Oe},E=function(We){return tt(We)===$e},E=function(We){return tt(We)===ve},E=function(We){return tt(We)===xe},E=function(We){return tt(We)===Le},E=function(We){return tt(We)===Be},E=function(We){return typeof We=="string"||typeof We=="function"||We===ce||We===xe||We===we||We===Le||We===Be||We===fe||We===Ie||typeof We=="object"&&We!==null&&(We.$$typeof===Oe||We.$$typeof===$e||We.$$typeof===ge||We.$$typeof===Se||We.$$typeof===Ne||We.$$typeof===Te||We.$$typeof===ct||We[0]===Ke)},E=tt},53410:function(Mn,Yt,E){"use strict";Mn.exports=E(38486)},93314:function(Mn){"use strict";Mn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},73631:function(Mn){"use strict";Mn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAZxJREFUOBGtlL1Ow0AMgH2XUIkOLFXVASgTsDHxBIAEzAwMPBQjT8AATGVBgEBCYmHmFcICYmBogCbNYSe52HUTVZWwFJ3PP599Z+WMcy6Af5SwYkWnLYifTyBzq5XNK8YNwbbvYP381ZuaVlN1+HJwAc4d1QYaA+gDsHYANrhGHTdCMtSDMILtwSMDn7ZiANPKwyjeQ0Reo4r1gEoEwRkDb7spdPcBeocMk1Cv00oii5L+fgPwcR/zHfb3AJY2sEpUVLOUhB/l+w7I1iS9TYDFrM3AzhqGDstPZ3li2Z12U2WLvk4fGJh+F0elYN8ZrbWiA7igAP4WR6sFzDAKPgPHP0VnlMsFS5IyyIGoeAamCKybYI5UQLWVE2fgGI/s72wqQXRd9jyxiHgGJtihFxGQm8Qd5XvtF3fEQOrQH9mDm1Z9hyJuEphXIq9uSWSQqv8a4RbAUTFdcs7gifwplYGjT3wzbPFz6Q70EZv8WZoxMP66ApMc86inirNBA8njcFIuvOTXhowPyzuQJiukzi3hQgS7b+I9nJtQn/AHsLGsvlcPPWsAAAAASUVORK5CYII="},31328:function(Mn){"use strict";Mn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAodJREFUOBGtU0trFEEQ/qZnM5NsWBCfSEjwQdSggmAieAv4uOnFg5eIXgTvEY+ePJqToDf9AcZDFAUF8SgEQUxAjC6+QlhX4xo0G93ZnRnr697umSyKBCyY/aqqq76q6uoF/rN4lu/BmzSsLGFM7P4kAZQCiBTR64nCw/MHvRnj+fuvI7zxtDWJJD1lQulO5TPHnkAqpuAUFKZUqg8da8xI35+/cMh77AjHJ5cakh/oqHa2ZhGHpSb+STxJZA3lqesFG1CuLAdsqLfbb/dlTwQ7GdmG9VGVBuoNfT/nHGHUSnByeAN2binmmDK1gyM7aGvl6gruPvtadCOfvVlxN0PFjsF4qxMptjl7BflirsPAVxJoQjy5eUMqq6bkMgbWF7C4HGMlsnRmZE82xtEdYSwGnRTuhCvVqG3T8bGhHpweKaFWj3HpzqI7Z16SmHxHmKbcVE7yBs+k1uBm8wh6Q4VQJvrZMkEp98EGBB2h3pFUMWJmPLKniKGtXZhZiLC/L8CLhQbmqhHefmmi3pRYOwInY65gRiiM+ZEP9Ic4c7ik+Ye3dePK/W94/bmpbVNO4u2S2rmrOmRvtkEmlHraC9EUgEzo/optVwZM4IiCLivR1WhywwrT75p4WYlkqhTT7xs4vreIke2h3KWHTaUClC/ZnsR3fOTWMnarZi/QulYhr2l0MMDorhA7NhbwodbC5Xs/9FT5d+s6lJJSzHxWJ9ov9Xw8KceYX9LrQ9+6LF6pgs4luqVIIl+G69gp0id1tk+8/byJ77+AV9UEiRTJMnQMOYycuPZpNuhS+7TF+fgkiBSr55+J9eXOm1E86wjpPzrx8aI8hd3U1yryrOcejQ9cXWveP+N/A79g8eaXNDk4AAAAAElFTkSuQmCC"},96908:function(Mn){"use strict";Mn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13ANnJBk9YdSm9YVg6+tB0NC2ZtqZ6dn/1P+rKirwqaRqrknVuSM9mZ8J0FD2CetmJ1MipO74WkPXn0VOg72CvY1ZRuJU9uRvQPW4ZLes0jdszlvG3+CoRWroDyERZPtH1Dk1HH56B5vHQWFvJzrUf42lrUaMlPJ4BMxOxtnQAmWhgJLL+3gPQR5+E1qsPDdXl5G9YjUdipIreGpzGFUOfpb4zVXQA2ZnW7op1paSiH30qWlIqdVWlFGz6Al1ipmqkXH0wnD0ym8bOUt0BZGdZuivXk9IH/ajJaK4Uasr3UJizUQX/Fb2WOZ7LtfniosefHEDG38bdo4bUvuijJqG5XFQU5VOSv22/3hr8NTObWzqjIQ4gO8PK3aWO3v3RR57gHR13blpHQ121FZTTM7N5Od5NcQAZbwt3N/mDjvDu8jQ11rHj6/XoskevqKxXMuOPfZHyeDbJAWQ8rdsdZct2zYjj0VJS2bu7gLLiXdZRMiszmx/Hs1kOIONp3e4qO60/+rBx6O5WdmzeRHOTz8lO0pg2fhkr4tU0B5Dxsmx3lytTd99B1FZVUZC31dqanMzxTNDmsz9gGcumOoCMpTV7kixXEvrwCV4HZ1vuZlqamqytu2VCNn+NR3MdQMbDqj1Epj5wBFqfgVSU7qWkWB3CENKgEhibme39jCklBpCysf/H3aohrY1w64CYNqrLCJOziRJg1hN+qqtjJklJQx88xrudmJuzBY+cVveBcmlmNr/qmODQpRIHyPuKlVYtjXBL/1i3K7HyDh4Gp94IU2+Ee0+A+pgPJJ3WPn3QEWgpvSkpKaaiosJabxsuJk7IYksslXEAGUtrmrIW5sHAkerb7UO6NSBJ6wcDhnvXkFu354HlDK8GKzOzOS+WJnQAGUtrmrIW5atXCHoCIDXwDDwSlyuJvIICGhran7OIdRjIAaQDyIgW0PsNRkvtR2l5OaXlAcuPmIaBuh4gp1wP/QYrI338ODRUBRpM0+Cc36p0OVT6nwd9PIcdAydcqr7nroL8NXDi5TBmKoyepPgL16n0dS+3dzgGjoaTjY0If7n+Wow+GdK/p1Jr9sC+Ihg1SX0X3Xob6+K3F0FLg0r/egUUbWovSRy8SdNh5PEw4jho2Ae71sOuDbDhVaWvP1nbWLIZvvo3TLwQvjtDvdQlaf+eB2Uxeuu1V2/oP4yGhnryCn3etqmWS+PmjGUsiYhsGwxdD5C/WwsjJirV7xkX3KjyPvZSY+poqoXbBvqaetzF8HPjDMAbc2HIWDjlp8FNsfldePIaH+iTU2FxIRxkyHvgu5D3afCyM5dDprF8emuBN4jM6TPDm/zZG+HTf/l4xpwG1z/nXaMFpYIv4fHpUGVEJEwmaxu/eBFyP4Br/t5exMPnwZb3bUDADouGPmiU9+3FnLxC3BZvW0rHMgzUswEpI5O8Q9LaDAVroHgzDE2H0SdB6kGqJyryYdFJ0GicbLnsfjjLOGn1yT/ghRmBPSajmgBXLg+Qwwd3j4WzboXTDV4J95jkPZxghH2e+xl89ozKEVDdlKVu8RAq/lqNikm91Eg++GiVXlsGD52tRr1ggCz+BgaPAXk/20oxBSTo/YagJfdiV8lequuMEd9SnwYxCQP1bECKwerK4ZELQUYbk2RbbNZbMOQYlbJyMSy/Wz3LdDjvG/XcWAN3Hg6t7XYp4IxZ8CNjmSCj7NJp7cEQyamRH8m8zT7H54WZ8MkTPhlyO4ZM+xcvUGkb3oDHLw8OSDP1m3fgw0ehtlSBWUb2ysL2eh3It7T+iMddVV1LUVnQMFZMwkA9H5CPXQqb3gzsChlVBBSyHm2uh7ljFHiFbn4Pjj1DPT/1U5Bp0Uq/XQ1HnKxSnrgC1r8aHSAvnAfn3aXKfPYsPHN9cKiYywIJrC+a5Ft/WqfsSDIOBITWsnJjRr/DaG1pIbewJKjUWISBejYgZTqeOzZ0l9zyPhxzusp/7BLY9JZ6FifjhhfUc85/YckPfDKsI6iMRnNGq3t+rBRphJyzBuQgrNBD34etHwTXcfLVcN3TKu/d++H136lnKyDlx3TXkcGdv1iB0ZTT7zDv0/aiMppaWoNKP9AwUM8G5Fdvwt8MjzuY+ab/Bc40dr+yfw2rDEdRRgMBlXSArAFl9KwyzgVaR7f3HoDX5gRKjgTIh6rV2lZow+uBSwJTojhX489R32QUltHYH5A7P4P7T4s19ILLk2k7JY3SqhpK99WFqvOAwkA9G5Af/R1emhW6s865HS5ZpPJXLYXsW328Fy+EH9yhvi+/B1YafH/YCoceqdLnZUBpu6NZKj0cICVgLvnRkoSCFk8OBOSXy+DJq6OV1jH+5F6Q1p/G5mZ2lAQJxxlSDyQMFHtATpgGR56iVNvyHmz7KLDxstcrXqpQUx3cdoiPJ5ZhnzUvwNPXhjb+tLth2lyV/86f4I3f+3jF8Zmfq+6SLNsB96TDUVPgNx8qHmnXg2cFlx0OkDIyPrhPrV2FJNbqe8MvtK4S3go2Zcv6Vta5nUGicp9B3vuBcooraXMHfxHxQMJAsQfkRQvg3DuVeazeq9Vgo06EOz9XKXu3wvwMX651fbXgeCgxPF5reQlgLzSCvuHikOJpSiwxFF3zBEy5TuU+exN8aqzXTP5fvgkZxvrxz2fC5CvhtJ+p3KevgzXPRw9IKWHd6w41yoYDmH8csrMAKTql9vWGqoqr6qisaw6pZUfDQLEH5Hd+Atc+qRRdmw3/vCpQaStPzn9gybk+nl+8BhMvUN+XXgCb3wksf+1T8J1rVHo4QMoux7xxwcMfElwXUJt7zg+cDnmr29clux+/MDxoGW0zzlVBc9lNmTMy9Nov0hpy1goY/31Vl3/Ix6rB8ZfACT9UKRJe+vw59ZxIQMq0nZJGbUMzBRVhL7XoUBgo9oCUoPMdxu6GBKQXTIByy4VaKWnwm4/VVpnQf5fAy7/2dcP0B+FMY90XbMo9fCLM+UJNpZEAKflfZqndGH8SZ0acGiEJSC82wjhWPokH3pvnA62ZJ/G+rJsDZZop1nWmePni7VvpuIvg56+oFNlynJ8JzX5OgswCd63zbUH+5Xuw/ePEA1KWGvIOt9vNlr21eDyhz3p2JAwUe0CKyWavhHRjfVVXoUAni38x8ik/geHGFC33yMgIZu2wcWfDr972dZ/slnz+PNTuhaNPhUvuVd6vSeFGSPGQBbjrXoH3/gxl22BIOpz0I593LXIevQi+ttRpBc/5c+ECI2hupt8rMcGvQgPSGk6SsFHO+2rPXLxyk2a8DrLeFirdrtaHEryXy0ZlmTD5Kt9uzTcrVXDfpESOkKKD7G3rOruqmqhuCv9qjcvF+RlZhDBuoAnjA0iJ1ckoaR4wCNV1794HrxsBYivPze/CsWcGLyUgWz5XAVMoHCAFiEInXhZcloBkxQKQvehQJFP6wh2+Lb78L+C+KaH5JUeWE7Ks8KdZaeqqZaFDRsCMN3z79qEk7t4IMjo21XQdQLpSvP8QoKaxlcJ9odeRorCmsSVjHBPtvhQWH0CKJtKRVz3mO4BgNXhFgQrHyC8/GMmhUNlTPvWG9rnVJarcphX2DleIByrOxxVL1Mhsxv5EqkyVWbNh4/Lw4JLc2e/4TvbI3raM2pFo6k1wxkwYPNa3z2wFpJSXeOf5v1d751bdJE/WqfJDkeWBf+A90SOkTNtJvdA9bWwpa8ET4RWNaMJA8QOk2WF9DlEHGmS6FhDszVX7rXao76EwdJy6yF2OjJXLieUIFKqzpPMlHCWjdsFadWTMDglQFhVAnwFqi/HOEYHrPTtywvFIBx96FAzPVODbk6PW3XbCQQdad0fLiz11D7urW9nXHP4eqmjCQPEHZEcb3NFysR49JMxz5SNKm9VPgZzYcQjE4ZOzKy1u8qtt3Jmv8fCEZcyOZDoHkJEsNHcjDBuvuO6bCvlG/DRSuW9Dvly74tHZUumOOG3LUWo7L4U5gAwHHHGsxMESkvOKC40DEd8GsEXRxqI6D1VNka+P1ODtzGzOD7t66XGX3sdyypaguATHhbJvg1UPR9FN3x7WxjbYsc/ezSqRwkA9b4QclqE8aiEJeH/5UseQITs5F81X/+tQSPa6g73f0zHpPaqUhMa3VrppDRMkNxscKQzU8wDZo7q6+zSmtFGntN6GcwOECwM5gOw+fd6lNW31QG6lADLytTHhwkAOILt0N3cv5XZWe6gXZNqhEGEgB5B2jOfw2LLAvmad3bX2pu1QYSAHkLZM7TDZsYD4NDn2YpJeccHCQA4g7Vja4bFtgeJ6D5WNNqdtcXD8TgM5gLRtaofRjgWa3LC9yl5M0jtK+p0GcgBpx8oOT1QWyKt209Aa2ds2hbpczM7Iwrvr4AAyKlM7zHYsEKVz0+5uIAeQdizs8Ni2gIyL8icxSbeNnZv9go0wkANI26Z2GKOxwJ56D+VRODdmGMgBZDRWdnhtW6C6WWeX/Zjk/jDQ/wHkSLPJ/mcrgQAAAABJRU5ErkJggg=="},57177:function(Mn){"use strict";Mn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAAA8CAYAAAAeyZT3AAAAAXNSR0IArs4c6QAAEpJJREFUeF7tXQeYFdUV/mcbS1F6UUEsoLC7IGKNJWpERbEgSoxGo7HEQFDRWCAGgdASNBbEhglqsC1rAxVBNGg0qNgLsJRddmFhe3vby3uT7393ZmfeezOv7M57W3LP9/EtM3Pn3DPn3n/uvf85c58CKdID0gOOeUBxTJNUJD0gPQAJKNkJpAcc9EALoNRpCaqt3rh4QIkDvH/jxV/zuZZjrVy8uRzvSzDdrx3HxWnnEnz1eevhOf/79HpNdrAs6wrQr9VvtiMc+/kc0HSan9Nrq8Uzt9hquuZjv8kPev26r8x16X5VPYDHDYT7Vy/L8vo94d7P8u5mcV+w+1U34GEZ7a+5Tg/vV31tbrmu36ff23JcB9VdBo9a5v2rekq14/1wN30GNXGzctPKKgf7eExVKUGBpJsSEkgWYPMHXEuH0sHlB5iW8jrAtE6sd9AW8GidVD9mR/fvxDrAzJ3Yp/ObAGL3srC1XweJnf0awHUQWgGJ52i3P+D9OyOP/QHSAjYT8Lwd3gRGH3Bp5dza34D7LUDsD04vmPzuN9cZGkSAF3xm4JttNoFWdasNlRVNta4SV21l6YHakvyPGurrNivA12kZ2B1TdLSisvAA1QrF8hbpAUsP8EWVkAwkdgMSugHxiUB8EpDcC+g1AOjeG+BciSBWPXA3NaA8Pxel+7LRXF+bCwXpShxeTX0V33ZED0tAdcRW+X+2iaN3j35Ar/7iX/e+XnCpbg9cZfkozctBrauci/9tioIlKSpeUTLg7iguk4DqKC0h7bD2QPJBQP/hUHsNhsIVv+qBq7QI+7O2w93USGDtUoEFaavxoqJ4x7Z2FQmodnW/rDxsD3Ba2PcwqL0PhaLEobmxAXnZmaiuKPOqUBRsSlBx06gM7AlbZxQKSkBFwalSZRQ9kJAEDD4GSD7Yyz6WFu5HQV4uVI+Ho1W1ouCe1NV4OooWBFUtAdVenpf1ts0DfQ6F2mcoOMurq6nCnp2Z8DAMwNEKWJEKTG+PtZUEVNuaVd7dnh5I6gF1wFFQEpJQW+1CTtYueBgeEPLuwGRcNWQVamJpogRULL0t63LeA/GJUAeNhBKXgOpqF3Kzs6Ey3iVGqs29gQnDMlDnfMXWGiWgYuVpWU/0PBCfBHXQ0VCUeLgqK7B3b67I4BDyZloKrlTmQ6AsyiIBFWUHS/Ux8kBCMtT+w70MYGlJMfILCloqVoDH0jIwMxaWSEDFwsuyjth4IKk71D7DGKzCnj05qK0zZnoKMDUtA69F2xAJqGh7WOqPrQeYvtSjL+rr65C1JxeqMfUrTkpAyrGvoCSaBklARdO7UnfsPaAAat/DocTFo7C4FMWlIvBLUYD0tAz8KppGSUBF07tSd/t4ILE71N5DoHrcyMrJQ0NjY4sd8QompazGumgZJgEVLc9Kve3rgZ79gW49UVVdg9wDhWZbMtNSMEaZDxEFdlgkoBx2qFTXQTygxHnz/gAPdu3NR2Njk9mwmWMy8Fg0LJWAioZXpU7DA/0OB479hTguyQZ2/Sdm3lF79IWS2B2llVXILylvqVcBuLAamZbh/euotA+geg0E/ponHqSpDrizj6MP1WGU8WM671eq7fhVweTFwIQ/Cpe8PRfY8NfYuue4y4BbNbb6y1eA534Tu/rjEqEeNAAejxs7cgvg4VfGmijA8rQM3Oa0Me0HqKUHxLM01gEzD3b6udpXX+9DgNNvBs64GVh0PFDj+Isw/Oe7fAlw3t2i/NoHgPVLwr/XiZLtCShGpHr29zJ++aWVKHX5pPU1Iw5jx6RjuxOP2QLUsPaUcLJG6uII1ZUBtTAb6McAI4B7BktAtdcIRf/zM/vkg9HY3IydeQxBGbMFBVifloELnezecoRy0pu6rsU5QJ/DJKDogXYeoWiCp2c/7mWF7MJy1Nb7kBNwmkaXgJKAioYHDJ0dAFBqt55Q4ruhyFWDooqArzkcpdE7HqBOuxE4aKBokE9WALUGO9PSStxc4Px7xWFzI/DhI0YDDjoGOP5ycbxjE5CzBRh/JTDiDGD4CaL83m/E+W9e8yUM+g0HTtIC6f56/bvd8JOAURp75SoAKvYDh58gStG27tq68L3FQGOtOP/TOmD/j76aOP09YSowbBww9DigtgLY9y2w7zvguzeEvf5ifsb8bcAPbwNjLwF+Pg3oPQTgubfnAcW7ASfXUAOOBH52PTB0nKiHn6UXZwFFu4DPVwEFFssRK0BRz7gpwn/0U+7XQM6XwFfpYrsxpyUhEUjqhdqGJmQXVgRoj1NwR+pqLHOi2o4HqD99DQwdK55t7mjRKfyF++4t1xIf66uAu/oZJcwNuGYOMHgkcKoNs7TtfWDltQZoOd9eshfoqel76OdA9mfWfp6+FkjTpt/vLhA79Jw1PXibrLoZ+OwFo8yIM4EbXwT6MF5iIblfASumAuUaI6oX8e+kOz4Crn3GV8HjFwLbP3AOUJfMBybO9m7eYCnuJmDjQ4L4MIu/rR8+Bty2zvCxuezuT4AVVwHVxU70bR8dao8+XsY1c38F3Ca2j4WcpNG7NqA4MiT1AJoagNwtwIFtwJBRwPATvVF0r5TmAItPBOoqxfEVDwLnapn+n/4DeHlaYONyVCHw4hPErqoPjATOvRM4Syvr3RVWE2/jaQvhF38HfP4vcYEd7ZZ0sWsu5cBPYlTiW58j6cCjxfmqYuDRCWLU0cXcSQ9sBQaOEPvcmcVJQF08F7joz4b2sr3iRcOX2eHjxT9dVl4HfPWqta0cnRmX4r58WZ8CRbsD24Mvj8UnOE7kqN16eT/t2FdWjcrawFHfKRq9awOKzVpdAjxxCcC3vS79jwBmvCs2+6CQStbfrJxOzdsqzte5gFmHAU31vp317BnAL7VpJke55ZN8r4ciJQjyedsM4uLl6cCnzxo6uDcdp42XLRDnvlsDrLjSupPqZ7duAD5+EqgqEmBkh2fHb+uUjy+eJXliI0rK6/f6TrF5ji+TK5aK65wCzh1lbyvb48nJQM4XRpkBRwHT3gIOGS3Obfw78OYsX5+29YgvnLgklNc0YH+FNgX31ekIjd71AfXU5cCP7wQ2B9/q7NScwjTUAHNGCPBR7tgIHHu2+D8DkQxImuXezcARJ4kzz14FfPuG7/VQgLpkHnDh/eIerj3+daN1d9GnlQwM862tr7/MI1QoHW0FFNdLE+8ToQ6uFTlFtpJFe4C+Q8WVmb2NdaO/rS/cCHyxyro95m4Ve9ozNsn24MvBKeHW10nd0dTsxo5C663TnaDRuzagOJ2bM9K+SWZ+ABxzlrj+1GTgx3fF/0kS3PSy+H/mv4FlFxg6zCMYG3z28MCFdChAzd4CDDte6Hz0PGDnR9Y2nvxr4IbnxbX3HwTe+pP4v7mT8mVw/5HW5A3LthVQ4XboO94Hjj1HlF403hr8ZfsEULQ9HwJUz1gHpJwnTj89RZAtTgpHW9WD3cU1qG+y/iK+rTR61wbUD+8AT2uMn1XDTH0YOEfLPsn4I7BJI3q43zZBcdAgsUZiJyjfJzSYRxcuwt+cHag5FKAerRRrO8p3bwVOKXWNJEdSzhdHHAU5GvoDas/nwINn2nc7JwHF2NrxUwCydP2PFEQMiRzulcdjfV1Ke2iXv61b14vpt52Y169v3Ad88LCTcBJ2KvEoqmpAUbUFeypqaxON3rUB9Z9ngFdn2DfK+fcAzHWjbFoOZNxplL1sIXDBfeJ47VxgvVbuLztFh6LMSwWKdgbqDwYodkpej1RIpS85ObCTfrUaWPnr6AKKDNlVy4DxUwURE0rsABWqPZhzOEXLNfz4KSD99lA1RXbd+1NCiahrdCOrzH4jpLbQ6M4Daswk4MhTxYNu32idXcxcN7JklPpq4K6+hmOcpM23vAw8f7290yc9AEyaI65v+BuwxsRkkbiYv0PM6fWF9lGnAXd/LMoza/qRc611BwMUR6ZHKgz6mbE2uymQWTsZNaspX6iE07aOUInJwO0bgKNPM9qL8bHCXUBVoRhdmxuAibOMaawdoL54EXjht/btYR791y0E3pkfGWBClSbjH0c21IPM4no0e6yTlttCozsPqEsXCOdSzOyZ+WFJs87SWJ7CncD8VOOqeX2xYByQrzFu5vsZgF2oxaeCxaHIdDGWZCfXPgucdoO4uuoW4DNtvaKX/8M7QKq2fvr7OcDJVwNn/k5cff4GYMtLkQOKd5hz/exGuWCdI5Lsg7YCimzj5EXCmrzvBYXP4LO/zPrcCGzbASrYS4j6rvuHCBxT7MiLUKAJdZ3Teag44GpCWZ39j3a0lkZ3HlCnXAdcv1I81tcZwD+vCXxEc5nMD4FlE40yv38TGHuxOF5+MbBtQ+D91z8HnKKxTcEAxSyDeaMFfewvDA4TlHrO3UNnAdmbfUsx++D3GoPH0S51oghIskPNHma/9gm1hjIvvv0pc7MF4yaLNQuF9Dzf8JRYAop0NmcdlGeuBL5fE+hL/qbT0gJjOmgHKLbHn48CXD5f0Ap9bA/67eDB4njp6SKbxWnRfjmzqr4ZuZVBszJaRaM7DygGTe/TsgsYUF0wBigx/SACpxB3fyJSbSj/Xga8pn2vw+OpjwDnaOseqynbYWOB2V+KqRglGKB4neksVlQvyQiSEhQGVJdoNLi5ARkPWpRtgE6/xnhP+h32TW1eZ5FlJNtoluMuBW59XZxhytL8NKCh2rcMR+H7vzFSmB7+BcBMAkosAWWegvPlyJekv5hBx2t2gOK1/64EXro1UMeEu4ApfxPnmYa0VJti2nu59Vfi4r27y24vaYYnyLdqraHRnQcUH/P29cAobX1RXSpAw8U7O8mp1wGHalM8bu7OEcTc4UZPAG57z3AWsxW+eEnM148+XUw/yL7pEgxQZOgIvG9eF8HC4l3A4FHAib802D3qefJS4CdTneamumgOcLFfOs0ixoR+sG9QMx1P2j3zA5EzSFZQF3MnZMYA10cMPvOzbU4zT77GyJbwZ8daCyjq58sjHPlhrfDJb1aKNqMU7gBemgZk/VdkeHCtfPliY82s6w0GKJYhkULSgdN5Zq4wTKGzrbzOGQtnLtES9gmPB/uqPKhsCL6hbFwcLkpNh03nCDQwOoBirIajlJ4gaueY95cCb2kBTnMZc0zD/16CZO0cY14fDFAEEmX8FdYWsJOvWwAwF89OOCVcmGWkCIXz9uR0lNNSf5mRLH6rlsIg6LQ1Rt6iXf1ct3B0qncZJVoLqEg6qM5sWrUlM0hIruiM386PBdj09aUdoLZtFOSGTq8HtK1bZKywX0RVvL/cBlejir2u4D9+qCjYnjoaY8Pd1CU6gKIz2BGvecpIIDU7qDRX0Nl881oJf7WOMYnTb/K9Wpkv7vtxXXjJsWTASB6Q8uVbVo/9UCunWqRlv18buunIcumZ5czt46gZSs64BTh7OjBwpJFnZwYU7+cCmTlyzB0028ZrXKcR6Jxe+mdgxxJQtOWIU4CrHzdYPP3Z2Y7fvi5GV+b7MXmWYgcopi0xiM2g+aARvh7kfhP0LUf0GAk5vu2l7qDTPpoSCY0ePUDpTunRVwzrnO6xE/NNFm5KCXcBHTJaLFT5yQWdHkrsOhs7L6co+ucCTKMJR9jRF+cCjMUwK2HW0MD1Tjh6gpVh+hPz2Q5NE+ApyBTrznDo9LbWHe79tHFIigACaXJOH/VUrXB1mMuxTbne1j+nqSltjZY235NX5UFFiGlfJDR69AHV5keOUEEkb+9wVHMac/UTouTm5wBmjEvpMh6oblKRUxnGb14reHzMaoSMNEtAheoac74HDkkRpZae4ZslHepeeb3De4DL6O1load9/JQ1nE1dJKCCNTmTPUmQUPi90kItobXDdxNpYCQe2F/tQXl96J+PUoD30jJwUdDZe7vsehTJ00Za1skpH4O6DO5SMu4CNj0eqTWyfCfwQF0zkFUR3qf3oWj0rjdCHZJqxE0YczF/PRpJ4zJyf+l8b3ayV5jrZ7W/RSQ6ZdkO6QGyfTvL3Giyye0zGx2KRu96gOqQTSaN6ugeKKpTUVQTBjkRgkaXgOroLS3ti4kH+L3hjjICKvS22cFodAmomDSXrKQzeGBPpQc1Nl/yBthvQ6NLQHWGlpY2xsQDFQ0q8qrCm/bZ0egSUDFpKllJZ/AAOYnM8GJS3sexotEloDpDS0sbY+aBAzUelNWFjknpBvnT6BJQMWsqWVFn8EC9G9hdHl5MyjtK+WWjS0B1hlaWNsbUA9mVbtQ2hWb7TKPU7anp8Eb9JaBi2lSyss7ggQjJCZ+90SWgOkMLSxtj5gGOS/zHmJQ7jMyJFsM0Gl0CKmZNJSvqTB4oqPGgJAJyQqfRJaA6UytLW2PmgcoGFfvCj0m10Oj/A9jGm+feuyEMAAAAAElFTkSuQmCC"},81378:function(Mn){"use strict";Mn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA8CAYAAADGxTD9AAAAAXNSR0IArs4c6QAAFoFJREFUeF7tXQl4k1W6fv8sTbqvlJa2tJSy74ugsiMqq4AKIlDUueNwR2dGHR0XdLwixW3uuF6Xq3O9o15nxuUiIIsCsijK1pa20NJ937eke5tmmec7f/40TfInaUNK6+R7nj5Jk7Of93z/t55w8JBnBYbwCnBDeOyeoXtWAB4Ae0AwpFeA+1SWbbA1A07KQSID6JWT0ivAyThIpBwgBSQy4+fCq0T4jANnrEdlWFkpjK/0ndAetd/znpMaTO0LZcz74tsxti0xjqVXfeNYZcZyxvHSuK3GbDYX03iMbbLy5nOz+pzGbGDrwpfj52DQG2DQAwad8Gcwvudf9ToDQN/pDdBrDYBFWfqMry/UAytP9fjPjJ/rYVHf2L7Qph4GaA0tOj1UnBYqvd6gMugMKr0OKoOOq+UMhhQ5DGfHPRNWMaSRaxy8bQBzPGAZAI3AFMAoAIJtnBnA2WaagdlU39iOAKKeje85FKY2TYDkwWh+APi2ebD0AJ8HMn/AzAHFA4x9Jxwss7bN5yXUpbnwB4SvY3Nu9LmwLr36NIKWAEhA1BlMgOUBCAZYBtJe761Byx+A3vV54Av1efDrtUawm4G+N+D5MfUcHH5s7H890KnqNjRWNGkaqlXqhgp1VV1JwxkOSJUAqUB0xk4s0Q4FgIty4KEweM8Yba+ARCmBzBuQeksgVXKQKugVkAdIoRwhhU+EHJycg0GrNz01Whs6UJhegtLsCmi7tI0GYC8H7osYTPhuO2Z3D9a19gB4sO6Mm8flFSKBd4QcyuFS+MbKIfOWMM6v69KjIq8WhVlFaKpvAQeuFsCr/gh45wmsbXHzsPrcvAfAfV6yn18FjgN8YmUInKiAd4TMJObUlNQj42wWutq7SNtXA9zrIVC88nts7Bgsq+AB8GDZiUEyDrm/BAFj5PBLUAASniNnpeSgvLCSjZADl8dBev8ubD41GIbsAfBg2IVBOAaSnUNnK6GM5DlyQ5UKmSlZ6GjvJBiT5epdGRSP7MRGzbUcvgfA13L1h0DfPtFyBE9VMKuMVqNH2rl0NNapBG78vQ98b9+B2xuu1VQ8AL5WKz+E+pV6cQiaqoAyXAp9tx5pyZfQUNdoBDEKAG5VEhJzrsWUPAC+Fqs+RPsMnOgF3xg5dBod0i9eRmM9D2IAFYB03m5sKRnoqXkAPNArPsT7CxingE+UFDqdHpfSMtHYYJIecn2hnL8DG+sGcooeAA/kav9M+gpIkEMZJYdBq0PqxXS0NDcLMvEFKRTzB1Kx8wD4ZwKqgZ6G/2g5vCPlaGttR+rFZMaRiSSQvLILW58YqPF4ADxQK/1z64cDs05IlByqqiqRX5gvKHV6gLspCYknB2LKHgAPxCr/TPuQ+XAImOQFzsDh0pVLUDcJ5jWUSaGcuBMbW9099WsOYDKYU8Qbi5zqshnZ6e41uGrtSxScU3NQhErR1UBhae4hstkaBiiWzDtSykSJri4NLmYmQ6s1dfz6bmx7xD0z7Gn1mgN4bX48CyapP9eBI/NLXZ5v3JYAzHlnOGvnyMJSqNO7TG36xMjYe41KB22r+GGR+nC48aNIVrb4780o2+OYkYTOVWLRnijk/JcKee+qoVHzMqE5zXlvOGLW+0MRIsXBGUVouuweJ9bys7HwjpJBldaJk2vcH/brP9aLRb1V11aisLzAKEpwWimks3Zic4bLm2qngUED4K5GHWpOttuda+U3bSj83ya7ZeLvCcD1f+HBd3hOMVQXeQDL/DhsVI1l71MerUXOm/zjzhYRV1lfmsC+Sn28FtmviZcV6t/wUSRGbQ5g/575RRWKPuE1c3Ma8+sgXPcmf7gynqvH5d3OO7DkARIowigzwDEtPxcLryApmrK7cGqtYwB31evQ3Wx94Bz3xJcgOThwrBd0Wj1Ssi6gW8sfTA44swuJ8zje9ewWGjQAdmZ2OW+rkPIwRfeJ09UAsH+CHGuuxLNOzj9Yjfz37R8axTAp1hWPBnmsOuu02BtXCL3Ges8IhOvLRkPmI0FjSie+ud55u//YB4Iw+w0e/Febkh+qQe47apea9Y2VQeYrQXlNGcpqeubFQfKrJGz9wKXG7VQeNADuqNKi6FNrrmU+9rqfOlDxtf3HudMAfkuFmPV+iN0QgMyXG6BK6xE1gqYpsDI5jnX9071VKHYwrklPhWDa88NY+csvNiDj2XrRJZ/7fgRG3xfIvv8qrgAdFc4Jq4MdwHQoCcQkA6fmXIBOz8v4HNAog2zcc9gsviguoNutAKZHsdRHYnd4y76LgU+UHKr0TvxwFx+y54iIu7WX9Ww8SwGS8/mp8YkBmPNuBHv/7fwSHph6A0jBshQhVqbGIWiKAgUfqnFue42p22HzvHHzyZHs/+83VKB8r/ihoRQjkuMp6IVShvYlFGLyjlCEzVXanIZXiJS5Y4laizSij+78/2lisrRA8kAJCz53RKO2BLL+ic5tr0btaftiGZXrrNGhu6n/IoQwJt+RMrbOJTVFqG4030vJX3dj632Oxt6f790K4CWHohF5s29/xmW3DoH98Oyex9TY3wRh9mvij1f15S4cWVBiBWCBW2vb9fhqZIFpEyNv9sGSQzFsDCdWlqHqqDgIiIsv+DyKlS39/xac3lSJpd9EI+Im1+Z9+YUGZPyHbaYVMlOB0DneNtdo5J3+GL7Ih31HcraYtYPmXPSx/SdeXzeORAifETJ0dnYivTgFBoMgRpEMLF24G5tP97VNR+WHJIBL97TgtBm37i+AJV4c1hbEsywEc8XOHJRHl5Si7rTtBASZLwfi4n7xXmydT60rR8XBNkx/IQwhM3s4cMgsJVOqCDT1Z5xLZij6W7MowMxFFkcbLPZ9R7UWX8XwFoOrSd4jOUilMuRWZkHdZq78cpdliJ5xtZNFBwTAxAW+u7nMap1uOhbDTEo1p9qR8oh95Ywe9YJp68fESpT8oyc9K+x6JUas8GPtB09TIGoV/55Eg45qHTprtSj8qMmmFWLKs6GY8scwNOdqcGBSEas3KjEAN3xotGRcV9xLPjafBJnFEv4tyPTRsZtKUfu9NUBJTApf6NOrD1dAYw7gikOt0Hc7r+SHTFcys6W7AOwVLIFXoBQ16iqU1BdaTvOJ3dj2iitzt6w7IADuqNHiq2jr0357xWgow2UoP9CK8/9eDZ8YOXxjZPAZaXyNkcN7uBRHF5dh7gcRGH1vIHQaA/ZE5ovKjk4rcUYzmt9oOW7L5i0Ox28tQ/Xxdkz+YyimPhvGPvsyPA8albV8GLXaF4u+iu61nqIAPhGD8Pk+aM7R4MBk/pC4QuYA3juqAJo+yK/XvRUOkpPdBWB6qpHuo9F0I73sgsU0uTYZFOShc93gb2x5wAD89YQiDLteyUBKDgVSZGI3+bOUb0e0L6EAEx8PRfQaP6gyOnFytbhts68Apr5vOT0SYXO9Uba3BT9sqMSNn0QiblMAOuu12BNpffDIbLYqLY4dPnMSA/CKlFgET1UyRdVcdnc0b7HvB7MIQWP2jiJlk8OVqgy0a6wU4H27sW1df+d+zTjwiRXlTF60R6TFd1Rq0VbSjbYyLdpLu9FW2s2UoxG3+qK1RIumzC67GnN/AEwmqmlJw5D3ngppO+pBjgCSYet+bGfc35IW7olih4mIQK4M44EsBuC1hfHswDYkd+LECuv2zNunC0wcORXMAaxR060nzsNB6ith9mp3cWAaiVewFBQnUaEqRVVzudXgOEjWJGHrAedHLV5ywDjw/rGFWF86Gu2lWrSV8cCM3xbIjPoElB+3VjHw0gbaIsHlXPyPZvyUWCU6I0sAtxV3Y/QvApH332pRTxx56TgJZwLOBtUYyP0kKPhrE87dX92rL6k3hzvrEtiTgwBZ+HGTybsmBuCN6jHMyO8M0eElU5w9MgfwF2F5fTKBCXZodwKY3MoE4rauVmTX2vQkF4dCOfFqpOcPGIBtycArLsQieLoS3a16ZL/WaFOWkyo4hN3gjejVPMdLe7oOWa+YUlms9tkcwAR2Uuh0HXrsH1folCuZYgjWF4/m+9pRh6w/Wfe1+EAUgiYp8M0NJezJILiubQGYAmvu7hjnDHZZmeY8DQ5MtC8nmwOY5Gq6b81Z8o6UMYuIOwFM3gvv4TLGjDJqkqHVWcd8SICXdmHbU86OW6zcNQWwI/OX5aAJ6IdnFqO1yPZNR8RJJz8dhomPhfSqShz/4NQipwAcscwHSw/zNuDv76hA+X5rJwYFDJFtmQKFzA+MLQCbx1VUHmlD9bE2m3sx/qFg5tBRZ3bh0PRipzlwfwHgVgADkAdL2F1zZc1FqG/v/RQzjrmbg9e0JGy60t85UD23AniZUfsmj9P+sdZchTRWAgxxMb943jtli7Tt5HnrRsnnLWg4T/cS9KaEXwZi5EZ/pulLjB45KkHyYe7bauS8pWIXdDgTzDPrtXCM+00w62BPTD46q+2HPToCcNQqXyzay1srLM1/5rNYkRyL4GlKNKZ24pu59mMkzDnwoZnF0DQ5H5o546VhzH3ubgBLlRLI/Tk0dzQjX51pc185cCeTkLhk0AL4ttxR8BvlxdyZx5bwygu5Q8l1KRDJpxTk0pKnYU4Aoti7/EEu1/Zyba/YB3Kn2nJ5Lvh8BAtTtKRvbyxBwwUe8M5Go60rjudd2xmdODzLcbCNIwBPfT4Mk5/iXbv2QihXpsUxsaTuTAeOLrRvZTIHcOmXLcy06CyRJYgcL+4GMF1XJQ+RsvvWLjcmQ0fXadogCbh7diHxY2fHb1nOrRz4rtYxTNkp+byZhQ7OejUc4Yt9cHBKEVryeDFAUM7MvWurMuIQOEGB6hNtOH4Lr8WS6eq23HhUHm5F+tP1vcSIcb8NwqQdoaDNNHQD437Lc1BnwinZ3b7G8xS+0BvLvuNjILLfaETqY44TbB0BeOmRaEQs8WXOhs8CckUDzVdfHoWAcV6oOtYGstjYo8FuRhPGToyJ4lRKW4rQ2NUTa2I+N7o8UAq/cTuxvl/hcG4DMGUd3FHNx9ReebWRKV7ktiVtPPcdFZIf4j1vzgJ4WlIYJj0RCl0nKWRFzGIhELl0dZ383bt9MaORy3j6i8NwfHk5yFohgI3abS3U4OCMYuja7XM3ewCmw3Fn3RjQfWP15ztwZJ44Z70tLx5+cXKTLdpZAP90TxW0rc4H4ox9MAgRS33dzoFp/BTYQ0p4i6YZha1Z9qb03m5s+3V/uLDbAEw3uaxM4e2+KY/VIucNFWb+aRjGPxzCrA57YwuY2coZAFMg9205o9j9tln/2Yi0p8Q5oxiAzZUpciuTB45kZqLkR2qgvtSFZcd47isQZVc4cnHbA/DIDf6Y/7cRrDlH1hMyMZKFoOj/mnDmvt5KD3FmWk+BYtb5IXYjHzx/9pdVIB3BWRqzPYgF+5B+cP6BHq6ozuhinsKrSSRGyPwl7B7izJZU6ETynDhAL4X0hp3Ycr6v/bsNwObKy+m7K9njnUxUxIVJO039Qy2yX1c5BeDrP4xAfGIgU1b2jym06doVJi4GYOK0ltYJqlN9vA2Xkhow+9VwZtKjCKqa4+0smozeH1taJhrMQ/XtAfjmUyMx7EY+auzriYUmscnWJt1Zn8BiCLLfVCH10d5xIRMeDcaMl8L7urd9Kn/xyVpc+bPjzJM+NUpc2FsCCQeUdRRA1S3OeDjg4lQor9uIjc5rpO60Qlz39nCM+RUf6GKuTC3aH4WoFX4sFpZEgbV5fE6cmAx8OanBJJemP1uHzBfFbcCWgBJkYP8xcqzJ4uMdiAiYFBif+VIjU/JINhfk5rz31YzDr8kZxTxsZJc9NKNYNFlTDMAhsxRYfpZ/AjnjQt7UOZYd7LRn6pD1cu85DmUAc3L6SQgJ2rXNKOiwK0ZQbu9Du7Dtzb4cErdwYDLe316eAJKDyQa7L77HsxS9zg8Lv4hC7Q/tOL25EreejrULYJKdKZWGLBDkzeuLTGquxJFiSMmHJZ+1IOvlBjRl8Y9LYTz0XrAXU8KneQaEvYMjBmDzWGjhCSS2MaSg3lHJ6wskEhR+ZB2nS8qQJUUs8wVF01Ecx8Wn6pD9qu3DPeU53hJCQVXkkcx/X42uut6MTswD2hcwiZUlzxz9NkduZxq6DeJiCgeu2RsY/zTsuFotOnELgEes9MXifbzt0zLFhsBNFgaSOYmckYFJGfIf44XmbMcy2vTdYSzwh+jgtCITUClIvTmvmylrAo1Y7osFX45glhLiyidXlZuC16nPVem8ZYBk9q8nFNq0CdsCsLmVwBnuO/EPIZj+Ap+SRFkkDeesbd3CmAkMI1b4ghwfw+bxMjwRJcSeWF1u/aTggDlvDwc5X8htT0Q28eK/tzD7OMm+7ibBNl+tKUO9zn7WDQd8loRtm5wdk1sALERz0SBI9qOYh/GP8KYtSxKi0djPTxnjWsnBwXEcA5Wt5Ehq48y91UyuJgpf5I15n4xgSiEBjoiSK/dEFYgGukTe4ouFe3rAe+GBGuT/pXfyprkcbysugvqxBDB9tvRIDBMHaPxkEqv+js/oGLbAGzNfCYeuXQ9dFz9fUlDDjNkVFAdB4ZZkUbEkGi/FKUet9mNxGgK1FGhw8ck6u2lPVJZMWgRicvpQZJwJ+KfaWYZ2OeUaOq8LOosvVo7iTCgxuVuvQW53msO6UnC3PI/Eow4LuksGnvnncIz/XTDqz3bgyIJSZqqypUA5M0CxMj9urWTiABFpuhvqE/iFMpKjDGaSUZedGMnuM7jwYA3yP7CdeXzT0RgMX+xjU7myBWAy7y0+EA3/0V649Hw9Lu3qSZ2nQKA7ahLYD6pYEkXiHVtSivqztrmv5RqSKzv/AzX70/fxN4ToYFL0XdBk3rJBThvy/rnzMhT62TNyahTpMtFhsO1OF9aEfsYgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},69168:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return ve}});var y=E(18773);function ve(ce,Le){ce.prototype=Object.create(Le.prototype),ce.prototype.constructor=ce,(0,y.Z)(ce,Le)}},16722:function(Mn,Yt,E){"use strict";E.d(Yt,{Z:function(){return Ne}});const y=Be=>typeof Be=="object"&&Be!=null&&Be.nodeType===1,ve=(Be,fe)=>(!fe||Be!=="hidden")&&Be!=="visible"&&Be!=="clip",ce=(Be,fe)=>{if(Be.clientHeight<Be.scrollHeight||Be.clientWidth<Be.scrollWidth){const $e=getComputedStyle(Be,null);return ve($e.overflowY,fe)||ve($e.overflowX,fe)||(Oe=>{const ct=(Ke=>{if(!Ke.ownerDocument||!Ke.ownerDocument.defaultView)return null;try{return Ke.ownerDocument.defaultView.frameElement}catch(Te){return null}})(Oe);return!!ct&&(ct.clientHeight<Oe.scrollHeight||ct.clientWidth<Oe.scrollWidth)})(Be)}return!1},Le=(Be,fe,$e,Oe,ct,Ke,Te,we)=>Ke<Be&&Te>fe||Ke>Be&&Te<fe?0:Ke<=Be&&we<=$e||Te>=fe&&we>=$e?Ke-Be-Oe:Te>fe&&we<$e||Ke<Be&&we>$e?Te-fe+ct:0,xe=Be=>{const fe=Be.parentElement;return fe==null?Be.getRootNode().host||null:fe},ge=(Be,fe)=>{var $e,Oe,ct,Ke;if(typeof document=="undefined")return[];const{scrollMode:Te,block:we,inline:Ie,boundary:Pe,skipOverflowHiddenElements:tt}=fe,Et=typeof Pe=="function"?Pe:jt=>jt!==Pe;if(!y(Be))throw new TypeError("Invalid target");const _e=document.scrollingElement||document.documentElement,Fe=[];let He=Be;for(;y(He)&&Et(He);){if(He=xe(He),He===_e){Fe.push(He);break}He!=null&&He===document.body&&ce(He)&&!ce(document.documentElement)||He!=null&&ce(He,tt)&&Fe.push(He)}const Xe=(Oe=($e=window.visualViewport)==null?void 0:$e.width)!=null?Oe:innerWidth,St=(Ke=(ct=window.visualViewport)==null?void 0:ct.height)!=null?Ke:innerHeight,{scrollX:gt,scrollY:ot}=window,{height:Ue,width:Ee,top:We,right:Ae,bottom:de,left:wt}=Be.getBoundingClientRect(),{top:Qe,right:Ge,bottom:st,left:Ce}=(jt=>{const De=window.getComputedStyle(jt);return{top:parseFloat(De.scrollMarginTop)||0,right:parseFloat(De.scrollMarginRight)||0,bottom:parseFloat(De.scrollMarginBottom)||0,left:parseFloat(De.scrollMarginLeft)||0}})(Be);let be=we==="start"||we==="nearest"?We-Qe:we==="end"?de+st:We+Ue/2-Qe+st,vt=Ie==="center"?wt+Ee/2-Ce+Ge:Ie==="end"?Ae+Ge:wt-Ce;const zt=[];for(let jt=0;jt<Fe.length;jt++){const De=Fe[jt],{height:pt,width:ut,top:Qt,right:yt,bottom:Ct,left:mt}=De.getBoundingClientRect();if(Te==="if-needed"&&We>=0&&wt>=0&&de<=St&&Ae<=Xe&&(De===_e&&!ce(De)||We>=Qt&&de<=Ct&&wt>=mt&&Ae<=yt))return zt;const dn=getComputedStyle(De),Ht=parseInt(dn.borderLeftWidth,10),ue=parseInt(dn.borderTopWidth,10),ie=parseInt(dn.borderRightWidth,10),re=parseInt(dn.borderBottomWidth,10);let oe=0,pe=0;const ae="offsetWidth"in De?De.offsetWidth-De.clientWidth-Ht-ie:0,me="offsetHeight"in De?De.offsetHeight-De.clientHeight-ue-re:0,Ze="offsetWidth"in De?De.offsetWidth===0?0:ut/De.offsetWidth:0,Ot="offsetHeight"in De?De.offsetHeight===0?0:pt/De.offsetHeight:0;if(_e===De)oe=we==="start"?be:we==="end"?be-St:we==="nearest"?Le(ot,ot+St,St,ue,re,ot+be,ot+be+Ue,Ue):be-St/2,pe=Ie==="start"?vt:Ie==="center"?vt-Xe/2:Ie==="end"?vt-Xe:Le(gt,gt+Xe,Xe,Ht,ie,gt+vt,gt+vt+Ee,Ee),oe=Math.max(0,oe+ot),pe=Math.max(0,pe+gt);else{oe=we==="start"?be-Qt-ue:we==="end"?be-Ct+re+me:we==="nearest"?Le(Qt,Ct,pt,ue,re+me,be,be+Ue,Ue):be-(Qt+pt/2)+me/2,pe=Ie==="start"?vt-mt-Ht:Ie==="center"?vt-(mt+ut/2)+ae/2:Ie==="end"?vt-yt+ie+ae:Le(mt,yt,ut,Ht,ie+ae,vt,vt+Ee,Ee);const{scrollLeft:at,scrollTop:qe}=De;oe=Ot===0?0:Math.max(0,Math.min(qe+oe/Ot,De.scrollHeight-pt/Ot+me)),pe=Ze===0?0:Math.max(0,Math.min(at+pe/Ze,De.scrollWidth-ut/Ze+ae)),be+=qe-oe,vt+=at-pe}zt.push({el:De,top:oe,left:pe})}return zt},Se=Be=>Be===!1?{block:"end",inline:"nearest"}:(fe=>fe===Object(fe)&&Object.keys(fe).length!==0)(Be)?Be:{block:"start",inline:"nearest"};function Ne(Be,fe){if(!Be.isConnected||!(ct=>{let Ke=ct;for(;Ke&&Ke.parentNode;){if(Ke.parentNode===document)return!0;Ke=Ke.parentNode instanceof ShadowRoot?Ke.parentNode.host:Ke.parentNode}return!1})(Be))return;const $e=(ct=>{const Ke=window.getComputedStyle(ct);return{top:parseFloat(Ke.scrollMarginTop)||0,right:parseFloat(Ke.scrollMarginRight)||0,bottom:parseFloat(Ke.scrollMarginBottom)||0,left:parseFloat(Ke.scrollMarginLeft)||0}})(Be);if((ct=>typeof ct=="object"&&typeof ct.behavior=="function")(fe))return fe.behavior(ge(Be,fe));const Oe=typeof fe=="boolean"||fe==null?void 0:fe.behavior;for(const{el:ct,top:Ke,left:Te}of ge(Be,Se(fe))){const we=Ke-$e.top+$e.bottom,Ie=Te-$e.left+$e.right;ct.scroll({top:we,left:Ie,behavior:Oe})}}}}]);
|